|
|
!(function(){var jc=Math.pow;var pu=(tn,Kt,me)=>new Promise((Oe,Je)=>{var x=ie=>{try{ve(me.next(ie))}catch(te){Je(te)}},Te=ie=>{try{ve(me.throw(ie))}catch(te){Je(te)}},ve=ie=>ie.done?Oe(ie.value):Promise.resolve(ie.value).then(x,Te);ve((me=me.apply(tn,Kt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[67977],{18299:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},84249:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},42922:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Te=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},90674:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},25877:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Te=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},55304:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Te=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},63237:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},99569:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},73148:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},56747:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},50881:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},22751:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},34182:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},38308:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Te=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},74664:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},17663:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},91034:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Te=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},72395:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},53978:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return te}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(ne,oe){return Je.createElement(ve.Z,(0,Oe.Z)({},ne,{ref:oe,icon:Te}))},te=Je.forwardRef(ie)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(tn,Kt){"use strict";Kt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(tn,Kt){"use strict";Kt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},12867:function(){"use strict"},61016: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 tn={},Kt="5.0",me={},Oe=null,Je=!1,x=!1,Te=null,ve=!1,ie=null,te=null,ae=0;ae<arguments.length;ae++){var ne=arguments[ae];if(ne!==null)switch(typeof ne){case"number":Kt=ne.toFixed(1);break;case"string":ne.match(new RegExp("^[0-9]\\.[0-9]+$"))?Kt=ne:Te=ne;break;case"object":typeof ne.is3D!="undefined"?Oe=ne:me=ne;break;case"boolean":Je=ne,x=!0;break}}Oe===null&&(Oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},me.material_id!==void 0&&!x&&(Je=!0)),Te!==null&&me.id===void 0&&(me.id=Te);var oe="",he="",re=!1,se=null,ce=null,fe=null,pe=!1,le=null,Se=null,xe=null,ge=null,Me=null;me.height!==void 0&&(me.height=Math.round(me.height)),me.width!==void 0&&(me.width=Math.round(me.width));var ye=function(nt){return parseFloat(nt)>4?parseFloat(nt):5};tn.setHTML5Codebase=function(nt,rt){te=nt,lt(nt,rt)},tn.setJavaCodebase=tn.setJavaCodebaseVersion=tn.isCompiledInstalled=tn.setPreCompiledScriptPath=tn.setPreCompiledResourcePath=function(){},tn.setHTML5CodebaseVersion=function(nt,rt){var at=parseFloat(nt);if(at!==NaN&&at<5){console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead.");return}ie=nt,Xe(nt,rt)},tn.getHTML5CodebaseVersion=function(){return ce},tn.getParameters=function(){return me},tn.setFontsCSSURL=function(nt){ge=nt},tn.setGiacJSURL=function(nt){},tn.setJNLPFile=function(nt){oe=nt},tn.setJNLPBaseDir=function(nt){},tn.inject=function(){function nt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rt="auto",at=me.id,gt,vt=!1,Et=0;Et<arguments.length;Et++){var At=arguments[Et];typeof At=="string"?(At=At.toLowerCase(),At.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?rt=At:at=arguments[Et]):typeof At=="boolean"?vt=At:At instanceof HTMLElement&&(gt=At)}ut();function ut(){if(!ve){setTimeout(ut,200);return}rt=pt(rt);var Ye=gt||document.getElementById(at);if(!Ye){console.log("possibly bug on ajax loading? ");return}if(tn.removeExistingApplet(Ye,!1),me.width===void 0&&Ye.clientWidth&&(me.width=Ye.clientWidth),me.height===void 0&&Ye.clientHeight&&(me.height=Ye.clientHeight),!(me.width&&me.height)&&rt==="html5"&&(delete me.width,delete me.height),se=rt,rt==="screenshot")_e(Ye,me);else{var Ve=!1;me.hasOwnProperty("playButton")&&me.playButton||me.hasOwnProperty("clickToLoad")&&me.clickToLoad?Ve=!0:me.hasOwnProperty("playButtonAutoDecide")&&me.playButtonAutoDecide&&(Ve=(!be()||nt())&&Fe()),Ve?(se="screenshot",Ze(Ye,me,vt,rt)):Ue(Ye,me,vt)}}};function be(){try{return window.self!==window.top}catch(nt){return!0}}function Fe(){return me.hasOwnProperty("screenshotGenerator")&&me.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}tn.getViews=function(){return Oe},tn.isJavaInstalled=function(){return!1};var ke=function(nt){var rt=function(Et){var At=JSON.parse(Et),ut=function(de){return de.type=="G"||de.type=="E"},Ye=At.elements?At.elements.filter(ut)[0]:At;if(!Ye||!Ye.url){at();return}me.fileName=Ye.url,De(Ye.settings||{}),Oe.is3D=!0;var Ve="https://www.geogebra.org/images/";tn.setPreviewImage(le||Ye.previewUrl,Ve+"GeoGebra_loading.png",Ve+"applet_play.png"),nt()},at=function(){me.onError&&me.onError(),dt("Error: Fetching material (id "+me.material_id+") failed.",me)},gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",vt="/materials/"+me.material_id+"?scope=basic";Le("https://"+gt+"/api/proxy.php?path="+encodeURIComponent(vt),rt,at)};function De(nt){var rt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(at){nt[at]=!!nt[at]}),rt.forEach(function(at){me[at]===void 0&&nt[at]!==void 0&&(me[at]=nt[at])}),me.showToolBarHelp===void 0&&(me.showToolBarHelp=me.showToolBar)}function Le(nt,rt,at){var gt=new XMLHttpRequest;gt.open("GET",nt),gt.onload=function(){rt(gt.responseText)},gt.onerror=at,gt.send()}tn.isHTML5Installed=function(){return!0},tn.getLoadedAppletType=function(){return se},tn.setPreviewImage=function(nt,rt,at){le=nt,Se=rt,xe=at},tn.removeExistingApplet=function(nt,rt){var at;typeof nt=="string"&&(nt=document.getElementById(nt)),se=null;var gt=null;for(at=0;at<nt.childNodes.length;at++){var vt=nt.childNodes[at],Et=vt.className;Et==="applet_screenshot"?rt?(vt.style.display="block",se="screenshot"):vt.style.display="none":Et!=="applet_scaler prerender"&&(nt.removeChild(vt),gt=Et&&Et.indexOf("appletParameters")!=-1?vt.id:null,at--)}var At=me.id!==void 0?me.id:gt,ut=window[At];ut&&typeof ut.getBase64=="function"&&(ut.remove(),window[At]=null)},tn.refreshHitPoints=function(){if(ye(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var nt=tn.getAppletObject();return nt&&typeof nt.recalculateEnvironments=="function"?(nt.recalculateEnvironments(),!0):!1},tn.startAnimation=function(){var nt=tn.getAppletObject();return nt&&typeof nt.startAnimation=="function"?(nt.startAnimation(),!0):!1},tn.stopAnimation=function(){var nt=tn.getAppletObject();return nt&&typeof nt.stopAnimation=="function"?(nt.stopAnimation(),!0):!1},tn.getAppletObject=function(){var nt=me.id!==void 0?me.id:"ggbApplet";return window[nt]},tn.resize=function(){};var Ie=function(nt,rt,at){var gt=document.createElement("param");gt.setAttribute("name",rt),gt.setAttribute("value",at),nt.appendChild(gt)},Be=function(nt){return nt&&nt!=="false"},Ue=function(nt,rt,at){ye(ce)<=4.2&&(at=!0);var gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ce||ggbHTML5LoadedCodebaseIsWebSimple&&!pe)&&(gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var vt=document.createElement("div");vt.classList.add("appletParameters","notranslate");var Et=rt.width,At=rt.height;if(rt.disableAutoScale=rt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rt.disableAutoScale,rt.width!==void 0)if(ye(ce)<=4.4)Be(rt.showToolBar)&&(rt.height-=7),Be(rt.showAlgebraInput)&&(rt.height-=37),rt.width<605&&Be(rt.showToolBar)&&(rt.width=605,Et=605);else{var ut=100;(Be(rt.showToolBar)||Be(rt.showMenuBar))&&(rt.hasOwnProperty("customToolBar")&&(rt.customToolbar=rt.customToolBar),ut=Be(rt.showMenuBar)?245:155),Et<ut&&(rt.width=ut,Et=ut)}vt.style.border="none",vt.style.display="inline-block";for(var Ye in rt)rt.hasOwnProperty(Ye)&&Ye!=="appletOnLoad"&&vt.setAttribute("data-param-"+Ye,rt[Ye]);ge&&vt.setAttribute("data-param-fontscssurl",ge),tn.resize=function(){GGBAppletUtils.responsiveResize(nt,rt)},window.addEventListener("resize",function(xt){tn.resize()});var Ve=typeof rt.appletOnLoad=="function"?rt.appletOnLoad:function(){};if(!at&&rt.width!==void 0){rt.hasOwnProperty("showSplash")||vt.setAttribute("data-param-showSplash","false");var de=nt.querySelector(".applet_scaler.prerender"),Ce=de!==null;if(Ce)var He=de.querySelector(".ggb_preview");else{var He=it(Et,At,rt.borderColor,!1);de=document.createElement("div"),de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.style.width=Et+"px",de.style.height=At+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(de,"66%"),ye(ce)>=5?(rt.appletOnLoad=function(xt){var Ut=nt.querySelector(".ggb_preview");Ut&&Ut.parentNode.removeChild(Ut),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(de),window.GGBT_wsf_view&&$(window).trigger("resize"),Ve(xt)},Ce||de.appendChild(He)):vt.appendChild(He),de.appendChild(vt),Ce||nt.appendChild(de),setTimeout(function(){tn.resize()},1)}else{var je=document.createElement("div");je.className="applet_scaler",je.style.position="relative",je.style.display="block",je.appendChild(vt),nt.appendChild(je),rt.appletOnLoad=function(xt){tn.resize(),Ve(xt)}}function Ae(xt,Ut){Ut&&typeof Ut.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(xt,Ut.appletOnLoad):renderGGBElement(xt),dt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ut)}function Ne(xt,Ut){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:xt,params:Ut}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xn){Ae(xn.article,xn.params)}),html5AppletsToProcess=null)},ye(ce)<5&&(xt.className+=" geogebraweb")):Ae(xt,Ut)}if(gt){scriptLoadStarted=!0;for(var ze=0;ze<vt.childNodes.length;ze++){var Qe=vt.childNodes[ze].tagName;Qe==="TABLE"&&(vt.removeChild(vt.childNodes[ze]),ze--)}if(ggbHTML5LoadedScript!==null){var ot=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ot!=null&&ot.parentNode.removeChild(ot)}var mt=document.createElement("script"),Ot=function(){Ne(vt,rt)};mt.src=he+fe,ggbHTML5LoadedCodebaseIsWebSimple=pe,ggbHTML5LoadedCodebaseVersion=ce,ggbHTML5LoadedScript=mt.src,dt("GeoGebra HTML5 codebase loaded: '"+he+"'.",rt),!te&&(!ie||ie=="5.0")?(pe?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):he.requirejs?__webpack_require__.e(12).then(function(){var xt=[__webpack_require__(12)];Ot.apply(null,xt)}.bind(this)).catch(__webpack_require__.oe):(mt.onload=Ot,nt.appendChild(mt))}else Ne(vt,rt);rt.height=At,rt.width=Et},_e=function(nt,rt,at){var gt=it(rt.width,rt.height,rt.borderColor,at),vt=document.createElement("div");vt.style.position="relative",vt.style.display="block",vt.style.width=rt.width+"px",vt.style.height=rt.height+"px",vt.className="applet_screenshot applet_scaler"+(at?" applet_screenshot_play":""),vt.appendChild(gt);var Et=GGBAppletUtils.getScale(rt,nt,at);at?(nt.appendChild(et()),window.GGBT_wsf_view||(nt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(vt,"66%"),nt.appendChild(vt),Et!==1&&!isNaN(Et)&&(GGBAppletUtils.scaleElement(vt,Et),vt.style.width=rt.width+"px",vt.style.height=rt.height+"px",vt.parentNode.style.width=rt.width*Et+"px",vt.parentNode.style.height=rt.height*Et+"px"),tn.resize=function(){We(nt,gt,vt,at)},window.addEventListener("resize",function(At){tn.resize()}),tn.resize()};function We(nt,rt,at,gt){if(nt.contains(rt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(nt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(nt)}var vt=GGBAppletUtils.getScale(me,nt,gt);at.parentNode!==null&&(!isNaN(vt)&&vt!==1?(GGBAppletUtils.scaleElement(at,vt),at.parentNode.style.width=me.width*vt+"px",at.parentNode.style.height=me.height*vt+"px"):(GGBAppletUtils.scaleElement(at,1),at.parentNode.style.width=me.width+"px",at.parentNode.style.height=me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(nt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}tn.onExitFullscreen=function(nt,rt){rt.appendChild(nt)};var Ze=function(nt,rt,at,gt){_e(nt,rt,!0);for(var vt=function(){var ut=[];for(At=0;At<nt.childNodes.length;At++)ut.push(nt.childNodes[At]);if(window.GGBT_wsf_view){var Ye=window.GGBT_wsf_view.renderFullScreen(nt,rt.id),Ve=document.getElementById("fullscreencontainer"),de=jQuery(nt).find(".fullscreencontent");de.length>0?(Ye.remove(),de.attr("id","fullscreencontent").show(),jQuery(Ve).append(de),window.dispatchEvent(new Event("resize"))):Ue(Ye,rt,!1),window.GGBT_wsf_view.launchFullScreen(Ve)}else se=gt,Ue(nt,rt,!1);if(!window.GGBT_wsf_view)for(At=0;At<ut.length;At++)nt.removeChild(ut[At])},Et=nt.getElementsByClassName("ggb_preview_play"),At=0;At<Et.length;At++)Et[At].addEventListener("click",vt,!1),Et[At].addEventListener("ontouchstart",vt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(nt),Fe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},et=function(){var nt=document.createElement("div");if(nt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var rt='.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");}',at=document.createElement("style");at.styleSheet?at.styleSheet.cssText=rt:at.appendChild(document.createTextNode(rt)),document.getElementsByTagName("head")[0].appendChild(at)}return nt},it=function(nt,rt,at,gt){var vt=document.createElement("div");vt.className="ggb_preview",vt.style.position="absolute",vt.style.zIndex="90",vt.style.width=nt-2+"px",vt.style.height=rt-2+"px",vt.style.top="0px",vt.style.left="0px",vt.style.overflow="hidden",vt.style.backgroundColor="white";var Et="lightgrey";at!==void 0&&(at==="none"?Et="transparent":Et=at),vt.style.border="1px solid "+Et;var At=document.createElement("img");if(At.style.position="relative",At.style.zIndex="1000",At.style.top="-1px",At.style.left="-1px",le!==null&&At.setAttribute("src",le),At.style.opacity=.7,Se!==null){var ut,Ye,Ve;if(!gt){ut=document.createElement("img"),ut.style.position="absolute",ut.style.zIndex="1001",ut.style.opacity=1,At.style.opacity=.3,Ye=360,Ye>nt/4*3&&(Ye=nt/4*3),Ve=Ye/5.8,ut.setAttribute("src",Se),ut.setAttribute("width",Ye),ut.setAttribute("height",Ve);var de=(nt-Ye)/2,Ce=(rt-Ve)/2;ut.style.left=de+"px",ut.style.top=Ce+"px",vt.appendChild(ut)}}return vt.appendChild(At),vt},pt=function(nt){return nt=nt.toLowerCase(),nt==="html5"||nt==="screenshot"?nt:"html5"},Ge=["web","webSimple","web3d","tablet","tablet3d","phone"],Xe=function(nt,rt){if(ce=nt,rt){lt(ce,!0);return}var at=!Je;if(at){var gt=ye(ce);!isNaN(gt)&><4.4&&(at=!1)}var vt,Et;window.location.protocol.substr(0,4)==="http"?vt=window.location.protocol:vt="http:";var At=ce.indexOf("//");At>0?Et=ce:At===0?Et=vt+ce:Et="https://www.geogebra.org/apps/5.2.814.0/";for(var ut in Ge)if(ce.slice(Ge[ut].length*-1)===Ge[ut]||ce.slice((Ge[ut].length+1)*-1)===Ge[ut]+"/"){lt(Et,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&at&&!Oe.is3D&&!Oe.AV&&!Oe.SV&&!Oe.CV&&!Oe.EV2&&!Oe.CP&&!Oe.PC&&!Oe.DA&&!Oe.FI&&!Oe.PV&&!Be(me.showToolBar)&&!Be(me.showMenuBar)&&!Be(me.showAlgebraInput)&&!Be(me.enableRightClick)&&(!me.appName||me.appName=="classic")?Et+="webSimple/":Et+="web3d/",lt(Et,!1)},lt=function(nt,rt){if(nt.requirejs){he=nt;return}nt.slice(-1)!=="/"&&(nt+="/"),he=nt,rt===null&&(rt=nt.indexOf("http")===-1),re=rt,fe="web.nocache.js",pe=!1;var at=he.split("/");at.length>1&&(!rt&&at[at.length-2]==="webSimple"?(fe="webSimple.nocache.js",pe=!0):Ge.indexOf(at[at.length-2])>=0&&(fe=at[at.length-2]+".nocache.js")),at=nt.split("/"),ce=at[at.length-3],ce.substr(0,4)==="test"?ce=ce.substr(4,1)+"."+ce.substr(5,1):(ce.substr(0,3)==="war"||ce.substr(0,4)==="beta")&&(ce="5.0");var gt=parseFloat(ce);gt!==NaN&><5&&nt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+gt+" is deprecated. Using version latest instead."),Xe("5.0",rt))},dt=function(nt,rt){window.console&&window.console.log&&(!rt||typeof rt.showLogging=="undefined"||rt.showLogging&&rt.showLogging!=="false")&&console.log(nt)};me.material_id!==void 0?ke(st):st();function st(){var nt=Kt;ie!==null?nt=ie:parseFloat(nt)<5&&(nt="5.0"),Xe(nt,!1),te!==null&<(te,re),ve=!0}return tn},GGBAppletUtils=function(){"use strict";function tn(){return window.GGBT_wsf_edit!==void 0}function Kt(ve,ie){ie!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+ie+","+ie+")",ve.style.webkitTransform="scale("+ie+","+ie+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function me(ve,ie,te,ae,ne,oe){var he=null;if(oe!=null&&oe!="")for(var re=ve.parentNode;re!=null;)if((" "+re.className+" ").indexOf(" "+oe+" ")>-1){he=re;break}else re=re.parentNode;var se=0,ce=0,fe=0,pe=0,le=0,Se=0,xe=0;if(he)se=he.offsetWidth,ce=Math.max(ae?he.offsetWidth:0,he.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(se=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),fe=se):(se=window.innerWidth,ce=window.innerHeight,fe=window.innerWidth),ve){var ge=ve.getBoundingClientRect();ge.left>0&&ge.left<=se&&(ne===void 0||!ne)&&(document.dir==="rtl"?(le=se-ge.width-ge.left,Se=fe<=480?10:30):(Se=ge.left,le=fe<=480?10:30),pe=Se+le)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Me=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(pe=40,xe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(pe=0,xe=40)}}return ve&&((te===void 0||!te)&&ie>0&&ie+pe<se?se=ie:se-=pe,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(te===void 0||!te)&&(ce-=xe)),{width:se,height:ce}}function Oe(ve,ie,te,ae,ne){if(ve.isScreenshoGenerator)return 1;var oe=ae!==void 0&&ae,he=ve.noScaleMargin!=null&&ve.noScaleMargin,re=function(Me){return Me&&Me!=="false"},se=re(ve.autoHeight),ce=me(ie,ve.width,te,se,oe&&window.GGBT_wsf_view||he,ne),fe=parseInt(ce.width),pe=ve.width,le=ve.height;if(pe===void 0){var Se=ie.querySelector(".appletParameters");Se&&(pe=Se.offsetWidth,le=Se.offsetHeight)}var xe=fe/pe,ge=oe?1:ce.height/le;return te!==void 0&&!te&&(xe=Math.min(1,xe),ge=Math.min(1,ge)),Math.min(xe,ge)}function Je(ve,ie,te){var ae=1,ne,oe=!1;if(ve.hasOwnProperty("allowUpscale")&&(oe=ve.allowUpscale),ve.hasOwnProperty("scale")&&(ae=parseFloat(ve.scale),(isNaN(ae)||ae===null||ae===0)&&(ae=1),ae>1&&(oe=!0)),ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(oe=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))ne=Oe(ve,ie,oe,te,ve.scaleContainerClass);else return ae;return oe&&(!ve.hasOwnProperty("scale")||ae===1)?ne:Math.min(ae,ne)}function x(ve){var ie=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),ae=ve.getBoundingClientRect(),ne=(ie-ae.width)/2,oe=(te-ae.height)/2;oe<0&&(oe=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne<40?ve.style.left="40px":ve.style.left=ne+"px",ve.style.top=oe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(oe<40?ve.style.top="40px":ve.style.top=oe+"px",ve.style.left=ne+"px")}function Te(ve,ie){var te=ve.querySelector(".appletParameters");if(te){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ie.id!==te.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(te.parentElement&&/fullscreen/.test(te.parentElement.className))return;var ae=Je(ie,ve);tn()&&te.setAttribute("data-param-scale",ae);for(var ne=null,oe=0;oe<ve.childNodes.length;oe++)if(ve.childNodes[oe].className!==void 0&&ve.childNodes[oe].className.match(/^applet_scaler/)){ne=ve.childNodes[oe];break}if(ne!==null&&ne.querySelector(".noscale")!==null)return;var he=ie.id!==void 0?ie.id:"ggbApplet",re=window[he];(re==null||!re.recalculateEnvironments)&&ne!==null&&!ne.className.match(/fullscreen/)&&(ne.parentNode.style.transform="",!isNaN(ae)&&ae!==1?(ne.parentNode.style.width=ie.width*ae+"px",ne.parentNode.style.height=ie.height*ae+"px",Kt(ne,ae)):(Kt(ne,1),ne.parentNode.style.width=ie.width+"px",ne.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&x(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(te).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:tn,positionCenter:x,getScale:Je,scaleElement:Kt}}();__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 tn=n.location.search;return tn.indexOf(J)!=-1||tn.indexOf(K)!=-1}function q(tn,Kt){}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(tn){var Kt=s[L].bindings;s[L].bindings=function(){for(var me=Kt?Kt():{},Oe=tn[webModule.__softPermutationId],Je=O;Je<Oe.length;Je++){var x=Oe[Je];me[x[O]]=x[P]}return me}};var t;function u(){return v(),t}function v(){if(!t){var tn=o.createElement(Q);if(tn.id=L,tn.style.cssText=R+S,tn.tabIndex=-1,o.body.appendChild(tn),t=tn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Kt=document.compatMode==U?V:W;t.write(Kt+X),t.close()}}}function w(tn){function Kt(Oe){function Je(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var x=Je();if(x){Oe();return}function Te(){if(!x){if(!Je())return;x=!0,Oe(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var ve=setInterval(function(){Te()},$)}function me(Oe){var Je=u(),x=Je.body,Te=Je.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=Oe,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+Oe))}),x.appendChild(Te)}Kt(function(){me(tn)})}webModule.__startLoadingFragment=function(tn){return C(tn)},webModule.__installRunAsyncCode=function(tn){var Kt=u(),me=Kt.body,Oe=Kt.createElement(_);Oe.language=ab,Oe.text=tn,me.appendChild(Oe),me.removeChild(Oe)};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(tn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(tn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(tn){var Kt=c[tn];return Kt==null?null:Kt},r=d,webModule.__errFn=e}function B(){function tn(ve){var ie=ve.lastIndexOf(rb);ie==-1&&(ie=ve.length);var te=ve.indexOf(sb);te==-1&&(te=ve.length);var ae=ve.lastIndexOf(tb,Math.min(te,ie));return ae>=O?ve.substring(O,ae+P):W}function Kt(ve){if(!ve.match(/^\w+:\/\//)){var ie=o.createElement(ub);ie.src=ve+vb,ve=tn(ie.src)}return ve}function me(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function Oe(){for(var ve=o.getElementsByTagName(_),ie=O;ie<ve.length;++ie)if(ve[ie].src.indexOf(xb)!=-1)return tn(ve[ie].src);return W}function Je(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function x(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var Te=me();return Te==W&&(Te=Oe()),Te==W&&(Te=Je()),Te==W&&x()&&(Te=tn(o.location.href)),Te=Kt(Te),Te}function C(tn){return tn.match(/^\//)||tn.match(/^[a-zA-Z]+:\/\//)?tn:webModule.__moduleBase+tn}function D(){var tn=[],Kt=O,me=[],Oe=[];function Je(ve){var ie=Oe[ve](),te=me[ve];if(ie in te)return ie;var ae=[];for(var ne in te)ae[te[ne]]=ne;throw r&&r(ve,ae,ie),null}if(__gwt_isKnownPropertyValue=function(ve,ie){return ie in me[ve]},webModule.__getPropMap=function(){var ve={};for(var ie in me)me.hasOwnProperty(ie)&&(ve[ie]=Je(ie));return ve},webModule.__computePropValue=Je,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var x;try{x=Cb;var Te=x.indexOf(Db);Te!=-1&&(Kt=parseInt(x.substring(Te+P),$),x=x.substring(O,Te))}catch(ve){}return webModule.__softPermutationId=Kt,C(x+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},15476:function(tn,Kt,me){"use strict";me.d(Kt,{Ax:function(){return Te},Ds:function(){return ve},KI:function(){return te},SI:function(){return x},f1:function(){return Je}});var Oe=me(11320);function Je(ae){let ne=!0;if(ae.length>0){for(let oe=0;oe<ae.length;oe++)if(ae[oe].compile_success==0||!ae[oe].compile_success){ne=!1;break}}else ne=!1;return ne}function x(ae,ne=""){let oe=[];for(let he=0;he<ae.length;he++){let re=ae[he],se=ne?`${ne}/${re.name}`:`${re.name}`;oe.push({title:re.name,type:re.type,isLeaf:re.type!=="tree",key:se})}return oe}function Te(ae,ne,oe){for(let he=0;he<ae.length;he++){let re=ae[he];if(re.key===ne){re.children=oe;break}re.children&&Te(re.children,ne,oe)}return ae}function ve(ae,ne,oe){let he;return function(){let re=this,se=arguments,ce=function(){he=null,oe||ae.apply(re,se)},fe=oe&&!he;clearTimeout(he),he=setTimeout(ce,ne),fe&&ae.apply(re,se)}}const ie=!0,te=Oe.Z.API_SERVER},63205:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return he}});var Oe=me(67294),Je={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},x=me(94184),Te=me.n(x),ve=me(57953),ie=me(15979),te=me(33170),ae=me(28706),ne=(re,se,ce)=>new Promise((fe,pe)=>{var le=ge=>{try{xe(ce.next(ge))}catch(Me){pe(Me)}},Se=ge=>{try{xe(ce.throw(ge))}catch(Me){pe(Me)}},xe=ge=>ge.done?fe(ge.value):Promise.resolve(ge.value).then(le,Se);xe((ce=ce.apply(re,se)).next())}),he=({data:re,className:se,fullWidth:ce,style:fe={},onClose:pe,onOk:le,showFullTools:Se,noAssociationId:xe})=>{const ge=(0,Oe.useRef)(null),Me=(0,Oe.useRef)(null),ye=(0,Oe.useRef)(null),be=(0,Oe.useRef)(null),[Fe,ke]=(0,Oe.useState)(!1),[De,Le]=(0,Oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Oe.useEffect)(()=>{ye.current||(ye.current=document.createElement("style"),document.head.appendChild(ye.current)),re!=null&&re.visible?(document.body.setAttribute("data-custom","y-hidden"),ye.current.innerHTML=" html { overflow-y: hidden; }",re!=null&&re.src&&Ie()):(document.body.removeAttribute("data-custom"),ye.current&&(document.head.removeChild(ye.current),ye.current=null))},[re==null?void 0:re.visible]);const Ie=()=>ne(void 0,null,function*(){ke(!0),Le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ze=yield(0,ae.ZJ)(re==null?void 0:re.src);ge.current.src="",ge.current.src=Ze,ge.current.onload=function(){We()},ke(!1),Le("")}),Be=()=>{document.body.removeAttribute("data-custom"),ye.current.innerHTML=" ",pe()},Ue=Ze=>ne(void 0,null,function*(){ke(!0),Le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const et=yield(0,te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:re.title,file:Ze.dataUrl}});et!=null&&et.id&&!xe?(yield(0,te.ZP)(`/api/attachments/${re.id}/add_subitem.json`,{method:"post",body:{subitem_id:et==null?void 0:et.id,settings:JSON.stringify(Ze.state)}})).status===0&&le():et!=null&&et.id&&le(et),document.body.removeAttribute("data-custom"),ye.current.innerHTML=" ",ke(!1),Le("")}),_e=()=>{const Ze=document.querySelector('a[href="https://markerjs.com/"]');Ze&&Ze.parentNode&&(Ze.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(it=>{const pt=document.querySelector(it.name);pt&&pt.setAttribute("title",it.title)})},We=()=>{Me.current=new ie.hP(ge.current),Me.current.targetRoot=be.current,Me.current.addEventListener("render",Ue),Me.current.addEventListener("beforeclose",Be),Se&&(Me.current.availableMarkerTypes=Me.current.ALL_MARKER_TYPES,Me.current.uiStyleSettings.redoButtonVisible=!0,Me.current.uiStyleSettings.notesButtonVisible=!0,Me.current.uiStyleSettings.zoomButtonVisible=!0,Me.current.uiStyleSettings.zoomOutButtonVisible=!0,Me.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Me.current.uiStyleSettings,Me.current.show(),re!=null&&re.snapshotData&&Me.current.restoreState(re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),_e()},300)};return Oe.createElement(Oe.Fragment,null,(re==null?void 0:re.visible)&&Oe.createElement(ve.Z,{spinning:Fe,tip:De,style:{position:"absolute"}},Oe.createElement("div",{ref:be,className:Te()(Je.imageDimensions,se,ce?Je.fullWidth:""),style:fe},Oe.createElement("img",{className:Je.img,ref:ge}))))}},4069:function(tn,Kt,me){"use strict";me.d(Kt,{N:function(){return pe}});var Oe=me(67294),Je=me(11713),x=me(14446),Te=me(69677),ve=me(2453),ie=me(71230),te=me(15746),ae=me(33170),ne={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},oe=me(94184),he=me.n(oe),re=me(55304),se=me(67294),ce=(le,Se,xe)=>new Promise((ge,Me)=>{var ye=ke=>{try{Fe(xe.next(ke))}catch(De){Me(De)}},be=ke=>{try{Fe(xe.throw(ke))}catch(De){Me(De)}},Fe=ke=>ke.done?ge(ke.value):Promise.resolve(ke.value).then(ye,be);Fe((xe=xe.apply(le,Se)).next())});const{Option:fe}=Je.default,pe=({subId:le,value:Se,selectvalues:xe,disabled:ge,knowledgeOptions:Me=[],className:ye,height:be,onChange:Fe=()=>{},onAddKnowledgeFinish:ke=()=>{},zIndex:De=1e3})=>{const Le=(0,Oe.useRef)(),[Ie,Be]=(0,Oe.useState)([]);Se=Se||[];const Ue=(We,Ze)=>{We?(Be([...Ze]),Fe([...Ze])):(Be([]),Fe([]))};(0,Oe.useEffect)(()=>{(xe==null?void 0:xe.length)>0?(Be([...xe]),Fe([...xe])):(Be([]),Fe([]))},[Me]),(0,Oe.useEffect)(()=>{(Se==null?void 0:Se.length)>0&&Fe([...Se])},[Me]);const _e=We=>{We.preventDefault(),Le.current="",x.default.confirm({centered:!0,width:585,zIndex:De,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:se.createElement("div",{className:"font14"},se.createElement("div",{className:ne.public_tips},se.createElement(re.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),se.createElement("div",{style:{display:"flex",alignItems:"center"}},se.createElement("div",{style:{width:"95px"}},se.createElement("span",{className:ne.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),se.createElement(Te.default,{className:ne.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:Le.current,onChange:Ze=>{Le.current=Ze.target.value}}))),onOk:()=>new Promise((Ze,et)=>ce(void 0,null,function*(){if(!Le.current)return ve.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),et();if(Le.current.length>20)return ve.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),et();const it=yield(0,ae.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Le.current,sub_discipline_id:le}});if((it==null?void 0:it.status)===0){ke({id:it.tag_discipline_id,name:Le.current,type:"personal"});let pt=xe||[];pt.push(it.tag_discipline_id),Fe([...pt]),Be([...pt]),Fe([...pt])}return Ze()}))})};return se.createElement(ie.Z,{wrap:!1,align:"middle",className:he()(ne.wrap,ye)},se.createElement(te.Z,null,se.createElement(Je.default,{mode:"multiple",disabled:!le||ge,className:ne.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Ue,style:{width:be||490},showSearch:!0,allowClear:!0,value:Ie,filterOption:(We,Ze)=>Ze.label.indexOf(We.toLowerCase())>=0},Me==null?void 0:Me.map(We=>se.createElement(fe,{key:We.id,value:We.id,label:We.name},se.createElement("div",{style:{display:"flex",alignItems:"center"}},se.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},We.name),(We==null?void 0:We.type)==="personal"&&se.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),le&&se.createElement(te.Z,{className:`ml20 ${be&&ne.add_style}`},se.createElement("span",{className:ne.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),se.createElement("span",{className:ne.linkBtn,onClick:_e},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},36527:function(tn,Kt,me){"use strict";var Oe=me(67294),Je=me(71230),x=me(15746),Te=me(66368),ve=me(71577),ie=me(35598),te=me(71736),ae=me(84279),ne=me(67294);const oe=(0,Oe.forwardRef)(({callback:he,showSaveButton:re,value:se=""},ce)=>{const fe=(0,Oe.useRef)(),pe=[{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 "}]}]}],le=[{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}`}]}]}],Se=Me=>{fe.current.setValue(fe.current.getValue()+" "+Me.value+" ")},xe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ne.createElement(Je.Z,{className:te.Z.lists,gutter:[10,10]},pe.map((Me,ye)=>ne.createElement(x.Z,{flex:"110px",className:te.Z.item},ne.createElement("div",null,ne.createElement(ie.Z,{value:`$$${Me.value}$$`}),Me.name),ne.createElement("div",{className:te.Z.children},Me.children.map((be,Fe)=>ne.createElement("div",{key:Fe},ne.createElement("h1",null,be.name),ne.createElement(Je.Z,{gutter:[10,10]},be.data.map((ke,De)=>ne.createElement(x.Z,{key:De,onClick:()=>Se(ke),className:te.Z.diamond},ne.createElement(ie.Z,{value:"`$$"+ke.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ne.createElement(Je.Z,{className:te.Z.lists,gutter:[10,10]},le.map((Me,ye)=>ne.createElement(x.Z,{flex:"110px",className:te.Z.item},ne.createElement("div",null,ne.createElement(ie.Z,{value:"`$$"+Me.value+"$$`"}),Me.name),ne.createElement("div",{className:te.Z.children},Me.children.map((be,Fe)=>ne.createElement("div",{key:Fe},be.name&&ne.createElement("h1",null,be.name),ne.createElement(Je.Z,{gutter:[10,10]},be.data.map((ke,De)=>ne.createElement(x.Z,{key:De,onClick:()=>Se(ke),className:te.Z.diamond},ne.createElement(ie.Z,{value:"`$$"+ke.value+"$$`"}))))))))))}],ge=()=>{var Me=document.createElement("div");Me.innerHTML=fe.current.getValue();var ye=Me.innerText;return he&&he(ye),ye};return(0,Oe.useImperativeHandle)(ce,()=>({getData:ge})),ne.createElement("div",{className:te.Z.mathWrap},ne.createElement(Te.default,{defaultActiveKey:"1",items:xe}),ne.createElement("math-field",{locale:"zh_cn",className:te.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:fe,style:{width:800,marginTop:30,fontSize:18}},se||""),re&&ne.createElement("div",{className:te.Z.button},ne.createElement(ve.ZP,{size:"large",onClick:ge,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Kt.Z=oe},41307:function(tn,Kt,me){"use strict";me.d(Kt,{h:function(){return fe},x:function(){return pe}});var Oe=me(91304),Je=me(52654),x=me(35598),Te=me(67294),ve=Object.defineProperty,ie=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,he=(le,Se,xe)=>Se in le?ve(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:xe}):le[Se]=xe,re=(le,Se)=>{for(var xe in Se||(Se={}))ne.call(Se,xe)&&he(le,xe,Se[xe]);if(ae)for(var xe of ae(Se))oe.call(Se,xe)&&he(le,xe,Se[xe]);return le},se=(le,Se)=>ie(le,te(Se)),ce=(le,Se)=>{var xe={};for(var ge in le)ne.call(le,ge)&&Se.indexOf(ge)<0&&(xe[ge]=le[ge]);if(le!=null&&ae)for(var ge of ae(le))Se.indexOf(ge)<0&&oe.call(le,ge)&&(xe[ge]=le[ge]);return xe};const fe=le=>{var Se=le,{value:xe,onChange:ge,scrollId:Me}=Se,ye=ce(Se,["value","onChange","scrollId"]);return Te.createElement("div",{id:Me||""},Te.createElement(Oe.Z,se(re({},ye),{defaultValue:xe,onChange:(be,Fe)=>{Fe!=null&&Fe.length?ge(be,Fe):ge(be)}})))},pe=({value:le,onChange:Se,placeholder:xe,height:ge=140,isEdit:Me,miniToolbar:ye,watch:be=!0})=>Me?Te.createElement(Oe.Z,{watch:be,isFocus:!0,height:ge||void 0,placeholder:xe,defaultValue:le,onChange:Se,miniToolbar:ye}):Te.createElement("div",{style:{cursor:"pointer"}},le?Te.createElement(x.Z,{className:Je.Z.inputBorder,value:le}):Te.createElement("div",{className:`${Je.Z.inputBorder} ${Je.Z.placeholder} inputBorderError`},xe))},57444:function(tn,Kt,me){"use strict";me.d(Kt,{h:function(){return Me}});var Oe=me(67294),Je=me(11713),x=me(22150),Te=me(71577),ve=me(4631),ie=me.n(ve),te=me(71749),ae=me(30483),ne=Object.defineProperty,oe=Object.defineProperties,he=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,fe=(ye,be,Fe)=>be in ye?ne(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):ye[be]=Fe,pe=(ye,be)=>{for(var Fe in be||(be={}))se.call(be,Fe)&&fe(ye,Fe,be[Fe]);if(re)for(var Fe of re(be))ce.call(be,Fe)&&fe(ye,Fe,be[Fe]);return ye},le=(ye,be)=>oe(ye,he(be));const Se=Je.default.Option,xe={labelCol:{span:4},wrapperCol:{span:20}},ge={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Kt.Z=({callback:ye,onCancel:be})=>{const[Fe,ke]=(0,Oe.useState)("python");function De(Ie){ke(ge[Ie][1])}function Le(Ie){ye(Ie)}return Oe.createElement(x.default,le(pe({},xe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),Oe.createElement(x.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Oe.createElement(Je.default,{getPopupContainer:Ie=>Ie.parentNode,onChange:De},Object.keys(ge).map(Ie=>Oe.createElement(Se,{key:Ie,value:Ie},ge[Ie][0])))),Oe.createElement(x.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Oe.createElement(Me,{mode:Fe})),Oe.createElement("div",{className:"flex-container flex-end"},Oe.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Oe.createElement(Te.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))};function Me({value:ye,onChange:be,mode:Fe,options:ke={}}){const De=(0,Oe.useRef)(),[Le,Ie]=(0,Oe.useState)();return(0,Oe.useEffect)(()=>{if(Le){let Be=function(Ue){const _e=Ue.getValue();be&&be(_e)};return Le.on("change",Be),()=>{Le.off("change",Be)}}},[Le,be]),(0,Oe.useEffect)(()=>{Le&&Le.setOption("mode",Fe)},[Le,Fe]),(0,Oe.useEffect)(()=>{Le&&(ye!==Le.getValue()||ye==="")&&setTimeout(()=>{Le.setValue(ye||"")},300)},[Le,ye]),(0,Oe.useEffect)(()=>{if(De.current&&!Le){const Be=ie().fromTextArea(De.current,pe({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ke));Ie(Be)}},[De.current,Le]),Oe.createElement("div",{className:"my-codemirror-container"},Oe.createElement("textarea",{ref:De}))}},91304:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Gr}});var Oe=me(67294),Je=me(4631),x=me.n(Je),Te=me(91033),ve=me(71749),ie=me(57341),te=me(82801),ae=me(88386),ne=me(49047),oe=me(80785),he=me(35598),re=({value:Er="",className:Wt,showTextOnly:$t,showLines:cn,style:Rn={}})=>{const jt=(0,Oe.useMemo)(()=>"",[Er]);return Oe.createElement(Oe.Fragment,null,Oe.createElement("div",{dangerouslySetInnerHTML:{__html:jt}}))},se=me(67294),ce=Object.defineProperty,fe=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ge=(Er,Wt,$t)=>Wt in Er?ce(Er,Wt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Er[Wt]=$t,Me=(Er,Wt)=>{for(var $t in Wt||(Wt={}))Se.call(Wt,$t)&&ge(Er,$t,Wt[$t]);if(le)for(var $t of le(Wt))xe.call(Wt,$t)&&ge(Er,$t,Wt[$t]);return Er},ye=(Er,Wt)=>fe(Er,pe(Wt));let be=[{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\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",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 Fe({onActionCallback:Er,title:Wt,icon:$t,actionName:cn,className:Rn="",children:jt}){function an(){Er(cn)}return se.createElement("a",{title:Wt,className:Rn,onClick:an},se.createElement("i",{className:`${$t}`}),jt)}var ke=({watch:Er,showNullButton:Wt,showNullProgramButton:$t,onActionCallback:cn,fullScreen:Rn,insertTemp:jt,hidetoolBar:an,extraUse:Tn})=>{const vn=[...be,{title:`${Er?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Er?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return se.createElement("ul",{className:"markdown-toolbar-container"},!an&&vn.map((Bn,_n)=>se.createElement("li",{key:_n},Bn.actionName?se.createElement(Fe,ye(Me({},Bn),{onActionCallback:cn})):se.createElement("span",{className:"v-line"}))),Wt?se.createElement("li",null,se.createElement(Fe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:cn},se.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,$t?se.createElement(se.Fragment,null,se.createElement("li",null,se.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:cn},se.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),se.createElement("li",null,se.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:cn},se.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,jt&&se.createElement("li",null,se.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${jt}`,onActionCallback:cn},se.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Tn&&se.createElement("li",null,Tn),se.createElement("li",{className:"btn-full-screen"},se.createElement(Fe,{icon:`${Rn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Rn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:cn})))},De=me(76621),Le=me(22150),Ie=me(69677),Be=me(71577),Ue=Object.defineProperty,_e=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,pt=(Er,Wt,$t)=>Wt in Er?Ue(Er,Wt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Er[Wt]=$t,Ge=(Er,Wt)=>{for(var $t in Wt||(Wt={}))et.call(Wt,$t)&&pt(Er,$t,Wt[$t]);if(Ze)for(var $t of Ze(Wt))it.call(Wt,$t)&&pt(Er,$t,Wt[$t]);return Er},Xe=(Er,Wt)=>_e(Er,We(Wt));const lt={labelCol:{span:4},wrapperCol:{span:20}};var dt=({callback:Er,onCancel:Wt})=>{function $t(cn){Er(cn)}return Oe.createElement(Le.default,Xe(Ge({},lt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$t,style:{width:500}}),Oe.createElement(Le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Oe.createElement(Ie.default,null)),Oe.createElement(Le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Oe.createElement(Ie.default,null)),Oe.createElement("div",{className:"flex-container flex-end"},Oe.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Oe.createElement(Be.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))},st=me(57444),nt=me(70859),rt=me(14446),at=me(71230),gt=me(63205),vt=me(67294),Et=({callback:Er,onCancel:Wt})=>{const $t=document.createElement("canvas"),cn=$t.getContext("2d");$t.width=1e3,$t.height=800,cn.fillStyle="#ffffff",cn.fillRect(0,0,$t.width,$t.height);const Rn=$t.toDataURL("image/png");return vt.createElement(rt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},vt.createElement(at.Z,{style:{height:"100vh"}},vt.createElement(gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Rn,visible:!0,title:String(Date.now())},onOk:jt=>{Er({src:jt.url})},onClose:Wt})))},At=me(72565),ut=me(15746),Ye=me(2453),Ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},de=me(67294),He=(0,Oe.forwardRef)(({onCancel:Er,editImgId:Wt,callback:$t},cn)=>{let Rn=(0,Oe.useRef)(),jt=(0,Oe.useRef)(),an=(0,Oe.useRef)(),Tn=(0,Oe.useRef)(!1);const vn=(0,Oe.useRef)(!1);console.log("ref:",cn);const[Bn,_n]=(0,Oe.useState)(0),[hr,ei]=(0,Oe.useState)("100vh");return(0,Oe.useEffect)(()=>{_n(1);try{indexedDB.databases().then(Ir=>{Ir.forEach(Lr=>indexedDB.deleteDatabase(Lr.name))})}catch(Ir){}},[]),(0,Oe.useImperativeHandle)(cn,()=>({setHeight:ei})),de.createElement("div",{ref:vn,className:"body-overflow-initial"},de.createElement(At.Z,{width:"100vw",height:hr,footer:null,closable:!0,placement:"bottom",open:!!Bn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ve.drawerWrap}`,onClose:()=>{window.saveDrawData(Ir=>{$t({src:`/api/attachments/${Ir}`,id:Ir})})},title:de.createElement(at.Z,{align:"middle"},de.createElement(ut.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),de.createElement(ut.Z,{onClick:()=>{ei(hr==="60px"?"100vh":"60px")}},de.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),de.createElement(ut.Z,{onClick:()=>{window.saveDrawData(Ir=>{if(Ir===null){Ye.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ye.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),$t({src:`/api/attachments/${Ir}`,id:Ir,disabledClose:!0})})}},de.createElement(Be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},de.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Wt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:jt})))}),je=me(11320),Ae=me(78045),Ne=me(31795);const ze=Ae.ZP.Group,Qe={margin:"0 8px"};var ot=({callback:Er,onCancel:Wt})=>{function $t(cn){Er(cn)}return Oe.createElement(Le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$t},Oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Oe.createElement("span",{style:Qe},"\u5355\u5143\u683C\u6570\uFF1A"),Oe.createElement("span",{style:Qe},"\u884C\u6570"),Oe.createElement(Le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Oe.createElement(Ne.Z,null)),Oe.createElement("span",{style:Qe},"\u5217\u6570"),Oe.createElement(Le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Oe.createElement(Ne.Z,null))),Oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Oe.createElement("span",{style:Qe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Oe.createElement(Le.default.Item,{name:"align"},Oe.createElement(ze,null,Oe.createElement(Ae.ZP,{value:"default"},Oe.createElement("i",{className:"fa fa-align-justify"})),Oe.createElement(Ae.ZP,{value:"left"},Oe.createElement("i",{className:"fa fa-align-left"})),Oe.createElement(Ae.ZP,{value:"center"},Oe.createElement("i",{className:"fa fa-align-center"})),Oe.createElement(Ae.ZP,{value:"right"},Oe.createElement("i",{className:"fa fa-align-right"}))))),Oe.createElement("div",{className:"flex-container flex-end"},Oe.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Oe.createElement(Be.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))},mt=me(47897),Ot=me(61016),xt=me.n(Ot),xn=(0,Oe.forwardRef)(({use3d:Er,width:Wt,height:$t,callback:cn,showSaveButton:Rn},jt)=>{const an=(0,Oe.useRef)(),Tn=(0,Oe.useRef)(),[vn,Bn]=(0,Oe.useState)(!1),_n=(0,Oe.useRef)({id:an,appName:"graphing",width:Wt||1e3,height:$t||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Oe.useEffect)(()=>{Tn.current=new(xt())(_n.current,!0),window.onload=function(){Tn.current.inject("applet_container")}},[]);const hr=()=>{var ei=window.ggbApplet.getPNGBase64(1,!0,72);return cn&&cn(ei),ei};return(0,Oe.useEffect)(()=>{_n.current.appName=vn?"3D":"graphing",Tn.current.inject("applet_container")},[vn]),(0,Oe.useEffect)(()=>{Bn(Er)},[Er]),(0,Oe.useImperativeHandle)(jt,()=>({getImgData:hr})),Oe.createElement(Oe.Fragment,null,Oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:an}),Oe.createElement(at.Z,{align:"middle"},Oe.createElement(ut.Z,{flex:1},Oe.createElement(mt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:vn,onChange:ei=>Bn(ei)})),Oe.createElement(ut.Z,null,Oe.createElement(Be.ZP,{size:"large",onClick:hr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ft=me(36527),Qt=me(25934);const Zt="link",bn="upload-image",Pt="add-flowchart",zt="draw-image",sn="add-flowchart",yn="code-block",kn="add-table",Gn="------------",dr={default:Gn,left:`:${Gn}`,center:`:${Gn}:`,right:`${Gn}:`};var Or=me(99914),zr=(Er,Wt,$t)=>new Promise((cn,Rn)=>{var jt=vn=>{try{Tn($t.next(vn))}catch(Bn){Rn(Bn)}},an=vn=>{try{Tn($t.throw(vn))}catch(Bn){Rn(Bn)}},Tn=vn=>vn.done?cn(vn.value):Promise.resolve(vn.value).then(jt,an);Tn(($t=$t.apply(Er,Wt)).next())});function Hr(){}let Dr=0;const Kr=1e4,Ai="\u2581",Di="@\u2581\u2581@",Zi="@\u2581@",di=`
|
|
|
**\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`,rn=["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 zn(Er){return/^\d+$/.test(Er)?`${Er}px`:Er}const lr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tr={[lr+"-B"]:"bold",[lr+"-I"]:"italic"},Pr={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[yn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[bn]:"\u6DFB\u52A0\u56FE\u7247",[zt]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[kn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Gr=({defaultValue:Er="",onChange:Wt,width:$t="100%",height:cn=400,miniToolbar:Rn=!1,isFocus:jt=!1,watch:an,insertTemp:Tn,mode:vn="markdown",id:Bn="markdown-editor-id",showResizeBar:_n=!1,noStorage:hr=!1,showNullButton:ei=!1,showNullProgramButton:Ir=!1,hidetoolBar:Lr=!1,fullScreen:Wr=!1,onBlur:Vr,onCMBeforeChange:nn,onFullScreen:Jt,className:pn="",disablePaste:tr=!1,disabled:Ar=!1,disabledFill:jn=!1,placeholder:Jn="",values:ir="",extraUse:kr,onAddBlank:Ur})=>{const[Wn,Oi]=(0,Oe.useState)(null),[bi,xa]=(0,Oe.useState)(Er),[ha,ia]=(0,Oe.useState)(an),[Ha,Ji]=(0,Oe.useState)(Wr),[Wi,wa]=(0,Oe.useState)(""),[Fa,Ii]=(0,Oe.useState)(0),[la,Oa]=(0,Oe.useState)(cn),[ao,Qa]=(0,Oe.useState)(!1),Ni=(0,Oe.useRef)((0,Qt.Z)()),mn=(0,Oe.useRef)(!1),ln=(0,Oe.useRef)(),[Fn,or]=(0,Oe.useState)(0),[br,Xr]=(0,Oe.useState)(0),oi=(0,Oe.useRef)(),pi=(0,Oe.useRef)(),Ti=(0,Oe.useRef)(),vi=(0,Oe.useRef)(),Ri=(0,Oe.useRef)(),$i=(0,Oe.useRef)(),ni=()=>zr(void 0,null,function*(){var Dn;const In=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ni.current}});(Dn=In==null?void 0:In.attachments)!=null&&Dn.length&&(console.log("cm:",Wn,oi),In.attachments.map(Cn=>{Cn.content_type.indexOf("image")>-1?Wn.replaceSelection(``):Cn.content_type.indexOf("video")>-1?Wn.replaceSelection(`<video width="100%" controls src="${je.Z.API_SERVER}/api/attachments/${data.id}"></video>`):Cn.content_type.indexOf("pdf")>-1?Wn.replaceSelection(`<a href="${je.Z.API_SERVER}/api/attachments/${Cn.id}?type=${Cn.content_type}&disposition=inline" target="_blank">${Cn.name}</a>`):Wn.replaceSelection(`[${Cn.name}](${je.Z.API_SERVER}/api/attachments/${Cn.id}?type=${Cn.content_type})`)}))});(0,Oe.useEffect)(()=>{const Dn=window.scrollY||window.pageYOffset;xa(ir),Wn==null||Wn.setValue(ir),window.scrollTo(0,Dn)},[ir]),(0,Oe.useEffect)(()=>{Jt==null||Jt(Ha)},[Ha]),(0,Oe.useEffect)(()=>{if(oi.current){let Dn=function(Cn,Zn){var pr;if(tr){Zn.preventDefault();return}const $n=Zn.clipboardData;if($n){const ar=$n.types.toString(),ur=$n.items;if(ar==="Files"||$n.types.indexOf("Files")>-1){if(Zn.preventDefault(),vn=="stex")return;try{let mr=ur[1];((pr=ur[0])==null?void 0:pr.kind)==="file"&&(mr=ur[0]);const wr=mr.getAsFile(),kt=wr.name.split(".").pop();(0,nt.I)(wr,It=>{var qt,Yt,En;It.id?((qt=wr==null?void 0:wr.type)==null?void 0:qt.indexOf("image"))>-1?In.replaceSelection(`<img width="100%" src="/api/attachments/${It.id}?type=${It.content_type})" alt="" />`):((Yt=wr==null?void 0:wr.type)==null?void 0:Yt.indexOf("video"))>-1?In.replaceSelection(`<video width="100%" controls src="/api/attachments/${It.id}"></video>`):((En=wr==null?void 0:wr.type)==null?void 0:En.indexOf("pdf"))>-1?In.replaceSelection(`<a href="/api/attachments/${It.id}?type=${wr.type}&disposition=inline" target="_blank">${wr.name}</a>`):rn.includes(kt)?In.replaceSelection(`<a href="/api/attachments/${It.id}?type=office&disposition=inline" target="_blank">${wr.name}</a>`):In.replaceSelection(`[${wr.name}](/api/attachments/${It.id}?type=${It.content_type})`):(It==null?void 0:It.status)===401&&(Ye.ZP.warning((It==null?void 0:It.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(mr){Ye.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const In=x().fromTextArea(oi.current,{mode:vn,lineNumbers:!Rn,lineWrapping:!0,value:Er,autoCloseTags:!Ir,autoCloseBrackets:!0});return In.on("keyup",function(Cn,Zn){Zn.keyCode===8&&(Cn.getValue()==""?In.setOption("placeholder",Jn):In.setOption("placeholder",null))}),In.on("keydown",function(Cn,Zn){if(Zn.keyCode===8){var pr=Pn(Cn);pr&&Zn.preventDefault()}}),jt&&In.focus(),In.on("paste",Dn),In.on("dragleave",function(Cn,Zn){pi.current.classList.remove("mouse-hover-md")}),Ar&&In.on("beforeChange",function(Cn,Zn){(Zn.origin==="paste"||Zn.origin==="+input")&&Zn.cancel()}),Oi(In),()=>{In.off("paste",Dn)}}},[]);const Sn=(0,Oe.useCallback)(()=>{if(pi.current)try{}catch(Dn){console.log(Dn,"---- to set md editor body height")}},[la,pi,Ha]);(0,Oe.useEffect)(()=>{function Dn(){let In=new Te.Z(Cn=>{for(let Zn of Cn)(Zn.target.offsetHeight>0||Zn.target.offsetWidth>0)&&(Sn(),Wn.setSize("100%","100%"),Wn.refresh())});return In.observe(oi.current.parentElement),In}if(Wn){const In=Dn();return()=>{var Cn,Zn;(Cn=oi.current)!=null&&Cn.parentElement&&In.unobserve((Zn=oi.current)==null?void 0:Zn.parentElement)}}},[Wn,Sn]),(0,Oe.useEffect)(()=>{if(Wn){let Dn=[];for(const[In,Cn]of Object.entries(Tr)){let Zn={[In]:()=>{Yn(Cn)}};Dn.push(Zn),Wn.addKeyMap(Zn)}return ln.current=setInterval(()=>{mn.current&&ni()},4e3),()=>{clearInterval(ln.current);for(let In of Dn)Wn.removeKeyMap(In)}}},[Wn]),(0,Oe.useEffect)(()=>{Wr!==Ha&&Ji(Wr)},[Wr]),(0,Or.Z)(()=>{if(!hr&&Fa>0){let Dn=new Date().getTime(),In=window.sessionStorage.getItem(Bn);Dn>=Fa+Kr&&(!In||In!==bi)&&(window.sessionStorage.setItem(Bn,bi),Qa(!0))}},Kr),(0,Oe.useEffect)(()=>{ia(an)},[Wn,an]),(0,Oe.useEffect)(()=>{Wn&&jt&&Wn.focus()},[Wn,jt]),(0,Oe.useEffect)(()=>{if(ha&&Wn){let Dn=function(Cn){let Zn=Cn.target;if(vi.current){let pr=Zn.scrollTop/Zn.scrollHeight;vi.current.scrollTop=vi.current.scrollHeight*pr}};const In=Wn.getScrollerElement();return In.addEventListener("scroll",Dn),()=>{In.removeEventListener("scroll",Dn)}}},[Wn,ha]),(0,Oe.useEffect)(()=>{if(Wn&&nn){let Dn=function(In,Cn){nn(In,Cn)};return Wn.on("beforeChange",Dn),()=>{Wn.off("beforeChange",Dn)}}},[Wn,nn]),(0,Oe.useEffect)(()=>{if(Wn&&Vr){let Dn=function(){Vr(Wn.getValue())};return Wn.on("blur",Dn),()=>{Wn.off("blur",Dn)}}},[Wn,Vr]);function Pn(Dn,In){var Cn=Dn.getDoc(),Zn=Cn.getCursor(),pr=Cn.getLine(Zn.line),$n=pr.charAt(Zn.ch-1),ar=pr.lastIndexOf("@\u2581@",Zn.ch),ur=pr.lastIndexOf("@\u2581\u2581@",Zn.ch),mr=ar>ur?ar:ur,wr=ar>ur?3:4;if(Di.indexOf($n)===-1)return null;if(console.log("change1:",In,Dn,pr,Zn,mr,ar,ur,$n),mr>=0&&Zn.ch-mr<5){var kt=mr+wr;return Cn.replaceRange("",{line:Zn.line,ch:mr},{line:Zn.line,ch:kt}),{line:Zn.line,ch:kt}}return null}(0,Oe.useEffect)(()=>{if(Wn){let Dn=function(In,Cn){const Zn=In.getValue();xa(Zn),Ii(new Date().getTime()),In.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Wt&&(Ir?Wt(Zn,on(Zn)):Wt(Zn))};return Wn.on("change",Dn),()=>{Wn.off("change",Dn)}}},[Wn,Wt]),(0,Oe.useEffect)(()=>{if(Wn)if(Er==null)Wn.setValue(""),xa("");else{const Dn=window.scrollY||window.pageYOffset;Er!==Wn.getValue()&&(Wn.setValue(Er),xa(Er),Wn.setCursor(Ar?1:Wn.lineCount(),0),window.scrollTo(0,Dn))}},[Wn,Er]);const Yn=(0,Oe.useCallback)(Dn=>{const In=Wn.getCursor(),Cn=Wn.getSelection();let Zn=Cn.split(`
|
|
|
`);switch(Dn){case"bold":return Wn.replaceSelection("**"+Cn+"**"),Cn===""&&Wn.setCursor(In.line,In.ch+2),Wn.focus();case"italic":return Wn.replaceSelection("*"+Cn+"*"),Cn===""&&Wn.setCursor(In.line,In.ch+1),Wn.focus();case"code":return Wn.replaceSelection("`"+Cn+"`"),Cn===""&&Wn.setCursor(In.line,In.ch+1),Wn.focus();case"inline-latex":return wa("inline-latex"),Wn.focus();case"latex":return Wn.replaceSelection("```latex\n"+Cn+"\n```"),Wn.setCursor(In.line+1,Cn.length+1),Wn.focus();case"line-break":return Wn.replaceSelection(`<br/>
|
|
|
`),Wn.focus();case"list-ul":return Cn===""?Wn.replaceSelection("- "+Cn):Wn.replaceSelection(Zn.map(pr=>pr===""?"":`- ${pr}`).join(`
|
|
|
`)),Wn.focus();case"list-ol":return Cn===""?Wn.replaceSelection("1. "+Cn):Wn.replaceSelection(Zn.map((pr,$n)=>pr===""?"":`${$n+1}. ${pr}`).join(`
|
|
|
`)),Wn.focus();case"add-null-ch":Ur==null||Ur();return;case"add-signal":return Cn===""&&Wn.setCursor(In.line,In.ch),Wn.replaceSelection(Zi),Wn.focus();case"add-multiple":return Cn===""&&Wn.setCursor(In.line,In.ch),Wn.replaceSelection(Di),Wn.focus();case"inster-template-1":return Cn===""&&Wn.setCursor(In.line,In.ch),Wn.replaceSelection(di),Wn.focus();case"eraser":return Wn.setValue(""),Wn.focus();case"trigger-watch":return ia(!ha),Wn.focus();case"trigger-full-screen":return Ji(!Ha),Wn.focus();case Zt:wa(Zt);return;case yn:wa(yn);return;case bn:wa(bn);return;case zt:wa(zt);return;case"maths-latex":wa("maths-latex");return;case Pt:Ri.current="",sessionStorage.removeItem("file_id"),wa(Pt);return;case kn:wa(kn);return;default:throw new Error}},[Wn,ha,Ha]),qe=(0,Oe.useCallback)((Dn,In)=>{var Cn,Zn,pr,$n,ar,ur;wa("");const{src:mr,alt:wr,id:kt}=Dn||{};switch(Wi){case Zt:const{title:Hn,link:Ht}=Dn;return Wn.replaceSelection(`[${Hn}](${Ht})`),Wn.focus();case yn:const{language:Vt,content:Gt}=Dn;return Wn.replaceSelection(["```"+Vt,Gt,"```"].join(`
|
|
|
`)),Wn.focus();case"maths-latex":for(var It=atob(Dn),qt=new Uint8Array(It.length),Yt=0;Yt<It.length;Yt++)qt[Yt]=It.charCodeAt(Yt);var En=new Blob([qt],{type:"image/png"});(0,nt.I)(En,Br=>{Br.id?Wn.replaceSelection(``):(Br==null?void 0:Br.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Wn.replaceSelection("`$$"+Dn+"$$`");break;case sn:if(!kt)return;Wn.focus(),Wn.getValue().indexOf(mr)===-1?Wn.replaceSelection(`<center><img id="${kt}" width="80%" src="${mr}" class="draw-flowchart" alt="${wr||""}" /></center>`):document.getElementById(kt).src=je.Z.API_SERVER+mr+"?t="+Date.now();try{setTimeout(()=>{Vr(Wn.getValue())},100)}catch(Br){}break;case bn:case zt:const en=In,Ln=(pr=(Zn=(Cn=en==null?void 0:en.name)==null?void 0:Cn.split("."))==null?void 0:Zn.pop)==null?void 0:pr.call(Zn);return(($n=en==null?void 0:en.type)==null?void 0:$n.indexOf("image"))>-1||!(en!=null&&en.type)?en!=null&&en.align||en!=null&&en.width?Wn.replaceSelection(`<p style="text-align:${en.align||"initial"}"><img width="${en.width?en.width+"%":"initial"}" src="${mr}" alt="${wr||""}" /></p>`):Wn.replaceSelection(`<img width="100%" src="${mr}" alt="${wr||""}" />`):((ar=en==null?void 0:en.type)==null?void 0:ar.indexOf("video"))>-1?Wn.replaceSelection(`<video width="100%" controls src="${mr}"></video>`):((ur=en==null?void 0:en.type)==null?void 0:ur.indexOf("pdf"))>-1?Wn.replaceSelection(`<a href="${mr}?type=${en.type}&disposition=inline" target="_blank">${en.name}</a>`):rn.includes(Ln)?Wn.replaceSelection(`<a href="${mr}?type=office&disposition=inline" target="_blank">${en.name}</a>`):Wn.replaceSelection(`[${en.name}](${mr})`),Wn.focus();case kn:const{row:Qn,col:On,align:Kn}=Dn;let vr=`
|
|
|
`;for(let Br=0;Br<Qn;Br++){let Cr=[],sr=[];for(let Mr=0;Mr<On;Mr++)Br===1&&sr.push(dr[Kn]),Cr.push(" ");Br===1&&(vr+=`| ${sr.join(" | ")} |
|
|
|
`),vr+=`| ${Cr.join(On===1?"":" | ")} |
|
|
|
`}return Wn.replaceSelection(vr+`
|
|
|
`),Wn.focus();default:throw new Error}},[Wn,Wi]),yt=(0,Oe.useMemo)(()=>{switch(Wi){case Zt:return Oe.createElement(dt,{callback:qe,onCancel:St});case yn:return Oe.createElement(st.Z,{callback:qe,onCancel:St});case bn:return Oe.createElement(nt.Z,{callback:qe,onCancel:St});case Pt:return Oe.createElement(He,{editImgId:Ri.current,callback:qe,onCancel:St});case kn:return Oe.createElement(ot,{callback:qe,onCancel:St});case"maths-latex":return Oe.createElement(xn,{showSaveButton:!0,callback:qe});case"inline-latex":return Oe.createElement(Ft.Z,{showSaveButton:!0,callback:qe});default:return null}},[Wi]);function St(){wa("")}(0,Oe.useEffect)(()=>{if(Ti.current){let Dn=function(ar){pr=!0,$n=ar.pageY},In=function(){pr=!1},Cn=function(ar){if(pr){let ur=ar.pageY-$n;ur<0&&(ur=0),ur>300&&(ur=300);let mr=cn+ur+"px";Oa(mr)}},Zn=Ti.current,pr=!1,$n=0;return Zn.addEventListener("mousedown",Dn),document.addEventListener("mousemove",Cn),document.addEventListener("mouseup",In),()=>{Zn.removeEventListener("mousedown",Dn),document.removeEventListener("mousemove",Cn),document.removeEventListener("mouseup",In)}}},[Wn,Ti]),(0,Oe.useEffect)(()=>{Oa(cn)},[cn]);const Dt=zn($t),Tt=zn(la),Nt={width:Dt,height:Tt},_t=(0,Oe.useMemo)(()=>{if(Fa){let Dn=new Date(Fa),In=Dn.getHours(),Cn=Dn.getMinutes(),Zn=Dn.getSeconds();return In=In<10?"0"+In:In,Cn=Cn<10?"0"+Cn:Cn,Zn=Zn<10?"0"+Zn:Zn,`${In}:${Cn}:${Zn}`}return 0},[Fa]),on=Dn=>{const In=[];if(Ir){let Cn=-1;Dn=Dn.replace(/(@▁▁@|@▁@)/g,function(Zn,pr,$n){In.push({multiLine:Zn!==Zi})})}return In};function gn(){window.sessionStorage.removeItem(Bn),Qa(!1),Ii(0)}function Vn(){Qa(!1),Ii(0),Wn.setValue(window.sessionStorage.getItem(Bn))}(0,Oe.useEffect)(()=>{Pr[Wi]&&Wi!==zt&&Wi!==Pt&&setTimeout(()=>{const Dn=document.getElementsByClassName("markdown-popup-form")[0],In=window.innerWidth/2-Dn.offsetWidth/2,Cn=window.innerHeight/2-Dn.offsetHeight/2;or(In),Xr(Cn)},0)},[Wi]);const qn=Dn=>{Dn.preventDefault();const In=Dn.clientX-Fn,Cn=Dn.clientY-br;document.body.onmousemove=Zn=>{let pr=Zn.clientX-In,$n=Zn.clientY-Cn;const ar=document.getElementsByClassName("markdown-popup-form")[0],ur=window.innerWidth-ar.offsetWidth,mr=window.innerHeight-ar.offsetHeight;pr=Math.max(0,Math.min(pr,ur)),$n=Math.max(0,Math.min($n,mr)),Xn(Zn.clientX,Zn.clientY,In,Cn)&&(or(pr),Xr($n))},document.body.onmouseup=function(){document.body.onmousemove=null}},Xn=(Dn,In,Cn,Zn)=>{const pr=document.body.clientHeight,$n=document.body.clientWidth;return Dn<20&&Cn>Dn||Dn>$n-20&&Cn<Dn||In<20&&Zn>In||In>pr-20&&Zn<In?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Oe.createElement(Oe.Fragment,null,Oe.createElement("div",{className:"markdown-editor-wrapper",ref:pi},Oe.createElement("div",{className:`markdown-editor-container ${pn} ${ha?"on-preview":""} ${Rn?"mini":""} ${Ha?"full-screen":""}`,style:Nt},Oe.createElement(ke,{insertTemp:Tn,watch:ha,fullScreen:Ha,showNullButton:ei,showNullProgramButton:Ir,onActionCallback:Yn,hidetoolBar:Lr,extraUse:kr}),Oe.createElement("div",{className:"markdown-editor-body"},Oe.createElement("div",{className:"codemirror-container"},Oe.createElement("textarea",{ref:oi,placeholder:Jn})),ha?Oe.createElement("div",{ref:vi,className:"preview-container"},vn==="stex"&&Oe.createElement(re,{value:bi}),vn!=="stex"&&Oe.createElement(he.Z,{edit:!0,disabledFill:jn,showProgramFill:Ir,value:bi,openEditor:Dn=>{var In;Ri.current=Dn,(In=$i.current)==null||In.setHeight("100vh"),setTimeout(()=>{wa("add-flowchart")},150)}})):null))),_n?Oe.createElement("a",{ref:Ti,className:"editor-resize"}):null,Wi===zt&&Oe.createElement(Et,{callback:qe,onCancel:St}),Wi===Pt&&Oe.createElement(He,{ref:$i,editImgId:Ri.current,callback:qe,onCancel:St}),Oe.createElement(De.Z,null,Pr[Wi]&&Wi!==zt&&Wi!==Pt?Oe.createElement(rt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Fn,top:br},title:Oe.createElement("div",{style:{cursor:"move"},onMouseDown:qn},Pr[Wi]),open:!0,onCancel:St,footer:null,destroyOnClose:!0,width:Wi===Pt?"1200px":null,height:Wi===Pt?"80vh":null,className:"markdown-popup-form"},yt):null))}},70859:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Fe},I:function(){return De}});var Oe=me(22150),Je=me(2453),x=me(69677),Te=me(93421),ve=me(31795),ie=me(78045),te=me(71577),ae=me(15476),ne=me(67294),oe=me(52262),he=me(67294),re=Object.defineProperty,se=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Se=(Le,Ie,Be)=>Ie in Le?re(Le,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Le[Ie]=Be,xe=(Le,Ie)=>{for(var Be in Ie||(Ie={}))pe.call(Ie,Be)&&Se(Le,Be,Ie[Be]);if(fe)for(var Be of fe(Ie))le.call(Ie,Be)&&Se(Le,Be,Ie[Be]);return Le},ge=(Le,Ie)=>se(Le,ce(Ie));const{useForm:Me}=Oe.default,ye={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}};var Fe=({callback:Le,onCancel:Ie})=>{const[Be]=Me();let Ue=(0,ne.useRef)();function _e(et){Ue.current.width=Be.getFieldValue("width"),Ue.current.align=Be.getFieldValue("align"),Le(et,Ue.current)}function We(et,it){if(et.status===-1){Je.ZP.error(et.message);return}Be.setFieldsValue({src:`/api/attachments/${et.id}`,type:it.type})}function Ze(et){let it=et.target.files[0];Ue.current=it,De(it,We)}return he.createElement(Oe.default,ge(xe({form:Be},be),{className:"upload-image-panel",onFinish:_e,style:{width:470,overflow:"hidden"}}),he.createElement(Oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(Oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},he.createElement(x.default,{style:ye})),he.createElement(ke,{onFileChange:Ze}))),he.createElement(Oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(x.default,{style:{width:264}})),he.createElement(Oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(Te.Z,null,he.createElement(Oe.default.Item,{name:"width",style:{margin:0}},he.createElement(ve.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(Oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(ie.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"}]})),he.createElement("aside",null,he.createElement(Oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(te.ZP,{type:"default",onClick:Ie},"\u53D6\u6D88"))))};function ke({onFileChange:Le}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:Le}))}function De(Le,Ie){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,oe.bg)())throw Je.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Be=new FormData;Be.append("editormd-image-file",Le),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var Ue=new window.XMLHttpRequest;Ue.withCredentials=!0,Ue.addEventListener("load",function(_e){Ie(JSON.parse(_e.target.responseText),Le)},!1),Ue.addEventListener("error",function(_e){console.error(_e)},!1),Ue.open("POST",`${ae.KI}/api/attachments.json`),Ue.send(Be)}},76621:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return x}});var Oe=me(67294),Je=me(73935);class x extends Oe.Component{constructor(ve){super(ve);const ie=window.document;this.node=ie.createElement("div"),ie.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Je.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},19522:function(tn,Kt,me){"use strict";var Oe=me(12867),Je=me(11713),x=me(47897),Te=me(67294);const ve=Je.default.Option;Kt.Z=({isTheoretical:ie,onFontSizeChange:te,cmFontSize:ae,cmCodeMode:ne,autoFormat:oe,onCodeModeChange:he,onTabToSpace:re,onAutoFormat:se,formatDocument:ce,className:fe="",tabToSpace:pe,children:le,code_editor:Se,challenge:xe,shixun_environment_id:ge,shixun_environments:Me})=>{var ye;const be={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Fe=(ye=Me==null?void 0:Me.find(ke=>ke.shixun_environment_id===ge))==null?void 0:ye.program_language;return Te.createElement("div",{className:`tpi-code-setting ${fe}`},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(Je.default,{bordered:!1,size:"small",value:ne,onChange:he},Te.createElement(ve,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Te.createElement(ve,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ie&&Te.createElement(Te.Fragment,null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Te.createElement(Je.default,{bordered:!1,size:"small",value:ae,onChange:te},Te.createElement(ve,{value:12},"12px"),Te.createElement(ve,{value:14},"14px"),Te.createElement(ve,{value:16},"16px"),Te.createElement(ve,{value:18},"18px"),Te.createElement(ve,{value:20},"20px"),Te.createElement(ve,{value:22},"22px"))),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"Tab\u8F6C\u6362"),Te.createElement(x.Z,{checked:pe,onChange:re})),Te.createElement("div",{className:"file-item",onClick:ce},Te.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ie&&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"))),le),!ie&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5FEB\u6377\u952E"),Te.createElement("section",null,Fe&&Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),Te.createElement("span",null,Fe)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Te.createElement("span",null,be[xe==null?void 0:xe.difficulty])),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Te.createElement("span",null,Se==null?void 0:Se.name)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Te.createElement("span",null,Se!=null&&Se.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},5476:function(tn,Kt,me){"use strict";me.d(Kt,{i:function(){return be},Z:function(){return ke}});var Oe={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Je=me(57953),x=me(83062),Te=me(38703),ve=me(94184),ie=me.n(ve),te=me(28706),ae=me(26194),ne=me(52262),oe=me(79005),he=me(20345),re=me(77882),se=me(31081),ce=me(75309),fe=me(71979),pe=me(47558),le=me(60345),Se=me(66832),xe=me(96593),ge=me(19664),Me=me(91833),ye=me(67294);const be=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:oe,swimg:he},{name:"101\u8BA1\u5212",ptimg:re,swimg:se},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:ce,swimg:fe},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:pe,swimg:le},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Se,swimg:xe},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ge,swimg:Me}];var ke=({className:De,dataSource:Le=[],col:Ie=4,right:Be,bottom:Ue=23,precision:_e=0,wrapWidth:We=1200,trackEventItems:Ze,loading:et,onRemove:it=()=>{},isCurrent:pt=!0,showAlias:Ge=!1,showProgress:Xe=!1})=>{const lt=Math.floor((We-(Ie-1)*Be)/Ie),dt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(st=>(window.ENV==="build"&&(st.ptimg=`/react/build${st.ptimg}`,st.swimg=`/react/build${st.swimg}`),st));return ye.createElement(Je.Z,{spinning:et},ye.createElement("div",{className:ie()(Oe.list,De)},!!(Le!=null&&Le.length)&&(Le==null?void 0:Le.map((st,nt)=>{var rt,at,gt,vt,Et,At;const{name:ut,id:Ye,identifier:Ve,featured:de,school_name:Ce,image_url:He,excellent:je,is_plan:Ae}=st;return ye.createElement("div",{key:Ye,className:pt&&Xe?Oe.wrapisCurrent:Oe.wrap,style:{width:lt,marginRight:(1+nt)%Ie===0?0:Be+_e,marginBottom:Ue}},ye.createElement("a",{className:Oe.li,onClick:Ne=>{Ne.preventDefault(),Ne.stopPropagation(),Ze&&(0,te.L9)([Ze]),(0,te.xg)(`/paths/${Ve}`)}},ye.createElement("div",{className:Oe.img},ye.createElement("img",{className:Oe.cover,src:`${He}`}),pt&&(0,ne.bg)()&&(st==null?void 0:st.studying)&&ye.createElement("div",{className:`${Oe.movebq} user-path-items`,onClick:Ne=>{Ne.stopPropagation(),it(st)}},ye.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ye.createElement("span",{className:"c-red"},"\u79FB\u9664")),(rt=st==null?void 0:st.subject_tags)==null?void 0:rt.map((Ne,ze)=>{var Qe,ot;if(ze===0){const Ot=(Qe=dt.find(xt=>xt.name==Ne))==null?void 0:Qe.swimg;return ye.createElement("img",{className:Oe.sign,src:Ot,style:{left:"-4px"}})}const mt=(ot=dt.find(Ot=>Ot.name==Ne))==null?void 0:ot.ptimg;return ye.createElement("img",{className:Oe.sign,src:mt,style:{left:`${48+52*(ze-1)+2*ze}px`}})}),ye.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(st==null?void 0:st.excellent)&&ye.createElement("div",{className:Oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ye.createElement("div",{className:Oe.name},ye.createElement(x.Z,{title:Ge&&(st!=null&&st.excellent_alias_name)?ye.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ut}`,ye.createElement("br",null),ye.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${st==null?void 0:st.excellent_alias_name}`)):ut},ye.createElement("span",{className:Oe.e},Ge&&(st==null?void 0:st.excellent_alias_name)||ut))),pt&&Xe&&((at=st==null?void 0:st.progress)==null?void 0:at.all_score)!=0&&ye.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ye.createElement(Te.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((gt=st==null?void 0:st.progress)==null?void 0:gt.my_score)/((vt=st==null?void 0:st.progress)==null?void 0:vt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Et=st==null?void 0:st.progress)==null?void 0:Et.my_score,"/",(At=st==null?void 0:st.progress)==null?void 0:At.all_score),(!pt||!Xe)&&ye.createElement("div",{className:Oe.tags},ye.createElement("div",null,ye.createElement(x.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ye.createElement("span",null,st.stages_count))),ye.createElement(x.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ye.createElement("span",null,st.members_count)))))))})),!Le.length&&ye.createElement(ae.Z,null)))}},78311:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ie}});var Oe=me(67294),Je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},x=me(94184),Te=me.n(x),ie=({dataSource:te=[],value:ae,onChange:ne,className:oe,style:he={}})=>Oe.createElement("div",{style:he,className:Te()(Je.tabs,oe)},te.map(re=>Oe.createElement("span",{onClick:()=>ne(re.id),className:ae===re.id?Je.active:"",key:re.id},re.name)))},64743:function(tn,Kt,me){"use strict";me.d(Kt,{jL:function(){return ve},w9:function(){return lr},vv:function(){return Rn},dN:function(){return Er},QD:function(){return ln},cQ:function(){return Ae.Z},vg:function(){return Zi},Oz:function(){return zr},op:function(){return la},O5:function(){return Nt},_b:function(){return pi},t7:function(){return Ie},tT:function(){return _e},Gi:function(){return Vr},YG:function(){return vn},Ed:function(){return Lr},kT:function(){return hr},qp:function(){return le},Um:function(){return be},K3:function(){return ge},vr:function(){return br},qE:function(){return Qa},Je:function(){return et},wb:function(){return vt},rC:function(){return je},lB:function(){return ut},cq:function(){return jn},kO:function(){return Ur},tp:function(){return Fe.Z},Si:function(){return gn},k8:function(){return Hn},Du:function(){return pr}});var Oe=me(67294),Je={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+P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H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ve=({dataSource:Ht=[],img:Vt,imgWidth:Gt=346,title:en,sunTitle:Ln,bannerExtraContent:Qn})=>Oe.createElement("div",{className:Je.banner},Oe.createElement("div",{className:Je.content},Oe.createElement("aside",null,Oe.createElement("p",null,Oe.createElement("b",null,en),Oe.createElement("span",null,Ln)),Ht.length>0&&Oe.createElement("div",{className:Je.btns},Ht.map((On,Kn)=>Oe.createElement("div",{key:Kn,onClick:On.click},On.name,On.sign?Oe.createElement("img",{src:x,width:39}):null))),Qn),Vt&&Oe.createElement("img",{style:{marginTop:33,marginRight:38},src:Vt,width:Gt}))),ie={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},te=me(94184),ae=me.n(te),ne=me(96486),oe=Object.defineProperty,he=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(Ht,Vt,Gt)=>Vt in Ht?oe(Ht,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Ht[Vt]=Gt,fe=(Ht,Vt)=>{for(var Gt in Vt||(Vt={}))re.call(Vt,Gt)&&ce(Ht,Gt,Vt[Gt]);if(he)for(var Gt of he(Vt))se.call(Vt,Gt)&&ce(Ht,Gt,Vt[Gt]);return Ht},le=({dataSource:Ht=[],value:Vt,onChange:Gt,onTitleChange:en,className:Ln,title:Qn,titleWidth:On=41,style:Kn={},fontColor:vr="#6A7283",showCount:Br,classNameActive:Cr,styleItem:sr={}})=>{const[Mr,Nr]=(0,Oe.useState)(0),[Yr,Rr]=(0,Oe.useState)(!1),xr=(0,Oe.useRef)(null),ii=(0,Oe.useRef)(null);return(0,Oe.useEffect)(()=>{var ri;Ht.length!==0&&(((ri=xr==null?void 0:xr.current)==null?void 0:ri.clientHeight)>97?Nr(1):Nr(0)),Ht.length===0&&Nr(0),Rr(!1)},[Ht]),Oe.createElement("div",{className:ae()(ie.row,Ln),style:Kn},Oe.createElement("div",{onClick:(0,ne.throttle)(()=>en==null?void 0:en(),2e3),style:{width:On,marginTop:Yr?12:4},className:`${ie.title} ${en?"current":""}`},Qn),Oe.createElement("div",{className:Yr?`${ie.tagsWrap} ${ie.tagsBorderWrap}`:ie.tagsWrap},Oe.createElement("div",{className:ie.bar,ref:ii,style:Mr>0?{height:Mr===1?97:"auto",overflow:Mr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Oe.createElement("div",{className:ie.tag,ref:xr},Ht==null?void 0:Ht.map(ri=>Oe.createElement("span",{onClick:()=>Gt(ri.id),key:ri.id,style:fe(fe({color:vr},sr),(ri==null?void 0:ri.style)||{}),className:Vt===ri.id?ae()(Cr||ie.active,ri.classNameActive):""},Oe.createElement("span",{title:ri.name,className:ie.name},ri.name),!!Br&&Oe.createElement("span",{className:ie.num},ri.count))))),!!Mr&&Oe.createElement(Oe.Fragment,null,Mr===1?Oe.createElement("div",{onClick:()=>{var ri;Nr(2),((ri=xr==null?void 0:xr.current)==null?void 0:ri.clientHeight)>245?Rr(!0):Rr(!1)},className:ie.action},"\u5C55\u5F00",Oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Oe.createElement("div",{onClick:()=>{ii.current.scrollTop=0,Nr(1),Rr(!1)},className:ie.action},"\u6536\u8D77",Oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Se={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},ge=({dataSource:Ht=[],value:Vt,onChange:Gt,onTitleChange:en,className:Ln,title:Qn,titleWidth:On=41,style:Kn={},fontColor:vr="#6A7283",showCount:Br,expand:Cr=!0})=>{const[sr,Mr]=(0,Oe.useState)(0),[Nr,Yr]=(0,Oe.useState)(!1),Rr=(0,Oe.useRef)(null),xr=(0,Oe.useRef)(null),[ii,ri]=(0,Oe.useState)(Cr);return Oe.createElement("div",{className:ae()(Se.row,Ln),style:Kn},Oe.createElement("div",{className:"flex item-center justify-between"},Oe.createElement("div",{onClick:(0,ne.throttle)(()=>en==null?void 0:en(),2e3),style:{width:On,marginTop:Nr?12:4},className:`${Se.title} ${en?"current":""}`},Qn),Oe.createElement("i",{className:`iconfont ${ii?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:ii?8:10},onClick:()=>ri(!ii)})),ii&&Oe.createElement("div",{className:Nr?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},Oe.createElement("div",{className:Se.fenge}),Oe.createElement("div",{className:Se.bar,ref:xr},Oe.createElement("div",{className:Se.tag,ref:Rr},Ht==null?void 0:Ht.map(Fi=>Oe.createElement("span",{onClick:()=>Gt(Fi.id),key:Fi.id,style:{color:vr},className:Vt===Fi.id?Se.active:""},Oe.createElement("span",{title:Fi.name,className:Se.name},Fi.name),!!Br&&Oe.createElement("span",{className:Se.num},Fi.count)))))))},Me={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},be=({dataSource:Ht=[],value:Vt,onChange:Gt,onTitleChange:en,className:Ln,title:Qn,titleWidth:On=41,style:Kn={},fontColor:vr="#fff",showCount:Br,expand:Cr=!0})=>{const[sr,Mr]=(0,Oe.useState)(0),[Nr,Yr]=(0,Oe.useState)(!1),Rr=(0,Oe.useRef)(null),xr=(0,Oe.useRef)(null),[ii,ri]=(0,Oe.useState)(Cr);return Oe.createElement("div",{className:ae()(Me.row,Ln),style:Kn},Oe.createElement("div",{className:"flex item-center justify-between"},Oe.createElement("div",{onClick:(0,ne.throttle)(()=>en==null?void 0:en(),2e3),style:{width:On},className:`${Me.title} ${en?"current":""}`},Qn),Oe.createElement("i",{className:`iconfont ${ii?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:ii?"#00DDC7":"#037F74",fontSize:ii?10:12},onClick:()=>ri(!ii)})),ii&&Oe.createElement("div",{className:Nr?`${Me.tagsWrap} ${Me.tagsBorderWrap}`:Me.tagsWrap},Oe.createElement("div",{className:Me.bar,ref:xr},Oe.createElement("div",{className:Me.tag,ref:Rr},Ht==null?void 0:Ht.map(Fi=>Oe.createElement("span",{onClick:()=>Gt(Fi.id),key:Fi.id,style:{color:vr},className:Vt===Fi.id?Me.active:""},Oe.createElement("span",{title:Fi.name,className:Me.name},Fi.name),!!Br&&Oe.createElement("span",{className:Me.num},Fi.count)))))))},Fe=me(78311),ke={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},De=me(69677),Ie=({dataSource:Ht=[],value:Vt="",onChange:Gt,onInputChange:en=()=>{},className:Ln,style:Qn={},placeholder:On,allowClear:Kn=!1})=>{var vr;const[Br,Cr]=(0,Oe.useState)(""),[sr,Mr]=(0,Oe.useState)("");(0,Oe.useEffect)(()=>{var Rr;let xr=Vt;(Rr=JSON.stringify(Vt))!=null&&Rr.includes("{")&&(Cr(Vt.id),xr=Vt.value||"");try{Mr(decodeURIComponent(xr||""))}catch(ii){Mr(decodeURIComponent(xr||""))}},[Vt]);const Nr=()=>{Gt(encodeURIComponent(sr),Br||null)},Yr=Rr=>{Rr!==Br&&(Cr(Rr),Gt(encodeURIComponent(sr),Rr))};return Oe.createElement("div",{className:ae()(ke.input,Ln),style:Qn},!!Ht.length&&Oe.createElement("div",{className:ke.dropdown},Oe.createElement("div",{className:ke.text},(vr=Ht.find(Rr=>Rr.id===Br))==null?void 0:vr.name,Oe.createElement("i",{className:"iconfont icon-zhankai4"}),Oe.createElement("b",{className:ke.b1}),Oe.createElement("b",{className:ke.b2})),Oe.createElement("div",{className:ke.menu},Ht.map((Rr,xr)=>Oe.createElement("div",{key:xr,onClick:()=>Yr(Rr.id)},Rr.name)))),Oe.createElement(De.default,{onPressEnter:Nr,value:sr,onChange:Rr=>{Mr(Rr.target.value),en(encodeURIComponent(Rr.target.value),Br||null)},bordered:!1,placeholder:On}),Oe.createElement("i",{onClick:Nr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Be={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},_e=({dataSource:Ht=[],value:Vt="",onChange:Gt,onInputChange:en=()=>{},className:Ln,style:Qn={},placeholder:On,allowClear:Kn=!1})=>{var vr;const[Br,Cr]=(0,Oe.useState)(""),[sr,Mr]=(0,Oe.useState)("");(0,Oe.useEffect)(()=>{var Rr;let xr=Vt;(Rr=JSON.stringify(Vt))!=null&&Rr.includes("{")&&(Cr(Vt.id),xr=Vt.value||"");try{Mr(decodeURIComponent(xr||""))}catch(ii){Mr(decodeURIComponent(xr||""))}},[Vt]);const Nr=()=>{Gt(encodeURIComponent(sr),Br||null)},Yr=Rr=>{Rr!==Br&&(Cr(Rr),Gt(encodeURIComponent(sr),Rr))};return Oe.createElement("div",{className:ae()(Be.input,Ln),style:Qn},!!Ht.length&&Oe.createElement("div",{className:Be.dropdown},Oe.createElement("div",{className:Be.text},(vr=Ht.find(Rr=>Rr.id===Br))==null?void 0:vr.name,Oe.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),Oe.createElement("div",{className:Be.menu},Ht.map((Rr,xr)=>Oe.createElement("div",{key:xr,onClick:()=>Yr(Rr.id)},Rr.name)))),Oe.createElement(De.default,{onPressEnter:Nr,value:sr,onChange:Rr=>{Mr(Rr.target.value),en(encodeURIComponent(Rr.target.value),Br||null)},bordered:!1,placeholder:On}),Oe.createElement("i",{onClick:Nr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},We={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},et=({value:Ht,onChange:Vt,className:Gt,total:en,pageSize:Ln,style:Qn={}})=>{const On=Ht<2,Kn=Ht>=Math.ceil(en/Ln);return en<=Ln?Oe.createElement(Oe.Fragment,null):Oe.createElement("div",{className:ae()(We.quickPager,Gt),style:Qn},Oe.createElement("div",{onClick:()=>{On||Vt(Ht-1,"prev")},className:On?We.disabled:""},"\u4E0A\u4E00\u9875"),Oe.createElement("div",{onClick:()=>{Kn||Vt(Ht+1,"next")},className:Kn?We.disabled:""},"\u4E0B\u4E00\u9875"))},it={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},pt=me(57953),Ge=me(83062),Xe=me(12604),lt=me(11320),dt=me(28706),st=me(96908),nt=me(57177),rt=me(81378),at=me(26194),vt=({className:Ht,dataSource:Vt=[],col:Gt=4,right:en,bottom:Ln=23,precision:Qn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:vr})=>{const Br=Math.floor((On-(Gt-1)*en)/Gt);return Oe.createElement(pt.Z,{spinning:vr},Oe.createElement("div",{className:ae()(it.list,Ht)},!!Vt.length&&Vt.map((Cr,sr)=>{const{name:Mr,id:Nr,identifier:Yr,power:Rr,cover_image_id:xr,pic:ii}=Cr;return Oe.createElement("div",{className:it.wrap,key:Nr,style:{width:Br,marginRight:(1+sr)%Gt===0?0:en+Qn,marginBottom:Ln}},Oe.createElement("a",{target:"_blank",href:`/shixuns/${Yr}/challenges`,className:it.li,onClick:ri=>{ri.preventDefault(),Kn&&(0,dt.L9)([Kn]),Rr&&(0,dt.xg)(`/shixuns/${Yr}/challenges`)}},Oe.createElement("div",{className:it.img},Oe.createElement("img",{className:it.cover,src:`${ii}`}),Cr.is_jupyter&&Oe.createElement("img",{className:it.sign,src:st}),Cr.is_jupyter_lab&&Oe.createElement("img",{className:it.sign,src:nt}),Cr.is_unity_3d&&Oe.createElement("img",{className:it.sign,src:rt})),Oe.createElement("div",{className:it.name},Oe.createElement(Ge.Z,{title:Mr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Oe.createElement("span",{className:it.e},Mr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Oe.createElement("div",{className:it.tags},Oe.createElement(Ge.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Oe.createElement("span",null,Oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Oe.createElement("span",null,Cr.challenges_count))),!!Cr.myshixuns_count&&Oe.createElement(Ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Oe.createElement("span",null,Oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Oe.createElement("span",null,Cr.myshixuns_count))),Oe.createElement(Ge.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Oe.createElement("span",null,Oe.createElement("span",null,Cr.level))),Oe.createElement("div",{className:it.rate},Oe.createElement(Xe.Z,{allowHalf:!0,disabled:!0,defaultValue:Cr.score_info}),Oe.createElement("span",null,"\xA0",Cr.score_info?`${Cr.score_info}\u5206`:"5\u5206")))),!Rr&&Oe.createElement("div",{className:it.lockWrap},Oe.createElement("img",{src:`${lt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Vt.length&&Oe.createElement(at.Z,null)))},Et={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},ut=({className:Ht,dataSource:Vt=[],col:Gt=4,right:en,bottom:Ln=23,precision:Qn=0,wrapWidth:On=1200,wrapClassName:Kn,trackEventItems:vr,loading:Br})=>{const Cr=Math.floor((On-(Gt-1)*en)/Gt);return Oe.createElement(pt.Z,{spinning:Br},Oe.createElement("div",{className:ae()(Et.list,Ht)},!!Vt.length&&Vt.map((sr,Mr)=>{const{name:Nr,id:Yr,identifier:Rr,power:xr,cover_image_id:ii,pic:ri}=sr;return Oe.createElement("div",{className:ae()(Et.wrap,Kn),key:Yr,style:{width:Cr,marginRight:(1+Mr)%Gt===0?0:en+Qn,marginBottom:Ln}},Oe.createElement("a",{target:"_blank",href:`/shixuns/${Rr}/challenges`,className:Et.li,onClick:Fi=>{Fi.preventDefault(),vr&&(0,dt.L9)([vr]),xr&&(0,dt.xg)(`/shixuns/${Rr}/challenges`)}},Oe.createElement("img",{src:me(79633),className:Et.titleBg}),Oe.createElement("div",{className:Et.name},Oe.createElement(Ge.Z,{title:Nr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Oe.createElement("span",{className:Et.e},Nr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Oe.createElement("div",{style:{padding:"14px",paddingBottom:0}},Oe.createElement("div",{className:Et.img},Oe.createElement("img",{className:Et.cover,src:ii?`${lt.Z.API_SERVER}/api/attachments/${ii}`:`${lt.Z.IMG_SERVER+ri}`}),sr.is_jupyter&&Oe.createElement("div",{className:Et.bq},"Jupyter"),sr.is_jupyter_lab&&Oe.createElement("div",{className:Et.bq},"JupyterLab"),sr.is_unity_3d&&Oe.createElement("div",{className:Et.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),Oe.createElement("div",{className:"mt20 flex item-center justify-between"},Oe.createElement("div",null,Oe.createElement("span",{className:Et.text},"\u5B66\u4E60\u4EBA\u6570"),Oe.createElement("span",{className:Et.value},sr.myshixuns_count)),Oe.createElement("div",null,Oe.createElement("span",{className:Et.text},"\u56F0\u96BE\u7B49\u7EA7"),Oe.createElement("span",{className:Et.value},sr.level))),Oe.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},Oe.createElement("div",null,Oe.createElement("span",{className:Et.text},"\u5173\u5361\u6570"),Oe.createElement("span",{className:Et.value},sr.challenges_count)),Oe.createElement("div",{className:Et.rate},Oe.createElement(Xe.Z,{allowHalf:!0,disabled:!0,defaultValue:sr.score_info}),Oe.createElement("span",{className:Et.value,style:{color:"#FF9C00"}},"\xA0",sr.score_info?`${sr.score_info}\u5206`:"5\u5206"))))),!xr&&Oe.createElement("div",{className:Et.lockWrap},Oe.createElement("img",{src:`${lt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Vt.length&&Oe.createElement(at.Z,null)))},Ye={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2H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ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",je=({className:Ht,dataSource:Vt=[],col:Gt=4,right:en,bottom:Ln=23,precision:Qn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:vr,wrapClassName:Br,imgClassName:Cr})=>{const sr=Math.floor((On-(Gt-1)*en)/Gt);return Oe.createElement(pt.Z,{spinning:vr},Oe.createElement("div",{className:ae()(Ye.list,Ht)},!!Vt.length&&Vt.map((Mr,Nr)=>{const{name:Yr,id:Rr,identifier:xr,power:ii,cover_image_id:ri,pic:Fi}=Mr;return Oe.createElement("div",{className:ae()(Ye.wrap,Br),key:Rr,style:{width:sr,marginRight:(1+Nr)%Gt===0?0:en+Qn,marginBottom:Ln}},Oe.createElement("a",{target:"_blank",href:`/shixuns/${xr}/challenges`,className:Ye.li,onClick:Ui=>{Ui.preventDefault(),Kn&&(0,dt.L9)([Kn]),ii&&(0,dt.xg)(`/shixuns/${xr}/challenges`)}},Oe.createElement("div",{className:ae()(Ye.img,Cr)},Oe.createElement("img",{className:Ye.cover,src:ri?`${lt.Z.API_SERVER}/api/attachments/${ri}`:`${lt.Z.IMG_SERVER+Fi}`}),Mr.is_jupyter&&Oe.createElement("img",{className:Ye.sign,src:Ve}),Mr.is_jupyter_lab&&Oe.createElement("img",{className:Ye.sign,src:de}),Mr.is_unity_3d&&Oe.createElement("img",{className:Ye.sign,src:Ce})),Oe.createElement("div",{className:Ye.name},Oe.createElement(Ge.Z,{title:Yr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Oe.createElement("span",{className:Ye.e},Yr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Oe.createElement("div",{className:Ye.tags},Oe.createElement(Ge.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Oe.createElement("span",null,Oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Oe.createElement("span",null,Mr.challenges_count))),!!Mr.myshixuns_count&&Oe.createElement(Ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Oe.createElement("span",null,Oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Oe.createElement("span",null,Mr.myshixuns_count))),Oe.createElement(Ge.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Oe.createElement("span",null,Oe.createElement("span",null,Mr.level))),Oe.createElement("div",{className:Ye.rate},Oe.createElement(Xe.Z,{allowHalf:!0,disabled:!0,defaultValue:Mr.score_info}),Oe.createElement("span",null,"\xA0",Mr.score_info?`${Mr.score_info}\u5206`:"5\u5206")))),!ii&&Oe.createElement("div",{className:Ye.lockWrap},Oe.createElement("img",{src:`${lt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Vt.length&&Oe.createElement(at.Z,null)))},Ae=me(5476),Ne={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},ze=me(79005),Qe=me(20345),ot=me(77882),mt=me(31081),Ot=me(75309),xt=me(71979),Ut=me(47558),xn=me(60345),Ft=me(66832),Qt=me(96593),Zt=me(19664),bn=me(91833),Pt=Object.defineProperty,zt=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,kn=(Ht,Vt,Gt)=>Vt in Ht?Pt(Ht,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Ht[Vt]=Gt,Gn=(Ht,Vt)=>{for(var Gt in Vt||(Vt={}))sn.call(Vt,Gt)&&kn(Ht,Gt,Vt[Gt]);if(zt)for(var Gt of zt(Vt))yn.call(Vt,Gt)&&kn(Ht,Gt,Vt[Gt]);return Ht};const dr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:ze,swimg:Qe},{name:"101\u8BA1\u5212",ptimg:ot,swimg:mt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Ot,swimg:xt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Ut,swimg:xn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ft,swimg:Qt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Zt,swimg:bn}];var zr=({className:Ht,dataSource:Vt=[],col:Gt=4,right:en,bottom:Ln=23,precision:Qn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:vr,wrapClassName:Br,imgClassName:Cr,isArrow:sr=!1,imgStyle:Mr={}})=>{const Nr=Math.floor((On-(Gt-1)*en)/Gt),[Yr,Rr]=(0,Oe.useState)(),[xr,ii]=(0,Oe.useState)(),ri=Ui=>Rr(Ui),Fi=()=>Rr(-1);return Oe.createElement(pt.Z,{spinning:vr},Oe.createElement("div",{className:ae()(Ne.list,Ht)},!!(Vt!=null&&Vt.length)&&(Vt==null?void 0:Vt.map((Ui,aa)=>{var ji;const{name:zi,id:Mi,identifier:ca,featured:Li,school_name:li,image_url:Vi,excellent:Sa,is_plan:Ci}=Ui;return Oe.createElement("div",{key:Mi,className:ae()(Ne.wrap,Br),style:{width:Nr,marginRight:(1+aa)%Gt===0?0:en+Qn,marginBottom:Ln}},Oe.createElement("a",{target:"_blank",href:`/paths/${ca}`,className:Ne.li,onClick:Xa=>{Xa.preventDefault(),Kn&&(0,dt.L9)([Kn]),(0,dt.xg)(`/paths/${ca}`)}},Oe.createElement("img",{src:me(39057),className:Ne.titleBg}),Oe.createElement("div",{className:Ne.name},Oe.createElement(Ge.Z,{title:zi},Oe.createElement("span",{className:Ne.e,style:{color:sr&&Yr===aa?"#145DFF":"#000000"},onMouseEnter:()=>{ri(aa)},onMouseLeave:Fi},zi))),Oe.createElement("div",{style:{padding:"14px",paddingBottom:0}},Oe.createElement("div",{className:ae()(Ne.img,Cr)},Oe.createElement("img",{className:Ne.cover,style:Gn({},Mr),src:`${lt.Z.IMG_SERVER+Vi}`}),(ji=Ui==null?void 0:Ui.subject_tags)==null?void 0:ji.map((Xa,qa)=>{var Ja,Ra;if(qa===0){const bo=(Ja=dr.find(Da=>Da.name==Xa))==null?void 0:Ja.swimg;return Oe.createElement("img",{className:Ne.sign,src:bo,style:{left:"-4px"}})}const ua=(Ra=dr.find(bo=>bo.name==Xa))==null?void 0:Ra.ptimg;return Oe.createElement("img",{className:Ne.sign,src:ua,style:{left:`${48+52*(qa-1)+2*qa}px`}})}),Oe.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Ui==null?void 0:Ui.excellent)&&Oe.createElement("div",{className:Ne.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Oe.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},Oe.createElement("div",null,Oe.createElement("span",{className:Ne.text},"\u7AE0\u8282\u6570"),Oe.createElement("span",{className:Ne.value},Ui.stages_count)),Oe.createElement("div",null,Oe.createElement("span",{className:Ne.text},"\u5B66\u4E60\u4EBA\u6570"),Oe.createElement("span",{className:Ne.value},Ui.members_count))))))})),!Vt.length&&Oe.createElement(at.Z,null)))},Hr={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},Dr=me(52262),Kr=me(67294);const Ai=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:ze,swimg:Qe},{name:"101\u8BA1\u5212",ptimg:ot,swimg:mt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Ot,swimg:xt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Ut,swimg:xn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ft,swimg:Qt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Zt,swimg:bn}];var Zi=({className:Ht,dataSource:Vt=[],col:Gt=4,right:en,bottom:Ln=23,precision:Qn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:vr,onRemove:Br=()=>{},isCurrent:Cr=!0,showAlias:sr=!1,wrapClassName:Mr,imgClassName:Nr})=>{const Yr=Math.floor((On-(Gt-1)*en)/Gt),Rr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(xr=>(window.ENV==="build"&&(xr.ptimg=`/react/build${xr.ptimg}`,xr.swimg=`/react/build${xr.swimg}`),xr));return Kr.createElement(pt.Z,{spinning:vr},Kr.createElement("div",{className:ae()(Hr.list,Ht)},!!(Vt!=null&&Vt.length)&&(Vt==null?void 0:Vt.map((xr,ii)=>{var ri;const{name:Fi,id:Ui,identifier:aa,featured:ji,school_name:zi,image_url:Mi,excellent:ca,is_plan:Li}=xr;return Kr.createElement("div",{key:Ui,className:ae()(Hr.wrap,Mr),style:{width:Yr,marginRight:(1+ii)%Gt===0?0:en+Qn,marginBottom:Ln}},Kr.createElement("a",{className:Hr.li,onClick:li=>{li.preventDefault(),li.stopPropagation(),Kn&&(0,dt.L9)([Kn]),(0,dt.xg)(`/paths/${aa}`)}},Kr.createElement("div",{className:ae()(Hr.img,Nr)},Kr.createElement("img",{className:Hr.cover,src:`${lt.Z.IMG_SERVER+Mi}`}),Cr&&(0,Dr.bg)()&&(xr==null?void 0:xr.studying)&&Kr.createElement("div",{className:`${Hr.movebq} user-path-items`,onClick:li=>{li.stopPropagation(),Br(xr)}},Kr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Kr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ri=xr==null?void 0:xr.subject_tags)==null?void 0:ri.map((li,Vi)=>{var Sa,Ci;if(Vi===0){const qa=(Sa=Rr.find(Ja=>Ja.name==li))==null?void 0:Sa.swimg;return Kr.createElement("img",{className:Hr.sign,src:qa,style:{left:"-4px"}})}const Xa=(Ci=Rr.find(qa=>qa.name==li))==null?void 0:Ci.ptimg;return Kr.createElement("img",{className:Hr.sign,src:Xa,style:{left:`${48+52*(Vi-1)+2*Vi}px`}})}),Kr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(xr==null?void 0:xr.excellent)&&Kr.createElement("div",{className:Hr.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Kr.createElement("div",{className:Hr.name},Kr.createElement(Ge.Z,{title:sr&&(xr!=null&&xr.excellent_alias_name)?Kr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Fi}`,Kr.createElement("br",null),Kr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${xr==null?void 0:xr.excellent_alias_name}`)):Fi},Kr.createElement("span",{className:Hr.e},sr&&(xr==null?void 0:xr.excellent_alias_name)||Fi))),Kr.createElement("div",{className:Hr.tags},Kr.createElement("div",null,Kr.createElement(Ge.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Kr.createElement("span",null,Kr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Kr.createElement("span",null,xr.stages_count))),Kr.createElement(Ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Kr.createElement("span",null,Kr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Kr.createElement("span",null,xr.members_count)))))))})),!Vt.length&&Kr.createElement(at.Z,null)))},di={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7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OMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",zn=me(67294),lr=({className:Ht,dataSource:Vt=[],col:Gt=4,right:en,bottom:Ln=23,precision:Qn=0,wrapWidth:On=1200,trackEventItems:Kn,loading:vr})=>{const Br=Math.floor((On-(Gt-1)*en)/Gt);return zn.createElement(pt.Z,{spinning:vr},zn.createElement("div",{className:ae()(di.list,Ht)},!!Vt.length&&Vt.map((Cr,sr)=>{const{subject_identifier:Mr,id:Nr,identifier:Yr,power:Rr}=Cr,xr=Cr.is_public!=0&&Cr.is_public;return zn.createElement("div",{className:di.wrap,key:Nr,style:{width:Br,marginRight:(1+sr)%Gt===0?0:en+Qn,marginBottom:Ln}},zn.createElement("a",{className:di.li,onClick:ii=>{ii.preventDefault(),Kn&&(0,dt.L9)([Kn]),(0,dt.xg)(Cr.first_category_url)}},zn.createElement("div",{className:di.top},zn.createElement(Ge.Z,{title:Cr.name},zn.createElement("div",{className:di.name},Cr.name)),zn.createElement("img",{className:di.img,src:lt.Z.IMG_SERVER+"/images/"+Cr.avatar_url}),zn.createElement("div",{className:di.text,title:Cr.creator},Cr.creator),Mr&&zn.createElement("div",{className:di.btns},zn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),zn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),xr&&zn.createElement("div",{className:di.sign},"\u516C\u5F00")),zn.createElement("div",{className:di.bottom},Cr.visits>0&&zn.createElement(Ge.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-liulanyan"}),zn.createElement("span",null,Cr.visits))),Cr.course_members_count>0&&zn.createElement(Ge.Z,{title:"\u6210\u5458",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-chengyuan"}),Cr.course_members_count)),Cr.tasks_count>0&&zn.createElement(Ge.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-zuoye"}),Cr.tasks_count)),Cr.is_end?zn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):zn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Cr.is_accessible&&zn.createElement("div",{className:di.lockWrap},zn.createElement("img",{src:`${lt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),zn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Vt.length&&zn.createElement(at.Z,null)))},Tr={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},Pr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIAB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McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Er=({className:Ht,dataSource:Vt=[],col:Gt=4,right:en,bottom:Ln=23,precision:Qn=0,wrapWidth:On=1200,wrapClassName:Kn,trackEventItems:vr,loading:Br})=>{const Cr=Math.floor((On-(Gt-1)*en)/Gt);return Oe.createElement(pt.Z,{spinning:Br},Oe.createElement("div",{className:ae()(Tr.list,Ht)},!!Vt.length&&Vt.map((sr,Mr)=>{const{subject_identifier:Nr,id:Yr,identifier:Rr,power:xr}=sr,ii=sr.is_public!=0&&sr.is_public;return Oe.createElement("div",{className:ae()(`${Tr.wrap} ${sr.is_accessible?"":Tr.warpStyle}`,Kn),key:Yr,style:{width:Cr,marginRight:(1+Mr)%Gt===0?0:en+Qn,marginBottom:Ln}},Oe.createElement("a",{className:Tr.li,onClick:ri=>{ri.preventDefault(),vr&&(0,dt.L9)([vr]),(0,dt.xg)(sr.first_category_url)}},Oe.createElement("div",{className:Tr.creator},Oe.createElement("img",{className:Tr.img,src:lt.Z.IMG_SERVER+"/images/"+sr.avatar_url}),Oe.createElement("div",{className:Tr.text,title:sr.creator},sr.creator)),Oe.createElement("div",{className:Tr.top},Oe.createElement(Ge.Z,{title:sr.name},Oe.createElement("div",{className:Tr.name},sr.name)),ii&&Oe.createElement("div",{className:Tr.sign},"\u516C\u5F00")),Oe.createElement("div",{className:Tr.middle},Oe.createElement("div",{className:Tr.row,style:{marginBottom:6}},Oe.createElement("div",null,Oe.createElement("span",{className:Tr.text},"\u8BBF\u95EE\u91CF"),Oe.createElement("span",{className:Tr.value},(sr==null?void 0:sr.visits)||0)),Oe.createElement("div",null,Oe.createElement("span",{className:Tr.text},"\u6210\u5458"),Oe.createElement("span",{className:Tr.value},(sr==null?void 0:sr.course_members_count)||0))),Oe.createElement("div",{className:Tr.row},Oe.createElement("div",null,Oe.createElement("span",{className:Tr.text,style:{width:42}},"\u4F5C",Oe.createElement("span",{style:{marginLeft:14}},"\u4E1A")),Oe.createElement("span",{className:Tr.value},(sr==null?void 0:sr.tasks_count)||0)),Oe.createElement("div",null,Oe.createElement("span",{className:Tr.text},"\u72B6\u6001"),sr.is_end?Oe.createElement("span",{className:Tr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):Oe.createElement("span",{className:Tr.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),Nr&&Oe.createElement("div",{className:Tr.btns},Oe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Oe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!sr.is_accessible&&Oe.createElement("div",{className:Tr.lockWrap},Oe.createElement("img",{src:`${lt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Oe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Vt.length&&Oe.createElement(at.Z,null)))},Wt={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAk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bsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Rn=({className:Ht,dataSource:Vt=[],col:Gt=4,right:en,bottom:Ln=23,precision:Qn=0,wrapWidth:On=1200,wrapClassName:Kn,trackEventItems:vr,loading:Br})=>{const Cr=Math.floor((On-(Gt-1)*en)/Gt);return Oe.createElement(pt.Z,{spinning:Br},Oe.createElement("div",{className:ae()(Wt.list,Ht)},!!Vt.length&&Vt.map((sr,Mr)=>{const{subject_identifier:Nr,id:Yr,identifier:Rr,power:xr}=sr,ii=sr.is_public!=0&&sr.is_public;return Oe.createElement("div",{className:ae()(`${Wt.wrap} ${sr.is_accessible?"":Wt.warpStyle}`,Kn),key:Yr,style:{width:Cr,marginRight:(1+Mr)%Gt===0?0:en+Qn,marginBottom:Ln}},Oe.createElement("a",{className:Wt.li,onClick:ri=>{ri.preventDefault(),vr&&(0,dt.L9)([vr]),(0,dt.xg)(sr.first_category_url)}},Oe.createElement("div",{className:Wt.creator},Oe.createElement("img",{className:Wt.img,src:lt.Z.IMG_SERVER+"/images/"+sr.avatar_url}),Oe.createElement("div",{className:Wt.text,title:sr.creator},sr.creator)),Oe.createElement("div",{className:Wt.top},Oe.createElement(Ge.Z,{title:sr.name},Oe.createElement("div",{className:Wt.name},sr.name)),ii&&Oe.createElement("div",{className:Wt.sign})),Oe.createElement("div",{className:Wt.middle},Oe.createElement("div",{className:Wt.row,style:{marginBottom:6}},Oe.createElement("div",null,Oe.createElement("span",{className:Wt.text},"\u8BBF\u95EE\u91CF"),Oe.createElement("span",{className:Wt.value},(sr==null?void 0:sr.visits)||0)),Oe.createElement("div",null,Oe.createElement("span",{className:Wt.text},"\u6210\u5458"),Oe.createElement("span",{className:Wt.value},(sr==null?void 0:sr.course_members_count)||0))),Oe.createElement("div",{className:Wt.row},Oe.createElement("div",null,Oe.createElement("span",{className:Wt.text,style:{width:42}},"\u4F5C",Oe.createElement("span",{style:{marginLeft:14}},"\u4E1A")),Oe.createElement("span",{className:Wt.value},(sr==null?void 0:sr.tasks_count)||0)),Oe.createElement("div",null,Oe.createElement("span",{className:Wt.text},"\u72B6\u6001"),sr.is_end?Oe.createElement("span",{className:Wt.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):Oe.createElement("span",{className:Wt.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),Nr&&Oe.createElement("div",{className:Wt.btns},Oe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Oe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!sr.is_accessible&&Oe.createElement("div",{className:Wt.lockWrap},Oe.createElement("img",{src:`${lt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Oe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Vt.length&&Oe.createElement(at.Z,null)))},jt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},an=me(35973),vn=({dataSource:Ht=[],value:Vt,onChange:Gt,className:en,style:Ln={},tabBarExtraContent:Qn})=>Oe.createElement("div",{className:ae()(jt.tabs,en),style:Ln},Oe.createElement("div",{className:jt.tabsWrap},Ht.map((On,Kn)=>Oe.createElement("aside",{className:jt.tab,onClick:()=>{Gt(On.id),On.link&&an.history.push(On.link)},key:Kn},Oe.createElement("div",{className:Vt===On.id?jt.active:""},On.name),(On==null?void 0:On.resetCount)==null&&(On==null?void 0:On.total)!==void 0&&Oe.createElement("span",null,"\uFF08",On==null?void 0:On.total,"\uFF09"),(On==null?void 0:On.resetCount)!==void 0&&(On==null?void 0:On.total)!==void 0&&Oe.createElement(Ge.Z,{title:(On==null?void 0:On.tip)!=null?On==null?void 0:On.tip:""},Oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Oe.createElement("span",{style:{color:"#000"}},On==null?void 0:On.resetCount),"/",Oe.createElement("span",null,On==null?void 0:On.total),"\uFF09"))))),Oe.createElement("div",{className:jt.tabBar},Qn)),Bn={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},hr=({dataSource:Ht=[],value:Vt,onChange:Gt,className:en,style:Ln={},tabBarExtraContent:Qn})=>Oe.createElement("div",{className:ae()(Bn.tabs,en),style:Ln},Oe.createElement("div",{className:Bn.tabsWrap},Ht.map((On,Kn)=>Oe.createElement("aside",{className:Bn.tab,onClick:()=>{Gt(On.id),On.link&&an.history.push(On.link)},key:Kn},Oe.createElement("div",{className:Vt===On.id?Bn.active:""},On.name),(On==null?void 0:On.resetCount)==null&&(On==null?void 0:On.total)!==void 0&&Oe.createElement("span",null,"\uFF08",On==null?void 0:On.total,"\uFF09"),(On==null?void 0:On.resetCount)!==void 0&&(On==null?void 0:On.total)!==void 0&&Oe.createElement(Ge.Z,{title:(On==null?void 0:On.tip)!=null?On==null?void 0:On.tip:""},Oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Oe.createElement("span",{style:{color:"#000"}},On==null?void 0:On.resetCount),"/",Oe.createElement("span",null,On==null?void 0:On.total),"\uFF09"))))),Oe.createElement("div",{className:Bn.tabBar},Qn)),ei={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},Lr=({dataSource:Ht=[],value:Vt,onChange:Gt,className:en,style:Ln={},tabBarExtraContent:Qn})=>Oe.createElement("div",{className:ae()(ei.tabs,en),style:Ln},Oe.createElement("div",{className:ei.tabsWrap},Ht.map((On,Kn)=>Oe.createElement("aside",{className:`${ei.tab} ${Vt===On.id?ei.active:""}`,onClick:()=>{Gt(On.id),On.link&&an.history.push(On.link)},key:Kn},Oe.createElement("div",null,On.name),(On==null?void 0:On.resetCount)==null&&(On==null?void 0:On.total)!==void 0&&Oe.createElement("span",null,"\uFF08",On==null?void 0:On.total,"\uFF09"),(On==null?void 0:On.resetCount)!==void 0&&(On==null?void 0:On.total)!==void 0&&Oe.createElement(Ge.Z,{title:(On==null?void 0:On.tip)!=null?On==null?void 0:On.tip:""},Oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Oe.createElement("span",{style:{color:"#000"}},On==null?void 0:On.resetCount),"/",Oe.createElement("span",null,On==null?void 0:On.total),"\uFF09"))))),Oe.createElement("div",{className:ei.tabBar},Qn)),Vr=({className:Ht,style:Vt={},children:Gt})=>Oe.createElement("div",{className:ae()(Ht),style:Vt},Gt),nn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Jt=me(85418),pn=me(68508);const tr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var jn=({sortValue:Ht,dropValue:Vt,className:Gt,onSort:en,onDrop:Ln,dataSource:Qn=tr})=>{var On;return Oe.createElement("div",{className:ae()(nn.orderWrap,Gt)},Oe.createElement(Jt.Z,{dropdownRender:()=>Oe.createElement(pn.default,null,Qn.map((Kn,vr)=>Oe.createElement(pn.default.Item,{key:vr,onClick:()=>Ln(Kn.id)},Kn.name)))},Oe.createElement("span",{className:nn.orderTextWrap},(On=Qn.find(Kn=>Vt===Kn.id))==null?void 0:On.name)),Oe.createElement("span",{className:nn.orderIconWrap},Oe.createElement("span",{className:nn.orderAsc},Oe.createElement("i",{className:Ht==="asc"?`iconfont icon-sanjiaoxing-up font12 ${nn.cursorPointer} ${nn.active}`:`iconfont icon-sanjiaoxing-up font12 ${nn.cursorPointer}`,onClick:()=>en(Ht==="asc"?"desc":"asc")})),Oe.createElement("span",{className:nn.orderDesc},Oe.createElement("i",{className:Ht==="desc"?`iconfont icon-sanjiaoxing-down font12 ${nn.cursorPointer} ${nn.active}`:`iconfont icon-sanjiaoxing-down font12 ${nn.cursorPointer}`,onClick:()=>en(Ht==="asc"?"desc":"asc")}))))},Jn={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const ir=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ur=({sortValue:Ht,dropValue:Vt,className:Gt,onSort:en,onDrop:Ln,dataSource:Qn=ir})=>{var On;return Oe.createElement("div",{className:ae()(Jn.orderWrap,Gt)},Oe.createElement(Jt.Z,{dropdownRender:()=>Oe.createElement(pn.default,null,Qn.map((Kn,vr)=>Oe.createElement(pn.default.Item,{key:vr,onClick:()=>Ln(Kn.id)},Kn.name)))},Oe.createElement("span",{className:Jn.orderTextWrap},(On=Qn.find(Kn=>Vt===Kn.id))==null?void 0:On.name)),Oe.createElement("span",{className:Jn.orderIconWrap},Oe.createElement("span",{className:Jn.orderAsc},Oe.createElement("i",{className:Ht==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Jn.cursorPointer} ${Jn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Jn.cursorPointer}`,onClick:()=>en(Ht==="asc"?"desc":"asc")})),Oe.createElement("span",{className:Jn.orderDesc},Oe.createElement("i",{className:Ht==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Jn.cursorPointer} ${Jn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Jn.cursorPointer}`,onClick:()=>en(Ht==="asc"?"desc":"asc")}))))},Wn={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Oi=me(71577),bi=me(52810),xa=Object.defineProperty,ha=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,Ha=Object.prototype.propertyIsEnumerable,Ji=(Ht,Vt,Gt)=>Vt in Ht?xa(Ht,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Ht[Vt]=Gt,Wi=(Ht,Vt)=>{for(var Gt in Vt||(Vt={}))ia.call(Vt,Gt)&&Ji(Ht,Gt,Vt[Gt]);if(ha)for(var Gt of ha(Vt))Ha.call(Vt,Gt)&&Ji(Ht,Gt,Vt[Gt]);return Ht},wa=(Ht,Vt)=>{var Gt={};for(var en in Ht)ia.call(Ht,en)&&Vt.indexOf(en)<0&&(Gt[en]=Ht[en]);if(Ht!=null&&ha)for(var en of ha(Ht))Vt.indexOf(en)<0&&Ha.call(Ht,en)&&(Gt[en]=Ht[en]);return Gt},Fa=(Ht,Vt,Gt)=>new Promise((en,Ln)=>{var Qn=vr=>{try{Kn(Gt.next(vr))}catch(Br){Ln(Br)}},On=vr=>{try{Kn(Gt.throw(vr))}catch(Br){Ln(Br)}},Kn=vr=>vr.done?en(vr.value):Promise.resolve(vr.value).then(Qn,On);Kn((Gt=Gt.apply(Ht,Vt)).next())}),la=Ht=>{var Vt=Ht,{className:Gt,style:en,children:Ln,loading:Qn=!1,openLoading:On,onClick:Kn=()=>{},size:vr="middle",shape:Br="round",theme:Cr}=Vt,sr=wa(Vt,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Mr,Nr]=(0,Oe.useState)(!1),Yr=(0,Oe.useMemo)(()=>{switch(Cr){case bi.Fy.THEMEONE:return Wn.ThemeOne;case bi.Fy.DEFAULT:default:return Wn.btn}},[Cr]);return Oe.createElement(Oi.ZP,Wi({onClick:(0,ne.throttle)(Rr=>Fa(void 0,null,function*(){On&&Nr(!0);try{yield Kn(Rr)}catch(xr){console.log("error",xr)}On&&Nr(!1)}),2e3,{leading:!0,trailing:!1}),className:ae()(Yr,Wn[`${vr}-${Br}`],Gt),style:en,size:vr,shape:Br,loading:Mr||Qn},sr),Ln)},Oa={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Qa=({className:Ht,style:Vt,children:Gt=null,onClick:en,title:Ln})=>Oe.createElement("div",{className:ae()(Oa.head,Ht),style:Vt},Oe.createElement("span",{className:"primary-hover",onClick:en},Oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Oe.createElement("b",{title:Ln},Ln),Oe.createElement("div",{className:Oa.node},Gt)),Ni={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},ln=({confirmShow:Ht=!0,confirmTitle:Vt,confirmClick:Gt,cancelShow:en=!0,cancelTitle:Ln,cancelClick:Qn,className:On,style:Kn,confirmLoading:vr=!1})=>Oe.createElement("div",{className:ae()(Ni.btns,On),style:Kn},Ht&&Oe.createElement(Oi.ZP,{loading:vr,onClick:Gt,type:"primary",className:Ni.confirm},Vt),en&&Oe.createElement(Oi.ZP,{onClick:Qn,className:Ni.cancel},Ln)),Fn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},br=({className:Ht,style:Vt={},LeftContent:Gt,children:en,RightContent:Ln})=>Oe.createElement("div",{className:ae()(Fn.fixedBottom,Ht),style:Vt},Oe.createElement("div",{className:Fn.wrap},Oe.createElement("div",{className:Fn.left},Gt),Oe.createElement("div",{className:Fn.center},en),Oe.createElement("div",{className:Fn.right},Ln))),Xr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},pi=({className:Ht,style:Vt={},dataSource:Gt=[]})=>Oe.createElement("div",{className:ae()(Xr.crumbs,Ht),style:Vt},Gt.map((en,Ln)=>Ln<Gt.length-1?Oe.createElement(Oe.Fragment,{key:Ln},en.path||en.onClick?Oe.createElement("span",{className:Xr.hover,onClick:en!=null&&en.onClick?en.onClick:()=>an.history.push(en.path)},en.name):Oe.createElement("span",null,en.name),Oe.createElement("span",null,"\xA0",">","\xA0")):Oe.createElement("span",{key:Ln,style:{color:"#5F6368"}},en.name))),Ti=me(55054),vi=Object.defineProperty,Ri=Object.defineProperties,$i=Object.getOwnPropertyDescriptors,ni=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,Yn=(Ht,Vt,Gt)=>Vt in Ht?vi(Ht,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Ht[Vt]=Gt,qe=(Ht,Vt)=>{for(var Gt in Vt||(Vt={}))Sn.call(Vt,Gt)&&Yn(Ht,Gt,Vt[Gt]);if(ni)for(var Gt of ni(Vt))Pn.call(Vt,Gt)&&Yn(Ht,Gt,Vt[Gt]);return Ht},yt=(Ht,Vt)=>Ri(Ht,$i(Vt)),St=(Ht,Vt)=>{var Gt={};for(var en in Ht)Sn.call(Ht,en)&&Vt.indexOf(en)<0&&(Gt[en]=Ht[en]);if(Ht!=null&&ni)for(var en of ni(Ht))Vt.indexOf(en)<0&&Pn.call(Ht,en)&&(Gt[en]=Ht[en]);return Gt};const{Countdown:Dt}=Ti.default;var Nt=Ht=>{var Vt=Ht,{onChange:Gt}=Vt,en=St(Vt,["onChange"]);const[Ln,Qn]=(0,Oe.useState)(null);(0,Oe.useEffect)(()=>{typeof Ln=="number"&&Ln>=0&&Gt(Ln)},[Ln]);const On=Kn=>{const vr=Math.floor(Kn/1e3);Qn(vr)};return Oe.createElement(Dt,yt(qe({},en),{onChange:On}))},_t={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},gn=({DataProps:Ht,className:Vt,style:Gt={}})=>{var en;return Oe.createElement("div",{className:ae()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",_t.ClassRoomItem,Vt),style:Gt,onClick:()=>{(0,dt.xg)(Ht==null?void 0:Ht.first_category_url)}},Oe.createElement("div",{className:"flex flex-col item-center"},Oe.createElement("img",{src:`${(en=lt.Z)==null?void 0:en.IMG_SERVER}/images/${Ht==null?void 0:Ht.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Ht==null?void 0:Ht.subject_identifier)&&Oe.createElement("div",{className:"mt-40px"},Oe.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),Oe.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),Oe.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},Oe.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(Ht!=null&&Ht.is_public)&&Oe.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),Oe.createElement("span",{className:ae()("text-16px font-medium",_t.TitleDom)},Ht==null?void 0:Ht.name)),Oe.createElement("div",{className:"c-grey-333 font-medium"},Ht==null?void 0:Ht.creator),Oe.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Ht==null?void 0:Ht.course_members_count),Oe.createElement("div",{className:"c-grey-333 flex item-center justify-between"},Oe.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Ht==null?void 0:Ht.tasks_count),Ht!=null&&Ht.is_end?Oe.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):Oe.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Vn=Object.defineProperty,qn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,In=(Ht,Vt,Gt)=>Vt in Ht?Vn(Ht,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Ht[Vt]=Gt,Cn=(Ht,Vt)=>{for(var Gt in Vt||(Vt={}))Xn.call(Vt,Gt)&&In(Ht,Gt,Vt[Gt]);if(qn)for(var Gt of qn(Vt))Dn.call(Vt,Gt)&&In(Ht,Gt,Vt[Gt]);return Ht},pr=({DataProps:Ht=[],selectValue:Vt,onChange:Gt,className:en,style:Ln={},extra:Qn,classNameItem:On,styleItem:Kn={},barHidden:vr})=>{const[Br,Cr]=(0,Oe.useState)();return(0,Oe.useEffect)(()=>{Cr(Array.isArray(Vt)?Vt:[Vt])},[Vt]),Oe.createElement("div",{className:ae()("flex px-20px py-10px gap-40px",en),style:Cn({borderBottom:"1px solid #D3F0FF"},Ln)},Ht==null?void 0:Ht.map(sr=>Oe.createElement("div",{key:sr==null?void 0:sr.id,className:ae()("flex item-center justify-center current c-grey-333 text-16 relative",On,sr==null?void 0:sr.className),style:Cn(Cn({color:Br!=null&&Br.includes(sr==null?void 0:sr.id)?"#1890FF":"",minWidth:88},Kn),(sr==null?void 0:sr.style)||{}),onClick:Mr=>{Gt==null||Gt({domEvent:Mr,item:sr}),sr!=null&&sr.link&&an.history.push(sr==null?void 0:sr.link)}},sr==null?void 0:sr.name,!vr&&(Br==null?void 0:Br.includes(sr==null?void 0:sr.id))&&Oe.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),Oe.createElement("div",{className:"ml-auto"},Qn))},$n=Object.defineProperty,ar=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,mr=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,It=(Ht,Vt,Gt)=>Vt in Ht?$n(Ht,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Ht[Vt]=Gt,qt=(Ht,Vt)=>{for(var Gt in Vt||(Vt={}))wr.call(Vt,Gt)&&It(Ht,Gt,Vt[Gt]);if(mr)for(var Gt of mr(Vt))kt.call(Vt,Gt)&&It(Ht,Gt,Vt[Gt]);return Ht},Yt=(Ht,Vt)=>ar(Ht,ur(Vt)),Hn=({value:Ht,onChange:Vt,onInputChange:Gt,className:en,style:Ln={},InputProps:Qn})=>{const[On,Kn]=(0,Oe.useState)(Ht);return Oe.createElement("div",{className:ae()("flex item-center rounded-full px-10px py-2px",en),style:qt({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Ln)},Oe.createElement(De.default,Yt(qt({bordered:!1},Qn),{onChange:vr=>{Kn(vr.target.value),Gt==null||Gt(encodeURIComponent(vr.target.value))},onPressEnter:vr=>{Vt==null||Vt({domEvent:vr,item:{value:On}})}})),Oe.createElement("img",{className:"h-22px current",src:me(25365),height:22,onClick:vr=>{Vt==null||Vt({domEvent:vr,item:{value:On}})}}))}},99914:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Je}});var Oe=me(67294);function Je(x,Te){const ve=(0,Oe.useRef)();(0,Oe.useEffect)(()=>{ve.current=x}),(0,Oe.useEffect)(()=>{function ie(){ve.current()}if(Te!==null){let te=setInterval(ie,Te);return()=>clearInterval(te)}},[Te])}},69223:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Ie}});var Oe=me(67294),Je=me(22150),x=me(72565),Te=me(14446),ve=me(2453),ie=me(84567),te=me(36295),ae=me(19522),ne=me(76621),oe=me(40471),he={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IP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MATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",se=me(96486),ce=me(64743),fe=me(67294),pe=Object.defineProperty,le=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ye=(Ue,_e,We)=>_e in Ue?pe(Ue,_e,{enumerable:!0,configurable:!0,writable:!0,value:We}):Ue[_e]=We,be=(Ue,_e)=>{for(var We in _e||(_e={}))ge.call(_e,We)&&ye(Ue,We,_e[We]);if(xe)for(var We of xe(_e))Me.call(_e,We)&&ye(Ue,We,_e[We]);return Ue},Fe=(Ue,_e)=>le(Ue,Se(_e));const ke={theme:(0,oe.G)("cmCodeMode","vs-dark"),fontSize:(0,oe.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,oe.G)("cmTabToSpace",!0)};var De=(Ue=>(Ue[Ue.set_font_size=0]="set_font_size",Ue[Ue.set_theme=1]="set_theme",Ue[Ue.on_tab_to_space=2]="on_tab_to_space",Ue[Ue.set_show_editor_setting=3]="set_show_editor_setting",Ue))(De||{});function Le(Ue,_e){switch(_e.type){case 3:return Fe(be({},Ue),{showEditorSetting:_e.payload});case 1:return Fe(be({},Ue),{theme:_e.payload});case 0:return Fe(be({},Ue),{fontSize:_e.payload});case 2:return Fe(be({},Ue),{tabToSpace:_e.payload});default:throw new Error}}var Ie=({isLoading:Ue,value:_e=[],onChange:We,form:Ze})=>{var et;const[it,pt]=(0,Oe.useReducer)(Le,ke),{theme:Ge,fontSize:Xe,showEditorSetting:lt,tabToSpace:dt}=it,[st,nt]=(0,Oe.useState)("C"),[rt,at]=(0,Oe.useState)(!1),[gt,vt]=(0,Oe.useState)([]),Et=(0,Oe.useRef)([]),At=Je.default.useWatch(["hack","languages"],Ze);(0,Oe.useEffect)(()=>{_e!=null&&_e.length&&(Et.current=(0,se.cloneDeep)(_e))},[_e]),(0,Oe.useEffect)(()=>{rt&&vt(At)},[rt]),(0,Oe.useEffect)(()=>{nt(At==null?void 0:At[0])},[At]);const ut={onFontSizeChange:je=>{pt({type:0,payload:je}),(0,oe.t)("cmFontSize",je)},tabToSpace:dt,cmFontSize:Xe,className:"oj",cmCodeMode:Ge,onTabToSpace:je=>{pt({type:2,payload:je}),(0,oe.t)("cmTabToSpace",je)},onCodeModeChange:je=>{pt({type:1,payload:je}),(0,oe.t)("cmCodeMode",je)}};function Ye(){pt({type:3,payload:!1})}function Ve(){pt({type:3,payload:!0})}function de(je){var Ae;const Ne=(Ae=Et.current)==null?void 0:Ae.map(ze=>(ze.language===st&&(ze.code=je),ze));Et.current=(0,se.cloneDeep)(Ne),We(Ne)}const Ce={key:st,value:(et=_e==null?void 0:_e.find(je=>je.language===st))==null?void 0:et.code,language:st,onChange:de,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:Xe,insertSpaces:dt}};console.log(888,_e,At);const He=_e.filter(je=>At==null?void 0:At.includes(je.language));return fe.createElement(Oe.Fragment,null,fe.createElement("div",{className:he["code-panel-container"]},fe.createElement(Be,{setVisible:at,languageItems:He,onLanguage:je=>nt(je),language:st,onShowCodeSetting:Ve}),!Ue&&fe.createElement(te.ZP,be({},Ce))),fe.createElement(ne.Z,null,fe.createElement(x.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:lt,onClose:Ye},fe.createElement(ae.Z,be({},ut)))),fe.createElement(Te.default,{centered:!0,open:rt,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!gt.length){ve.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}Ze.setFieldValue(["hack","languages"],gt),at(!1)},onCancel:()=>at(!1)},fe.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},fe.createElement(ie.default.Group,{value:gt,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:je=>{vt(je)}}))))};function Be({languageItems:Ue,language:_e,onShowCodeSetting:We,onLanguage:Ze,setVisible:et}){return fe.createElement("div",{className:he["action-oj-bar"]},Ue==null?void 0:Ue.map(it=>fe.createElement("aside",{className:_e===(it==null?void 0:it.language)?he.active:"",onClick:()=>Ze(it==null?void 0:it.language),key:it==null?void 0:it.language},fe.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),fe.createElement("span",null,it==null?void 0:it.language))),fe.createElement("div",{className:he.tip},fe.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),fe.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),fe.createElement(ce.op,{onClick:()=>et(!0),shape:"default"},fe.createElement("img",{src:re,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},55834:function(tn,Kt,me){"use strict";me.d(Kt,{GM:function(){return ae},MK:function(){return te},PR:function(){return Je},ZS:function(){return oe},d1:function(){return x},fu:function(){return Te},j2:function(){return ne},l_:function(){return ve},uE:function(){return he},zQ:function(){return ie}});var Oe=me(33170);function Je(){return(0,Oe.U2)("problems/new.json")}function x(se="question"){return(0,Oe.U2)("disciplines.json",{source:se})}function Te(se){return(0,Oe.U2)(`problems/${se}/edit.json`)}function ve(se,ce){return(0,Oe.gz)(`problems/${se}.json`,ce)}function ie(se){return(0,Oe.v_)("problems.json",se)}function te(se,ce){return(0,Oe.v_)(`exercises/${se}/exercise_questions.json`,ce)}function ae(se,ce){return(0,Oe.gz)(`exercise_questions/${se}.json`,ce)}function ne(se){return(0,Oe.v_)(`problems/${se}/publish.json`)}function oe(se){return(0,Oe.v_)(`problems/${se}/cancel_publish.json`)}function he(se){return(0,Oe.U2)(`problems/${se}/start.json`)}function re(se,ce){return post("tag_disciplines.json",{name:ce,sub_discipline_id:se})}},44048:function(tn,Kt,me){"use strict";me.d(Kt,{D0:function(){return te},R8:function(){return Te},jw:function(){return ie},y3:function(){return ae}});var Oe=me(11713),Je=me(67294);const{Option:x}=Oe.default;var Te=(ne=>(ne[ne.language=0]="language",ne[ne.difficult=1]="difficult",ne[ne.category=2]="category",ne[ne.openOrNot=3]="openOrNot",ne))(Te||{});const ve={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",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 ie(ne){return ve[ne].map(oe=>Je.createElement(x,{key:oe.title,value:oe.key}," ",oe.title," "))}function te(ne,oe){ne.map(he=>{const{id:re,name:se,sub_disciplines:ce}=he;let fe={value:re,label:se};oe.push(fe),ce&&ce.length>0&&(fe.children=[],te(ce,fe.children))})}function ae(ne,oe){var he;let re=[];for(let se=0;se<ne.length;se++){const ce=ne[se];if(((he=ce.sub_disciplines)==null?void 0:he.length)>0){re[0]=ce.id;for(let fe=0;fe<ce.sub_disciplines.length;fe++){const pe=ce.sub_disciplines[fe];if(pe.id===oe)return re[1]=pe.id,[re,pe.tag_disciplines||pe.sub_disciplines||[]]}}}return[re,[]]}},32259:function(tn,Kt,me){"use strict";me.d(Kt,{Y2:function(){return Ze},ZP:function(){return et}});var Oe=me(67294),Je=me(59810),x=me(2453),Te=me(14446),ve=me(71230),ie=me(78045),te=me(71577),ae=me(84567),ne=me(83062),oe=me(69677),he={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"},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2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TlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",se=me(56448),ce=me.n(se),fe=me(33170),pe=me(25934),le=me(28706),Se=me(91613),xe=me(67294),ge=Object.defineProperty,Me=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,De=(it,pt,Ge)=>pt in it?ge(it,pt,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):it[pt]=Ge,Le=(it,pt)=>{for(var Ge in pt||(pt={}))Fe.call(pt,Ge)&&De(it,Ge,pt[Ge]);if(be)for(var Ge of be(pt))ke.call(pt,Ge)&&De(it,Ge,pt[Ge]);return it},Ie=(it,pt)=>Me(it,ye(pt)),Be=(it,pt,Ge)=>new Promise((Xe,lt)=>{var dt=rt=>{try{nt(Ge.next(rt))}catch(at){lt(at)}},st=rt=>{try{nt(Ge.throw(rt))}catch(at){lt(at)}},nt=rt=>rt.done?Xe(rt.value):Promise.resolve(rt.value).then(dt,st);nt((Ge=Ge.apply(it,pt)).next())});const{Dragger:Ue}=Je.default,_e=it=>{const pt=at=>at&&at.substring(0,at.lastIndexOf("."));for(var Ge=[...it],Xe=0,lt=[],dt=0;dt<Ge.length;dt++){for(var st="",nt=0;nt<lt.length;nt++)if(pt(lt[nt][0].name)==pt(Ge[dt].name)){Xe=1,st=nt;break}if(Xe==1)lt[st].push(Ge[dt]),Xe=0;else if(Xe==0){let at=new Array;at.push(Ge[dt]),lt.push(at)}}return lt.map(at=>{if(at.forEach(gt=>{let vt=gt.name.split(/\.(?=[^\.]+$)/);gt.name=`${vt[0]}.${vt[1].toLowerCase()}`}),at[0].name.includes(".in"))return at.length===2?at:[at[0],{}];if(at[0].name.includes(".out"))return at.length===2?at.reverse():[{},at[0]]})},We=({onClose:it,onOK:pt,visible:Ge,wrapClassName:Xe,rootIdentifier:lt,multiple:dt=!1,defaultMultipleValue:st=!0})=>{const[nt,rt]=(0,Oe.useState)([]),[at,gt]=(0,Oe.useState)({}),[vt,Et]=(0,Oe.useState)(!1),[At,ut]=(0,Oe.useState)(!0),[Ye,Ve]=(0,Oe.useState)(null),de=(0,Oe.useRef)([]),Ce=(0,Oe.useRef)(0),He=()=>{it()};(0,Oe.useEffect)(()=>{je()},[]),(0,Oe.useEffect)(()=>{Ge&&(de.current=[],Ce.current=0,rt([]),ut(st))},[Ge]);const je=()=>Be(void 0,null,function*(){try{Ve(!0)}catch(xt){}}),Ae=xt=>xt&&xt.substring(0,xt.lastIndexOf(".")),Ne=xt=>{var Ut,xn;const Ft=Ae((Ut=xt[0])==null?void 0:Ut.name)||Ae((xn=xt[1])==null?void 0:xn.name),Qt=nt.filter(Zt=>Ae(Zt.name)!==Ft);de.current=[...Qt],rt([...Qt])},ze=xt=>{if(!At){const bn=new FormData;bn.append("file",xt.file),(0,fe.ZP)("/api/attachments/get_file_content.json",{method:"post",body:bn},!0).then(zt=>{if(zt.status===0){Ce.current=Ce.current+1;const sn=de.current.map(yn=>{var kn;if(yn.name===xt.name){const Gn=Le({},yn);return(kn=xt==null?void 0:xt.name)!=null&&kn.includes(".in")?Gn.input=zt==null?void 0:zt.content:Gn.output=zt==null?void 0:zt.content,Gn}return yn});if(de.current=[...sn],rt([...sn]),Ce.current>0&&Ce.current===nt.length){Et(!1);let yn=_e(sn);yn=yn.filter(kn=>{var Gn,dr;return!!((Gn=kn[0])!=null&&Gn.name&&((dr=kn[1])!=null&&dr.name))}),yn=yn.map(kn=>Ie(Le(Le({},kn[0]),kn[1]),{is_file:!1})),pt(yn),it()}}else Et(!1),it()});return}if(Ye){const bn=new FormData;bn.append("file",xt.file),lt===null?bn.append("identifier","testsets"):bn.append("identifier",lt),(0,fe.ZP)("/api/attachments.json",{method:"post",body:bn},!0).then(zt=>{if(zt.filename){Ce.current=Ce.current+1;const sn=de.current.map(yn=>{var kn;if(yn.name===(zt==null?void 0:zt.filename)){const Gn=Ie(Le({},yn),{is_oss:!Ye});return(kn=zt==null?void 0:zt.filename)!=null&&kn.includes(".in")?(Gn.in_object_key=zt==null?void 0:zt.object,Gn.in_object_size=zt==null?void 0:zt.size,Gn.input=zt==null?void 0:zt.filename,Gn.in_file=xt):(Gn.out_object_key=zt==null?void 0:zt.object,Gn.out_object_size=zt==null?void 0:zt.size,Gn.output=zt==null?void 0:zt.filename,Gn.out_file=xt),Gn}return yn});if(de.current=[...sn],rt([...sn]),Ce.current>0&&Ce.current===nt.length){Et(!1);let yn=_e(sn);yn=yn.filter(kn=>{var Gn,dr;return!!((Gn=kn[0])!=null&&Gn.name&&((dr=kn[1])!=null&&dr.name))}),yn=yn.map(kn=>Ie(Le(Le({},kn[0]),kn[1]),{is_file:!0})),pt(yn),it()}}else Et(!1),it()});return}const Ut=new(ce())({endpoint:at.end_point,region:at.region,accessKeyId:at.access_key_id,accessKeySecret:at.access_key_secret,bucket:at.bucket,stsToken:at.security_token}),xn=xt.name,Ft={container_type:"TestSet",file_name:xn},Qt=(0,pe.Z)();let Zt=`testsets/${lt}/${Qt}${xn.indexOf(".")>-1?"."+xn.split(".").pop():""}`;lt===null&&(Zt=`testsets/${Qt}${xn.indexOf(".")>-1?"."+xn.split(".").pop():""}`),Ut.multipartUpload(Zt,new Blob([xt.file],{type:xt.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:xn+""},url:at==null?void 0:at.callback_url,host:at==null?void 0:at.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,fe.rz)(Ft)}}).then(function(bn){if(bn.data.status===0){Ce.current=Ce.current+1;const Pt=de.current.map(zt=>{var sn,yn,kn,Gn,dr,Or,zr,Hr,Dr,Kr,Ai,Di,Zi,di,rn,zn,fr;if(zt.name===((yn=(sn=bn.data)==null?void 0:sn.data)==null?void 0:yn.file_name)){const lr=Ie(Le({},zt),{is_oss:!Ye});return(dr=(Gn=(kn=bn.data)==null?void 0:kn.data)==null?void 0:Gn.file_name)!=null&&dr.includes(".in")?(lr.in_object_key=(zr=(Or=bn.data)==null?void 0:Or.data)==null?void 0:zr.object,lr.in_object_size=(Dr=(Hr=bn.data)==null?void 0:Hr.data)==null?void 0:Dr.size,lr.input=(Ai=(Kr=bn.data)==null?void 0:Kr.data)==null?void 0:Ai.file_name,lr.in_file=xt):(lr.out_object_key=(Zi=(Di=bn.data)==null?void 0:Di.data)==null?void 0:Zi.object,lr.out_object_size=(rn=(di=bn.data)==null?void 0:di.data)==null?void 0:rn.size,lr.output=(fr=(zn=bn.data)==null?void 0:zn.data)==null?void 0:fr.file_name,lr.out_file=xt),lr}return zt});if(de.current=[...Pt],rt([...Pt]),Ce.current>0&&Ce.current===nt.length){Et(!1);let zt=_e(Pt);zt=zt.filter(sn=>{var yn,kn;return!!((yn=sn[0])!=null&&yn.name&&((kn=sn[1])!=null&&kn.name))}),zt=zt.map(sn=>Ie(Le(Le({},sn[0]),sn[1]),{is_file:!0})),pt(zt),it()}}})},Qe=xt=>new Promise((Ut,xn)=>{let Ft=0,Qt=[];for(let Zt=0;Zt<xt.length;Zt++)xt[Zt].file.slice(0,1).arrayBuffer().then(()=>{Ft++,Ft===xt.length&&(Qt.length?(x.ZP.warning(`${Qt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),xn()):Ut(xt))}).catch(bn=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",bn),Ft++,Qt.push(xt[Zt].name),Ft===xt.length&&(Qt.length?(x.ZP.warning(`${Qt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),xn()):Ut(xt))})}),ot=()=>Be(void 0,null,function*(){if(nt.length===0){x.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Qe(nt),Et(!0),_e(nt).some(Ut=>{var xn,Ft;return!((xn=Ut[0])!=null&&xn.name&&((Ft=Ut[1])!=null&&Ft.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:()=>Be(void 0,null,function*(){nt.map(Ut=>Be(void 0,null,function*(){ze(Ut)}))}),onCancel:()=>{Et(!1)}});return}nt.map(Ut=>Be(void 0,null,function*(){ze(Ut)}))}),mt={name:"file",fileList:nt,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:xt=>{if(nt!=null&&nt.some(xn=>xn.name===xt.name))return x.ZP.info(`${xt.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(xt.size/1024/1024>100)return x.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(xt.name))return x.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const Ut={name:xt.name,uid:xt.uid,file:xt,percent:0};return nt.push(Ut),de.current=[...nt],rt([...nt]),!1}},Ot=_e(nt);return console.log(nt,Ot,"fileList"),xe.createElement(Te.default,{open:Ge,wrapClassName:Xe,onOk:ot,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:vt},onCancel:He,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},xe.createElement("div",{className:he.wrap},nt.length?xe.createElement("div",null,xe.createElement(ve.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},xe.createElement("div",{style:{visibility:dt?"visible":"hidden"}},xe.createElement("span",{className:he.greyText},"\u7528\u4F8B\u7C7B\u578B"),xe.createElement(ie.ZP.Group,{className:`ml20 ${he.testCaseRadio}`,optionType:"button",value:At,onChange:xt=>ut(xt.target.value)},xe.createElement(ie.ZP,{value:!1},"\u6587\u672C"),xe.createElement(ie.ZP,{value:!0},"\u6587\u4EF6"))),xe.createElement(Je.default,Le({},mt),xe.createElement(te.ZP,{type:"primary",className:he.btnS},xe.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),xe.createElement(Ze,{data:Ot,onRemove:Ne})):xe.createElement("div",{className:`${he.noData} mb30`},xe.createElement(Je.default.Dragger,Ie(Le({},mt),{className:he.dragger}),xe.createElement("img",{src:re,alt:"",className:"mb20"}),xe.createElement("div",null,xe.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),xe.createElement("span",{className:he.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),xe.createElement("div",{className:he.text},xe.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),xe.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",xe.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",xe.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",xe.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",xe.createElement("br",null))))},Ze=({data:it=[],onRemove:pt,width:Ge="auto",showScore:Xe=!1,disabled:lt=!1,inputChange:dt,onEvaluatingChange:st,onSelectAll:nt,checkAll1:rt,checkAll2:at,checkAll3:gt,checkAll4:vt,checkAll5:Et,showEvaluatingSetting:At=!1,className:ut="",isProgramHomework:Ye=!1})=>{const Ve={value:"",filename:"",dataUrl:""},[de,Ce]=(0,Oe.useState)(Le({},Ve)),He=Ne=>{let ze=document.createElement("a");document.body.appendChild(ze);let Qe=URL.createObjectURL(Ne.file);ze.href=Qe,ze.download=Ne.name,ze.click(),URL.revokeObjectURL(Qe),document.body.removeChild(ze)},je=(Ne,ze)=>{(0,le.LR)(Ne,ze)},Ae=(Ne,ze)=>{Te.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:xe.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{pt(Ne,ze)},onCancel:()=>{}})};return it.length?xe.createElement("div",{className:ut,style:{width:Ge}},xe.createElement("div",{className:`${Ye?he.headProgram:he.head}`},At&&xe.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},xe.createElement(ae.default,{checked:rt,onChange:Ne=>{nt(Ne.target.checked,"hidden")}}),xe.createElement(ne.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},xe.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe.createElement("div",{style:{width:Ye?"25%":"15%"}},"\u7528\u4F8B"),xe.createElement("div",{style:{width:Xe?Ye?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),xe.createElement("div",{style:{width:Xe?Ye?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),Xe&&xe.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),At&&xe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},xe.createElement(ae.default,{checked:vt,onChange:Ne=>{nt(Ne.target.checked,"input_visible")}}),xe.createElement(ne.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},xe.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),At&&xe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},xe.createElement(ae.default,{checked:at,onChange:Ne=>{nt(Ne.target.checked,"is_invisible")}}),xe.createElement(ne.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},xe.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),At&&xe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},xe.createElement(ae.default,{checked:Et,onChange:Ne=>{nt(Ne.target.checked,"actual_output_visible")}}),xe.createElement(ne.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},xe.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),At&&xe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},xe.createElement(ae.default,{checked:gt,onChange:Ne=>{nt(Ne.target.checked,"last_match_rule")}}),xe.createElement(ne.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"},xe.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),xe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe.createElement("div",{className:he.operation,style:Ye?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),xe.createElement("div",{className:he.listWrapper,style:{boxShadow:Ye?"0px 2px 4px 0px #EAEEF4":"unset"}},it.map((Ne,ze)=>{var Qe,ot,mt,Ot;return xe.createElement("div",{key:ze,className:he.list,style:Ye?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},At&&xe.createElement("div",{style:{width:"15%"}},xe.createElement(ae.default,{checked:!!Ne.hidden,onChange:xt=>{st(xt.target.checked,ze,"hidden")}})),xe.createElement("div",{style:{width:Ye?"25%":"15%",paddingLeft:Ye?"5px":"0px",paddingRight:Ye?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",ze+1),xe.createElement("div",{className:he.info,style:{width:Xe?Ye?"20%":"15%":"25%"}},xe.createElement("span",{title:Ne.input||((Qe=Ne[0])==null?void 0:Qe.name),onClick:()=>Be(void 0,null,function*(){let xt;Ne.input?Ne.input_file_url?xt=Ne.input_file_url:xt=Ne.in_file:xt=Ne[0];let Ut;typeof xt=="string"?(Ut=yield fetch(xt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ce({value:yield Ut.text(),filename:"",dataUrl:xt})):(Ut=yield(0,le.db)(xt.file),Ce({value:Ut.text,filename:xt.name,dataUrl:Ut.link}))})},Ne.input||((ot=Ne[0])==null?void 0:ot.name))),xe.createElement("div",{className:he.info,style:{width:Xe?Ye?"20%":"15%":"25%"}},xe.createElement("span",{title:Ne.output||((mt=Ne[1])==null?void 0:mt.name),onClick:()=>Be(void 0,null,function*(){let xt;Ne.input?Ne.output_file_url?xt=Ne.output_file_url:xt=Ne.out_file:xt=Ne[1];let Ut;typeof xt=="string"?(Ut=yield fetch(xt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ce({value:yield Ut.text(),filename:"",dataUrl:xt})):(Ut=yield(0,le.db)(xt.file),Ce({value:Ut.text,filename:xt.name,dataUrl:Ut.link}))})},Ne.output||((Ot=Ne[1])==null?void 0:Ot.name))),Xe&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(oe.default,{size:"large",addonAfter:Ye?"%":null,disabled:lt,style:{width:"80%"},onChange:xt=>dt(xt,ze),value:Ne.score}),!Ye&&xe.createElement("span",null,"\xA0%")),At&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(ae.default,{checked:Ne.input_visible||!1,onChange:xt=>{st(xt.target.checked,ze,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),At&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(ae.default,{checked:Ne.is_invisible||!1,onChange:xt=>{st(xt.target.checked,ze,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),At&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(ae.default,{checked:Ne.actual_output_visible||!1,onChange:xt=>{st(xt.target.checked,ze,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),At&&xe.createElement("div",{style:{width:"20%"}},xe.createElement(ae.default,{checked:Ne.last_match_rule||!1,onChange:xt=>{st(xt.target.checked,ze,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),xe.createElement("div",{onClick:()=>Ae(Ne,ze),style:Ye?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},xe.createElement("span",{className:he.del},"\u5220\u9664")))})),xe.createElement(Se.Z,{close:!0,data:de.dataUrl,filename:de.filename,type:de.dataUrl.length?"txt":"",onClose:()=>Ce(Le({},Ve)),monacoEditor:{value:de.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):xe.createElement(xe.Fragment,null)};var et=We},71573:function(tn,Kt,me){"use strict";me.d(Kt,{c:function(){return Je}});var Oe=(x=>(x.FirstPage="firstPage",x.PrevPage="prevPage",x.NextPage="nextPage",x))(Oe||{}),Je=(x=>(x[x.Single=0]="Single",x[x.Multiple=1]="Multiple",x[x.Judge=2]="Judge",x[x.Fill=3]="Fill",x[x.Subjective=4]="Subjective",x[x.Shixun=5]="Shixun",x[x.Program=6]="Program",x[x.Combine=7]="Combine",x))(Je||{})},40471:function(tn,Kt,me){"use strict";me.d(Kt,{G:function(){return ve},t:function(){return Te}});var Oe=me(58971),Je=me.n(Oe);const x=null;function Te(ie,te){let ae=Je().get("__ec");ae||(ae={}),ae[ie]=te,Je().set("__ec",ae)}function ve(ie,te){let ae=Je().get("__ec");return ae?ae[ie]===void 0?te:ae[ie]:te}},56448:function(tn){(function(Kt){(function(me){if(1)tn.exports=me();else var Oe})(function(){var me,Oe,Je;return function(){function x(Te,ve,ie){function te(oe,he){if(!ve[oe]){if(!Te[oe]){var re=void 0;if(!he&&re)return require(oe,!0);if(ae)return ae(oe,!0);var se=new Error("Cannot find module '"+oe+"'");throw se.code="MODULE_NOT_FOUND",se}var ce=ve[oe]={exports:{}};Te[oe][0].call(ce.exports,function(fe){var pe=Te[oe][1][fe];return te(pe||fe)},ce,ce.exports,x,Te,ve,ie)}return ve[oe].exports}for(var ae=void 0,ne=0;ne<ie.length;ne++)te(ie[ne]);return te}return x}()({1:[function(x,Te,ve){"use strict";var ie=x("./browser/client");ie.Buffer=x("buffer").Buffer,ie.urllib=x("../shims/xhr"),ie.version=x("./browser/version").version,Te.exports=ie},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.slice.js");var ne=x("assert"),oe=x("../common/utils/checkBucketName"),he=oe.checkBucketName,re=ve;function se(fe){return Array.isArray?Array.isArray(fe):Object.prototype.toString.call(fe)==="[object Array]"}function ce(fe){return fe?se(fe)?fe:[fe]:[]}re.useBucket=function(pe){return he(pe),this.options.bucket=pe,this},re.setBucket=function(pe){return he(pe),this.options.bucket=pe,this},re.getBucket=function(){return this.options.bucket},re.deleteBucket=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe){var ge,Me;return te.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ge=this._bucketRequestParams("DELETE",Se,"",xe),be.next=3,this.request(ge);case 3:if(Me=be.sent,!(Me.status===200||Me.status===204)){be.next=6;break}return be.abrupt("return",{res:Me.res});case 6:return be.next=8,this.requestError(Me);case 8:throw be.sent;case 9:case"end":return be.stop()}},le,this)}));function pe(le,Se){return fe.apply(this,arguments)}return pe}(),re.putBucketACL=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe,ge){var Me,ye;return te.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Me=this._bucketRequestParams("PUT",Se,"acl",ge),Me.headers={"x-oss-acl":xe},Me.successStatuses=[200],Fe.next=5,this.request(Me);case 5:return ye=Fe.sent,Fe.abrupt("return",{bucket:ye.headers.location&&ye.headers.location.substring(1)||null,res:ye.res});case 7:case"end":return Fe.stop()}},le,this)}));function pe(le,Se,xe){return fe.apply(this,arguments)}return pe}(),re.getBucketACL=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe){var ge,Me;return te.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ge=this._bucketRequestParams("GET",Se,"acl",xe),ge.successStatuses=[200],ge.xmlResponse=!0,be.next=5,this.request(ge);case 5:return Me=be.sent,be.abrupt("return",{acl:Me.data.AccessControlList.Grant,owner:{id:Me.data.Owner.ID,displayName:Me.data.Owner.DisplayName},res:Me.res});case 7:case"end":return be.stop()}},le,this)}));function pe(le,Se){return fe.apply(this,arguments)}return pe}(),re.putBucketLogging=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe,ge){var Me,ye,be;return te.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return Me=this._bucketRequestParams("PUT",Se,"logging",ge),ye=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(Se,`</TargetBucket>
|
|
|
`),xe&&(ye+="<TargetPrefix>".concat(xe,`</TargetPrefix>
|
|
|
`)),ye+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,Me.content=ye,Me.mime="xml",Me.successStatuses=[200],ke.next=9,this.request(Me);case 9:return be=ke.sent,ke.abrupt("return",{res:be.res});case 11:case"end":return ke.stop()}},le,this)}));function pe(le,Se,xe){return fe.apply(this,arguments)}return pe}(),re.getBucketLogging=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe){var ge,Me,ye;return te.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ge=this._bucketRequestParams("GET",Se,"logging",xe),ge.successStatuses=[200],ge.xmlResponse=!0,Fe.next=5,this.request(ge);case 5:return Me=Fe.sent,ye=Me.data.LoggingEnabled,Fe.abrupt("return",{enable:!!ye,prefix:ye&&ye.TargetPrefix||null,res:Me.res});case 8:case"end":return Fe.stop()}},le,this)}));function pe(le,Se){return fe.apply(this,arguments)}return pe}(),re.deleteBucketLogging=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe){var ge,Me;return te.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ge=this._bucketRequestParams("DELETE",Se,"logging",xe),ge.successStatuses=[204,200],be.next=4,this.request(ge);case 4:return Me=be.sent,be.abrupt("return",{res:Me.res});case 6:case"end":return be.stop()}},le,this)}));function pe(le,Se){return fe.apply(this,arguments)}return pe}(),re.putBucketCORS=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe,ge){var Me,ye,be,Fe,ke,De,Le,Ie,Be,Ue;return te.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:for(xe=xe||[],ne(xe.length,"rules is required"),xe.forEach(function(Ze){ne(Ze.allowedOrigin,"allowedOrigin is required"),ne(Ze.allowedMethod,"allowedMethod is required")}),Me=this._bucketRequestParams("PUT",Se,"cors",ge),ye=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,be=function(et){ye+="<AllowedOrigin>".concat(et,"</AllowedOrigin>")},Fe=function(et){ye+="<AllowedMethod>".concat(et,"</AllowedMethod>")},ke=function(et){ye+="<AllowedHeader>".concat(et,"</AllowedHeader>")},De=function(et){ye+="<ExposeHeader>".concat(et,"</ExposeHeader>")},Le=0,Ie=xe.length;Le<Ie;Le++)Be=xe[Le],ye+="<CORSRule>",ce(Be.allowedOrigin).forEach(be),ce(Be.allowedMethod).forEach(Fe),ce(Be.allowedHeader).forEach(ke),ce(Be.exposeHeader).forEach(De),Be.maxAgeSeconds&&(ye+="<MaxAgeSeconds>".concat(Be.maxAgeSeconds,"</MaxAgeSeconds>")),ye+="</CORSRule>";return ye+="</CORSConfiguration>",Me.content=ye,Me.mime="xml",Me.successStatuses=[200],We.next=16,this.request(Me);case 16:return Ue=We.sent,We.abrupt("return",{res:Ue.res});case 18:case"end":return We.stop()}},le,this)}));function pe(le,Se,xe){return fe.apply(this,arguments)}return pe}(),re.getBucketCORS=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe){var ge,Me,ye,be;return te.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ge=this._bucketRequestParams("GET",Se,"cors",xe),ge.successStatuses=[200],ge.xmlResponse=!0,ke.next=5,this.request(ge);case 5:return Me=ke.sent,ye=[],Me.data&&Me.data.CORSRule&&(be=Me.data.CORSRule,se(be)||(be=[be]),be.forEach(function(De){var Le={};Object.keys(De).forEach(function(Ie){Le[Ie.slice(0,1).toLowerCase()+Ie.slice(1,Ie.length)]=De[Ie]}),ye.push(Le)})),ke.abrupt("return",{rules:ye,res:Me.res});case 9:case"end":return ke.stop()}},le,this)}));function pe(le,Se){return fe.apply(this,arguments)}return pe}(),re.deleteBucketCORS=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe){var ge,Me;return te.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ge=this._bucketRequestParams("DELETE",Se,"cors",xe),ge.successStatuses=[204],be.next=4,this.request(ge);case 4:return Me=be.sent,be.abrupt("return",{res:Me.res});case 6:case"end":return be.stop()}},le,this)}));function pe(le,Se){return fe.apply(this,arguments)}return pe}(),re.putBucketReferer=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe,ge,Me){var ye,be,Fe,ke;return te.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(ye=this._bucketRequestParams("PUT",Se,"referer",Me),be=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,be+=" <AllowEmptyReferer>".concat(xe?"true":"false",`</AllowEmptyReferer>
|
|
|
`),ge&&ge.length>0){for(be+=` <RefererList>
|
|
|
`,Fe=0;Fe<ge.length;Fe++)be+=" <Referer>".concat(ge[Fe],`</Referer>
|
|
|
`);be+=` </RefererList>
|
|
|
`}else be+=` <RefererList />
|
|
|
`;return be+="</RefererConfiguration>",ye.content=be,ye.mime="xml",ye.successStatuses=[200],Le.next=10,this.request(ye);case 10:return ke=Le.sent,Le.abrupt("return",{res:ke.res});case 12:case"end":return Le.stop()}},le,this)}));function pe(le,Se,xe,ge){return fe.apply(this,arguments)}return pe}(),re.getBucketReferer=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe){var ge,Me,ye;return te.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return ge=this._bucketRequestParams("GET",Se,"referer",xe),ge.successStatuses=[200],ge.xmlResponse=!0,Fe.next=5,this.request(ge);case 5:return Me=Fe.sent,ye=Me.data.RefererList.Referer||null,ye&&(se(ye)||(ye=[ye])),Fe.abrupt("return",{allowEmpty:Me.data.AllowEmptyReferer==="true",referers:ye,res:Me.res});case 9:case"end":return Fe.stop()}},le,this)}));function pe(le,Se){return fe.apply(this,arguments)}return pe}(),re.deleteBucketReferer=function(){var fe=(0,ae.default)(te.default.mark(function le(Se,xe){return te.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,this.putBucketReferer(Se,!0,null,xe);case 2:return Me.abrupt("return",Me.sent);case 3:case"end":return Me.stop()}},le,this)}));function pe(le,Se){return fe.apply(this,arguments)}return pe}(),re._bucketRequestParams=function(pe,le,Se,xe){return{method:pe,bucket:le,subres:Se,timeout:xe&&xe.timeout,ctx:xe&&xe.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(x,Te,ve){(function(ie,te){(function(){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),oe=ae(x("@babel/runtime/helpers/asyncToGenerator"));x("core-js/modules/es.function.name.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.symbol.js"),x("core-js/modules/es.symbol.description.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.to-string.js");var he=x("debug")("ali-oss"),re=x("xml2js"),se=x("agentkeepalive"),ce=x("merge-descriptors"),fe=x("platform"),pe=x("utility"),le=x("urllib"),Se=x("./version"),xe=x("bowser"),ge=x("../common/signUtils"),Me=x("../common/client/initOptions"),ye=x("../common/utils/createRequest"),be=ye.createRequest,Fe=x("../common/utils/encoder"),ke=Fe.encoder,De=x("../common/client/getReqUrl"),Le=De.getReqUrl,Ie=x("../common/utils/setSTSToken"),Be=Ie.setSTSToken,Ue=x("../common/utils/retry"),_e=Ue.retry,We=x("../common/utils/isFunction"),Ze=We.isFunction,et=new se;function it(){var st=fe.name,nt=fe.version;st&&st.toLowerCase&&st.toLowerCase()==="ie"&&nt.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function pt(){return location&&location.protocol==="https:"}function Ge(st,nt){if(it(),!(this instanceof Ge))return new Ge(st,nt);st&&st.inited?this.options=st:this.options=Ge.initOptions(st),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=le,this.agent=this.options.agent||et),this.ctx=nt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Te.exports=Ge,Ge.initOptions=function(nt){nt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var rt=Object.assign({secure:pt(),useFetch:!1},nt);return Me(rt)};var Xe=Ge.prototype;Xe.debug=he,ce(Xe,x("./object")),ce(Xe,x("./bucket")),ce(Xe,x("../common/bucket/getBucketWebsite")),ce(Xe,x("../common/bucket/putBucketWebsite")),ce(Xe,x("../common/bucket/deleteBucketWebsite")),ce(Xe,x("../common/bucket/getBucketLifecycle")),ce(Xe,x("../common/bucket/putBucketLifecycle")),ce(Xe,x("../common/bucket/deleteBucketLifecycle")),ce(Xe,x("../common/bucket/putBucketVersioning")),ce(Xe,x("../common/bucket/getBucketVersioning")),ce(Xe,x("../common/bucket/getBucketInventory")),ce(Xe,x("../common/bucket/deleteBucketInventory")),ce(Xe,x("../common/bucket/listBucketInventory")),ce(Xe,x("../common/bucket/putBucketInventory")),ce(Xe,x("../common/bucket/abortBucketWorm")),ce(Xe,x("../common/bucket/completeBucketWorm")),ce(Xe,x("../common/bucket/extendBucketWorm")),ce(Xe,x("../common/bucket/getBucketWorm")),ce(Xe,x("../common/bucket/initiateBucketWorm")),ce(Xe,x("./managed-upload")),ce(Xe,x("../common/multipart-copy")),ce(Xe,x("../common/multipart")),ce(Xe,x("../common/parallel")),Xe.signature=function(nt){return this.debug("authorization stringToSign: %s",nt,"info"),ge.computeSignature(this.options.accessKeySecret,nt,this.options.headerEncoding)},Xe._getReqUrl=Le,Xe.authorization=function(nt,rt,at,gt){var vt=ge.buildCanonicalString(nt.toUpperCase(),rt,{headers:gt,parameters:at});return ge.authorization(this.options.accessKeyId,this.options.accessKeySecret,vt,this.options.headerEncoding)},Xe.request=function(){var st=(0,oe.default)(ne.default.mark(function nt(rt){var at=this;return ne.default.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(!this.options.retryMax){vt.next=6;break}return vt.next=3,_e(lt.bind(this),this.options.retryMax,{errorHandler:function(At){var ut=function(Ve){if(rt.stream)return!1;var de=[-1,-2].includes(Ve.status),Ce=at.options.requestErrorRetryHandle||function(){return!0};return de&&Ce(Ve)};return!!ut(At)}})(rt);case 3:return vt.abrupt("return",vt.sent);case 6:return vt.abrupt("return",lt.call(this,rt));case 7:case"end":return vt.stop()}},nt,this)}));return function(nt){return st.apply(this,arguments)}}();function lt(st){return dt.apply(this,arguments)}function dt(){return dt=(0,oe.default)(ne.default.mark(function st(nt){var rt,at,gt,vt,Et,At;return ne.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(!(this.options.stsToken&&Ze(this.options.refreshSTSToken))){Ye.next=3;break}return Ye.next=3,Be.call(this);case 3:return rt=be.call(this,nt),this.options.useFetch||(rt.params.mode="disable-fetch"),vt=!!nt.stream,Ye.prev=6,Ye.next=9,this.urllib.request(rt.url,rt.params);case 9:at=Ye.sent,this.debug("response %s %s, got %s, headers: %j",nt.method,rt.url,at.status,at.headers,"info"),Ye.next=16;break;case 13:Ye.prev=13,Ye.t0=Ye.catch(6),gt=Ye.t0;case 16:if(!(at&&nt.successStatuses&&nt.successStatuses.indexOf(at.status)===-1)){Ye.next=28;break}return Ye.next=19,this.requestError(at);case 19:if(Et=Ye.sent,!(Et.code==="RequestTimeTooSkewed"&&!vt)){Ye.next=25;break}return this.options.amendTimeSkewed=+new Date(Et.serverTime)-new Date,Ye.next=24,this.request(nt);case 24:return Ye.abrupt("return",Ye.sent);case 25:Et.params=nt,Ye.next=32;break;case 28:if(!gt){Ye.next=32;break}return Ye.next=31,this.requestError(gt);case 31:Et=Ye.sent;case 32:if(!Et){Ye.next=34;break}throw Et;case 34:if(!nt.xmlResponse){Ye.next=39;break}return Ye.next=37,this.parseXML(at.data);case 37:At=Ye.sent,at.data=At;case 39:return Ye.abrupt("return",at);case 40:case"end":return Ye.stop()}},st,this,[[6,13]])})),dt.apply(this,arguments)}Xe._getResource=function(nt){var rt="/";return nt.bucket&&(rt+="".concat(nt.bucket,"/")),nt.object&&(rt+=ke(nt.object,this.options.headerEncoding)),rt},Xe._escape=function(nt){return pe.encodeURIComponent(nt).replace(/%2F/g,"/")},Xe._getUserAgent=function(){var nt=te&&te.browser?"js":"nodejs",rt="aliyun-sdk-".concat(nt,"/").concat(Se.version),at=fe.description;return!at&&te&&(at="Node.js ".concat(te.version.slice(1)," on ").concat(te.platform," ").concat(te.arch)),this._checkUserAgent("".concat(rt," ").concat(at))},Xe._checkUserAgent=function(nt){var rt=nt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return rt},Xe.checkBrowserAndVersion=function(nt,rt){return xe.name===nt&&xe.version.split(".")[0]===rt},Xe.parseXML=function(nt){return new Promise(function(rt,at){ie.isBuffer(nt)&&(nt=nt.toString()),re.parseString(nt,{explicitRoot:!1,explicitArray:!1},function(gt,vt){gt?at(gt):rt(vt)})})},Xe.requestError=function(){var st=(0,oe.default)(ne.default.mark(function rt(at){var gt,vt,Et,At;return ne.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(gt=null,!(!at.data||!at.data.length)){Ye.next=5;break}at.status===-1||at.status===-2?(gt=new Error(at.message),gt.name=at.name,gt.status=at.status,gt.code=at.name):(at.status===404?(gt=new Error("Object not exists"),gt.name="NoSuchKeyError",gt.status=404,gt.code="NoSuchKey"):at.status===412?(gt=new Error("Pre condition failed"),gt.name="PreconditionFailedError",gt.status=412,gt.code="PreconditionFailed"):(gt=new Error("Unknow error, status: ".concat(at.status)),gt.name="UnknownError",gt.status=at.status),gt.requestId=at.headers["x-oss-request-id"],gt.host=""),Ye.next=32;break;case 5:return vt=String(at.data),this.debug("request response error data: %s",vt,"error"),Ye.prev=7,Ye.next=10,this.parseXML(vt);case 10:if(Ye.t0=Ye.sent,Ye.t0){Ye.next=13;break}Ye.t0={};case 13:Et=Ye.t0,Ye.next=23;break;case 16:return Ye.prev=16,Ye.t1=Ye.catch(7),this.debug(vt,"error"),Ye.t1.message+=`
|
|
|
raw xml: `.concat(vt),Ye.t1.status=at.status,Ye.t1.requestId=at.headers["x-oss-request-id"],Ye.abrupt("return",Ye.t1);case 23:At=Et.Message||"unknow request error, status: ".concat(at.status),Et.Condition&&(At+=" (condition: ".concat(Et.Condition,")")),gt=new Error(At),gt.name=Et.Code?"".concat(Et.Code,"Error"):"UnknownError",gt.status=at.status,gt.code=Et.Code,gt.requestId=Et.RequestId,gt.hostId=Et.HostId,gt.serverTime=Et.ServerTime;case 32:return this.debug("generate error %j",gt,"error"),Ye.abrupt("return",gt);case 34:case"end":return Ye.stop()}},rt,this,[[7,16]])}));function nt(rt){return st.apply(this,arguments)}return nt}()}).call(this)}).call(this,{isBuffer:x("../../node_modules/is-buffer/index.js")},x("_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(x,Te,ve){(function(ie){(function(){"use strict";var te=x("@babel/runtime/helpers/interopRequireDefault"),ae=te(x("@babel/runtime/regenerator"));x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.typed-array.uint8-array.js"),x("core-js/modules/es.typed-array.copy-within.js"),x("core-js/modules/es.typed-array.every.js"),x("core-js/modules/es.typed-array.fill.js"),x("core-js/modules/es.typed-array.filter.js"),x("core-js/modules/es.typed-array.find.js"),x("core-js/modules/es.typed-array.find-index.js"),x("core-js/modules/es.typed-array.for-each.js"),x("core-js/modules/es.typed-array.includes.js"),x("core-js/modules/es.typed-array.index-of.js"),x("core-js/modules/es.typed-array.iterator.js"),x("core-js/modules/es.typed-array.join.js"),x("core-js/modules/es.typed-array.last-index-of.js"),x("core-js/modules/es.typed-array.map.js"),x("core-js/modules/es.typed-array.reduce.js"),x("core-js/modules/es.typed-array.reduce-right.js"),x("core-js/modules/es.typed-array.reverse.js"),x("core-js/modules/es.typed-array.set.js"),x("core-js/modules/es.typed-array.slice.js"),x("core-js/modules/es.typed-array.some.js"),x("core-js/modules/es.typed-array.sort.js"),x("core-js/modules/es.typed-array.subarray.js"),x("core-js/modules/es.typed-array.to-locale-string.js"),x("core-js/modules/es.typed-array.to-string.js");var ne=te(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("util"),he=x("path"),re=x("mime"),se=x("copy-to"),ce=x("../common/utils/isBlob"),fe=ce.isBlob,pe=x("../common/utils/isFile"),le=pe.isFile,Se=x("../common/utils/isBuffer"),xe=Se.isBuffer,ge=ve;ge.multipartUpload=function(){var ke=(0,ne.default)(ae.default.mark(function Le(Ie,Be){var Ue,_e,We,Ze,et,it,pt,Ge,Xe,lt=arguments;return ae.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(Ue=lt.length>2&<[2]!==void 0?lt[2]:{},this.resetCancelFlag(),Ue.disabledMD5=Ue.disabledMD5===void 0?!0:!!Ue.disabledMD5,!(Ue.checkpoint&&Ue.checkpoint.uploadId)){st.next=8;break}return Be&&le(Be)&&(Ue.checkpoint.file=Be),st.next=7,this._resumeMultipart(Ue.checkpoint,Ue);case 7:return st.abrupt("return",st.sent);case 8:return _e=102400,Ue.mime||(le(Be)?Ue.mime=re.getType(he.extname(Be.name)):fe(Be)?Ue.mime=Be.type:xe(Be)?Ue.mime="":Ue.mime=re.getType(he.extname(Be))),Ue.headers=Ue.headers||{},this._convertMetaToHeaders(Ue.meta,Ue.headers),st.next=14,this._getFileSize(Be);case 14:if(We=st.sent,!(We<_e)){st.next=26;break}return Ue.contentLength=We,st.next=19,this.put(Ie,Be,Ue);case 19:if(Ze=st.sent,!(Ue&&Ue.progress)){st.next=23;break}return st.next=23,Ue.progress(1);case 23:return et={res:Ze.res,bucket:this.options.bucket,name:Ie,etag:Ze.res.headers.etag},(Ue.headers&&Ue.headers["x-oss-callback"]||Ue.callback)&&(et.data=Ze.data),st.abrupt("return",et);case 26:if(!(Ue.partSize&&parseInt(Ue.partSize,10)!==Ue.partSize)){st.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Ue.partSize&&Ue.partSize<_e)){st.next=30;break}throw new Error("partSize must not be smaller than ".concat(_e));case 30:return st.next=32,this.initMultipartUpload(Ie,Ue);case 32:if(it=st.sent,pt=it.uploadId,Ge=this._getPartSize(We,Ue.partSize),Xe={file:Be,name:Ie,fileSize:We,partSize:Ge,uploadId:pt,doneParts:[]},!(Ue&&Ue.progress)){st.next=39;break}return st.next=39,Ue.progress(0,Xe,it.res);case 39:return st.next=41,this._resumeMultipart(Xe,Ue);case 41:return st.abrupt("return",st.sent);case 42:case"end":return st.stop()}},Le,this)}));function De(Le,Ie){return ke.apply(this,arguments)}return De}(),ge._resumeMultipart=function(){var ke=(0,ne.default)(ae.default.mark(function Le(Ie,Be){var Ue,_e,We,Ze,et,it,pt,Ge,Xe,lt,dt,st,nt,rt,at,gt,vt,Et,At;return ae.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Ue=this,!this.isCancel()){Ye.next=3;break}throw this._makeCancelEvent();case 3:return _e=Ie.file,We=Ie.fileSize,Ze=Ie.partSize,et=Ie.uploadId,it=Ie.doneParts,pt=Ie.name,Ge=[],it.length>0&&se(it).to(Ge),Xe=this._divideParts(We,Ze),lt=Xe.length,dt=!1,st=function(de,Ce){return new Promise(function(){var He=(0,ne.default)(ae.default.mark(function je(Ae,Ne){var ze,Qe,ot,mt,Ot;return ae.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(Ut.prev=0,de.isCancel()){Ut.next=29;break}return ze=Xe[Ce-1],Ut.next=5,de._createBuffer(_e,ze.start,ze.end);case 5:return Qe=Ut.sent,ot={content:Qe,size:ze.end-ze.start},Ut.prev=7,Ut.next=10,de._uploadPart(pt,et,Ce,ot,Be);case 10:mt=Ut.sent,Ut.next=18;break;case 13:if(Ut.prev=13,Ut.t0=Ut.catch(7),Ut.t0.status!==404){Ut.next=17;break}throw de._makeAbortEvent();case 17:throw Ut.t0;case 18:if(!(!de.isCancel()&&!dt)){Ut.next=26;break}if(Ie.doneParts.push({number:Ce,etag:mt.res.headers.etag}),!Be.progress){Ut.next=23;break}return Ut.next=23,Be.progress(it.length/(lt+1),Ie,mt.res);case 23:Ae({number:Ce,etag:mt.res.headers.etag}),Ut.next=27;break;case 26:Ae();case 27:Ut.next=30;break;case 29:Ae();case 30:Ut.next=41;break;case 32:Ut.prev=32,Ut.t1=Ut.catch(0),Ot=new Error,Ot.name=Ut.t1.name,Ot.message=Ut.t1.message,Ot.stack=Ut.t1.stack,Ot.partNum=Ce,se(Ut.t1).to(Ot),Ne(Ot);case 41:case"end":return Ut.stop()}},je,null,[[0,32],[7,13]])}));return function(je,Ae){return He.apply(this,arguments)}}())},nt=Array.from(new Array(lt),function(Ve,de){return de+1}),rt=Ge.map(function(Ve){return Ve.number}),at=nt.filter(function(Ve){return rt.indexOf(Ve)<0}),gt=5,vt=Be.parallel||gt,Ye.next=17,this._parallel(at,vt,function(Ve){return new Promise(function(de,Ce){st(Ue,Ve).then(function(He){He&&Ge.push(He),de()}).catch(function(He){Ce(He)})})});case 17:if(Et=Ye.sent,dt=!0,At=Et.find(function(Ve){return Ve.name==="abort"}),!At){Ye.next=22;break}throw At;case 22:if(!this.isCancel()){Ye.next=25;break}throw st=null,this._makeCancelEvent();case 25:if(!(Et&&Et.length>0)){Ye.next=28;break}throw Et[0].message="Failed to upload some parts with error: ".concat(Et[0].toString()," part_num: ").concat(Et[0].partNum),Et[0];case 28:return Ye.next=30,this.completeMultipartUpload(pt,et,Ge,Be);case 30:return Ye.abrupt("return",Ye.sent);case 31:case"end":return Ye.stop()}},Le,this)}));function De(Le,Ie){return ke.apply(this,arguments)}return De}(),ge._getFileSize=function(){var ke=(0,ne.default)(ae.default.mark(function Le(Ie){return ae.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(!xe(Ie)){Ue.next=4;break}return Ue.abrupt("return",Ie.length);case 4:if(!(fe(Ie)||le(Ie))){Ue.next=6;break}return Ue.abrupt("return",Ie.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Ue.stop()}},Le)}));function De(Le){return ke.apply(this,arguments)}return De}();var Me=x("stream"),ye=Me.Readable;function be(ke,De){if(!(this instanceof be))return new be(ke,De);ye.call(this,De),this.file=ke,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}oe.inherits(be,ye),be.prototype.readFileAndPush=function(De){if(this.fileBuffer)for(var Le=!0;Le&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Ie=this.start,Be=Ie+De;Be=Be>this.fileBuffer.length?this.fileBuffer.length:Be,this.start=Be,Le=this.push(this.fileBuffer.slice(Ie,Be))}},be.prototype._read=function(De){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 Le=16*1024;De=De||Le;var Ie=this;this.reader.onload=function(Ue){Ie.fileBuffer=ie.from(new Uint8Array(Ue.target.result)),Ie.file=null,Ie.readFileAndPush(De)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(De)};function Fe(ke){return ke.arrayBuffer?ke.arrayBuffer():new Promise(function(De,Le){var Ie=new FileReader;Ie.onload=function(Be){De(Be.target.result)},Ie.onerror=function(Be){Le(Be)},Ie.readAsArrayBuffer(ke)})}ge._createBuffer=function(){var ke=(0,ne.default)(ae.default.mark(function Le(Ie,Be,Ue){var _e,We;return ae.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(!(fe(Ie)||le(Ie))){et.next=8;break}return _e=Ie.slice(Be,Ue),et.next=4,Fe(_e);case 4:return We=et.sent,et.abrupt("return",ie.from(We));case 8:if(!xe(Ie)){et.next=12;break}return et.abrupt("return",Ie.subarray(Be,Ue));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return et.stop()}},Le)}));function De(Le,Ie,Be){return ke.apply(this,arguments)}return De}(),ge._getPartSize=function(De,Le){var Ie=1e4,Be=1*1024*1024;Le||(Le=Be);var Ue=Math.ceil(De/Ie);return Le<Ue&&(Le=Ue,console.warn("partSize has been set to ".concat(Le,", because the partSize you provided causes partNumber to be greater than 10,000"))),Le},ge._divideParts=function(De,Le){for(var Ie=Math.ceil(De/Le),Be=[],Ue=0;Ue<Ie;Ue++){var _e=Le*Ue,We=Math.min(_e+Le,De);Be.push({start:_e,end:We})}return Be}}).call(this)}).call(this,x("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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.number.constructor.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.promise.js");var te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("fs"),oe=x("copy-to"),he=x("path"),re=x("mime"),se=x("../common/callback"),ce=x("merge-descriptors"),fe=x("../common/utils/isBlob"),pe=fe.isBlob,le=x("../common/utils/isFile"),Se=le.isFile,xe=x("../common/utils/isBuffer"),ge=xe.isBuffer,Me=x("../common/utils/obj2xml"),ye=Me.obj2xml,be=ve;be.append=function(){var Fe=(0,ae.default)(te.default.mark(function De(Le,Ie,Be){var Ue;return te.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return Be=Be||{},Be.position===void 0&&(Be.position="0"),Be.subres={append:"",position:Be.position},Be.method="POST",We.next=6,this.put(Le,Ie,Be);case 6:return Ue=We.sent,Ue.nextAppendPosition=Ue.res.headers["x-oss-next-append-position"],We.abrupt("return",Ue);case 9:case"end":return We.stop()}},De,this)}));function ke(De,Le,Ie){return Fe.apply(this,arguments)}return ke}(),be.put=function(){var Fe=(0,ae.default)(te.default.mark(function De(Le,Ie,Be){var Ue,_e,We,Ze,et;return te.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(Be=Be||{},Be.disabledMD5=Be.disabledMD5===void 0?!0:!!Be.disabledMD5,Be.headers=Be.headers||{},Le=this._objectName(Le),!ge(Ie)){pt.next=8;break}Ue=Ie,pt.next=19;break;case 8:if(!(pe(Ie)||Se(Ie))){pt.next=18;break}return Be.mime||(Se(Ie)?Be.mime=re.getType(he.extname(Ie.name)):Be.mime=Ie.type),pt.next=12,this._createBuffer(Ie,0,Ie.size);case 12:return Ue=pt.sent,pt.next=15,this._getFileSize(Ie);case 15:Be.contentLength=pt.sent,pt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Be.meta,Be.headers),_e=Be.method||"PUT",We=this._objectRequestParams(_e,Le,Be),se.encodeCallback(We,Be),We.mime=Be.mime,We.disabledMD5=Be.disabledMD5,We.content=Ue,We.successStatuses=[200],pt.next=29,this.request(We);case 29:return Ze=pt.sent,et={name:Le,url:this._objectUrl(Le),res:Ze.res},We.headers&&We.headers["x-oss-callback"]&&(et.data=JSON.parse(Ze.data.toString())),pt.abrupt("return",et);case 33:case"end":return pt.stop()}},De,this)}));function ke(De,Le,Ie){return Fe.apply(this,arguments)}return ke}(),be.putStream=function(){var Fe=(0,ae.default)(te.default.mark(function De(Le,Ie,Be){var Ue,_e,We,Ze;return te.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return Be=Be||{},Be.headers=Be.headers||{},Le=this._objectName(Le),Be.contentLength?Be.headers["Content-Length"]=Be.contentLength:Be.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Be.meta,Be.headers),Ue=Be.method||"PUT",_e=this._objectRequestParams(Ue,Le,Be),se.encodeCallback(_e,Be),_e.mime=Be.mime,_e.stream=Ie,_e.successStatuses=[200],it.next=13,this.request(_e);case 13:return We=it.sent,Ze={name:Le,url:this._objectUrl(Le),res:We.res},_e.headers&&_e.headers["x-oss-callback"]&&(Ze.data=JSON.parse(We.data.toString())),it.abrupt("return",Ze);case 17:case"end":return it.stop()}},De,this)}));function ke(De,Le,Ie){return Fe.apply(this,arguments)}return ke}(),ce(be,x("../common/object/copyObject")),ce(be,x("../common/object/getObjectTagging")),ce(be,x("../common/object/putObjectTagging")),ce(be,x("../common/object/deleteObjectTagging")),ce(be,x("../common/image")),ce(be,x("../common/object/getBucketVersions")),ce(be,x("../common/object/getACL")),ce(be,x("../common/object/putACL")),ce(be,x("../common/object/head")),ce(be,x("../common/object/delete")),ce(be,x("../common/object/get")),ce(be,x("../common/object/putSymlink")),ce(be,x("../common/object/getSymlink")),ce(be,x("../common/object/deleteMulti")),ce(be,x("../common/object/getObjectMeta")),ce(be,x("../common/object/getObjectUrl")),ce(be,x("../common/object/generateObjectUrl")),ce(be,x("../common/object/signatureUrl")),ce(be,x("../common/object/asyncSignatureUrl")),be.putMeta=function(){var Fe=(0,ae.default)(te.default.mark(function De(Le,Ie,Be){var Ue;return te.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return We.next=2,this.copy(Le,Le,{meta:Ie||{},timeout:Be&&Be.timeout,ctx:Be&&Be.ctx});case 2:return Ue=We.sent,We.abrupt("return",Ue);case 4:case"end":return We.stop()}},De,this)}));function ke(De,Le,Ie){return Fe.apply(this,arguments)}return ke}(),be.list=function(){var Fe=(0,ae.default)(te.default.mark(function De(Le,Ie){var Be,Ue,_e,We,Ze;return te.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return Be=this._objectRequestParams("GET","",Ie),Be.query=Le,Be.xmlResponse=!0,Be.successStatuses=[200],it.next=6,this.request(Be);case 6:return Ue=it.sent,_e=Ue.data.Contents||[],We=this,_e&&(Array.isArray(_e)||(_e=[_e]),_e=_e.map(function(pt){return{name:pt.Key,url:We._objectUrl(pt.Key),lastModified:pt.LastModified,etag:pt.ETag,type:pt.Type,size:Number(pt.Size),storageClass:pt.StorageClass,owner:{id:pt.Owner.ID,displayName:pt.Owner.DisplayName}}})),Ze=Ue.data.CommonPrefixes||null,Ze&&(Array.isArray(Ze)||(Ze=[Ze]),Ze=Ze.map(function(pt){return pt.Prefix})),it.abrupt("return",{res:Ue.res,objects:_e,prefixes:Ze,nextMarker:Ue.data.NextMarker||null,isTruncated:Ue.data.IsTruncated==="true"});case 13:case"end":return it.stop()}},De,this)}));function ke(De,Le){return Fe.apply(this,arguments)}return ke}(),be.listV2=function(){var Fe=(0,ae.default)(te.default.mark(function De(Le){var Ie,Be,Ue,_e,We,Ze,et,it=arguments;return te.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ie=it.length>1&&it[1]!==void 0?it[1]:{},Be=Le["continuation-token"]||Le.continuationToken,Be&&(Ie.subres=Object.assign({"continuation-token":Be},Ie.subres)),Ue=this._objectRequestParams("GET","",Ie),Ue.query=Object.assign({"list-type":2},Le),delete Ue.query["continuation-token"],delete Ue.query.continuationToken,Ue.xmlResponse=!0,Ue.successStatuses=[200],Ge.next=11,this.request(Ue);case 11:return _e=Ge.sent,We=_e.data.Contents||[],Ze=this,We&&(Array.isArray(We)||(We=[We]),We=We.map(function(Xe){var lt=null;return Xe.Owner&&(lt={id:Xe.Owner.ID,displayName:Xe.Owner.DisplayName}),{name:Xe.Key,url:Ze._objectUrl(Xe.Key),lastModified:Xe.LastModified,etag:Xe.ETag,type:Xe.Type,size:Number(Xe.Size),storageClass:Xe.StorageClass,owner:lt}})),et=_e.data.CommonPrefixes||null,et&&(Array.isArray(et)||(et=[et]),et=et.map(function(Xe){return Xe.Prefix})),Ge.abrupt("return",{res:_e.res,objects:We,prefixes:et,isTruncated:_e.data.IsTruncated==="true",keyCount:+_e.data.KeyCount,continuationToken:_e.data.ContinuationToken||null,nextContinuationToken:_e.data.NextContinuationToken||null});case 18:case"end":return Ge.stop()}},De,this)}));function ke(De){return Fe.apply(this,arguments)}return ke}(),be.restore=function(){var Fe=(0,ae.default)(te.default.mark(function De(Le){var Ie,Be,Ue,_e,We=arguments;return te.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return Ie=We.length>1&&We[1]!==void 0?We[1]:{type:"Archive"},Ie=Ie||{},Ie.subres=Object.assign({restore:""},Ie.subres),Ie.versionId&&(Ie.subres.versionId=Ie.versionId),Be=this._objectRequestParams("POST",Le,Ie),Ie.type==="ColdArchive"&&(Ue={RestoreRequest:{Days:Ie.Days?Ie.Days:2,JobParameters:{Tier:Ie.JobParameters?Ie.JobParameters:"Standard"}}},Be.content=ye(Ue,{headers:!0}),Be.mime="xml"),Be.successStatuses=[202],et.next=9,this.request(Be);case 9:return _e=et.sent,et.abrupt("return",{res:_e.res});case 11:case"end":return et.stop()}},De,this)}));function ke(De){return Fe.apply(this,arguments)}return ke}(),be._objectUrl=function(ke){return this._getReqUrl({bucket:this.options.bucket,object:ke})},be._objectRequestParams=function(ke,De,Le){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Le=Le||{},De=this._objectName(De);var Ie={object:De,bucket:this.options.bucket,method:ke,subres:Le&&Le.subres,timeout:Le&&Le.timeout,ctx:Le&&Le.ctx};return Le.headers&&(Ie.headers={},oe(Le.headers).to(Ie.headers)),Ie},be._objectName=function(ke){return ke.replace(/^\/+/,"")},be._convertMetaToHeaders=function(ke,De){ke&&Object.keys(ke).forEach(function(Le){De["x-oss-meta-".concat(Le)]=ke[Le]})},be._deleteFileSafe=function(ke){var De=this;return new Promise(function(Le){ne.exists(ke,function(Ie){Ie?ne.unlink(ke,function(Be){Be&&De.debug("unlink %j error: %s",ke,Be,"error"),Le()}):Le()})})}},{"../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(x,Te,ve){"use strict";ve.version="6.18.1"},{}],7:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.abortBucketWorm=void 0;var ne=x("../utils/checkBucketName");function oe(re,se){return he.apply(this,arguments)}function he(){return he=(0,ae.default)(te.default.mark(function re(se,ce){var fe,pe;return te.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ne.checkBucketName(se),fe=this._bucketRequestParams("DELETE",se,"worm",ce),Se.next=4,this.request(fe);case 4:return pe=Se.sent,Se.abrupt("return",{res:pe.res,status:pe.status});case 6:case"end":return Se.stop()}},re,this)})),he.apply(this,arguments)}ve.abortBucketWorm=oe},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.completeBucketWorm=void 0;var ne=x("../utils/checkBucketName");function oe(re,se,ce){return he.apply(this,arguments)}function he(){return he=(0,ae.default)(te.default.mark(function re(se,ce,fe){var pe,le;return te.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ne.checkBucketName(se),pe=this._bucketRequestParams("POST",se,{wormId:ce},fe),xe.next=4,this.request(pe);case 4:return le=xe.sent,xe.abrupt("return",{res:le.res,status:le.status});case 6:case"end":return xe.stop()}},re,this)})),he.apply(this,arguments)}ve.completeBucketWorm=oe},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.deleteBucketInventory=void 0;var ne=x("../utils/checkBucketName");function oe(re,se){return he.apply(this,arguments)}function he(){return he=(0,ae.default)(te.default.mark(function re(se,ce){var fe,pe,le,Se,xe=arguments;return te.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return fe=xe.length>2&&xe[2]!==void 0?xe[2]:{},pe=Object.assign({inventory:"",inventoryId:ce},fe.subres),ne.checkBucketName(se),le=this._bucketRequestParams("DELETE",se,pe,fe),le.successStatuses=[204],Me.next=7,this.request(le);case 7:return Se=Me.sent,Me.abrupt("return",{status:Se.status,res:Se.res});case 9:case"end":return Me.stop()}},re,this)})),he.apply(this,arguments)}ve.deleteBucketInventory=oe},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=ve;he.deleteBucketLifecycle=function(){var re=(0,ae.default)(te.default.mark(function ce(fe,pe){var le,Se;return te.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return oe(fe),le=this._bucketRequestParams("DELETE",fe,"lifecycle",pe),le.successStatuses=[204],ge.next=5,this.request(le);case 5:return Se=ge.sent,ge.abrupt("return",{res:Se.res});case 7:case"end":return ge.stop()}},ce,this)}));function se(ce,fe){return re.apply(this,arguments)}return se}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=ve;he.deleteBucketWebsite=function(){var re=(0,ae.default)(te.default.mark(function ce(fe,pe){var le,Se;return te.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return oe(fe),le=this._bucketRequestParams("DELETE",fe,"website",pe),le.successStatuses=[204],ge.next=5,this.request(le);case 5:return Se=ge.sent,ge.abrupt("return",{res:Se.res});case 7:case"end":return ge.stop()}},ce,this)}));function se(ce,fe){return re.apply(this,arguments)}return se}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.extendBucketWorm=void 0;var ne=x("../utils/checkBucketName"),oe=x("../utils/obj2xml");function he(se,ce,fe,pe){return re.apply(this,arguments)}function re(){return re=(0,ae.default)(te.default.mark(function se(ce,fe,pe,le){var Se,xe,ge;return te.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ne.checkBucketName(ce),Se=this._bucketRequestParams("POST",ce,{wormExtend:"",wormId:fe},le),xe={ExtendWormConfiguration:{RetentionPeriodInDays:pe}},Se.mime="xml",Se.content=oe.obj2xml(xe,{headers:!0}),Se.successStatuses=[200],ye.next=8,this.request(Se);case 8:return ge=ye.sent,ye.abrupt("return",{res:ge.res,status:ge.status});case 10:case"end":return ye.stop()}},se,this)})),re.apply(this,arguments)}ve.extendBucketWorm=he},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.getBucketInventory=void 0;var ne=x("../utils/checkBucketName"),oe=x("../utils/formatInventoryConfig");function he(se,ce){return re.apply(this,arguments)}function re(){return re=(0,ae.default)(te.default.mark(function se(ce,fe){var pe,le,Se,xe,ge=arguments;return te.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return pe=ge.length>2&&ge[2]!==void 0?ge[2]:{},le=Object.assign({inventory:"",inventoryId:fe},pe.subres),ne.checkBucketName(ce),Se=this._bucketRequestParams("GET",ce,le,pe),Se.successStatuses=[200],Se.xmlResponse=!0,ye.next=8,this.request(Se);case 8:return xe=ye.sent,ye.abrupt("return",{status:xe.status,res:xe.res,inventory:oe.formatInventoryConfig(xe.data)});case 10:case"end":return ye.stop()}},se,this)})),re.apply(this,arguments)}ve.getBucketInventory=he},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.map.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=x("../utils/isArray"),re=he.isArray,se=x("../utils/formatObjKey"),ce=se.formatObjKey,fe=ve;fe.getBucketLifecycle=function(){var pe=(0,ae.default)(te.default.mark(function Se(xe,ge){var Me,ye,be;return te.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return oe(xe),Me=this._bucketRequestParams("GET",xe,"lifecycle",ge),Me.successStatuses=[200],Me.xmlResponse=!0,ke.next=6,this.request(Me);case 6:return ye=ke.sent,be=ye.data.Rule||null,be&&(re(be)||(be=[be]),be=be.map(function(De){return De.ID&&(De.id=De.ID,delete De.ID),De.Tag&&!re(De.Tag)&&(De.Tag=[De.Tag]),ce(De,"firstLowerCase")})),ke.abrupt("return",{rules:be,res:ye.res});case 10:case"end":return ke.stop()}},Se,this)}));function le(Se,xe){return pe.apply(this,arguments)}return le}()},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=ve;he.getBucketVersioning=function(){var re=(0,ae.default)(te.default.mark(function ce(fe,pe){var le,Se,xe;return te.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return oe(fe),le=this._bucketRequestParams("GET",fe,"versioning",pe),le.xmlResponse=!0,le.successStatuses=[200],Me.next=6,this.request(le);case 6:return Se=Me.sent,xe=Se.data.Status,Me.abrupt("return",{status:Se.status,versionStatus:xe,res:Se.res});case 9:case"end":return Me.stop()}},ce,this)}));function se(ce,fe){return re.apply(this,arguments)}return se}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=x("../utils/isObject"),re=he.isObject,se=ve;se.getBucketWebsite=function(){var ce=(0,ae.default)(te.default.mark(function pe(le,Se){var xe,ge,Me;return te.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return oe(le),xe=this._bucketRequestParams("GET",le,"website",Se),xe.successStatuses=[200],xe.xmlResponse=!0,be.next=6,this.request(xe);case 6:return ge=be.sent,Me=[],ge.data.RoutingRules&&ge.data.RoutingRules.RoutingRule&&(re(ge.data.RoutingRules.RoutingRule)?Me=[ge.data.RoutingRules.RoutingRule]:Me=ge.data.RoutingRules.RoutingRule),be.abrupt("return",{index:ge.data.IndexDocument&&ge.data.IndexDocument.Suffix||"",supportSubDir:ge.data.IndexDocument&&ge.data.IndexDocument.SupportSubDir||"false",type:ge.data.IndexDocument&&ge.data.IndexDocument.Type,routingRules:Me,error:ge.data.ErrorDocument&&ge.data.ErrorDocument.Key||null,res:ge.res});case 10:case"end":return be.stop()}},pe,this)}));function fe(pe,le){return ce.apply(this,arguments)}return fe}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.getBucketWorm=void 0;var ne=x("../utils/checkBucketName"),oe=x("../utils/dataFix");function he(se,ce){return re.apply(this,arguments)}function re(){return re=(0,ae.default)(te.default.mark(function se(ce,fe){var pe,le;return te.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ne.checkBucketName(ce),pe=this._bucketRequestParams("GET",ce,"worm",fe),pe.successStatuses=[200],pe.xmlResponse=!0,xe.next=6,this.request(pe);case 6:return le=xe.sent,oe.dataFix(le.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),xe.abrupt("return",Object.assign(Object.assign({},le.data),{res:le.res,status:le.status}));case 9:case"end":return xe.stop()}},se,this)})),re.apply(this,arguments)}ve.getBucketWorm=he},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.initiateBucketWorm=void 0;var ne=x("../utils/obj2xml"),oe=x("../utils/checkBucketName");function he(se,ce,fe){return re.apply(this,arguments)}function re(){return re=(0,ae.default)(te.default.mark(function se(ce,fe,pe){var le,Se,xe;return te.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return oe.checkBucketName(ce),le=this._bucketRequestParams("POST",ce,"worm",pe),Se={InitiateWormConfiguration:{RetentionPeriodInDays:fe}},le.mime="xml",le.content=ne.obj2xml(Se,{headers:!0}),le.successStatuses=[200],Me.next=8,this.request(le);case 8:return xe=Me.sent,Me.abrupt("return",{res:xe.res,wormId:xe.res.headers["x-oss-worm-id"],status:xe.status});case 10:case"end":return Me.stop()}},se,this)})),re.apply(this,arguments)}ve.initiateBucketWorm=he},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.listBucketInventory=void 0;var ne=x("../utils/checkBucketName"),oe=x("../utils/formatInventoryConfig");function he(se){return re.apply(this,arguments)}function re(){return re=(0,ae.default)(te.default.mark(function se(ce){var fe,pe,le,Se,xe,ge,Me,ye,be=arguments;return te.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return fe=be.length>1&&be[1]!==void 0?be[1]:{},pe=fe.continuationToken,le=Object.assign({inventory:""},pe&&{"continuation-token":pe},fe.subres),ne.checkBucketName(ce),Se=this._bucketRequestParams("GET",ce,le,fe),Se.successStatuses=[200],Se.xmlResponse=!0,ke.next=9,this.request(Se);case 9:return xe=ke.sent,ge=xe.data,Me=xe.res,ye=xe.status,ke.abrupt("return",{isTruncated:ge.IsTruncated==="true",nextContinuationToken:ge.NextContinuationToken,inventoryList:oe.formatInventoryConfig(ge.InventoryConfiguration,!0),status:ye,res:Me});case 12:case"end":return ke.stop()}},se,this)})),re.apply(this,arguments)}ve.listBucketInventory=he},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.concat.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.putBucketInventory=void 0;var ne=x("../utils/checkBucketName"),oe=x("../utils/obj2xml");function he(se,ce){return re.apply(this,arguments)}function re(){return re=(0,ae.default)(te.default.mark(function se(ce,fe){var pe,le,Se,xe,ge,Me,ye,be,Fe,ke,De,Le=arguments;return te.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return pe=Le.length>2&&Le[2]!==void 0?Le[2]:{},le=Object.assign({inventory:"",inventoryId:fe.id},pe.subres),ne.checkBucketName(ce),Se=fe.OSSBucketDestination,xe=fe.optionalFields,ge=fe.includedObjectVersions,Me="acs:oss:::",ye="acs:ram::".concat(Se.accountId,":role/"),be={InventoryConfiguration:{Id:fe.id,IsEnabled:fe.isEnabled,Filter:{Prefix:fe.prefix||""},Destination:{OSSBucketDestination:{Format:Se.format,AccountId:Se.accountId,RoleArn:"".concat(ye).concat(Se.rolename),Bucket:"".concat(Me).concat(Se.bucket),Prefix:Se.prefix||"",Encryption:Se.encryption||""}},Schedule:{Frequency:fe.frequency},IncludedObjectVersions:ge,OptionalFields:{Field:(xe==null?void 0:xe.field)||[]}}},Fe=oe.obj2xml(be,{headers:!0,firstUpperCase:!0}),ke=this._bucketRequestParams("PUT",ce,le,pe),ke.successStatuses=[200],ke.mime="xml",ke.content=Fe,Be.next=14,this.request(ke);case 14:return De=Be.sent,Be.abrupt("return",{status:De.status,res:De.res});case 16:case"end":return Be.stop()}},se,this)})),re.apply(this,arguments)}ve.putBucketInventory=he},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.array.includes.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=x("../utils/isArray"),re=he.isArray,se=x("../utils/deepCopy"),ce=se.deepCopy,fe=x("../utils/isObject"),pe=fe.isObject,le=x("../utils/obj2xml"),Se=le.obj2xml,xe=x("../utils/checkObjectTag"),ge=xe.checkObjectTag,Me=x("../utils/getStrBytesCount"),ye=Me.getStrBytesCount,be=ve;be.putBucketLifecycle=function(){var Ie=(0,ae.default)(te.default.mark(function Ue(_e,We,Ze){var et,it,pt,Ge,Xe;return te.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(oe(_e),re(We)){dt.next=3;break}throw new Error("rules must be Array");case 3:return et=this._bucketRequestParams("PUT",_e,"lifecycle",Ze),it=[],pt={LifecycleConfiguration:{Rule:it}},We.forEach(function(st){Fe(st),Le(st),st.id&&(st.ID=st.id,delete st.id),it.push(st)}),Ge=Se(pt,{headers:!0,firstUpperCase:!0}),et.content=Ge,et.mime="xml",et.successStatuses=[200],dt.next=13,this.request(et);case 13:return Xe=dt.sent,dt.abrupt("return",{res:Xe.res});case 15:case"end":return dt.stop()}},Ue,this)}));function Be(Ue,_e,We){return Ie.apply(this,arguments)}return Be}();function Fe(Ie){Ie.days&&(Ie.expiration={days:Ie.days}),Ie.date&&(Ie.expiration={createdBeforeDate:Ie.date})}function ke(Ie,Be){var Ue=Ie.days,_e=Ie.createdBeforeDate;if(!Ue&&!_e)throw new Error("".concat(Be," must includes days or createdBeforeDate"));if(Ue&&!/^[1-9][0-9]*$/.test(Ue))throw new Error("days must be a positive integer");if(_e&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(_e))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function De(Ie){if(!re(Ie)&&!pe(Ie))throw new Error("tag must be Object or Array");Ie=pe(Ie)?[Ie]:Ie;var Be={},Ue=ce(Ie);Ue.forEach(function(_e){Be[_e.key]=_e.value}),ge(Be)}function Le(Ie){if(Ie.id&&ye(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");ke(Ie.transition,"Transition")}if(Ie.expiration){if(!Ie.expiration.expiredObjectDeleteMarker)ke(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&&ke(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");De(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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.includes.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=x("../utils/obj2xml"),re=he.obj2xml,se=ve;se.putBucketVersioning=function(){var ce=(0,ae.default)(te.default.mark(function pe(le,Se){var xe,ge,Me,ye,be=arguments;return te.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(xe=be.length>2&&be[2]!==void 0?be[2]:{},oe(le),["Enabled","Suspended"].includes(Se)){ke.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ge=this._bucketRequestParams("PUT",le,"versioning",xe),Me={VersioningConfiguration:{Status:Se}},ge.mime="xml",ge.content=re(Me,{headers:!0}),ke.next=10,this.request(ge);case 10:return ye=ke.sent,ke.abrupt("return",{res:ye.res,status:ye.status});case 12:case"end":return ke.stop()}},pe,this)}));function fe(pe,le){return ce.apply(this,arguments)}return fe}()},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=x("../utils/obj2xml"),re=he.obj2xml,se=x("../utils/isArray"),ce=se.isArray,fe=ve;fe.putBucketWebsite=function(){var pe=(0,ae.default)(te.default.mark(function Se(xe){var ge,Me,ye,be,Fe,ke,De,Le=arguments;return te.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(ge=Le.length>1&&Le[1]!==void 0?Le[1]:{},Me=Le.length>2?Le[2]:void 0,oe(xe),ye=this._bucketRequestParams("PUT",xe,"website",Me),be={Suffix:ge.index||"index.html"},Fe={IndexDocument:be},ke={WebsiteConfiguration:Fe},ge.supportSubDir&&(be.SupportSubDir=ge.supportSubDir),ge.type&&(be.Type=ge.type),ge.error&&(Fe.ErrorDocument={Key:ge.error}),ge.routingRules===void 0){Be.next=14;break}if(ce(ge.routingRules)){Be.next=13;break}throw new Error("RoutingRules must be Array");case 13:Fe.RoutingRules={RoutingRule:ge.routingRules};case 14:return ke=re(ke),ye.content=ke,ye.mime="xml",ye.successStatuses=[200],Be.next=20,this.request(ye);case 20:return De=Be.sent,Be.abrupt("return",{res:De.res});case 22:case"end":return Be.stop()}},Se,this)}));function le(Se){return pe.apply(this,arguments)}return le}()},{"../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(x,Te,ve){(function(ie){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),ve.encodeCallback=function(ae,ne){if(ae.headers=ae.headers||{},!Object.prototype.hasOwnProperty.call(ae.headers,"x-oss-callback")&&ne.callback){var oe={callbackUrl:encodeURI(ne.callback.url),callbackBody:ne.callback.body};ne.callback.host&&(oe.callbackHost=ne.callback.host),ne.callback.contentType&&(oe.callbackBodyType=ne.callback.contentType);var he=ie.from(JSON.stringify(oe)).toString("base64");if(ae.headers["x-oss-callback"]=he,ne.callback.customValue){var re={};Object.keys(ne.callback.customValue).forEach(function(se){re["x:".concat(se)]=ne.callback.customValue[se].toString()}),ae.headers["x-oss-callback-var"]=ie.from(JSON.stringify(re)).toString("base64")}}}}).call(this)}).call(this,x("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(x,Te,ve){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js");var ie=function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.getReqUrl=void 0;var te=ie(x("copy-to")),ae=ie(x("url")),ne=ie(x("merge-descriptors")),oe=ie(x("is-type-of")),he=x("../utils/isIP"),re=x("../utils/checkConfigValid");function se(ce){var fe={},pe=this.options.cname;re.checkConfigValid(this.options.endpoint,"endpoint"),te.default(this.options.endpoint,!1).to(fe),ce.bucket&&!pe&&!he.isIP(fe.hostname)&&!this.options.sldEnable&&(fe.host="".concat(ce.bucket,".").concat(fe.host));var le="/";ce.bucket&&this.options.sldEnable&&(le+="".concat(ce.bucket,"/")),ce.object&&(le+=this._escape(ce.object).replace(/\+/g,"%2B")),fe.pathname=le;var Se={};if(ce.query&&ne.default(Se,ce.query),ce.subres){var xe={};oe.default.string(ce.subres)?xe[ce.subres]="":oe.default.array(ce.subres)?ce.subres.forEach(function(ge){xe[ge]=""}):xe=ce.subres,ne.default(Se,xe)}return fe.query=Se,ae.default.format(fe)}ve.getReqUrl=se},{"../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(x,Te,ve){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.string.trim.js");var ie=x("humanize-ms"),te=x("url"),ae=x("../utils/checkBucketName"),ne=ae.checkBucketName,oe=x("../utils/setRegion"),he=oe.setRegion,re=x("../utils/checkConfigValid"),se=re.checkConfigValid;function ce(fe,pe){se(fe,"endpoint");var le=te.parse(fe);if(le.protocol||(le=te.parse("http".concat(pe?"s":"","://").concat(fe))),le.protocol!=="http:"&&le.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return le}Te.exports=function(fe){if(!fe||!fe.accessKeyId||!fe.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");fe.stsToken&&!fe.refreshSTSToken&&!fe.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),fe.bucket&&ne(fe.bucket);var pe=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},fe);if(pe.accessKeyId=pe.accessKeyId.trim(),pe.accessKeySecret=pe.accessKeySecret.trim(),pe.timeout&&(pe.timeout=ie(pe.timeout)),pe.endpoint)pe.endpoint=ce(pe.endpoint,pe.secure);else if(pe.region)pe.endpoint=he(pe.region,pe.internal,pe.secure);else throw new Error("require options.endpoint or options.region");return pe.inited=!0,pe}},{"../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(x,Te,ve){"use strict";var ie=x("merge-descriptors"),te=ve;ie(te,x("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.concat.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkBucketName"),oe=ne.checkBucketName,he=x("querystring"),re=x("js-base64"),se=re.Base64.encode,ce=ve;ce.processObjectSave=function(){var pe=(0,ae.default)(te.default.mark(function Se(xe,ge,Me,ye){var be,Fe,ke,De;return te.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return fe(xe,"sourceObject"),fe(ge,"targetObject"),fe(Me,"process"),ge=this._objectName(ge),ye&&oe(ye),be=this._objectRequestParams("POST",xe,{subres:"x-oss-process"}),Fe=ye?",b_".concat(se(ye)):"",ge=se(ge),ke={"x-oss-process":"".concat(Me,"|sys/saveas,o_").concat(ge).concat(Fe)},be.content=he.stringify(ke),Ie.next=12,this.request(be);case 12:return De=Ie.sent,Ie.abrupt("return",{res:De.res,status:De.res.status});case 14:case"end":return Ie.stop()}},Se,this)}));function le(Se,xe,ge,Me){return pe.apply(this,arguments)}return le}();function fe(pe,le){if(!pe)throw new Error("".concat(le," is required"));if(typeof pe!="string")throw new Error("".concat(le," 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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.regexp.to-string.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("debug")("ali-oss:multipart-copy"),oe=x("copy-to"),he=ve;he.uploadPartCopy=function(){var re=(0,ae.default)(te.default.mark(function ce(fe,pe,le,Se,xe){var ge,Me,ye,be,Fe,ke=arguments;return te.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return ge=ke.length>5&&ke[5]!==void 0?ke[5]:{},ge.headers=ge.headers||{},Me=ge.versionId||ge.subres&&ge.subres.versionId||null,Me?ye="/".concat(xe.sourceBucketName,"/").concat(encodeURIComponent(xe.sourceKey),"?versionId=").concat(Me):ye="/".concat(xe.sourceBucketName,"/").concat(encodeURIComponent(xe.sourceKey)),ge.headers["x-oss-copy-source"]=ye,Se&&(ge.headers["x-oss-copy-source-range"]="bytes=".concat(Se)),ge.subres={partNumber:le,uploadId:pe},be=this._objectRequestParams("PUT",fe,ge),be.mime=ge.mime,be.successStatuses=[200],Le.next=12,this.request(be);case 12:return Fe=Le.sent,Le.abrupt("return",{name:fe,etag:Fe.res.headers.etag,res:Fe.res});case 14:case"end":return Le.stop()}},ce,this)}));function se(ce,fe,pe,le,Se){return re.apply(this,arguments)}return se}(),he.multipartUploadCopy=function(){var re=(0,ae.default)(te.default.mark(function ce(fe,pe){var le,Se,xe,ge,Me,ye,be,Fe,ke,De,Le,Ie,Be=arguments;return te.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return le=Be.length>2&&Be[2]!==void 0?Be[2]:{},this.resetCancelFlag(),Se=le.versionId,xe=Se===void 0?null:Se,ge={versionId:xe},_e.next=6,this._getObjectMeta(pe.sourceBucketName,pe.sourceKey,ge);case 6:if(Me=_e.sent,ye=Me.res.headers["content-length"],pe.startOffset=pe.startOffset||0,pe.endOffset=pe.endOffset||ye,!(le.checkpoint&&le.checkpoint.uploadId)){_e.next=14;break}return _e.next=13,this._resumeMultipartCopy(le.checkpoint,pe,le);case 13:return _e.abrupt("return",_e.sent);case 14:if(be=102400,Fe=pe.endOffset-pe.startOffset,!(Fe<be)){_e.next=18;break}throw new Error("copySize must not be smaller than ".concat(be));case 18:if(!(le.partSize&&le.partSize<be)){_e.next=20;break}throw new Error("partSize must not be smaller than ".concat(be));case 20:return _e.next=22,this.initMultipartUpload(fe,le);case 22:if(ke=_e.sent,De=ke.uploadId,Le=this._getPartSize(Fe,le.partSize),Ie={name:fe,copySize:Fe,partSize:Le,uploadId:De,doneParts:[]},!(le&&le.progress)){_e.next=29;break}return _e.next=29,le.progress(0,Ie,ke.res);case 29:return _e.next=31,this._resumeMultipartCopy(Ie,pe,le);case 31:return _e.abrupt("return",_e.sent);case 32:case"end":return _e.stop()}},ce,this)}));function se(ce,fe){return re.apply(this,arguments)}return se}(),he._resumeMultipartCopy=function(){var re=(0,ae.default)(te.default.mark(function ce(fe,pe,le){var Se,xe,ge,Me,ye,be,Fe,ke,De,Le,Ie,Be,Ue,_e,We,Ze,et,it,pt,Ge,Xe;return te.default.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(!this.isCancel()){dt.next=2;break}throw this._makeCancelEvent();case 2:if(Se=le.versionId,xe=Se===void 0?null:Se,ge={versionId:xe},Me=fe.copySize,ye=fe.partSize,be=fe.uploadId,Fe=fe.doneParts,ke=fe.name,De=this._divideMultipartCopyParts(Me,ye,pe.startOffset),Le=De.length,Ie={headers:{}},le.copyheaders&&oe(le.copyheaders).to(Ie.headers),xe&&oe(ge).to(Ie),Be=function(nt,rt,at){return new Promise(function(){var gt=(0,ae.default)(te.default.mark(function vt(Et,At){var ut,Ye,Ve;return te.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Ce.prev=0,nt.isCancel()){Ce.next=22;break}return ut=De[rt-1],Ye="".concat(ut.start,"-").concat(ut.end-1),Ce.prev=4,Ce.next=7,nt.uploadPartCopy(ke,be,rt,Ye,at,Ie);case 7:Ve=Ce.sent,Ce.next=15;break;case 10:if(Ce.prev=10,Ce.t0=Ce.catch(4),Ce.t0.status!==404){Ce.next=14;break}throw nt._makeAbortEvent();case 14:throw Ce.t0;case 15:if(nt.isCancel()){Ce.next=22;break}if(ne("content-range ".concat(Ve.res.headers["content-range"])),Fe.push({number:rt,etag:Ve.res.headers.etag}),fe.doneParts=Fe,!(le&&le.progress)){Ce.next=22;break}return Ce.next=22,le.progress(Fe.length/Le,fe,Ve.res);case 22:Et(),Ce.next=29;break;case 25:Ce.prev=25,Ce.t1=Ce.catch(0),Ce.t1.partNum=rt,At(Ce.t1);case 29:case"end":return Ce.stop()}},vt,null,[[0,25],[4,10]])}));return function(vt,Et){return gt.apply(this,arguments)}}())},Ue=Array.from(new Array(Le),function(st,nt){return nt+1}),_e=Fe.map(function(st){return st.number}),We=Ue.filter(function(st){return _e.indexOf(st)<0}),Ze=5,et=le.parallel||Ze,!(this.checkBrowserAndVersion("Internet Explorer","10")||et===1)){dt.next=28;break}it=0;case 18:if(!(it<We.length)){dt.next=26;break}if(!this.isCancel()){dt.next=21;break}throw this._makeCancelEvent();case 21:return dt.next=23,Be(this,We[it],pe);case 23:it++,dt.next=18;break;case 26:dt.next=40;break;case 28:return dt.next=30,this._parallelNode(We,et,Be,pe);case 30:if(pt=dt.sent,Ge=pt.find(function(st){return st.name==="abort"}),!Ge){dt.next=34;break}throw Ge;case 34:if(!this.isCancel()){dt.next=36;break}throw this._makeCancelEvent();case 36:if(!(pt&&pt.length>0)){dt.next=40;break}throw Xe=pt[0],Xe.message="Failed to copy some parts with error: ".concat(Xe.toString()," part_num: ").concat(Xe.partNum),Xe;case 40:return dt.next=42,this.completeMultipartUpload(ke,be,Fe,le);case 42:return dt.abrupt("return",dt.sent);case 43:case"end":return dt.stop()}},ce,this)}));function se(ce,fe,pe){return re.apply(this,arguments)}return se}(),he._divideMultipartCopyParts=function(se,ce,fe){for(var pe=Math.ceil(se/ce),le=[],Se=0;Se<pe;Se++){var xe=ce*Se+fe,ge=Math.min(xe+ce,se+fe);le.push({start:xe,end:ge})}return le},he._getObjectMeta=function(){var re=(0,ae.default)(te.default.mark(function ce(fe,pe,le){var Se,xe;return te.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Se=this.getBucket(),this.setBucket(fe),Me.next=4,this.head(pe,le);case 4:return xe=Me.sent,this.setBucket(Se),Me.abrupt("return",xe);case 7:case"end":return Me.stop()}},ce,this)}));function se(ce,fe,pe){return re.apply(this,arguments)}return se}()},{"@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(x,Te,ve){(function(ie){(function(){"use strict";var te=x("@babel/runtime/helpers/interopRequireDefault"),ae=te(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.array.sort.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js");var ne=te(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("copy-to"),he=x("./callback"),re=x("./utils/deepCopy"),se=re.deepCopyWith,ce=x("./utils/isBuffer"),fe=ce.isBuffer,pe=x("./utils/omit"),le=pe.omit,Se=ve;Se.listUploads=function(){var xe=(0,ne.default)(ae.default.mark(function Me(ye,be){var Fe,ke,De,Le;return ae.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return be=be||{},Fe={},oe(be).to(Fe),Fe.subres="uploads",ke=this._objectRequestParams("GET","",Fe),ke.query=ye,ke.xmlResponse=!0,ke.successStatuses=[200],Be.next=10,this.request(ke);case 10:return De=Be.sent,Le=De.data.Upload||[],Array.isArray(Le)||(Le=[Le]),Le=Le.map(function(Ue){return{name:Ue.Key,uploadId:Ue.UploadId,initiated:Ue.Initiated}}),Be.abrupt("return",{res:De.res,uploads:Le,bucket:De.data.Bucket,nextKeyMarker:De.data.NextKeyMarker,nextUploadIdMarker:De.data.NextUploadIdMarker,isTruncated:De.data.IsTruncated==="true"});case 15:case"end":return Be.stop()}},Me,this)}));function ge(Me,ye){return xe.apply(this,arguments)}return ge}(),Se.listParts=function(){var xe=(0,ne.default)(ae.default.mark(function Me(ye,be,Fe,ke){var De,Le,Ie;return ae.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return ke=ke||{},De={},oe(ke).to(De),De.subres={uploadId:be},Le=this._objectRequestParams("GET",ye,De),Le.query=Fe,Le.xmlResponse=!0,Le.successStatuses=[200],Ue.next=10,this.request(Le);case 10:return Ie=Ue.sent,Ue.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 Ue.stop()}},Me,this)}));function ge(Me,ye,be,Fe){return xe.apply(this,arguments)}return ge}(),Se.abortMultipartUpload=function(){var xe=(0,ne.default)(ae.default.mark(function Me(ye,be,Fe){var ke,De,Le;return ae.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return this._stop(),Fe=Fe||{},ke={},oe(Fe).to(ke),ke.subres={uploadId:be},De=this._objectRequestParams("DELETE",ye,ke),De.successStatuses=[204],Be.next=9,this.request(De);case 9:return Le=Be.sent,Be.abrupt("return",{res:Le.res});case 11:case"end":return Be.stop()}},Me,this)}));function ge(Me,ye,be){return xe.apply(this,arguments)}return ge}(),Se.initMultipartUpload=function(){var xe=(0,ne.default)(ae.default.mark(function Me(ye,be){var Fe,ke,De;return ae.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return be=be||{},Fe={},oe(be).to(Fe),Fe.headers=Fe.headers||{},this._convertMetaToHeaders(be.meta,Fe.headers),Fe.subres="uploads",ke=this._objectRequestParams("POST",ye,Fe),ke.mime=be.mime,ke.xmlResponse=!0,ke.successStatuses=[200],Ie.next=12,this.request(ke);case 12:return De=Ie.sent,Ie.abrupt("return",{res:De.res,bucket:De.data.Bucket,name:De.data.Key,uploadId:De.data.UploadId});case 14:case"end":return Ie.stop()}},Me,this)}));function ge(Me,ye){return xe.apply(this,arguments)}return ge}(),Se.uploadPart=function(){var xe=(0,ne.default)(ae.default.mark(function Me(ye,be,Fe,ke,De,Le,Ie){var Be,Ue;return ae.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:if(Be={size:Le-De},Ue=ie&&ie.browser,!Ue){We.next=8;break}return We.next=5,this._createBuffer(ke,De,Le);case 5:Be.content=We.sent,We.next=11;break;case 8:return We.next=10,this._createStream(ke,De,Le);case 10:Be.stream=We.sent;case 11:return We.next=13,this._uploadPart(ye,be,Fe,Be,Ie);case 13:return We.abrupt("return",We.sent);case 14:case"end":return We.stop()}},Me,this)}));function ge(Me,ye,be,Fe,ke,De,Le){return xe.apply(this,arguments)}return ge}(),Se.completeMultipartUpload=function(){var xe=(0,ne.default)(ae.default.mark(function Me(ye,be,Fe,ke){var De,Le,Ie,Be,Ue,_e,We,Ze;return ae.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:for(De=Fe.concat().sort(function(pt,Ge){return pt.number-Ge.number}).filter(function(pt,Ge,Xe){return!Ge||pt.number!==Xe[Ge-1].number}),Le=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Ie=0;Ie<De.length;Ie++)Be=De[Ie],Le+=`<Part>
|
|
|
`,Le+="<PartNumber>".concat(Be.number,`</PartNumber>
|
|
|
`),Le+="<ETag>".concat(Be.etag,`</ETag>
|
|
|
`),Le+=`</Part>
|
|
|
`;return Le+="</CompleteMultipartUpload>",ke=ke||{},Ue={},Ue=se(ke,function(pt){if(fe(pt))return null}),Ue.subres={uploadId:be},Ue.headers=le(Ue.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),_e=this._objectRequestParams("POST",ye,Ue),he.encodeCallback(_e,Ue),_e.mime="xml",_e.content=Le,_e.headers&&_e.headers["x-oss-callback"]||(_e.xmlResponse=!0),_e.successStatuses=[200],it.next=17,this.request(_e);case 17:if(We=it.sent,!ke.progress){it.next=21;break}return it.next=21,ke.progress(1,null,We.res);case 21:return Ze={res:We.res,bucket:_e.bucket,name:ye,etag:We.res.headers.etag},_e.headers&&_e.headers["x-oss-callback"]&&(Ze.data=JSON.parse(We.data.toString())),it.abrupt("return",Ze);case 24:case"end":return it.stop()}},Me,this)}));function ge(Me,ye,be,Fe){return xe.apply(this,arguments)}return ge}(),Se._uploadPart=function(){var xe=(0,ne.default)(ae.default.mark(function Me(ye,be,Fe,ke,De){var Le,Ie,Be,Ue;return ae.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return De=De||{},Le={},oe(De).to(Le),Le.headers=Le.headers||{},Le.headers["Content-Length"]=ke.size,Le.headers=le(Le.headers,["x-oss-server-side-encryption"]),Le.subres={partNumber:Fe,uploadId:be},Ie=this._objectRequestParams("PUT",ye,Le),Ie.mime=Le.mime,Be=ie&&ie.browser,Be?Ie.content=ke.content:Ie.stream=ke.stream,Ie.successStatuses=[200],Ie.disabledMD5=De.disabledMD5,We.next=15,this.request(Ie);case 15:if(Ue=We.sent,Ue.res.headers.etag){We.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 ke.stream&&(ke.stream=null,Ie.stream=null),We.abrupt("return",{name:ye,etag:Ue.res.headers.etag,res:Ue.res});case 20:case"end":return We.stop()}},Me,this)}));function ge(Me,ye,be,Fe,ke){return xe.apply(this,arguments)}return ge}()}).call(this)}).call(this,x("_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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator")),ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("url"),oe=x("utility"),he=x("copy-to"),re=x("../../common/signUtils"),se=x("../utils/isIP"),ce=se.isIP,fe=x("../utils/setSTSToken"),pe=fe.setSTSToken,le=x("../utils/isFunction"),Se=le.isFunction,xe=ve;xe.asyncSignatureUrl=function(){var ge=(0,ae.default)(te.default.mark(function ye(be,Fe){var ke,De,Le,Ie,Be;return te.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!ce(this.options.endpoint.hostname)){_e.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Fe=Fe||{},be=this._objectName(be),Fe.method=Fe.method||"GET",ke=oe.timestamp()+(Fe.expires||1800),De={bucket:this.options.bucket,object:be},Le=this._getResource(De),!(this.options.stsToken&&Se(this.options.refreshSTSToken))){_e.next=11;break}return _e.next=11,pe.call(this);case 11:return this.options.stsToken&&(Fe["security-token"]=this.options.stsToken),Ie=re._signatureForURL(this.options.accessKeySecret,Fe,Le,ke),Be=ne.parse(this._getReqUrl(De)),Be.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ke,Signature:Ie.Signature},he(Ie.subResource).to(Be.query),_e.abrupt("return",Be.format());case 17:case"end":return _e.stop()}},ye,this)}));function Me(ye,be){return ge.apply(this,arguments)}return Me}()},{"../../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js");var ae=ie(x("@babel/runtime/helpers/typeof")),ne=ie(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("../utils/checkBucketName"),he=oe.checkBucketName,re=ve,se=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];re.copy=function(){var ce=(0,ne.default)(te.default.mark(function pe(le,Se,xe,ge){var Me,ye,be;return te.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return(0,ae.default)(xe)==="object"&&(ge=xe),ge=ge||{},ge.headers=ge.headers||{},Object.keys(ge.headers).forEach(function(De){ge.headers["x-oss-copy-source-".concat(De.toLowerCase())]=ge.headers[De]}),(ge.meta||Object.keys(ge.headers).find(function(De){return se.includes(De.toLowerCase())}))&&(ge.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ge.meta,ge.headers),Se=this._getSourceName(Se,xe),ge.versionId&&(Se="".concat(Se,"?versionId=").concat(ge.versionId)),ge.headers["x-oss-copy-source"]=Se,Me=this._objectRequestParams("PUT",le,ge),Me.xmlResponse=!0,Me.successStatuses=[200,304],ke.next=14,this.request(Me);case 14:return ye=ke.sent,be=ye.data,be&&(be={etag:be.ETag,lastModified:be.LastModified}),ke.abrupt("return",{data:be,res:ye.res});case 18:case"end":return ke.stop()}},pe,this)}));function fe(pe,le,Se,xe){return ce.apply(this,arguments)}return fe}(),re._getSourceName=function(fe,pe){return typeof pe=="string"?fe=this._objectName(fe):fe[0]!=="/"?pe=this.options.bucket:(pe=fe.replace(/\/(.+?)(\/.*)/,"$1"),fe=fe.replace(/(\/.+?\/)(.*)/,"$2")),he(pe),fe=encodeURIComponent(fe),fe="/".concat(pe,"/").concat(fe),fe}},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve;ne.delete=function(){var oe=(0,ae.default)(te.default.mark(function re(se){var ce,fe,pe,le=arguments;return te.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ce=le.length>1&&le[1]!==void 0?le[1]:{},ce.subres=Object.assign({},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),fe=this._objectRequestParams("DELETE",se,ce),fe.successStatuses=[204],xe.next=7,this.request(fe);case 7:return pe=xe.sent,xe.abrupt("return",{res:pe.res});case 9:case"end":return xe.stop()}},re,this)}));function he(re){return oe.apply(this,arguments)}return he}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("utility"),oe=x("../utils/obj2xml"),he=oe.obj2xml,re=ve;re.deleteMulti=function(){var se=(0,ae.default)(te.default.mark(function fe(pe){var le,Se,xe,ge,Me,ye,be,Fe,ke,De,Le,Ie,Be,Ue=arguments;return te.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:if(le=Ue.length>1&&Ue[1]!==void 0?Ue[1]:{},Se=[],!(!pe||!pe.length)){We.next=4;break}throw new Error("names is required");case 4:for(xe=0;xe<pe.length;xe++)ge={},typeof pe[xe]=="string"?ge.Key=ne.escape(this._objectName(pe[xe])):(Me=pe[xe],ye=Me.key,be=Me.versionId,ge.Key=ne.escape(this._objectName(ye)),ge.VersionId=be),Se.push(ge);return Fe={Delete:{Quiet:!!le.quiet,Object:Se}},ke=he(Fe,{headers:!0}),le.subres=Object.assign({delete:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),De=this._objectRequestParams("POST","",le),De.mime="xml",De.content=ke,De.xmlResponse=!0,De.successStatuses=[200],We.next=16,this.request(De);case 16:return Le=We.sent,Ie=Le.data,Be=Ie&&Ie.Deleted||null,Be&&(Array.isArray(Be)||(Be=[Be])),We.abrupt("return",{res:Le.res,deleted:Be||[]});case 21:case"end":return We.stop()}},fe,this)}));function ce(fe){return se.apply(this,arguments)}return ce}()},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve;ne.deleteObjectTagging=function(){var oe=(0,ae.default)(te.default.mark(function re(se){var ce,fe,pe,le=arguments;return te.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ce=le.length>1&&le[1]!==void 0?le[1]:{},ce.subres=Object.assign({tagging:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),se=this._objectName(se),fe=this._objectRequestParams("DELETE",se,ce),fe.successStatuses=[204],xe.next=8,this.request(fe);case 8:return pe=xe.sent,xe.abrupt("return",{status:pe.status,res:pe.res});case 10:case"end":return xe.stop()}},re,this)}));function he(re){return oe.apply(this,arguments)}return he}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(x,Te,ve){"use strict";x("core-js/modules/es.array.concat.js");var ie=x("url"),te=x("../utils/isIP"),ae=te.isIP,ne=ve;ne.generateObjectUrl=function(he,re){if(ae(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(re)re[re.length-1]!=="/"&&(re+="/");else{re=this.options.endpoint.format();var se=ie.parse(re),ce=this.options.bucket;se.hostname="".concat(ce,".").concat(se.hostname),se.host="".concat(ce,".").concat(se.host),re=se.format()}return re+this._escape(this._objectName(he))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(x,Te,ve){(function(ie){(function(){"use strict";var te=x("@babel/runtime/helpers/interopRequireDefault"),ae=te(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ne=te(x("@babel/runtime/helpers/asyncToGenerator")),oe=x("fs"),he=x("is-type-of"),re=ve;re.get=function(){var se=(0,ne.default)(ae.default.mark(function fe(pe,le){var Se,xe,ge,Me,ye,be,Fe,ke,De=arguments;return ae.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Se=De.length>2&&De[2]!==void 0?De[2]:{},xe=null,ge=!1,he.writableStream(le)?xe=le:he.string(le)?(xe=oe.createWriteStream(le),ge=!0):Se=le,Se=Se||{},Me=ie&&ie.browser,ye=Se.responseCacheControl===null?"":"no-cache",be=Me&&ye?{"response-cache-control":ye}:{},Se.subres=Object.assign(be,Se.subres),Se.versionId&&(Se.subres.versionId=Se.versionId),Se.process&&(Se.subres["x-oss-process"]=Se.process),Ie.prev=11,ke=this._objectRequestParams("GET",pe,Se),ke.writeStream=xe,ke.successStatuses=[200,206,304],Ie.next=17,this.request(ke);case 17:Fe=Ie.sent,ge&&xe.destroy(),Ie.next=28;break;case 21:if(Ie.prev=21,Ie.t0=Ie.catch(11),!ge){Ie.next=27;break}return xe.destroy(),Ie.next=27,this._deleteFileSafe(le);case 27:throw Ie.t0;case 28:return Ie.abrupt("return",{res:Fe.res,content:Fe.data});case 29:case"end":return Ie.stop()}},fe,this,[[11,21]])}));function ce(fe,pe){return se.apply(this,arguments)}return ce}()}).call(this)}).call(this,x("_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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve;ne.getACL=function(){var oe=(0,ae.default)(te.default.mark(function re(se){var ce,fe,pe,le=arguments;return te.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ce=le.length>1&&le[1]!==void 0?le[1]:{},ce.subres=Object.assign({acl:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),se=this._objectName(se),fe=this._objectRequestParams("GET",se,ce),fe.successStatuses=[200],fe.xmlResponse=!0,xe.next=9,this.request(fe);case 9:return pe=xe.sent,xe.abrupt("return",{acl:pe.data.AccessControlList.Grant,owner:{id:pe.data.Owner.ID,displayName:pe.data.Owner.DisplayName},res:pe.res});case 11:case"end":return xe.stop()}},re,this)}));function he(re){return oe.apply(this,arguments)}return he}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.number.constructor.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve,oe=x("../utils/isObject"),he=oe.isObject,re=x("../utils/isArray"),se=re.isArray;ne.getBucketVersions=ce,ne.listObjectVersions=ce;function ce(){return fe.apply(this,arguments)}function fe(){return fe=(0,ae.default)(te.default.mark(function Se(){var xe,ge,Me,ye,be,Fe,ke,De,Le=arguments;return te.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(xe=Le.length>0&&Le[0]!==void 0?Le[0]:{},ge=Le.length>1&&Le[1]!==void 0?Le[1]:{},!(xe.versionIdMarker&&xe.keyMarker===void 0)){Be.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ge.subres=Object.assign({versions:""},ge.subres),ge.versionId&&(ge.subres.versionId=ge.versionId),Me=this._objectRequestParams("GET","",ge),Me.xmlResponse=!0,Me.successStatuses=[200],Me.query=le(xe),Be.next=12,this.request(Me);case 12:return ye=Be.sent,be=ye.data.Version||[],Fe=ye.data.DeleteMarker||[],ke=this,be&&(Array.isArray(be)||(be=[be]),be=be.map(function(Ue){return{name:Ue.Key,url:ke._objectUrl(Ue.Key),lastModified:Ue.LastModified,isLatest:Ue.IsLatest==="true",versionId:Ue.VersionId,etag:Ue.ETag,type:Ue.Type,size:Number(Ue.Size),storageClass:Ue.StorageClass,owner:{id:Ue.Owner.ID,displayName:Ue.Owner.DisplayName}}})),Fe&&(se(Fe)||(Fe=[Fe]),Fe=Fe.map(function(Ue){return{name:Ue.Key,lastModified:Ue.LastModified,versionId:Ue.VersionId,owner:{id:Ue.Owner.ID,displayName:Ue.Owner.DisplayName}}})),De=ye.data.CommonPrefixes||null,De&&(se(De)||(De=[De]),De=De.map(function(Ue){return Ue.Prefix})),Be.abrupt("return",{res:ye.res,objects:be,deleteMarker:Fe,prefixes:De,nextMarker:ye.data.NextKeyMarker||null,NextVersionIdMarker:ye.data.NextVersionIdMarker||null,nextKeyMarker:ye.data.NextKeyMarker||null,nextVersionIdMarker:ye.data.NextVersionIdMarker||null,isTruncated:ye.data.IsTruncated==="true"});case 21:case"end":return Be.stop()}},Se,this)})),fe.apply(this,arguments)}function pe(Se){return Se.replace(/([A-Z])/g,"-$1").toLowerCase()}function le(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xe={};return he(Se)&&Object.keys(Se).forEach(function(ge){xe[pe(ge)]=Se[ge]}),xe}},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve;ne.getObjectMeta=function(){var oe=(0,ae.default)(te.default.mark(function re(se,ce){var fe,pe;return te.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ce=ce||{},se=this._objectName(se),ce.subres=Object.assign({objectMeta:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),fe=this._objectRequestParams("HEAD",se,ce),fe.successStatuses=[200],Se.next=8,this.request(fe);case 8:return pe=Se.sent,Se.abrupt("return",{status:pe.status,res:pe.res});case 10:case"end":return Se.stop()}},re,this)}));function he(re,se){return oe.apply(this,arguments)}return he}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve,oe=x("../utils/isObject"),he=oe.isObject;ne.getObjectTagging=function(){var re=(0,ae.default)(te.default.mark(function ce(fe){var pe,le,Se,xe,ge,Me,ye=arguments;return te.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return pe=ye.length>1&&ye[1]!==void 0?ye[1]:{},pe.subres=Object.assign({tagging:""},pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),fe=this._objectName(fe),le=this._objectRequestParams("GET",fe,pe),le.successStatuses=[200],Fe.next=8,this.request(le);case 8:return Se=Fe.sent,Fe.next=11,this.parseXML(Se.data);case 11:return xe=Fe.sent,ge=xe.TagSet.Tag,ge=ge&&he(ge)?[ge]:ge||[],Me={},ge.forEach(function(ke){Me[ke.Key]=ke.Value}),Fe.abrupt("return",{status:Se.status,res:Se.res,tag:Me});case 17:case"end":return Fe.stop()}},ce,this)}));function se(ce){return re.apply(this,arguments)}return se}()},{"../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(x,Te,ve){"use strict";var ie=x("../utils/isIP"),te=ie.isIP,ae=ve;ae.getObjectUrl=function(oe,he){if(te(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return he?he[he.length-1]!=="/"&&(he+="/"):he=this.options.endpoint.format(),he+this._escape(this._objectName(oe))}},{"../utils/isIP":69}],43:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve;ne.getSymlink=function(){var oe=(0,ae.default)(te.default.mark(function re(se){var ce,fe,pe,le,Se=arguments;return te.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ce=Se.length>1&&Se[1]!==void 0?Se[1]:{},ce.subres=Object.assign({symlink:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),se=this._objectName(se),fe=this._objectRequestParams("GET",se,ce),fe.successStatuses=[200],ge.next=8,this.request(fe);case 8:return pe=ge.sent,le=pe.res.headers["x-oss-symlink-target"],ge.abrupt("return",{targetName:decodeURIComponent(le),res:pe.res});case 11:case"end":return ge.stop()}},re,this)}));function he(re){return oe.apply(this,arguments)}return he}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/checkEnv"),oe=ne.checkEnv,he=ve;he.head=function(){var re=(0,ae.default)(te.default.mark(function ce(fe){var pe,le,Se,xe,ge=arguments;return te.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return pe=ge.length>1&&ge[1]!==void 0?ge[1]:{},oe("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),pe.subres=Object.assign({},pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),le=this._objectRequestParams("HEAD",fe,pe),le.successStatuses=[200,304],ye.next=8,this.request(le);case 8:return Se=ye.sent,xe={meta:null,res:Se.res,status:Se.status},Se.status===200&&Object.keys(Se.headers).forEach(function(be){be.indexOf("x-oss-meta-")===0&&(xe.meta||(xe.meta={}),xe.meta[be.substring(11)]=Se.headers[be])}),ye.abrupt("return",xe);case 12:case"end":return ye.stop()}},ce,this)}));function se(ce){return re.apply(this,arguments)}return se}()},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve;ne.putACL=function(){var oe=(0,ae.default)(te.default.mark(function re(se,ce,fe){var pe,le;return te.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return fe=fe||{},fe.subres=Object.assign({acl:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),fe.headers=fe.headers||{},fe.headers["x-oss-object-acl"]=ce,se=this._objectName(se),pe=this._objectRequestParams("PUT",se,fe),pe.successStatuses=[200],xe.next=10,this.request(pe);case 10:return le=xe.sent,xe.abrupt("return",{res:le.res});case 12:case"end":return xe.stop()}},re,this)}));function he(re,se,ce){return oe.apply(this,arguments)}return he}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.object.keys.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("../utils/obj2xml"),oe=ne.obj2xml,he=x("../utils/checkObjectTag"),re=he.checkObjectTag,se=ve;se.putObjectTagging=function(){var ce=(0,ae.default)(te.default.mark(function pe(le,Se){var xe,ge,Me,ye,be=arguments;return te.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return xe=be.length>2&&be[2]!==void 0?be[2]:{},re(Se),xe.subres=Object.assign({tagging:""},xe.subres),xe.versionId&&(xe.subres.versionId=xe.versionId),le=this._objectName(le),ge=this._objectRequestParams("PUT",le,xe),ge.successStatuses=[200],Se=Object.keys(Se).map(function(De){return{Key:De,Value:Se[De]}}),Me={Tagging:{TagSet:{Tag:Se}}},ge.mime="xml",ge.content=oe(Me),ke.next=13,this.request(ge);case 13:return ye=ke.sent,ke.abrupt("return",{res:ye.res,status:ye.status});case 15:case"end":return ke.stop()}},pe,this)}));function fe(pe,le){return ce.apply(this,arguments)}return fe}()},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=ve;ne.putSymlink=function(){var oe=(0,ae.default)(te.default.mark(function re(se,ce,fe){var pe,le;return te.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return fe=fe||{},fe.headers=fe.headers||{},ce=this._escape(this._objectName(ce)),this._convertMetaToHeaders(fe.meta,fe.headers),fe.headers["x-oss-symlink-target"]=ce,fe.subres=Object.assign({symlink:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),fe.storageClass&&(fe.headers["x-oss-storage-class"]=fe.storageClass),se=this._objectName(se),pe=this._objectRequestParams("PUT",se,fe),pe.successStatuses=[200],xe.next=13,this.request(pe);case 13:return le=xe.sent,xe.abrupt("return",{res:le.res});case 15:case"end":return xe.stop()}},re,this)}));function he(re,se,ce){return oe.apply(this,arguments)}return he}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(x,Te,ve){"use strict";var ie=x("url"),te=x("utility"),ae=x("copy-to"),ne=x("../../common/signUtils"),oe=x("../utils/isIP"),he=oe.isIP,re=ve;re.signatureUrl=function(ce,fe){if(he(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");fe=fe||{},ce=this._objectName(ce),fe.method=fe.method||"GET";var pe=te.timestamp()+(fe.expires||1800),le={bucket:this.options.bucket,object:ce},Se=this._getResource(le);this.options.stsToken&&(fe["security-token"]=this.options.stsToken);var xe=ne._signatureForURL(this.options.accessKeySecret,fe,Se,pe),ge=ie.parse(this._getReqUrl(le));return ge.query={OSSAccessKeyId:this.options.accessKeyId,Expires:pe,Signature:xe.Signature},ae(xe.subResource).to(ge.query),ge.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/web.dom-collections.iterator.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.function.name.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator")),ne=x("./utils/isArray"),oe=ne.isArray,he=ve;he._parallelNode=function(){var re=(0,ae.default)(te.default.mark(function ce(fe,pe,le,Se){var xe,ge,Me,ye,be,Fe,ke,De;return te.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:xe=this,ge=[],Me=[],ye=fe.length/pe,be=fe.length%pe,Fe=be===0?ye:(fe.length-be)/pe+1,ke=1,De=0;case 8:if(!(De<fe.length)){Ie.next=26;break}if(!xe.isCancel()){Ie.next=11;break}return Ie.abrupt("break",26);case 11:if(Se?Me.push(le(xe,fe[De],Se)):Me.push(le(xe,fe[De])),!(Me.length===pe||ke===Fe&&De===fe.length-1)){Ie.next=23;break}return Ie.prev=13,ke+=1,Ie.next=17,Promise.all(Me);case 17:Ie.next=22;break;case 19:Ie.prev=19,Ie.t0=Ie.catch(13),ge.push(Ie.t0);case 22:Me=[];case 23:De++,Ie.next=8;break;case 26:return Ie.abrupt("return",ge);case 27:case"end":return Ie.stop()}},ce,this,[[13,19]])}));function se(ce,fe,pe,le){return re.apply(this,arguments)}return se}(),he._parallel=function(se,ce,fe){var pe=this;return new Promise(function(le){var Se=[];if(ce<=0||!se){le(Se);return}function xe(Ie){return function(){if(Ie===null)throw new Error("Callback was already called.");var Be=Ie;Ie=null;for(var Ue=arguments.length,_e=new Array(Ue),We=0;We<Ue;We++)_e[We]=arguments[We];Be.apply(this,_e)}}function ge(Ie){var Be=-1,Ue=Ie.length;return function(){return++Be<Ue&&!pe.isCancel()?{value:Ie[Be],key:Be}:null}}var Me=ge(se),ye=!1,be=0,Fe=!1;function ke(Ie){be-=1,Ie?(ye=!0,Se.push(Ie),le(Se)):ye&&be<=0?(ye=!0,le(Se)):Fe||(pe.isCancel()?le(Se):Le())}function De(Ie,Be){fe(Ie).then(function(Ue){Be(null,Ue)}).catch(function(Ue){Be(Ue)})}function Le(){for(Fe=!0;be<ce&&!ye&&!pe.isCancel();){var Ie=Me();if(Ie===null||Se.length>0){ye=!0,be<=0&&le(Se);return}be+=1,De(Ie.value,xe(ke))}Fe=!1}Le()})},he.cancel=function(se){this.options.cancelFlag=!0,oe(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(ce){if(ce.destroyed===!1){var fe={name:"cancel",message:"cancel"};ce.destroy(fe)}}),this.multipartUploadStreams=[],se&&this.abortMultipartUpload(se.name,se.uploadId,se.options)},he.isCancel=function(){return this.options.cancelFlag},he.resetCancelFlag=function(){this.options.cancelFlag=!1},he._stop=function(){this.options.cancelFlag=!0},he._makeCancelEvent=function(){var se={status:0,name:"cancel"};return se},he._makeAbortEvent=function(){var se={status:0,name:"abort",message:"upload task has been abort"};return se}},{"./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(x,Te,ve){(function(ie){(function(){"use strict";x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.array.sort.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js");var te=x("./../../shims/crypto/crypto.js"),ae=x("is-type-of"),ne=x("./utils/lowercaseKeyHeader"),oe=ne.lowercaseKeyHeader;ve.buildCanonicalizedResource=function(re,se){var ce="".concat(re),fe="?";if(ae.string(se)&&se.trim()!=="")ce+=fe+se;else if(ae.array(se))se.sort(),ce+=fe+se.join("&");else if(se){var pe=function(xe,ge){return xe[0]>ge[0]?1:xe[0]<ge[0]?-1:0},le=function(xe){ce+=fe+xe,(se[xe]||se[xe]===0)&&(ce+="=".concat(se[xe])),fe="&"};Object.keys(se).sort(pe).forEach(le)}return ce},ve.buildCanonicalString=function(re,se,ce,fe){ce=ce||{};var pe=oe(ce.headers),le="x-oss-",Se=[],xe={},ge=[re.toUpperCase(),pe["content-md5"]||"",pe["content-type"],fe||pe["x-oss-date"]];return Object.keys(pe).forEach(function(Me){var ye=Me.toLowerCase();ye.indexOf(le)===0&&(xe[ye]=String(pe[Me]).trim())}),Object.keys(xe).sort().forEach(function(Me){Se.push("".concat(Me,":").concat(xe[Me]))}),ge=ge.concat(Se),ge.push(this.buildCanonicalizedResource(se,ce.parameters)),ge.join(`
|
|
|
`)},ve.computeSignature=function(re,se){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",fe=te.createHmac("sha1",re);return fe.update(ie.from(se,ce)).digest("base64")},ve.authorization=function(re,se,ce,fe){return"OSS ".concat(re,":").concat(this.computeSignature(se,ce,fe))},ve._signatureForURL=function(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=arguments.length>2?arguments[2]:void 0,fe=arguments.length>3?arguments[3]:void 0,pe=arguments.length>4?arguments[4]:void 0,le={},Se=se.subResource,xe=Se===void 0?{}:Se;if(se.process){var ge="x-oss-process";xe[ge]=se.process}if(se.trafficLimit){var Me="x-oss-traffic-limit";xe[Me]=se.trafficLimit}if(se.response&&Object.keys(se.response).forEach(function(ke){var De="response-".concat(ke.toLowerCase());xe[De]=se.response[ke]}),Object.keys(se).forEach(function(ke){var De=ke.toLowerCase(),Le=se[ke];De.indexOf("x-oss-")===0?le[De]=Le:(De.indexOf("content-md5")===0||De.indexOf("content-type")===0)&&(le[ke]=Le)}),Object.prototype.hasOwnProperty.call(se,"security-token")&&(xe["security-token"]=se["security-token"]),Object.prototype.hasOwnProperty.call(se,"callback")){var ye={callbackUrl:encodeURI(se.callback.url),callbackBody:se.callback.body};if(se.callback.host&&(ye.callbackHost=se.callback.host),se.callback.contentType&&(ye.callbackBodyType=se.callback.contentType),xe.callback=ie.from(JSON.stringify(ye)).toString("base64"),se.callback.customValue){var be={};Object.keys(se.callback.customValue).forEach(function(ke){be["x:".concat(ke)]=se.callback.customValue[ke]}),xe["callback-var"]=ie.from(JSON.stringify(be)).toString("base64")}}var Fe=this.buildCanonicalString(se.method,ce,{headers:le,parameters:xe},fe.toString());return{Signature:this.computeSignature(re,Fe,pe),subResource:xe}}}).call(this)}).call(this,x("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(x,Te,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkBucketName=void 0,ve.checkBucketName=function(ie){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=te?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ae.test(ie))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(x,Te,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkConfigValid=void 0;var ie={endpoint:te,region:/^[a-zA-Z0-9\-_]+$/};function te(ae){return typeof ae=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ae):ae.host?/^[a-zA-Z0-9._:/-]+$/.test(ae.host):!1}ve.checkConfigValid=function(ae,ne){if(ie[ne]){var oe=!0;if(ie[ne]instanceof Function?oe=ie[ne](ae):oe=ie[ne].test(ae),!oe)throw new Error("The ".concat(ne," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(x,Te,ve){(function(ie){(function(){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkEnv=void 0;function te(ae){ie.browser&&console.warn(ae)}ve.checkEnv=te}).call(this)}).call(this,x("_process"))},{_process:467}],54:[function(x,Te,ve){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.entries.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkObjectTag=void 0;var ie=x("./checkValid"),te=ie.checkValid,ae=x("./isObject"),ne=ae.isObject,oe=[{validator:function(ce){if(typeof ce!="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 (/)"}],he={key:[].concat(oe,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(oe,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function re(se){if(!ne(se))throw new Error("tag must be Object");var ce=Object.entries(se);if(ce.length>10)throw new Error("maximum of 10 tags for a object");var fe=["key","value"];ce.forEach(function(pe){pe.forEach(function(le,Se){te(le,he[fe[Se]])})})}ve.checkObjectTag=re},{"./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(x,Te,ve){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkValid=void 0;function ie(te,ae){ae.forEach(function(ne){if(ne.validator)ne.validator(te);else if(ne.pattern&&!ne.pattern.test(te))throw new Error(ne.msg)})}ve.checkValid=ie},{"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(x,Te,ve){(function(ie){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.concat.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.createRequest=void 0;var te=x("./../../../shims/crypto/crypto.js"),ae=x("debug")("ali-oss"),ne=x("mime"),oe=x("dateformat"),he=x("copy-to"),re=x("path"),se=x("./encoder"),ce=se.encoder,fe=x("./isIP"),pe=fe.isIP,le=x("./setRegion"),Se=le.setRegion,xe=x("../client/getReqUrl"),ge=xe.getReqUrl,Me=x("./isDingTalk"),ye=Me.isDingTalk;function be(De,Le){return De[Le]||De[Le.toLowerCase()]}function Fe(De,Le){delete De[Le],delete De[Le.toLowerCase()]}function ke(De){var Le=new Date;this.options.amendTimeSkewed&&(Le=+new Date+this.options.amendTimeSkewed);var Ie={"x-oss-date":oe(Le,"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),he(De.headers).to(Ie),be(Ie,"Content-Type")||(De.mime&&De.mime.indexOf("/")>0?Ie["Content-Type"]=De.mime:ye()?Ie["Content-Type"]="application/octet-stream":Ie["Content-Type"]=ne.getType(De.mime||re.extname(De.object||""))),be(Ie,"Content-Type")||Fe(Ie,"Content-Type"),De.content&&(De.disabledMD5||(!De.headers||!De.headers["Content-MD5"]?Ie["Content-MD5"]=te.createHash("md5").update(ie.from(De.content,"utf8")).digest("base64"):Ie["Content-MD5"]=De.headers["Content-MD5"]),Ie["Content-Length"]||(Ie["Content-Length"]=De.content.length));var Be=Object.prototype.hasOwnProperty;for(var Ue in Ie)Ie[Ue]&&Be.call(Ie,Ue)&&(Ie[Ue]=ce(String(Ie[Ue]),this.options.headerEncoding));var _e=this._getResource(De);if(Ie.authorization=this.authorization(De.method,_e,De.subres,Ie,this.options.headerEncoding),pe(this.options.endpoint.hostname)){var We=this.options,Ze=We.region,et=We.internal,it=We.secure,pt=Se(Ze,et,it);Ie.host="".concat(De.bucket,".").concat(pt.host)}var Ge=ge.bind(this)(De);ae("request %s %s, with headers %j, !!stream: %s",De.method,Ge,Ie,!!De.stream);var Xe=De.timeout||this.options.timeout,lt={method:De.method,content:De.content,stream:De.stream,headers:Ie,timeout:Xe,writeStream:De.writeStream,customResponse:De.customResponse,ctx:De.ctx||this.ctx};return this.agent&&(lt.agent=this.agent),this.httpsAgent&&(lt.httpsAgent=this.httpsAgent),lt.enableProxy=!!this.options.enableProxy,lt.proxy=this.options.proxy?this.options.proxy:null,{url:Ge,params:lt}}ve.createRequest=ke}).call(this)}).call(this,x("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(x,Te,ve){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.entries.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.object.keys.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.dataFix=void 0;var ie=x("./isObject"),te=["true","TRUE","1",1],ae=["false","FALSE","0",0];function ne(re,se,ce){if(ie.isObject(re)){var fe=se.remove,pe=fe===void 0?[]:fe,le=se.rename,Se=le===void 0?{}:le,xe=se.camel,ge=xe===void 0?[]:xe,Me=se.bool,ye=Me===void 0?[]:Me,be=se.lowerFirst,Fe=be===void 0?!1:be;return pe.forEach(function(ke){return delete re[ke]}),Object.entries(Se).forEach(function(ke){re[ke[0]]&&(re[ke[1]]||(re[ke[1]]=re[ke[0]],delete re[ke[0]]))}),ge.forEach(function(ke){if(re[ke]){var De=ke.replace(/^(.)/,function(Le){return Le.toLowerCase()}).replace(/-(\w)/g,function(Le,Ie){return Ie.toUpperCase()});re[De]||(re[De]=re[ke])}}),ye.forEach(function(ke){re[ke]=oe(re[ke])}),typeof ce=="function"&&ce(re),he(re,Fe),ne}}ve.dataFix=ne;function oe(re){return re?te.includes(re)?!0:ae.includes(re)?!1:re:!1}function he(re,se){se&&Object.keys(re).forEach(function(ce){var fe=ce.replace(/^\w/,function(pe){return pe.toLowerCase()});typeof re[fe]=="undefined"&&(re[fe]=re[ce],delete re[ce])})}},{"./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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js");var te=ie(x("@babel/runtime/helpers/typeof"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.deepCopyWith=ve.deepCopy=void 0;var ae=x("./isBuffer");ve.deepCopy=function(ne){if(ne===null||(0,te.default)(ne)!=="object")return ne;if(ae.isBuffer(ne))return ne.slice();var oe=Array.isArray(ne)?[]:{};return Object.keys(ne).forEach(function(he){oe[he]=ve.deepCopy(ne[he])}),oe},ve.deepCopyWith=function(ne,oe){function he(re,se,ce){var fe=oe(re,se,ce);if(fe!==void 0)return fe;if(re===null||(0,te.default)(re)!=="object")return re;if(ae.isBuffer(re))return re.slice();var pe=Array.isArray(re)?[]:{};return Object.keys(re).forEach(function(le){pe[le]=he(re[le],le,re)}),pe}return oe?he(ne,"",null):ve.deepCopy(ne)}},{"./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(x,Te,ve){(function(ie){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.encoder=void 0;function te(ae){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return ne==="utf-8"?ae:ie.from(ae).toString("latin1")}ve.encoder=te}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(x,Te,ve){"use strict";x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.formatInventoryConfig=void 0;var ie=x("../utils/dataFix"),te=x("../utils/isObject"),ae=x("../utils/isArray"),ne=x("../utils/formatObjKey");function oe(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return se&&te.isObject(re)&&(re=[re]),ae.isArray(re)?re=re.map(he):re=he(re),re}ve.formatInventoryConfig=oe;function he(re){return ie.dataFix(re,{bool:["IsEnabled"]},function(se){var ce,fe;se.prefix=se.Filter.Prefix,delete se.Filter,se.OSSBucketDestination=se.Destination.OSSBucketDestination,se.OSSBucketDestination.rolename=se.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete se.OSSBucketDestination.RoleArn,se.OSSBucketDestination.bucket=se.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete se.OSSBucketDestination.Bucket,delete se.Destination,se.frequency=se.Schedule.Frequency,delete se.Schedule.Frequency,!((ce=se==null?void 0:se.OptionalFields)===null||ce===void 0)&&ce.Field&&!ae.isArray((fe=se.OptionalFields)===null||fe===void 0?void 0:fe.Field)&&(se.OptionalFields.Field=[se.OptionalFields.Field])}),re=ne.formatObjKey(re,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),re}},{"../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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js");var te=ie(x("@babel/runtime/helpers/typeof"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.formatObjKey=void 0;function ae(oe,he,re){if(oe===null||(0,te.default)(oe)!=="object")return oe;var se;if(Array.isArray(oe)){se=[];for(var ce=0;ce<oe.length;ce++)se.push(ae(oe[ce],he,re))}else se={},Object.keys(oe).forEach(function(fe){se[ne(fe,he,re)]=ae(oe[fe],he,re)});return se}ve.formatObjKey=ae;function ne(oe,he,re){return re&&re.exclude&&re.exclude.includes(oe)||(he==="firstUpperCase"?oe=oe.replace(/^./,function(se){return se.toUpperCase()}):he==="firstLowerCase"&&(oe=oe.replace(/^./,function(se){return se.toLowerCase()}))),oe}},{"@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(x,Te,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.getStrBytesCount=void 0;function ie(te){for(var ae=0,ne=0;ne<te.length;ne++){var oe=te.charAt(ne);/^[\u00-\uff]$/.test(oe)?ae+=1:ae+=2}return ae}ve.getStrBytesCount=ie},{"core-js/modules/es.regexp.exec.js":300}],63:[function(x,Te,ve){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isArray=void 0,ve.isArray=function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(x,Te,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isBlob=void 0;function ie(te){return typeof Blob!="undefined"&&te instanceof Blob}ve.isBlob=ie},{}],65:[function(x,Te,ve){(function(ie){(function(){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isBuffer=void 0;function te(ae){return ie.isBuffer(ae)}ve.isBuffer=te}).call(this)}).call(this,{isBuffer:x("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(x,Te,ve){(function(ie){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isDingTalk=void 0;function te(){return!!(ie.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}ve.isDingTalk=te}).call(this)}).call(this,x("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(x,Te,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isFile=void 0,ve.isFile=function(ie){return typeof File!="undefined"&&ie instanceof File}},{}],68:[function(x,Te,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isFunction=void 0,ve.isFunction=function(ie){return typeof ie=="function"}},{}],69:[function(x,Te,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isIP=void 0,ve.isIP=function(ie){var te=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ae=/^\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 te.test(ie)||ae.test(ie)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(x,Te,ve){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isObject=void 0,ve.isObject=function(ie){return Object.prototype.toString.call(ie)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(x,Te,ve){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.lowercaseKeyHeader=void 0;var ie=x("./isObject");function te(ae){var ne={};return ie.isObject(ae)&&Object.keys(ae).forEach(function(oe){ne[oe.toLowerCase()]=ae[oe]}),ne}ve.lowercaseKeyHeader=te},{"./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(x,Te,ve){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.obj2xml=void 0;var ie=x("./formatObjKey");function te(ne){return Object.prototype.toString.call(ne).replace(/(.*? |])/g,"").toLowerCase()}function ae(ne,oe){var he="";return oe&&oe.headers&&(he=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),oe&&oe.firstUpperCase&&(ne=ie.formatObjKey(ne,"firstUpperCase")),te(ne)==="object"?Object.keys(ne).forEach(function(re){te(ne[re])!=="undefined"&&te(ne[re])!=="null"&&(te(ne[re])==="string"||te(ne[re])==="number"?he+="<".concat(re,">").concat(ne[re],"</").concat(re,">"):te(ne[re])==="object"?he+="<".concat(re,">").concat(ae(ne[re]),"</").concat(re,">"):te(ne[re])==="array"?he+=ne[re].map(function(se){return"<".concat(re,">").concat(ae(se),"</").concat(re,">")}).join(""):he+="<".concat(re,">").concat(ne[re].toString(),"</").concat(re,">"))}):he+=ne.toString(),he}ve.obj2xml=ae},{"./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(x,Te,ve){"use strict";x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.symbol.js"),x("core-js/modules/es.symbol.description.js"),x("core-js/modules/es.symbol.iterator.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/web.dom-collections.iterator.js"),x("core-js/modules/es.object.assign.js");function ie(oe,he){var re=typeof Symbol!="undefined"&&oe[Symbol.iterator]||oe["@@iterator"];if(!re){if(Array.isArray(oe)||(re=te(oe))||he&&oe&&typeof oe.length=="number"){re&&(oe=re);var se=0,ce=function(){};return{s:ce,n:function(){return se>=oe.length?{done:!0}:{done:!1,value:oe[se++]}},e:function(xe){throw xe},f:ce}}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 fe=!0,pe=!1,le;return{s:function(){re=re.call(oe)},n:function(){var xe=re.next();return fe=xe.done,xe},e:function(xe){pe=!0,le=xe},f:function(){try{!fe&&re.return!=null&&re.return()}finally{if(pe)throw le}}}}function te(oe,he){if(oe){if(typeof oe=="string")return ae(oe,he);var re=Object.prototype.toString.call(oe).slice(8,-1);if(re==="Object"&&oe.constructor&&(re=oe.constructor.name),re==="Map"||re==="Set")return Array.from(oe);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return ae(oe,he)}}function ae(oe,he){(he==null||he>oe.length)&&(he=oe.length);for(var re=0,se=new Array(he);re<he;re++)se[re]=oe[re];return se}Object.defineProperty(ve,"__esModule",{value:!0}),ve.omit=void 0;function ne(oe,he){var re=Object.assign({},oe),se=ie(he),ce;try{for(se.s();!(ce=se.n()).done;){var fe=ce.value;delete re[fe]}}catch(pe){se.e(pe)}finally{se.f()}return re}ve.omit=ne},{"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(x,Te,ve){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.retry=void 0;function ie(te,ae){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=0,he=ne.retryDelay,re=he===void 0?500:he,se=ne.errorHandler,ce=se===void 0?function(){return!0}:se,fe=function pe(){for(var le=arguments.length,Se=new Array(le),xe=0;xe<le;xe++)Se[xe]=arguments[xe];return new Promise(function(ge,Me){te.apply(void 0,Se).then(function(ye){oe=0,ge(ye)}).catch(function(ye){oe<ae&&ce(ye)?(oe++,setTimeout(function(){ge(pe.apply(void 0,Se))},re)):(oe=0,Me(ye))})})};return fe}ve.retry=ie},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(x,Te,ve){"use strict";var ie=function(oe){return oe&&oe.__esModule?oe:{default:oe}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.setRegion=void 0;var te=ie(x("url")),ae=x("./checkConfigValid");function ne(oe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ae.checkConfigValid(oe,"region");var se=re?"https://":"http://",ce=he?"-internal.aliyuncs.com":".aliyuncs.com",fe="vpc100-oss-cn-";return oe.substr(0,fe.length)===fe&&(ce=".aliyuncs.com"),te.default.parse(se+oe+ce)}ve.setRegion=ne},{"./checkConfigValid":52,url:472}],76:[function(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.object.assign.js");var ae=ie(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkCredentials=ve.setSTSToken=void 0;var ne=x("./formatObjKey");function oe(){return he.apply(this,arguments)}function he(){return he=(0,ae.default)(te.default.mark(function se(){var ce,fe;return te.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(this.options||(this.options={}),ce=new Date,!this.stsTokenFreshTime){le.next=14;break}if(!(+ce-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){le.next=12;break}return this.stsTokenFreshTime=ce,le.next=7,this.options.refreshSTSToken();case 7:fe=le.sent,fe=ne.formatObjKey(fe,"firstLowerCase"),fe.securityToken&&(fe.stsToken=fe.securityToken),re(fe),Object.assign(this.options,fe);case 12:le.next=15;break;case 14:this.stsTokenFreshTime=ce;case 15:return le.abrupt("return",null);case 16:case"end":return le.stop()}},se,this)})),he.apply(this,arguments)}ve.setSTSToken=oe;function re(se){var ce=["accessKeySecret","accessKeyId","stsToken"],fe=Object.keys(se);ce.forEach(function(pe){if(!fe.find(function(le){return le===pe}))throw Error("refreshSTSToken must return contains ".concat(pe))})}ve.checkCredentials=re},{"./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(x,Te,ve){function ie(ae,ne,oe,he,re,se,ce){try{var fe=ae[se](ce),pe=fe.value}catch(le){oe(le);return}fe.done?ne(pe):Promise.resolve(pe).then(he,re)}function te(ae){return function(){var ne=this,oe=arguments;return new Promise(function(he,re){var se=ae.apply(ne,oe);function ce(pe){ie(se,he,re,ce,fe,"next",pe)}function fe(pe){ie(se,he,re,ce,fe,"throw",pe)}ce(void 0)})}}Te.exports=te,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],78:[function(x,Te,ve){function ie(te){return te&&te.__esModule?te:{default:te}}Te.exports=ie,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],79:[function(x,Te,ve){function ie(te){"@babel/helpers - typeof";return Te.exports=ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ae){return typeof ae}:function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},Te.exports.__esModule=!0,Te.exports.default=Te.exports,ie(te)}Te.exports=ie,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],80:[function(x,Te,ve){Te.exports=x("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(x,Te,ve){Te.exports=ie,Te.exports.HttpsAgent=ie;function ie(){}},{}],82:[function(x,Te,ve){(function(ie){(function(){"use strict";var te=x("object-assign");function ae(Ze,et){if(Ze===et)return 0;for(var it=Ze.length,pt=et.length,Ge=0,Xe=Math.min(it,pt);Ge<Xe;++Ge)if(Ze[Ge]!==et[Ge]){it=Ze[Ge],pt=et[Ge];break}return it<pt?-1:pt<it?1:0}function ne(Ze){return ie.Buffer&&typeof ie.Buffer.isBuffer=="function"?ie.Buffer.isBuffer(Ze):!!(Ze!=null&&Ze._isBuffer)}var oe=x("util/"),he=Object.prototype.hasOwnProperty,re=Array.prototype.slice,se=function(){return function(){}.name==="foo"}();function ce(Ze){return Object.prototype.toString.call(Ze)}function fe(Ze){return ne(Ze)||typeof ie.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ze):Ze?!!(Ze instanceof DataView||Ze.buffer&&Ze.buffer instanceof ArrayBuffer):!1}var pe=Te.exports=be,le=/\s*function\s+([^\(\s]*)\s*/;function Se(Ze){if(oe.isFunction(Ze)){if(se)return Ze.name;var et=Ze.toString(),it=et.match(le);return it&&it[1]}}pe.AssertionError=function(et){this.name="AssertionError",this.actual=et.actual,this.expected=et.expected,this.operator=et.operator,et.message?(this.message=et.message,this.generatedMessage=!1):(this.message=Me(this),this.generatedMessage=!0);var it=et.stackStartFunction||ye;if(Error.captureStackTrace)Error.captureStackTrace(this,it);else{var pt=new Error;if(pt.stack){var Ge=pt.stack,Xe=Se(it),lt=Ge.indexOf(`
|
|
|
`+Xe);if(lt>=0){var dt=Ge.indexOf(`
|
|
|
`,lt+1);Ge=Ge.substring(dt+1)}this.stack=Ge}}},oe.inherits(pe.AssertionError,Error);function xe(Ze,et){return typeof Ze=="string"?Ze.length<et?Ze:Ze.slice(0,et):Ze}function ge(Ze){if(se||!oe.isFunction(Ze))return oe.inspect(Ze);var et=Se(Ze),it=et?": "+et:"";return"[Function"+it+"]"}function Me(Ze){return xe(ge(Ze.actual),128)+" "+Ze.operator+" "+xe(ge(Ze.expected),128)}function ye(Ze,et,it,pt,Ge){throw new pe.AssertionError({message:it,actual:Ze,expected:et,operator:pt,stackStartFunction:Ge})}pe.fail=ye;function be(Ze,et){Ze||ye(Ze,!0,et,"==",pe.ok)}pe.ok=be,pe.equal=function(et,it,pt){et!=it&&ye(et,it,pt,"==",pe.equal)},pe.notEqual=function(et,it,pt){et==it&&ye(et,it,pt,"!=",pe.notEqual)},pe.deepEqual=function(et,it,pt){Fe(et,it,!1)||ye(et,it,pt,"deepEqual",pe.deepEqual)},pe.deepStrictEqual=function(et,it,pt){Fe(et,it,!0)||ye(et,it,pt,"deepStrictEqual",pe.deepStrictEqual)};function Fe(Ze,et,it,pt){if(Ze===et)return!0;if(ne(Ze)&&ne(et))return ae(Ze,et)===0;if(oe.isDate(Ze)&&oe.isDate(et))return Ze.getTime()===et.getTime();if(oe.isRegExp(Ze)&&oe.isRegExp(et))return Ze.source===et.source&&Ze.global===et.global&&Ze.multiline===et.multiline&&Ze.lastIndex===et.lastIndex&&Ze.ignoreCase===et.ignoreCase;if((Ze===null||typeof Ze!="object")&&(et===null||typeof et!="object"))return it?Ze===et:Ze==et;if(fe(Ze)&&fe(et)&&ce(Ze)===ce(et)&&!(Ze instanceof Float32Array||Ze instanceof Float64Array))return ae(new Uint8Array(Ze.buffer),new Uint8Array(et.buffer))===0;if(ne(Ze)!==ne(et))return!1;pt=pt||{actual:[],expected:[]};var Ge=pt.actual.indexOf(Ze);return Ge!==-1&&Ge===pt.expected.indexOf(et)?!0:(pt.actual.push(Ze),pt.expected.push(et),De(Ze,et,it,pt))}function ke(Ze){return Object.prototype.toString.call(Ze)=="[object Arguments]"}function De(Ze,et,it,pt){if(Ze==null||et===null||et===void 0)return!1;if(oe.isPrimitive(Ze)||oe.isPrimitive(et))return Ze===et;if(it&&Object.getPrototypeOf(Ze)!==Object.getPrototypeOf(et))return!1;var Ge=ke(Ze),Xe=ke(et);if(Ge&&!Xe||!Ge&&Xe)return!1;if(Ge)return Ze=re.call(Ze),et=re.call(et),Fe(Ze,et,it);var lt=We(Ze),dt=We(et),st,nt;if(lt.length!==dt.length)return!1;for(lt.sort(),dt.sort(),nt=lt.length-1;nt>=0;nt--)if(lt[nt]!==dt[nt])return!1;for(nt=lt.length-1;nt>=0;nt--)if(st=lt[nt],!Fe(Ze[st],et[st],it,pt))return!1;return!0}pe.notDeepEqual=function(et,it,pt){Fe(et,it,!1)&&ye(et,it,pt,"notDeepEqual",pe.notDeepEqual)},pe.notDeepStrictEqual=Le;function Le(Ze,et,it){Fe(Ze,et,!0)&&ye(Ze,et,it,"notDeepStrictEqual",Le)}pe.strictEqual=function(et,it,pt){et!==it&&ye(et,it,pt,"===",pe.strictEqual)},pe.notStrictEqual=function(et,it,pt){et===it&&ye(et,it,pt,"!==",pe.notStrictEqual)};function Ie(Ze,et){if(!Ze||!et)return!1;if(Object.prototype.toString.call(et)=="[object RegExp]")return et.test(Ze);try{if(Ze instanceof et)return!0}catch(it){}return Error.isPrototypeOf(et)?!1:et.call({},Ze)===!0}function Be(Ze){var et;try{Ze()}catch(it){et=it}return et}function Ue(Ze,et,it,pt){var Ge;if(typeof et!="function")throw new TypeError('"block" argument must be a function');typeof it=="string"&&(pt=it,it=null),Ge=Be(et),pt=(it&&it.name?" ("+it.name+").":".")+(pt?" "+pt:"."),Ze&&!Ge&&ye(Ge,it,"Missing expected exception"+pt);var Xe=typeof pt=="string",lt=!Ze&&oe.isError(Ge),dt=!Ze&&Ge&&!it;if((lt&&Xe&&Ie(Ge,it)||dt)&&ye(Ge,it,"Got unwanted exception"+pt),Ze&&Ge&&it&&!Ie(Ge,it)||!Ze&&Ge)throw Ge}pe.throws=function(Ze,et,it){Ue(!0,Ze,et,it)},pe.doesNotThrow=function(Ze,et,it){Ue(!1,Ze,et,it)},pe.ifError=function(Ze){if(Ze)throw Ze};function _e(Ze,et){Ze||ye(Ze,!0,et,"==",_e)}pe.strict=te(_e,pe,{equal:pe.strictEqual,deepEqual:pe.deepStrictEqual,notEqual:pe.notStrictEqual,notDeepEqual:pe.notDeepStrictEqual}),pe.strict.strict=pe.strict;var We=Object.keys||function(Ze){var et=[];for(var it in Ze)he.call(Ze,it)&&et.push(it);return et}}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(x,Te,ve){typeof Object.create=="function"?Te.exports=function(te,ae){te.super_=ae,te.prototype=Object.create(ae.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}})}:Te.exports=function(te,ae){te.super_=ae;var ne=function(){};ne.prototype=ae.prototype,te.prototype=new ne,te.prototype.constructor=te}},{}],84:[function(x,Te,ve){Te.exports=function(te){return te&&typeof te=="object"&&typeof te.copy=="function"&&typeof te.fill=="function"&&typeof te.readUInt8=="function"}},{}],85:[function(x,Te,ve){(function(ie,te){(function(){var ae=/%[sdj%]/g;ve.format=function(dt){if(!De(dt)){for(var st=[],nt=0;nt<arguments.length;nt++)st.push(he(arguments[nt]));return st.join(" ")}for(var nt=1,rt=arguments,at=rt.length,gt=String(dt).replace(ae,function(Et){if(Et==="%%")return"%";if(nt>=at)return Et;switch(Et){case"%s":return String(rt[nt++]);case"%d":return Number(rt[nt++]);case"%j":try{return JSON.stringify(rt[nt++])}catch(At){return"[Circular]"}default:return Et}}),vt=rt[nt];nt<at;vt=rt[++nt])be(vt)||!Ue(vt)?gt+=" "+vt:gt+=" "+he(vt);return gt},ve.deprecate=function(dt,st){if(Ie(te.process))return function(){return ve.deprecate(dt,st).apply(this,arguments)};if(ie.noDeprecation===!0)return dt;var nt=!1;function rt(){if(!nt){if(ie.throwDeprecation)throw new Error(st);ie.traceDeprecation?console.trace(st):console.error(st),nt=!0}return dt.apply(this,arguments)}return rt};var ne={},oe;ve.debuglog=function(dt){if(Ie(oe)&&(oe=ie.env.NODE_DEBUG||""),dt=dt.toUpperCase(),!ne[dt])if(new RegExp("\\b"+dt+"\\b","i").test(oe)){var st=ie.pid;ne[dt]=function(){var nt=ve.format.apply(ve,arguments);console.error("%s %d: %s",dt,st,nt)}}else ne[dt]=function(){};return ne[dt]};function he(dt,st){var nt={seen:[],stylize:se};return arguments.length>=3&&(nt.depth=arguments[2]),arguments.length>=4&&(nt.colors=arguments[3]),ye(st)?nt.showHidden=st:st&&ve._extend(nt,st),Ie(nt.showHidden)&&(nt.showHidden=!1),Ie(nt.depth)&&(nt.depth=2),Ie(nt.colors)&&(nt.colors=!1),Ie(nt.customInspect)&&(nt.customInspect=!0),nt.colors&&(nt.stylize=re),fe(nt,dt,nt.depth)}ve.inspect=he,he.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]},he.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function re(dt,st){var nt=he.styles[st];return nt?"\x1B["+he.colors[nt][0]+"m"+dt+"\x1B["+he.colors[nt][1]+"m":dt}function se(dt,st){return dt}function ce(dt){var st={};return dt.forEach(function(nt,rt){st[nt]=!0}),st}function fe(dt,st,nt){if(dt.customInspect&&st&&Ze(st.inspect)&&st.inspect!==ve.inspect&&!(st.constructor&&st.constructor.prototype===st)){var rt=st.inspect(nt,dt);return De(rt)||(rt=fe(dt,rt,nt)),rt}var at=pe(dt,st);if(at)return at;var gt=Object.keys(st),vt=ce(gt);if(dt.showHidden&&(gt=Object.getOwnPropertyNames(st)),We(st)&&(gt.indexOf("message")>=0||gt.indexOf("description")>=0))return le(st);if(gt.length===0){if(Ze(st)){var Et=st.name?": "+st.name:"";return dt.stylize("[Function"+Et+"]","special")}if(Be(st))return dt.stylize(RegExp.prototype.toString.call(st),"regexp");if(_e(st))return dt.stylize(Date.prototype.toString.call(st),"date");if(We(st))return le(st)}var At="",ut=!1,Ye=["{","}"];if(Me(st)&&(ut=!0,Ye=["[","]"]),Ze(st)){var Ve=st.name?": "+st.name:"";At=" [Function"+Ve+"]"}if(Be(st)&&(At=" "+RegExp.prototype.toString.call(st)),_e(st)&&(At=" "+Date.prototype.toUTCString.call(st)),We(st)&&(At=" "+le(st)),gt.length===0&&(!ut||st.length==0))return Ye[0]+At+Ye[1];if(nt<0)return Be(st)?dt.stylize(RegExp.prototype.toString.call(st),"regexp"):dt.stylize("[Object]","special");dt.seen.push(st);var de;return ut?de=Se(dt,st,nt,vt,gt):de=gt.map(function(Ce){return xe(dt,st,nt,vt,Ce,ut)}),dt.seen.pop(),ge(de,At,Ye)}function pe(dt,st){if(Ie(st))return dt.stylize("undefined","undefined");if(De(st)){var nt="'"+JSON.stringify(st).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return dt.stylize(nt,"string")}if(ke(st))return dt.stylize(""+st,"number");if(ye(st))return dt.stylize(""+st,"boolean");if(be(st))return dt.stylize("null","null")}function le(dt){return"["+Error.prototype.toString.call(dt)+"]"}function Se(dt,st,nt,rt,at){for(var gt=[],vt=0,Et=st.length;vt<Et;++vt)lt(st,String(vt))?gt.push(xe(dt,st,nt,rt,String(vt),!0)):gt.push("");return at.forEach(function(At){At.match(/^\d+$/)||gt.push(xe(dt,st,nt,rt,At,!0))}),gt}function xe(dt,st,nt,rt,at,gt){var vt,Et,At;if(At=Object.getOwnPropertyDescriptor(st,at)||{value:st[at]},At.get?At.set?Et=dt.stylize("[Getter/Setter]","special"):Et=dt.stylize("[Getter]","special"):At.set&&(Et=dt.stylize("[Setter]","special")),lt(rt,at)||(vt="["+at+"]"),Et||(dt.seen.indexOf(At.value)<0?(be(nt)?Et=fe(dt,At.value,null):Et=fe(dt,At.value,nt-1),Et.indexOf(`
|
|
|
`)>-1&&(gt?Et=Et.split(`
|
|
|
`).map(function(ut){return" "+ut}).join(`
|
|
|
`).substr(2):Et=`
|
|
|
`+Et.split(`
|
|
|
`).map(function(ut){return" "+ut}).join(`
|
|
|
`))):Et=dt.stylize("[Circular]","special")),Ie(vt)){if(gt&&at.match(/^\d+$/))return Et;vt=JSON.stringify(""+at),vt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(vt=vt.substr(1,vt.length-2),vt=dt.stylize(vt,"name")):(vt=vt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),vt=dt.stylize(vt,"string"))}return vt+": "+Et}function ge(dt,st,nt){var rt=0,at=dt.reduce(function(gt,vt){return rt++,vt.indexOf(`
|
|
|
`)>=0&&rt++,gt+vt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return at>60?nt[0]+(st===""?"":st+`
|
|
|
`)+" "+dt.join(`,
|
|
|
`)+" "+nt[1]:nt[0]+st+" "+dt.join(", ")+" "+nt[1]}function Me(dt){return Array.isArray(dt)}ve.isArray=Me;function ye(dt){return typeof dt=="boolean"}ve.isBoolean=ye;function be(dt){return dt===null}ve.isNull=be;function Fe(dt){return dt==null}ve.isNullOrUndefined=Fe;function ke(dt){return typeof dt=="number"}ve.isNumber=ke;function De(dt){return typeof dt=="string"}ve.isString=De;function Le(dt){return typeof dt=="symbol"}ve.isSymbol=Le;function Ie(dt){return dt===void 0}ve.isUndefined=Ie;function Be(dt){return Ue(dt)&&it(dt)==="[object RegExp]"}ve.isRegExp=Be;function Ue(dt){return typeof dt=="object"&&dt!==null}ve.isObject=Ue;function _e(dt){return Ue(dt)&&it(dt)==="[object Date]"}ve.isDate=_e;function We(dt){return Ue(dt)&&(it(dt)==="[object Error]"||dt instanceof Error)}ve.isError=We;function Ze(dt){return typeof dt=="function"}ve.isFunction=Ze;function et(dt){return dt===null||typeof dt=="boolean"||typeof dt=="number"||typeof dt=="string"||typeof dt=="symbol"||typeof dt=="undefined"}ve.isPrimitive=et,ve.isBuffer=x("./support/isBuffer");function it(dt){return Object.prototype.toString.call(dt)}function pt(dt){return dt<10?"0"+dt.toString(10):dt.toString(10)}var Ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Xe(){var dt=new Date,st=[pt(dt.getHours()),pt(dt.getMinutes()),pt(dt.getSeconds())].join(":");return[dt.getDate(),Ge[dt.getMonth()],st].join(" ")}ve.log=function(){console.log("%s - %s",Xe(),ve.format.apply(ve,arguments))},ve.inherits=x("inherits"),ve._extend=function(dt,st){if(!st||!Ue(st))return dt;for(var nt=Object.keys(st),rt=nt.length;rt--;)dt[nt[rt]]=st[nt[rt]];return dt};function lt(dt,st){return Object.prototype.hasOwnProperty.call(dt,st)}}).call(this)}).call(this,x("_process"),typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(x,Te,ve){(function(ie){(function(){"use strict";var te=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ae=typeof globalThis=="undefined"?ie:globalThis;Te.exports=function(){for(var oe=[],he=0;he<te.length;he++)typeof ae[te[he]]=="function"&&(oe[oe.length]=te[he]);return oe}}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(x,Te,ve){"use strict";ve.byteLength=se,ve.toByteArray=fe,ve.fromByteArray=Se;for(var ie=[],te=[],ae=typeof Uint8Array!="undefined"?Uint8Array:Array,ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe=0,he=ne.length;oe<he;++oe)ie[oe]=ne[oe],te[ne.charCodeAt(oe)]=oe;te[45]=62,te[95]=63;function re(xe){var ge=xe.length;if(ge%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Me=xe.indexOf("=");Me===-1&&(Me=ge);var ye=Me===ge?0:4-Me%4;return[Me,ye]}function se(xe){var ge=re(xe),Me=ge[0],ye=ge[1];return(Me+ye)*3/4-ye}function ce(xe,ge,Me){return(ge+Me)*3/4-Me}function fe(xe){var ge,Me=re(xe),ye=Me[0],be=Me[1],Fe=new ae(ce(xe,ye,be)),ke=0,De=be>0?ye-4:ye,Le;for(Le=0;Le<De;Le+=4)ge=te[xe.charCodeAt(Le)]<<18|te[xe.charCodeAt(Le+1)]<<12|te[xe.charCodeAt(Le+2)]<<6|te[xe.charCodeAt(Le+3)],Fe[ke++]=ge>>16&255,Fe[ke++]=ge>>8&255,Fe[ke++]=ge&255;return be===2&&(ge=te[xe.charCodeAt(Le)]<<2|te[xe.charCodeAt(Le+1)]>>4,Fe[ke++]=ge&255),be===1&&(ge=te[xe.charCodeAt(Le)]<<10|te[xe.charCodeAt(Le+1)]<<4|te[xe.charCodeAt(Le+2)]>>2,Fe[ke++]=ge>>8&255,Fe[ke++]=ge&255),Fe}function pe(xe){return ie[xe>>18&63]+ie[xe>>12&63]+ie[xe>>6&63]+ie[xe&63]}function le(xe,ge,Me){for(var ye,be=[],Fe=ge;Fe<Me;Fe+=3)ye=(xe[Fe]<<16&16711680)+(xe[Fe+1]<<8&65280)+(xe[Fe+2]&255),be.push(pe(ye));return be.join("")}function Se(xe){for(var ge,Me=xe.length,ye=Me%3,be=[],Fe=16383,ke=0,De=Me-ye;ke<De;ke+=Fe)be.push(le(xe,ke,ke+Fe>De?De:ke+Fe));return ye===1?(ge=xe[Me-1],be.push(ie[ge>>2]+ie[ge<<4&63]+"==")):ye===2&&(ge=(xe[Me-2]<<8)+xe[Me-1],be.push(ie[ge>>10]+ie[ge>>4&63]+ie[ge<<2&63]+"=")),be.join("")}},{}],88:[function(x,Te,ve){(function(ie,te,ae){typeof Te!="undefined"&&Te.exports?Te.exports=ae():typeof me=="function"&&me.amd?me(te,ae):ie[te]=ae()})(this,"bowser",function(){var ie=!0;function te(ce){function fe(st){var nt=ce.match(st);return nt&&nt.length>1&&nt[1]||""}function pe(st){var nt=ce.match(st);return nt&&nt.length>1&&nt[2]||""}var le=fe(/(ipod|iphone|ipad)/i).toLowerCase(),Se=/like android/i.test(ce),xe=!Se&&/android/i.test(ce),ge=/nexus\s*[0-6]\s*/i.test(ce),Me=!ge&&/nexus\s*[0-9]+/i.test(ce),ye=/CrOS/.test(ce),be=/silk/i.test(ce),Fe=/sailfish/i.test(ce),ke=/tizen/i.test(ce),De=/(web|hpw)(o|0)s/i.test(ce),Le=/windows phone/i.test(ce),Ie=/SamsungBrowser/i.test(ce),Be=!Le&&/windows/i.test(ce),Ue=!le&&!be&&/macintosh/i.test(ce),_e=!xe&&!Fe&&!ke&&!De&&/linux/i.test(ce),We=pe(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ze=fe(/version\/(\d+(\.\d+)?)/i),et=/tablet/i.test(ce)&&!/tablet pc/i.test(ce),it=!et&&/[^-]mobi/i.test(ce),pt=/xbox/i.test(ce),Ge;/opera/i.test(ce)?Ge={name:"Opera",opera:ie,version:Ze||fe(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(ce)?Ge={name:"Opera",opera:ie,version:fe(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ze}:/SamsungBrowser/i.test(ce)?Ge={name:"Samsung Internet for Android",samsungBrowser:ie,version:Ze||fe(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(ce)?Ge={name:"NAVER Whale browser",whale:ie,version:fe(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(ce)?Ge={name:"MZ Browser",mzbrowser:ie,version:fe(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(ce)?Ge={name:"Opera Coast",coast:ie,version:Ze||fe(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(ce)?Ge={name:"Focus",focus:ie,version:fe(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(ce)?Ge={name:"Yandex Browser",yandexbrowser:ie,version:Ze||fe(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(ce)?Ge={name:"UC Browser",ucbrowser:ie,version:fe(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(ce)?Ge={name:"Maxthon",maxthon:ie,version:fe(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(ce)?Ge={name:"Epiphany",epiphany:ie,version:fe(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(ce)?Ge={name:"Puffin",puffin:ie,version:fe(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(ce)?Ge={name:"Sleipnir",sleipnir:ie,version:fe(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(ce)?Ge={name:"K-Meleon",kMeleon:ie,version:fe(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Le?(Ge={name:"Windows Phone",osname:"Windows Phone",windowsphone:ie},We?(Ge.msedge=ie,Ge.version=We):(Ge.msie=ie,Ge.version=fe(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(ce)?Ge={name:"Internet Explorer",msie:ie,version:fe(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:ye?Ge={name:"Chrome",osname:"Chrome OS",chromeos:ie,chromeBook:ie,chrome:ie,version:fe(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(ce)?Ge={name:"Microsoft Edge",msedge:ie,version:We}:/vivaldi/i.test(ce)?Ge={name:"Vivaldi",vivaldi:ie,version:fe(/vivaldi\/(\d+(\.\d+)?)/i)||Ze}:Fe?Ge={name:"Sailfish",osname:"Sailfish OS",sailfish:ie,version:fe(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(ce)?Ge={name:"SeaMonkey",seamonkey:ie,version:fe(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(ce)?(Ge={name:"Firefox",firefox:ie,version:fe(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ce)&&(Ge.firefoxos=ie,Ge.osname="Firefox OS")):be?Ge={name:"Amazon Silk",silk:ie,version:fe(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(ce)?Ge={name:"PhantomJS",phantom:ie,version:fe(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(ce)?Ge={name:"SlimerJS",slimer:ie,version:fe(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(ce)||/rim\stablet/i.test(ce)?Ge={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ie,version:Ze||fe(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:De?(Ge={name:"WebOS",osname:"WebOS",webos:ie,version:Ze||fe(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(ce)&&(Ge.touchpad=ie)):/bada/i.test(ce)?Ge={name:"Bada",osname:"Bada",bada:ie,version:fe(/dolfin\/(\d+(\.\d+)?)/i)}:ke?Ge={name:"Tizen",osname:"Tizen",tizen:ie,version:fe(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ze}:/qupzilla/i.test(ce)?Ge={name:"QupZilla",qupzilla:ie,version:fe(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ze}:/chromium/i.test(ce)?Ge={name:"Chromium",chromium:ie,version:fe(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ze}:/chrome|crios|crmo/i.test(ce)?Ge={name:"Chrome",chrome:ie,version:fe(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:xe?Ge={name:"Android",version:Ze}:/safari|applewebkit/i.test(ce)?(Ge={name:"Safari",safari:ie},Ze&&(Ge.version=Ze)):le?(Ge={name:le=="iphone"?"iPhone":le=="ipad"?"iPad":"iPod"},Ze&&(Ge.version=Ze)):/googlebot/i.test(ce)?Ge={name:"Googlebot",googlebot:ie,version:fe(/googlebot\/(\d+(\.\d+))/i)||Ze}:Ge={name:fe(/^(.*)\/(.*) /),version:pe(/^(.*)\/(.*) /)},!Ge.msedge&&/(apple)?webkit/i.test(ce)?(/(apple)?webkit\/537\.36/i.test(ce)?(Ge.name=Ge.name||"Blink",Ge.blink=ie):(Ge.name=Ge.name||"Webkit",Ge.webkit=ie),!Ge.version&&Ze&&(Ge.version=Ze)):!Ge.opera&&/gecko\//i.test(ce)&&(Ge.name=Ge.name||"Gecko",Ge.gecko=ie,Ge.version=Ge.version||fe(/gecko\/(\d+(\.\d+)?)/i)),!Ge.windowsphone&&(xe||Ge.silk)?(Ge.android=ie,Ge.osname="Android"):!Ge.windowsphone&&le?(Ge[le]=ie,Ge.ios=ie,Ge.osname="iOS"):Ue?(Ge.mac=ie,Ge.osname="macOS"):pt?(Ge.xbox=ie,Ge.osname="Xbox"):Be?(Ge.windows=ie,Ge.osname="Windows"):_e&&(Ge.linux=ie,Ge.osname="Linux");function Xe(st){switch(st){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 lt="";Ge.windows?lt=Xe(fe(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ge.windowsphone?lt=fe(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ge.mac?(lt=fe(/Mac OS X (\d+([_\.\s]\d+)*)/i),lt=lt.replace(/[_\s]/g,".")):le?(lt=fe(/os (\d+([_\s]\d+)*) like mac os x/i),lt=lt.replace(/[_\s]/g,".")):xe?lt=fe(/android[ \/-](\d+(\.\d+)*)/i):Ge.webos?lt=fe(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ge.blackberry?lt=fe(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ge.bada?lt=fe(/bada\/(\d+(\.\d+)*)/i):Ge.tizen&&(lt=fe(/tizen[\/\s](\d+(\.\d+)*)/i)),lt&&(Ge.osversion=lt);var dt=!Ge.windows&<.split(".")[0];return et||Me||le=="ipad"||xe&&(dt==3||dt>=4&&!it)||Ge.silk?Ge.tablet=ie:(it||le=="iphone"||le=="ipod"||xe||ge||Ge.blackberry||Ge.webos||Ge.bada)&&(Ge.mobile=ie),Ge.msedge||Ge.msie&&Ge.version>=10||Ge.yandexbrowser&&Ge.version>=15||Ge.vivaldi&&Ge.version>=1||Ge.chrome&&Ge.version>=20||Ge.samsungBrowser&&Ge.version>=4||Ge.whale&&he([Ge.version,"1.0"])===1||Ge.mzbrowser&&he([Ge.version,"6.0"])===1||Ge.focus&&he([Ge.version,"1.0"])===1||Ge.firefox&&Ge.version>=20||Ge.safari&&Ge.version>=6||Ge.opera&&Ge.version>=10||Ge.ios&&Ge.osversion&&Ge.osversion.split(".")[0]>=6||Ge.blackberry&&Ge.version>=10.1||Ge.chromium&&Ge.version>=20?Ge.a=ie:Ge.msie&&Ge.version<10||Ge.chrome&&Ge.version<20||Ge.firefox&&Ge.version<20||Ge.safari&&Ge.version<6||Ge.opera&&Ge.version<10||Ge.ios&&Ge.osversion&&Ge.osversion.split(".")[0]<6||Ge.chromium&&Ge.version<20?Ge.c=ie:Ge.x=ie,Ge}var ae=te(typeof navigator!="undefined"&&navigator.userAgent||"");ae.test=function(ce){for(var fe=0;fe<ce.length;++fe){var pe=ce[fe];if(typeof pe=="string"&&pe in ae)return!0}return!1};function ne(ce){return ce.split(".").length}function oe(ce,fe){var pe=[],le;if(Array.prototype.map)return Array.prototype.map.call(ce,fe);for(le=0;le<ce.length;le++)pe.push(fe(ce[le]));return pe}function he(ce){for(var fe=Math.max(ne(ce[0]),ne(ce[1])),pe=oe(ce,function(le){var Se=fe-ne(le);return le=le+new Array(Se+1).join(".0"),oe(le.split("."),function(xe){return new Array(20-xe.length).join("0")+xe}).reverse()});--fe>=0;){if(pe[0][fe]>pe[1][fe])return 1;if(pe[0][fe]===pe[1][fe]){if(fe===0)return 0}else return-1}}function re(ce,fe,pe){var le=ae;typeof fe=="string"&&(pe=fe,fe=void 0),fe===void 0&&(fe=!1),pe&&(le=te(pe));var Se=""+le.version;for(var xe in ce)if(ce.hasOwnProperty(xe)&&le[xe]){if(typeof ce[xe]!="string")throw new Error("Browser version in the minVersion map should be a string: "+xe+": "+String(ce));return he([Se,ce[xe]])<0}return fe}function se(ce,fe,pe){return!re(ce,fe,pe)}return ae.isUnsupportedBrowser=re,ae.compareVersions=he,ae.check=se,ae._detect=te,ae.detect=te,ae})},{}],89:[function(x,Te,ve){},{}],90:[function(x,Te,ve){(function(ie){(function(){"use strict";var te=x("base64-js"),ae=x("ieee754");ve.Buffer=re,ve.SlowBuffer=ye,ve.INSPECT_MAX_BYTES=50;var ne=2147483647;ve.kMaxLength=ne,re.TYPED_ARRAY_SUPPORT=oe(),!re.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 oe(){try{var Ne=new Uint8Array(1);return Ne.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ne.foo()===42}catch(ze){return!1}}Object.defineProperty(re.prototype,"parent",{enumerable:!0,get:function(){if(re.isBuffer(this))return this.buffer}}),Object.defineProperty(re.prototype,"offset",{enumerable:!0,get:function(){if(re.isBuffer(this))return this.byteOffset}});function he(Ne){if(Ne>ne)throw new RangeError('The value "'+Ne+'" is invalid for option "size"');var ze=new Uint8Array(Ne);return ze.__proto__=re.prototype,ze}function re(Ne,ze,Qe){if(typeof Ne=="number"){if(typeof ze=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return pe(Ne)}return se(Ne,ze,Qe)}typeof Symbol!="undefined"&&Symbol.species!=null&&re[Symbol.species]===re&&Object.defineProperty(re,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),re.poolSize=8192;function se(Ne,ze,Qe){if(typeof Ne=="string")return le(Ne,ze);if(ArrayBuffer.isView(Ne))return Se(Ne);if(Ne==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne);if(je(Ne,ArrayBuffer)||Ne&&je(Ne.buffer,ArrayBuffer))return xe(Ne,ze,Qe);if(typeof Ne=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ot=Ne.valueOf&&Ne.valueOf();if(ot!=null&&ot!==Ne)return re.from(ot,ze,Qe);var mt=ge(Ne);if(mt)return mt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ne[Symbol.toPrimitive]=="function")return re.from(Ne[Symbol.toPrimitive]("string"),ze,Qe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne)}re.from=function(Ne,ze,Qe){return se(Ne,ze,Qe)},re.prototype.__proto__=Uint8Array.prototype,re.__proto__=Uint8Array;function ce(Ne){if(typeof Ne!="number")throw new TypeError('"size" argument must be of type number');if(Ne<0)throw new RangeError('The value "'+Ne+'" is invalid for option "size"')}function fe(Ne,ze,Qe){return ce(Ne),Ne<=0?he(Ne):ze!==void 0?typeof Qe=="string"?he(Ne).fill(ze,Qe):he(Ne).fill(ze):he(Ne)}re.alloc=function(Ne,ze,Qe){return fe(Ne,ze,Qe)};function pe(Ne){return ce(Ne),he(Ne<0?0:Me(Ne)|0)}re.allocUnsafe=function(Ne){return pe(Ne)},re.allocUnsafeSlow=function(Ne){return pe(Ne)};function le(Ne,ze){if((typeof ze!="string"||ze==="")&&(ze="utf8"),!re.isEncoding(ze))throw new TypeError("Unknown encoding: "+ze);var Qe=be(Ne,ze)|0,ot=he(Qe),mt=ot.write(Ne,ze);return mt!==Qe&&(ot=ot.slice(0,mt)),ot}function Se(Ne){for(var ze=Ne.length<0?0:Me(Ne.length)|0,Qe=he(ze),ot=0;ot<ze;ot+=1)Qe[ot]=Ne[ot]&255;return Qe}function xe(Ne,ze,Qe){if(ze<0||Ne.byteLength<ze)throw new RangeError('"offset" is outside of buffer bounds');if(Ne.byteLength<ze+(Qe||0))throw new RangeError('"length" is outside of buffer bounds');var ot;return ze===void 0&&Qe===void 0?ot=new Uint8Array(Ne):Qe===void 0?ot=new Uint8Array(Ne,ze):ot=new Uint8Array(Ne,ze,Qe),ot.__proto__=re.prototype,ot}function ge(Ne){if(re.isBuffer(Ne)){var ze=Me(Ne.length)|0,Qe=he(ze);return Qe.length===0||Ne.copy(Qe,0,0,ze),Qe}if(Ne.length!==void 0)return typeof Ne.length!="number"||Ae(Ne.length)?he(0):Se(Ne);if(Ne.type==="Buffer"&&Array.isArray(Ne.data))return Se(Ne.data)}function Me(Ne){if(Ne>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return Ne|0}function ye(Ne){return+Ne!=Ne&&(Ne=0),re.alloc(+Ne)}re.isBuffer=function(ze){return ze!=null&&ze._isBuffer===!0&&ze!==re.prototype},re.compare=function(ze,Qe){if(je(ze,Uint8Array)&&(ze=re.from(ze,ze.offset,ze.byteLength)),je(Qe,Uint8Array)&&(Qe=re.from(Qe,Qe.offset,Qe.byteLength)),!re.isBuffer(ze)||!re.isBuffer(Qe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ze===Qe)return 0;for(var ot=ze.length,mt=Qe.length,Ot=0,xt=Math.min(ot,mt);Ot<xt;++Ot)if(ze[Ot]!==Qe[Ot]){ot=ze[Ot],mt=Qe[Ot];break}return ot<mt?-1:mt<ot?1:0},re.isEncoding=function(ze){switch(String(ze).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}},re.concat=function(ze,Qe){if(!Array.isArray(ze))throw new TypeError('"list" argument must be an Array of Buffers');if(ze.length===0)return re.alloc(0);var ot;if(Qe===void 0)for(Qe=0,ot=0;ot<ze.length;++ot)Qe+=ze[ot].length;var mt=re.allocUnsafe(Qe),Ot=0;for(ot=0;ot<ze.length;++ot){var xt=ze[ot];if(je(xt,Uint8Array)&&(xt=re.from(xt)),!re.isBuffer(xt))throw new TypeError('"list" argument must be an Array of Buffers');xt.copy(mt,Ot),Ot+=xt.length}return mt};function be(Ne,ze){if(re.isBuffer(Ne))return Ne.length;if(ArrayBuffer.isView(Ne)||je(Ne,ArrayBuffer))return Ne.byteLength;if(typeof Ne!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ne);var Qe=Ne.length,ot=arguments.length>2&&arguments[2]===!0;if(!ot&&Qe===0)return 0;for(var mt=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Qe;case"utf8":case"utf-8":return Ye(Ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe*2;case"hex":return Qe>>>1;case"base64":return Ce(Ne).length;default:if(mt)return ot?-1:Ye(Ne).length;ze=(""+ze).toLowerCase(),mt=!0}}re.byteLength=be;function Fe(Ne,ze,Qe){var ot=!1;if((ze===void 0||ze<0)&&(ze=0),ze>this.length||((Qe===void 0||Qe>this.length)&&(Qe=this.length),Qe<=0)||(Qe>>>=0,ze>>>=0,Qe<=ze))return"";for(Ne||(Ne="utf8");;)switch(Ne){case"hex":return dt(this,ze,Qe);case"utf8":case"utf-8":return it(this,ze,Qe);case"ascii":return Xe(this,ze,Qe);case"latin1":case"binary":return lt(this,ze,Qe);case"base64":return et(this,ze,Qe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return st(this,ze,Qe);default:if(ot)throw new TypeError("Unknown encoding: "+Ne);Ne=(Ne+"").toLowerCase(),ot=!0}}re.prototype._isBuffer=!0;function ke(Ne,ze,Qe){var ot=Ne[ze];Ne[ze]=Ne[Qe],Ne[Qe]=ot}re.prototype.swap16=function(){var ze=this.length;if(ze%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Qe=0;Qe<ze;Qe+=2)ke(this,Qe,Qe+1);return this},re.prototype.swap32=function(){var ze=this.length;if(ze%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Qe=0;Qe<ze;Qe+=4)ke(this,Qe,Qe+3),ke(this,Qe+1,Qe+2);return this},re.prototype.swap64=function(){var ze=this.length;if(ze%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Qe=0;Qe<ze;Qe+=8)ke(this,Qe,Qe+7),ke(this,Qe+1,Qe+6),ke(this,Qe+2,Qe+5),ke(this,Qe+3,Qe+4);return this},re.prototype.toString=function(){var ze=this.length;return ze===0?"":arguments.length===0?it(this,0,ze):Fe.apply(this,arguments)},re.prototype.toLocaleString=re.prototype.toString,re.prototype.equals=function(ze){if(!re.isBuffer(ze))throw new TypeError("Argument must be a Buffer");return this===ze?!0:re.compare(this,ze)===0},re.prototype.inspect=function(){var ze="",Qe=ve.INSPECT_MAX_BYTES;return ze=this.toString("hex",0,Qe).replace(/(.{2})/g,"$1 ").trim(),this.length>Qe&&(ze+=" ... "),"<Buffer "+ze+">"},re.prototype.compare=function(ze,Qe,ot,mt,Ot){if(je(ze,Uint8Array)&&(ze=re.from(ze,ze.offset,ze.byteLength)),!re.isBuffer(ze))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ze);if(Qe===void 0&&(Qe=0),ot===void 0&&(ot=ze?ze.length:0),mt===void 0&&(mt=0),Ot===void 0&&(Ot=this.length),Qe<0||ot>ze.length||mt<0||Ot>this.length)throw new RangeError("out of range index");if(mt>=Ot&&Qe>=ot)return 0;if(mt>=Ot)return-1;if(Qe>=ot)return 1;if(Qe>>>=0,ot>>>=0,mt>>>=0,Ot>>>=0,this===ze)return 0;for(var xt=Ot-mt,Ut=ot-Qe,xn=Math.min(xt,Ut),Ft=this.slice(mt,Ot),Qt=ze.slice(Qe,ot),Zt=0;Zt<xn;++Zt)if(Ft[Zt]!==Qt[Zt]){xt=Ft[Zt],Ut=Qt[Zt];break}return xt<Ut?-1:Ut<xt?1:0};function De(Ne,ze,Qe,ot,mt){if(Ne.length===0)return-1;if(typeof Qe=="string"?(ot=Qe,Qe=0):Qe>2147483647?Qe=2147483647:Qe<-2147483648&&(Qe=-2147483648),Qe=+Qe,Ae(Qe)&&(Qe=mt?0:Ne.length-1),Qe<0&&(Qe=Ne.length+Qe),Qe>=Ne.length){if(mt)return-1;Qe=Ne.length-1}else if(Qe<0)if(mt)Qe=0;else return-1;if(typeof ze=="string"&&(ze=re.from(ze,ot)),re.isBuffer(ze))return ze.length===0?-1:Le(Ne,ze,Qe,ot,mt);if(typeof ze=="number")return ze=ze&255,typeof Uint8Array.prototype.indexOf=="function"?mt?Uint8Array.prototype.indexOf.call(Ne,ze,Qe):Uint8Array.prototype.lastIndexOf.call(Ne,ze,Qe):Le(Ne,[ze],Qe,ot,mt);throw new TypeError("val must be string, number or Buffer")}function Le(Ne,ze,Qe,ot,mt){var Ot=1,xt=Ne.length,Ut=ze.length;if(ot!==void 0&&(ot=String(ot).toLowerCase(),ot==="ucs2"||ot==="ucs-2"||ot==="utf16le"||ot==="utf-16le")){if(Ne.length<2||ze.length<2)return-1;Ot=2,xt/=2,Ut/=2,Qe/=2}function xn(Pt,zt){return Ot===1?Pt[zt]:Pt.readUInt16BE(zt*Ot)}var Ft;if(mt){var Qt=-1;for(Ft=Qe;Ft<xt;Ft++)if(xn(Ne,Ft)===xn(ze,Qt===-1?0:Ft-Qt)){if(Qt===-1&&(Qt=Ft),Ft-Qt+1===Ut)return Qt*Ot}else Qt!==-1&&(Ft-=Ft-Qt),Qt=-1}else for(Qe+Ut>xt&&(Qe=xt-Ut),Ft=Qe;Ft>=0;Ft--){for(var Zt=!0,bn=0;bn<Ut;bn++)if(xn(Ne,Ft+bn)!==xn(ze,bn)){Zt=!1;break}if(Zt)return Ft}return-1}re.prototype.includes=function(ze,Qe,ot){return this.indexOf(ze,Qe,ot)!==-1},re.prototype.indexOf=function(ze,Qe,ot){return De(this,ze,Qe,ot,!0)},re.prototype.lastIndexOf=function(ze,Qe,ot){return De(this,ze,Qe,ot,!1)};function Ie(Ne,ze,Qe,ot){Qe=Number(Qe)||0;var mt=Ne.length-Qe;ot?(ot=Number(ot),ot>mt&&(ot=mt)):ot=mt;var Ot=ze.length;ot>Ot/2&&(ot=Ot/2);for(var xt=0;xt<ot;++xt){var Ut=parseInt(ze.substr(xt*2,2),16);if(Ae(Ut))return xt;Ne[Qe+xt]=Ut}return xt}function Be(Ne,ze,Qe,ot){return He(Ye(ze,Ne.length-Qe),Ne,Qe,ot)}function Ue(Ne,ze,Qe,ot){return He(Ve(ze),Ne,Qe,ot)}function _e(Ne,ze,Qe,ot){return Ue(Ne,ze,Qe,ot)}function We(Ne,ze,Qe,ot){return He(Ce(ze),Ne,Qe,ot)}function Ze(Ne,ze,Qe,ot){return He(de(ze,Ne.length-Qe),Ne,Qe,ot)}re.prototype.write=function(ze,Qe,ot,mt){if(Qe===void 0)mt="utf8",ot=this.length,Qe=0;else if(ot===void 0&&typeof Qe=="string")mt=Qe,ot=this.length,Qe=0;else if(isFinite(Qe))Qe=Qe>>>0,isFinite(ot)?(ot=ot>>>0,mt===void 0&&(mt="utf8")):(mt=ot,ot=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ot=this.length-Qe;if((ot===void 0||ot>Ot)&&(ot=Ot),ze.length>0&&(ot<0||Qe<0)||Qe>this.length)throw new RangeError("Attempt to write outside buffer bounds");mt||(mt="utf8");for(var xt=!1;;)switch(mt){case"hex":return Ie(this,ze,Qe,ot);case"utf8":case"utf-8":return Be(this,ze,Qe,ot);case"ascii":return Ue(this,ze,Qe,ot);case"latin1":case"binary":return _e(this,ze,Qe,ot);case"base64":return We(this,ze,Qe,ot);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,ze,Qe,ot);default:if(xt)throw new TypeError("Unknown encoding: "+mt);mt=(""+mt).toLowerCase(),xt=!0}},re.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function et(Ne,ze,Qe){return ze===0&&Qe===Ne.length?te.fromByteArray(Ne):te.fromByteArray(Ne.slice(ze,Qe))}function it(Ne,ze,Qe){Qe=Math.min(Ne.length,Qe);for(var ot=[],mt=ze;mt<Qe;){var Ot=Ne[mt],xt=null,Ut=Ot>239?4:Ot>223?3:Ot>191?2:1;if(mt+Ut<=Qe){var xn,Ft,Qt,Zt;switch(Ut){case 1:Ot<128&&(xt=Ot);break;case 2:xn=Ne[mt+1],(xn&192)===128&&(Zt=(Ot&31)<<6|xn&63,Zt>127&&(xt=Zt));break;case 3:xn=Ne[mt+1],Ft=Ne[mt+2],(xn&192)===128&&(Ft&192)===128&&(Zt=(Ot&15)<<12|(xn&63)<<6|Ft&63,Zt>2047&&(Zt<55296||Zt>57343)&&(xt=Zt));break;case 4:xn=Ne[mt+1],Ft=Ne[mt+2],Qt=Ne[mt+3],(xn&192)===128&&(Ft&192)===128&&(Qt&192)===128&&(Zt=(Ot&15)<<18|(xn&63)<<12|(Ft&63)<<6|Qt&63,Zt>65535&&Zt<1114112&&(xt=Zt))}}xt===null?(xt=65533,Ut=1):xt>65535&&(xt-=65536,ot.push(xt>>>10&1023|55296),xt=56320|xt&1023),ot.push(xt),mt+=Ut}return Ge(ot)}var pt=4096;function Ge(Ne){var ze=Ne.length;if(ze<=pt)return String.fromCharCode.apply(String,Ne);for(var Qe="",ot=0;ot<ze;)Qe+=String.fromCharCode.apply(String,Ne.slice(ot,ot+=pt));return Qe}function Xe(Ne,ze,Qe){var ot="";Qe=Math.min(Ne.length,Qe);for(var mt=ze;mt<Qe;++mt)ot+=String.fromCharCode(Ne[mt]&127);return ot}function lt(Ne,ze,Qe){var ot="";Qe=Math.min(Ne.length,Qe);for(var mt=ze;mt<Qe;++mt)ot+=String.fromCharCode(Ne[mt]);return ot}function dt(Ne,ze,Qe){var ot=Ne.length;(!ze||ze<0)&&(ze=0),(!Qe||Qe<0||Qe>ot)&&(Qe=ot);for(var mt="",Ot=ze;Ot<Qe;++Ot)mt+=ut(Ne[Ot]);return mt}function st(Ne,ze,Qe){for(var ot=Ne.slice(ze,Qe),mt="",Ot=0;Ot<ot.length;Ot+=2)mt+=String.fromCharCode(ot[Ot]+ot[Ot+1]*256);return mt}re.prototype.slice=function(ze,Qe){var ot=this.length;ze=~~ze,Qe=Qe===void 0?ot:~~Qe,ze<0?(ze+=ot,ze<0&&(ze=0)):ze>ot&&(ze=ot),Qe<0?(Qe+=ot,Qe<0&&(Qe=0)):Qe>ot&&(Qe=ot),Qe<ze&&(Qe=ze);var mt=this.subarray(ze,Qe);return mt.__proto__=re.prototype,mt};function nt(Ne,ze,Qe){if(Ne%1!==0||Ne<0)throw new RangeError("offset is not uint");if(Ne+ze>Qe)throw new RangeError("Trying to access beyond buffer length")}re.prototype.readUIntLE=function(ze,Qe,ot){ze=ze>>>0,Qe=Qe>>>0,ot||nt(ze,Qe,this.length);for(var mt=this[ze],Ot=1,xt=0;++xt<Qe&&(Ot*=256);)mt+=this[ze+xt]*Ot;return mt},re.prototype.readUIntBE=function(ze,Qe,ot){ze=ze>>>0,Qe=Qe>>>0,ot||nt(ze,Qe,this.length);for(var mt=this[ze+--Qe],Ot=1;Qe>0&&(Ot*=256);)mt+=this[ze+--Qe]*Ot;return mt},re.prototype.readUInt8=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,1,this.length),this[ze]},re.prototype.readUInt16LE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,2,this.length),this[ze]|this[ze+1]<<8},re.prototype.readUInt16BE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,2,this.length),this[ze]<<8|this[ze+1]},re.prototype.readUInt32LE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,4,this.length),(this[ze]|this[ze+1]<<8|this[ze+2]<<16)+this[ze+3]*16777216},re.prototype.readUInt32BE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,4,this.length),this[ze]*16777216+(this[ze+1]<<16|this[ze+2]<<8|this[ze+3])},re.prototype.readIntLE=function(ze,Qe,ot){ze=ze>>>0,Qe=Qe>>>0,ot||nt(ze,Qe,this.length);for(var mt=this[ze],Ot=1,xt=0;++xt<Qe&&(Ot*=256);)mt+=this[ze+xt]*Ot;return Ot*=128,mt>=Ot&&(mt-=Math.pow(2,8*Qe)),mt},re.prototype.readIntBE=function(ze,Qe,ot){ze=ze>>>0,Qe=Qe>>>0,ot||nt(ze,Qe,this.length);for(var mt=Qe,Ot=1,xt=this[ze+--mt];mt>0&&(Ot*=256);)xt+=this[ze+--mt]*Ot;return Ot*=128,xt>=Ot&&(xt-=Math.pow(2,8*Qe)),xt},re.prototype.readInt8=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,1,this.length),this[ze]&128?(255-this[ze]+1)*-1:this[ze]},re.prototype.readInt16LE=function(ze,Qe){ze=ze>>>0,Qe||nt(ze,2,this.length);var ot=this[ze]|this[ze+1]<<8;return ot&32768?ot|4294901760:ot},re.prototype.readInt16BE=function(ze,Qe){ze=ze>>>0,Qe||nt(ze,2,this.length);var ot=this[ze+1]|this[ze]<<8;return ot&32768?ot|4294901760:ot},re.prototype.readInt32LE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,4,this.length),this[ze]|this[ze+1]<<8|this[ze+2]<<16|this[ze+3]<<24},re.prototype.readInt32BE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,4,this.length),this[ze]<<24|this[ze+1]<<16|this[ze+2]<<8|this[ze+3]},re.prototype.readFloatLE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,4,this.length),ae.read(this,ze,!0,23,4)},re.prototype.readFloatBE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,4,this.length),ae.read(this,ze,!1,23,4)},re.prototype.readDoubleLE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,8,this.length),ae.read(this,ze,!0,52,8)},re.prototype.readDoubleBE=function(ze,Qe){return ze=ze>>>0,Qe||nt(ze,8,this.length),ae.read(this,ze,!1,52,8)};function rt(Ne,ze,Qe,ot,mt,Ot){if(!re.isBuffer(Ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>mt||ze<Ot)throw new RangeError('"value" argument is out of bounds');if(Qe+ot>Ne.length)throw new RangeError("Index out of range")}re.prototype.writeUIntLE=function(ze,Qe,ot,mt){if(ze=+ze,Qe=Qe>>>0,ot=ot>>>0,!mt){var Ot=Math.pow(2,8*ot)-1;rt(this,ze,Qe,ot,Ot,0)}var xt=1,Ut=0;for(this[Qe]=ze&255;++Ut<ot&&(xt*=256);)this[Qe+Ut]=ze/xt&255;return Qe+ot},re.prototype.writeUIntBE=function(ze,Qe,ot,mt){if(ze=+ze,Qe=Qe>>>0,ot=ot>>>0,!mt){var Ot=Math.pow(2,8*ot)-1;rt(this,ze,Qe,ot,Ot,0)}var xt=ot-1,Ut=1;for(this[Qe+xt]=ze&255;--xt>=0&&(Ut*=256);)this[Qe+xt]=ze/Ut&255;return Qe+ot},re.prototype.writeUInt8=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,1,255,0),this[Qe]=ze&255,Qe+1},re.prototype.writeUInt16LE=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,2,65535,0),this[Qe]=ze&255,this[Qe+1]=ze>>>8,Qe+2},re.prototype.writeUInt16BE=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,2,65535,0),this[Qe]=ze>>>8,this[Qe+1]=ze&255,Qe+2},re.prototype.writeUInt32LE=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,4,4294967295,0),this[Qe+3]=ze>>>24,this[Qe+2]=ze>>>16,this[Qe+1]=ze>>>8,this[Qe]=ze&255,Qe+4},re.prototype.writeUInt32BE=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,4,4294967295,0),this[Qe]=ze>>>24,this[Qe+1]=ze>>>16,this[Qe+2]=ze>>>8,this[Qe+3]=ze&255,Qe+4},re.prototype.writeIntLE=function(ze,Qe,ot,mt){if(ze=+ze,Qe=Qe>>>0,!mt){var Ot=Math.pow(2,8*ot-1);rt(this,ze,Qe,ot,Ot-1,-Ot)}var xt=0,Ut=1,xn=0;for(this[Qe]=ze&255;++xt<ot&&(Ut*=256);)ze<0&&xn===0&&this[Qe+xt-1]!==0&&(xn=1),this[Qe+xt]=(ze/Ut>>0)-xn&255;return Qe+ot},re.prototype.writeIntBE=function(ze,Qe,ot,mt){if(ze=+ze,Qe=Qe>>>0,!mt){var Ot=Math.pow(2,8*ot-1);rt(this,ze,Qe,ot,Ot-1,-Ot)}var xt=ot-1,Ut=1,xn=0;for(this[Qe+xt]=ze&255;--xt>=0&&(Ut*=256);)ze<0&&xn===0&&this[Qe+xt+1]!==0&&(xn=1),this[Qe+xt]=(ze/Ut>>0)-xn&255;return Qe+ot},re.prototype.writeInt8=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,1,127,-128),ze<0&&(ze=255+ze+1),this[Qe]=ze&255,Qe+1},re.prototype.writeInt16LE=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,2,32767,-32768),this[Qe]=ze&255,this[Qe+1]=ze>>>8,Qe+2},re.prototype.writeInt16BE=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,2,32767,-32768),this[Qe]=ze>>>8,this[Qe+1]=ze&255,Qe+2},re.prototype.writeInt32LE=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,4,2147483647,-2147483648),this[Qe]=ze&255,this[Qe+1]=ze>>>8,this[Qe+2]=ze>>>16,this[Qe+3]=ze>>>24,Qe+4},re.prototype.writeInt32BE=function(ze,Qe,ot){return ze=+ze,Qe=Qe>>>0,ot||rt(this,ze,Qe,4,2147483647,-2147483648),ze<0&&(ze=4294967295+ze+1),this[Qe]=ze>>>24,this[Qe+1]=ze>>>16,this[Qe+2]=ze>>>8,this[Qe+3]=ze&255,Qe+4};function at(Ne,ze,Qe,ot,mt,Ot){if(Qe+ot>Ne.length)throw new RangeError("Index out of range");if(Qe<0)throw new RangeError("Index out of range")}function gt(Ne,ze,Qe,ot,mt){return ze=+ze,Qe=Qe>>>0,mt||at(Ne,ze,Qe,4,34028234663852886e22,-34028234663852886e22),ae.write(Ne,ze,Qe,ot,23,4),Qe+4}re.prototype.writeFloatLE=function(ze,Qe,ot){return gt(this,ze,Qe,!0,ot)},re.prototype.writeFloatBE=function(ze,Qe,ot){return gt(this,ze,Qe,!1,ot)};function vt(Ne,ze,Qe,ot,mt){return ze=+ze,Qe=Qe>>>0,mt||at(Ne,ze,Qe,8,17976931348623157e292,-17976931348623157e292),ae.write(Ne,ze,Qe,ot,52,8),Qe+8}re.prototype.writeDoubleLE=function(ze,Qe,ot){return vt(this,ze,Qe,!0,ot)},re.prototype.writeDoubleBE=function(ze,Qe,ot){return vt(this,ze,Qe,!1,ot)},re.prototype.copy=function(ze,Qe,ot,mt){if(!re.isBuffer(ze))throw new TypeError("argument should be a Buffer");if(ot||(ot=0),!mt&&mt!==0&&(mt=this.length),Qe>=ze.length&&(Qe=ze.length),Qe||(Qe=0),mt>0&&mt<ot&&(mt=ot),mt===ot||ze.length===0||this.length===0)return 0;if(Qe<0)throw new RangeError("targetStart out of bounds");if(ot<0||ot>=this.length)throw new RangeError("Index out of range");if(mt<0)throw new RangeError("sourceEnd out of bounds");mt>this.length&&(mt=this.length),ze.length-Qe<mt-ot&&(mt=ze.length-Qe+ot);var Ot=mt-ot;if(this===ze&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Qe,ot,mt);else if(this===ze&&ot<Qe&&Qe<mt)for(var xt=Ot-1;xt>=0;--xt)ze[xt+Qe]=this[xt+ot];else Uint8Array.prototype.set.call(ze,this.subarray(ot,mt),Qe);return Ot},re.prototype.fill=function(ze,Qe,ot,mt){if(typeof ze=="string"){if(typeof Qe=="string"?(mt=Qe,Qe=0,ot=this.length):typeof ot=="string"&&(mt=ot,ot=this.length),mt!==void 0&&typeof mt!="string")throw new TypeError("encoding must be a string");if(typeof mt=="string"&&!re.isEncoding(mt))throw new TypeError("Unknown encoding: "+mt);if(ze.length===1){var Ot=ze.charCodeAt(0);(mt==="utf8"&&Ot<128||mt==="latin1")&&(ze=Ot)}}else typeof ze=="number"&&(ze=ze&255);if(Qe<0||this.length<Qe||this.length<ot)throw new RangeError("Out of range index");if(ot<=Qe)return this;Qe=Qe>>>0,ot=ot===void 0?this.length:ot>>>0,ze||(ze=0);var xt;if(typeof ze=="number")for(xt=Qe;xt<ot;++xt)this[xt]=ze;else{var Ut=re.isBuffer(ze)?ze:re.from(ze,mt),xn=Ut.length;if(xn===0)throw new TypeError('The value "'+ze+'" is invalid for argument "value"');for(xt=0;xt<ot-Qe;++xt)this[xt+Qe]=Ut[xt%xn]}return this};var Et=/[^+/0-9A-Za-z-_]/g;function At(Ne){if(Ne=Ne.split("=")[0],Ne=Ne.trim().replace(Et,""),Ne.length<2)return"";for(;Ne.length%4!==0;)Ne=Ne+"=";return Ne}function ut(Ne){return Ne<16?"0"+Ne.toString(16):Ne.toString(16)}function Ye(Ne,ze){ze=ze||1/0;for(var Qe,ot=Ne.length,mt=null,Ot=[],xt=0;xt<ot;++xt){if(Qe=Ne.charCodeAt(xt),Qe>55295&&Qe<57344){if(!mt){if(Qe>56319){(ze-=3)>-1&&Ot.push(239,191,189);continue}else if(xt+1===ot){(ze-=3)>-1&&Ot.push(239,191,189);continue}mt=Qe;continue}if(Qe<56320){(ze-=3)>-1&&Ot.push(239,191,189),mt=Qe;continue}Qe=(mt-55296<<10|Qe-56320)+65536}else mt&&(ze-=3)>-1&&Ot.push(239,191,189);if(mt=null,Qe<128){if((ze-=1)<0)break;Ot.push(Qe)}else if(Qe<2048){if((ze-=2)<0)break;Ot.push(Qe>>6|192,Qe&63|128)}else if(Qe<65536){if((ze-=3)<0)break;Ot.push(Qe>>12|224,Qe>>6&63|128,Qe&63|128)}else if(Qe<1114112){if((ze-=4)<0)break;Ot.push(Qe>>18|240,Qe>>12&63|128,Qe>>6&63|128,Qe&63|128)}else throw new Error("Invalid code point")}return Ot}function Ve(Ne){for(var ze=[],Qe=0;Qe<Ne.length;++Qe)ze.push(Ne.charCodeAt(Qe)&255);return ze}function de(Ne,ze){for(var Qe,ot,mt,Ot=[],xt=0;xt<Ne.length&&!((ze-=2)<0);++xt)Qe=Ne.charCodeAt(xt),ot=Qe>>8,mt=Qe%256,Ot.push(mt),Ot.push(ot);return Ot}function Ce(Ne){return te.toByteArray(At(Ne))}function He(Ne,ze,Qe,ot){for(var mt=0;mt<ot&&!(mt+Qe>=ze.length||mt>=Ne.length);++mt)ze[mt+Qe]=Ne[mt];return mt}function je(Ne,ze){return Ne instanceof ze||Ne!=null&&Ne.constructor!=null&&Ne.constructor.name!=null&&Ne.constructor.name===ze.name}function Ae(Ne){return Ne!==Ne}}).call(this)}).call(this,x("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(x,Te,ve){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(x,Te,ve){"use strict";var ie=x("get-intrinsic"),te=x("./"),ae=te(ie("String.prototype.indexOf"));Te.exports=function(oe,he){var re=ie(oe,!!he);return typeof re=="function"&&ae(oe,".prototype.")>-1?te(re):re}},{"./":93,"get-intrinsic":348}],93:[function(x,Te,ve){"use strict";var ie=x("function-bind"),te=x("get-intrinsic"),ae=te("%Function.prototype.apply%"),ne=te("%Function.prototype.call%"),oe=te("%Reflect.apply%",!0)||ie.call(ne,ae),he=te("%Object.getOwnPropertyDescriptor%",!0),re=te("%Object.defineProperty%",!0),se=te("%Math.max%");if(re)try{re({},"a",{value:1})}catch(fe){re=null}Te.exports=function(pe){var le=oe(ie,ne,arguments);if(he&&re){var Se=he(le,"length");Se.configurable&&re(le,"length",{value:1+se(0,pe.length-(arguments.length-1))})}return le};var ce=function(){return oe(ie,ae,arguments)};re?re(Te.exports,"apply",{value:ce}):Te.exports.apply=ce},{"function-bind":347,"get-intrinsic":348}],94:[function(x,Te,ve){"use strict";var ie=Array.prototype.slice;Te.exports=te;function te(ne,oe){if(!(this instanceof te))return new te(ne,oe);this.src=ne,this._withAccess=oe}te.prototype.withAccess=function(ne){return this._withAccess=ne!==!1,this},te.prototype.pick=function(ne){return Array.isArray(ne)||(ne=ie.call(arguments)),ne.length&&(this.keys=ne),this},te.prototype.to=function(ne){if(ne=ne||{},!this.src)return ne;var oe=this.keys||Object.keys(this.src);if(!this._withAccess){for(var he=0;he<oe.length;he++)re=oe[he],ne[re]===void 0&&(ne[re]=this.src[re]);return ne}for(var he=0;he<oe.length;he++){var re=oe[he];if(ae(ne,re)){var se=this.src.__lookupGetter__(re),ce=this.src.__lookupSetter__(re);se&&ne.__defineGetter__(re,se),ce&&ne.__defineSetter__(re,ce),!se&&!ce&&(ne[re]=this.src[re])}}return ne},te.prototype.toCover=function(ne){for(var oe=this.keys||Object.keys(this.src),he=0;he<oe.length;he++){var re=oe[he];delete ne[re];var se=this.src.__lookupGetter__(re),ce=this.src.__lookupSetter__(re);se&&ne.__defineGetter__(re,se),ce&&ne.__defineSetter__(re,ce),!se&&!ce&&(ne[re]=this.src[re])}},te.prototype.override=te.prototype.toCover,te.prototype.and=function(ne){var oe={};return this.to(oe),this.src=ne,this.to(oe),this.src=oe,this};function ae(ne,oe){return ne[oe]===void 0&&ne.__lookupGetter__(oe)===void 0&&ne.__lookupSetter__(oe)===void 0}},{}],95:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-callable"),ae=x("../internals/try-to-string"),ne=ie.TypeError;Te.exports=function(oe){if(te(oe))return oe;throw ne(ae(oe)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-constructor"),ae=x("../internals/try-to-string"),ne=ie.TypeError;Te.exports=function(oe){if(te(oe))return oe;throw ne(ae(oe)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-callable"),ae=ie.String,ne=ie.TypeError;Te.exports=function(oe){if(typeof oe=="object"||te(oe))return oe;throw ne("Can't set "+ae(oe)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(x,Te,ve){var ie=x("../internals/well-known-symbol"),te=x("../internals/object-create"),ae=x("../internals/object-define-property"),ne=ie("unscopables"),oe=Array.prototype;oe[ne]==null&&ae.f(oe,ne,{configurable:!0,value:te(null)}),Te.exports=function(he){oe[ne][he]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(x,Te,ve){"use strict";var ie=x("../internals/string-multibyte").charAt;Te.exports=function(te,ae,ne){return ae+(ne?ie(te,ae).length:1)}},{"../internals/string-multibyte":239}],100:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/object-is-prototype-of"),ae=ie.TypeError;Te.exports=function(ne,oe){if(te(oe,ne))return ne;throw ae("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-object"),ae=ie.String,ne=ie.TypeError;Te.exports=function(oe){if(te(oe))return oe;throw ne(ae(oe)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(x,Te,ve){Te.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-native"),te=x("../internals/descriptors"),ae=x("../internals/global"),ne=x("../internals/is-callable"),oe=x("../internals/is-object"),he=x("../internals/has-own-property"),re=x("../internals/classof"),se=x("../internals/try-to-string"),ce=x("../internals/create-non-enumerable-property"),fe=x("../internals/redefine"),pe=x("../internals/object-define-property").f,le=x("../internals/object-is-prototype-of"),Se=x("../internals/object-get-prototype-of"),xe=x("../internals/object-set-prototype-of"),ge=x("../internals/well-known-symbol"),Me=x("../internals/uid"),ye=ae.Int8Array,be=ye&&ye.prototype,Fe=ae.Uint8ClampedArray,ke=Fe&&Fe.prototype,De=ye&&Se(ye),Le=be&&Se(be),Ie=Object.prototype,Be=ae.TypeError,Ue=ge("toStringTag"),_e=Me("TYPED_ARRAY_TAG"),We=Me("TYPED_ARRAY_CONSTRUCTOR"),Ze=ie&&!!xe&&re(ae.opera)!=="Opera",et=!1,it,pt,Ge,Xe={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},lt={BigInt64Array:8,BigUint64Array:8},dt=function(Et){if(!oe(Et))return!1;var At=re(Et);return At==="DataView"||he(Xe,At)||he(lt,At)},st=function(vt){if(!oe(vt))return!1;var Et=re(vt);return he(Xe,Et)||he(lt,Et)},nt=function(vt){if(st(vt))return vt;throw Be("Target is not a typed array")},rt=function(vt){if(ne(vt)&&(!xe||le(De,vt)))return vt;throw Be(se(vt)+" is not a typed array constructor")},at=function(vt,Et,At,ut){if(te){if(At)for(var Ye in Xe){var Ve=ae[Ye];if(Ve&&he(Ve.prototype,vt))try{delete Ve.prototype[vt]}catch(de){try{Ve.prototype[vt]=Et}catch(Ce){}}}(!Le[vt]||At)&&fe(Le,vt,At?Et:Ze&&be[vt]||Et,ut)}},gt=function(vt,Et,At){var ut,Ye;if(te){if(xe){if(At){for(ut in Xe)if(Ye=ae[ut],Ye&&he(Ye,vt))try{delete Ye[vt]}catch(Ve){}}if(!De[vt]||At)try{return fe(De,vt,At?Et:Ze&&De[vt]||Et)}catch(Ve){}else return}for(ut in Xe)Ye=ae[ut],Ye&&(!Ye[vt]||At)&&fe(Ye,vt,Et)}};for(it in Xe)pt=ae[it],Ge=pt&&pt.prototype,Ge?ce(Ge,We,pt):Ze=!1;for(it in lt)pt=ae[it],Ge=pt&&pt.prototype,Ge&&ce(Ge,We,pt);if((!Ze||!ne(De)||De===Function.prototype)&&(De=function(){throw Be("Incorrect invocation")},Ze))for(it in Xe)ae[it]&&xe(ae[it],De);if((!Ze||!Le||Le===Ie)&&(Le=De.prototype,Ze))for(it in Xe)ae[it]&&xe(ae[it].prototype,Le);if(Ze&&Se(ke)!==Le&&xe(ke,Le),te&&!he(Le,Ue)){et=!0,pe(Le,Ue,{get:function(){return oe(this)?this[_e]:void 0}});for(it in Xe)ae[it]&&ce(ae[it],_e,it)}Te.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ze,TYPED_ARRAY_CONSTRUCTOR:We,TYPED_ARRAY_TAG:et&&_e,aTypedArray:nt,aTypedArrayConstructor:rt,exportTypedArrayMethod:at,exportTypedArrayStaticMethod:gt,isView:dt,isTypedArray:st,TypedArray:De,TypedArrayPrototype:Le}},{"../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(x,Te,ve){"use strict";var ie=x("../internals/global"),te=x("../internals/function-uncurry-this"),ae=x("../internals/descriptors"),ne=x("../internals/array-buffer-native"),oe=x("../internals/function-name"),he=x("../internals/create-non-enumerable-property"),re=x("../internals/redefine-all"),se=x("../internals/fails"),ce=x("../internals/an-instance"),fe=x("../internals/to-integer-or-infinity"),pe=x("../internals/to-length"),le=x("../internals/to-index"),Se=x("../internals/ieee754"),xe=x("../internals/object-get-prototype-of"),ge=x("../internals/object-set-prototype-of"),Me=x("../internals/object-get-own-property-names").f,ye=x("../internals/object-define-property").f,be=x("../internals/array-fill"),Fe=x("../internals/array-slice-simple"),ke=x("../internals/set-to-string-tag"),De=x("../internals/internal-state"),Le=oe.PROPER,Ie=oe.CONFIGURABLE,Be=De.get,Ue=De.set,_e="ArrayBuffer",We="DataView",Ze="prototype",et="Wrong length",it="Wrong index",pt=ie[_e],Ge=pt,Xe=Ge&&Ge[Ze],lt=ie[We],dt=lt&<[Ze],st=Object.prototype,nt=ie.Array,rt=ie.RangeError,at=te(be),gt=te([].reverse),vt=Se.pack,Et=Se.unpack,At=function(xt){return[xt&255]},ut=function(xt){return[xt&255,xt>>8&255]},Ye=function(xt){return[xt&255,xt>>8&255,xt>>16&255,xt>>24&255]},Ve=function(xt){return xt[3]<<24|xt[2]<<16|xt[1]<<8|xt[0]},de=function(xt){return vt(xt,23,4)},Ce=function(xt){return vt(xt,52,8)},He=function(xt,Ut){ye(xt[Ze],Ut,{get:function(){return Be(this)[Ut]}})},je=function(xt,Ut,xn,Ft){var Qt=le(xn),Zt=Be(xt);if(Qt+Ut>Zt.byteLength)throw rt(it);var bn=Be(Zt.buffer).bytes,Pt=Qt+Zt.byteOffset,zt=Fe(bn,Pt,Pt+Ut);return Ft?zt:gt(zt)},Ae=function(xt,Ut,xn,Ft,Qt,Zt){var bn=le(xn),Pt=Be(xt);if(bn+Ut>Pt.byteLength)throw rt(it);for(var zt=Be(Pt.buffer).bytes,sn=bn+Pt.byteOffset,yn=Ft(+Qt),kn=0;kn<Ut;kn++)zt[sn+kn]=yn[Zt?kn:Ut-kn-1]};if(!ne)Ge=function(Ut){ce(this,Xe);var xn=le(Ut);Ue(this,{bytes:at(nt(xn),0),byteLength:xn}),ae||(this.byteLength=xn)},Xe=Ge[Ze],lt=function(Ut,xn,Ft){ce(this,dt),ce(Ut,Xe);var Qt=Be(Ut).byteLength,Zt=fe(xn);if(Zt<0||Zt>Qt)throw rt("Wrong offset");if(Ft=Ft===void 0?Qt-Zt:pe(Ft),Zt+Ft>Qt)throw rt(et);Ue(this,{buffer:Ut,byteLength:Ft,byteOffset:Zt}),ae||(this.buffer=Ut,this.byteLength=Ft,this.byteOffset=Zt)},dt=lt[Ze],ae&&(He(Ge,"byteLength"),He(lt,"buffer"),He(lt,"byteLength"),He(lt,"byteOffset")),re(dt,{getInt8:function(Ut){return je(this,1,Ut)[0]<<24>>24},getUint8:function(Ut){return je(this,1,Ut)[0]},getInt16:function(Ut){var xn=je(this,2,Ut,arguments.length>1?arguments[1]:void 0);return(xn[1]<<8|xn[0])<<16>>16},getUint16:function(Ut){var xn=je(this,2,Ut,arguments.length>1?arguments[1]:void 0);return xn[1]<<8|xn[0]},getInt32:function(Ut){return Ve(je(this,4,Ut,arguments.length>1?arguments[1]:void 0))},getUint32:function(Ut){return Ve(je(this,4,Ut,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Ut){return Et(je(this,4,Ut,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Ut){return Et(je(this,8,Ut,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Ut,xn){Ae(this,1,Ut,At,xn)},setUint8:function(Ut,xn){Ae(this,1,Ut,At,xn)},setInt16:function(Ut,xn){Ae(this,2,Ut,ut,xn,arguments.length>2?arguments[2]:void 0)},setUint16:function(Ut,xn){Ae(this,2,Ut,ut,xn,arguments.length>2?arguments[2]:void 0)},setInt32:function(Ut,xn){Ae(this,4,Ut,Ye,xn,arguments.length>2?arguments[2]:void 0)},setUint32:function(Ut,xn){Ae(this,4,Ut,Ye,xn,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Ut,xn){Ae(this,4,Ut,de,xn,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Ut,xn){Ae(this,8,Ut,Ce,xn,arguments.length>2?arguments[2]:void 0)}});else{var Ne=Le&&pt.name!==_e;if(!se(function(){pt(1)})||!se(function(){new pt(-1)})||se(function(){return new pt,new pt(1.5),new pt(NaN),Ne&&!Ie})){Ge=function(Ut){return ce(this,Xe),new pt(le(Ut))},Ge[Ze]=Xe;for(var ze=Me(pt),Qe=0,ot;ze.length>Qe;)(ot=ze[Qe++])in Ge||he(Ge,ot,pt[ot]);Xe.constructor=Ge}else Ne&&Ie&&he(pt,"name",_e);ge&&xe(dt)!==st&&ge(dt,st);var mt=new lt(new Ge(2)),Ot=te(dt.setInt8);mt.setInt8(0,2147483648),mt.setInt8(1,2147483649),(mt.getInt8(0)||!mt.getInt8(1))&&re(dt,{setInt8:function(Ut,xn){Ot(this,Ut,xn<<24>>24)},setUint8:function(Ut,xn){Ot(this,Ut,xn<<24>>24)}},{unsafe:!0})}ke(Ge,_e),ke(lt,We),Te.exports={ArrayBuffer:Ge,DataView:lt}},{"../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(x,Te,ve){"use strict";var ie=x("../internals/to-object"),te=x("../internals/to-absolute-index"),ae=x("../internals/length-of-array-like"),ne=Math.min;Te.exports=[].copyWithin||function(he,re){var se=ie(this),ce=ae(se),fe=te(he,ce),pe=te(re,ce),le=arguments.length>2?arguments[2]:void 0,Se=ne((le===void 0?ce:te(le,ce))-pe,ce-fe),xe=1;for(pe<fe&&fe<pe+Se&&(xe=-1,pe+=Se-1,fe+=Se-1);Se-- >0;)pe in se?se[fe]=se[pe]:delete se[fe],fe+=xe,pe+=xe;return se}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(x,Te,ve){"use strict";var ie=x("../internals/to-object"),te=x("../internals/to-absolute-index"),ae=x("../internals/length-of-array-like");Te.exports=function(oe){for(var he=ie(this),re=ae(he),se=arguments.length,ce=te(se>1?arguments[1]:void 0,re),fe=se>2?arguments[2]:void 0,pe=fe===void 0?re:te(fe,re);pe>ce;)he[ce++]=oe;return he}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(x,Te,ve){"use strict";var ie=x("../internals/array-iteration").forEach,te=x("../internals/array-method-is-strict"),ae=te("forEach");Te.exports=ae?[].forEach:function(oe){return ie(this,oe,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(x,Te,ve){var ie=x("../internals/length-of-array-like");Te.exports=function(te,ae){for(var ne=0,oe=ie(ae),he=new te(oe);oe>ne;)he[ne]=ae[ne++];return he}},{"../internals/length-of-array-like":188}],109:[function(x,Te,ve){"use strict";var ie=x("../internals/global"),te=x("../internals/function-bind-context"),ae=x("../internals/function-call"),ne=x("../internals/to-object"),oe=x("../internals/call-with-safe-iteration-closing"),he=x("../internals/is-array-iterator-method"),re=x("../internals/is-constructor"),se=x("../internals/length-of-array-like"),ce=x("../internals/create-property"),fe=x("../internals/get-iterator"),pe=x("../internals/get-iterator-method"),le=ie.Array;Te.exports=function(xe){var ge=ne(xe),Me=re(this),ye=arguments.length,be=ye>1?arguments[1]:void 0,Fe=be!==void 0;Fe&&(be=te(be,ye>2?arguments[2]:void 0));var ke=pe(ge),De=0,Le,Ie,Be,Ue,_e,We;if(ke&&!(this==le&&he(ke)))for(Ue=fe(ge,ke),_e=Ue.next,Ie=Me?new this:[];!(Be=ae(_e,Ue)).done;De++)We=Fe?oe(Ue,be,[Be.value,De],!0):Be.value,ce(Ie,De,We);else for(Le=se(ge),Ie=Me?new this(Le):le(Le);Le>De;De++)We=Fe?be(ge[De],De):ge[De],ce(Ie,De,We);return Ie.length=De,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(x,Te,ve){var ie=x("../internals/to-indexed-object"),te=x("../internals/to-absolute-index"),ae=x("../internals/length-of-array-like"),ne=function(oe){return function(he,re,se){var ce=ie(he),fe=ae(ce),pe=te(se,fe),le;if(oe&&re!=re){for(;fe>pe;)if(le=ce[pe++],le!=le)return!0}else for(;fe>pe;pe++)if((oe||pe in ce)&&ce[pe]===re)return oe||pe||0;return!oe&&-1}};Te.exports={includes:ne(!0),indexOf:ne(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(x,Te,ve){var ie=x("../internals/function-bind-context"),te=x("../internals/function-uncurry-this"),ae=x("../internals/indexed-object"),ne=x("../internals/to-object"),oe=x("../internals/length-of-array-like"),he=x("../internals/array-species-create"),re=te([].push),se=function(ce){var fe=ce==1,pe=ce==2,le=ce==3,Se=ce==4,xe=ce==6,ge=ce==7,Me=ce==5||xe;return function(ye,be,Fe,ke){for(var De=ne(ye),Le=ae(De),Ie=ie(be,Fe),Be=oe(Le),Ue=0,_e=ke||he,We=fe?_e(ye,Be):pe||ge?_e(ye,0):void 0,Ze,et;Be>Ue;Ue++)if((Me||Ue in Le)&&(Ze=Le[Ue],et=Ie(Ze,Ue,De),ce))if(fe)We[Ue]=et;else if(et)switch(ce){case 3:return!0;case 5:return Ze;case 6:return Ue;case 2:re(We,Ze)}else switch(ce){case 4:return!1;case 7:re(We,Ze)}return xe?-1:le||Se?Se:We}};Te.exports={forEach:se(0),map:se(1),filter:se(2),some:se(3),every:se(4),find:se(5),findIndex:se(6),filterReject:se(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(x,Te,ve){"use strict";var ie=x("../internals/function-apply"),te=x("../internals/to-indexed-object"),ae=x("../internals/to-integer-or-infinity"),ne=x("../internals/length-of-array-like"),oe=x("../internals/array-method-is-strict"),he=Math.min,re=[].lastIndexOf,se=!!re&&1/[1].lastIndexOf(1,-0)<0,ce=oe("lastIndexOf"),fe=se||!ce;Te.exports=fe?function(le){if(se)return ie(re,this,arguments)||0;var Se=te(this),xe=ne(Se),ge=xe-1;for(arguments.length>1&&(ge=he(ge,ae(arguments[1]))),ge<0&&(ge=xe+ge);ge>=0;ge--)if(ge in Se&&Se[ge]===le)return ge||0;return-1}:re},{"../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(x,Te,ve){var ie=x("../internals/fails"),te=x("../internals/well-known-symbol"),ae=x("../internals/engine-v8-version"),ne=te("species");Te.exports=function(oe){return ae>=51||!ie(function(){var he=[],re=he.constructor={};return re[ne]=function(){return{foo:1}},he[oe](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(x,Te,ve){"use strict";var ie=x("../internals/fails");Te.exports=function(te,ae){var ne=[][te];return!!ne&&ie(function(){ne.call(null,ae||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/a-callable"),ae=x("../internals/to-object"),ne=x("../internals/indexed-object"),oe=x("../internals/length-of-array-like"),he=ie.TypeError,re=function(se){return function(ce,fe,pe,le){te(fe);var Se=ae(ce),xe=ne(Se),ge=oe(Se),Me=se?ge-1:0,ye=se?-1:1;if(pe<2)for(;;){if(Me in xe){le=xe[Me],Me+=ye;break}if(Me+=ye,se?Me<0:ge<=Me)throw he("Reduce of empty array with no initial value")}for(;se?Me>=0:ge>Me;Me+=ye)Me in xe&&(le=fe(le,xe[Me],Me,Se));return le}};Te.exports={left:re(!1),right:re(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/to-absolute-index"),ae=x("../internals/length-of-array-like"),ne=x("../internals/create-property"),oe=ie.Array,he=Math.max;Te.exports=function(re,se,ce){for(var fe=ae(re),pe=te(se,fe),le=te(ce===void 0?fe:ce,fe),Se=oe(he(le-pe,0)),xe=0;pe<le;pe++,xe++)ne(Se,xe,re[pe]);return Se.length=xe,Se}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this");Te.exports=ie([].slice)},{"../internals/function-uncurry-this":157}],118:[function(x,Te,ve){var ie=x("../internals/array-slice-simple"),te=Math.floor,ae=function(he,re){var se=he.length,ce=te(se/2);return se<8?ne(he,re):oe(he,ae(ie(he,0,ce),re),ae(ie(he,ce),re),re)},ne=function(he,re){for(var se=he.length,ce=1,fe,pe;ce<se;){for(pe=ce,fe=he[ce];pe&&re(he[pe-1],fe)>0;)he[pe]=he[--pe];pe!==ce++&&(he[pe]=fe)}return he},oe=function(he,re,se,ce){for(var fe=re.length,pe=se.length,le=0,Se=0;le<fe||Se<pe;)he[le+Se]=le<fe&&Se<pe?ce(re[le],se[Se])<=0?re[le++]:se[Se++]:le<fe?re[le++]:se[Se++];return he};Te.exports=ae},{"../internals/array-slice-simple":116}],119:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-array"),ae=x("../internals/is-constructor"),ne=x("../internals/is-object"),oe=x("../internals/well-known-symbol"),he=oe("species"),re=ie.Array;Te.exports=function(se){var ce;return te(se)&&(ce=se.constructor,ae(ce)&&(ce===re||te(ce.prototype))?ce=void 0:ne(ce)&&(ce=ce[he],ce===null&&(ce=void 0))),ce===void 0?re:ce}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(x,Te,ve){var ie=x("../internals/array-species-constructor");Te.exports=function(te,ae){return new(ie(te))(ae===0?0:ae)}},{"../internals/array-species-constructor":119}],121:[function(x,Te,ve){var ie=x("../internals/an-object"),te=x("../internals/iterator-close");Te.exports=function(ae,ne,oe,he){try{return he?ne(ie(oe)[0],oe[1]):ne(oe)}catch(re){te(ae,"throw",re)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(x,Te,ve){var ie=x("../internals/well-known-symbol"),te=ie("iterator"),ae=!1;try{var ne=0,oe={next:function(){return{done:!!ne++}},return:function(){ae=!0}};oe[te]=function(){return this},Array.from(oe,function(){throw 2})}catch(he){}Te.exports=function(he,re){if(!re&&!ae)return!1;var se=!1;try{var ce={};ce[te]=function(){return{next:function(){return{done:se=!0}}}},he(ce)}catch(fe){}return se}},{"../internals/well-known-symbol":268}],123:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=ie({}.toString),ae=ie("".slice);Te.exports=function(ne){return ae(te(ne),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/to-string-tag-support"),ae=x("../internals/is-callable"),ne=x("../internals/classof-raw"),oe=x("../internals/well-known-symbol"),he=oe("toStringTag"),re=ie.Object,se=ne(function(){return arguments}())=="Arguments",ce=function(fe,pe){try{return fe[pe]}catch(le){}};Te.exports=te?ne:function(fe){var pe,le,Se;return fe===void 0?"Undefined":fe===null?"Null":typeof(le=ce(pe=re(fe),he))=="string"?le:se?ne(pe):(Se=ne(pe))=="Object"&&ae(pe.callee)?"Arguments":Se}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(x,Te,ve){var ie=x("../internals/has-own-property"),te=x("../internals/own-keys"),ae=x("../internals/object-get-own-property-descriptor"),ne=x("../internals/object-define-property");Te.exports=function(oe,he,re){for(var se=te(he),ce=ne.f,fe=ae.f,pe=0;pe<se.length;pe++){var le=se[pe];!ie(oe,le)&&!(re&&ie(re,le))&&ce(oe,le,fe(he,le))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(x,Te,ve){var ie=x("../internals/well-known-symbol"),te=ie("match");Te.exports=function(ae){var ne=/./;try{"/./"[ae](ne)}catch(oe){try{return ne[te]=!1,"/./"[ae](ne)}catch(he){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(x,Te,ve){var ie=x("../internals/fails");Te.exports=!ie(function(){function te(){}return te.prototype.constructor=null,Object.getPrototypeOf(new te)!==te.prototype})},{"../internals/fails":150}],128:[function(x,Te,ve){"use strict";var ie=x("../internals/iterators-core").IteratorPrototype,te=x("../internals/object-create"),ae=x("../internals/create-property-descriptor"),ne=x("../internals/set-to-string-tag"),oe=x("../internals/iterators"),he=function(){return this};Te.exports=function(re,se,ce,fe){var pe=se+" Iterator";return re.prototype=te(ie,{next:ae(+!fe,ce)}),ne(re,pe,!1,!0),oe[pe]=he,re}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/object-define-property"),ae=x("../internals/create-property-descriptor");Te.exports=ie?function(ne,oe,he){return te.f(ne,oe,ae(1,he))}:function(ne,oe,he){return ne[oe]=he,ne}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(x,Te,ve){Te.exports=function(ie,te){return{enumerable:!(ie&1),configurable:!(ie&2),writable:!(ie&4),value:te}}},{}],131:[function(x,Te,ve){"use strict";var ie=x("../internals/to-property-key"),te=x("../internals/object-define-property"),ae=x("../internals/create-property-descriptor");Te.exports=function(ne,oe,he){var re=ie(oe);re in ne?te.f(ne,re,ae(0,he)):ne[re]=he}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/function-call"),ae=x("../internals/is-pure"),ne=x("../internals/function-name"),oe=x("../internals/is-callable"),he=x("../internals/create-iterator-constructor"),re=x("../internals/object-get-prototype-of"),se=x("../internals/object-set-prototype-of"),ce=x("../internals/set-to-string-tag"),fe=x("../internals/create-non-enumerable-property"),pe=x("../internals/redefine"),le=x("../internals/well-known-symbol"),Se=x("../internals/iterators"),xe=x("../internals/iterators-core"),ge=ne.PROPER,Me=ne.CONFIGURABLE,ye=xe.IteratorPrototype,be=xe.BUGGY_SAFARI_ITERATORS,Fe=le("iterator"),ke="keys",De="values",Le="entries",Ie=function(){return this};Te.exports=function(Be,Ue,_e,We,Ze,et,it){he(_e,Ue,We);var pt=function(vt){if(vt===Ze&&st)return st;if(!be&&vt in lt)return lt[vt];switch(vt){case ke:return function(){return new _e(this,vt)};case De:return function(){return new _e(this,vt)};case Le:return function(){return new _e(this,vt)}}return function(){return new _e(this)}},Ge=Ue+" Iterator",Xe=!1,lt=Be.prototype,dt=lt[Fe]||lt["@@iterator"]||Ze&<[Ze],st=!be&&dt||pt(Ze),nt=Ue=="Array"&<.entries||dt,rt,at,gt;if(nt&&(rt=re(nt.call(new Be)),rt!==Object.prototype&&rt.next&&(!ae&&re(rt)!==ye&&(se?se(rt,ye):oe(rt[Fe])||pe(rt,Fe,Ie)),ce(rt,Ge,!0,!0),ae&&(Se[Ge]=Ie))),ge&&Ze==De&&dt&&dt.name!==De&&(!ae&&Me?fe(lt,"name",De):(Xe=!0,st=function(){return te(dt,this)})),Ze)if(at={values:pt(De),keys:et?st:pt(ke),entries:pt(Le)},it)for(gt in at)(be||Xe||!(gt in lt))&&pe(lt,gt,at[gt]);else ie({target:Ue,proto:!0,forced:be||Xe},at);return(!ae||it)&<[Fe]!==st&&pe(lt,Fe,st,{name:Ze}),Se[Ue]=st,at}},{"../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(x,Te,ve){var ie=x("../internals/path"),te=x("../internals/has-own-property"),ae=x("../internals/well-known-symbol-wrapped"),ne=x("../internals/object-define-property").f;Te.exports=function(oe){var he=ie.Symbol||(ie.Symbol={});te(he,oe)||ne(he,oe,{value:ae.f(oe)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(x,Te,ve){var ie=x("../internals/fails");Te.exports=!ie(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-object"),ae=ie.document,ne=te(ae)&&te(ae.createElement);Te.exports=function(oe){return ne?ae.createElement(oe):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(x,Te,ve){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(x,Te,ve){var ie=x("../internals/document-create-element"),te=ie("span").classList,ae=te&&te.constructor&&te.constructor.prototype;Te.exports=ae===Object.prototype?void 0:ae},{"../internals/document-create-element":135}],138:[function(x,Te,ve){var ie=x("../internals/engine-user-agent"),te=ie.match(/firefox\/(\d+)/i);Te.exports=!!te&&+te[1]},{"../internals/engine-user-agent":145}],139:[function(x,Te,ve){Te.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(x,Te,ve){var ie=x("../internals/engine-user-agent");Te.exports=/MSIE|Trident/.test(ie)},{"../internals/engine-user-agent":145}],141:[function(x,Te,ve){var ie=x("../internals/engine-user-agent"),te=x("../internals/global");Te.exports=/ipad|iphone|ipod/i.test(ie)&&te.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(x,Te,ve){var ie=x("../internals/engine-user-agent");Te.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ie)},{"../internals/engine-user-agent":145}],143:[function(x,Te,ve){var ie=x("../internals/classof-raw"),te=x("../internals/global");Te.exports=ie(te.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(x,Te,ve){var ie=x("../internals/engine-user-agent");Te.exports=/web0s(?!.*chrome)/i.test(ie)},{"../internals/engine-user-agent":145}],145:[function(x,Te,ve){var ie=x("../internals/get-built-in");Te.exports=ie("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/engine-user-agent"),ae=ie.process,ne=ie.Deno,oe=ae&&ae.versions||ne&&ne.version,he=oe&&oe.v8,re,se;he&&(re=he.split("."),se=re[0]>0&&re[0]<4?1:+(re[0]+re[1])),!se&&te&&(re=te.match(/Edge\/(\d+)/),(!re||re[1]>=74)&&(re=te.match(/Chrome\/(\d+)/),re&&(se=+re[1]))),Te.exports=se},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(x,Te,ve){var ie=x("../internals/engine-user-agent"),te=ie.match(/AppleWebKit\/(\d+)\./);Te.exports=!!te&&+te[1]},{"../internals/engine-user-agent":145}],148:[function(x,Te,ve){Te.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/object-get-own-property-descriptor").f,ae=x("../internals/create-non-enumerable-property"),ne=x("../internals/redefine"),oe=x("../internals/set-global"),he=x("../internals/copy-constructor-properties"),re=x("../internals/is-forced");Te.exports=function(se,ce){var fe=se.target,pe=se.global,le=se.stat,Se,xe,ge,Me,ye,be;if(pe?xe=ie:le?xe=ie[fe]||oe(fe,{}):xe=(ie[fe]||{}).prototype,xe)for(ge in ce){if(ye=ce[ge],se.noTargetGet?(be=te(xe,ge),Me=be&&be.value):Me=xe[ge],Se=re(pe?ge:fe+(le?".":"#")+ge,se.forced),!Se&&Me!==void 0){if(typeof ye==typeof Me)continue;he(ye,Me)}(se.sham||Me&&Me.sham)&&ae(ye,"sham",!0),ne(xe,ge,ye,se)}}},{"../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(x,Te,ve){Te.exports=function(ie){try{return!!ie()}catch(te){return!0}}},{}],151:[function(x,Te,ve){"use strict";x("../modules/es.regexp.exec");var ie=x("../internals/function-uncurry-this"),te=x("../internals/redefine"),ae=x("../internals/regexp-exec"),ne=x("../internals/fails"),oe=x("../internals/well-known-symbol"),he=x("../internals/create-non-enumerable-property"),re=oe("species"),se=RegExp.prototype;Te.exports=function(ce,fe,pe,le){var Se=oe(ce),xe=!ne(function(){var be={};return be[Se]=function(){return 7},""[ce](be)!=7}),ge=xe&&!ne(function(){var be=!1,Fe=/a/;return ce==="split"&&(Fe={},Fe.constructor={},Fe.constructor[re]=function(){return Fe},Fe.flags="",Fe[Se]=/./[Se]),Fe.exec=function(){return be=!0,null},Fe[Se](""),!be});if(!xe||!ge||pe){var Me=ie(/./[Se]),ye=fe(Se,""[ce],function(be,Fe,ke,De,Le){var Ie=ie(be),Be=Fe.exec;return Be===ae||Be===se.exec?xe&&!Le?{done:!0,value:Me(Fe,ke,De)}:{done:!0,value:Ie(ke,Fe,De)}:{done:!1}});te(String.prototype,ce,ye[0]),te(se,Se,ye[1])}le&&he(se[Se],"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(x,Te,ve){var ie=x("../internals/function-bind-native"),te=Function.prototype,ae=te.apply,ne=te.call;Te.exports=typeof Reflect=="object"&&Reflect.apply||(ie?ne.bind(ae):function(){return ne.apply(ae,arguments)})},{"../internals/function-bind-native":154}],153:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/a-callable"),ae=x("../internals/function-bind-native"),ne=ie(ie.bind);Te.exports=function(oe,he){return te(oe),he===void 0?oe:ae?ne(oe,he):function(){return oe.apply(he,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(x,Te,ve){var ie=x("../internals/fails");Te.exports=!ie(function(){var te=function(){}.bind();return typeof te!="function"||te.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(x,Te,ve){var ie=x("../internals/function-bind-native"),te=Function.prototype.call;Te.exports=ie?te.bind(te):function(){return te.apply(te,arguments)}},{"../internals/function-bind-native":154}],156:[function(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/has-own-property"),ae=Function.prototype,ne=ie&&Object.getOwnPropertyDescriptor,oe=te(ae,"name"),he=oe&&function(){}.name==="something",re=oe&&(!ie||ie&&ne(ae,"name").configurable);Te.exports={EXISTS:oe,PROPER:he,CONFIGURABLE:re}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(x,Te,ve){var ie=x("../internals/function-bind-native"),te=Function.prototype,ae=te.bind,ne=te.call,oe=ie&&ae.bind(ne,ne);Te.exports=ie?function(he){return he&&oe(he)}:function(he){return he&&function(){return ne.apply(he,arguments)}}},{"../internals/function-bind-native":154}],158:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-callable"),ae=function(ne){return te(ne)?ne:void 0};Te.exports=function(ne,oe){return arguments.length<2?ae(ie[ne]):ie[ne]&&ie[ne][oe]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(x,Te,ve){var ie=x("../internals/classof"),te=x("../internals/get-method"),ae=x("../internals/iterators"),ne=x("../internals/well-known-symbol"),oe=ne("iterator");Te.exports=function(he){if(he!=null)return te(he,oe)||te(he,"@@iterator")||ae[ie(he)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/function-call"),ae=x("../internals/a-callable"),ne=x("../internals/an-object"),oe=x("../internals/try-to-string"),he=x("../internals/get-iterator-method"),re=ie.TypeError;Te.exports=function(se,ce){var fe=arguments.length<2?he(se):ce;if(ae(fe))return ne(te(fe,se));throw re(oe(se)+" 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(x,Te,ve){var ie=x("../internals/a-callable");Te.exports=function(te,ae){var ne=te[ae];return ne==null?void 0:ie(ne)}},{"../internals/a-callable":95}],162:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/to-object"),ae=Math.floor,ne=ie("".charAt),oe=ie("".replace),he=ie("".slice),re=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,se=/\$([$&'`]|\d{1,2})/g;Te.exports=function(ce,fe,pe,le,Se,xe){var ge=pe+ce.length,Me=le.length,ye=se;return Se!==void 0&&(Se=te(Se),ye=re),oe(xe,ye,function(be,Fe){var ke;switch(ne(Fe,0)){case"$":return"$";case"&":return ce;case"`":return he(fe,0,pe);case"'":return he(fe,ge);case"<":ke=Se[he(Fe,1,-1)];break;default:var De=+Fe;if(De===0)return be;if(De>Me){var Le=ae(De/10);return Le===0?be:Le<=Me?le[Le-1]===void 0?ne(Fe,1):le[Le-1]+ne(Fe,1):be}ke=le[De-1]}return ke===void 0?"":ke})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(x,Te,ve){(function(ie){(function(){var te=function(ae){return ae&&ae.Math==Math&&ae};Te.exports=te(typeof globalThis=="object"&&globalThis)||te(typeof window=="object"&&window)||te(typeof self=="object"&&self)||te(typeof ie=="object"&&ie)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/to-object"),ae=ie({}.hasOwnProperty);Te.exports=Object.hasOwn||function(oe,he){return ae(te(oe),he)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(x,Te,ve){Te.exports={}},{}],166:[function(x,Te,ve){var ie=x("../internals/global");Te.exports=function(te,ae){var ne=ie.console;ne&&ne.error&&(arguments.length==1?ne.error(te):ne.error(te,ae))}},{"../internals/global":163}],167:[function(x,Te,ve){var ie=x("../internals/get-built-in");Te.exports=ie("document","documentElement")},{"../internals/get-built-in":158}],168:[function(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/fails"),ae=x("../internals/document-create-element");Te.exports=!ie&&!te(function(){return Object.defineProperty(ae("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(x,Te,ve){var ie=x("../internals/global"),te=ie.Array,ae=Math.abs,ne=Math.pow,oe=Math.floor,he=Math.log,re=Math.LN2,se=function(fe,pe,le){var Se=te(le),xe=le*8-pe-1,ge=(1<<xe)-1,Me=ge>>1,ye=pe===23?ne(2,-24)-ne(2,-77):0,be=fe<0||fe===0&&1/fe<0?1:0,Fe=0,ke,De,Le;for(fe=ae(fe),fe!=fe||fe===1/0?(De=fe!=fe?1:0,ke=ge):(ke=oe(he(fe)/re),Le=ne(2,-ke),fe*Le<1&&(ke--,Le*=2),ke+Me>=1?fe+=ye/Le:fe+=ye*ne(2,1-Me),fe*Le>=2&&(ke++,Le/=2),ke+Me>=ge?(De=0,ke=ge):ke+Me>=1?(De=(fe*Le-1)*ne(2,pe),ke=ke+Me):(De=fe*ne(2,Me-1)*ne(2,pe),ke=0));pe>=8;)Se[Fe++]=De&255,De/=256,pe-=8;for(ke=ke<<pe|De,xe+=pe;xe>0;)Se[Fe++]=ke&255,ke/=256,xe-=8;return Se[--Fe]|=be*128,Se},ce=function(fe,pe){var le=fe.length,Se=le*8-pe-1,xe=(1<<Se)-1,ge=xe>>1,Me=Se-7,ye=le-1,be=fe[ye--],Fe=be&127,ke;for(be>>=7;Me>0;)Fe=Fe*256+fe[ye--],Me-=8;for(ke=Fe&(1<<-Me)-1,Fe>>=-Me,Me+=pe;Me>0;)ke=ke*256+fe[ye--],Me-=8;if(Fe===0)Fe=1-ge;else{if(Fe===xe)return ke?NaN:be?-1/0:1/0;ke=ke+ne(2,pe),Fe=Fe-ge}return(be?-1:1)*ke*ne(2,Fe-pe)};Te.exports={pack:se,unpack:ce}},{"../internals/global":163}],170:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/function-uncurry-this"),ae=x("../internals/fails"),ne=x("../internals/classof-raw"),oe=ie.Object,he=te("".split);Te.exports=ae(function(){return!oe("z").propertyIsEnumerable(0)})?function(re){return ne(re)=="String"?he(re,""):oe(re)}:oe},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(x,Te,ve){var ie=x("../internals/is-callable"),te=x("../internals/is-object"),ae=x("../internals/object-set-prototype-of");Te.exports=function(ne,oe,he){var re,se;return ae&&ie(re=oe.constructor)&&re!==he&&te(se=re.prototype)&&se!==he.prototype&&ae(ne,se),ne}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/is-callable"),ae=x("../internals/shared-store"),ne=ie(Function.toString);te(ae.inspectSource)||(ae.inspectSource=function(oe){return ne(oe)}),Te.exports=ae.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(x,Te,ve){var ie=x("../internals/native-weak-map"),te=x("../internals/global"),ae=x("../internals/function-uncurry-this"),ne=x("../internals/is-object"),oe=x("../internals/create-non-enumerable-property"),he=x("../internals/has-own-property"),re=x("../internals/shared-store"),se=x("../internals/shared-key"),ce=x("../internals/hidden-keys"),fe="Object already initialized",pe=te.TypeError,le=te.WeakMap,Se,xe,ge,Me=function(Ie){return ge(Ie)?xe(Ie):Se(Ie,{})},ye=function(Ie){return function(Be){var Ue;if(!ne(Be)||(Ue=xe(Be)).type!==Ie)throw pe("Incompatible receiver, "+Ie+" required");return Ue}};if(ie||re.state){var be=re.state||(re.state=new le),Fe=ae(be.get),ke=ae(be.has),De=ae(be.set);Se=function(Ie,Be){if(ke(be,Ie))throw new pe(fe);return Be.facade=Ie,De(be,Ie,Be),Be},xe=function(Ie){return Fe(be,Ie)||{}},ge=function(Ie){return ke(be,Ie)}}else{var Le=se("state");ce[Le]=!0,Se=function(Ie,Be){if(he(Ie,Le))throw new pe(fe);return Be.facade=Ie,oe(Ie,Le,Be),Be},xe=function(Ie){return he(Ie,Le)?Ie[Le]:{}},ge=function(Ie){return he(Ie,Le)}}Te.exports={set:Se,get:xe,has:ge,enforce:Me,getterFor:ye}},{"../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(x,Te,ve){var ie=x("../internals/well-known-symbol"),te=x("../internals/iterators"),ae=ie("iterator"),ne=Array.prototype;Te.exports=function(oe){return oe!==void 0&&(te.Array===oe||ne[ae]===oe)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(x,Te,ve){var ie=x("../internals/classof-raw");Te.exports=Array.isArray||function(ae){return ie(ae)=="Array"}},{"../internals/classof-raw":123}],176:[function(x,Te,ve){Te.exports=function(ie){return typeof ie=="function"}},{}],177:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/fails"),ae=x("../internals/is-callable"),ne=x("../internals/classof"),oe=x("../internals/get-built-in"),he=x("../internals/inspect-source"),re=function(){},se=[],ce=oe("Reflect","construct"),fe=/^\s*(?:class|function)\b/,pe=ie(fe.exec),le=!fe.exec(re),Se=function(Me){if(!ae(Me))return!1;try{return ce(re,se,Me),!0}catch(ye){return!1}},xe=function(Me){if(!ae(Me))return!1;switch(ne(Me)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return le||!!pe(fe,he(Me))}catch(ye){return!0}};xe.sham=!0,Te.exports=!ce||te(function(){var ge;return Se(Se.call)||!Se(Object)||!Se(function(){ge=!0})||ge})?xe:Se},{"../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(x,Te,ve){var ie=x("../internals/fails"),te=x("../internals/is-callable"),ae=/#|\.prototype\./,ne=function(ce,fe){var pe=he[oe(ce)];return pe==se?!0:pe==re?!1:te(fe)?ie(fe):!!fe},oe=ne.normalize=function(ce){return String(ce).replace(ae,".").toLowerCase()},he=ne.data={},re=ne.NATIVE="N",se=ne.POLYFILL="P";Te.exports=ne},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(x,Te,ve){var ie=x("../internals/is-object"),te=Math.floor;Te.exports=Number.isInteger||function(ne){return!ie(ne)&&isFinite(ne)&&te(ne)===ne}},{"../internals/is-object":180}],180:[function(x,Te,ve){var ie=x("../internals/is-callable");Te.exports=function(te){return typeof te=="object"?te!==null:ie(te)}},{"../internals/is-callable":176}],181:[function(x,Te,ve){Te.exports=!1},{}],182:[function(x,Te,ve){var ie=x("../internals/is-object"),te=x("../internals/classof-raw"),ae=x("../internals/well-known-symbol"),ne=ae("match");Te.exports=function(oe){var he;return ie(oe)&&((he=oe[ne])!==void 0?!!he:te(oe)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/get-built-in"),ae=x("../internals/is-callable"),ne=x("../internals/object-is-prototype-of"),oe=x("../internals/use-symbol-as-uid"),he=ie.Object;Te.exports=oe?function(re){return typeof re=="symbol"}:function(re){var se=te("Symbol");return ae(se)&&ne(se.prototype,he(re))}},{"../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(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/function-bind-context"),ae=x("../internals/function-call"),ne=x("../internals/an-object"),oe=x("../internals/try-to-string"),he=x("../internals/is-array-iterator-method"),re=x("../internals/length-of-array-like"),se=x("../internals/object-is-prototype-of"),ce=x("../internals/get-iterator"),fe=x("../internals/get-iterator-method"),pe=x("../internals/iterator-close"),le=ie.TypeError,Se=function(ge,Me){this.stopped=ge,this.result=Me},xe=Se.prototype;Te.exports=function(ge,Me,ye){var be=ye&&ye.that,Fe=!!(ye&&ye.AS_ENTRIES),ke=!!(ye&&ye.IS_ITERATOR),De=!!(ye&&ye.INTERRUPTED),Le=te(Me,be),Ie,Be,Ue,_e,We,Ze,et,it=function(Ge){return Ie&&pe(Ie,"normal",Ge),new Se(!0,Ge)},pt=function(Ge){return Fe?(ne(Ge),De?Le(Ge[0],Ge[1],it):Le(Ge[0],Ge[1])):De?Le(Ge,it):Le(Ge)};if(ke)Ie=ge;else{if(Be=fe(ge),!Be)throw le(oe(ge)+" is not iterable");if(he(Be)){for(Ue=0,_e=re(ge);_e>Ue;Ue++)if(We=pt(ge[Ue]),We&&se(xe,We))return We;return new Se(!1)}Ie=ce(ge,Be)}for(Ze=Ie.next;!(et=ae(Ze,Ie)).done;){try{We=pt(et.value)}catch(Ge){pe(Ie,"throw",Ge)}if(typeof We=="object"&&We&&se(xe,We))return We}return new Se(!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(x,Te,ve){var ie=x("../internals/function-call"),te=x("../internals/an-object"),ae=x("../internals/get-method");Te.exports=function(ne,oe,he){var re,se;te(ne);try{if(re=ae(ne,"return"),!re){if(oe==="throw")throw he;return he}re=ie(re,ne)}catch(ce){se=!0,re=ce}if(oe==="throw")throw he;if(se)throw re;return te(re),he}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(x,Te,ve){"use strict";var ie=x("../internals/fails"),te=x("../internals/is-callable"),ae=x("../internals/object-create"),ne=x("../internals/object-get-prototype-of"),oe=x("../internals/redefine"),he=x("../internals/well-known-symbol"),re=x("../internals/is-pure"),se=he("iterator"),ce=!1,fe,pe,le;[].keys&&(le=[].keys(),"next"in le?(pe=ne(ne(le)),pe!==Object.prototype&&(fe=pe)):ce=!0);var Se=fe==null||ie(function(){var xe={};return fe[se].call(xe)!==xe});Se?fe={}:re&&(fe=ae(fe)),te(fe[se])||oe(fe,se,function(){return this}),Te.exports={IteratorPrototype:fe,BUGGY_SAFARI_ITERATORS:ce}},{"../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(x,Te,ve){arguments[4][165][0].apply(ve,arguments)},{dup:165}],188:[function(x,Te,ve){var ie=x("../internals/to-length");Te.exports=function(te){return ie(te.length)}},{"../internals/to-length":249}],189:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/function-bind-context"),ae=x("../internals/object-get-own-property-descriptor").f,ne=x("../internals/task").set,oe=x("../internals/engine-is-ios"),he=x("../internals/engine-is-ios-pebble"),re=x("../internals/engine-is-webos-webkit"),se=x("../internals/engine-is-node"),ce=ie.MutationObserver||ie.WebKitMutationObserver,fe=ie.document,pe=ie.process,le=ie.Promise,Se=ae(ie,"queueMicrotask"),xe=Se&&Se.value,ge,Me,ye,be,Fe,ke,De,Le;xe||(ge=function(){var Ie,Be;for(se&&(Ie=pe.domain)&&Ie.exit();Me;){Be=Me.fn,Me=Me.next;try{Be()}catch(Ue){throw Me?be():ye=void 0,Ue}}ye=void 0,Ie&&Ie.enter()},!oe&&!se&&!re&&ce&&fe?(Fe=!0,ke=fe.createTextNode(""),new ce(ge).observe(ke,{characterData:!0}),be=function(){ke.data=Fe=!Fe}):!he&&le&&le.resolve?(De=le.resolve(void 0),De.constructor=le,Le=te(De.then,De),be=function(){Le(ge)}):se?be=function(){pe.nextTick(ge)}:(ne=te(ne,ie),be=function(){ne(ge)})),Te.exports=xe||function(Ie){var Be={fn:Ie,next:void 0};ye&&(ye.next=Be),Me||(Me=Be,be()),ye=Be}},{"../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(x,Te,ve){var ie=x("../internals/native-symbol");Te.exports=ie&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(x,Te,ve){var ie=x("../internals/engine-v8-version"),te=x("../internals/fails");Te.exports=!!Object.getOwnPropertySymbols&&!te(function(){var ae=Symbol();return!String(ae)||!(Object(ae)instanceof Symbol)||!Symbol.sham&&ie&&ie<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-callable"),ae=x("../internals/inspect-source"),ne=ie.WeakMap;Te.exports=te(ne)&&/native code/.test(ae(ne))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(x,Te,ve){"use strict";var ie=x("../internals/a-callable"),te=function(ae){var ne,oe;this.promise=new ae(function(he,re){if(ne!==void 0||oe!==void 0)throw TypeError("Bad Promise constructor");ne=he,oe=re}),this.resolve=ie(ne),this.reject=ie(oe)};Te.exports.f=function(ae){return new te(ae)}},{"../internals/a-callable":95}],194:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-regexp"),ae=ie.TypeError;Te.exports=function(ne){if(te(ne))throw ae("The method doesn't accept regular expressions");return ne}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(x,Te,ve){"use strict";var ie=x("../internals/descriptors"),te=x("../internals/function-uncurry-this"),ae=x("../internals/function-call"),ne=x("../internals/fails"),oe=x("../internals/object-keys"),he=x("../internals/object-get-own-property-symbols"),re=x("../internals/object-property-is-enumerable"),se=x("../internals/to-object"),ce=x("../internals/indexed-object"),fe=Object.assign,pe=Object.defineProperty,le=te([].concat);Te.exports=!fe||ne(function(){if(ie&&fe({b:1},fe(pe({},"a",{enumerable:!0,get:function(){pe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Se={},xe={},ge=Symbol(),Me="abcdefghijklmnopqrst";return Se[ge]=7,Me.split("").forEach(function(ye){xe[ye]=ye}),fe({},Se)[ge]!=7||oe(fe({},xe)).join("")!=Me})?function(xe,ge){for(var Me=se(xe),ye=arguments.length,be=1,Fe=he.f,ke=re.f;ye>be;)for(var De=ce(arguments[be++]),Le=Fe?le(oe(De),Fe(De)):oe(De),Ie=Le.length,Be=0,Ue;Ie>Be;)Ue=Le[Be++],(!ie||ae(ke,De,Ue))&&(Me[Ue]=De[Ue]);return Me}:fe},{"../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(x,Te,ve){var ie=x("../internals/an-object"),te=x("../internals/object-define-properties"),ae=x("../internals/enum-bug-keys"),ne=x("../internals/hidden-keys"),oe=x("../internals/html"),he=x("../internals/document-create-element"),re=x("../internals/shared-key"),se=">",ce="<",fe="prototype",pe="script",le=re("IE_PROTO"),Se=function(){},xe=function(Fe){return ce+pe+se+Fe+ce+"/"+pe+se},ge=function(Fe){Fe.write(xe("")),Fe.close();var ke=Fe.parentWindow.Object;return Fe=null,ke},Me=function(){var Fe=he("iframe"),ke="java"+pe+":",De;return Fe.style.display="none",oe.appendChild(Fe),Fe.src=String(ke),De=Fe.contentWindow.document,De.open(),De.write(xe("document.F=Object")),De.close(),De.F},ye,be=function(){try{ye=new ActiveXObject("htmlfile")}catch(ke){}be=typeof document!="undefined"?document.domain&&ye?ge(ye):Me():ge(ye);for(var Fe=ae.length;Fe--;)delete be[fe][ae[Fe]];return be()};ne[le]=!0,Te.exports=Object.create||function(ke,De){var Le;return ke!==null?(Se[fe]=ie(ke),Le=new Se,Se[fe]=null,Le[le]=ke):Le=be(),De===void 0?Le:te.f(Le,De)}},{"../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(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/v8-prototype-define-bug"),ae=x("../internals/object-define-property"),ne=x("../internals/an-object"),oe=x("../internals/to-indexed-object"),he=x("../internals/object-keys");ve.f=ie&&!te?Object.defineProperties:function(se,ce){ne(se);for(var fe=oe(ce),pe=he(ce),le=pe.length,Se=0,xe;le>Se;)ae.f(se,xe=pe[Se++],fe[xe]);return se}},{"../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(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/descriptors"),ae=x("../internals/ie8-dom-define"),ne=x("../internals/v8-prototype-define-bug"),oe=x("../internals/an-object"),he=x("../internals/to-property-key"),re=ie.TypeError,se=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,fe="enumerable",pe="configurable",le="writable";ve.f=te?ne?function(xe,ge,Me){if(oe(xe),ge=he(ge),oe(Me),typeof xe=="function"&&ge==="prototype"&&"value"in Me&&le in Me&&!Me[le]){var ye=ce(xe,ge);ye&&ye[le]&&(xe[ge]=Me.value,Me={configurable:pe in Me?Me[pe]:ye[pe],enumerable:fe in Me?Me[fe]:ye[fe],writable:!1})}return se(xe,ge,Me)}:se:function(xe,ge,Me){if(oe(xe),ge=he(ge),oe(Me),ae)try{return se(xe,ge,Me)}catch(ye){}if("get"in Me||"set"in Me)throw re("Accessors not supported");return"value"in Me&&(xe[ge]=Me.value),xe}},{"../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(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/function-call"),ae=x("../internals/object-property-is-enumerable"),ne=x("../internals/create-property-descriptor"),oe=x("../internals/to-indexed-object"),he=x("../internals/to-property-key"),re=x("../internals/has-own-property"),se=x("../internals/ie8-dom-define"),ce=Object.getOwnPropertyDescriptor;ve.f=ie?ce:function(pe,le){if(pe=oe(pe),le=he(le),se)try{return ce(pe,le)}catch(Se){}if(re(pe,le))return ne(!te(ae.f,pe,le),pe[le])}},{"../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(x,Te,ve){var ie=x("../internals/classof-raw"),te=x("../internals/to-indexed-object"),ae=x("../internals/object-get-own-property-names").f,ne=x("../internals/array-slice-simple"),oe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],he=function(re){try{return ae(re)}catch(se){return ne(oe)}};Te.exports.f=function(se){return oe&&ie(se)=="Window"?he(se):ae(te(se))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(x,Te,ve){var ie=x("../internals/object-keys-internal"),te=x("../internals/enum-bug-keys"),ae=te.concat("length","prototype");ve.f=Object.getOwnPropertyNames||function(oe){return ie(oe,ae)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(x,Te,ve){ve.f=Object.getOwnPropertySymbols},{}],203:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/has-own-property"),ae=x("../internals/is-callable"),ne=x("../internals/to-object"),oe=x("../internals/shared-key"),he=x("../internals/correct-prototype-getter"),re=oe("IE_PROTO"),se=ie.Object,ce=se.prototype;Te.exports=he?se.getPrototypeOf:function(fe){var pe=ne(fe);if(te(pe,re))return pe[re];var le=pe.constructor;return ae(le)&&pe instanceof le?le.prototype:pe instanceof se?ce: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(x,Te,ve){var ie=x("../internals/function-uncurry-this");Te.exports=ie({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/has-own-property"),ae=x("../internals/to-indexed-object"),ne=x("../internals/array-includes").indexOf,oe=x("../internals/hidden-keys"),he=ie([].push);Te.exports=function(re,se){var ce=ae(re),fe=0,pe=[],le;for(le in ce)!te(oe,le)&&te(ce,le)&&he(pe,le);for(;se.length>fe;)te(ce,le=se[fe++])&&(~ne(pe,le)||he(pe,le));return pe}},{"../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(x,Te,ve){var ie=x("../internals/object-keys-internal"),te=x("../internals/enum-bug-keys");Te.exports=Object.keys||function(ne){return ie(ne,te)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(x,Te,ve){"use strict";var ie={}.propertyIsEnumerable,te=Object.getOwnPropertyDescriptor,ae=te&&!ie.call({1:2},1);ve.f=ae?function(oe){var he=te(this,oe);return!!he&&he.enumerable}:ie},{}],208:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/an-object"),ae=x("../internals/a-possible-prototype");Te.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ne=!1,oe={},he;try{he=ie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),he(oe,[]),ne=oe instanceof Array}catch(re){}return function(se,ce){return te(se),ae(ce),ne?he(se,ce):se.__proto__=ce,se}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/function-uncurry-this"),ae=x("../internals/object-keys"),ne=x("../internals/to-indexed-object"),oe=x("../internals/object-property-is-enumerable").f,he=te(oe),re=te([].push),se=function(ce){return function(fe){for(var pe=ne(fe),le=ae(pe),Se=le.length,xe=0,ge=[],Me;Se>xe;)Me=le[xe++],(!ie||he(pe,Me))&&re(ge,ce?[Me,pe[Me]]:pe[Me]);return ge}};Te.exports={entries:se(!0),values:se(!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(x,Te,ve){"use strict";var ie=x("../internals/to-string-tag-support"),te=x("../internals/classof");Te.exports=ie?{}.toString:function(){return"[object "+te(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/function-call"),ae=x("../internals/is-callable"),ne=x("../internals/is-object"),oe=ie.TypeError;Te.exports=function(he,re){var se,ce;if(re==="string"&&ae(se=he.toString)&&!ne(ce=te(se,he))||ae(se=he.valueOf)&&!ne(ce=te(se,he))||re!=="string"&&ae(se=he.toString)&&!ne(ce=te(se,he)))return ce;throw oe("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(x,Te,ve){var ie=x("../internals/get-built-in"),te=x("../internals/function-uncurry-this"),ae=x("../internals/object-get-own-property-names"),ne=x("../internals/object-get-own-property-symbols"),oe=x("../internals/an-object"),he=te([].concat);Te.exports=ie("Reflect","ownKeys")||function(se){var ce=ae.f(oe(se)),fe=ne.f;return fe?he(ce,fe(se)):ce}},{"../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(x,Te,ve){var ie=x("../internals/global");Te.exports=ie},{"../internals/global":163}],214:[function(x,Te,ve){Te.exports=function(ie){try{return{error:!1,value:ie()}}catch(te){return{error:!0,value:te}}}},{}],215:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/promise-native-constructor"),ae=x("../internals/is-callable"),ne=x("../internals/is-forced"),oe=x("../internals/inspect-source"),he=x("../internals/well-known-symbol"),re=x("../internals/engine-is-browser"),se=x("../internals/is-pure"),ce=x("../internals/engine-v8-version"),fe=te&&te.prototype,pe=he("species"),le=!1,Se=ae(ie.PromiseRejectionEvent),xe=ne("Promise",function(){var ge=oe(te),Me=ge!==String(te);if(!Me&&ce===66||se&&!(fe.catch&&fe.finally))return!0;if(ce>=51&&/native code/.test(ge))return!1;var ye=new te(function(ke){ke(1)}),be=function(ke){ke(function(){},function(){})},Fe=ye.constructor={};return Fe[pe]=be,le=ye.then(function(){})instanceof be,le?!Me&&re&&!Se:!0});Te.exports={CONSTRUCTOR:xe,REJECTION_EVENT:Se,SUBCLASSING:le}},{"../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(x,Te,ve){var ie=x("../internals/global");Te.exports=ie.Promise},{"../internals/global":163}],217:[function(x,Te,ve){var ie=x("../internals/an-object"),te=x("../internals/is-object"),ae=x("../internals/new-promise-capability");Te.exports=function(ne,oe){if(ie(ne),te(oe)&&oe.constructor===ne)return oe;var he=ae.f(ne),re=he.resolve;return re(oe),he.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(x,Te,ve){var ie=x("../internals/promise-native-constructor"),te=x("../internals/check-correctness-of-iteration"),ae=x("../internals/promise-constructor-detection").CONSTRUCTOR;Te.exports=ae||!te(function(ne){ie.all(ne).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(x,Te,ve){var ie=x("../internals/object-define-property").f;Te.exports=function(te,ae,ne){ne in te||ie(te,ne,{configurable:!0,get:function(){return ae[ne]},set:function(oe){ae[ne]=oe}})}},{"../internals/object-define-property":198}],220:[function(x,Te,ve){var ie=function(){this.head=null,this.tail=null};ie.prototype={add:function(te){var ae={item:te,next:null};this.head?this.tail.next=ae:this.head=ae,this.tail=ae},get:function(){var te=this.head;if(te)return this.head=te.next,this.tail===te&&(this.tail=null),te.item}},Te.exports=ie},{}],221:[function(x,Te,ve){var ie=x("../internals/redefine");Te.exports=function(te,ae,ne){for(var oe in ae)ie(te,oe,ae[oe],ne);return te}},{"../internals/redefine":222}],222:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/is-callable"),ae=x("../internals/has-own-property"),ne=x("../internals/create-non-enumerable-property"),oe=x("../internals/set-global"),he=x("../internals/inspect-source"),re=x("../internals/internal-state"),se=x("../internals/function-name").CONFIGURABLE,ce=re.get,fe=re.enforce,pe=String(String).split("String");(Te.exports=function(le,Se,xe,ge){var Me=ge?!!ge.unsafe:!1,ye=ge?!!ge.enumerable:!1,be=ge?!!ge.noTargetGet:!1,Fe=ge&&ge.name!==void 0?ge.name:Se,ke;if(te(xe)&&(String(Fe).slice(0,7)==="Symbol("&&(Fe="["+String(Fe).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ae(xe,"name")||se&&xe.name!==Fe)&&ne(xe,"name",Fe),ke=fe(xe),ke.source||(ke.source=pe.join(typeof Fe=="string"?Fe:""))),le===ie){ye?le[Se]=xe:oe(Se,xe);return}else Me?!be&&le[Se]&&(ye=!0):delete le[Se];ye?le[Se]=xe:ne(le,Se,xe)})(Function.prototype,"toString",function(){return te(this)&&ce(this).source||he(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(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/function-call"),ae=x("../internals/an-object"),ne=x("../internals/is-callable"),oe=x("../internals/classof-raw"),he=x("../internals/regexp-exec"),re=ie.TypeError;Te.exports=function(se,ce){var fe=se.exec;if(ne(fe)){var pe=te(fe,se,ce);return pe!==null&&ae(pe),pe}if(oe(se)==="RegExp")return te(he,se,ce);throw re("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(x,Te,ve){"use strict";var ie=x("../internals/function-call"),te=x("../internals/function-uncurry-this"),ae=x("../internals/to-string"),ne=x("../internals/regexp-flags"),oe=x("../internals/regexp-sticky-helpers"),he=x("../internals/shared"),re=x("../internals/object-create"),se=x("../internals/internal-state").get,ce=x("../internals/regexp-unsupported-dot-all"),fe=x("../internals/regexp-unsupported-ncg"),pe=he("native-string-replace",String.prototype.replace),le=RegExp.prototype.exec,Se=le,xe=te("".charAt),ge=te("".indexOf),Me=te("".replace),ye=te("".slice),be=function(){var Le=/a/,Ie=/b*/g;return ie(le,Le,"a"),ie(le,Ie,"a"),Le.lastIndex!==0||Ie.lastIndex!==0}(),Fe=oe.BROKEN_CARET,ke=/()??/.exec("")[1]!==void 0,De=be||ke||Fe||ce||fe;De&&(Se=function(Ie){var Be=this,Ue=se(Be),_e=ae(Ie),We=Ue.raw,Ze,et,it,pt,Ge,Xe,lt;if(We)return We.lastIndex=Be.lastIndex,Ze=ie(Se,We,_e),Be.lastIndex=We.lastIndex,Ze;var dt=Ue.groups,st=Fe&&Be.sticky,nt=ie(ne,Be),rt=Be.source,at=0,gt=_e;if(st&&(nt=Me(nt,"y",""),ge(nt,"g")===-1&&(nt+="g"),gt=ye(_e,Be.lastIndex),Be.lastIndex>0&&(!Be.multiline||Be.multiline&&xe(_e,Be.lastIndex-1)!==`
|
|
|
`)&&(rt="(?: "+rt+")",gt=" "+gt,at++),et=new RegExp("^(?:"+rt+")",nt)),ke&&(et=new RegExp("^"+rt+"$(?!\\s)",nt)),be&&(it=Be.lastIndex),pt=ie(le,st?et:Be,gt),st?pt?(pt.input=ye(pt.input,at),pt[0]=ye(pt[0],at),pt.index=Be.lastIndex,Be.lastIndex+=pt[0].length):Be.lastIndex=0:be&&pt&&(Be.lastIndex=Be.global?pt.index+pt[0].length:it),ke&&pt&&pt.length>1&&ie(pe,pt[0],et,function(){for(Ge=1;Ge<arguments.length-2;Ge++)arguments[Ge]===void 0&&(pt[Ge]=void 0)}),pt&&dt)for(pt.groups=Xe=re(null),Ge=0;Ge<dt.length;Ge++)lt=dt[Ge],Xe[lt[0]]=pt[lt[1]];return pt}),Te.exports=Se},{"../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(x,Te,ve){"use strict";var ie=x("../internals/an-object");Te.exports=function(){var te=ie(this),ae="";return te.hasIndices&&(ae+="d"),te.global&&(ae+="g"),te.ignoreCase&&(ae+="i"),te.multiline&&(ae+="m"),te.dotAll&&(ae+="s"),te.unicode&&(ae+="u"),te.sticky&&(ae+="y"),ae}},{"../internals/an-object":101}],226:[function(x,Te,ve){var ie=x("../internals/function-call"),te=x("../internals/has-own-property"),ae=x("../internals/object-is-prototype-of"),ne=x("../internals/regexp-flags"),oe=RegExp.prototype;Te.exports=function(he){var re=he.flags;return re===void 0&&!("flags"in oe)&&!te(he,"flags")&&ae(oe,he)?ie(ne,he):re}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(x,Te,ve){var ie=x("../internals/fails"),te=x("../internals/global"),ae=te.RegExp,ne=ie(function(){var re=ae("a","y");return re.lastIndex=2,re.exec("abcd")!=null}),oe=ne||ie(function(){return!ae("a","y").sticky}),he=ne||ie(function(){var re=ae("^r","gy");return re.lastIndex=2,re.exec("str")!=null});Te.exports={BROKEN_CARET:he,MISSED_STICKY:oe,UNSUPPORTED_Y:ne}},{"../internals/fails":150,"../internals/global":163}],228:[function(x,Te,ve){var ie=x("../internals/fails"),te=x("../internals/global"),ae=te.RegExp;Te.exports=ie(function(){var ne=ae(".","s");return!(ne.dotAll&&ne.exec(`
|
|
|
`)&&ne.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(x,Te,ve){var ie=x("../internals/fails"),te=x("../internals/global"),ae=te.RegExp;Te.exports=ie(function(){var ne=ae("(?<a>b)","g");return ne.exec("b").groups.a!=="b"||"b".replace(ne,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(x,Te,ve){var ie=x("../internals/global"),te=ie.TypeError;Te.exports=function(ae){if(ae==null)throw te("Can't call method on "+ae);return ae}},{"../internals/global":163}],231:[function(x,Te,ve){Te.exports=Object.is||function(te,ae){return te===ae?te!==0||1/te===1/ae:te!=te&&ae!=ae}},{}],232:[function(x,Te,ve){var ie=x("../internals/global"),te=Object.defineProperty;Te.exports=function(ae,ne){try{te(ie,ae,{value:ne,configurable:!0,writable:!0})}catch(oe){ie[ae]=ne}return ne}},{"../internals/global":163}],233:[function(x,Te,ve){"use strict";var ie=x("../internals/get-built-in"),te=x("../internals/object-define-property"),ae=x("../internals/well-known-symbol"),ne=x("../internals/descriptors"),oe=ae("species");Te.exports=function(he){var re=ie(he),se=te.f;ne&&re&&!re[oe]&&se(re,oe,{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(x,Te,ve){var ie=x("../internals/object-define-property").f,te=x("../internals/has-own-property"),ae=x("../internals/well-known-symbol"),ne=ae("toStringTag");Te.exports=function(oe,he,re){oe&&!re&&(oe=oe.prototype),oe&&!te(oe,ne)&&ie(oe,ne,{configurable:!0,value:he})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(x,Te,ve){var ie=x("../internals/shared"),te=x("../internals/uid"),ae=ie("keys");Te.exports=function(ne){return ae[ne]||(ae[ne]=te(ne))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/set-global"),ae="__core-js_shared__",ne=ie[ae]||te(ae,{});Te.exports=ne},{"../internals/global":163,"../internals/set-global":232}],237:[function(x,Te,ve){var ie=x("../internals/is-pure"),te=x("../internals/shared-store");(Te.exports=function(ae,ne){return te[ae]||(te[ae]=ne!==void 0?ne:{})})("versions",[]).push({version:"3.22.1",mode:ie?"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(x,Te,ve){var ie=x("../internals/an-object"),te=x("../internals/a-constructor"),ae=x("../internals/well-known-symbol"),ne=ae("species");Te.exports=function(oe,he){var re=ie(oe).constructor,se;return re===void 0||(se=ie(re)[ne])==null?he:te(se)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/to-integer-or-infinity"),ae=x("../internals/to-string"),ne=x("../internals/require-object-coercible"),oe=ie("".charAt),he=ie("".charCodeAt),re=ie("".slice),se=function(ce){return function(fe,pe){var le=ae(ne(fe)),Se=te(pe),xe=le.length,ge,Me;return Se<0||Se>=xe?ce?"":void 0:(ge=he(le,Se),ge<55296||ge>56319||Se+1===xe||(Me=he(le,Se+1))<56320||Me>57343?ce?oe(le,Se):ge:ce?re(le,Se,Se+2):(ge-55296<<10)+(Me-56320)+65536)}};Te.exports={codeAt:se(!1),charAt:se(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(x,Te,ve){var ie=x("../internals/function-name").PROPER,te=x("../internals/fails"),ae=x("../internals/whitespaces"),ne="\u200B\x85\u180E";Te.exports=function(oe){return te(function(){return!!ae[oe]()||ne[oe]()!==ne||ie&&ae[oe].name!==oe})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=x("../internals/require-object-coercible"),ae=x("../internals/to-string"),ne=x("../internals/whitespaces"),oe=ie("".replace),he="["+ne+"]",re=RegExp("^"+he+he+"*"),se=RegExp(he+he+"*$"),ce=function(fe){return function(pe){var le=ae(te(pe));return fe&1&&(le=oe(le,re,"")),fe&2&&(le=oe(le,se,"")),le}};Te.exports={start:ce(1),end:ce(2),trim:ce(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(x,Te,ve){var ie=x("../internals/function-call"),te=x("../internals/get-built-in"),ae=x("../internals/well-known-symbol"),ne=x("../internals/redefine");Te.exports=function(){var oe=te("Symbol"),he=oe&&oe.prototype,re=he&&he.valueOf,se=ae("toPrimitive");he&&!he[se]&&ne(he,se,function(ce){return ie(re,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/function-apply"),ae=x("../internals/function-bind-context"),ne=x("../internals/is-callable"),oe=x("../internals/has-own-property"),he=x("../internals/fails"),re=x("../internals/html"),se=x("../internals/array-slice"),ce=x("../internals/document-create-element"),fe=x("../internals/validate-arguments-length"),pe=x("../internals/engine-is-ios"),le=x("../internals/engine-is-node"),Se=ie.setImmediate,xe=ie.clearImmediate,ge=ie.process,Me=ie.Dispatch,ye=ie.Function,be=ie.MessageChannel,Fe=ie.String,ke=0,De={},Le="onreadystatechange",Ie,Be,Ue,_e;try{Ie=ie.location}catch(pt){}var We=function(pt){if(oe(De,pt)){var Ge=De[pt];delete De[pt],Ge()}},Ze=function(pt){return function(){We(pt)}},et=function(pt){We(pt.data)},it=function(pt){ie.postMessage(Fe(pt),Ie.protocol+"//"+Ie.host)};(!Se||!xe)&&(Se=function(Ge){fe(arguments.length,1);var Xe=ne(Ge)?Ge:ye(Ge),lt=se(arguments,1);return De[++ke]=function(){te(Xe,void 0,lt)},Be(ke),ke},xe=function(Ge){delete De[Ge]},le?Be=function(pt){ge.nextTick(Ze(pt))}:Me&&Me.now?Be=function(pt){Me.now(Ze(pt))}:be&&!pe?(Ue=new be,_e=Ue.port2,Ue.port1.onmessage=et,Be=ae(_e.postMessage,_e)):ie.addEventListener&&ne(ie.postMessage)&&!ie.importScripts&&Ie&&Ie.protocol!=="file:"&&!he(it)?(Be=it,ie.addEventListener("message",et,!1)):Le in ce("script")?Be=function(pt){re.appendChild(ce("script"))[Le]=function(){re.removeChild(this),We(pt)}}:Be=function(pt){setTimeout(Ze(pt),0)}),Te.exports={set:Se,clear:xe}},{"../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(x,Te,ve){var ie=x("../internals/function-uncurry-this");Te.exports=ie(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(x,Te,ve){var ie=x("../internals/to-integer-or-infinity"),te=Math.max,ae=Math.min;Te.exports=function(ne,oe){var he=ie(ne);return he<0?te(he+oe,0):ae(he,oe)}},{"../internals/to-integer-or-infinity":248}],246:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/to-integer-or-infinity"),ae=x("../internals/to-length"),ne=ie.RangeError;Te.exports=function(oe){if(oe===void 0)return 0;var he=te(oe),re=ae(he);if(he!==re)throw ne("Wrong length or index");return re}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(x,Te,ve){var ie=x("../internals/indexed-object"),te=x("../internals/require-object-coercible");Te.exports=function(ae){return ie(te(ae))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(x,Te,ve){var ie=Math.ceil,te=Math.floor;Te.exports=function(ae){var ne=+ae;return ne!==ne||ne===0?0:(ne>0?te:ie)(ne)}},{}],249:[function(x,Te,ve){var ie=x("../internals/to-integer-or-infinity"),te=Math.min;Te.exports=function(ae){return ae>0?te(ie(ae),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/require-object-coercible"),ae=ie.Object;Te.exports=function(ne){return ae(te(ne))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/to-positive-integer"),ae=ie.RangeError;Te.exports=function(ne,oe){var he=te(ne);if(he%oe)throw ae("Wrong offset");return he}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/to-integer-or-infinity"),ae=ie.RangeError;Te.exports=function(ne){var oe=te(ne);if(oe<0)throw ae("The argument can't be less than 0");return oe}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/function-call"),ae=x("../internals/is-object"),ne=x("../internals/is-symbol"),oe=x("../internals/get-method"),he=x("../internals/ordinary-to-primitive"),re=x("../internals/well-known-symbol"),se=ie.TypeError,ce=re("toPrimitive");Te.exports=function(fe,pe){if(!ae(fe)||ne(fe))return fe;var le=oe(fe,ce),Se;if(le){if(pe===void 0&&(pe="default"),Se=te(le,fe,pe),!ae(Se)||ne(Se))return Se;throw se("Can't convert object to primitive value")}return pe===void 0&&(pe="number"),he(fe,pe)}},{"../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(x,Te,ve){var ie=x("../internals/to-primitive"),te=x("../internals/is-symbol");Te.exports=function(ae){var ne=ie(ae,"string");return te(ne)?ne:ne+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(x,Te,ve){var ie=x("../internals/well-known-symbol"),te=ie("toStringTag"),ae={};ae[te]="z",Te.exports=String(ae)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/classof"),ae=ie.String;Te.exports=function(ne){if(te(ne)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ae(ne)}},{"../internals/classof":124,"../internals/global":163}],257:[function(x,Te,ve){var ie=x("../internals/global"),te=ie.String;Te.exports=function(ae){try{return te(ae)}catch(ne){return"Object"}}},{"../internals/global":163}],258:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/global"),ae=x("../internals/function-call"),ne=x("../internals/descriptors"),oe=x("../internals/typed-array-constructors-require-wrappers"),he=x("../internals/array-buffer-view-core"),re=x("../internals/array-buffer"),se=x("../internals/an-instance"),ce=x("../internals/create-property-descriptor"),fe=x("../internals/create-non-enumerable-property"),pe=x("../internals/is-integral-number"),le=x("../internals/to-length"),Se=x("../internals/to-index"),xe=x("../internals/to-offset"),ge=x("../internals/to-property-key"),Me=x("../internals/has-own-property"),ye=x("../internals/classof"),be=x("../internals/is-object"),Fe=x("../internals/is-symbol"),ke=x("../internals/object-create"),De=x("../internals/object-is-prototype-of"),Le=x("../internals/object-set-prototype-of"),Ie=x("../internals/object-get-own-property-names").f,Be=x("../internals/typed-array-from"),Ue=x("../internals/array-iteration").forEach,_e=x("../internals/set-species"),We=x("../internals/object-define-property"),Ze=x("../internals/object-get-own-property-descriptor"),et=x("../internals/internal-state"),it=x("../internals/inherit-if-required"),pt=et.get,Ge=et.set,Xe=We.f,lt=Ze.f,dt=Math.round,st=te.RangeError,nt=re.ArrayBuffer,rt=nt.prototype,at=re.DataView,gt=he.NATIVE_ARRAY_BUFFER_VIEWS,vt=he.TYPED_ARRAY_CONSTRUCTOR,Et=he.TYPED_ARRAY_TAG,At=he.TypedArray,ut=he.TypedArrayPrototype,Ye=he.aTypedArrayConstructor,Ve=he.isTypedArray,de="BYTES_PER_ELEMENT",Ce="Wrong length",He=function(ot,mt){Ye(ot);for(var Ot=0,xt=mt.length,Ut=new ot(xt);xt>Ot;)Ut[Ot]=mt[Ot++];return Ut},je=function(ot,mt){Xe(ot,mt,{get:function(){return pt(this)[mt]}})},Ae=function(ot){var mt;return De(rt,ot)||(mt=ye(ot))=="ArrayBuffer"||mt=="SharedArrayBuffer"},Ne=function(ot,mt){return Ve(ot)&&!Fe(mt)&&mt in ot&&pe(+mt)&&mt>=0},ze=function(mt,Ot){return Ot=ge(Ot),Ne(mt,Ot)?ce(2,mt[Ot]):lt(mt,Ot)},Qe=function(mt,Ot,xt){return Ot=ge(Ot),Ne(mt,Ot)&&be(xt)&&Me(xt,"value")&&!Me(xt,"get")&&!Me(xt,"set")&&!xt.configurable&&(!Me(xt,"writable")||xt.writable)&&(!Me(xt,"enumerable")||xt.enumerable)?(mt[Ot]=xt.value,mt):Xe(mt,Ot,xt)};ne?(gt||(Ze.f=ze,We.f=Qe,je(ut,"buffer"),je(ut,"byteOffset"),je(ut,"byteLength"),je(ut,"length")),ie({target:"Object",stat:!0,forced:!gt},{getOwnPropertyDescriptor:ze,defineProperty:Qe}),Te.exports=function(ot,mt,Ot){var xt=ot.match(/\d+$/)[0]/8,Ut=ot+(Ot?"Clamped":"")+"Array",xn="get"+ot,Ft="set"+ot,Qt=te[Ut],Zt=Qt,bn=Zt&&Zt.prototype,Pt={},zt=function(kn,Gn){var dr=pt(kn);return dr.view[xn](Gn*xt+dr.byteOffset,!0)},sn=function(kn,Gn,dr){var Or=pt(kn);Ot&&(dr=(dr=dt(dr))<0?0:dr>255?255:dr&255),Or.view[Ft](Gn*xt+Or.byteOffset,dr,!0)},yn=function(kn,Gn){Xe(kn,Gn,{get:function(){return zt(this,Gn)},set:function(dr){return sn(this,Gn,dr)},enumerable:!0})};gt?oe&&(Zt=mt(function(kn,Gn,dr,Or){return se(kn,bn),it(function(){return be(Gn)?Ae(Gn)?Or!==void 0?new Qt(Gn,xe(dr,xt),Or):dr!==void 0?new Qt(Gn,xe(dr,xt)):new Qt(Gn):Ve(Gn)?He(Zt,Gn):ae(Be,Zt,Gn):new Qt(Se(Gn))}(),kn,Zt)}),Le&&Le(Zt,At),Ue(Ie(Qt),function(kn){kn in Zt||fe(Zt,kn,Qt[kn])}),Zt.prototype=bn):(Zt=mt(function(kn,Gn,dr,Or){se(kn,bn);var zr=0,Hr=0,Dr,Kr,Ai;if(!be(Gn))Ai=Se(Gn),Kr=Ai*xt,Dr=new nt(Kr);else if(Ae(Gn)){Dr=Gn,Hr=xe(dr,xt);var Di=Gn.byteLength;if(Or===void 0){if(Di%xt||(Kr=Di-Hr,Kr<0))throw st(Ce)}else if(Kr=le(Or)*xt,Kr+Hr>Di)throw st(Ce);Ai=Kr/xt}else return Ve(Gn)?He(Zt,Gn):ae(Be,Zt,Gn);for(Ge(kn,{buffer:Dr,byteOffset:Hr,byteLength:Kr,length:Ai,view:new at(Dr)});zr<Ai;)yn(kn,zr++)}),Le&&Le(Zt,At),bn=Zt.prototype=ke(ut)),bn.constructor!==Zt&&fe(bn,"constructor",Zt),fe(bn,vt,Zt),Et&&fe(bn,Et,Ut),Pt[Ut]=Zt,ie({global:!0,forced:Zt!=Qt,sham:!gt},Pt),de in Zt||fe(Zt,de,xt),de in bn||fe(bn,de,xt),_e(Ut)}):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(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/fails"),ae=x("../internals/check-correctness-of-iteration"),ne=x("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,oe=ie.ArrayBuffer,he=ie.Int8Array;Te.exports=!ne||!te(function(){he(1)})||!te(function(){new he(-1)})||!ae(function(re){new he,new he(null),new he(1.5),new he(re)},!0)||te(function(){return new he(new oe(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(x,Te,ve){var ie=x("../internals/array-from-constructor-and-list"),te=x("../internals/typed-array-species-constructor");Te.exports=function(ae,ne){return ie(te(ae),ne)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(x,Te,ve){var ie=x("../internals/function-bind-context"),te=x("../internals/function-call"),ae=x("../internals/a-constructor"),ne=x("../internals/to-object"),oe=x("../internals/length-of-array-like"),he=x("../internals/get-iterator"),re=x("../internals/get-iterator-method"),se=x("../internals/is-array-iterator-method"),ce=x("../internals/array-buffer-view-core").aTypedArrayConstructor;Te.exports=function(pe){var le=ae(this),Se=ne(pe),xe=arguments.length,ge=xe>1?arguments[1]:void 0,Me=ge!==void 0,ye=re(Se),be,Fe,ke,De,Le,Ie;if(ye&&!se(ye))for(Le=he(Se,ye),Ie=Le.next,Se=[];!(De=te(Ie,Le)).done;)Se.push(De.value);for(Me&&xe>2&&(ge=ie(ge,arguments[2])),Fe=oe(Se),ke=new(ce(le))(Fe),be=0;Fe>be;be++)ke[be]=Me?ge(Se[be],be):Se[be];return ke}},{"../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(x,Te,ve){var ie=x("../internals/array-buffer-view-core"),te=x("../internals/species-constructor"),ae=ie.TYPED_ARRAY_CONSTRUCTOR,ne=ie.aTypedArrayConstructor;Te.exports=function(oe){return ne(te(oe,oe[ae]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(x,Te,ve){var ie=x("../internals/function-uncurry-this"),te=0,ae=Math.random(),ne=ie(1 .toString);Te.exports=function(oe){return"Symbol("+(oe===void 0?"":oe)+")_"+ne(++te+ae,36)}},{"../internals/function-uncurry-this":157}],264:[function(x,Te,ve){var ie=x("../internals/native-symbol");Te.exports=ie&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/fails");Te.exports=ie&&te(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(x,Te,ve){var ie=x("../internals/global"),te=ie.TypeError;Te.exports=function(ae,ne){if(ae<ne)throw te("Not enough arguments");return ae}},{"../internals/global":163}],267:[function(x,Te,ve){var ie=x("../internals/well-known-symbol");ve.f=ie},{"../internals/well-known-symbol":268}],268:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/shared"),ae=x("../internals/has-own-property"),ne=x("../internals/uid"),oe=x("../internals/native-symbol"),he=x("../internals/use-symbol-as-uid"),re=te("wks"),se=ie.Symbol,ce=se&&se.for,fe=he?se:se&&se.withoutSetter||ne;Te.exports=function(pe){if(!ae(re,pe)||!(oe||typeof re[pe]=="string")){var le="Symbol."+pe;oe&&ae(se,pe)?re[pe]=se[pe]:he&&ce?re[pe]=ce(le):re[pe]=fe(le)}return re[pe]}},{"../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(x,Te,ve){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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/global"),ae=x("../internals/array-buffer"),ne=x("../internals/set-species"),oe="ArrayBuffer",he=ae[oe],re=te[oe];ie({global:!0,forced:re!==he},{ArrayBuffer:he}),ne(oe)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/function-uncurry-this"),ae=x("../internals/fails"),ne=x("../internals/array-buffer"),oe=x("../internals/an-object"),he=x("../internals/to-absolute-index"),re=x("../internals/to-length"),se=x("../internals/species-constructor"),ce=ne.ArrayBuffer,fe=ne.DataView,pe=fe.prototype,le=te(ce.prototype.slice),Se=te(pe.getUint8),xe=te(pe.setUint8),ge=ae(function(){return!new ce(2).slice(1,void 0).byteLength});ie({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ge},{slice:function(ye,be){if(le&&be===void 0)return le(oe(this),ye);for(var Fe=oe(this).byteLength,ke=he(ye,Fe),De=he(be===void 0?Fe:be,Fe),Le=new(se(this,ce))(re(De-ke)),Ie=new fe(this),Be=new fe(Le),Ue=0;ke<De;)xe(Be,Ue++,Se(Ie,ke++));return Le}})},{"../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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/global"),ae=x("../internals/fails"),ne=x("../internals/is-array"),oe=x("../internals/is-object"),he=x("../internals/to-object"),re=x("../internals/length-of-array-like"),se=x("../internals/create-property"),ce=x("../internals/array-species-create"),fe=x("../internals/array-method-has-species-support"),pe=x("../internals/well-known-symbol"),le=x("../internals/engine-v8-version"),Se=pe("isConcatSpreadable"),xe=9007199254740991,ge="Maximum allowed index exceeded",Me=te.TypeError,ye=le>=51||!ae(function(){var De=[];return De[Se]=!1,De.concat()[0]!==De}),be=fe("concat"),Fe=function(De){if(!oe(De))return!1;var Le=De[Se];return Le!==void 0?!!Le:ne(De)},ke=!ye||!be;ie({target:"Array",proto:!0,forced:ke},{concat:function(Le){var Ie=he(this),Be=ce(Ie,0),Ue=0,_e,We,Ze,et,it;for(_e=-1,Ze=arguments.length;_e<Ze;_e++)if(it=_e===-1?Ie:arguments[_e],Fe(it)){if(et=re(it),Ue+et>xe)throw Me(ge);for(We=0;We<et;We++,Ue++)We in it&&se(Be,Ue,it[We])}else{if(Ue>=xe)throw Me(ge);se(Be,Ue++,it)}return Be.length=Ue,Be}})},{"../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(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/array-fill"),ae=x("../internals/add-to-unscopables");ie({target:"Array",proto:!0},{fill:te}),ae("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/array-iteration").filter,ae=x("../internals/array-method-has-species-support"),ne=ae("filter");ie({target:"Array",proto:!0,forced:!ne},{filter:function(he){return te(this,he,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/array-iteration").find,ae=x("../internals/add-to-unscopables"),ne="find",oe=!0;ne in[]&&Array(1)[ne](function(){oe=!1}),ie({target:"Array",proto:!0,forced:oe},{find:function(re){return te(this,re,arguments.length>1?arguments[1]:void 0)}}),ae(ne)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/array-from"),ae=x("../internals/check-correctness-of-iteration"),ne=!ae(function(oe){Array.from(oe)});ie({target:"Array",stat:!0,forced:ne},{from:te})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/array-includes").includes,ae=x("../internals/add-to-unscopables");ie({target:"Array",proto:!0},{includes:function(oe){return te(this,oe,arguments.length>1?arguments[1]:void 0)}}),ae("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(x,Te,ve){"use strict";var ie=x("../internals/to-indexed-object"),te=x("../internals/add-to-unscopables"),ae=x("../internals/iterators"),ne=x("../internals/internal-state"),oe=x("../internals/object-define-property").f,he=x("../internals/define-iterator"),re=x("../internals/is-pure"),se=x("../internals/descriptors"),ce="Array Iterator",fe=ne.set,pe=ne.getterFor(ce);Te.exports=he(Array,"Array",function(Se,xe){fe(this,{type:ce,target:ie(Se),index:0,kind:xe})},function(){var Se=pe(this),xe=Se.target,ge=Se.kind,Me=Se.index++;return!xe||Me>=xe.length?(Se.target=void 0,{value:void 0,done:!0}):ge=="keys"?{value:Me,done:!1}:ge=="values"?{value:xe[Me],done:!1}:{value:[Me,xe[Me]],done:!1}},"values");var le=ae.Arguments=ae.Array;if(te("keys"),te("values"),te("entries"),!re&&se&&le.name!=="values")try{oe(le,"name",{value:"values"})}catch(Se){}},{"../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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/function-uncurry-this"),ae=x("../internals/indexed-object"),ne=x("../internals/to-indexed-object"),oe=x("../internals/array-method-is-strict"),he=te([].join),re=ae!=Object,se=oe("join",",");ie({target:"Array",proto:!0,forced:re||!se},{join:function(fe){return he(ne(this),fe===void 0?",":fe)}})},{"../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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/array-iteration").map,ae=x("../internals/array-method-has-species-support"),ne=ae("map");ie({target:"Array",proto:!0,forced:!ne},{map:function(he){return te(this,he,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/global"),ae=x("../internals/is-array"),ne=x("../internals/is-constructor"),oe=x("../internals/is-object"),he=x("../internals/to-absolute-index"),re=x("../internals/length-of-array-like"),se=x("../internals/to-indexed-object"),ce=x("../internals/create-property"),fe=x("../internals/well-known-symbol"),pe=x("../internals/array-method-has-species-support"),le=x("../internals/array-slice"),Se=pe("slice"),xe=fe("species"),ge=te.Array,Me=Math.max;ie({target:"Array",proto:!0,forced:!Se},{slice:function(be,Fe){var ke=se(this),De=re(ke),Le=he(be,De),Ie=he(Fe===void 0?De:Fe,De),Be,Ue,_e;if(ae(ke)&&(Be=ke.constructor,ne(Be)&&(Be===ge||ae(Be.prototype))?Be=void 0:oe(Be)&&(Be=Be[xe],Be===null&&(Be=void 0)),Be===ge||Be===void 0))return le(ke,Le,Ie);for(Ue=new(Be===void 0?ge:Be)(Me(Ie-Le,0)),_e=0;Le<Ie;Le++,_e++)Le in ke&&ce(Ue,_e,ke[Le]);return Ue.length=_e,Ue}})},{"../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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/function-uncurry-this"),ae=x("../internals/a-callable"),ne=x("../internals/to-object"),oe=x("../internals/length-of-array-like"),he=x("../internals/to-string"),re=x("../internals/fails"),se=x("../internals/array-sort"),ce=x("../internals/array-method-is-strict"),fe=x("../internals/engine-ff-version"),pe=x("../internals/engine-is-ie-or-edge"),le=x("../internals/engine-v8-version"),Se=x("../internals/engine-webkit-version"),xe=[],ge=te(xe.sort),Me=te(xe.push),ye=re(function(){xe.sort(void 0)}),be=re(function(){xe.sort(null)}),Fe=ce("sort"),ke=!re(function(){if(le)return le<70;if(!(fe&&fe>3)){if(pe)return!0;if(Se)return Se<603;var Ie="",Be,Ue,_e,We;for(Be=65;Be<76;Be++){switch(Ue=String.fromCharCode(Be),Be){case 66:case 69:case 70:case 72:_e=3;break;case 68:case 71:_e=4;break;default:_e=2}for(We=0;We<47;We++)xe.push({k:Ue+We,v:_e})}for(xe.sort(function(Ze,et){return et.v-Ze.v}),We=0;We<xe.length;We++)Ue=xe[We].k.charAt(0),Ie.charAt(Ie.length-1)!==Ue&&(Ie+=Ue);return Ie!=="DGBEFHACIJK"}}),De=ye||!be||!Fe||!ke,Le=function(Ie){return function(Be,Ue){return Ue===void 0?-1:Be===void 0?1:Ie!==void 0?+Ie(Be,Ue)||0:he(Be)>he(Ue)?1:-1}};ie({target:"Array",proto:!0,forced:De},{sort:function(Be){Be!==void 0&&ae(Be);var Ue=ne(this);if(ke)return Be===void 0?ge(Ue):ge(Ue,Be);var _e=[],We=oe(Ue),Ze,et;for(et=0;et<We;et++)et in Ue&&Me(_e,Ue[et]);for(se(_e,Le(Be)),Ze=_e.length,et=0;et<Ze;)Ue[et]=_e[et++];for(;et<We;)delete Ue[et++];return Ue}})},{"../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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/global"),ae=x("../internals/to-absolute-index"),ne=x("../internals/to-integer-or-infinity"),oe=x("../internals/length-of-array-like"),he=x("../internals/to-object"),re=x("../internals/array-species-create"),se=x("../internals/create-property"),ce=x("../internals/array-method-has-species-support"),fe=ce("splice"),pe=te.TypeError,le=Math.max,Se=Math.min,xe=9007199254740991,ge="Maximum allowed length exceeded";ie({target:"Array",proto:!0,forced:!fe},{splice:function(ye,be){var Fe=he(this),ke=oe(Fe),De=ae(ye,ke),Le=arguments.length,Ie,Be,Ue,_e,We,Ze;if(Le===0?Ie=Be=0:Le===1?(Ie=0,Be=ke-De):(Ie=Le-2,Be=Se(le(ne(be),0),ke-De)),ke+Ie-Be>xe)throw pe(ge);for(Ue=re(Fe,Be),_e=0;_e<Be;_e++)We=De+_e,We in Fe&&se(Ue,_e,Fe[We]);if(Ue.length=Be,Ie<Be){for(_e=De;_e<ke-Be;_e++)We=_e+Be,Ze=_e+Ie,We in Fe?Fe[Ze]=Fe[We]:delete Fe[Ze];for(_e=ke;_e>ke-Be+Ie;_e--)delete Fe[_e-1]}else if(Ie>Be)for(_e=ke-Be;_e>De;_e--)We=_e+Be-1,Ze=_e+Ie-1,We in Fe?Fe[Ze]=Fe[We]:delete Fe[Ze];for(_e=0;_e<Ie;_e++)Fe[_e+De]=arguments[_e+2];return Fe.length=ke-Be+Ie,Ue}})},{"../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(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/function-name").EXISTS,ae=x("../internals/function-uncurry-this"),ne=x("../internals/object-define-property").f,oe=Function.prototype,he=ae(oe.toString),re=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,se=ae(re.exec),ce="name";ie&&!te&&ne(oe,ce,{configurable:!0,get:function(){try{return se(re,he(this))[1]}catch(fe){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/get-built-in"),ae=x("../internals/function-apply"),ne=x("../internals/function-call"),oe=x("../internals/function-uncurry-this"),he=x("../internals/fails"),re=x("../internals/is-array"),se=x("../internals/is-callable"),ce=x("../internals/is-object"),fe=x("../internals/is-symbol"),pe=x("../internals/array-slice"),le=x("../internals/native-symbol"),Se=te("JSON","stringify"),xe=oe(/./.exec),ge=oe("".charAt),Me=oe("".charCodeAt),ye=oe("".replace),be=oe(1 .toString),Fe=/[\uD800-\uDFFF]/g,ke=/^[\uD800-\uDBFF]$/,De=/^[\uDC00-\uDFFF]$/,Le=!le||he(function(){var _e=te("Symbol")();return Se([_e])!="[null]"||Se({a:_e})!="{}"||Se(Object(_e))!="{}"}),Ie=he(function(){return Se("\uDF06\uD834")!=='"\\udf06\\ud834"'||Se("\uDEAD")!=='"\\udead"'}),Be=function(_e,We){var Ze=pe(arguments),et=We;if(!(!ce(We)&&_e===void 0||fe(_e)))return re(We)||(We=function(it,pt){if(se(et)&&(pt=ne(et,this,it,pt)),!fe(pt))return pt}),Ze[1]=We,ae(Se,null,Ze)},Ue=function(_e,We,Ze){var et=ge(Ze,We-1),it=ge(Ze,We+1);return xe(ke,_e)&&!xe(De,it)||xe(De,_e)&&!xe(ke,et)?"\\u"+be(Me(_e,0),16):_e};Se&&ie({target:"JSON",stat:!0,forced:Le||Ie},{stringify:function(We,Ze,et){var it=pe(arguments),pt=ae(Le?Be:Se,null,it);return Ie&&typeof pt=="string"?ye(pt,Fe,Ue):pt}})},{"../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(x,Te,ve){"use strict";var ie=x("../internals/descriptors"),te=x("../internals/global"),ae=x("../internals/function-uncurry-this"),ne=x("../internals/is-forced"),oe=x("../internals/redefine"),he=x("../internals/has-own-property"),re=x("../internals/inherit-if-required"),se=x("../internals/object-is-prototype-of"),ce=x("../internals/is-symbol"),fe=x("../internals/to-primitive"),pe=x("../internals/fails"),le=x("../internals/object-get-own-property-names").f,Se=x("../internals/object-get-own-property-descriptor").f,xe=x("../internals/object-define-property").f,ge=x("../internals/this-number-value"),Me=x("../internals/string-trim").trim,ye="Number",be=te[ye],Fe=be.prototype,ke=te.TypeError,De=ae("".slice),Le=ae("".charCodeAt),Ie=function(et){var it=fe(et,"number");return typeof it=="bigint"?it:Be(it)},Be=function(et){var it=fe(et,"number"),pt,Ge,Xe,lt,dt,st,nt,rt;if(ce(it))throw ke("Cannot convert a Symbol value to a number");if(typeof it=="string"&&it.length>2){if(it=Me(it),pt=Le(it,0),pt===43||pt===45){if(Ge=Le(it,2),Ge===88||Ge===120)return NaN}else if(pt===48){switch(Le(it,1)){case 66:case 98:Xe=2,lt=49;break;case 79:case 111:Xe=8,lt=55;break;default:return+it}for(dt=De(it,2),st=dt.length,nt=0;nt<st;nt++)if(rt=Le(dt,nt),rt<48||rt>lt)return NaN;return parseInt(dt,Xe)}}return+it};if(ne(ye,!be(" 0o1")||!be("0b1")||be("+0x1"))){for(var Ue=function(it){var pt=arguments.length<1?0:be(Ie(it)),Ge=this;return se(Fe,Ge)&&pe(function(){ge(Ge)})?re(Object(pt),Ge,Ue):pt},_e=ie?le(be):"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(","),We=0,Ze;_e.length>We;We++)he(be,Ze=_e[We])&&!he(Ue,Ze)&&xe(Ue,Ze,Se(be,Ze));Ue.prototype=Fe,Fe.constructor=Ue,oe(te,ye,Ue)}},{"../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(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/object-assign");ie({target:"Object",stat:!0,forced:Object.assign!==te},{assign:te})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/object-to-array").entries;ie({target:"Object",stat:!0},{entries:function(ne){return te(ne)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/native-symbol"),ae=x("../internals/fails"),ne=x("../internals/object-get-own-property-symbols"),oe=x("../internals/to-object"),he=!te||ae(function(){ne.f(1)});ie({target:"Object",stat:!0,forced:he},{getOwnPropertySymbols:function(se){var ce=ne.f;return ce?ce(oe(se)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/to-object"),ae=x("../internals/object-keys"),ne=x("../internals/fails"),oe=ne(function(){ae(1)});ie({target:"Object",stat:!0,forced:oe},{keys:function(re){return ae(te(re))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(x,Te,ve){var ie=x("../internals/to-string-tag-support"),te=x("../internals/redefine"),ae=x("../internals/object-to-string");ie||te(Object.prototype,"toString",ae,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/function-call"),ae=x("../internals/a-callable"),ne=x("../internals/new-promise-capability"),oe=x("../internals/perform"),he=x("../internals/iterate"),re=x("../internals/promise-statics-incorrect-iteration");ie({target:"Promise",stat:!0,forced:re},{all:function(ce){var fe=this,pe=ne.f(fe),le=pe.resolve,Se=pe.reject,xe=oe(function(){var ge=ae(fe.resolve),Me=[],ye=0,be=1;he(ce,function(Fe){var ke=ye++,De=!1;be++,te(ge,fe,Fe).then(function(Le){De||(De=!0,Me[ke]=Le,--be||le(Me))},Se)}),--be||le(Me)});return xe.error&&Se(xe.value),pe.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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/is-pure"),ae=x("../internals/promise-constructor-detection").CONSTRUCTOR,ne=x("../internals/promise-native-constructor"),oe=x("../internals/get-built-in"),he=x("../internals/is-callable"),re=x("../internals/redefine"),se=ne&&ne.prototype;if(ie({target:"Promise",proto:!0,forced:ae,real:!0},{catch:function(fe){return this.then(void 0,fe)}}),!te&&he(ne)){var ce=oe("Promise").prototype.catch;se.catch!==ce&&re(se,"catch",ce,{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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/is-pure"),ae=x("../internals/engine-is-node"),ne=x("../internals/global"),oe=x("../internals/function-call"),he=x("../internals/redefine"),re=x("../internals/redefine-all"),se=x("../internals/object-set-prototype-of"),ce=x("../internals/set-to-string-tag"),fe=x("../internals/set-species"),pe=x("../internals/a-callable"),le=x("../internals/is-callable"),Se=x("../internals/is-object"),xe=x("../internals/an-instance"),ge=x("../internals/species-constructor"),Me=x("../internals/task").set,ye=x("../internals/microtask"),be=x("../internals/host-report-errors"),Fe=x("../internals/perform"),ke=x("../internals/queue"),De=x("../internals/internal-state"),Le=x("../internals/promise-native-constructor"),Ie=x("../internals/promise-constructor-detection"),Be=x("../internals/new-promise-capability"),Ue="Promise",_e=Ie.CONSTRUCTOR,We=Ie.REJECTION_EVENT,Ze=Ie.SUBCLASSING,et=De.getterFor(Ue),it=De.set,pt=Le&&Le.prototype,Ge=Le,Xe=pt,lt=ne.TypeError,dt=ne.document,st=ne.process,nt=Be.f,rt=nt,at=!!(dt&&dt.createEvent&&ne.dispatchEvent),gt="unhandledrejection",vt="rejectionhandled",Et=0,At=1,ut=2,Ye=1,Ve=2,de,Ce,He,je,Ae=function(Ft){var Qt;return Se(Ft)&&le(Qt=Ft.then)?Qt:!1},Ne=function(Ft,Qt){var Zt=Qt.value,bn=Qt.state==At,Pt=bn?Ft.ok:Ft.fail,zt=Ft.resolve,sn=Ft.reject,yn=Ft.domain,kn,Gn,dr;try{Pt?(bn||(Qt.rejection===Ve&&Ot(Qt),Qt.rejection=Ye),Pt===!0?kn=Zt:(yn&&yn.enter(),kn=Pt(Zt),yn&&(yn.exit(),dr=!0)),kn===Ft.promise?sn(lt("Promise-chain cycle")):(Gn=Ae(kn))?oe(Gn,kn,zt,sn):zt(kn)):sn(Zt)}catch(Or){yn&&!dr&&yn.exit(),sn(Or)}},ze=function(Ft,Qt){Ft.notified||(Ft.notified=!0,ye(function(){for(var Zt=Ft.reactions,bn;bn=Zt.get();)Ne(bn,Ft);Ft.notified=!1,Qt&&!Ft.rejection&&ot(Ft)}))},Qe=function(Ft,Qt,Zt){var bn,Pt;at?(bn=dt.createEvent("Event"),bn.promise=Qt,bn.reason=Zt,bn.initEvent(Ft,!1,!0),ne.dispatchEvent(bn)):bn={promise:Qt,reason:Zt},!We&&(Pt=ne["on"+Ft])?Pt(bn):Ft===gt&&be("Unhandled promise rejection",Zt)},ot=function(Ft){oe(Me,ne,function(){var Qt=Ft.facade,Zt=Ft.value,bn=mt(Ft),Pt;if(bn&&(Pt=Fe(function(){ae?st.emit("unhandledRejection",Zt,Qt):Qe(gt,Qt,Zt)}),Ft.rejection=ae||mt(Ft)?Ve:Ye,Pt.error))throw Pt.value})},mt=function(Ft){return Ft.rejection!==Ye&&!Ft.parent},Ot=function(Ft){oe(Me,ne,function(){var Qt=Ft.facade;ae?st.emit("rejectionHandled",Qt):Qe(vt,Qt,Ft.value)})},xt=function(Ft,Qt,Zt){return function(bn){Ft(Qt,bn,Zt)}},Ut=function(Ft,Qt,Zt){Ft.done||(Ft.done=!0,Zt&&(Ft=Zt),Ft.value=Qt,Ft.state=ut,ze(Ft,!0))},xn=function(Ft,Qt,Zt){if(!Ft.done){Ft.done=!0,Zt&&(Ft=Zt);try{if(Ft.facade===Qt)throw lt("Promise can't be resolved itself");var bn=Ae(Qt);bn?ye(function(){var Pt={done:!1};try{oe(bn,Qt,xt(xn,Pt,Ft),xt(Ut,Pt,Ft))}catch(zt){Ut(Pt,zt,Ft)}}):(Ft.value=Qt,Ft.state=At,ze(Ft,!1))}catch(Pt){Ut({done:!1},Pt,Ft)}}};if(_e&&(Ge=function(Qt){xe(this,Xe),pe(Qt),oe(de,this);var Zt=et(this);try{Qt(xt(xn,Zt),xt(Ut,Zt))}catch(bn){Ut(Zt,bn)}},Xe=Ge.prototype,de=function(Qt){it(this,{type:Ue,done:!1,notified:!1,parent:!1,reactions:new ke,rejection:!1,state:Et,value:void 0})},de.prototype=re(Xe,{then:function(Qt,Zt){var bn=et(this),Pt=nt(ge(this,Ge));return bn.parent=!0,Pt.ok=le(Qt)?Qt:!0,Pt.fail=le(Zt)&&Zt,Pt.domain=ae?st.domain:void 0,bn.state==Et?bn.reactions.add(Pt):ye(function(){Ne(Pt,bn)}),Pt.promise}}),Ce=function(){var Ft=new de,Qt=et(Ft);this.promise=Ft,this.resolve=xt(xn,Qt),this.reject=xt(Ut,Qt)},Be.f=nt=function(Ft){return Ft===Ge||Ft===He?new Ce(Ft):rt(Ft)},!te&&le(Le)&&pt!==Object.prototype)){je=pt.then,Ze||he(pt,"then",function(Qt,Zt){var bn=this;return new Ge(function(Pt,zt){oe(je,bn,Pt,zt)}).then(Qt,Zt)},{unsafe:!0});try{delete pt.constructor}catch(Ft){}se&&se(pt,Xe)}ie({global:!0,wrap:!0,forced:_e},{Promise:Ge}),ce(Ge,Ue,!1,!0),fe(Ue)},{"../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(x,Te,ve){x("../modules/es.promise.constructor"),x("../modules/es.promise.all"),x("../modules/es.promise.catch"),x("../modules/es.promise.race"),x("../modules/es.promise.reject"),x("../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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/function-call"),ae=x("../internals/a-callable"),ne=x("../internals/new-promise-capability"),oe=x("../internals/perform"),he=x("../internals/iterate"),re=x("../internals/promise-statics-incorrect-iteration");ie({target:"Promise",stat:!0,forced:re},{race:function(ce){var fe=this,pe=ne.f(fe),le=pe.reject,Se=oe(function(){var xe=ae(fe.resolve);he(ce,function(ge){te(xe,fe,ge).then(pe.resolve,le)})});return Se.error&&le(Se.value),pe.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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/function-call"),ae=x("../internals/new-promise-capability"),ne=x("../internals/promise-constructor-detection").CONSTRUCTOR;ie({target:"Promise",stat:!0,forced:ne},{reject:function(he){var re=ae.f(this);return te(re.reject,void 0,he),re.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/get-built-in"),ae=x("../internals/is-pure"),ne=x("../internals/promise-native-constructor"),oe=x("../internals/promise-constructor-detection").CONSTRUCTOR,he=x("../internals/promise-resolve"),re=te("Promise"),se=ae&&!oe;ie({target:"Promise",stat:!0,forced:ae||oe},{resolve:function(fe){return he(se&&this===re?ne:this,fe)}})},{"../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(x,Te,ve){var ie=x("../internals/descriptors"),te=x("../internals/global"),ae=x("../internals/function-uncurry-this"),ne=x("../internals/is-forced"),oe=x("../internals/inherit-if-required"),he=x("../internals/create-non-enumerable-property"),re=x("../internals/object-get-own-property-names").f,se=x("../internals/object-is-prototype-of"),ce=x("../internals/is-regexp"),fe=x("../internals/to-string"),pe=x("../internals/regexp-get-flags"),le=x("../internals/regexp-sticky-helpers"),Se=x("../internals/proxy-accessor"),xe=x("../internals/redefine"),ge=x("../internals/fails"),Me=x("../internals/has-own-property"),ye=x("../internals/internal-state").enforce,be=x("../internals/set-species"),Fe=x("../internals/well-known-symbol"),ke=x("../internals/regexp-unsupported-dot-all"),De=x("../internals/regexp-unsupported-ncg"),Le=Fe("match"),Ie=te.RegExp,Be=Ie.prototype,Ue=te.SyntaxError,_e=ae(Be.exec),We=ae("".charAt),Ze=ae("".replace),et=ae("".indexOf),it=ae("".slice),pt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ge=/a/g,Xe=/a/g,lt=new Ie(Ge)!==Ge,dt=le.MISSED_STICKY,st=le.UNSUPPORTED_Y,nt=ie&&(!lt||dt||ke||De||ge(function(){return Xe[Le]=!1,Ie(Ge)!=Ge||Ie(Xe)==Xe||Ie(Ge,"i")!="/a/i"})),rt=function(At){for(var ut=At.length,Ye=0,Ve="",de=!1,Ce;Ye<=ut;Ye++){if(Ce=We(At,Ye),Ce==="\\"){Ve+=Ce+We(At,++Ye);continue}!de&&Ce==="."?Ve+="[\\s\\S]":(Ce==="["?de=!0:Ce==="]"&&(de=!1),Ve+=Ce)}return Ve},at=function(At){for(var ut=At.length,Ye=0,Ve="",de=[],Ce={},He=!1,je=!1,Ae=0,Ne="",ze;Ye<=ut;Ye++){if(ze=We(At,Ye),ze==="\\")ze=ze+We(At,++Ye);else if(ze==="]")He=!1;else if(!He)switch(!0){case ze==="[":He=!0;break;case ze==="(":_e(pt,it(At,Ye+1))&&(Ye+=2,je=!0),Ve+=ze,Ae++;continue;case(ze===">"&&je):if(Ne===""||Me(Ce,Ne))throw new Ue("Invalid capture group name");Ce[Ne]=!0,de[de.length]=[Ne,Ae],je=!1,Ne="";continue}je?Ne+=ze:Ve+=ze}return[Ve,de]};if(ne("RegExp",nt)){for(var gt=function(ut,Ye){var Ve=se(Be,this),de=ce(ut),Ce=Ye===void 0,He=[],je=ut,Ae,Ne,ze,Qe,ot,mt;if(!Ve&&de&&Ce&&ut.constructor===gt)return ut;if((de||se(Be,ut))&&(ut=ut.source,Ce&&(Ye=pe(je))),ut=ut===void 0?"":fe(ut),Ye=Ye===void 0?"":fe(Ye),je=ut,ke&&"dotAll"in Ge&&(Ne=!!Ye&&et(Ye,"s")>-1,Ne&&(Ye=Ze(Ye,/s/g,""))),Ae=Ye,dt&&"sticky"in Ge&&(ze=!!Ye&&et(Ye,"y")>-1,ze&&st&&(Ye=Ze(Ye,/y/g,""))),De&&(Qe=at(ut),ut=Qe[0],He=Qe[1]),ot=oe(Ie(ut,Ye),Ve?this:Be,gt),(Ne||ze||He.length)&&(mt=ye(ot),Ne&&(mt.dotAll=!0,mt.raw=gt(rt(ut),Ae)),ze&&(mt.sticky=!0),He.length&&(mt.groups=He)),ut!==je)try{he(ot,"source",je===""?"(?:)":je)}catch(Ot){}return ot},vt=re(Ie),Et=0;vt.length>Et;)Se(gt,Ie,vt[Et++]);Be.constructor=gt,gt.prototype=Be,xe(te,"RegExp",gt)}be("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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/regexp-exec");ie({target:"RegExp",proto:!0,forced:/./.exec!==te},{exec:te})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(x,Te,ve){"use strict";var ie=x("../internals/function-name").PROPER,te=x("../internals/redefine"),ae=x("../internals/an-object"),ne=x("../internals/to-string"),oe=x("../internals/fails"),he=x("../internals/regexp-get-flags"),re="toString",se=RegExp.prototype,ce=se[re],fe=oe(function(){return ce.call({source:"a",flags:"b"})!="/a/b"}),pe=ie&&ce.name!=re;(fe||pe)&&te(RegExp.prototype,re,function(){var Se=ae(this),xe=ne(Se.source),ge=ne(he(Se));return"/"+xe+"/"+ge},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/function-uncurry-this"),ae=x("../internals/not-a-regexp"),ne=x("../internals/require-object-coercible"),oe=x("../internals/to-string"),he=x("../internals/correct-is-regexp-logic"),re=te("".indexOf);ie({target:"String",proto:!0,forced:!he("includes")},{includes:function(ce){return!!~re(oe(ne(this)),oe(ae(ce)),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(x,Te,ve){"use strict";var ie=x("../internals/string-multibyte").charAt,te=x("../internals/to-string"),ae=x("../internals/internal-state"),ne=x("../internals/define-iterator"),oe="String Iterator",he=ae.set,re=ae.getterFor(oe);ne(String,"String",function(se){he(this,{type:oe,string:te(se),index:0})},function(){var ce=re(this),fe=ce.string,pe=ce.index,le;return pe>=fe.length?{value:void 0,done:!0}:(le=ie(fe,pe),ce.index+=le.length,{value:le,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(x,Te,ve){"use strict";var ie=x("../internals/function-call"),te=x("../internals/fix-regexp-well-known-symbol-logic"),ae=x("../internals/an-object"),ne=x("../internals/to-length"),oe=x("../internals/to-string"),he=x("../internals/require-object-coercible"),re=x("../internals/get-method"),se=x("../internals/advance-string-index"),ce=x("../internals/regexp-exec-abstract");te("match",function(fe,pe,le){return[function(xe){var ge=he(this),Me=xe==null?void 0:re(xe,fe);return Me?ie(Me,xe,ge):new RegExp(xe)[fe](oe(ge))},function(Se){var xe=ae(this),ge=oe(Se),Me=le(pe,xe,ge);if(Me.done)return Me.value;if(!xe.global)return ce(xe,ge);var ye=xe.unicode;xe.lastIndex=0;for(var be=[],Fe=0,ke;(ke=ce(xe,ge))!==null;){var De=oe(ke[0]);be[Fe]=De,De===""&&(xe.lastIndex=se(ge,ne(xe.lastIndex),ye)),Fe++}return Fe===0?null:be}]})},{"../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(x,Te,ve){"use strict";var ie=x("../internals/function-apply"),te=x("../internals/function-call"),ae=x("../internals/function-uncurry-this"),ne=x("../internals/fix-regexp-well-known-symbol-logic"),oe=x("../internals/fails"),he=x("../internals/an-object"),re=x("../internals/is-callable"),se=x("../internals/to-integer-or-infinity"),ce=x("../internals/to-length"),fe=x("../internals/to-string"),pe=x("../internals/require-object-coercible"),le=x("../internals/advance-string-index"),Se=x("../internals/get-method"),xe=x("../internals/get-substitution"),ge=x("../internals/regexp-exec-abstract"),Me=x("../internals/well-known-symbol"),ye=Me("replace"),be=Math.max,Fe=Math.min,ke=ae([].concat),De=ae([].push),Le=ae("".indexOf),Ie=ae("".slice),Be=function(Ze){return Ze===void 0?Ze:String(Ze)},Ue=function(){return"a".replace(/./,"$0")==="$0"}(),_e=function(){return/./[ye]?/./[ye]("a","$0")==="":!1}(),We=!oe(function(){var Ze=/./;return Ze.exec=function(){var et=[];return et.groups={a:"7"},et},"".replace(Ze,"$<a>")!=="7"});ne("replace",function(Ze,et,it){var pt=_e?"$":"$0";return[function(Xe,lt){var dt=pe(this),st=Xe==null?void 0:Se(Xe,ye);return st?te(st,Xe,dt,lt):te(et,fe(dt),Xe,lt)},function(Ge,Xe){var lt=he(this),dt=fe(Ge);if(typeof Xe=="string"&&Le(Xe,pt)===-1&&Le(Xe,"$<")===-1){var st=it(et,lt,dt,Xe);if(st.done)return st.value}var nt=re(Xe);nt||(Xe=fe(Xe));var rt=lt.global;if(rt){var at=lt.unicode;lt.lastIndex=0}for(var gt=[];;){var vt=ge(lt,dt);if(vt===null||(De(gt,vt),!rt))break;var Et=fe(vt[0]);Et===""&&(lt.lastIndex=le(dt,ce(lt.lastIndex),at))}for(var At="",ut=0,Ye=0;Ye<gt.length;Ye++){vt=gt[Ye];for(var Ve=fe(vt[0]),de=be(Fe(se(vt.index),dt.length),0),Ce=[],He=1;He<vt.length;He++)De(Ce,Be(vt[He]));var je=vt.groups;if(nt){var Ae=ke([Ve],Ce,de,dt);je!==void 0&&De(Ae,je);var Ne=fe(ie(Xe,void 0,Ae))}else Ne=xe(Ve,dt,de,Ce,je,Xe);de>=ut&&(At+=Ie(dt,ut,de)+Ne,ut=de+Ve.length)}return At+Ie(dt,ut)}]},!We||!Ue||_e)},{"../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(x,Te,ve){"use strict";var ie=x("../internals/function-call"),te=x("../internals/fix-regexp-well-known-symbol-logic"),ae=x("../internals/an-object"),ne=x("../internals/require-object-coercible"),oe=x("../internals/same-value"),he=x("../internals/to-string"),re=x("../internals/get-method"),se=x("../internals/regexp-exec-abstract");te("search",function(ce,fe,pe){return[function(Se){var xe=ne(this),ge=Se==null?void 0:re(Se,ce);return ge?ie(ge,Se,xe):new RegExp(Se)[ce](he(xe))},function(le){var Se=ae(this),xe=he(le),ge=pe(fe,Se,xe);if(ge.done)return ge.value;var Me=Se.lastIndex;oe(Me,0)||(Se.lastIndex=0);var ye=se(Se,xe);return oe(Se.lastIndex,Me)||(Se.lastIndex=Me),ye===null?-1:ye.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(x,Te,ve){"use strict";var ie=x("../internals/function-apply"),te=x("../internals/function-call"),ae=x("../internals/function-uncurry-this"),ne=x("../internals/fix-regexp-well-known-symbol-logic"),oe=x("../internals/is-regexp"),he=x("../internals/an-object"),re=x("../internals/require-object-coercible"),se=x("../internals/species-constructor"),ce=x("../internals/advance-string-index"),fe=x("../internals/to-length"),pe=x("../internals/to-string"),le=x("../internals/get-method"),Se=x("../internals/array-slice-simple"),xe=x("../internals/regexp-exec-abstract"),ge=x("../internals/regexp-exec"),Me=x("../internals/regexp-sticky-helpers"),ye=x("../internals/fails"),be=Me.UNSUPPORTED_Y,Fe=4294967295,ke=Math.min,De=[].push,Le=ae(/./.exec),Ie=ae(De),Be=ae("".slice),Ue=!ye(function(){var _e=/(?:)/,We=_e.exec;_e.exec=function(){return We.apply(this,arguments)};var Ze="ab".split(_e);return Ze.length!==2||Ze[0]!=="a"||Ze[1]!=="b"});ne("split",function(_e,We,Ze){var et;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?et=function(it,pt){var Ge=pe(re(this)),Xe=pt===void 0?Fe:pt>>>0;if(Xe===0)return[];if(it===void 0)return[Ge];if(!oe(it))return te(We,Ge,it,Xe);for(var lt=[],dt=(it.ignoreCase?"i":"")+(it.multiline?"m":"")+(it.unicode?"u":"")+(it.sticky?"y":""),st=0,nt=new RegExp(it.source,dt+"g"),rt,at,gt;(rt=te(ge,nt,Ge))&&(at=nt.lastIndex,!(at>st&&(Ie(lt,Be(Ge,st,rt.index)),rt.length>1&&rt.index<Ge.length&&ie(De,lt,Se(rt,1)),gt=rt[0].length,st=at,lt.length>=Xe)));)nt.lastIndex===rt.index&&nt.lastIndex++;return st===Ge.length?(gt||!Le(nt,""))&&Ie(lt,""):Ie(lt,Be(Ge,st)),lt.length>Xe?Se(lt,0,Xe):lt}:"0".split(void 0,0).length?et=function(it,pt){return it===void 0&&pt===0?[]:te(We,this,it,pt)}:et=We,[function(pt,Ge){var Xe=re(this),lt=pt==null?void 0:le(pt,_e);return lt?te(lt,pt,Xe,Ge):te(et,pe(Xe),pt,Ge)},function(it,pt){var Ge=he(this),Xe=pe(it),lt=Ze(et,Ge,Xe,pt,et!==We);if(lt.done)return lt.value;var dt=se(Ge,RegExp),st=Ge.unicode,nt=(Ge.ignoreCase?"i":"")+(Ge.multiline?"m":"")+(Ge.unicode?"u":"")+(be?"g":"y"),rt=new dt(be?"^(?:"+Ge.source+")":Ge,nt),at=pt===void 0?Fe:pt>>>0;if(at===0)return[];if(Xe.length===0)return xe(rt,Xe)===null?[Xe]:[];for(var gt=0,vt=0,Et=[];vt<Xe.length;){rt.lastIndex=be?0:vt;var At=xe(rt,be?Be(Xe,vt):Xe),ut;if(At===null||(ut=ke(fe(rt.lastIndex+(be?vt:0)),Xe.length))===gt)vt=ce(Xe,vt,st);else{if(Ie(Et,Be(Xe,gt,vt)),Et.length===at)return Et;for(var Ye=1;Ye<=At.length-1;Ye++)if(Ie(Et,At[Ye]),Et.length===at)return Et;vt=gt=ut}}return Ie(Et,Be(Xe,gt)),Et}]},!Ue,be)},{"../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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/string-trim").trim,ae=x("../internals/string-trim-forced");ie({target:"String",proto:!0,forced:ae("trim")},{trim:function(){return te(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/global"),ae=x("../internals/function-call"),ne=x("../internals/function-uncurry-this"),oe=x("../internals/is-pure"),he=x("../internals/descriptors"),re=x("../internals/native-symbol"),se=x("../internals/fails"),ce=x("../internals/has-own-property"),fe=x("../internals/object-is-prototype-of"),pe=x("../internals/an-object"),le=x("../internals/to-indexed-object"),Se=x("../internals/to-property-key"),xe=x("../internals/to-string"),ge=x("../internals/create-property-descriptor"),Me=x("../internals/object-create"),ye=x("../internals/object-keys"),be=x("../internals/object-get-own-property-names"),Fe=x("../internals/object-get-own-property-names-external"),ke=x("../internals/object-get-own-property-symbols"),De=x("../internals/object-get-own-property-descriptor"),Le=x("../internals/object-define-property"),Ie=x("../internals/object-define-properties"),Be=x("../internals/object-property-is-enumerable"),Ue=x("../internals/redefine"),_e=x("../internals/shared"),We=x("../internals/shared-key"),Ze=x("../internals/hidden-keys"),et=x("../internals/uid"),it=x("../internals/well-known-symbol"),pt=x("../internals/well-known-symbol-wrapped"),Ge=x("../internals/define-well-known-symbol"),Xe=x("../internals/symbol-define-to-primitive"),lt=x("../internals/set-to-string-tag"),dt=x("../internals/internal-state"),st=x("../internals/array-iteration").forEach,nt=We("hidden"),rt="Symbol",at="prototype",gt=dt.set,vt=dt.getterFor(rt),Et=Object[at],At=te.Symbol,ut=At&&At[at],Ye=te.TypeError,Ve=te.QObject,de=De.f,Ce=Le.f,He=Fe.f,je=Be.f,Ae=ne([].push),Ne=_e("symbols"),ze=_e("op-symbols"),Qe=_e("wks"),ot=!Ve||!Ve[at]||!Ve[at].findChild,mt=he&&se(function(){return Me(Ce({},"a",{get:function(){return Ce(this,"a",{value:7}).a}})).a!=7})?function(Pt,zt,sn){var yn=de(Et,zt);yn&&delete Et[zt],Ce(Pt,zt,sn),yn&&Pt!==Et&&Ce(Et,zt,yn)}:Ce,Ot=function(Pt,zt){var sn=Ne[Pt]=Me(ut);return gt(sn,{type:rt,tag:Pt,description:zt}),he||(sn.description=zt),sn},xt=function(zt,sn,yn){zt===Et&&xt(ze,sn,yn),pe(zt);var kn=Se(sn);return pe(yn),ce(Ne,kn)?(yn.enumerable?(ce(zt,nt)&&zt[nt][kn]&&(zt[nt][kn]=!1),yn=Me(yn,{enumerable:ge(0,!1)})):(ce(zt,nt)||Ce(zt,nt,ge(1,{})),zt[nt][kn]=!0),mt(zt,kn,yn)):Ce(zt,kn,yn)},Ut=function(zt,sn){pe(zt);var yn=le(sn),kn=ye(yn).concat(bn(yn));return st(kn,function(Gn){(!he||ae(Ft,yn,Gn))&&xt(zt,Gn,yn[Gn])}),zt},xn=function(zt,sn){return sn===void 0?Me(zt):Ut(Me(zt),sn)},Ft=function(zt){var sn=Se(zt),yn=ae(je,this,sn);return this===Et&&ce(Ne,sn)&&!ce(ze,sn)?!1:yn||!ce(this,sn)||!ce(Ne,sn)||ce(this,nt)&&this[nt][sn]?yn:!0},Qt=function(zt,sn){var yn=le(zt),kn=Se(sn);if(!(yn===Et&&ce(Ne,kn)&&!ce(ze,kn))){var Gn=de(yn,kn);return Gn&&ce(Ne,kn)&&!(ce(yn,nt)&&yn[nt][kn])&&(Gn.enumerable=!0),Gn}},Zt=function(zt){var sn=He(le(zt)),yn=[];return st(sn,function(kn){!ce(Ne,kn)&&!ce(Ze,kn)&&Ae(yn,kn)}),yn},bn=function(Pt){var zt=Pt===Et,sn=He(zt?ze:le(Pt)),yn=[];return st(sn,function(kn){ce(Ne,kn)&&(!zt||ce(Et,kn))&&Ae(yn,Ne[kn])}),yn};re||(At=function(){if(fe(ut,this))throw Ye("Symbol is not a constructor");var zt=!arguments.length||arguments[0]===void 0?void 0:xe(arguments[0]),sn=et(zt),yn=function(kn){this===Et&&ae(yn,ze,kn),ce(this,nt)&&ce(this[nt],sn)&&(this[nt][sn]=!1),mt(this,sn,ge(1,kn))};return he&&ot&&mt(Et,sn,{configurable:!0,set:yn}),Ot(sn,zt)},ut=At[at],Ue(ut,"toString",function(){return vt(this).tag}),Ue(At,"withoutSetter",function(Pt){return Ot(et(Pt),Pt)}),Be.f=Ft,Le.f=xt,Ie.f=Ut,De.f=Qt,be.f=Fe.f=Zt,ke.f=bn,pt.f=function(Pt){return Ot(it(Pt),Pt)},he&&(Ce(ut,"description",{configurable:!0,get:function(){return vt(this).description}}),oe||Ue(Et,"propertyIsEnumerable",Ft,{unsafe:!0}))),ie({global:!0,wrap:!0,forced:!re,sham:!re},{Symbol:At}),st(ye(Qe),function(Pt){Ge(Pt)}),ie({target:rt,stat:!0,forced:!re},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),ie({target:"Object",stat:!0,forced:!re,sham:!he},{create:xn,defineProperty:xt,defineProperties:Ut,getOwnPropertyDescriptor:Qt}),ie({target:"Object",stat:!0,forced:!re},{getOwnPropertyNames:Zt}),Xe(),lt(At,rt),Ze[nt]=!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(x,Te,ve){"use strict";var ie=x("../internals/export"),te=x("../internals/descriptors"),ae=x("../internals/global"),ne=x("../internals/function-uncurry-this"),oe=x("../internals/has-own-property"),he=x("../internals/is-callable"),re=x("../internals/object-is-prototype-of"),se=x("../internals/to-string"),ce=x("../internals/object-define-property").f,fe=x("../internals/copy-constructor-properties"),pe=ae.Symbol,le=pe&&pe.prototype;if(te&&he(pe)&&(!("description"in le)||pe().description!==void 0)){var Se={},xe=function(){var Le=arguments.length<1||arguments[0]===void 0?void 0:se(arguments[0]),Ie=re(le,this)?new pe(Le):Le===void 0?pe():pe(Le);return Le===""&&(Se[Ie]=!0),Ie};fe(xe,pe),xe.prototype=le,le.constructor=xe;var ge=String(pe("test"))=="Symbol(test)",Me=ne(le.toString),ye=ne(le.valueOf),be=/^Symbol\((.*)\)[^)]+$/,Fe=ne("".replace),ke=ne("".slice);ce(le,"description",{configurable:!0,get:function(){var Le=ye(this),Ie=Me(Le);if(oe(Se,Le))return"";var Be=ge?ke(Ie,7,-1):Fe(Ie,be,"$1");return Be===""?void 0:Be}}),ie({global:!0,forced:!0},{Symbol:xe})}},{"../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(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/get-built-in"),ae=x("../internals/has-own-property"),ne=x("../internals/to-string"),oe=x("../internals/shared"),he=x("../internals/native-symbol-registry"),re=oe("string-to-symbol-registry"),se=oe("symbol-to-string-registry");ie({target:"Symbol",stat:!0,forced:!he},{for:function(ce){var fe=ne(ce);if(ae(re,fe))return re[fe];var pe=te("Symbol")(fe);return re[fe]=pe,se[pe]=fe,pe}})},{"../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(x,Te,ve){var ie=x("../internals/define-well-known-symbol");ie("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(x,Te,ve){x("../modules/es.symbol.constructor"),x("../modules/es.symbol.for"),x("../modules/es.symbol.key-for"),x("../modules/es.json.stringify"),x("../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(x,Te,ve){var ie=x("../internals/export"),te=x("../internals/has-own-property"),ae=x("../internals/is-symbol"),ne=x("../internals/try-to-string"),oe=x("../internals/shared"),he=x("../internals/native-symbol-registry"),re=oe("symbol-to-string-registry");ie({target:"Symbol",stat:!0,forced:!he},{keyFor:function(ce){if(!ae(ce))throw TypeError(ne(ce)+" is not a symbol");if(te(re,ce))return re[ce]}})},{"../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(x,Te,ve){"use strict";var ie=x("../internals/function-uncurry-this"),te=x("../internals/array-buffer-view-core"),ae=x("../internals/array-copy-within"),ne=ie(ae),oe=te.aTypedArray,he=te.exportTypedArrayMethod;he("copyWithin",function(se,ce){return ne(oe(this),se,ce,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(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-iteration").every,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("every",function(he){return te(ae(this),he,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/function-call"),ae=x("../internals/array-fill"),ne=ie.aTypedArray,oe=ie.exportTypedArrayMethod;oe("fill",function(re){var se=arguments.length;return te(ae,ne(this),re,se>1?arguments[1]:void 0,se>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-iteration").filter,ae=x("../internals/typed-array-from-species-and-list"),ne=ie.aTypedArray,oe=ie.exportTypedArrayMethod;oe("filter",function(re){var se=te(ne(this),re,arguments.length>1?arguments[1]:void 0);return ae(this,se)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-iteration").findIndex,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("findIndex",function(he){return te(ae(this),he,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-iteration").find,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("find",function(he){return te(ae(this),he,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-iteration").forEach,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("forEach",function(he){te(ae(this),he,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-includes").includes,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("includes",function(he){return te(ae(this),he,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-includes").indexOf,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("indexOf",function(he){return te(ae(this),he,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(x,Te,ve){"use strict";var ie=x("../internals/global"),te=x("../internals/fails"),ae=x("../internals/function-uncurry-this"),ne=x("../internals/array-buffer-view-core"),oe=x("../modules/es.array.iterator"),he=x("../internals/well-known-symbol"),re=he("iterator"),se=ie.Uint8Array,ce=ae(oe.values),fe=ae(oe.keys),pe=ae(oe.entries),le=ne.aTypedArray,Se=ne.exportTypedArrayMethod,xe=se&&se.prototype,ge=!te(function(){xe[re].call([1])}),Me=!!xe&&xe.values&&xe[re]===xe.values&&xe.values.name==="values",ye=function(){return ce(le(this))};Se("entries",function(){return pe(le(this))},ge),Se("keys",function(){return fe(le(this))},ge),Se("values",ye,ge||!Me,{name:"values"}),Se(re,ye,ge||!Me,{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(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/function-uncurry-this"),ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod,oe=te([].join);ne("join",function(re){return oe(ae(this),re)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/function-apply"),ae=x("../internals/array-last-index-of"),ne=ie.aTypedArray,oe=ie.exportTypedArrayMethod;oe("lastIndexOf",function(re){var se=arguments.length;return te(ae,ne(this),se>1?[re,arguments[1]]:[re])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-iteration").map,ae=x("../internals/typed-array-species-constructor"),ne=ie.aTypedArray,oe=ie.exportTypedArrayMethod;oe("map",function(re){return te(ne(this),re,arguments.length>1?arguments[1]:void 0,function(se,ce){return new(ae(se))(ce)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-reduce").right,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("reduceRight",function(he){var re=arguments.length;return te(ae(this),he,re,re>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-reduce").left,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("reduce",function(he){var re=arguments.length;return te(ae(this),he,re,re>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=ie.aTypedArray,ae=ie.exportTypedArrayMethod,ne=Math.floor;ae("reverse",function(){for(var he=this,re=te(he).length,se=ne(re/2),ce=0,fe;ce<se;)fe=he[ce],he[ce++]=he[--re],he[re]=fe;return he})},{"../internals/array-buffer-view-core":103}],331:[function(x,Te,ve){"use strict";var ie=x("../internals/global"),te=x("../internals/function-call"),ae=x("../internals/array-buffer-view-core"),ne=x("../internals/length-of-array-like"),oe=x("../internals/to-offset"),he=x("../internals/to-object"),re=x("../internals/fails"),se=ie.RangeError,ce=ie.Int8Array,fe=ce&&ce.prototype,pe=fe&&fe.set,le=ae.aTypedArray,Se=ae.exportTypedArrayMethod,xe=!re(function(){var Me=new Uint8ClampedArray(2);return te(pe,Me,{length:1,0:3},1),Me[1]!==3}),ge=xe&&ae.NATIVE_ARRAY_BUFFER_VIEWS&&re(function(){var Me=new ce(2);return Me.set(1),Me.set("2",1),Me[0]!==0||Me[1]!==2});Se("set",function(ye){le(this);var be=oe(arguments.length>1?arguments[1]:void 0,1),Fe=he(ye);if(xe)return te(pe,this,Fe,be);var ke=this.length,De=ne(Fe),Le=0;if(De+be>ke)throw se("Wrong length");for(;Le<De;)this[be+Le]=Fe[Le++]},!xe||ge)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/typed-array-species-constructor"),ae=x("../internals/fails"),ne=x("../internals/array-slice"),oe=ie.aTypedArray,he=ie.exportTypedArrayMethod,re=ae(function(){new Int8Array(1).slice()});he("slice",function(ce,fe){for(var pe=ne(oe(this),ce,fe),le=te(this),Se=0,xe=pe.length,ge=new le(xe);xe>Se;)ge[Se]=pe[Se++];return ge},re)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/array-iteration").some,ae=ie.aTypedArray,ne=ie.exportTypedArrayMethod;ne("some",function(he){return te(ae(this),he,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(x,Te,ve){"use strict";var ie=x("../internals/global"),te=x("../internals/function-uncurry-this"),ae=x("../internals/fails"),ne=x("../internals/a-callable"),oe=x("../internals/array-sort"),he=x("../internals/array-buffer-view-core"),re=x("../internals/engine-ff-version"),se=x("../internals/engine-is-ie-or-edge"),ce=x("../internals/engine-v8-version"),fe=x("../internals/engine-webkit-version"),pe=he.aTypedArray,le=he.exportTypedArrayMethod,Se=ie.Uint16Array,xe=Se&&te(Se.prototype.sort),ge=!!xe&&!(ae(function(){xe(new Se(2),null)})&&ae(function(){xe(new Se(2),{})})),Me=!!xe&&!ae(function(){if(ce)return ce<74;if(re)return re<67;if(se)return!0;if(fe)return fe<602;var be=new Se(516),Fe=Array(516),ke,De;for(ke=0;ke<516;ke++)De=ke%4,be[ke]=515-ke,Fe[ke]=ke-2*De+3;for(xe(be,function(Le,Ie){return(Le/4|0)-(Ie/4|0)}),ke=0;ke<516;ke++)if(be[ke]!==Fe[ke])return!0}),ye=function(be){return function(Fe,ke){return be!==void 0?+be(Fe,ke)||0:ke!==ke?-1:Fe!==Fe?1:Fe===0&&ke===0?1/Fe>0&&1/ke<0?1:-1:Fe>ke}};le("sort",function(Fe){return Fe!==void 0&&ne(Fe),Me?xe(this,Fe):oe(pe(this),ye(Fe))},!Me||ge)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core"),te=x("../internals/to-length"),ae=x("../internals/to-absolute-index"),ne=x("../internals/typed-array-species-constructor"),oe=ie.aTypedArray,he=ie.exportTypedArrayMethod;he("subarray",function(se,ce){var fe=oe(this),pe=fe.length,le=ae(se,pe),Se=ne(fe);return new Se(fe.buffer,fe.byteOffset+le*fe.BYTES_PER_ELEMENT,te((ce===void 0?pe:ae(ce,pe))-le))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(x,Te,ve){"use strict";var ie=x("../internals/global"),te=x("../internals/function-apply"),ae=x("../internals/array-buffer-view-core"),ne=x("../internals/fails"),oe=x("../internals/array-slice"),he=ie.Int8Array,re=ae.aTypedArray,se=ae.exportTypedArrayMethod,ce=[].toLocaleString,fe=!!he&&ne(function(){ce.call(new he(1))}),pe=ne(function(){return[1,2].toLocaleString()!=new he([1,2]).toLocaleString()})||!ne(function(){he.prototype.toLocaleString.call([1,2])});se("toLocaleString",function(){return te(ce,fe?oe(re(this)):re(this),oe(arguments))},pe)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(x,Te,ve){"use strict";var ie=x("../internals/array-buffer-view-core").exportTypedArrayMethod,te=x("../internals/fails"),ae=x("../internals/global"),ne=x("../internals/function-uncurry-this"),oe=ae.Uint8Array,he=oe&&oe.prototype||{},re=[].toString,se=ne([].join);te(function(){re.call({})})&&(re=function(){return se(this)});var ce=he.toString!=re;ie("toString",re,ce)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(x,Te,ve){var ie=x("../internals/typed-array-constructor");ie("Uint8",function(te){return function(ne,oe,he){return te(this,ne,oe,he)}})},{"../internals/typed-array-constructor":258}],339:[function(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/dom-iterables"),ae=x("../internals/dom-token-list-prototype"),ne=x("../internals/array-for-each"),oe=x("../internals/create-non-enumerable-property"),he=function(se){if(se&&se.forEach!==ne)try{oe(se,"forEach",ne)}catch(ce){se.forEach=ne}};for(var re in te)te[re]&&he(ie[re]&&ie[re].prototype);he(ae)},{"../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(x,Te,ve){var ie=x("../internals/global"),te=x("../internals/dom-iterables"),ae=x("../internals/dom-token-list-prototype"),ne=x("../modules/es.array.iterator"),oe=x("../internals/create-non-enumerable-property"),he=x("../internals/well-known-symbol"),re=he("iterator"),se=he("toStringTag"),ce=ne.values,fe=function(le,Se){if(le){if(le[re]!==ce)try{oe(le,re,ce)}catch(ge){le[re]=ce}if(le[se]||oe(le,se,Se),te[Se]){for(var xe in ne)if(le[xe]!==ne[xe])try{oe(le,xe,ne[xe])}catch(ge){le[xe]=ne[xe]}}}};for(var pe in te)fe(ie[pe]&&ie[pe].prototype,pe);fe(ae,"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(x,Te,ve){function ie(Me){return Array.isArray?Array.isArray(Me):ge(Me)==="[object Array]"}ve.isArray=ie;function te(Me){return typeof Me=="boolean"}ve.isBoolean=te;function ae(Me){return Me===null}ve.isNull=ae;function ne(Me){return Me==null}ve.isNullOrUndefined=ne;function oe(Me){return typeof Me=="number"}ve.isNumber=oe;function he(Me){return typeof Me=="string"}ve.isString=he;function re(Me){return typeof Me=="symbol"}ve.isSymbol=re;function se(Me){return Me===void 0}ve.isUndefined=se;function ce(Me){return ge(Me)==="[object RegExp]"}ve.isRegExp=ce;function fe(Me){return typeof Me=="object"&&Me!==null}ve.isObject=fe;function pe(Me){return ge(Me)==="[object Date]"}ve.isDate=pe;function le(Me){return ge(Me)==="[object Error]"||Me instanceof Error}ve.isError=le;function Se(Me){return typeof Me=="function"}ve.isFunction=Se;function xe(Me){return Me===null||typeof Me=="boolean"||typeof Me=="number"||typeof Me=="string"||typeof Me=="symbol"||typeof Me=="undefined"}ve.isPrimitive=xe,ve.isBuffer=x("buffer").Buffer.isBuffer;function ge(Me){return Object.prototype.toString.call(Me)}},{buffer:90}],342:[function(x,Te,ve){(function(ie){"use strict";var te=function(){var re=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,se=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ce=/[^-+\dA-Z]/g;return function(fe,pe,le,Se){if(arguments.length===1&&he(fe)==="string"&&!/\d/.test(fe)&&(pe=fe,fe=void 0),fe=fe||new Date,fe instanceof Date||(fe=new Date(fe)),isNaN(fe))throw TypeError("Invalid date");pe=String(te.masks[pe]||pe||te.masks.default);var xe=pe.slice(0,4);(xe==="UTC:"||xe==="GMT:")&&(pe=pe.slice(4),le=!0,xe==="GMT:"&&(Se=!0));var ge=le?"getUTC":"get",Me=fe[ge+"Date"](),ye=fe[ge+"Day"](),be=fe[ge+"Month"](),Fe=fe[ge+"FullYear"](),ke=fe[ge+"Hours"](),De=fe[ge+"Minutes"](),Le=fe[ge+"Seconds"](),Ie=fe[ge+"Milliseconds"](),Be=le?0:fe.getTimezoneOffset(),Ue=ne(fe),_e=oe(fe),We={d:Me,dd:ae(Me),ddd:te.i18n.dayNames[ye],dddd:te.i18n.dayNames[ye+7],m:be+1,mm:ae(be+1),mmm:te.i18n.monthNames[be],mmmm:te.i18n.monthNames[be+12],yy:String(Fe).slice(2),yyyy:Fe,h:ke%12||12,hh:ae(ke%12||12),H:ke,HH:ae(ke),M:De,MM:ae(De),s:Le,ss:ae(Le),l:ae(Ie,3),L:ae(Math.round(Ie/10)),t:ke<12?"a":"p",tt:ke<12?"am":"pm",T:ke<12?"A":"P",TT:ke<12?"AM":"PM",Z:Se?"GMT":le?"UTC":(String(fe).match(se)||[""]).pop().replace(ce,""),o:(Be>0?"-":"+")+ae(Math.floor(Math.abs(Be)/60)*100+Math.abs(Be)%60,4),S:["th","st","nd","rd"][Me%10>3?0:(Me%100-Me%10!=10)*Me%10],W:Ue,N:_e};return pe.replace(re,function(Ze){return Ze in We?We[Ze]:Ze.slice(1,Ze.length-1)})}}();te.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"},te.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 ae(re,se){for(re=String(re),se=se||2;re.length<se;)re="0"+re;return re}function ne(re){var se=new Date(re.getFullYear(),re.getMonth(),re.getDate());se.setDate(se.getDate()-(se.getDay()+6)%7+3);var ce=new Date(se.getFullYear(),0,4);ce.setDate(ce.getDate()-(ce.getDay()+6)%7+3);var fe=se.getTimezoneOffset()-ce.getTimezoneOffset();se.setHours(se.getHours()-fe);var pe=(se-ce)/(864e5*7);return 1+Math.floor(pe)}function oe(re){var se=re.getDay();return se===0&&(se=7),se}function he(re){return re===null?"null":re===void 0?"undefined":typeof re!="object"?typeof re:Array.isArray(re)?"array":{}.toString.call(re).slice(8,-1).toLowerCase()}typeof me=="function"&&me.amd?me(function(){return te}):typeof ve=="object"?Te.exports=te:ie.dateFormat=te})(this)},{}],343:[function(x,Te,ve){"use strict";var ie=/["'&<>]/;Te.exports=te;function te(ae){var ne=""+ae,oe=ie.exec(ne);if(!oe)return ne;var he,re="",se=0,ce=0;for(se=oe.index;se<ne.length;se++){switch(ne.charCodeAt(se)){case 34:he=""";break;case 38:he="&";break;case 39:he="'";break;case 60:he="<";break;case 62:he=">";break;default:continue}ce!==se&&(re+=ne.substring(ce,se)),ce=se+1,re+=he}return ce!==se?re+ne.substring(ce,se):re}},{}],344:[function(x,Te,ve){"use strict";var ie=typeof Reflect=="object"?Reflect:null,te=ie&&typeof ie.apply=="function"?ie.apply:function(Le,Ie,Be){return Function.prototype.apply.call(Le,Ie,Be)},ae;ie&&typeof ie.ownKeys=="function"?ae=ie.ownKeys:Object.getOwnPropertySymbols?ae=function(Le){return Object.getOwnPropertyNames(Le).concat(Object.getOwnPropertySymbols(Le))}:ae=function(Le){return Object.getOwnPropertyNames(Le)};function ne(De){console&&console.warn&&console.warn(De)}var oe=Number.isNaN||function(Le){return Le!==Le};function he(){he.init.call(this)}Te.exports=he,Te.exports.once=be,he.EventEmitter=he,he.prototype._events=void 0,he.prototype._eventsCount=0,he.prototype._maxListeners=void 0;var re=10;function se(De){if(typeof De!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof De)}Object.defineProperty(he,"defaultMaxListeners",{enumerable:!0,get:function(){return re},set:function(De){if(typeof De!="number"||De<0||oe(De))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+De+".");re=De}}),he.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},he.prototype.setMaxListeners=function(Le){if(typeof Le!="number"||Le<0||oe(Le))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Le+".");return this._maxListeners=Le,this};function ce(De){return De._maxListeners===void 0?he.defaultMaxListeners:De._maxListeners}he.prototype.getMaxListeners=function(){return ce(this)},he.prototype.emit=function(Le){for(var Ie=[],Be=1;Be<arguments.length;Be++)Ie.push(arguments[Be]);var Ue=Le==="error",_e=this._events;if(_e!==void 0)Ue=Ue&&_e.error===void 0;else if(!Ue)return!1;if(Ue){var We;if(Ie.length>0&&(We=Ie[0]),We instanceof Error)throw We;var Ze=new Error("Unhandled error."+(We?" ("+We.message+")":""));throw Ze.context=We,Ze}var et=_e[Le];if(et===void 0)return!1;if(typeof et=="function")te(et,this,Ie);else for(var it=et.length,pt=ge(et,it),Be=0;Be<it;++Be)te(pt[Be],this,Ie);return!0};function fe(De,Le,Ie,Be){var Ue,_e,We;if(se(Ie),_e=De._events,_e===void 0?(_e=De._events=Object.create(null),De._eventsCount=0):(_e.newListener!==void 0&&(De.emit("newListener",Le,Ie.listener?Ie.listener:Ie),_e=De._events),We=_e[Le]),We===void 0)We=_e[Le]=Ie,++De._eventsCount;else if(typeof We=="function"?We=_e[Le]=Be?[Ie,We]:[We,Ie]:Be?We.unshift(Ie):We.push(Ie),Ue=ce(De),Ue>0&&We.length>Ue&&!We.warned){We.warned=!0;var Ze=new Error("Possible EventEmitter memory leak detected. "+We.length+" "+String(Le)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ze.name="MaxListenersExceededWarning",Ze.emitter=De,Ze.type=Le,Ze.count=We.length,ne(Ze)}return De}he.prototype.addListener=function(Le,Ie){return fe(this,Le,Ie,!1)},he.prototype.on=he.prototype.addListener,he.prototype.prependListener=function(Le,Ie){return fe(this,Le,Ie,!0)};function pe(){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 le(De,Le,Ie){var Be={fired:!1,wrapFn:void 0,target:De,type:Le,listener:Ie},Ue=pe.bind(Be);return Ue.listener=Ie,Be.wrapFn=Ue,Ue}he.prototype.once=function(Le,Ie){return se(Ie),this.on(Le,le(this,Le,Ie)),this},he.prototype.prependOnceListener=function(Le,Ie){return se(Ie),this.prependListener(Le,le(this,Le,Ie)),this},he.prototype.removeListener=function(Le,Ie){var Be,Ue,_e,We,Ze;if(se(Ie),Ue=this._events,Ue===void 0)return this;if(Be=Ue[Le],Be===void 0)return this;if(Be===Ie||Be.listener===Ie)--this._eventsCount===0?this._events=Object.create(null):(delete Ue[Le],Ue.removeListener&&this.emit("removeListener",Le,Be.listener||Ie));else if(typeof Be!="function"){for(_e=-1,We=Be.length-1;We>=0;We--)if(Be[We]===Ie||Be[We].listener===Ie){Ze=Be[We].listener,_e=We;break}if(_e<0)return this;_e===0?Be.shift():Me(Be,_e),Be.length===1&&(Ue[Le]=Be[0]),Ue.removeListener!==void 0&&this.emit("removeListener",Le,Ze||Ie)}return this},he.prototype.off=he.prototype.removeListener,he.prototype.removeAllListeners=function(Le){var Ie,Be,Ue;if(Be=this._events,Be===void 0)return this;if(Be.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Be[Le]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Be[Le]),this;if(arguments.length===0){var _e=Object.keys(Be),We;for(Ue=0;Ue<_e.length;++Ue)We=_e[Ue],We!=="removeListener"&&this.removeAllListeners(We);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ie=Be[Le],typeof Ie=="function")this.removeListener(Le,Ie);else if(Ie!==void 0)for(Ue=Ie.length-1;Ue>=0;Ue--)this.removeListener(Le,Ie[Ue]);return this};function Se(De,Le,Ie){var Be=De._events;if(Be===void 0)return[];var Ue=Be[Le];return Ue===void 0?[]:typeof Ue=="function"?Ie?[Ue.listener||Ue]:[Ue]:Ie?ye(Ue):ge(Ue,Ue.length)}he.prototype.listeners=function(Le){return Se(this,Le,!0)},he.prototype.rawListeners=function(Le){return Se(this,Le,!1)},he.listenerCount=function(De,Le){return typeof De.listenerCount=="function"?De.listenerCount(Le):xe.call(De,Le)},he.prototype.listenerCount=xe;function xe(De){var Le=this._events;if(Le!==void 0){var Ie=Le[De];if(typeof Ie=="function")return 1;if(Ie!==void 0)return Ie.length}return 0}he.prototype.eventNames=function(){return this._eventsCount>0?ae(this._events):[]};function ge(De,Le){for(var Ie=new Array(Le),Be=0;Be<Le;++Be)Ie[Be]=De[Be];return Ie}function Me(De,Le){for(;Le+1<De.length;Le++)De[Le]=De[Le+1];De.pop()}function ye(De){for(var Le=new Array(De.length),Ie=0;Ie<Le.length;++Ie)Le[Ie]=De[Ie].listener||De[Ie];return Le}function be(De,Le){return new Promise(function(Ie,Be){function Ue(We){De.removeListener(Le,_e),Be(We)}function _e(){typeof De.removeListener=="function"&&De.removeListener("error",Ue),Ie([].slice.call(arguments))}ke(De,Le,_e,{once:!0}),Le!=="error"&&Fe(De,Ue,{once:!0})})}function Fe(De,Le,Ie){typeof De.on=="function"&&ke(De,"error",Le,Ie)}function ke(De,Le,Ie,Be){if(typeof De.on=="function")Be.once?De.once(Le,Ie):De.on(Le,Ie);else if(typeof De.addEventListener=="function")De.addEventListener(Le,function Ue(_e){Be.once&&De.removeEventListener(Le,Ue),Ie(_e)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof De)}},{}],345:[function(x,Te,ve){"use strict";var ie=x("is-callable"),te=Object.prototype.toString,ae=Object.prototype.hasOwnProperty,ne=function(ce,fe,pe){for(var le=0,Se=ce.length;le<Se;le++)ae.call(ce,le)&&(pe==null?fe(ce[le],le,ce):fe.call(pe,ce[le],le,ce))},oe=function(ce,fe,pe){for(var le=0,Se=ce.length;le<Se;le++)pe==null?fe(ce.charAt(le),le,ce):fe.call(pe,ce.charAt(le),le,ce)},he=function(ce,fe,pe){for(var le in ce)ae.call(ce,le)&&(pe==null?fe(ce[le],le,ce):fe.call(pe,ce[le],le,ce))},re=function(ce,fe,pe){if(!ie(fe))throw new TypeError("iterator must be a function");var le;arguments.length>=3&&(le=pe),te.call(ce)==="[object Array]"?ne(ce,fe,le):typeof ce=="string"?oe(ce,fe,le):he(ce,fe,le)};Te.exports=re},{"is-callable":367}],346:[function(x,Te,ve){"use strict";var ie="Function.prototype.bind called on incompatible ",te=Array.prototype.slice,ae=Object.prototype.toString,ne="[object Function]";Te.exports=function(he){var re=this;if(typeof re!="function"||ae.call(re)!==ne)throw new TypeError(ie+re);for(var se=te.call(arguments,1),ce,fe=function(){if(this instanceof ce){var ge=re.apply(this,se.concat(te.call(arguments)));return Object(ge)===ge?ge:this}else return re.apply(he,se.concat(te.call(arguments)))},pe=Math.max(0,re.length-se.length),le=[],Se=0;Se<pe;Se++)le.push("$"+Se);if(ce=Function("binder","return function ("+le.join(",")+"){ return binder.apply(this,arguments); }")(fe),re.prototype){var xe=function(){};xe.prototype=re.prototype,ce.prototype=new xe,xe.prototype=null}return ce}},{}],347:[function(x,Te,ve){"use strict";var ie=x("./implementation");Te.exports=Function.prototype.bind||ie},{"./implementation":346}],348:[function(x,Te,ve){"use strict";var ie,te=SyntaxError,ae=Function,ne=TypeError,oe=function(et){try{return ae('"use strict"; return ('+et+").constructor;")()}catch(it){}},he=Object.getOwnPropertyDescriptor;if(he)try{he({},"")}catch(et){he=null}var re=function(){throw new ne},se=he?function(){try{return arguments.callee,re}catch(et){try{return he(arguments,"callee").get}catch(it){return re}}}():re,ce=x("has-symbols")(),fe=x("has-proto")(),pe=Object.getPrototypeOf||(fe?function(et){return et.__proto__}:null),le={},Se=typeof Uint8Array=="undefined"||!pe?ie:pe(Uint8Array),xe={"%AggregateError%":typeof AggregateError=="undefined"?ie:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ie:ArrayBuffer,"%ArrayIteratorPrototype%":ce&&pe?pe([][Symbol.iterator]()):ie,"%AsyncFromSyncIteratorPrototype%":ie,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics=="undefined"?ie:Atomics,"%BigInt%":typeof BigInt=="undefined"?ie:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ie:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ie:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ie:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ie:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ie:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ie:FinalizationRegistry,"%Function%":ae,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array=="undefined"?ie:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ie:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ie:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ce&&pe?pe(pe([][Symbol.iterator]())):ie,"%JSON%":typeof JSON=="object"?JSON:ie,"%Map%":typeof Map=="undefined"?ie:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ce||!pe?ie:pe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ie:Promise,"%Proxy%":typeof Proxy=="undefined"?ie:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ie:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ie:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ce||!pe?ie:pe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ie:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ce&&pe?pe(""[Symbol.iterator]()):ie,"%Symbol%":ce?Symbol:ie,"%SyntaxError%":te,"%ThrowTypeError%":se,"%TypedArray%":Se,"%TypeError%":ne,"%Uint8Array%":typeof Uint8Array=="undefined"?ie:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ie:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ie:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ie:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ie:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ie:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ie:WeakSet};if(pe)try{null.error}catch(et){var ge=pe(pe(et));xe["%Error.prototype%"]=ge}var Me=function et(it){var pt;if(it==="%AsyncFunction%")pt=oe("async function () {}");else if(it==="%GeneratorFunction%")pt=oe("function* () {}");else if(it==="%AsyncGeneratorFunction%")pt=oe("async function* () {}");else if(it==="%AsyncGenerator%"){var Ge=et("%AsyncGeneratorFunction%");Ge&&(pt=Ge.prototype)}else if(it==="%AsyncIteratorPrototype%"){var Xe=et("%AsyncGenerator%");Xe&&pe&&(pt=pe(Xe.prototype))}return xe[it]=pt,pt},ye={"%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"]},be=x("function-bind"),Fe=x("has"),ke=be.call(Function.call,Array.prototype.concat),De=be.call(Function.apply,Array.prototype.splice),Le=be.call(Function.call,String.prototype.replace),Ie=be.call(Function.call,String.prototype.slice),Be=be.call(Function.call,RegExp.prototype.exec),Ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,We=function(it){var pt=Ie(it,0,1),Ge=Ie(it,-1);if(pt==="%"&&Ge!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(Ge==="%"&&pt!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var Xe=[];return Le(it,Ue,function(lt,dt,st,nt){Xe[Xe.length]=st?Le(nt,_e,"$1"):dt||lt}),Xe},Ze=function(it,pt){var Ge=it,Xe;if(Fe(ye,Ge)&&(Xe=ye[Ge],Ge="%"+Xe[0]+"%"),Fe(xe,Ge)){var lt=xe[Ge];if(lt===le&&(lt=Me(Ge)),typeof lt=="undefined"&&!pt)throw new ne("intrinsic "+it+" exists, but is not available. Please file an issue!");return{alias:Xe,name:Ge,value:lt}}throw new te("intrinsic "+it+" does not exist!")};Te.exports=function(it,pt){if(typeof it!="string"||it.length===0)throw new ne("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof pt!="boolean")throw new ne('"allowMissing" argument must be a boolean');if(Be(/^%?[^%]*%?$/,it)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ge=We(it),Xe=Ge.length>0?Ge[0]:"",lt=Ze("%"+Xe+"%",pt),dt=lt.name,st=lt.value,nt=!1,rt=lt.alias;rt&&(Xe=rt[0],De(Ge,ke([0,1],rt)));for(var at=1,gt=!0;at<Ge.length;at+=1){var vt=Ge[at],Et=Ie(vt,0,1),At=Ie(vt,-1);if((Et==='"'||Et==="'"||Et==="`"||At==='"'||At==="'"||At==="`")&&Et!==At)throw new te("property names with quotes must have matching quotes");if((vt==="constructor"||!gt)&&(nt=!0),Xe+="."+vt,dt="%"+Xe+"%",Fe(xe,dt))st=xe[dt];else if(st!=null){if(!(vt in st)){if(!pt)throw new ne("base intrinsic for "+it+" exists, but the property is not available.");return}if(he&&at+1>=Ge.length){var ut=he(st,vt);gt=!!ut,gt&&"get"in ut&&!("originalValue"in ut.get)?st=ut.get:st=st[vt]}else gt=Fe(st,vt),st=st[vt];gt&&!nt&&(xe[dt]=st)}}return st}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(x,Te,ve){"use strict";var ie=x("get-intrinsic"),te=ie("%Object.getOwnPropertyDescriptor%",!0);if(te)try{te([],"length")}catch(ae){te=null}Te.exports=te},{"get-intrinsic":348}],350:[function(x,Te,ve){"use strict";var ie={foo:{}},te=Object;Te.exports=function(){return{__proto__:ie}.foo===ie.foo&&!({__proto__:null}instanceof te)}},{}],351:[function(x,Te,ve){"use strict";var ie=typeof Symbol!="undefined"&&Symbol,te=x("./shams");Te.exports=function(){return typeof ie!="function"||typeof Symbol!="function"||typeof ie("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:te()}},{"./shams":352}],352:[function(x,Te,ve){"use strict";Te.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var te={},ae=Symbol("test"),ne=Object(ae);if(typeof ae=="string"||Object.prototype.toString.call(ae)!=="[object Symbol]"||Object.prototype.toString.call(ne)!=="[object Symbol]")return!1;var oe=42;te[ae]=oe;for(ae in te)return!1;if(typeof Object.keys=="function"&&Object.keys(te).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(te).length!==0)return!1;var he=Object.getOwnPropertySymbols(te);if(he.length!==1||he[0]!==ae||!Object.prototype.propertyIsEnumerable.call(te,ae))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var re=Object.getOwnPropertyDescriptor(te,ae);if(re.value!==oe||re.enumerable!==!0)return!1}return!0}},{}],353:[function(x,Te,ve){"use strict";var ie=x("has-symbols/shams");Te.exports=function(){return ie()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(x,Te,ve){"use strict";var ie=x("function-bind");Te.exports=ie.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(x,Te,ve){var ie=x("http"),te=x("url"),ae=Te.exports;for(var ne in ie)ie.hasOwnProperty(ne)&&(ae[ne]=ie[ne]);ae.request=function(he,re){return he=oe(he),ie.request.call(this,he,re)},ae.get=function(he,re){return he=oe(he),ie.get.call(this,he,re)};function oe(he){if(typeof he=="string"&&(he=te.parse(he)),he.protocol||(he.protocol="https:"),he.protocol!=="https:")throw new Error('Protocol "'+he.protocol+'" not supported. Expected "https:"');return he}},{http:468,url:472}],356:[function(x,Te,ve){"use strict";var ie=x("util"),te=x("ms");Te.exports=function(ae){if(typeof ae=="number")return ae;var ne=te(ae);if(ne===void 0){var oe=new Error(ie.format("humanize-ms(%j) result undefined",ae));console.warn(oe.stack)}return ne}},{ms:376,util:419}],357:[function(x,Te,ve){ve.read=function(ie,te,ae,ne,oe){var he,re,se=oe*8-ne-1,ce=(1<<se)-1,fe=ce>>1,pe=-7,le=ae?oe-1:0,Se=ae?-1:1,xe=ie[te+le];for(le+=Se,he=xe&(1<<-pe)-1,xe>>=-pe,pe+=se;pe>0;he=he*256+ie[te+le],le+=Se,pe-=8);for(re=he&(1<<-pe)-1,he>>=-pe,pe+=ne;pe>0;re=re*256+ie[te+le],le+=Se,pe-=8);if(he===0)he=1-fe;else{if(he===ce)return re?NaN:(xe?-1:1)*(1/0);re=re+Math.pow(2,ne),he=he-fe}return(xe?-1:1)*re*Math.pow(2,he-ne)},ve.write=function(ie,te,ae,ne,oe,he){var re,se,ce,fe=he*8-oe-1,pe=(1<<fe)-1,le=pe>>1,Se=oe===23?Math.pow(2,-24)-Math.pow(2,-77):0,xe=ne?0:he-1,ge=ne?1:-1,Me=te<0||te===0&&1/te<0?1:0;for(te=Math.abs(te),isNaN(te)||te===1/0?(se=isNaN(te)?1:0,re=pe):(re=Math.floor(Math.log(te)/Math.LN2),te*(ce=Math.pow(2,-re))<1&&(re--,ce*=2),re+le>=1?te+=Se/ce:te+=Se*Math.pow(2,1-le),te*ce>=2&&(re++,ce/=2),re+le>=pe?(se=0,re=pe):re+le>=1?(se=(te*ce-1)*Math.pow(2,oe),re=re+le):(se=te*Math.pow(2,le-1)*Math.pow(2,oe),re=0));oe>=8;ie[ae+xe]=se&255,xe+=ge,se/=256,oe-=8);for(re=re<<oe|se,fe+=oe;fe>0;ie[ae+xe]=re&255,xe+=ge,re/=256,fe-=8);ie[ae+xe-ge]|=Me*128}},{}],358:[function(x,Te,ve){"use strict";var ie=[x("./nextTick"),x("./queueMicrotask"),x("./mutation.js"),x("./messageChannel"),x("./stateChange"),x("./timeout")],te,ae,ne=-1,oe=[],he=!1;function re(){!te||!ae||(te=!1,ae.length?oe=ae.concat(oe):ne=-1,oe.length&&se())}function se(){if(!te){he=!1,te=!0;for(var xe=oe.length,ge=setTimeout(re);xe;){for(ae=oe,oe=[];ae&&++ne<xe;)ae[ne].run();ne=-1,xe=oe.length}ae=null,ne=-1,te=!1,clearTimeout(ge)}}for(var ce,fe=-1,pe=ie.length;++fe<pe;)if(ie[fe]&&ie[fe].test&&ie[fe].test()){ce=ie[fe].install(se);break}function le(xe,ge){this.fun=xe,this.array=ge}le.prototype.run=function(){var xe=this.fun,ge=this.array;switch(ge.length){case 0:return xe();case 1:return xe(ge[0]);case 2:return xe(ge[0],ge[1]);case 3:return xe(ge[0],ge[1],ge[2]);default:return xe.apply(null,ge)}},Te.exports=Se;function Se(xe){var ge=new Array(arguments.length-1);if(arguments.length>1)for(var Me=1;Me<arguments.length;Me++)ge[Me-1]=arguments[Me];oe.push(new le(xe,ge)),!he&&!te&&(he=!0,ce())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(x,Te,ve){(function(ie){(function(){"use strict";ve.test=function(){return ie.setImmediate?!1:typeof ie.MessageChannel!="undefined"},ve.install=function(te){var ae=new ie.MessageChannel;return ae.port1.onmessage=te,function(){ae.port2.postMessage(0)}}}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(x,Te,ve){(function(ie){(function(){"use strict";var te=ie.MutationObserver||ie.WebKitMutationObserver;ve.test=function(){return te},ve.install=function(ae){var ne=0,oe=new te(ae),he=ie.document.createTextNode("");return oe.observe(he,{characterData:!0}),function(){he.data=ne=++ne%2}}}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(x,Te,ve){(function(ie){(function(){"use strict";ve.test=function(){return typeof ie.queueMicrotask=="function"},ve.install=function(te){return function(){ie.queueMicrotask(te)}}}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(x,Te,ve){(function(ie){(function(){"use strict";ve.test=function(){return"document"in ie&&"onreadystatechange"in ie.document.createElement("script")},ve.install=function(te){return function(){var ae=ie.document.createElement("script");return ae.onreadystatechange=function(){te(),ae.onreadystatechange=null,ae.parentNode.removeChild(ae),ae=null},ie.document.documentElement.appendChild(ae),te}}}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(x,Te,ve){"use strict";ve.test=function(){return!0},ve.install=function(ie){return function(){setTimeout(ie,0)}}},{}],364:[function(x,Te,ve){typeof Object.create=="function"?Te.exports=function(te,ae){ae&&(te.super_=ae,te.prototype=Object.create(ae.prototype,{constructor:{value:te,enumerable:!1,writable:!0,configurable:!0}}))}:Te.exports=function(te,ae){if(ae){te.super_=ae;var ne=function(){};ne.prototype=ae.prototype,te.prototype=new ne,te.prototype.constructor=te}}},{}],365:[function(x,Te,ve){"use strict";var ie=x("has-tostringtag/shams")(),te=x("call-bind/callBound"),ae=te("Object.prototype.toString"),ne=function(se){return ie&&se&&typeof se=="object"&&Symbol.toStringTag in se?!1:ae(se)==="[object Arguments]"},oe=function(se){return ne(se)?!0:se!==null&&typeof se=="object"&&typeof se.length=="number"&&se.length>=0&&ae(se)!=="[object Array]"&&ae(se.callee)==="[object Function]"},he=function(){return ne(arguments)}();ne.isLegacyArguments=oe,Te.exports=he?ne:oe},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(x,Te,ve){Te.exports=function(ae){return ae!=null&&(ie(ae)||te(ae)||!!ae._isBuffer)};function ie(ae){return!!ae.constructor&&typeof ae.constructor.isBuffer=="function"&&ae.constructor.isBuffer(ae)}function te(ae){return typeof ae.readFloatLE=="function"&&typeof ae.slice=="function"&&ie(ae.slice(0,0))}},{}],367:[function(x,Te,ve){"use strict";var ie=Function.prototype.toString,te=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ae,ne;if(typeof te=="function"&&typeof Object.defineProperty=="function")try{ae=Object.defineProperty({},"length",{get:function(){throw ne}}),ne={},te(function(){throw 42},null,ae)}catch(Fe){Fe!==ne&&(te=null)}else te=null;var oe=/^\s*class\b/,he=function(ke){try{var De=ie.call(ke);return oe.test(De)}catch(Le){return!1}},re=function(ke){try{return he(ke)?!1:(ie.call(ke),!0)}catch(De){return!1}},se=Object.prototype.toString,ce="[object Object]",fe="[object Function]",pe="[object GeneratorFunction]",le="[object HTMLAllCollection]",Se="[object HTML document.all class]",xe="[object HTMLCollection]",ge=typeof Symbol=="function"&&!!Symbol.toStringTag,Me=!(0 in[,]),ye=function(){return!1};if(typeof document=="object"){var be=document.all;se.call(be)===se.call(document.all)&&(ye=function(ke){if((Me||!ke)&&(typeof ke=="undefined"||typeof ke=="object"))try{var De=se.call(ke);return(De===le||De===Se||De===xe||De===ce)&&ke("")==null}catch(Le){}return!1})}Te.exports=te?function(ke){if(ye(ke))return!0;if(!ke||typeof ke!="function"&&typeof ke!="object")return!1;try{te(ke,null,ae)}catch(De){if(De!==ne)return!1}return!he(ke)&&re(ke)}:function(ke){if(ye(ke))return!0;if(!ke||typeof ke!="function"&&typeof ke!="object")return!1;if(ge)return re(ke);if(he(ke))return!1;var De=se.call(ke);return De!==fe&&De!==pe&&!/^\[object HTML/.test(De)?!1:re(ke)}},{}],368:[function(x,Te,ve){"use strict";var ie=Object.prototype.toString,te=Function.prototype.toString,ae=/^\s*(?:function)?\*/,ne=x("has-tostringtag/shams")(),oe=Object.getPrototypeOf,he=function(){if(!ne)return!1;try{return Function("return function*() {}")()}catch(se){}},re;Te.exports=function(ce){if(typeof ce!="function")return!1;if(ae.test(te.call(ce)))return!0;if(!ne){var fe=ie.call(ce);return fe==="[object GeneratorFunction]"}if(!oe)return!1;if(typeof re=="undefined"){var pe=he();re=pe?oe(pe):!1}return oe(ce)===re}},{"has-tostringtag/shams":353}],369:[function(x,Te,ve){"use strict";var ie=x("which-typed-array");Te.exports=function(ae){return!!ie(ae)}},{"which-typed-array":420}],370:[function(x,Te,ve){var ie={}.toString;Te.exports=Array.isArray||function(te){return ie.call(te)=="[object Array]"}},{}],371:[function(x,Te,ve){(function(ie){(function(){(function(te,ae){typeof ve=="object"&&typeof Te!="undefined"?Te.exports=ae(te):typeof me=="function"&&me.amd?me(ae):ae(te)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ie!="undefined"?ie:this,function(te){"use strict";te=te||{};var ae=te.Base64,ne="2.6.4",oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=function(it){for(var pt={},Ge=0,Xe=it.length;Ge<Xe;Ge++)pt[it.charAt(Ge)]=Ge;return pt}(oe),re=String.fromCharCode,se=function(it){if(it.length<2){var pt=it.charCodeAt(0);return pt<128?it:pt<2048?re(192|pt>>>6)+re(128|pt&63):re(224|pt>>>12&15)+re(128|pt>>>6&63)+re(128|pt&63)}else{var pt=65536+(it.charCodeAt(0)-55296)*1024+(it.charCodeAt(1)-56320);return re(240|pt>>>18&7)+re(128|pt>>>12&63)+re(128|pt>>>6&63)+re(128|pt&63)}},ce=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fe=function(it){return it.replace(ce,se)},pe=function(it){var pt=[0,2,1][it.length%3],Ge=it.charCodeAt(0)<<16|(it.length>1?it.charCodeAt(1):0)<<8|(it.length>2?it.charCodeAt(2):0),Xe=[oe.charAt(Ge>>>18),oe.charAt(Ge>>>12&63),pt>=2?"=":oe.charAt(Ge>>>6&63),pt>=1?"=":oe.charAt(Ge&63)];return Xe.join("")},le=te.btoa&&typeof te.btoa=="function"?function(it){return te.btoa(it)}:function(it){if(it.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return it.replace(/[\s\S]{1,3}/g,pe)},Se=function(it){return le(fe(String(it)))},xe=function(it){return it.replace(/[+\/]/g,function(pt){return pt=="+"?"-":"_"}).replace(/=/g,"")},ge=function(it,pt){return pt?xe(Se(it)):Se(it)},Me=function(it){return ge(it,!0)},ye;te.Uint8Array&&(ye=function(it,pt){for(var Ge="",Xe=0,lt=it.length;Xe<lt;Xe+=3){var dt=it[Xe],st=it[Xe+1],nt=it[Xe+2],rt=dt<<16|st<<8|nt;Ge+=oe.charAt(rt>>>18)+oe.charAt(rt>>>12&63)+(typeof st!="undefined"?oe.charAt(rt>>>6&63):"=")+(typeof nt!="undefined"?oe.charAt(rt&63):"=")}return pt?xe(Ge):Ge});var be=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Fe=function(it){switch(it.length){case 4:var pt=(7&it.charCodeAt(0))<<18|(63&it.charCodeAt(1))<<12|(63&it.charCodeAt(2))<<6|63&it.charCodeAt(3),Ge=pt-65536;return re((Ge>>>10)+55296)+re((Ge&1023)+56320);case 3:return re((15&it.charCodeAt(0))<<12|(63&it.charCodeAt(1))<<6|63&it.charCodeAt(2));default:return re((31&it.charCodeAt(0))<<6|63&it.charCodeAt(1))}},ke=function(it){return it.replace(be,Fe)},De=function(it){var pt=it.length,Ge=pt%4,Xe=(pt>0?he[it.charAt(0)]<<18:0)|(pt>1?he[it.charAt(1)]<<12:0)|(pt>2?he[it.charAt(2)]<<6:0)|(pt>3?he[it.charAt(3)]:0),lt=[re(Xe>>>16),re(Xe>>>8&255),re(Xe&255)];return lt.length-=[0,0,2,1][Ge],lt.join("")},Le=te.atob&&typeof te.atob=="function"?function(it){return te.atob(it)}:function(it){return it.replace(/\S{1,4}/g,De)},Ie=function(it){return Le(String(it).replace(/[^A-Za-z0-9\+\/]/g,""))},Be=function(it){return ke(Le(it))},Ue=function(it){return String(it).replace(/[-_]/g,function(pt){return pt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_e=function(it){return Be(Ue(it))},We;te.Uint8Array&&(We=function(it){return Uint8Array.from(Ie(Ue(it)),function(pt){return pt.charCodeAt(0)})});var Ze=function(){var it=te.Base64;return te.Base64=ae,it};if(te.Base64={VERSION:ne,atob:Ie,btoa:le,fromBase64:_e,toBase64:ge,utob:fe,encode:ge,encodeURI:Me,btou:ke,decode:_e,noConflict:Ze,fromUint8Array:ye,toUint8Array:We},typeof Object.defineProperty=="function"){var et=function(it){return{value:it,enumerable:!1,writable:!0,configurable:!0}};te.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",et(function(){return _e(this)})),Object.defineProperty(String.prototype,"toBase64",et(function(it){return ge(this,it)})),Object.defineProperty(String.prototype,"toBase64URI",et(function(){return ge(this,!0)}))}}return te.Meteor&&(Base64=te.Base64),typeof Te!="undefined"&&Te.exports?Te.exports.Base64=te.Base64:typeof me=="function"&&me.amd&&me([],function(){return te.Base64}),{Base64:te.Base64}})}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(x,Te,ve){"use strict";Te.exports=te;var ie=Object.prototype.hasOwnProperty;function te(ae,ne,oe){if(!ae)throw new TypeError("argument dest is required");if(!ne)throw new TypeError("argument src is required");return oe===void 0&&(oe=!0),Object.getOwnPropertyNames(ne).forEach(function(re){if(!(!oe&&ie.call(ae,re))){var se=Object.getOwnPropertyDescriptor(ne,re);Object.defineProperty(ae,re,se)}}),ae}},{}],373:[function(x,Te,ve){"use strict";x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.regexp.constructor.js"),x("core-js/modules/es.regexp.to-string.js");function ie(){this._types=Object.create(null),this._extensions=Object.create(null);for(var te=0;te<arguments.length;te++)this.define(arguments[te]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}ie.prototype.define=function(te,ae){for(var ne in te){var oe=te[ne].map(function(ce){return ce.toLowerCase()});ne=ne.toLowerCase();for(var he=0;he<oe.length;he++){var re=oe[he];if(re[0]!=="*"){if(!ae&&re in this._types)throw new Error('Attempt to change mapping for "'+re+'" extension from "'+this._types[re]+'" to "'+ne+'". Pass `force=true` to allow this, otherwise remove "'+re+'" from the list of extensions for "'+ne+'".');this._types[re]=ne}}if(ae||!this._extensions[ne]){var se=oe[0];this._extensions[ne]=se[0]!=="*"?se:se.substr(1)}}},ie.prototype.getType=function(te){te=String(te);var ae=te.replace(/^.*[/\\]/,"").toLowerCase(),ne=ae.replace(/^.*\./,"").toLowerCase(),oe=ae.length<te.length,he=ne.length<ae.length-1;return(he||!oe)&&this._types[ne]||null},ie.prototype.getExtension=function(te){return te=/^\s*([^;\s]*)/.test(te)&&RegExp.$1,te&&this._extensions[te.toLowerCase()]||null},Te.exports=ie},{"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(x,Te,ve){"use strict";var ie=x("./Mime");Te.exports=new ie(x("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(x,Te,ve){"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(x,Te,ve){var ie=1e3,te=ie*60,ae=te*60,ne=ae*24,oe=ne*7,he=ne*365.25;Te.exports=function(pe,le){le=le||{};var Se=typeof pe;if(Se==="string"&&pe.length>0)return re(pe);if(Se==="number"&&isFinite(pe))return le.long?ce(pe):se(pe);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(pe))};function re(pe){if(pe=String(pe),!(pe.length>100)){var le=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(pe);if(le){var Se=parseFloat(le[1]),xe=(le[2]||"ms").toLowerCase();switch(xe){case"years":case"year":case"yrs":case"yr":case"y":return Se*he;case"weeks":case"week":case"w":return Se*oe;case"days":case"day":case"d":return Se*ne;case"hours":case"hour":case"hrs":case"hr":case"h":return Se*ae;case"minutes":case"minute":case"mins":case"min":case"m":return Se*te;case"seconds":case"second":case"secs":case"sec":case"s":return Se*ie;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Se;default:return}}}}function se(pe){var le=Math.abs(pe);return le>=ne?Math.round(pe/ne)+"d":le>=ae?Math.round(pe/ae)+"h":le>=te?Math.round(pe/te)+"m":le>=ie?Math.round(pe/ie)+"s":pe+"ms"}function ce(pe){var le=Math.abs(pe);return le>=ne?fe(pe,le,ne,"day"):le>=ae?fe(pe,le,ae,"hour"):le>=te?fe(pe,le,te,"minute"):le>=ie?fe(pe,le,ie,"second"):pe+" ms"}function fe(pe,le,Se,xe){var ge=le>=Se*1.5;return Math.round(pe/Se)+" "+xe+(ge?"s":"")}},{}],377:[function(x,Te,ve){"use strict";var ie=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;function ne(he){if(he==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(he)}function oe(){try{if(!Object.assign)return!1;var he=new String("abc");if(he[5]="de",Object.getOwnPropertyNames(he)[0]==="5")return!1;for(var re={},se=0;se<10;se++)re["_"+String.fromCharCode(se)]=se;var ce=Object.getOwnPropertyNames(re).map(function(pe){return re[pe]});if(ce.join("")!=="0123456789")return!1;var fe={};return"abcdefghijklmnopqrst".split("").forEach(function(pe){fe[pe]=pe}),Object.keys(Object.assign({},fe)).join("")==="abcdefghijklmnopqrst"}catch(pe){return!1}}Te.exports=oe()?Object.assign:function(he,re){for(var se,ce=ne(he),fe,pe=1;pe<arguments.length;pe++){se=Object(arguments[pe]);for(var le in se)te.call(se,le)&&(ce[le]=se[le]);if(ie){fe=ie(se);for(var Se=0;Se<fe.length;Se++)ae.call(se,fe[Se])&&(ce[fe[Se]]=se[fe[Se]])}}return ce}},{}],378:[function(x,Te,ve){(function(ie){(function(){"use strict";function te(he){if(typeof he!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(he))}function ae(he,re){for(var se="",ce=0,fe=-1,pe=0,le,Se=0;Se<=he.length;++Se){if(Se<he.length)le=he.charCodeAt(Se);else{if(le===47)break;le=47}if(le===47){if(!(fe===Se-1||pe===1))if(fe!==Se-1&&pe===2){if(se.length<2||ce!==2||se.charCodeAt(se.length-1)!==46||se.charCodeAt(se.length-2)!==46){if(se.length>2){var xe=se.lastIndexOf("/");if(xe!==se.length-1){xe===-1?(se="",ce=0):(se=se.slice(0,xe),ce=se.length-1-se.lastIndexOf("/")),fe=Se,pe=0;continue}}else if(se.length===2||se.length===1){se="",ce=0,fe=Se,pe=0;continue}}re&&(se.length>0?se+="/..":se="..",ce=2)}else se.length>0?se+="/"+he.slice(fe+1,Se):se=he.slice(fe+1,Se),ce=Se-fe-1;fe=Se,pe=0}else le===46&&pe!==-1?++pe:pe=-1}return se}function ne(he,re){var se=re.dir||re.root,ce=re.base||(re.name||"")+(re.ext||"");return se?se===re.root?se+ce:se+he+ce:ce}var oe={resolve:function(){for(var re="",se=!1,ce,fe=arguments.length-1;fe>=-1&&!se;fe--){var pe;fe>=0?pe=arguments[fe]:(ce===void 0&&(ce=ie.cwd()),pe=ce),te(pe),pe.length!==0&&(re=pe+"/"+re,se=pe.charCodeAt(0)===47)}return re=ae(re,!se),se?re.length>0?"/"+re:"/":re.length>0?re:"."},normalize:function(re){if(te(re),re.length===0)return".";var se=re.charCodeAt(0)===47,ce=re.charCodeAt(re.length-1)===47;return re=ae(re,!se),re.length===0&&!se&&(re="."),re.length>0&&ce&&(re+="/"),se?"/"+re:re},isAbsolute:function(re){return te(re),re.length>0&&re.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var re,se=0;se<arguments.length;++se){var ce=arguments[se];te(ce),ce.length>0&&(re===void 0?re=ce:re+="/"+ce)}return re===void 0?".":oe.normalize(re)},relative:function(re,se){if(te(re),te(se),re===se||(re=oe.resolve(re),se=oe.resolve(se),re===se))return"";for(var ce=1;ce<re.length&&re.charCodeAt(ce)===47;++ce);for(var fe=re.length,pe=fe-ce,le=1;le<se.length&&se.charCodeAt(le)===47;++le);for(var Se=se.length,xe=Se-le,ge=pe<xe?pe:xe,Me=-1,ye=0;ye<=ge;++ye){if(ye===ge){if(xe>ge){if(se.charCodeAt(le+ye)===47)return se.slice(le+ye+1);if(ye===0)return se.slice(le+ye)}else pe>ge&&(re.charCodeAt(ce+ye)===47?Me=ye:ye===0&&(Me=0));break}var be=re.charCodeAt(ce+ye),Fe=se.charCodeAt(le+ye);if(be!==Fe)break;be===47&&(Me=ye)}var ke="";for(ye=ce+Me+1;ye<=fe;++ye)(ye===fe||re.charCodeAt(ye)===47)&&(ke.length===0?ke+="..":ke+="/..");return ke.length>0?ke+se.slice(le+Me):(le+=Me,se.charCodeAt(le)===47&&++le,se.slice(le))},_makeLong:function(re){return re},dirname:function(re){if(te(re),re.length===0)return".";for(var se=re.charCodeAt(0),ce=se===47,fe=-1,pe=!0,le=re.length-1;le>=1;--le)if(se=re.charCodeAt(le),se===47){if(!pe){fe=le;break}}else pe=!1;return fe===-1?ce?"/":".":ce&&fe===1?"//":re.slice(0,fe)},basename:function(re,se){if(se!==void 0&&typeof se!="string")throw new TypeError('"ext" argument must be a string');te(re);var ce=0,fe=-1,pe=!0,le;if(se!==void 0&&se.length>0&&se.length<=re.length){if(se.length===re.length&&se===re)return"";var Se=se.length-1,xe=-1;for(le=re.length-1;le>=0;--le){var ge=re.charCodeAt(le);if(ge===47){if(!pe){ce=le+1;break}}else xe===-1&&(pe=!1,xe=le+1),Se>=0&&(ge===se.charCodeAt(Se)?--Se===-1&&(fe=le):(Se=-1,fe=xe))}return ce===fe?fe=xe:fe===-1&&(fe=re.length),re.slice(ce,fe)}else{for(le=re.length-1;le>=0;--le)if(re.charCodeAt(le)===47){if(!pe){ce=le+1;break}}else fe===-1&&(pe=!1,fe=le+1);return fe===-1?"":re.slice(ce,fe)}},extname:function(re){te(re);for(var se=-1,ce=0,fe=-1,pe=!0,le=0,Se=re.length-1;Se>=0;--Se){var xe=re.charCodeAt(Se);if(xe===47){if(!pe){ce=Se+1;break}continue}fe===-1&&(pe=!1,fe=Se+1),xe===46?se===-1?se=Se:le!==1&&(le=1):se!==-1&&(le=-1)}return se===-1||fe===-1||le===0||le===1&&se===fe-1&&se===ce+1?"":re.slice(se,fe)},format:function(re){if(re===null||typeof re!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof re);return ne("/",re)},parse:function(re){te(re);var se={root:"",dir:"",base:"",ext:"",name:""};if(re.length===0)return se;var ce=re.charCodeAt(0),fe=ce===47,pe;fe?(se.root="/",pe=1):pe=0;for(var le=-1,Se=0,xe=-1,ge=!0,Me=re.length-1,ye=0;Me>=pe;--Me){if(ce=re.charCodeAt(Me),ce===47){if(!ge){Se=Me+1;break}continue}xe===-1&&(ge=!1,xe=Me+1),ce===46?le===-1?le=Me:ye!==1&&(ye=1):le!==-1&&(ye=-1)}return le===-1||xe===-1||ye===0||ye===1&&le===xe-1&&le===Se+1?xe!==-1&&(Se===0&&fe?se.base=se.name=re.slice(1,xe):se.base=se.name=re.slice(Se,xe)):(Se===0&&fe?(se.name=re.slice(1,le),se.base=re.slice(1,xe)):(se.name=re.slice(Se,le),se.base=re.slice(Se,xe)),se.ext=re.slice(le,xe)),Se>0?se.dir=re.slice(0,Se-1):fe&&(se.dir="/"),se},sep:"/",delimiter:":",win32:null,posix:null};oe.posix=oe,Te.exports=oe}).call(this)}).call(this,x("_process"))},{_process:467}],379:[function(x,Te,ve){(function(ie){(function(){(function(){"use strict";var te={function:!0,object:!0},ae=te[typeof window]&&window||this,ne=ae,oe=te[typeof ve]&&ve,he=te[typeof Te]&&Te&&!Te.nodeType&&Te,re=oe&&he&&typeof ie=="object"&&ie;re&&(re.global===re||re.window===re||re.self===re)&&(ae=re);var se=Math.pow(2,53)-1,ce=/\bOpera/,fe=this,pe=Object.prototype,le=pe.hasOwnProperty,Se=pe.toString;function xe(_e){return _e=String(_e),_e.charAt(0).toUpperCase()+_e.slice(1)}function ge(_e,We,Ze){var et={"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 We&&Ze&&/^Win/i.test(_e)&&!/^Windows Phone /i.test(_e)&&(et=et[/[\d.]+$/.exec(_e)])&&(_e="Windows "+et),_e=String(_e),We&&Ze&&(_e=_e.replace(RegExp(We,"i"),Ze)),_e=ye(_e.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]),_e}function Me(_e,We){var Ze=-1,et=_e?_e.length:0;if(typeof et=="number"&&et>-1&&et<=se)for(;++Ze<et;)We(_e[Ze],Ze,_e);else be(_e,We)}function ye(_e){return _e=Ie(_e),/^(?:webOS|i(?:OS|P))/.test(_e)?_e:xe(_e)}function be(_e,We){for(var Ze in _e)le.call(_e,Ze)&&We(_e[Ze],Ze,_e)}function Fe(_e){return _e==null?xe(_e):Se.call(_e).slice(8,-1)}function ke(_e,We){var Ze=_e!=null?typeof _e[We]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ze)&&(Ze=="object"?!!_e[We]:!0)}function De(_e){return String(_e).replace(/([ -])(?!$)/g,"$1?")}function Le(_e,We){var Ze=null;return Me(_e,function(et,it){Ze=We(Ze,et,it,_e)}),Ze}function Ie(_e){return String(_e).replace(/^ +| +$/g,"")}function Be(_e){var We=ae,Ze=_e&&typeof _e=="object"&&Fe(_e)!="String";Ze&&(We=_e,_e=null);var et=We.navigator||{},it=et.userAgent||"";_e||(_e=it);var pt=Ze||fe==ne,Ge=Ze?!!et.likeChrome:/\bChrome\b/.test(_e)&&!/internal|\n/i.test(Se.toString()),Xe="Object",lt=Ze?Xe:"ScriptBridgingProxyObject",dt=Ze?Xe:"Environment",st=Ze&&We.java?"JavaPackage":Fe(We.java),nt=Ze?Xe:"RuntimeObject",rt=/\bJava/.test(st)&&We.java,at=rt&&Fe(We.environment)==dt,gt=rt?"a":"\u03B1",vt=rt?"b":"\u03B2",Et=We.document||{},At=We.operamini||We.opera,ut=ce.test(ut=Ze&&At?At["[[Class]]"]:Fe(At))?ut:At=null,Ye,Ve=_e,de=[],Ce=null,He=_e==it,je=He&&At&&typeof At.version=="function"&&At.version(),Ae,Ne=Ot([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ze=Ut(["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"]),Qe=Ft([{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"]),ot=xt({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}}),mt=xn(["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 Ot(Pt){return Le(Pt,function(zt,sn){return zt||RegExp("\\b"+(sn.pattern||De(sn))+"\\b","i").exec(_e)&&(sn.label||sn)})}function xt(Pt){return Le(Pt,function(zt,sn,yn){return zt||(sn[Qe]||sn[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Qe)]||RegExp("\\b"+De(yn)+"(?:\\b|\\w*\\d)","i").exec(_e))&&yn})}function Ut(Pt){return Le(Pt,function(zt,sn){return zt||RegExp("\\b"+(sn.pattern||De(sn))+"\\b","i").exec(_e)&&(sn.label||sn)})}function xn(Pt){return Le(Pt,function(zt,sn){var yn=sn.pattern||De(sn);return!zt&&(zt=RegExp("\\b"+yn+"(?:/[\\d.]+|[ \\w.]*)","i").exec(_e))&&(zt=ge(zt,yn,sn.label||sn)),zt})}function Ft(Pt){return Le(Pt,function(zt,sn){var yn=sn.pattern||De(sn);return!zt&&(zt=RegExp("\\b"+yn+" *\\d+[.\\w_]*","i").exec(_e)||RegExp("\\b"+yn+" *\\w+-[\\w]*","i").exec(_e)||RegExp("\\b"+yn+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(_e))&&((zt=String(sn.label&&!RegExp(yn,"i").test(sn.label)?sn.label:zt).split("/"))[1]&&!/[\d.]+/.test(zt[0])&&(zt[0]+=" "+zt[1]),sn=sn.label||sn,zt=ye(zt[0].replace(RegExp(yn,"i"),sn).replace(RegExp("; *(?:"+sn+"[_-])?","i")," ").replace(RegExp("("+sn+")[-_.]?(\\w)","i"),"$1 $2"))),zt})}function Qt(Pt){return Le(Pt,function(zt,sn){return zt||(RegExp(sn+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(_e)||0)[1]||null})}function Zt(){return this.description||""}if(Ne&&(Ne=[Ne]),/\bAndroid\b/.test(mt)&&!Qe&&(Ye=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(_e))&&(Qe=Ie(Ye[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ot&&!Qe?Qe=Ft([ot]):ot&&Qe&&(Qe=Qe.replace(RegExp("^("+De(ot)+")[-_.\\s]","i"),ot+" ").replace(RegExp("^("+De(ot)+")[-_.]?(\\w)","i"),ot+" $2")),(Ye=/\bGoogle TV\b/.exec(Qe))&&(Qe=Ye[0]),/\bSimulator\b/i.test(_e)&&(Qe=(Qe?Qe+" ":"")+"Simulator"),ze=="Opera Mini"&&/\bOPiOS\b/.test(_e)&&de.push("running in Turbo/Uncompressed mode"),ze=="IE"&&/\blike iPhone OS\b/.test(_e)?(Ye=Be(_e.replace(/like iPhone OS/,"")),ot=Ye.manufacturer,Qe=Ye.product):/^iP/.test(Qe)?(ze||(ze="Safari"),mt="iOS"+((Ye=/ OS ([\d_]+)/i.exec(_e))?" "+Ye[1].replace(/_/g,"."):"")):ze=="Konqueror"&&/^Linux\b/i.test(mt)?mt="Kubuntu":ot&&ot!="Google"&&(/Chrome/.test(ze)&&!/\bMobile Safari\b/i.test(_e)||/\bVita\b/.test(Qe))||/\bAndroid\b/.test(mt)&&/^Chrome/.test(ze)&&/\bVersion\//i.test(_e)?(ze="Android Browser",mt=/\bAndroid\b/.test(mt)?mt:"Android"):ze=="Silk"?(/\bMobi/i.test(_e)||(mt="Android",de.unshift("desktop mode")),/Accelerated *= *true/i.test(_e)&&de.unshift("accelerated")):ze=="UC Browser"&&/\bUCWEB\b/.test(_e)?de.push("speed mode"):ze=="PaleMoon"&&(Ye=/\bFirefox\/([\d.]+)\b/.exec(_e))?de.push("identifying as Firefox "+Ye[1]):ze=="Firefox"&&(Ye=/\b(Mobile|Tablet|TV)\b/i.exec(_e))?(mt||(mt="Firefox OS"),Qe||(Qe=Ye[1])):!ze||(Ye=!/\bMinefield\b/i.test(_e)&&/\b(?:Firefox|Safari)\b/.exec(ze))?(ze&&!Qe&&/[\/,]|^[^(]+?\)/.test(_e.slice(_e.indexOf(Ye+"/")+8))&&(ze=null),(Ye=Qe||ot||mt)&&(Qe||ot||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(mt))&&(ze=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(mt)?mt:Ye)+" Browser")):ze=="Electron"&&(Ye=(/\bChrome\/([\d.]+)\b/.exec(_e)||0)[1])&&de.push("Chromium "+Ye),je||(je=Qt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",De(ze),"(?:Firefox|Minefield|NetFront)"])),(Ye=Ne=="iCab"&&parseFloat(je)>3&&"WebKit"||/\bOpera\b/.test(ze)&&(/\bOPR\b/.test(_e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(_e)&&!/^(?:Trident|EdgeHTML)$/.test(Ne)&&"WebKit"||!Ne&&/\bMSIE\b/i.test(_e)&&(mt=="Mac OS"?"Tasman":"Trident")||Ne=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ze)&&"NetFront")&&(Ne=[Ye]),ze=="IE"&&(Ye=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(_e)||0)[1])?(ze+=" Mobile",mt="Windows Phone "+(/\+$/.test(Ye)?Ye:Ye+".x"),de.unshift("desktop mode")):/\bWPDesktop\b/i.test(_e)?(ze="IE Mobile",mt="Windows Phone 8.x",de.unshift("desktop mode"),je||(je=(/\brv:([\d.]+)/.exec(_e)||0)[1])):ze!="IE"&&Ne=="Trident"&&(Ye=/\brv:([\d.]+)/.exec(_e))&&(ze&&de.push("identifying as "+ze+(je?" "+je:"")),ze="IE",je=Ye[1]),He){if(ke(We,"global"))if(rt&&(Ye=rt.lang.System,Ve=Ye.getProperty("os.arch"),mt=mt||Ye.getProperty("os.name")+" "+Ye.getProperty("os.version")),at){try{je=We.require("ringo/engine").version.join("."),ze="RingoJS"}catch(Pt){(Ye=We.system)&&Ye.global.system==We.system&&(ze="Narwhal",mt||(mt=Ye[0].os||null))}ze||(ze="Rhino")}else typeof We.process=="object"&&!We.process.browser&&(Ye=We.process)&&(typeof Ye.versions=="object"&&(typeof Ye.versions.electron=="string"?(de.push("Node "+Ye.versions.node),ze="Electron",je=Ye.versions.electron):typeof Ye.versions.nw=="string"&&(de.push("Chromium "+je,"Node "+Ye.versions.node),ze="NW.js",je=Ye.versions.nw)),ze||(ze="Node.js",Ve=Ye.arch,mt=Ye.platform,je=/[\d.]+/.exec(Ye.version),je=je?je[0]:null));else Fe(Ye=We.runtime)==lt?(ze="Adobe AIR",mt=Ye.flash.system.Capabilities.os):Fe(Ye=We.phantom)==nt?(ze="PhantomJS",je=(Ye=Ye.version||null)&&Ye.major+"."+Ye.minor+"."+Ye.patch):typeof Et.documentMode=="number"&&(Ye=/\bTrident\/(\d+)/i.exec(_e))?(je=[je,Et.documentMode],(Ye=+Ye[1]+4)!=je[1]&&(de.push("IE "+je[1]+" mode"),Ne&&(Ne[1]=""),je[1]=Ye),je=ze=="IE"?String(je[1].toFixed(1)):je[0]):typeof Et.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ze)&&(de.push("masking as "+ze+" "+je),ze="IE",je="11.0",Ne=["Trident"],mt="Windows");mt=mt&&ye(mt)}if(je&&(Ye=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(je)||/(?:alpha|beta)(?: ?\d)?/i.exec(_e+";"+(He&&et.appMinorVersion))||/\bMinefield\b/i.test(_e)&&"a")&&(Ce=/b/i.test(Ye)?"beta":"alpha",je=je.replace(RegExp(Ye+"\\+?$"),"")+(Ce=="beta"?vt:gt)+(/\d+\+?/.exec(Ye)||"")),ze=="Fennec"||ze=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(mt))ze="Firefox Mobile";else if(ze=="Maxthon"&&je)je=je.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Qe))Qe=="Xbox 360"&&(mt=null),Qe=="Xbox 360"&&/\bIEMobile\b/.test(_e)&&de.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ze)||ze&&!Qe&&!/Browser|Mobi/.test(ze))&&(mt=="Windows CE"||/Mobi/i.test(_e)))ze+=" Mobile";else if(ze=="IE"&&He)try{We.external===null&&de.unshift("platform preview")}catch(Pt){de.unshift("embedded")}else(/\bBlackBerry\b/.test(Qe)||/\bBB10\b/.test(_e))&&(Ye=(RegExp(Qe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(_e)||0)[1]||je)?(Ye=[Ye,/BB10/.test(_e)],mt=(Ye[1]?(Qe=null,ot="BlackBerry"):"Device Software")+" "+Ye[0],je=null):this!=be&&Qe!="Wii"&&(He&&At||/Opera/.test(ze)&&/\b(?:MSIE|Firefox)\b/i.test(_e)||ze=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(mt)||ze=="IE"&&(mt&&!/^Win/.test(mt)&&je>5.5||/\bWindows XP\b/.test(mt)&&je>8||je==8&&!/\bTrident\b/.test(_e)))&&!ce.test(Ye=Be.call(be,_e.replace(ce,"")+";"))&&Ye.name&&(Ye="ing as "+Ye.name+((Ye=Ye.version)?" "+Ye:""),ce.test(ze)?(/\bIE\b/.test(Ye)&&mt=="Mac OS"&&(mt=null),Ye="identify"+Ye):(Ye="mask"+Ye,ut?ze=ye(ut.replace(/([a-z])([A-Z])/g,"$1 $2")):ze="Opera",/\bIE\b/.test(Ye)&&(mt=null),He||(je=null)),Ne=["Presto"],de.push(Ye));(Ye=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(_e)||0)[1])&&(Ye=[parseFloat(Ye.replace(/\.(\d)$/,".0$1")),Ye],ze=="Safari"&&Ye[1].slice(-1)=="+"?(ze="WebKit Nightly",Ce="alpha",je=Ye[1].slice(0,-1)):(je==Ye[1]||je==(Ye[2]=(/\bSafari\/([\d.]+\+?)/i.exec(_e)||0)[1]))&&(je=null),Ye[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(_e)||0)[1],Ye[0]==537.36&&Ye[2]==537.36&&parseFloat(Ye[1])>=28&&Ne=="WebKit"&&(Ne=["Blink"]),!He||!Ge&&!Ye[1]?(Ne&&(Ne[1]="like Safari"),Ye=(Ye=Ye[0],Ye<400?1:Ye<500?2:Ye<526?3:Ye<533?4:Ye<534?"4+":Ye<535?5:Ye<537?6:Ye<538?7:Ye<601?8:Ye<602?9:Ye<604?10:Ye<606?11:Ye<608?12:"12")):(Ne&&(Ne[1]="like Chrome"),Ye=Ye[1]||(Ye=Ye[0],Ye<530?1:Ye<532?2:Ye<532.05?3:Ye<533?4:Ye<534.03?5:Ye<534.07?6:Ye<534.1?7:Ye<534.13?8:Ye<534.16?9:Ye<534.24?10:Ye<534.3?11:Ye<535.01?12:Ye<535.02?"13+":Ye<535.07?15:Ye<535.11?16:Ye<535.19?17:Ye<536.05?18:Ye<536.1?19:Ye<537.01?20:Ye<537.11?"21+":Ye<537.13?23:Ye<537.18?24:Ye<537.24?25:Ye<537.36?26:Ne!="Blink"?"27":"28")),Ne&&(Ne[1]+=" "+(Ye+=typeof Ye=="number"?".x":/[.+]/.test(Ye)?"":"+")),ze=="Safari"&&(!je||parseInt(je)>45)?je=Ye:ze=="Chrome"&&/\bHeadlessChrome/i.test(_e)&&de.unshift("headless")),ze=="Opera"&&(Ye=/\bzbov|zvav$/.exec(mt))?(ze+=" ",de.unshift("desktop mode"),Ye=="zvav"?(ze+="Mini",je=null):ze+="Mobile",mt=mt.replace(RegExp(" *"+Ye+"$"),"")):ze=="Safari"&&/\bChrome\b/.exec(Ne&&Ne[1])?(de.unshift("desktop mode"),ze="Chrome Mobile",je=null,/\bOS X\b/.test(mt)?(ot="Apple",mt="iOS 4.3+"):mt=null):/\bSRWare Iron\b/.test(ze)&&!je&&(je=Qt("Chrome")),je&&je.indexOf(Ye=/[\d.]+$/.exec(mt))==0&&_e.indexOf("/"+Ye+"-")>-1&&(mt=Ie(mt.replace(Ye,""))),mt&&mt.indexOf(ze)!=-1&&!RegExp(ze+" OS").test(mt)&&(mt=mt.replace(RegExp(" *"+De(ze)+" *"),"")),Ne&&!/\b(?:Avant|Nook)\b/.test(ze)&&(/Browser|Lunascape|Maxthon/.test(ze)||ze!="Safari"&&/^iOS/.test(mt)&&/\bSafari\b/.test(Ne[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ze)&&Ne[1])&&(Ye=Ne[Ne.length-1])&&de.push(Ye),de.length&&(de=["("+de.join("; ")+")"]),ot&&Qe&&Qe.indexOf(ot)<0&&de.push("on "+ot),Qe&&de.push((/^on /.test(de[de.length-1])?"":"on ")+Qe),mt&&(Ye=/ ([\d.+]+)$/.exec(mt),Ae=Ye&&mt.charAt(mt.length-Ye[0].length-1)=="/",mt={architecture:32,family:Ye&&!Ae?mt.replace(Ye[0],""):mt,version:Ye?Ye[1]:null,toString:function(){var Pt=this.version;return this.family+(Pt&&!Ae?" "+Pt:"")+(this.architecture==64?" 64-bit":"")}}),(Ye=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ve))&&!/\bi686\b/i.test(Ve)?(mt&&(mt.architecture=64,mt.family=mt.family.replace(RegExp(" *"+Ye),"")),ze&&(/\bWOW64\b/i.test(_e)||He&&/\w(?:86|32)$/.test(et.cpuClass||et.platform)&&!/\bWin64; x64\b/i.test(_e))&&de.unshift("32-bit")):mt&&/^OS X/.test(mt.family)&&ze=="Chrome"&&parseFloat(je)>=39&&(mt.architecture=64),_e||(_e=null);var bn={};return bn.description=_e,bn.layout=Ne&&Ne[0],bn.manufacturer=ot,bn.name=ze,bn.prerelease=Ce,bn.product=Qe,bn.ua=_e,bn.version=ze&&je,bn.os=mt||{architecture:null,family:null,version:null,toString:function(){return"null"}},bn.parse=Be,bn.toString=Zt,bn.version&&de.unshift(je),bn.name&&de.unshift(ze),mt&&ze&&!(mt==String(mt).split(" ")[0]&&(mt==ze.split(" ")[0]||Qe))&&de.push(Qe?"("+mt+")":"on "+mt),de.length&&(bn.description=de.join(" ")),bn}var Ue=Be();typeof me=="function"&&typeof me.amd=="object"&&me.amd?(ae.platform=Ue,me(function(){return Ue})):oe&&he?be(Ue,function(_e,We){oe[We]=_e}):ae.platform=Ue}).call(this)}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(x,Te,ve){(function(ie){(function(){"use strict";typeof ie=="undefined"||!ie.version||ie.version.indexOf("v0.")===0||ie.version.indexOf("v1.")===0&&ie.version.indexOf("v1.8.")!==0?Te.exports={nextTick:te}:Te.exports=ie;function te(ae,ne,oe,he){if(typeof ae!="function")throw new TypeError('"callback" argument must be a function');var re=arguments.length,se,ce;switch(re){case 0:case 1:return ie.nextTick(ae);case 2:return ie.nextTick(function(){ae.call(null,ne)});case 3:return ie.nextTick(function(){ae.call(null,ne,oe)});case 4:return ie.nextTick(function(){ae.call(null,ne,oe,he)});default:for(se=new Array(re-1),ce=0;ce<se.length;)se[ce++]=arguments[ce];return ie.nextTick(function(){ae.apply(null,se)})}}}).call(this)}).call(this,x("_process"))},{_process:467}],381:[function(x,Te,ve){var ie=Te.exports={},te,ae;function ne(){throw new Error("setTimeout has not been defined")}function oe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?te=setTimeout:te=ne}catch(Me){te=ne}try{typeof clearTimeout=="function"?ae=clearTimeout:ae=oe}catch(Me){ae=oe}})();function he(Me){if(te===setTimeout)return setTimeout(Me,0);if((te===ne||!te)&&setTimeout)return te=setTimeout,setTimeout(Me,0);try{return te(Me,0)}catch(ye){try{return te.call(null,Me,0)}catch(be){return te.call(this,Me,0)}}}function re(Me){if(ae===clearTimeout)return clearTimeout(Me);if((ae===oe||!ae)&&clearTimeout)return ae=clearTimeout,clearTimeout(Me);try{return ae(Me)}catch(ye){try{return ae.call(null,Me)}catch(be){return ae.call(this,Me)}}}var se=[],ce=!1,fe,pe=-1;function le(){!ce||!fe||(ce=!1,fe.length?se=fe.concat(se):pe=-1,se.length&&Se())}function Se(){if(!ce){var Me=he(le);ce=!0;for(var ye=se.length;ye;){for(fe=se,se=[];++pe<ye;)fe&&fe[pe].run();pe=-1,ye=se.length}fe=null,ce=!1,re(Me)}}ie.nextTick=function(Me){var ye=new Array(arguments.length-1);if(arguments.length>1)for(var be=1;be<arguments.length;be++)ye[be-1]=arguments[be];se.push(new xe(Me,ye)),se.length===1&&!ce&&he(Se)};function xe(Me,ye){this.fun=Me,this.array=ye}xe.prototype.run=function(){this.fun.apply(null,this.array)},ie.title="browser",ie.browser=!0,ie.env={},ie.argv=[],ie.version="",ie.versions={};function ge(){}ie.on=ge,ie.addListener=ge,ie.once=ge,ie.off=ge,ie.removeListener=ge,ie.removeAllListeners=ge,ie.emit=ge,ie.prependListener=ge,ie.prependOnceListener=ge,ie.listeners=function(Me){return[]},ie.binding=function(Me){throw new Error("process.binding is not supported")},ie.cwd=function(){return"/"},ie.chdir=function(Me){throw new Error("process.chdir is not supported")},ie.umask=function(){return 0}},{}],382:[function(x,Te,ve){(function(ie){(function(){(function(te){var ae=typeof ve=="object"&&ve&&!ve.nodeType&&ve,ne=typeof Te=="object"&&Te&&!Te.nodeType&&Te,oe=typeof ie=="object"&&ie;(oe.global===oe||oe.window===oe||oe.self===oe)&&(te=oe);var he,re=2147483647,se=36,ce=1,fe=26,pe=38,le=700,Se=72,xe=128,ge="-",Me=/^xn--/,ye=/[^\x20-\x7E]/,be=/[\x2E\u3002\uFF0E\uFF61]/g,Fe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=se-ce,De=Math.floor,Le=String.fromCharCode,Ie;function Be(st){throw new RangeError(Fe[st])}function Ue(st,nt){for(var rt=st.length,at=[];rt--;)at[rt]=nt(st[rt]);return at}function _e(st,nt){var rt=st.split("@"),at="";rt.length>1&&(at=rt[0]+"@",st=rt[1]),st=st.replace(be,".");var gt=st.split("."),vt=Ue(gt,nt).join(".");return at+vt}function We(st){for(var nt=[],rt=0,at=st.length,gt,vt;rt<at;)gt=st.charCodeAt(rt++),gt>=55296&><=56319&&rt<at?(vt=st.charCodeAt(rt++),(vt&64512)==56320?nt.push(((gt&1023)<<10)+(vt&1023)+65536):(nt.push(gt),rt--)):nt.push(gt);return nt}function Ze(st){return Ue(st,function(nt){var rt="";return nt>65535&&(nt-=65536,rt+=Le(nt>>>10&1023|55296),nt=56320|nt&1023),rt+=Le(nt),rt}).join("")}function et(st){return st-48<10?st-22:st-65<26?st-65:st-97<26?st-97:se}function it(st,nt){return st+22+75*(st<26)-((nt!=0)<<5)}function pt(st,nt,rt){var at=0;for(st=rt?De(st/le):st>>1,st+=De(st/nt);st>ke*fe>>1;at+=se)st=De(st/ke);return De(at+(ke+1)*st/(st+pe))}function Ge(st){var nt=[],rt=st.length,at,gt=0,vt=xe,Et=Se,At,ut,Ye,Ve,de,Ce,He,je,Ae;for(At=st.lastIndexOf(ge),At<0&&(At=0),ut=0;ut<At;++ut)st.charCodeAt(ut)>=128&&Be("not-basic"),nt.push(st.charCodeAt(ut));for(Ye=At>0?At+1:0;Ye<rt;){for(Ve=gt,de=1,Ce=se;Ye>=rt&&Be("invalid-input"),He=et(st.charCodeAt(Ye++)),(He>=se||He>De((re-gt)/de))&&Be("overflow"),gt+=He*de,je=Ce<=Et?ce:Ce>=Et+fe?fe:Ce-Et,!(He<je);Ce+=se)Ae=se-je,de>De(re/Ae)&&Be("overflow"),de*=Ae;at=nt.length+1,Et=pt(gt-Ve,at,Ve==0),De(gt/at)>re-vt&&Be("overflow"),vt+=De(gt/at),gt%=at,nt.splice(gt++,0,vt)}return Ze(nt)}function Xe(st){var nt,rt,at,gt,vt,Et,At,ut,Ye,Ve,de,Ce=[],He,je,Ae,Ne;for(st=We(st),He=st.length,nt=xe,rt=0,vt=Se,Et=0;Et<He;++Et)de=st[Et],de<128&&Ce.push(Le(de));for(at=gt=Ce.length,gt&&Ce.push(ge);at<He;){for(At=re,Et=0;Et<He;++Et)de=st[Et],de>=nt&&de<At&&(At=de);for(je=at+1,At-nt>De((re-rt)/je)&&Be("overflow"),rt+=(At-nt)*je,nt=At,Et=0;Et<He;++Et)if(de=st[Et],de<nt&&++rt>re&&Be("overflow"),de==nt){for(ut=rt,Ye=se;Ve=Ye<=vt?ce:Ye>=vt+fe?fe:Ye-vt,!(ut<Ve);Ye+=se)Ne=ut-Ve,Ae=se-Ve,Ce.push(Le(it(Ve+Ne%Ae,0))),ut=De(Ne/Ae);Ce.push(Le(it(ut,0))),vt=pt(rt,je,at==gt),rt=0,++at}++rt,++nt}return Ce.join("")}function lt(st){return _e(st,function(nt){return Me.test(nt)?Ge(nt.slice(4).toLowerCase()):nt})}function dt(st){return _e(st,function(nt){return ye.test(nt)?"xn--"+Xe(nt):nt})}if(he={version:"1.4.1",ucs2:{decode:We,encode:Ze},decode:Ge,encode:Xe,toASCII:dt,toUnicode:lt},typeof me=="function"&&typeof me.amd=="object"&&me.amd)me("punycode",function(){return he});else if(ae&&ne)if(Te.exports==ae)ne.exports=he;else for(Ie in he)he.hasOwnProperty(Ie)&&(ae[Ie]=he[Ie]);else te.punycode=he})(this)}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(x,Te,ve){"use strict";function ie(ae,ne){return Object.prototype.hasOwnProperty.call(ae,ne)}Te.exports=function(ae,ne,oe,he){ne=ne||"&",oe=oe||"=";var re={};if(typeof ae!="string"||ae.length===0)return re;var se=/\+/g;ae=ae.split(ne);var ce=1e3;he&&typeof he.maxKeys=="number"&&(ce=he.maxKeys);var fe=ae.length;ce>0&&fe>ce&&(fe=ce);for(var pe=0;pe<fe;++pe){var le=ae[pe].replace(se,"%20"),Se=le.indexOf(oe),xe,ge,Me,ye;Se>=0?(xe=le.substr(0,Se),ge=le.substr(Se+1)):(xe=le,ge=""),Me=decodeURIComponent(xe),ye=decodeURIComponent(ge),ie(re,Me)?te(re[Me])?re[Me].push(ye):re[Me]=[re[Me],ye]:re[Me]=ye}return re};var te=Array.isArray||function(ae){return Object.prototype.toString.call(ae)==="[object Array]"}},{}],384:[function(x,Te,ve){"use strict";var ie=function(oe){switch(typeof oe){case"string":return oe;case"boolean":return oe?"true":"false";case"number":return isFinite(oe)?oe:"";default:return""}};Te.exports=function(oe,he,re,se){return he=he||"&",re=re||"=",oe===null&&(oe=void 0),typeof oe=="object"?ae(ne(oe),function(ce){var fe=encodeURIComponent(ie(ce))+re;return te(oe[ce])?ae(oe[ce],function(pe){return fe+encodeURIComponent(ie(pe))}).join(he):fe+encodeURIComponent(ie(oe[ce]))}).join(he):se?encodeURIComponent(ie(se))+re+encodeURIComponent(ie(oe)):""};var te=Array.isArray||function(oe){return Object.prototype.toString.call(oe)==="[object Array]"};function ae(oe,he){if(oe.map)return oe.map(he);for(var re=[],se=0;se<oe.length;se++)re.push(he(oe[se],se));return re}var ne=Object.keys||function(oe){var he=[];for(var re in oe)Object.prototype.hasOwnProperty.call(oe,re)&&he.push(re);return he}},{}],385:[function(x,Te,ve){"use strict";ve.decode=ve.parse=x("./decode"),ve.encode=ve.stringify=x("./encode")},{"./decode":383,"./encode":384}],386:[function(x,Te,ve){"use strict";var ie=x("process-nextick-args"),te=Object.keys||function(le){var Se=[];for(var xe in le)Se.push(xe);return Se};Te.exports=ce;var ae=Object.create(x("core-util-is"));ae.inherits=x("inherits");var ne=x("./_stream_readable"),oe=x("./_stream_writable");ae.inherits(ce,ne);for(var he=te(oe.prototype),re=0;re<he.length;re++){var se=he[re];ce.prototype[se]||(ce.prototype[se]=oe.prototype[se])}function ce(le){if(!(this instanceof ce))return new ce(le);ne.call(this,le),oe.call(this,le),le&&le.readable===!1&&(this.readable=!1),le&&le.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,le&&le.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",fe)}Object.defineProperty(ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function fe(){this.allowHalfOpen||this._writableState.ended||ie.nextTick(pe,this)}function pe(le){le.end()}Object.defineProperty(ce.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(le){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=le,this._writableState.destroyed=le)}}),ce.prototype._destroy=function(le,Se){this.push(null),this.end(),ie.nextTick(Se,le)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(x,Te,ve){"use strict";Te.exports=ae;var ie=x("./_stream_transform"),te=Object.create(x("core-util-is"));te.inherits=x("inherits"),te.inherits(ae,ie);function ae(ne){if(!(this instanceof ae))return new ae(ne);ie.call(this,ne)}ae.prototype._transform=function(ne,oe,he){he(null,ne)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(x,Te,ve){(function(ie,te){(function(){"use strict";var ae=x("process-nextick-args");Te.exports=Le;var ne=x("isarray"),oe;Le.ReadableState=De;var he=x("events").EventEmitter,re=function(de,Ce){return de.listeners(Ce).length},se=x("./internal/streams/stream"),ce=x("safe-buffer").Buffer,fe=te.Uint8Array||function(){};function pe(de){return ce.from(de)}function le(de){return ce.isBuffer(de)||de instanceof fe}var Se=Object.create(x("core-util-is"));Se.inherits=x("inherits");var xe=x("util"),ge=void 0;xe&&xe.debuglog?ge=xe.debuglog("stream"):ge=function(){};var Me=x("./internal/streams/BufferList"),ye=x("./internal/streams/destroy"),be;Se.inherits(Le,se);var Fe=["error","close","destroy","pause","resume"];function ke(de,Ce,He){if(typeof de.prependListener=="function")return de.prependListener(Ce,He);!de._events||!de._events[Ce]?de.on(Ce,He):ne(de._events[Ce])?de._events[Ce].unshift(He):de._events[Ce]=[He,de._events[Ce]]}function De(de,Ce){oe=oe||x("./_stream_duplex"),de=de||{};var He=Ce instanceof oe;this.objectMode=!!de.objectMode,He&&(this.objectMode=this.objectMode||!!de.readableObjectMode);var je=de.highWaterMark,Ae=de.readableHighWaterMark,Ne=this.objectMode?16:16*1024;je||je===0?this.highWaterMark=je:He&&(Ae||Ae===0)?this.highWaterMark=Ae:this.highWaterMark=Ne,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=de.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,de.encoding&&(be||(be=x("string_decoder/").StringDecoder),this.decoder=new be(de.encoding),this.encoding=de.encoding)}function Le(de){if(oe=oe||x("./_stream_duplex"),!(this instanceof Le))return new Le(de);this._readableState=new De(de,this),this.readable=!0,de&&(typeof de.read=="function"&&(this._read=de.read),typeof de.destroy=="function"&&(this._destroy=de.destroy)),se.call(this)}Object.defineProperty(Le.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(de){this._readableState&&(this._readableState.destroyed=de)}}),Le.prototype.destroy=ye.destroy,Le.prototype._undestroy=ye.undestroy,Le.prototype._destroy=function(de,Ce){this.push(null),Ce(de)},Le.prototype.push=function(de,Ce){var He=this._readableState,je;return He.objectMode?je=!0:typeof de=="string"&&(Ce=Ce||He.defaultEncoding,Ce!==He.encoding&&(de=ce.from(de,Ce),Ce=""),je=!0),Ie(this,de,Ce,!1,je)},Le.prototype.unshift=function(de){return Ie(this,de,null,!0,!1)};function Ie(de,Ce,He,je,Ae){var Ne=de._readableState;if(Ce===null)Ne.reading=!1,it(de,Ne);else{var ze;Ae||(ze=Ue(Ne,Ce)),ze?de.emit("error",ze):Ne.objectMode||Ce&&Ce.length>0?(typeof Ce!="string"&&!Ne.objectMode&&Object.getPrototypeOf(Ce)!==ce.prototype&&(Ce=pe(Ce)),je?Ne.endEmitted?de.emit("error",new Error("stream.unshift() after end event")):Be(de,Ne,Ce,!0):Ne.ended?de.emit("error",new Error("stream.push() after EOF")):(Ne.reading=!1,Ne.decoder&&!He?(Ce=Ne.decoder.write(Ce),Ne.objectMode||Ce.length!==0?Be(de,Ne,Ce,!1):Xe(de,Ne)):Be(de,Ne,Ce,!1))):je||(Ne.reading=!1)}return _e(Ne)}function Be(de,Ce,He,je){Ce.flowing&&Ce.length===0&&!Ce.sync?(de.emit("data",He),de.read(0)):(Ce.length+=Ce.objectMode?1:He.length,je?Ce.buffer.unshift(He):Ce.buffer.push(He),Ce.needReadable&&pt(de)),Xe(de,Ce)}function Ue(de,Ce){var He;return!le(Ce)&&typeof Ce!="string"&&Ce!==void 0&&!de.objectMode&&(He=new TypeError("Invalid non-string/buffer chunk")),He}function _e(de){return!de.ended&&(de.needReadable||de.length<de.highWaterMark||de.length===0)}Le.prototype.isPaused=function(){return this._readableState.flowing===!1},Le.prototype.setEncoding=function(de){return be||(be=x("string_decoder/").StringDecoder),this._readableState.decoder=new be(de),this._readableState.encoding=de,this};var We=8388608;function Ze(de){return de>=We?de=We:(de--,de|=de>>>1,de|=de>>>2,de|=de>>>4,de|=de>>>8,de|=de>>>16,de++),de}function et(de,Ce){return de<=0||Ce.length===0&&Ce.ended?0:Ce.objectMode?1:de!==de?Ce.flowing&&Ce.length?Ce.buffer.head.data.length:Ce.length:(de>Ce.highWaterMark&&(Ce.highWaterMark=Ze(de)),de<=Ce.length?de:Ce.ended?Ce.length:(Ce.needReadable=!0,0))}Le.prototype.read=function(de){ge("read",de),de=parseInt(de,10);var Ce=this._readableState,He=de;if(de!==0&&(Ce.emittedReadable=!1),de===0&&Ce.needReadable&&(Ce.length>=Ce.highWaterMark||Ce.ended))return ge("read: emitReadable",Ce.length,Ce.ended),Ce.length===0&&Ce.ended?ut(this):pt(this),null;if(de=et(de,Ce),de===0&&Ce.ended)return Ce.length===0&&ut(this),null;var je=Ce.needReadable;ge("need readable",je),(Ce.length===0||Ce.length-de<Ce.highWaterMark)&&(je=!0,ge("length less than watermark",je)),Ce.ended||Ce.reading?(je=!1,ge("reading or ended",je)):je&&(ge("do read"),Ce.reading=!0,Ce.sync=!0,Ce.length===0&&(Ce.needReadable=!0),this._read(Ce.highWaterMark),Ce.sync=!1,Ce.reading||(de=et(He,Ce)));var Ae;return de>0?Ae=gt(de,Ce):Ae=null,Ae===null?(Ce.needReadable=!0,de=0):Ce.length-=de,Ce.length===0&&(Ce.ended||(Ce.needReadable=!0),He!==de&&Ce.ended&&ut(this)),Ae!==null&&this.emit("data",Ae),Ae};function it(de,Ce){if(!Ce.ended){if(Ce.decoder){var He=Ce.decoder.end();He&&He.length&&(Ce.buffer.push(He),Ce.length+=Ce.objectMode?1:He.length)}Ce.ended=!0,pt(de)}}function pt(de){var Ce=de._readableState;Ce.needReadable=!1,Ce.emittedReadable||(ge("emitReadable",Ce.flowing),Ce.emittedReadable=!0,Ce.sync?ae.nextTick(Ge,de):Ge(de))}function Ge(de){ge("emit readable"),de.emit("readable"),at(de)}function Xe(de,Ce){Ce.readingMore||(Ce.readingMore=!0,ae.nextTick(lt,de,Ce))}function lt(de,Ce){for(var He=Ce.length;!Ce.reading&&!Ce.flowing&&!Ce.ended&&Ce.length<Ce.highWaterMark&&(ge("maybeReadMore read 0"),de.read(0),He!==Ce.length);)He=Ce.length;Ce.readingMore=!1}Le.prototype._read=function(de){this.emit("error",new Error("_read() is not implemented"))},Le.prototype.pipe=function(de,Ce){var He=this,je=this._readableState;switch(je.pipesCount){case 0:je.pipes=de;break;case 1:je.pipes=[je.pipes,de];break;default:je.pipes.push(de);break}je.pipesCount+=1,ge("pipe count=%d opts=%j",je.pipesCount,Ce);var Ae=(!Ce||Ce.end!==!1)&&de!==ie.stdout&&de!==ie.stderr,Ne=Ae?Qe:Zt;je.endEmitted?ae.nextTick(Ne):He.once("end",Ne),de.on("unpipe",ze);function ze(bn,Pt){ge("onunpipe"),bn===He&&Pt&&Pt.hasUnpiped===!1&&(Pt.hasUnpiped=!0,Ot())}function Qe(){ge("onend"),de.end()}var ot=dt(He);de.on("drain",ot);var mt=!1;function Ot(){ge("cleanup"),de.removeListener("close",Ft),de.removeListener("finish",Qt),de.removeListener("drain",ot),de.removeListener("error",xn),de.removeListener("unpipe",ze),He.removeListener("end",Qe),He.removeListener("end",Zt),He.removeListener("data",Ut),mt=!0,je.awaitDrain&&(!de._writableState||de._writableState.needDrain)&&ot()}var xt=!1;He.on("data",Ut);function Ut(bn){ge("ondata"),xt=!1;var Pt=de.write(bn);Pt===!1&&!xt&&((je.pipesCount===1&&je.pipes===de||je.pipesCount>1&&Ve(je.pipes,de)!==-1)&&!mt&&(ge("false write response, pause",He._readableState.awaitDrain),He._readableState.awaitDrain++,xt=!0),He.pause())}function xn(bn){ge("onerror",bn),Zt(),de.removeListener("error",xn),re(de,"error")===0&&de.emit("error",bn)}ke(de,"error",xn);function Ft(){de.removeListener("finish",Qt),Zt()}de.once("close",Ft);function Qt(){ge("onfinish"),de.removeListener("close",Ft),Zt()}de.once("finish",Qt);function Zt(){ge("unpipe"),He.unpipe(de)}return de.emit("pipe",He),je.flowing||(ge("pipe resume"),He.resume()),de};function dt(de){return function(){var Ce=de._readableState;ge("pipeOnDrain",Ce.awaitDrain),Ce.awaitDrain&&Ce.awaitDrain--,Ce.awaitDrain===0&&re(de,"data")&&(Ce.flowing=!0,at(de))}}Le.prototype.unpipe=function(de){var Ce=this._readableState,He={hasUnpiped:!1};if(Ce.pipesCount===0)return this;if(Ce.pipesCount===1)return de&&de!==Ce.pipes?this:(de||(de=Ce.pipes),Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1,de&&de.emit("unpipe",this,He),this);if(!de){var je=Ce.pipes,Ae=Ce.pipesCount;Ce.pipes=null,Ce.pipesCount=0,Ce.flowing=!1;for(var Ne=0;Ne<Ae;Ne++)je[Ne].emit("unpipe",this,He);return this}var ze=Ve(Ce.pipes,de);return ze===-1?this:(Ce.pipes.splice(ze,1),Ce.pipesCount-=1,Ce.pipesCount===1&&(Ce.pipes=Ce.pipes[0]),de.emit("unpipe",this,He),this)},Le.prototype.on=function(de,Ce){var He=se.prototype.on.call(this,de,Ce);if(de==="data")this._readableState.flowing!==!1&&this.resume();else if(de==="readable"){var je=this._readableState;!je.endEmitted&&!je.readableListening&&(je.readableListening=je.needReadable=!0,je.emittedReadable=!1,je.reading?je.length&&pt(this):ae.nextTick(st,this))}return He},Le.prototype.addListener=Le.prototype.on;function st(de){ge("readable nexttick read 0"),de.read(0)}Le.prototype.resume=function(){var de=this._readableState;return de.flowing||(ge("resume"),de.flowing=!0,nt(this,de)),this};function nt(de,Ce){Ce.resumeScheduled||(Ce.resumeScheduled=!0,ae.nextTick(rt,de,Ce))}function rt(de,Ce){Ce.reading||(ge("resume read 0"),de.read(0)),Ce.resumeScheduled=!1,Ce.awaitDrain=0,de.emit("resume"),at(de),Ce.flowing&&!Ce.reading&&de.read(0)}Le.prototype.pause=function(){return ge("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ge("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function at(de){var Ce=de._readableState;for(ge("flow",Ce.flowing);Ce.flowing&&de.read()!==null;);}Le.prototype.wrap=function(de){var Ce=this,He=this._readableState,je=!1;de.on("end",function(){if(ge("wrapped end"),He.decoder&&!He.ended){var ze=He.decoder.end();ze&&ze.length&&Ce.push(ze)}Ce.push(null)}),de.on("data",function(ze){if(ge("wrapped data"),He.decoder&&(ze=He.decoder.write(ze)),!(He.objectMode&&ze==null)&&!(!He.objectMode&&(!ze||!ze.length))){var Qe=Ce.push(ze);Qe||(je=!0,de.pause())}});for(var Ae in de)this[Ae]===void 0&&typeof de[Ae]=="function"&&(this[Ae]=function(ze){return function(){return de[ze].apply(de,arguments)}}(Ae));for(var Ne=0;Ne<Fe.length;Ne++)de.on(Fe[Ne],this.emit.bind(this,Fe[Ne]));return this._read=function(ze){ge("wrapped _read",ze),je&&(je=!1,de.resume())},this},Object.defineProperty(Le.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Le._fromList=gt;function gt(de,Ce){if(Ce.length===0)return null;var He;return Ce.objectMode?He=Ce.buffer.shift():!de||de>=Ce.length?(Ce.decoder?He=Ce.buffer.join(""):Ce.buffer.length===1?He=Ce.buffer.head.data:He=Ce.buffer.concat(Ce.length),Ce.buffer.clear()):He=vt(de,Ce.buffer,Ce.decoder),He}function vt(de,Ce,He){var je;return de<Ce.head.data.length?(je=Ce.head.data.slice(0,de),Ce.head.data=Ce.head.data.slice(de)):de===Ce.head.data.length?je=Ce.shift():je=He?Et(de,Ce):At(de,Ce),je}function Et(de,Ce){var He=Ce.head,je=1,Ae=He.data;for(de-=Ae.length;He=He.next;){var Ne=He.data,ze=de>Ne.length?Ne.length:de;if(ze===Ne.length?Ae+=Ne:Ae+=Ne.slice(0,de),de-=ze,de===0){ze===Ne.length?(++je,He.next?Ce.head=He.next:Ce.head=Ce.tail=null):(Ce.head=He,He.data=Ne.slice(ze));break}++je}return Ce.length-=je,Ae}function At(de,Ce){var He=ce.allocUnsafe(de),je=Ce.head,Ae=1;for(je.data.copy(He),de-=je.data.length;je=je.next;){var Ne=je.data,ze=de>Ne.length?Ne.length:de;if(Ne.copy(He,He.length-de,0,ze),de-=ze,de===0){ze===Ne.length?(++Ae,je.next?Ce.head=je.next:Ce.head=Ce.tail=null):(Ce.head=je,je.data=Ne.slice(ze));break}++Ae}return Ce.length-=Ae,He}function ut(de){var Ce=de._readableState;if(Ce.length>0)throw new Error('"endReadable()" called on non-empty stream');Ce.endEmitted||(Ce.ended=!0,ae.nextTick(Ye,Ce,de))}function Ye(de,Ce){!de.endEmitted&&de.length===0&&(de.endEmitted=!0,Ce.readable=!1,Ce.emit("end"))}function Ve(de,Ce){for(var He=0,je=de.length;He<je;He++)if(de[He]===Ce)return He;return-1}}).call(this)}).call(this,x("_process"),typeof Kt!="undefined"?Kt: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(x,Te,ve){"use strict";Te.exports=ne;var ie=x("./_stream_duplex"),te=Object.create(x("core-util-is"));te.inherits=x("inherits"),te.inherits(ne,ie);function ae(re,se){var ce=this._transformState;ce.transforming=!1;var fe=ce.writecb;if(!fe)return this.emit("error",new Error("write callback called multiple times"));ce.writechunk=null,ce.writecb=null,se!=null&&this.push(se),fe(re);var pe=this._readableState;pe.reading=!1,(pe.needReadable||pe.length<pe.highWaterMark)&&this._read(pe.highWaterMark)}function ne(re){if(!(this instanceof ne))return new ne(re);ie.call(this,re),this._transformState={afterTransform:ae.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,re&&(typeof re.transform=="function"&&(this._transform=re.transform),typeof re.flush=="function"&&(this._flush=re.flush)),this.on("prefinish",oe)}function oe(){var re=this;typeof this._flush=="function"?this._flush(function(se,ce){he(re,se,ce)}):he(this,null,null)}ne.prototype.push=function(re,se){return this._transformState.needTransform=!1,ie.prototype.push.call(this,re,se)},ne.prototype._transform=function(re,se,ce){throw new Error("_transform() is not implemented")},ne.prototype._write=function(re,se,ce){var fe=this._transformState;if(fe.writecb=ce,fe.writechunk=re,fe.writeencoding=se,!fe.transforming){var pe=this._readableState;(fe.needTransform||pe.needReadable||pe.length<pe.highWaterMark)&&this._read(pe.highWaterMark)}},ne.prototype._read=function(re){var se=this._transformState;se.writechunk!==null&&se.writecb&&!se.transforming?(se.transforming=!0,this._transform(se.writechunk,se.writeencoding,se.afterTransform)):se.needTransform=!0},ne.prototype._destroy=function(re,se){var ce=this;ie.prototype._destroy.call(this,re,function(fe){se(fe),ce.emit("close")})};function he(re,se,ce){if(se)return re.emit("error",se);if(ce!=null&&re.push(ce),re._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(re._transformState.transforming)throw new Error("Calling transform done when still transforming");return re.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(x,Te,ve){(function(ie,te,ae){(function(){"use strict";var ne=x("process-nextick-args");Te.exports=ke;function oe(rt,at,gt){this.chunk=rt,this.encoding=at,this.callback=gt,this.next=null}function he(rt){var at=this;this.next=null,this.entry=null,this.finish=function(){nt(at,rt)}}var re=!ie.browser&&["v0.10","v0.9."].indexOf(ie.version.slice(0,5))>-1?ae:ne.nextTick,se;ke.WritableState=be;var ce=Object.create(x("core-util-is"));ce.inherits=x("inherits");var fe={deprecate:x("util-deprecate")},pe=x("./internal/streams/stream"),le=x("safe-buffer").Buffer,Se=te.Uint8Array||function(){};function xe(rt){return le.from(rt)}function ge(rt){return le.isBuffer(rt)||rt instanceof Se}var Me=x("./internal/streams/destroy");ce.inherits(ke,pe);function ye(){}function be(rt,at){se=se||x("./_stream_duplex"),rt=rt||{};var gt=at instanceof se;this.objectMode=!!rt.objectMode,gt&&(this.objectMode=this.objectMode||!!rt.writableObjectMode);var vt=rt.highWaterMark,Et=rt.writableHighWaterMark,At=this.objectMode?16:16*1024;vt||vt===0?this.highWaterMark=vt:gt&&(Et||Et===0)?this.highWaterMark=Et:this.highWaterMark=At,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ut=rt.decodeStrings===!1;this.decodeStrings=!ut,this.defaultEncoding=rt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ye){Ze(at,Ye)},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 he(this)}be.prototype.getBuffer=function(){for(var at=this.bufferedRequest,gt=[];at;)gt.push(at),at=at.next;return gt},function(){try{Object.defineProperty(be.prototype,"buffer",{get:fe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(rt){}}();var Fe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Fe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ke,Symbol.hasInstance,{value:function(rt){return Fe.call(this,rt)?!0:this!==ke?!1:rt&&rt._writableState instanceof be}})):Fe=function(rt){return rt instanceof this};function ke(rt){if(se=se||x("./_stream_duplex"),!Fe.call(ke,this)&&!(this instanceof se))return new ke(rt);this._writableState=new be(rt,this),this.writable=!0,rt&&(typeof rt.write=="function"&&(this._write=rt.write),typeof rt.writev=="function"&&(this._writev=rt.writev),typeof rt.destroy=="function"&&(this._destroy=rt.destroy),typeof rt.final=="function"&&(this._final=rt.final)),pe.call(this)}ke.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function De(rt,at){var gt=new Error("write after end");rt.emit("error",gt),ne.nextTick(at,gt)}function Le(rt,at,gt,vt){var Et=!0,At=!1;return gt===null?At=new TypeError("May not write null values to stream"):typeof gt!="string"&>!==void 0&&!at.objectMode&&(At=new TypeError("Invalid non-string/buffer chunk")),At&&(rt.emit("error",At),ne.nextTick(vt,At),Et=!1),Et}ke.prototype.write=function(rt,at,gt){var vt=this._writableState,Et=!1,At=!vt.objectMode&&ge(rt);return At&&!le.isBuffer(rt)&&(rt=xe(rt)),typeof at=="function"&&(gt=at,at=null),At?at="buffer":at||(at=vt.defaultEncoding),typeof gt!="function"&&(gt=ye),vt.ended?De(this,gt):(At||Le(this,vt,rt,gt))&&(vt.pendingcb++,Et=Be(this,vt,At,rt,at,gt)),Et},ke.prototype.cork=function(){var rt=this._writableState;rt.corked++},ke.prototype.uncork=function(){var rt=this._writableState;rt.corked&&(rt.corked--,!rt.writing&&!rt.corked&&!rt.finished&&!rt.bufferProcessing&&rt.bufferedRequest&&pt(this,rt))},ke.prototype.setDefaultEncoding=function(at){if(typeof at=="string"&&(at=at.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((at+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+at);return this._writableState.defaultEncoding=at,this};function Ie(rt,at,gt){return!rt.objectMode&&rt.decodeStrings!==!1&&typeof at=="string"&&(at=le.from(at,gt)),at}Object.defineProperty(ke.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Be(rt,at,gt,vt,Et,At){if(!gt){var ut=Ie(at,vt,Et);vt!==ut&&(gt=!0,Et="buffer",vt=ut)}var Ye=at.objectMode?1:vt.length;at.length+=Ye;var Ve=at.length<at.highWaterMark;if(Ve||(at.needDrain=!0),at.writing||at.corked){var de=at.lastBufferedRequest;at.lastBufferedRequest={chunk:vt,encoding:Et,isBuf:gt,callback:At,next:null},de?de.next=at.lastBufferedRequest:at.bufferedRequest=at.lastBufferedRequest,at.bufferedRequestCount+=1}else Ue(rt,at,!1,Ye,vt,Et,At);return Ve}function Ue(rt,at,gt,vt,Et,At,ut){at.writelen=vt,at.writecb=ut,at.writing=!0,at.sync=!0,gt?rt._writev(Et,at.onwrite):rt._write(Et,At,at.onwrite),at.sync=!1}function _e(rt,at,gt,vt,Et){--at.pendingcb,gt?(ne.nextTick(Et,vt),ne.nextTick(dt,rt,at),rt._writableState.errorEmitted=!0,rt.emit("error",vt)):(Et(vt),rt._writableState.errorEmitted=!0,rt.emit("error",vt),dt(rt,at))}function We(rt){rt.writing=!1,rt.writecb=null,rt.length-=rt.writelen,rt.writelen=0}function Ze(rt,at){var gt=rt._writableState,vt=gt.sync,Et=gt.writecb;if(We(gt),at)_e(rt,gt,vt,at,Et);else{var At=Ge(gt);!At&&!gt.corked&&!gt.bufferProcessing&>.bufferedRequest&&pt(rt,gt),vt?re(et,rt,gt,At,Et):et(rt,gt,At,Et)}}function et(rt,at,gt,vt){gt||it(rt,at),at.pendingcb--,vt(),dt(rt,at)}function it(rt,at){at.length===0&&at.needDrain&&(at.needDrain=!1,rt.emit("drain"))}function pt(rt,at){at.bufferProcessing=!0;var gt=at.bufferedRequest;if(rt._writev&>&>.next){var vt=at.bufferedRequestCount,Et=new Array(vt),At=at.corkedRequestsFree;At.entry=gt;for(var ut=0,Ye=!0;gt;)Et[ut]=gt,gt.isBuf||(Ye=!1),gt=gt.next,ut+=1;Et.allBuffers=Ye,Ue(rt,at,!0,at.length,Et,"",At.finish),at.pendingcb++,at.lastBufferedRequest=null,At.next?(at.corkedRequestsFree=At.next,At.next=null):at.corkedRequestsFree=new he(at),at.bufferedRequestCount=0}else{for(;gt;){var Ve=gt.chunk,de=gt.encoding,Ce=gt.callback,He=at.objectMode?1:Ve.length;if(Ue(rt,at,!1,He,Ve,de,Ce),gt=gt.next,at.bufferedRequestCount--,at.writing)break}gt===null&&(at.lastBufferedRequest=null)}at.bufferedRequest=gt,at.bufferProcessing=!1}ke.prototype._write=function(rt,at,gt){gt(new Error("_write() is not implemented"))},ke.prototype._writev=null,ke.prototype.end=function(rt,at,gt){var vt=this._writableState;typeof rt=="function"?(gt=rt,rt=null,at=null):typeof at=="function"&&(gt=at,at=null),rt!=null&&this.write(rt,at),vt.corked&&(vt.corked=1,this.uncork()),!vt.ending&&!vt.finished&&st(this,vt,gt)};function Ge(rt){return rt.ending&&rt.length===0&&rt.bufferedRequest===null&&!rt.finished&&!rt.writing}function Xe(rt,at){rt._final(function(gt){at.pendingcb--,gt&&rt.emit("error",gt),at.prefinished=!0,rt.emit("prefinish"),dt(rt,at)})}function lt(rt,at){!at.prefinished&&!at.finalCalled&&(typeof rt._final=="function"?(at.pendingcb++,at.finalCalled=!0,ne.nextTick(Xe,rt,at)):(at.prefinished=!0,rt.emit("prefinish")))}function dt(rt,at){var gt=Ge(at);return gt&&(lt(rt,at),at.pendingcb===0&&(at.finished=!0,rt.emit("finish"))),gt}function st(rt,at,gt){at.ending=!0,dt(rt,at),gt&&(at.finished?ne.nextTick(gt):rt.once("finish",gt)),at.ended=!0,rt.writable=!1}function nt(rt,at,gt){var vt=rt.entry;for(rt.entry=null;vt;){var Et=vt.callback;at.pendingcb--,Et(gt),vt=vt.next}at.corkedRequestsFree?at.corkedRequestsFree.next=rt:at.corkedRequestsFree=rt}Object.defineProperty(ke.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(rt){this._writableState&&(this._writableState.destroyed=rt)}}),ke.prototype.destroy=Me.destroy,ke.prototype._undestroy=Me.undestroy,ke.prototype._destroy=function(rt,at){this.end(),at(rt)}}).call(this)}).call(this,x("_process"),typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("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(x,Te,ve){"use strict";function ie(oe,he){if(!(oe instanceof he))throw new TypeError("Cannot call a class as a function")}var te=x("safe-buffer").Buffer,ae=x("util");function ne(oe,he,re){oe.copy(he,re)}Te.exports=function(){function oe(){ie(this,oe),this.head=null,this.tail=null,this.length=0}return oe.prototype.push=function(re){var se={data:re,next:null};this.length>0?this.tail.next=se:this.head=se,this.tail=se,++this.length},oe.prototype.unshift=function(re){var se={data:re,next:this.head};this.length===0&&(this.tail=se),this.head=se,++this.length},oe.prototype.shift=function(){if(this.length!==0){var re=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,re}},oe.prototype.clear=function(){this.head=this.tail=null,this.length=0},oe.prototype.join=function(re){if(this.length===0)return"";for(var se=this.head,ce=""+se.data;se=se.next;)ce+=re+se.data;return ce},oe.prototype.concat=function(re){if(this.length===0)return te.alloc(0);if(this.length===1)return this.head.data;for(var se=te.allocUnsafe(re>>>0),ce=this.head,fe=0;ce;)ne(ce.data,se,fe),fe+=ce.data.length,ce=ce.next;return se},oe}(),ae&&ae.inspect&&ae.inspect.custom&&(Te.exports.prototype[ae.inspect.custom]=function(){var oe=ae.inspect({length:this.length});return this.constructor.name+" "+oe})},{"safe-buffer":396,util:89}],392:[function(x,Te,ve){"use strict";var ie=x("process-nextick-args");function te(oe,he){var re=this,se=this._readableState&&this._readableState.destroyed,ce=this._writableState&&this._writableState.destroyed;return se||ce?(he?he(oe):oe&&(!this._writableState||!this._writableState.errorEmitted)&&ie.nextTick(ne,this,oe),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(oe||null,function(fe){!he&&fe?(ie.nextTick(ne,re,fe),re._writableState&&(re._writableState.errorEmitted=!0)):he&&he(fe)}),this)}function ae(){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 ne(oe,he){oe.emit("error",he)}Te.exports={destroy:te,undestroy:ae}},{"process-nextick-args":380}],393:[function(x,Te,ve){Te.exports=x("events").EventEmitter},{events:344}],394:[function(x,Te,ve){ve=Te.exports=x("./lib/_stream_readable.js"),ve.Stream=ve,ve.Readable=ve,ve.Writable=x("./lib/_stream_writable.js"),ve.Duplex=x("./lib/_stream_duplex.js"),ve.Transform=x("./lib/_stream_transform.js"),ve.PassThrough=x("./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(x,Te,ve){var ie=function(te){"use strict";var ae=Object.prototype,ne=ae.hasOwnProperty,oe,he=typeof Symbol=="function"?Symbol:{},re=he.iterator||"@@iterator",se=he.asyncIterator||"@@asyncIterator",ce=he.toStringTag||"@@toStringTag";function fe(lt,dt,st){return Object.defineProperty(lt,dt,{value:st,enumerable:!0,configurable:!0,writable:!0}),lt[dt]}try{fe({},"")}catch(lt){fe=function(dt,st,nt){return dt[st]=nt}}function pe(lt,dt,st,nt){var rt=dt&&dt.prototype instanceof be?dt:be,at=Object.create(rt.prototype),gt=new pt(nt||[]);return at._invoke=We(lt,st,gt),at}te.wrap=pe;function le(lt,dt,st){try{return{type:"normal",arg:lt.call(dt,st)}}catch(nt){return{type:"throw",arg:nt}}}var Se="suspendedStart",xe="suspendedYield",ge="executing",Me="completed",ye={};function be(){}function Fe(){}function ke(){}var De={};fe(De,re,function(){return this});var Le=Object.getPrototypeOf,Ie=Le&&Le(Le(Ge([])));Ie&&Ie!==ae&&ne.call(Ie,re)&&(De=Ie);var Be=ke.prototype=be.prototype=Object.create(De);Fe.prototype=ke,fe(Be,"constructor",ke),fe(ke,"constructor",Fe),Fe.displayName=fe(ke,ce,"GeneratorFunction");function Ue(lt){["next","throw","return"].forEach(function(dt){fe(lt,dt,function(st){return this._invoke(dt,st)})})}te.isGeneratorFunction=function(lt){var dt=typeof lt=="function"&<.constructor;return dt?dt===Fe||(dt.displayName||dt.name)==="GeneratorFunction":!1},te.mark=function(lt){return Object.setPrototypeOf?Object.setPrototypeOf(lt,ke):(lt.__proto__=ke,fe(lt,ce,"GeneratorFunction")),lt.prototype=Object.create(Be),lt},te.awrap=function(lt){return{__await:lt}};function _e(lt,dt){function st(at,gt,vt,Et){var At=le(lt[at],lt,gt);if(At.type==="throw")Et(At.arg);else{var ut=At.arg,Ye=ut.value;return Ye&&typeof Ye=="object"&&ne.call(Ye,"__await")?dt.resolve(Ye.__await).then(function(Ve){st("next",Ve,vt,Et)},function(Ve){st("throw",Ve,vt,Et)}):dt.resolve(Ye).then(function(Ve){ut.value=Ve,vt(ut)},function(Ve){return st("throw",Ve,vt,Et)})}}var nt;function rt(at,gt){function vt(){return new dt(function(Et,At){st(at,gt,Et,At)})}return nt=nt?nt.then(vt,vt):vt()}this._invoke=rt}Ue(_e.prototype),fe(_e.prototype,se,function(){return this}),te.AsyncIterator=_e,te.async=function(lt,dt,st,nt,rt){rt===void 0&&(rt=Promise);var at=new _e(pe(lt,dt,st,nt),rt);return te.isGeneratorFunction(dt)?at:at.next().then(function(gt){return gt.done?gt.value:at.next()})};function We(lt,dt,st){var nt=Se;return function(at,gt){if(nt===ge)throw new Error("Generator is already running");if(nt===Me){if(at==="throw")throw gt;return Xe()}for(st.method=at,st.arg=gt;;){var vt=st.delegate;if(vt){var Et=Ze(vt,st);if(Et){if(Et===ye)continue;return Et}}if(st.method==="next")st.sent=st._sent=st.arg;else if(st.method==="throw"){if(nt===Se)throw nt=Me,st.arg;st.dispatchException(st.arg)}else st.method==="return"&&st.abrupt("return",st.arg);nt=ge;var At=le(lt,dt,st);if(At.type==="normal"){if(nt=st.done?Me:xe,At.arg===ye)continue;return{value:At.arg,done:st.done}}else At.type==="throw"&&(nt=Me,st.method="throw",st.arg=At.arg)}}}function Ze(lt,dt){var st=lt.iterator[dt.method];if(st===oe){if(dt.delegate=null,dt.method==="throw"){if(lt.iterator.return&&(dt.method="return",dt.arg=oe,Ze(lt,dt),dt.method==="throw"))return ye;dt.method="throw",dt.arg=new TypeError("The iterator does not provide a 'throw' method")}return ye}var nt=le(st,lt.iterator,dt.arg);if(nt.type==="throw")return dt.method="throw",dt.arg=nt.arg,dt.delegate=null,ye;var rt=nt.arg;if(!rt)return dt.method="throw",dt.arg=new TypeError("iterator result is not an object"),dt.delegate=null,ye;if(rt.done)dt[lt.resultName]=rt.value,dt.next=lt.nextLoc,dt.method!=="return"&&(dt.method="next",dt.arg=oe);else return rt;return dt.delegate=null,ye}Ue(Be),fe(Be,ce,"Generator"),fe(Be,re,function(){return this}),fe(Be,"toString",function(){return"[object Generator]"});function et(lt){var dt={tryLoc:lt[0]};1 in lt&&(dt.catchLoc=lt[1]),2 in lt&&(dt.finallyLoc=lt[2],dt.afterLoc=lt[3]),this.tryEntries.push(dt)}function it(lt){var dt=lt.completion||{};dt.type="normal",delete dt.arg,lt.completion=dt}function pt(lt){this.tryEntries=[{tryLoc:"root"}],lt.forEach(et,this),this.reset(!0)}te.keys=function(lt){var dt=[];for(var st in lt)dt.push(st);return dt.reverse(),function nt(){for(;dt.length;){var rt=dt.pop();if(rt in lt)return nt.value=rt,nt.done=!1,nt}return nt.done=!0,nt}};function Ge(lt){if(lt){var dt=lt[re];if(dt)return dt.call(lt);if(typeof lt.next=="function")return lt;if(!isNaN(lt.length)){var st=-1,nt=function rt(){for(;++st<lt.length;)if(ne.call(lt,st))return rt.value=lt[st],rt.done=!1,rt;return rt.value=oe,rt.done=!0,rt};return nt.next=nt}}return{next:Xe}}te.values=Ge;function Xe(){return{value:oe,done:!0}}return pt.prototype={constructor:pt,reset:function(lt){if(this.prev=0,this.next=0,this.sent=this._sent=oe,this.done=!1,this.delegate=null,this.method="next",this.arg=oe,this.tryEntries.forEach(it),!lt)for(var dt in this)dt.charAt(0)==="t"&&ne.call(this,dt)&&!isNaN(+dt.slice(1))&&(this[dt]=oe)},stop:function(){this.done=!0;var lt=this.tryEntries[0],dt=lt.completion;if(dt.type==="throw")throw dt.arg;return this.rval},dispatchException:function(lt){if(this.done)throw lt;var dt=this;function st(Et,At){return at.type="throw",at.arg=lt,dt.next=Et,At&&(dt.method="next",dt.arg=oe),!!At}for(var nt=this.tryEntries.length-1;nt>=0;--nt){var rt=this.tryEntries[nt],at=rt.completion;if(rt.tryLoc==="root")return st("end");if(rt.tryLoc<=this.prev){var gt=ne.call(rt,"catchLoc"),vt=ne.call(rt,"finallyLoc");if(gt&&vt){if(this.prev<rt.catchLoc)return st(rt.catchLoc,!0);if(this.prev<rt.finallyLoc)return st(rt.finallyLoc)}else if(gt){if(this.prev<rt.catchLoc)return st(rt.catchLoc,!0)}else if(vt){if(this.prev<rt.finallyLoc)return st(rt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(lt,dt){for(var st=this.tryEntries.length-1;st>=0;--st){var nt=this.tryEntries[st];if(nt.tryLoc<=this.prev&&ne.call(nt,"finallyLoc")&&this.prev<nt.finallyLoc){var rt=nt;break}}rt&&(lt==="break"||lt==="continue")&&rt.tryLoc<=dt&&dt<=rt.finallyLoc&&(rt=null);var at=rt?rt.completion:{};return at.type=lt,at.arg=dt,rt?(this.method="next",this.next=rt.finallyLoc,ye):this.complete(at)},complete:function(lt,dt){if(lt.type==="throw")throw lt.arg;return lt.type==="break"||lt.type==="continue"?this.next=lt.arg:lt.type==="return"?(this.rval=this.arg=lt.arg,this.method="return",this.next="end"):lt.type==="normal"&&dt&&(this.next=dt),ye},finish:function(lt){for(var dt=this.tryEntries.length-1;dt>=0;--dt){var st=this.tryEntries[dt];if(st.finallyLoc===lt)return this.complete(st.completion,st.afterLoc),it(st),ye}},catch:function(lt){for(var dt=this.tryEntries.length-1;dt>=0;--dt){var st=this.tryEntries[dt];if(st.tryLoc===lt){var nt=st.completion;if(nt.type==="throw"){var rt=nt.arg;it(st)}return rt}}throw new Error("illegal catch attempt")},delegateYield:function(lt,dt,st){return this.delegate={iterator:Ge(lt),resultName:dt,nextLoc:st},this.method==="next"&&(this.arg=oe),ye}},te}(typeof Te=="object"?Te.exports:{});try{regeneratorRuntime=ie}catch(te){typeof globalThis=="object"?globalThis.regeneratorRuntime=ie:Function("r","regeneratorRuntime = r")(ie)}},{}],396:[function(x,Te,ve){var ie=x("buffer"),te=ie.Buffer;function ae(oe,he){for(var re in oe)he[re]=oe[re]}te.from&&te.alloc&&te.allocUnsafe&&te.allocUnsafeSlow?Te.exports=ie:(ae(ie,ve),ve.Buffer=ne);function ne(oe,he,re){return te(oe,he,re)}ae(te,ne),ne.from=function(oe,he,re){if(typeof oe=="number")throw new TypeError("Argument must not be a number");return te(oe,he,re)},ne.alloc=function(oe,he,re){if(typeof oe!="number")throw new TypeError("Argument must be a number");var se=te(oe);return he!==void 0?typeof re=="string"?se.fill(he,re):se.fill(he):se.fill(0),se},ne.allocUnsafe=function(oe){if(typeof oe!="number")throw new TypeError("Argument must be a number");return te(oe)},ne.allocUnsafeSlow=function(oe){if(typeof oe!="number")throw new TypeError("Argument must be a number");return ie.SlowBuffer(oe)}},{buffer:90}],397:[function(x,Te,ve){(function(ie){(function(){(function(te){te.parser=function(ut,Ye){return new ne(ut,Ye)},te.SAXParser=ne,te.SAXStream=pe,te.createStream=fe,te.MAX_BUFFER_LENGTH=64*1024;var ae=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];te.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function ne(ut,Ye){if(!(this instanceof ne))return new ne(ut,Ye);var Ve=this;he(Ve),Ve.q=Ve.c="",Ve.bufferCheckPosition=te.MAX_BUFFER_LENGTH,Ve.opt=Ye||{},Ve.opt.lowercase=Ve.opt.lowercase||Ve.opt.lowercasetags,Ve.looseCase=Ve.opt.lowercase?"toLowerCase":"toUpperCase",Ve.tags=[],Ve.closed=Ve.closedRoot=Ve.sawRoot=!1,Ve.tag=Ve.error=null,Ve.strict=!!ut,Ve.noscript=!!(ut||Ve.opt.noscript),Ve.state=_e.BEGIN,Ve.strictEntities=Ve.opt.strictEntities,Ve.ENTITIES=Ve.strictEntities?Object.create(te.XML_ENTITIES):Object.create(te.ENTITIES),Ve.attribList=[],Ve.opt.xmlns&&(Ve.ns=Object.create(Me)),Ve.trackPosition=Ve.opt.position!==!1,Ve.trackPosition&&(Ve.position=Ve.line=Ve.column=0),Ze(Ve,"onready")}Object.create||(Object.create=function(ut){function Ye(){}Ye.prototype=ut;var Ve=new Ye;return Ve}),Object.keys||(Object.keys=function(ut){var Ye=[];for(var Ve in ut)ut.hasOwnProperty(Ve)&&Ye.push(Ve);return Ye});function oe(ut){for(var Ye=Math.max(te.MAX_BUFFER_LENGTH,10),Ve=0,de=0,Ce=ae.length;de<Ce;de++){var He=ut[ae[de]].length;if(He>Ye)switch(ae[de]){case"textNode":it(ut);break;case"cdata":et(ut,"oncdata",ut.cdata),ut.cdata="";break;case"script":et(ut,"onscript",ut.script),ut.script="";break;default:Ge(ut,"Max buffer length exceeded: "+ae[de])}Ve=Math.max(Ve,He)}var je=te.MAX_BUFFER_LENGTH-Ve;ut.bufferCheckPosition=je+ut.position}function he(ut){for(var Ye=0,Ve=ae.length;Ye<Ve;Ye++)ut[ae[Ye]]=""}function re(ut){it(ut),ut.cdata!==""&&(et(ut,"oncdata",ut.cdata),ut.cdata=""),ut.script!==""&&(et(ut,"onscript",ut.script),ut.script="")}ne.prototype={end:function(){Xe(this)},write:At,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){re(this)}};var se;try{se=x("stream").Stream}catch(ut){se=function(){}}var ce=te.EVENTS.filter(function(ut){return ut!=="error"&&ut!=="end"});function fe(ut,Ye){return new pe(ut,Ye)}function pe(ut,Ye){if(!(this instanceof pe))return new pe(ut,Ye);se.apply(this),this._parser=new ne(ut,Ye),this.writable=!0,this.readable=!0;var Ve=this;this._parser.onend=function(){Ve.emit("end")},this._parser.onerror=function(de){Ve.emit("error",de),Ve._parser.error=null},this._decoder=null,ce.forEach(function(de){Object.defineProperty(Ve,"on"+de,{get:function(){return Ve._parser["on"+de]},set:function(Ce){if(!Ce)return Ve.removeAllListeners(de),Ve._parser["on"+de]=Ce,Ce;Ve.on(de,Ce)},enumerable:!0,configurable:!1})})}pe.prototype=Object.create(se.prototype,{constructor:{value:pe}}),pe.prototype.write=function(ut){if(typeof ie=="function"&&typeof ie.isBuffer=="function"&&ie.isBuffer(ut)){if(!this._decoder){var Ye=x("string_decoder").StringDecoder;this._decoder=new Ye("utf8")}ut=this._decoder.write(ut)}return this._parser.write(ut.toString()),this.emit("data",ut),!0},pe.prototype.end=function(ut){return ut&&ut.length&&this.write(ut),this._parser.end(),!0},pe.prototype.on=function(ut,Ye){var Ve=this;return!Ve._parser["on"+ut]&&ce.indexOf(ut)!==-1&&(Ve._parser["on"+ut]=function(){var de=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);de.splice(0,0,ut),Ve.emit.apply(Ve,de)}),se.prototype.on.call(Ve,ut,Ye)};var le="[CDATA[",Se="DOCTYPE",xe="http://www.w3.org/XML/1998/namespace",ge="http://www.w3.org/2000/xmlns/",Me={xml:xe,xmlns:ge},ye=/[:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Fe=/[#:_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-]/;function De(ut){return ut===" "||ut===`
|
|
|
`||ut==="\r"||ut===" "}function Le(ut){return ut==='"'||ut==="'"}function Ie(ut){return ut===">"||De(ut)}function Be(ut,Ye){return ut.test(Ye)}function Ue(ut,Ye){return!Be(ut,Ye)}var _e=0;te.STATE={BEGIN:_e++,BEGIN_WHITESPACE:_e++,TEXT:_e++,TEXT_ENTITY:_e++,OPEN_WAKA:_e++,SGML_DECL:_e++,SGML_DECL_QUOTED:_e++,DOCTYPE:_e++,DOCTYPE_QUOTED:_e++,DOCTYPE_DTD:_e++,DOCTYPE_DTD_QUOTED:_e++,COMMENT_STARTING:_e++,COMMENT:_e++,COMMENT_ENDING:_e++,COMMENT_ENDED:_e++,CDATA:_e++,CDATA_ENDING:_e++,CDATA_ENDING_2:_e++,PROC_INST:_e++,PROC_INST_BODY:_e++,PROC_INST_ENDING:_e++,OPEN_TAG:_e++,OPEN_TAG_SLASH:_e++,ATTRIB:_e++,ATTRIB_NAME:_e++,ATTRIB_NAME_SAW_WHITE:_e++,ATTRIB_VALUE:_e++,ATTRIB_VALUE_QUOTED:_e++,ATTRIB_VALUE_CLOSED:_e++,ATTRIB_VALUE_UNQUOTED:_e++,ATTRIB_VALUE_ENTITY_Q:_e++,ATTRIB_VALUE_ENTITY_U:_e++,CLOSE_TAG:_e++,CLOSE_TAG_SAW_WHITE:_e++,SCRIPT:_e++,SCRIPT_ENDING:_e++},te.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},te.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(te.ENTITIES).forEach(function(ut){var Ye=te.ENTITIES[ut],Ve=typeof Ye=="number"?String.fromCharCode(Ye):Ye;te.ENTITIES[ut]=Ve});for(var We in te.STATE)te.STATE[te.STATE[We]]=We;_e=te.STATE;function Ze(ut,Ye,Ve){ut[Ye]&&ut[Ye](Ve)}function et(ut,Ye,Ve){ut.textNode&&it(ut),Ze(ut,Ye,Ve)}function it(ut){ut.textNode=pt(ut.opt,ut.textNode),ut.textNode&&Ze(ut,"ontext",ut.textNode),ut.textNode=""}function pt(ut,Ye){return ut.trim&&(Ye=Ye.trim()),ut.normalize&&(Ye=Ye.replace(/\s+/g," ")),Ye}function Ge(ut,Ye){return it(ut),ut.trackPosition&&(Ye+=`
|
|
|
Line: `+ut.line+`
|
|
|
Column: `+ut.column+`
|
|
|
Char: `+ut.c),Ye=new Error(Ye),ut.error=Ye,Ze(ut,"onerror",Ye),ut}function Xe(ut){return ut.sawRoot&&!ut.closedRoot&<(ut,"Unclosed root tag"),ut.state!==_e.BEGIN&&ut.state!==_e.BEGIN_WHITESPACE&&ut.state!==_e.TEXT&&Ge(ut,"Unexpected end"),it(ut),ut.c="",ut.closed=!0,Ze(ut,"onend"),ne.call(ut,ut.strict,ut.opt),ut}function lt(ut,Ye){if(typeof ut!="object"||!(ut instanceof ne))throw new Error("bad call to strictFail");ut.strict&&Ge(ut,Ye)}function dt(ut){ut.strict||(ut.tagName=ut.tagName[ut.looseCase]());var Ye=ut.tags[ut.tags.length-1]||ut,Ve=ut.tag={name:ut.tagName,attributes:{}};ut.opt.xmlns&&(Ve.ns=Ye.ns),ut.attribList.length=0,et(ut,"onopentagstart",Ve)}function st(ut,Ye){var Ve=ut.indexOf(":"),de=Ve<0?["",ut]:ut.split(":"),Ce=de[0],He=de[1];return Ye&&ut==="xmlns"&&(Ce="xmlns",He=""),{prefix:Ce,local:He}}function nt(ut){if(ut.strict||(ut.attribName=ut.attribName[ut.looseCase]()),ut.attribList.indexOf(ut.attribName)!==-1||ut.tag.attributes.hasOwnProperty(ut.attribName)){ut.attribName=ut.attribValue="";return}if(ut.opt.xmlns){var Ye=st(ut.attribName,!0),Ve=Ye.prefix,de=Ye.local;if(Ve==="xmlns")if(de==="xml"&&ut.attribValue!==xe)lt(ut,"xml: prefix must be bound to "+xe+`
|
|
|
Actual: `+ut.attribValue);else if(de==="xmlns"&&ut.attribValue!==ge)lt(ut,"xmlns: prefix must be bound to "+ge+`
|
|
|
Actual: `+ut.attribValue);else{var Ce=ut.tag,He=ut.tags[ut.tags.length-1]||ut;Ce.ns===He.ns&&(Ce.ns=Object.create(He.ns)),Ce.ns[de]=ut.attribValue}ut.attribList.push([ut.attribName,ut.attribValue])}else ut.tag.attributes[ut.attribName]=ut.attribValue,et(ut,"onattribute",{name:ut.attribName,value:ut.attribValue});ut.attribName=ut.attribValue=""}function rt(ut,Ye){if(ut.opt.xmlns){var Ve=ut.tag,de=st(ut.tagName);Ve.prefix=de.prefix,Ve.local=de.local,Ve.uri=Ve.ns[de.prefix]||"",Ve.prefix&&!Ve.uri&&(lt(ut,"Unbound namespace prefix: "+JSON.stringify(ut.tagName)),Ve.uri=de.prefix);var Ce=ut.tags[ut.tags.length-1]||ut;Ve.ns&&Ce.ns!==Ve.ns&&Object.keys(Ve.ns).forEach(function(Ut){et(ut,"onopennamespace",{prefix:Ut,uri:Ve.ns[Ut]})});for(var He=0,je=ut.attribList.length;He<je;He++){var Ae=ut.attribList[He],Ne=Ae[0],ze=Ae[1],Qe=st(Ne,!0),ot=Qe.prefix,mt=Qe.local,Ot=ot===""?"":Ve.ns[ot]||"",xt={name:Ne,value:ze,prefix:ot,local:mt,uri:Ot};ot&&ot!=="xmlns"&&!Ot&&(lt(ut,"Unbound namespace prefix: "+JSON.stringify(ot)),xt.uri=ot),ut.tag.attributes[Ne]=xt,et(ut,"onattribute",xt)}ut.attribList.length=0}ut.tag.isSelfClosing=!!Ye,ut.sawRoot=!0,ut.tags.push(ut.tag),et(ut,"onopentag",ut.tag),Ye||(!ut.noscript&&ut.tagName.toLowerCase()==="script"?ut.state=_e.SCRIPT:ut.state=_e.TEXT,ut.tag=null,ut.tagName=""),ut.attribName=ut.attribValue="",ut.attribList.length=0}function at(ut){if(!ut.tagName){lt(ut,"Weird empty close tag."),ut.textNode+="</>",ut.state=_e.TEXT;return}if(ut.script){if(ut.tagName!=="script"){ut.script+="</"+ut.tagName+">",ut.tagName="",ut.state=_e.SCRIPT;return}et(ut,"onscript",ut.script),ut.script=""}var Ye=ut.tags.length,Ve=ut.tagName;ut.strict||(Ve=Ve[ut.looseCase]());for(var de=Ve;Ye--;){var Ce=ut.tags[Ye];if(Ce.name!==de)lt(ut,"Unexpected close tag");else break}if(Ye<0){lt(ut,"Unmatched closing tag: "+ut.tagName),ut.textNode+="</"+ut.tagName+">",ut.state=_e.TEXT;return}ut.tagName=Ve;for(var He=ut.tags.length;He-- >Ye;){var je=ut.tag=ut.tags.pop();ut.tagName=ut.tag.name,et(ut,"onclosetag",ut.tagName);var Ae={};for(var Ne in je.ns)Ae[Ne]=je.ns[Ne];var ze=ut.tags[ut.tags.length-1]||ut;ut.opt.xmlns&&je.ns!==ze.ns&&Object.keys(je.ns).forEach(function(Qe){var ot=je.ns[Qe];et(ut,"onclosenamespace",{prefix:Qe,uri:ot})})}Ye===0&&(ut.closedRoot=!0),ut.tagName=ut.attribValue=ut.attribName="",ut.attribList.length=0,ut.state=_e.TEXT}function gt(ut){var Ye=ut.entity,Ve=Ye.toLowerCase(),de,Ce="";return ut.ENTITIES[Ye]?ut.ENTITIES[Ye]:ut.ENTITIES[Ve]?ut.ENTITIES[Ve]:(Ye=Ve,Ye.charAt(0)==="#"&&(Ye.charAt(1)==="x"?(Ye=Ye.slice(2),de=parseInt(Ye,16),Ce=de.toString(16)):(Ye=Ye.slice(1),de=parseInt(Ye,10),Ce=de.toString(10))),Ye=Ye.replace(/^0+/,""),isNaN(de)||Ce.toLowerCase()!==Ye?(lt(ut,"Invalid character entity"),"&"+ut.entity+";"):String.fromCodePoint(de))}function vt(ut,Ye){Ye==="<"?(ut.state=_e.OPEN_WAKA,ut.startTagPosition=ut.position):De(Ye)||(lt(ut,"Non-whitespace before first tag."),ut.textNode=Ye,ut.state=_e.TEXT)}function Et(ut,Ye){var Ve="";return Ye<ut.length&&(Ve=ut.charAt(Ye)),Ve}function At(ut){var Ye=this;if(this.error)throw this.error;if(Ye.closed)return Ge(Ye,"Cannot write after close. Assign an onready handler.");if(ut===null)return Xe(Ye);typeof ut=="object"&&(ut=ut.toString());for(var Ve=0,de="";de=Et(ut,Ve++),Ye.c=de,!!de;)switch(Ye.trackPosition&&(Ye.position++,de===`
|
|
|
`?(Ye.line++,Ye.column=0):Ye.column++),Ye.state){case _e.BEGIN:if(Ye.state=_e.BEGIN_WHITESPACE,de==="\uFEFF")continue;vt(Ye,de);continue;case _e.BEGIN_WHITESPACE:vt(Ye,de);continue;case _e.TEXT:if(Ye.sawRoot&&!Ye.closedRoot){for(var Ce=Ve-1;de&&de!=="<"&&de!=="&";)de=Et(ut,Ve++),de&&Ye.trackPosition&&(Ye.position++,de===`
|
|
|
`?(Ye.line++,Ye.column=0):Ye.column++);Ye.textNode+=ut.substring(Ce,Ve-1)}de==="<"&&!(Ye.sawRoot&&Ye.closedRoot&&!Ye.strict)?(Ye.state=_e.OPEN_WAKA,Ye.startTagPosition=Ye.position):(!De(de)&&(!Ye.sawRoot||Ye.closedRoot)&<(Ye,"Text data outside of root node."),de==="&"?Ye.state=_e.TEXT_ENTITY:Ye.textNode+=de);continue;case _e.SCRIPT:de==="<"?Ye.state=_e.SCRIPT_ENDING:Ye.script+=de;continue;case _e.SCRIPT_ENDING:de==="/"?Ye.state=_e.CLOSE_TAG:(Ye.script+="<"+de,Ye.state=_e.SCRIPT);continue;case _e.OPEN_WAKA:if(de==="!")Ye.state=_e.SGML_DECL,Ye.sgmlDecl="";else if(!De(de))if(Be(ye,de))Ye.state=_e.OPEN_TAG,Ye.tagName=de;else if(de==="/")Ye.state=_e.CLOSE_TAG,Ye.tagName="";else if(de==="?")Ye.state=_e.PROC_INST,Ye.procInstName=Ye.procInstBody="";else{if(lt(Ye,"Unencoded <"),Ye.startTagPosition+1<Ye.position){var He=Ye.position-Ye.startTagPosition;de=new Array(He).join(" ")+de}Ye.textNode+="<"+de,Ye.state=_e.TEXT}continue;case _e.SGML_DECL:(Ye.sgmlDecl+de).toUpperCase()===le?(et(Ye,"onopencdata"),Ye.state=_e.CDATA,Ye.sgmlDecl="",Ye.cdata=""):Ye.sgmlDecl+de==="--"?(Ye.state=_e.COMMENT,Ye.comment="",Ye.sgmlDecl=""):(Ye.sgmlDecl+de).toUpperCase()===Se?(Ye.state=_e.DOCTYPE,(Ye.doctype||Ye.sawRoot)&<(Ye,"Inappropriately located doctype declaration"),Ye.doctype="",Ye.sgmlDecl=""):de===">"?(et(Ye,"onsgmldeclaration",Ye.sgmlDecl),Ye.sgmlDecl="",Ye.state=_e.TEXT):(Le(de)&&(Ye.state=_e.SGML_DECL_QUOTED),Ye.sgmlDecl+=de);continue;case _e.SGML_DECL_QUOTED:de===Ye.q&&(Ye.state=_e.SGML_DECL,Ye.q=""),Ye.sgmlDecl+=de;continue;case _e.DOCTYPE:de===">"?(Ye.state=_e.TEXT,et(Ye,"ondoctype",Ye.doctype),Ye.doctype=!0):(Ye.doctype+=de,de==="["?Ye.state=_e.DOCTYPE_DTD:Le(de)&&(Ye.state=_e.DOCTYPE_QUOTED,Ye.q=de));continue;case _e.DOCTYPE_QUOTED:Ye.doctype+=de,de===Ye.q&&(Ye.q="",Ye.state=_e.DOCTYPE);continue;case _e.DOCTYPE_DTD:Ye.doctype+=de,de==="]"?Ye.state=_e.DOCTYPE:Le(de)&&(Ye.state=_e.DOCTYPE_DTD_QUOTED,Ye.q=de);continue;case _e.DOCTYPE_DTD_QUOTED:Ye.doctype+=de,de===Ye.q&&(Ye.state=_e.DOCTYPE_DTD,Ye.q="");continue;case _e.COMMENT:de==="-"?Ye.state=_e.COMMENT_ENDING:Ye.comment+=de;continue;case _e.COMMENT_ENDING:de==="-"?(Ye.state=_e.COMMENT_ENDED,Ye.comment=pt(Ye.opt,Ye.comment),Ye.comment&&et(Ye,"oncomment",Ye.comment),Ye.comment=""):(Ye.comment+="-"+de,Ye.state=_e.COMMENT);continue;case _e.COMMENT_ENDED:de!==">"?(lt(Ye,"Malformed comment"),Ye.comment+="--"+de,Ye.state=_e.COMMENT):Ye.state=_e.TEXT;continue;case _e.CDATA:de==="]"?Ye.state=_e.CDATA_ENDING:Ye.cdata+=de;continue;case _e.CDATA_ENDING:de==="]"?Ye.state=_e.CDATA_ENDING_2:(Ye.cdata+="]"+de,Ye.state=_e.CDATA);continue;case _e.CDATA_ENDING_2:de===">"?(Ye.cdata&&et(Ye,"oncdata",Ye.cdata),et(Ye,"onclosecdata"),Ye.cdata="",Ye.state=_e.TEXT):de==="]"?Ye.cdata+="]":(Ye.cdata+="]]"+de,Ye.state=_e.CDATA);continue;case _e.PROC_INST:de==="?"?Ye.state=_e.PROC_INST_ENDING:De(de)?Ye.state=_e.PROC_INST_BODY:Ye.procInstName+=de;continue;case _e.PROC_INST_BODY:if(!Ye.procInstBody&&De(de))continue;de==="?"?Ye.state=_e.PROC_INST_ENDING:Ye.procInstBody+=de;continue;case _e.PROC_INST_ENDING:de===">"?(et(Ye,"onprocessinginstruction",{name:Ye.procInstName,body:Ye.procInstBody}),Ye.procInstName=Ye.procInstBody="",Ye.state=_e.TEXT):(Ye.procInstBody+="?"+de,Ye.state=_e.PROC_INST_BODY);continue;case _e.OPEN_TAG:Be(be,de)?Ye.tagName+=de:(dt(Ye),de===">"?rt(Ye):de==="/"?Ye.state=_e.OPEN_TAG_SLASH:(De(de)||lt(Ye,"Invalid character in tag name"),Ye.state=_e.ATTRIB));continue;case _e.OPEN_TAG_SLASH:de===">"?(rt(Ye,!0),at(Ye)):(lt(Ye,"Forward-slash in opening tag not followed by >"),Ye.state=_e.ATTRIB);continue;case _e.ATTRIB:if(De(de))continue;de===">"?rt(Ye):de==="/"?Ye.state=_e.OPEN_TAG_SLASH:Be(ye,de)?(Ye.attribName=de,Ye.attribValue="",Ye.state=_e.ATTRIB_NAME):lt(Ye,"Invalid attribute name");continue;case _e.ATTRIB_NAME:de==="="?Ye.state=_e.ATTRIB_VALUE:de===">"?(lt(Ye,"Attribute without value"),Ye.attribValue=Ye.attribName,nt(Ye),rt(Ye)):De(de)?Ye.state=_e.ATTRIB_NAME_SAW_WHITE:Be(be,de)?Ye.attribName+=de:lt(Ye,"Invalid attribute name");continue;case _e.ATTRIB_NAME_SAW_WHITE:if(de==="=")Ye.state=_e.ATTRIB_VALUE;else{if(De(de))continue;lt(Ye,"Attribute without value"),Ye.tag.attributes[Ye.attribName]="",Ye.attribValue="",et(Ye,"onattribute",{name:Ye.attribName,value:""}),Ye.attribName="",de===">"?rt(Ye):Be(ye,de)?(Ye.attribName=de,Ye.state=_e.ATTRIB_NAME):(lt(Ye,"Invalid attribute name"),Ye.state=_e.ATTRIB)}continue;case _e.ATTRIB_VALUE:if(De(de))continue;Le(de)?(Ye.q=de,Ye.state=_e.ATTRIB_VALUE_QUOTED):(lt(Ye,"Unquoted attribute value"),Ye.state=_e.ATTRIB_VALUE_UNQUOTED,Ye.attribValue=de);continue;case _e.ATTRIB_VALUE_QUOTED:if(de!==Ye.q){de==="&"?Ye.state=_e.ATTRIB_VALUE_ENTITY_Q:Ye.attribValue+=de;continue}nt(Ye),Ye.q="",Ye.state=_e.ATTRIB_VALUE_CLOSED;continue;case _e.ATTRIB_VALUE_CLOSED:De(de)?Ye.state=_e.ATTRIB:de===">"?rt(Ye):de==="/"?Ye.state=_e.OPEN_TAG_SLASH:Be(ye,de)?(lt(Ye,"No whitespace between attributes"),Ye.attribName=de,Ye.attribValue="",Ye.state=_e.ATTRIB_NAME):lt(Ye,"Invalid attribute name");continue;case _e.ATTRIB_VALUE_UNQUOTED:if(!Ie(de)){de==="&"?Ye.state=_e.ATTRIB_VALUE_ENTITY_U:Ye.attribValue+=de;continue}nt(Ye),de===">"?rt(Ye):Ye.state=_e.ATTRIB;continue;case _e.CLOSE_TAG:if(Ye.tagName)de===">"?at(Ye):Be(be,de)?Ye.tagName+=de:Ye.script?(Ye.script+="</"+Ye.tagName,Ye.tagName="",Ye.state=_e.SCRIPT):(De(de)||lt(Ye,"Invalid tagname in closing tag"),Ye.state=_e.CLOSE_TAG_SAW_WHITE);else{if(De(de))continue;Ue(ye,de)?Ye.script?(Ye.script+="</"+de,Ye.state=_e.SCRIPT):lt(Ye,"Invalid tagname in closing tag."):Ye.tagName=de}continue;case _e.CLOSE_TAG_SAW_WHITE:if(De(de))continue;de===">"?at(Ye):lt(Ye,"Invalid characters in closing tag");continue;case _e.TEXT_ENTITY:case _e.ATTRIB_VALUE_ENTITY_Q:case _e.ATTRIB_VALUE_ENTITY_U:var je,Ae;switch(Ye.state){case _e.TEXT_ENTITY:je=_e.TEXT,Ae="textNode";break;case _e.ATTRIB_VALUE_ENTITY_Q:je=_e.ATTRIB_VALUE_QUOTED,Ae="attribValue";break;case _e.ATTRIB_VALUE_ENTITY_U:je=_e.ATTRIB_VALUE_UNQUOTED,Ae="attribValue";break}de===";"?(Ye[Ae]+=gt(Ye),Ye.entity="",Ye.state=je):Be(Ye.entity.length?ke:Fe,de)?Ye.entity+=de:(lt(Ye,"Invalid character in entity name"),Ye[Ae]+="&"+Ye.entity+de,Ye.entity="",Ye.state=je);continue;default:throw new Error(Ye,"Unknown state: "+Ye.state)}return Ye.position>=Ye.bufferCheckPosition&&oe(Ye),Ye}String.fromCodePoint||function(){var ut=String.fromCharCode,Ye=Math.floor,Ve=function(){var de=16384,Ce=[],He,je,Ae=-1,Ne=arguments.length;if(!Ne)return"";for(var ze="";++Ae<Ne;){var Qe=Number(arguments[Ae]);if(!isFinite(Qe)||Qe<0||Qe>1114111||Ye(Qe)!==Qe)throw RangeError("Invalid code point: "+Qe);Qe<=65535?Ce.push(Qe):(Qe-=65536,He=(Qe>>10)+55296,je=Qe%1024+56320,Ce.push(He,je)),(Ae+1===Ne||Ce.length>de)&&(ze+=ut.apply(null,Ce),Ce.length=0)}return ze};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ve,configurable:!0,writable:!0}):String.fromCodePoint=Ve}()})(typeof ve=="undefined"?this.sax={}:ve)}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(x,Te,ve){Te.exports=ae;var ie=x("events").EventEmitter,te=x("inherits");te(ae,ie),ae.Readable=x("readable-stream/lib/_stream_readable.js"),ae.Writable=x("readable-stream/lib/_stream_writable.js"),ae.Duplex=x("readable-stream/lib/_stream_duplex.js"),ae.Transform=x("readable-stream/lib/_stream_transform.js"),ae.PassThrough=x("readable-stream/lib/_stream_passthrough.js"),ae.finished=x("readable-stream/lib/internal/streams/end-of-stream.js"),ae.pipeline=x("readable-stream/lib/internal/streams/pipeline.js"),ae.Stream=ae;function ae(){ie.call(this)}ae.prototype.pipe=function(ne,oe){var he=this;function re(xe){ne.writable&&ne.write(xe)===!1&&he.pause&&he.pause()}he.on("data",re);function se(){he.readable&&he.resume&&he.resume()}ne.on("drain",se),!ne._isStdio&&(!oe||oe.end!==!1)&&(he.on("end",fe),he.on("close",pe));var ce=!1;function fe(){ce||(ce=!0,ne.end())}function pe(){ce||(ce=!0,typeof ne.destroy=="function"&&ne.destroy())}function le(xe){if(Se(),ie.listenerCount(this,"error")===0)throw xe}he.on("error",le),ne.on("error",le);function Se(){he.removeListener("data",re),ne.removeListener("drain",se),he.removeListener("end",fe),he.removeListener("close",pe),he.removeListener("error",le),ne.removeListener("error",le),he.removeListener("end",Se),he.removeListener("close",Se),ne.removeListener("close",Se)}return he.on("end",Se),he.on("close",Se),ne.on("close",Se),ne.emit("pipe",he),ne}},{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(x,Te,ve){"use strict";function ie(se,ce){se.prototype=Object.create(ce.prototype),se.prototype.constructor=se,se.__proto__=ce}var te={};function ae(se,ce,fe){fe||(fe=Error);function pe(Se,xe,ge){return typeof ce=="string"?ce:ce(Se,xe,ge)}var le=function(Se){ie(xe,Se);function xe(ge,Me,ye){return Se.call(this,pe(ge,Me,ye))||this}return xe}(fe);le.prototype.name=fe.name,le.prototype.code=se,te[se]=le}function ne(se,ce){if(Array.isArray(se)){var fe=se.length;return se=se.map(function(pe){return String(pe)}),fe>2?"one of ".concat(ce," ").concat(se.slice(0,fe-1).join(", "),", or ")+se[fe-1]:fe===2?"one of ".concat(ce," ").concat(se[0]," or ").concat(se[1]):"of ".concat(ce," ").concat(se[0])}else return"of ".concat(ce," ").concat(String(se))}function oe(se,ce,fe){return se.substr(!fe||fe<0?0:+fe,ce.length)===ce}function he(se,ce,fe){return(fe===void 0||fe>se.length)&&(fe=se.length),se.substring(fe-ce.length,fe)===ce}function re(se,ce,fe){return typeof fe!="number"&&(fe=0),fe+ce.length>se.length?!1:se.indexOf(ce,fe)!==-1}ae("ERR_INVALID_OPT_VALUE",function(se,ce){return'The value "'+ce+'" is invalid for option "'+se+'"'},TypeError),ae("ERR_INVALID_ARG_TYPE",function(se,ce,fe){var pe;typeof ce=="string"&&oe(ce,"not ")?(pe="must not be",ce=ce.replace(/^not /,"")):pe="must be";var le;if(he(se," argument"))le="The ".concat(se," ").concat(pe," ").concat(ne(ce,"type"));else{var Se=re(se,".")?"property":"argument";le='The "'.concat(se,'" ').concat(Se," ").concat(pe," ").concat(ne(ce,"type"))}return le+=". Received type ".concat(typeof fe),le},TypeError),ae("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ae("ERR_METHOD_NOT_IMPLEMENTED",function(se){return"The "+se+" method is not implemented"}),ae("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ae("ERR_STREAM_DESTROYED",function(se){return"Cannot call "+se+" after a stream was destroyed"}),ae("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ae("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ae("ERR_STREAM_WRITE_AFTER_END","write after end"),ae("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ae("ERR_UNKNOWN_ENCODING",function(se){return"Unknown encoding: "+se},TypeError),ae("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Te.exports.codes=te},{}],400:[function(x,Te,ve){(function(ie){(function(){"use strict";var te=Object.keys||function(pe){var le=[];for(var Se in pe)le.push(Se);return le};Te.exports=se;var ae=x("./_stream_readable"),ne=x("./_stream_writable");x("inherits")(se,ae);for(var oe=te(ne.prototype),he=0;he<oe.length;he++){var re=oe[he];se.prototype[re]||(se.prototype[re]=ne.prototype[re])}function se(pe){if(!(this instanceof se))return new se(pe);ae.call(this,pe),ne.call(this,pe),this.allowHalfOpen=!0,pe&&(pe.readable===!1&&(this.readable=!1),pe.writable===!1&&(this.writable=!1),pe.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ce)))}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ce(){this._writableState.ended||ie.nextTick(fe,this)}function fe(pe){pe.end()}Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(le){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=le,this._writableState.destroyed=le)}})}).call(this)}).call(this,x("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(x,Te,ve){"use strict";Te.exports=te;var ie=x("./_stream_transform");x("inherits")(te,ie);function te(ae){if(!(this instanceof te))return new te(ae);ie.call(this,ae)}te.prototype._transform=function(ae,ne,oe){oe(null,ae)}},{"./_stream_transform":403,inherits:364}],402:[function(x,Te,ve){(function(ie,te){(function(){"use strict";Te.exports=et;var ae;et.ReadableState=Ze;var ne=x("events").EventEmitter,oe=function(Ne,ze){return Ne.listeners(ze).length},he=x("./internal/streams/stream"),re=x("buffer").Buffer,se=(typeof te!="undefined"?te:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ce(Ae){return re.from(Ae)}function fe(Ae){return re.isBuffer(Ae)||Ae instanceof se}var pe=x("util"),le;pe&&pe.debuglog?le=pe.debuglog("stream"):le=function(){};var Se=x("./internal/streams/buffer_list"),xe=x("./internal/streams/destroy"),ge=x("./internal/streams/state"),Me=ge.getHighWaterMark,ye=x("../errors").codes,be=ye.ERR_INVALID_ARG_TYPE,Fe=ye.ERR_STREAM_PUSH_AFTER_EOF,ke=ye.ERR_METHOD_NOT_IMPLEMENTED,De=ye.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Le,Ie,Be;x("inherits")(et,he);var Ue=xe.errorOrDestroy,_e=["error","close","destroy","pause","resume"];function We(Ae,Ne,ze){if(typeof Ae.prependListener=="function")return Ae.prependListener(Ne,ze);!Ae._events||!Ae._events[Ne]?Ae.on(Ne,ze):Array.isArray(Ae._events[Ne])?Ae._events[Ne].unshift(ze):Ae._events[Ne]=[ze,Ae._events[Ne]]}function Ze(Ae,Ne,ze){ae=ae||x("./_stream_duplex"),Ae=Ae||{},typeof ze!="boolean"&&(ze=Ne instanceof ae),this.objectMode=!!Ae.objectMode,ze&&(this.objectMode=this.objectMode||!!Ae.readableObjectMode),this.highWaterMark=Me(this,Ae,"readableHighWaterMark",ze),this.buffer=new Se,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=Ae.emitClose!==!1,this.autoDestroy=!!Ae.autoDestroy,this.destroyed=!1,this.defaultEncoding=Ae.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ae.encoding&&(Le||(Le=x("string_decoder/").StringDecoder),this.decoder=new Le(Ae.encoding),this.encoding=Ae.encoding)}function et(Ae){if(ae=ae||x("./_stream_duplex"),!(this instanceof et))return new et(Ae);var Ne=this instanceof ae;this._readableState=new Ze(Ae,this,Ne),this.readable=!0,Ae&&(typeof Ae.read=="function"&&(this._read=Ae.read),typeof Ae.destroy=="function"&&(this._destroy=Ae.destroy)),he.call(this)}Object.defineProperty(et.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ne){this._readableState&&(this._readableState.destroyed=Ne)}}),et.prototype.destroy=xe.destroy,et.prototype._undestroy=xe.undestroy,et.prototype._destroy=function(Ae,Ne){Ne(Ae)},et.prototype.push=function(Ae,Ne){var ze=this._readableState,Qe;return ze.objectMode?Qe=!0:typeof Ae=="string"&&(Ne=Ne||ze.defaultEncoding,Ne!==ze.encoding&&(Ae=re.from(Ae,Ne),Ne=""),Qe=!0),it(this,Ae,Ne,!1,Qe)},et.prototype.unshift=function(Ae){return it(this,Ae,null,!0,!1)};function it(Ae,Ne,ze,Qe,ot){le("readableAddChunk",Ne);var mt=Ae._readableState;if(Ne===null)mt.reading=!1,st(Ae,mt);else{var Ot;if(ot||(Ot=Ge(mt,Ne)),Ot)Ue(Ae,Ot);else if(mt.objectMode||Ne&&Ne.length>0)if(typeof Ne!="string"&&!mt.objectMode&&Object.getPrototypeOf(Ne)!==re.prototype&&(Ne=ce(Ne)),Qe)mt.endEmitted?Ue(Ae,new De):pt(Ae,mt,Ne,!0);else if(mt.ended)Ue(Ae,new Fe);else{if(mt.destroyed)return!1;mt.reading=!1,mt.decoder&&!ze?(Ne=mt.decoder.write(Ne),mt.objectMode||Ne.length!==0?pt(Ae,mt,Ne,!1):at(Ae,mt)):pt(Ae,mt,Ne,!1)}else Qe||(mt.reading=!1,at(Ae,mt))}return!mt.ended&&(mt.length<mt.highWaterMark||mt.length===0)}function pt(Ae,Ne,ze,Qe){Ne.flowing&&Ne.length===0&&!Ne.sync?(Ne.awaitDrain=0,Ae.emit("data",ze)):(Ne.length+=Ne.objectMode?1:ze.length,Qe?Ne.buffer.unshift(ze):Ne.buffer.push(ze),Ne.needReadable&&nt(Ae)),at(Ae,Ne)}function Ge(Ae,Ne){var ze;return!fe(Ne)&&typeof Ne!="string"&&Ne!==void 0&&!Ae.objectMode&&(ze=new be("chunk",["string","Buffer","Uint8Array"],Ne)),ze}et.prototype.isPaused=function(){return this._readableState.flowing===!1},et.prototype.setEncoding=function(Ae){Le||(Le=x("string_decoder/").StringDecoder);var Ne=new Le(Ae);this._readableState.decoder=Ne,this._readableState.encoding=this._readableState.decoder.encoding;for(var ze=this._readableState.buffer.head,Qe="";ze!==null;)Qe+=Ne.write(ze.data),ze=ze.next;return this._readableState.buffer.clear(),Qe!==""&&this._readableState.buffer.push(Qe),this._readableState.length=Qe.length,this};var Xe=1073741824;function lt(Ae){return Ae>=Xe?Ae=Xe:(Ae--,Ae|=Ae>>>1,Ae|=Ae>>>2,Ae|=Ae>>>4,Ae|=Ae>>>8,Ae|=Ae>>>16,Ae++),Ae}function dt(Ae,Ne){return Ae<=0||Ne.length===0&&Ne.ended?0:Ne.objectMode?1:Ae!==Ae?Ne.flowing&&Ne.length?Ne.buffer.head.data.length:Ne.length:(Ae>Ne.highWaterMark&&(Ne.highWaterMark=lt(Ae)),Ae<=Ne.length?Ae:Ne.ended?Ne.length:(Ne.needReadable=!0,0))}et.prototype.read=function(Ae){le("read",Ae),Ae=parseInt(Ae,10);var Ne=this._readableState,ze=Ae;if(Ae!==0&&(Ne.emittedReadable=!1),Ae===0&&Ne.needReadable&&((Ne.highWaterMark!==0?Ne.length>=Ne.highWaterMark:Ne.length>0)||Ne.ended))return le("read: emitReadable",Ne.length,Ne.ended),Ne.length===0&&Ne.ended?Ce(this):nt(this),null;if(Ae=dt(Ae,Ne),Ae===0&&Ne.ended)return Ne.length===0&&Ce(this),null;var Qe=Ne.needReadable;le("need readable",Qe),(Ne.length===0||Ne.length-Ae<Ne.highWaterMark)&&(Qe=!0,le("length less than watermark",Qe)),Ne.ended||Ne.reading?(Qe=!1,le("reading or ended",Qe)):Qe&&(le("do read"),Ne.reading=!0,Ne.sync=!0,Ne.length===0&&(Ne.needReadable=!0),this._read(Ne.highWaterMark),Ne.sync=!1,Ne.reading||(Ae=dt(ze,Ne)));var ot;return Ae>0?ot=de(Ae,Ne):ot=null,ot===null?(Ne.needReadable=Ne.length<=Ne.highWaterMark,Ae=0):(Ne.length-=Ae,Ne.awaitDrain=0),Ne.length===0&&(Ne.ended||(Ne.needReadable=!0),ze!==Ae&&Ne.ended&&Ce(this)),ot!==null&&this.emit("data",ot),ot};function st(Ae,Ne){if(le("onEofChunk"),!Ne.ended){if(Ne.decoder){var ze=Ne.decoder.end();ze&&ze.length&&(Ne.buffer.push(ze),Ne.length+=Ne.objectMode?1:ze.length)}Ne.ended=!0,Ne.sync?nt(Ae):(Ne.needReadable=!1,Ne.emittedReadable||(Ne.emittedReadable=!0,rt(Ae)))}}function nt(Ae){var Ne=Ae._readableState;le("emitReadable",Ne.needReadable,Ne.emittedReadable),Ne.needReadable=!1,Ne.emittedReadable||(le("emitReadable",Ne.flowing),Ne.emittedReadable=!0,ie.nextTick(rt,Ae))}function rt(Ae){var Ne=Ae._readableState;le("emitReadable_",Ne.destroyed,Ne.length,Ne.ended),!Ne.destroyed&&(Ne.length||Ne.ended)&&(Ae.emit("readable"),Ne.emittedReadable=!1),Ne.needReadable=!Ne.flowing&&!Ne.ended&&Ne.length<=Ne.highWaterMark,Ve(Ae)}function at(Ae,Ne){Ne.readingMore||(Ne.readingMore=!0,ie.nextTick(gt,Ae,Ne))}function gt(Ae,Ne){for(;!Ne.reading&&!Ne.ended&&(Ne.length<Ne.highWaterMark||Ne.flowing&&Ne.length===0);){var ze=Ne.length;if(le("maybeReadMore read 0"),Ae.read(0),ze===Ne.length)break}Ne.readingMore=!1}et.prototype._read=function(Ae){Ue(this,new ke("_read()"))},et.prototype.pipe=function(Ae,Ne){var ze=this,Qe=this._readableState;switch(Qe.pipesCount){case 0:Qe.pipes=Ae;break;case 1:Qe.pipes=[Qe.pipes,Ae];break;default:Qe.pipes.push(Ae);break}Qe.pipesCount+=1,le("pipe count=%d opts=%j",Qe.pipesCount,Ne);var ot=(!Ne||Ne.end!==!1)&&Ae!==ie.stdout&&Ae!==ie.stderr,mt=ot?xt:zt;Qe.endEmitted?ie.nextTick(mt):ze.once("end",mt),Ae.on("unpipe",Ot);function Ot(sn,yn){le("onunpipe"),sn===ze&&yn&&yn.hasUnpiped===!1&&(yn.hasUnpiped=!0,Ft())}function xt(){le("onend"),Ae.end()}var Ut=vt(ze);Ae.on("drain",Ut);var xn=!1;function Ft(){le("cleanup"),Ae.removeListener("close",bn),Ae.removeListener("finish",Pt),Ae.removeListener("drain",Ut),Ae.removeListener("error",Zt),Ae.removeListener("unpipe",Ot),ze.removeListener("end",xt),ze.removeListener("end",zt),ze.removeListener("data",Qt),xn=!0,Qe.awaitDrain&&(!Ae._writableState||Ae._writableState.needDrain)&&Ut()}ze.on("data",Qt);function Qt(sn){le("ondata");var yn=Ae.write(sn);le("dest.write",yn),yn===!1&&((Qe.pipesCount===1&&Qe.pipes===Ae||Qe.pipesCount>1&&je(Qe.pipes,Ae)!==-1)&&!xn&&(le("false write response, pause",Qe.awaitDrain),Qe.awaitDrain++),ze.pause())}function Zt(sn){le("onerror",sn),zt(),Ae.removeListener("error",Zt),oe(Ae,"error")===0&&Ue(Ae,sn)}We(Ae,"error",Zt);function bn(){Ae.removeListener("finish",Pt),zt()}Ae.once("close",bn);function Pt(){le("onfinish"),Ae.removeListener("close",bn),zt()}Ae.once("finish",Pt);function zt(){le("unpipe"),ze.unpipe(Ae)}return Ae.emit("pipe",ze),Qe.flowing||(le("pipe resume"),ze.resume()),Ae};function vt(Ae){return function(){var ze=Ae._readableState;le("pipeOnDrain",ze.awaitDrain),ze.awaitDrain&&ze.awaitDrain--,ze.awaitDrain===0&&oe(Ae,"data")&&(ze.flowing=!0,Ve(Ae))}}et.prototype.unpipe=function(Ae){var Ne=this._readableState,ze={hasUnpiped:!1};if(Ne.pipesCount===0)return this;if(Ne.pipesCount===1)return Ae&&Ae!==Ne.pipes?this:(Ae||(Ae=Ne.pipes),Ne.pipes=null,Ne.pipesCount=0,Ne.flowing=!1,Ae&&Ae.emit("unpipe",this,ze),this);if(!Ae){var Qe=Ne.pipes,ot=Ne.pipesCount;Ne.pipes=null,Ne.pipesCount=0,Ne.flowing=!1;for(var mt=0;mt<ot;mt++)Qe[mt].emit("unpipe",this,{hasUnpiped:!1});return this}var Ot=je(Ne.pipes,Ae);return Ot===-1?this:(Ne.pipes.splice(Ot,1),Ne.pipesCount-=1,Ne.pipesCount===1&&(Ne.pipes=Ne.pipes[0]),Ae.emit("unpipe",this,ze),this)},et.prototype.on=function(Ae,Ne){var ze=he.prototype.on.call(this,Ae,Ne),Qe=this._readableState;return Ae==="data"?(Qe.readableListening=this.listenerCount("readable")>0,Qe.flowing!==!1&&this.resume()):Ae==="readable"&&!Qe.endEmitted&&!Qe.readableListening&&(Qe.readableListening=Qe.needReadable=!0,Qe.flowing=!1,Qe.emittedReadable=!1,le("on readable",Qe.length,Qe.reading),Qe.length?nt(this):Qe.reading||ie.nextTick(At,this)),ze},et.prototype.addListener=et.prototype.on,et.prototype.removeListener=function(Ae,Ne){var ze=he.prototype.removeListener.call(this,Ae,Ne);return Ae==="readable"&&ie.nextTick(Et,this),ze},et.prototype.removeAllListeners=function(Ae){var Ne=he.prototype.removeAllListeners.apply(this,arguments);return(Ae==="readable"||Ae===void 0)&&ie.nextTick(Et,this),Ne};function Et(Ae){var Ne=Ae._readableState;Ne.readableListening=Ae.listenerCount("readable")>0,Ne.resumeScheduled&&!Ne.paused?Ne.flowing=!0:Ae.listenerCount("data")>0&&Ae.resume()}function At(Ae){le("readable nexttick read 0"),Ae.read(0)}et.prototype.resume=function(){var Ae=this._readableState;return Ae.flowing||(le("resume"),Ae.flowing=!Ae.readableListening,ut(this,Ae)),Ae.paused=!1,this};function ut(Ae,Ne){Ne.resumeScheduled||(Ne.resumeScheduled=!0,ie.nextTick(Ye,Ae,Ne))}function Ye(Ae,Ne){le("resume",Ne.reading),Ne.reading||Ae.read(0),Ne.resumeScheduled=!1,Ae.emit("resume"),Ve(Ae),Ne.flowing&&!Ne.reading&&Ae.read(0)}et.prototype.pause=function(){return le("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(le("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ve(Ae){var Ne=Ae._readableState;for(le("flow",Ne.flowing);Ne.flowing&&Ae.read()!==null;);}et.prototype.wrap=function(Ae){var Ne=this,ze=this._readableState,Qe=!1;Ae.on("end",function(){if(le("wrapped end"),ze.decoder&&!ze.ended){var Ot=ze.decoder.end();Ot&&Ot.length&&Ne.push(Ot)}Ne.push(null)}),Ae.on("data",function(Ot){if(le("wrapped data"),ze.decoder&&(Ot=ze.decoder.write(Ot)),!(ze.objectMode&&Ot==null)&&!(!ze.objectMode&&(!Ot||!Ot.length))){var xt=Ne.push(Ot);xt||(Qe=!0,Ae.pause())}});for(var ot in Ae)this[ot]===void 0&&typeof Ae[ot]=="function"&&(this[ot]=function(xt){return function(){return Ae[xt].apply(Ae,arguments)}}(ot));for(var mt=0;mt<_e.length;mt++)Ae.on(_e[mt],this.emit.bind(this,_e[mt]));return this._read=function(Ot){le("wrapped _read",Ot),Qe&&(Qe=!1,Ae.resume())},this},typeof Symbol=="function"&&(et.prototype[Symbol.asyncIterator]=function(){return Ie===void 0&&(Ie=x("./internal/streams/async_iterator")),Ie(this)}),Object.defineProperty(et.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(et.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(et.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ne){this._readableState&&(this._readableState.flowing=Ne)}}),et._fromList=de,Object.defineProperty(et.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function de(Ae,Ne){if(Ne.length===0)return null;var ze;return Ne.objectMode?ze=Ne.buffer.shift():!Ae||Ae>=Ne.length?(Ne.decoder?ze=Ne.buffer.join(""):Ne.buffer.length===1?ze=Ne.buffer.first():ze=Ne.buffer.concat(Ne.length),Ne.buffer.clear()):ze=Ne.buffer.consume(Ae,Ne.decoder),ze}function Ce(Ae){var Ne=Ae._readableState;le("endReadable",Ne.endEmitted),Ne.endEmitted||(Ne.ended=!0,ie.nextTick(He,Ne,Ae))}function He(Ae,Ne){if(le("endReadableNT",Ae.endEmitted,Ae.length),!Ae.endEmitted&&Ae.length===0&&(Ae.endEmitted=!0,Ne.readable=!1,Ne.emit("end"),Ae.autoDestroy)){var ze=Ne._writableState;(!ze||ze.autoDestroy&&ze.finished)&&Ne.destroy()}}typeof Symbol=="function"&&(et.from=function(Ae,Ne){return Be===void 0&&(Be=x("./internal/streams/from")),Be(et,Ae,Ne)});function je(Ae,Ne){for(var ze=0,Qe=Ae.length;ze<Qe;ze++)if(Ae[ze]===Ne)return ze;return-1}}).call(this)}).call(this,x("_process"),typeof Kt!="undefined"?Kt: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(x,Te,ve){"use strict";Te.exports=se;var ie=x("../errors").codes,te=ie.ERR_METHOD_NOT_IMPLEMENTED,ae=ie.ERR_MULTIPLE_CALLBACK,ne=ie.ERR_TRANSFORM_ALREADY_TRANSFORMING,oe=ie.ERR_TRANSFORM_WITH_LENGTH_0,he=x("./_stream_duplex");x("inherits")(se,he);function re(pe,le){var Se=this._transformState;Se.transforming=!1;var xe=Se.writecb;if(xe===null)return this.emit("error",new ae);Se.writechunk=null,Se.writecb=null,le!=null&&this.push(le),xe(pe);var ge=this._readableState;ge.reading=!1,(ge.needReadable||ge.length<ge.highWaterMark)&&this._read(ge.highWaterMark)}function se(pe){if(!(this instanceof se))return new se(pe);he.call(this,pe),this._transformState={afterTransform:re.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,pe&&(typeof pe.transform=="function"&&(this._transform=pe.transform),typeof pe.flush=="function"&&(this._flush=pe.flush)),this.on("prefinish",ce)}function ce(){var pe=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(le,Se){fe(pe,le,Se)}):fe(this,null,null)}se.prototype.push=function(pe,le){return this._transformState.needTransform=!1,he.prototype.push.call(this,pe,le)},se.prototype._transform=function(pe,le,Se){Se(new te("_transform()"))},se.prototype._write=function(pe,le,Se){var xe=this._transformState;if(xe.writecb=Se,xe.writechunk=pe,xe.writeencoding=le,!xe.transforming){var ge=this._readableState;(xe.needTransform||ge.needReadable||ge.length<ge.highWaterMark)&&this._read(ge.highWaterMark)}},se.prototype._read=function(pe){var le=this._transformState;le.writechunk!==null&&!le.transforming?(le.transforming=!0,this._transform(le.writechunk,le.writeencoding,le.afterTransform)):le.needTransform=!0},se.prototype._destroy=function(pe,le){he.prototype._destroy.call(this,pe,function(Se){le(Se)})};function fe(pe,le,Se){if(le)return pe.emit("error",le);if(Se!=null&&pe.push(Se),pe._writableState.length)throw new oe;if(pe._transformState.transforming)throw new ne;return pe.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(x,Te,ve){(function(ie,te){(function(){"use strict";Te.exports=Ze;function ae(Ve,de,Ce){this.chunk=Ve,this.encoding=de,this.callback=Ce,this.next=null}function ne(Ve){var de=this;this.next=null,this.entry=null,this.finish=function(){Ye(de,Ve)}}var oe;Ze.WritableState=_e;var he={deprecate:x("util-deprecate")},re=x("./internal/streams/stream"),se=x("buffer").Buffer,ce=(typeof te!="undefined"?te:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function fe(Ve){return se.from(Ve)}function pe(Ve){return se.isBuffer(Ve)||Ve instanceof ce}var le=x("./internal/streams/destroy"),Se=x("./internal/streams/state"),xe=Se.getHighWaterMark,ge=x("../errors").codes,Me=ge.ERR_INVALID_ARG_TYPE,ye=ge.ERR_METHOD_NOT_IMPLEMENTED,be=ge.ERR_MULTIPLE_CALLBACK,Fe=ge.ERR_STREAM_CANNOT_PIPE,ke=ge.ERR_STREAM_DESTROYED,De=ge.ERR_STREAM_NULL_VALUES,Le=ge.ERR_STREAM_WRITE_AFTER_END,Ie=ge.ERR_UNKNOWN_ENCODING,Be=le.errorOrDestroy;x("inherits")(Ze,re);function Ue(){}function _e(Ve,de,Ce){oe=oe||x("./_stream_duplex"),Ve=Ve||{},typeof Ce!="boolean"&&(Ce=de instanceof oe),this.objectMode=!!Ve.objectMode,Ce&&(this.objectMode=this.objectMode||!!Ve.writableObjectMode),this.highWaterMark=xe(this,Ve,"writableHighWaterMark",Ce),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var He=Ve.decodeStrings===!1;this.decodeStrings=!He,this.defaultEncoding=Ve.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(je){st(de,je)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ve.emitClose!==!1,this.autoDestroy=!!Ve.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ne(this)}_e.prototype.getBuffer=function(){for(var de=this.bufferedRequest,Ce=[];de;)Ce.push(de),de=de.next;return Ce},function(){try{Object.defineProperty(_e.prototype,"buffer",{get:he.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ve){}}();var We;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(We=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ze,Symbol.hasInstance,{value:function(de){return We.call(this,de)?!0:this!==Ze?!1:de&&de._writableState instanceof _e}})):We=function(de){return de instanceof this};function Ze(Ve){oe=oe||x("./_stream_duplex");var de=this instanceof oe;if(!de&&!We.call(Ze,this))return new Ze(Ve);this._writableState=new _e(Ve,this,de),this.writable=!0,Ve&&(typeof Ve.write=="function"&&(this._write=Ve.write),typeof Ve.writev=="function"&&(this._writev=Ve.writev),typeof Ve.destroy=="function"&&(this._destroy=Ve.destroy),typeof Ve.final=="function"&&(this._final=Ve.final)),re.call(this)}Ze.prototype.pipe=function(){Be(this,new Fe)};function et(Ve,de){var Ce=new Le;Be(Ve,Ce),ie.nextTick(de,Ce)}function it(Ve,de,Ce,He){var je;return Ce===null?je=new De:typeof Ce!="string"&&!de.objectMode&&(je=new Me("chunk",["string","Buffer"],Ce)),je?(Be(Ve,je),ie.nextTick(He,je),!1):!0}Ze.prototype.write=function(Ve,de,Ce){var He=this._writableState,je=!1,Ae=!He.objectMode&&pe(Ve);return Ae&&!se.isBuffer(Ve)&&(Ve=fe(Ve)),typeof de=="function"&&(Ce=de,de=null),Ae?de="buffer":de||(de=He.defaultEncoding),typeof Ce!="function"&&(Ce=Ue),He.ending?et(this,Ce):(Ae||it(this,He,Ve,Ce))&&(He.pendingcb++,je=Ge(this,He,Ae,Ve,de,Ce)),je},Ze.prototype.cork=function(){this._writableState.corked++},Ze.prototype.uncork=function(){var Ve=this._writableState;Ve.corked&&(Ve.corked--,!Ve.writing&&!Ve.corked&&!Ve.bufferProcessing&&Ve.bufferedRequest&&at(this,Ve))},Ze.prototype.setDefaultEncoding=function(de){if(typeof de=="string"&&(de=de.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((de+"").toLowerCase())>-1))throw new Ie(de);return this._writableState.defaultEncoding=de,this},Object.defineProperty(Ze.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function pt(Ve,de,Ce){return!Ve.objectMode&&Ve.decodeStrings!==!1&&typeof de=="string"&&(de=se.from(de,Ce)),de}Object.defineProperty(Ze.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ge(Ve,de,Ce,He,je,Ae){if(!Ce){var Ne=pt(de,He,je);He!==Ne&&(Ce=!0,je="buffer",He=Ne)}var ze=de.objectMode?1:He.length;de.length+=ze;var Qe=de.length<de.highWaterMark;if(Qe||(de.needDrain=!0),de.writing||de.corked){var ot=de.lastBufferedRequest;de.lastBufferedRequest={chunk:He,encoding:je,isBuf:Ce,callback:Ae,next:null},ot?ot.next=de.lastBufferedRequest:de.bufferedRequest=de.lastBufferedRequest,de.bufferedRequestCount+=1}else Xe(Ve,de,!1,ze,He,je,Ae);return Qe}function Xe(Ve,de,Ce,He,je,Ae,Ne){de.writelen=He,de.writecb=Ne,de.writing=!0,de.sync=!0,de.destroyed?de.onwrite(new ke("write")):Ce?Ve._writev(je,de.onwrite):Ve._write(je,Ae,de.onwrite),de.sync=!1}function lt(Ve,de,Ce,He,je){--de.pendingcb,Ce?(ie.nextTick(je,He),ie.nextTick(At,Ve,de),Ve._writableState.errorEmitted=!0,Be(Ve,He)):(je(He),Ve._writableState.errorEmitted=!0,Be(Ve,He),At(Ve,de))}function dt(Ve){Ve.writing=!1,Ve.writecb=null,Ve.length-=Ve.writelen,Ve.writelen=0}function st(Ve,de){var Ce=Ve._writableState,He=Ce.sync,je=Ce.writecb;if(typeof je!="function")throw new be;if(dt(Ce),de)lt(Ve,Ce,He,de,je);else{var Ae=gt(Ce)||Ve.destroyed;!Ae&&!Ce.corked&&!Ce.bufferProcessing&&Ce.bufferedRequest&&at(Ve,Ce),He?ie.nextTick(nt,Ve,Ce,Ae,je):nt(Ve,Ce,Ae,je)}}function nt(Ve,de,Ce,He){Ce||rt(Ve,de),de.pendingcb--,He(),At(Ve,de)}function rt(Ve,de){de.length===0&&de.needDrain&&(de.needDrain=!1,Ve.emit("drain"))}function at(Ve,de){de.bufferProcessing=!0;var Ce=de.bufferedRequest;if(Ve._writev&&Ce&&Ce.next){var He=de.bufferedRequestCount,je=new Array(He),Ae=de.corkedRequestsFree;Ae.entry=Ce;for(var Ne=0,ze=!0;Ce;)je[Ne]=Ce,Ce.isBuf||(ze=!1),Ce=Ce.next,Ne+=1;je.allBuffers=ze,Xe(Ve,de,!0,de.length,je,"",Ae.finish),de.pendingcb++,de.lastBufferedRequest=null,Ae.next?(de.corkedRequestsFree=Ae.next,Ae.next=null):de.corkedRequestsFree=new ne(de),de.bufferedRequestCount=0}else{for(;Ce;){var Qe=Ce.chunk,ot=Ce.encoding,mt=Ce.callback,Ot=de.objectMode?1:Qe.length;if(Xe(Ve,de,!1,Ot,Qe,ot,mt),Ce=Ce.next,de.bufferedRequestCount--,de.writing)break}Ce===null&&(de.lastBufferedRequest=null)}de.bufferedRequest=Ce,de.bufferProcessing=!1}Ze.prototype._write=function(Ve,de,Ce){Ce(new ye("_write()"))},Ze.prototype._writev=null,Ze.prototype.end=function(Ve,de,Ce){var He=this._writableState;return typeof Ve=="function"?(Ce=Ve,Ve=null,de=null):typeof de=="function"&&(Ce=de,de=null),Ve!=null&&this.write(Ve,de),He.corked&&(He.corked=1,this.uncork()),He.ending||ut(this,He,Ce),this},Object.defineProperty(Ze.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function gt(Ve){return Ve.ending&&Ve.length===0&&Ve.bufferedRequest===null&&!Ve.finished&&!Ve.writing}function vt(Ve,de){Ve._final(function(Ce){de.pendingcb--,Ce&&Be(Ve,Ce),de.prefinished=!0,Ve.emit("prefinish"),At(Ve,de)})}function Et(Ve,de){!de.prefinished&&!de.finalCalled&&(typeof Ve._final=="function"&&!de.destroyed?(de.pendingcb++,de.finalCalled=!0,ie.nextTick(vt,Ve,de)):(de.prefinished=!0,Ve.emit("prefinish")))}function At(Ve,de){var Ce=gt(de);if(Ce&&(Et(Ve,de),de.pendingcb===0&&(de.finished=!0,Ve.emit("finish"),de.autoDestroy))){var He=Ve._readableState;(!He||He.autoDestroy&&He.endEmitted)&&Ve.destroy()}return Ce}function ut(Ve,de,Ce){de.ending=!0,At(Ve,de),Ce&&(de.finished?ie.nextTick(Ce):Ve.once("finish",Ce)),de.ended=!0,Ve.writable=!1}function Ye(Ve,de,Ce){var He=Ve.entry;for(Ve.entry=null;He;){var je=He.callback;de.pendingcb--,je(Ce),He=He.next}de.corkedRequestsFree.next=Ve}Object.defineProperty(Ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(de){this._writableState&&(this._writableState.destroyed=de)}}),Ze.prototype.destroy=le.destroy,Ze.prototype._undestroy=le.undestroy,Ze.prototype._destroy=function(Ve,de){de(Ve)}}).call(this)}).call(this,x("_process"),typeof Kt!="undefined"?Kt: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(x,Te,ve){(function(ie){(function(){"use strict";var te;function ae(De,Le,Ie){return Le=ne(Le),Le in De?Object.defineProperty(De,Le,{value:Ie,enumerable:!0,configurable:!0,writable:!0}):De[Le]=Ie,De}function ne(De){var Le=oe(De,"string");return typeof Le=="symbol"?Le:String(Le)}function oe(De,Le){if(typeof De!="object"||De===null)return De;var Ie=De[Symbol.toPrimitive];if(Ie!==void 0){var Be=Ie.call(De,Le||"default");if(typeof Be!="object")return Be;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Le==="string"?String:Number)(De)}var he=x("./end-of-stream"),re=Symbol("lastResolve"),se=Symbol("lastReject"),ce=Symbol("error"),fe=Symbol("ended"),pe=Symbol("lastPromise"),le=Symbol("handlePromise"),Se=Symbol("stream");function xe(De,Le){return{value:De,done:Le}}function ge(De){var Le=De[re];if(Le!==null){var Ie=De[Se].read();Ie!==null&&(De[pe]=null,De[re]=null,De[se]=null,Le(xe(Ie,!1)))}}function Me(De){ie.nextTick(ge,De)}function ye(De,Le){return function(Ie,Be){De.then(function(){if(Le[fe]){Ie(xe(void 0,!0));return}Le[le](Ie,Be)},Be)}}var be=Object.getPrototypeOf(function(){}),Fe=Object.setPrototypeOf((te={get stream(){return this[Se]},next:function(){var Le=this,Ie=this[ce];if(Ie!==null)return Promise.reject(Ie);if(this[fe])return Promise.resolve(xe(void 0,!0));if(this[Se].destroyed)return new Promise(function(We,Ze){ie.nextTick(function(){Le[ce]?Ze(Le[ce]):We(xe(void 0,!0))})});var Be=this[pe],Ue;if(Be)Ue=new Promise(ye(Be,this));else{var _e=this[Se].read();if(_e!==null)return Promise.resolve(xe(_e,!1));Ue=new Promise(this[le])}return this[pe]=Ue,Ue}},ae(te,Symbol.asyncIterator,function(){return this}),ae(te,"return",function(){var Le=this;return new Promise(function(Ie,Be){Le[Se].destroy(null,function(Ue){if(Ue){Be(Ue);return}Ie(xe(void 0,!0))})})}),te),be),ke=function(Le){var Ie,Be=Object.create(Fe,(Ie={},ae(Ie,Se,{value:Le,writable:!0}),ae(Ie,re,{value:null,writable:!0}),ae(Ie,se,{value:null,writable:!0}),ae(Ie,ce,{value:null,writable:!0}),ae(Ie,fe,{value:Le._readableState.endEmitted,writable:!0}),ae(Ie,le,{value:function(_e,We){var Ze=Be[Se].read();Ze?(Be[pe]=null,Be[re]=null,Be[se]=null,_e(xe(Ze,!1))):(Be[re]=_e,Be[se]=We)},writable:!0}),Ie));return Be[pe]=null,he(Le,function(Ue){if(Ue&&Ue.code!=="ERR_STREAM_PREMATURE_CLOSE"){var _e=Be[se];_e!==null&&(Be[pe]=null,Be[re]=null,Be[se]=null,_e(Ue)),Be[ce]=Ue;return}var We=Be[re];We!==null&&(Be[pe]=null,Be[re]=null,Be[se]=null,We(xe(void 0,!0))),Be[fe]=!0}),Le.on("readable",Me.bind(null,Be)),Be};Te.exports=ke}).call(this)}).call(this,x("_process"))},{"./end-of-stream":408,_process:467}],406:[function(x,Te,ve){"use strict";function ie(ge,Me){var ye=Object.keys(ge);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(ge);Me&&(be=be.filter(function(Fe){return Object.getOwnPropertyDescriptor(ge,Fe).enumerable})),ye.push.apply(ye,be)}return ye}function te(ge){for(var Me=1;Me<arguments.length;Me++){var ye=arguments[Me]!=null?arguments[Me]:{};Me%2?ie(Object(ye),!0).forEach(function(be){ae(ge,be,ye[be])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ge,Object.getOwnPropertyDescriptors(ye)):ie(Object(ye)).forEach(function(be){Object.defineProperty(ge,be,Object.getOwnPropertyDescriptor(ye,be))})}return ge}function ae(ge,Me,ye){return Me=re(Me),Me in ge?Object.defineProperty(ge,Me,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ge[Me]=ye,ge}function ne(ge,Me){if(!(ge instanceof Me))throw new TypeError("Cannot call a class as a function")}function oe(ge,Me){for(var ye=0;ye<Me.length;ye++){var be=Me[ye];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(ge,re(be.key),be)}}function he(ge,Me,ye){return Me&&oe(ge.prototype,Me),ye&&oe(ge,ye),Object.defineProperty(ge,"prototype",{writable:!1}),ge}function re(ge){var Me=se(ge,"string");return typeof Me=="symbol"?Me:String(Me)}function se(ge,Me){if(typeof ge!="object"||ge===null)return ge;var ye=ge[Symbol.toPrimitive];if(ye!==void 0){var be=ye.call(ge,Me||"default");if(typeof be!="object")return be;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Me==="string"?String:Number)(ge)}var ce=x("buffer"),fe=ce.Buffer,pe=x("util"),le=pe.inspect,Se=le&&le.custom||"inspect";function xe(ge,Me,ye){fe.prototype.copy.call(ge,Me,ye)}Te.exports=function(){function ge(){ne(this,ge),this.head=null,this.tail=null,this.length=0}return he(ge,[{key:"push",value:function(ye){var be={data:ye,next:null};this.length>0?this.tail.next=be:this.head=be,this.tail=be,++this.length}},{key:"unshift",value:function(ye){var be={data:ye,next:this.head};this.length===0&&(this.tail=be),this.head=be,++this.length}},{key:"shift",value:function(){if(this.length!==0){var ye=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ye}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(ye){if(this.length===0)return"";for(var be=this.head,Fe=""+be.data;be=be.next;)Fe+=ye+be.data;return Fe}},{key:"concat",value:function(ye){if(this.length===0)return fe.alloc(0);for(var be=fe.allocUnsafe(ye>>>0),Fe=this.head,ke=0;Fe;)xe(Fe.data,be,ke),ke+=Fe.data.length,Fe=Fe.next;return be}},{key:"consume",value:function(ye,be){var Fe;return ye<this.head.data.length?(Fe=this.head.data.slice(0,ye),this.head.data=this.head.data.slice(ye)):ye===this.head.data.length?Fe=this.shift():Fe=be?this._getString(ye):this._getBuffer(ye),Fe}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(ye){var be=this.head,Fe=1,ke=be.data;for(ye-=ke.length;be=be.next;){var De=be.data,Le=ye>De.length?De.length:ye;if(Le===De.length?ke+=De:ke+=De.slice(0,ye),ye-=Le,ye===0){Le===De.length?(++Fe,be.next?this.head=be.next:this.head=this.tail=null):(this.head=be,be.data=De.slice(Le));break}++Fe}return this.length-=Fe,ke}},{key:"_getBuffer",value:function(ye){var be=fe.allocUnsafe(ye),Fe=this.head,ke=1;for(Fe.data.copy(be),ye-=Fe.data.length;Fe=Fe.next;){var De=Fe.data,Le=ye>De.length?De.length:ye;if(De.copy(be,be.length-ye,0,Le),ye-=Le,ye===0){Le===De.length?(++ke,Fe.next?this.head=Fe.next:this.head=this.tail=null):(this.head=Fe,Fe.data=De.slice(Le));break}++ke}return this.length-=ke,be}},{key:Se,value:function(ye,be){return le(this,te(te({},be),{},{depth:0,customInspect:!1}))}}]),ge}()},{buffer:90,util:89}],407:[function(x,Te,ve){(function(ie){(function(){"use strict";function te(se,ce){var fe=this,pe=this._readableState&&this._readableState.destroyed,le=this._writableState&&this._writableState.destroyed;return pe||le?(ce?ce(se):se&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ie.nextTick(he,this,se)):ie.nextTick(he,this,se)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(se||null,function(Se){!ce&&Se?fe._writableState?fe._writableState.errorEmitted?ie.nextTick(ne,fe):(fe._writableState.errorEmitted=!0,ie.nextTick(ae,fe,Se)):ie.nextTick(ae,fe,Se):ce?(ie.nextTick(ne,fe),ce(Se)):ie.nextTick(ne,fe)}),this)}function ae(se,ce){he(se,ce),ne(se)}function ne(se){se._writableState&&!se._writableState.emitClose||se._readableState&&!se._readableState.emitClose||se.emit("close")}function oe(){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 he(se,ce){se.emit("error",ce)}function re(se,ce){var fe=se._readableState,pe=se._writableState;fe&&fe.autoDestroy||pe&&pe.autoDestroy?se.destroy(ce):se.emit("error",ce)}Te.exports={destroy:te,undestroy:oe,errorOrDestroy:re}}).call(this)}).call(this,x("_process"))},{_process:467}],408:[function(x,Te,ve){"use strict";var ie=x("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function te(he){var re=!1;return function(){if(!re){re=!0;for(var se=arguments.length,ce=new Array(se),fe=0;fe<se;fe++)ce[fe]=arguments[fe];he.apply(this,ce)}}}function ae(){}function ne(he){return he.setHeader&&typeof he.abort=="function"}function oe(he,re,se){if(typeof re=="function")return oe(he,null,re);re||(re={}),se=te(se||ae);var ce=re.readable||re.readable!==!1&&he.readable,fe=re.writable||re.writable!==!1&&he.writable,pe=function(){he.writable||Se()},le=he._writableState&&he._writableState.finished,Se=function(){fe=!1,le=!0,ce||se.call(he)},xe=he._readableState&&he._readableState.endEmitted,ge=function(){ce=!1,xe=!0,fe||se.call(he)},Me=function(ke){se.call(he,ke)},ye=function(){var ke;if(ce&&!xe)return(!he._readableState||!he._readableState.ended)&&(ke=new ie),se.call(he,ke);if(fe&&!le)return(!he._writableState||!he._writableState.ended)&&(ke=new ie),se.call(he,ke)},be=function(){he.req.on("finish",Se)};return ne(he)?(he.on("complete",Se),he.on("abort",ye),he.req?be():he.on("request",be)):fe&&!he._writableState&&(he.on("end",pe),he.on("close",pe)),he.on("end",ge),he.on("finish",Se),re.error!==!1&&he.on("error",Me),he.on("close",ye),function(){he.removeListener("complete",Se),he.removeListener("abort",ye),he.removeListener("request",be),he.req&&he.req.removeListener("finish",Se),he.removeListener("end",pe),he.removeListener("close",pe),he.removeListener("finish",Se),he.removeListener("end",ge),he.removeListener("error",Me),he.removeListener("close",ye)}}Te.exports=oe},{"../../../errors":399}],409:[function(x,Te,ve){Te.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(x,Te,ve){"use strict";var ie;function te(Se){var xe=!1;return function(){xe||(xe=!0,Se.apply(void 0,arguments))}}var ae=x("../../../errors").codes,ne=ae.ERR_MISSING_ARGS,oe=ae.ERR_STREAM_DESTROYED;function he(Se){if(Se)throw Se}function re(Se){return Se.setHeader&&typeof Se.abort=="function"}function se(Se,xe,ge,Me){Me=te(Me);var ye=!1;Se.on("close",function(){ye=!0}),ie===void 0&&(ie=x("./end-of-stream")),ie(Se,{readable:xe,writable:ge},function(Fe){if(Fe)return Me(Fe);ye=!0,Me()});var be=!1;return function(Fe){if(!ye&&!be){if(be=!0,re(Se))return Se.abort();if(typeof Se.destroy=="function")return Se.destroy();Me(Fe||new oe("pipe"))}}}function ce(Se){Se()}function fe(Se,xe){return Se.pipe(xe)}function pe(Se){return!Se.length||typeof Se[Se.length-1]!="function"?he:Se.pop()}function le(){for(var Se=arguments.length,xe=new Array(Se),ge=0;ge<Se;ge++)xe[ge]=arguments[ge];var Me=pe(xe);if(Array.isArray(xe[0])&&(xe=xe[0]),xe.length<2)throw new ne("streams");var ye,be=xe.map(function(Fe,ke){var De=ke<xe.length-1,Le=ke>0;return se(Fe,De,Le,function(Ie){ye||(ye=Ie),Ie&&be.forEach(ce),!De&&(be.forEach(ce),Me(ye))})});return xe.reduce(fe)}Te.exports=le},{"../../../errors":399,"./end-of-stream":408}],411:[function(x,Te,ve){"use strict";var ie=x("../../../errors").codes.ERR_INVALID_OPT_VALUE;function te(ne,oe,he){return ne.highWaterMark!=null?ne.highWaterMark:oe?ne[he]:null}function ae(ne,oe,he,re){var se=te(oe,re,he);if(se!=null){if(!(isFinite(se)&&Math.floor(se)===se)||se<0){var ce=re?he:"highWaterMark";throw new ie(ce,se)}return Math.floor(se)}return ne.objectMode?16:16*1024}Te.exports={getHighWaterMark:ae}},{"../../../errors":399}],412:[function(x,Te,ve){arguments[4][393][0].apply(ve,arguments)},{dup:393,events:344}],413:[function(x,Te,ve){"use strict";var ie=x("safe-buffer").Buffer,te=ie.isEncoding||function(be){switch(be=""+be,be&&be.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 ae(be){if(!be)return"utf8";for(var Fe;;)switch(be){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 be;default:if(Fe)return;be=(""+be).toLowerCase(),Fe=!0}}function ne(be){var Fe=ae(be);if(typeof Fe!="string"&&(ie.isEncoding===te||!te(be)))throw new Error("Unknown encoding: "+be);return Fe||be}ve.StringDecoder=oe;function oe(be){this.encoding=ne(be);var Fe;switch(this.encoding){case"utf16le":this.text=le,this.end=Se,Fe=4;break;case"utf8":this.fillLast=ce,Fe=4;break;case"base64":this.text=xe,this.end=ge,Fe=3;break;default:this.write=Me,this.end=ye;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ie.allocUnsafe(Fe)}oe.prototype.write=function(be){if(be.length===0)return"";var Fe,ke;if(this.lastNeed){if(Fe=this.fillLast(be),Fe===void 0)return"";ke=this.lastNeed,this.lastNeed=0}else ke=0;return ke<be.length?Fe?Fe+this.text(be,ke):this.text(be,ke):Fe||""},oe.prototype.end=pe,oe.prototype.text=fe,oe.prototype.fillLast=function(be){if(this.lastNeed<=be.length)return be.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);be.copy(this.lastChar,this.lastTotal-this.lastNeed,0,be.length),this.lastNeed-=be.length};function he(be){return be<=127?0:be>>5===6?2:be>>4===14?3:be>>3===30?4:be>>6===2?-1:-2}function re(be,Fe,ke){var De=Fe.length-1;if(De<ke)return 0;var Le=he(Fe[De]);return Le>=0?(Le>0&&(be.lastNeed=Le-1),Le):--De<ke||Le===-2?0:(Le=he(Fe[De]),Le>=0?(Le>0&&(be.lastNeed=Le-2),Le):--De<ke||Le===-2?0:(Le=he(Fe[De]),Le>=0?(Le>0&&(Le===2?Le=0:be.lastNeed=Le-3),Le):0))}function se(be,Fe,ke){if((Fe[0]&192)!==128)return be.lastNeed=0,"\uFFFD";if(be.lastNeed>1&&Fe.length>1){if((Fe[1]&192)!==128)return be.lastNeed=1,"\uFFFD";if(be.lastNeed>2&&Fe.length>2&&(Fe[2]&192)!==128)return be.lastNeed=2,"\uFFFD"}}function ce(be){var Fe=this.lastTotal-this.lastNeed,ke=se(this,be,Fe);if(ke!==void 0)return ke;if(this.lastNeed<=be.length)return be.copy(this.lastChar,Fe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);be.copy(this.lastChar,Fe,0,be.length),this.lastNeed-=be.length}function fe(be,Fe){var ke=re(this,be,Fe);if(!this.lastNeed)return be.toString("utf8",Fe);this.lastTotal=ke;var De=be.length-(ke-this.lastNeed);return be.copy(this.lastChar,0,De),be.toString("utf8",Fe,De)}function pe(be){var Fe=be&&be.length?this.write(be):"";return this.lastNeed?Fe+"\uFFFD":Fe}function le(be,Fe){if((be.length-Fe)%2===0){var ke=be.toString("utf16le",Fe);if(ke){var De=ke.charCodeAt(ke.length-1);if(De>=55296&&De<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=be[be.length-2],this.lastChar[1]=be[be.length-1],ke.slice(0,-1)}return ke}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=be[be.length-1],be.toString("utf16le",Fe,be.length-1)}function Se(be){var Fe=be&&be.length?this.write(be):"";if(this.lastNeed){var ke=this.lastTotal-this.lastNeed;return Fe+this.lastChar.toString("utf16le",0,ke)}return Fe}function xe(be,Fe){var ke=(be.length-Fe)%3;return ke===0?be.toString("base64",Fe):(this.lastNeed=3-ke,this.lastTotal=3,ke===1?this.lastChar[0]=be[be.length-1]:(this.lastChar[0]=be[be.length-2],this.lastChar[1]=be[be.length-1]),be.toString("base64",Fe,be.length-ke))}function ge(be){var Fe=be&&be.length?this.write(be):"";return this.lastNeed?Fe+this.lastChar.toString("base64",0,3-this.lastNeed):Fe}function Me(be){return be.toString(this.encoding)}function ye(be){return be&&be.length?this.write(be):""}},{"safe-buffer":396}],414:[function(x,Te,ve){(function(ie,te){(function(){var ae=x("process/browser.js").nextTick,ne=Function.prototype.apply,oe=Array.prototype.slice,he={},re=0;ve.setTimeout=function(){return new se(ne.call(setTimeout,window,arguments),clearTimeout)},ve.setInterval=function(){return new se(ne.call(setInterval,window,arguments),clearInterval)},ve.clearTimeout=ve.clearInterval=function(ce){ce.close()};function se(ce,fe){this._id=ce,this._clearFn=fe}se.prototype.unref=se.prototype.ref=function(){},se.prototype.close=function(){this._clearFn.call(window,this._id)},ve.enroll=function(ce,fe){clearTimeout(ce._idleTimeoutId),ce._idleTimeout=fe},ve.unenroll=function(ce){clearTimeout(ce._idleTimeoutId),ce._idleTimeout=-1},ve._unrefActive=ve.active=function(ce){clearTimeout(ce._idleTimeoutId);var fe=ce._idleTimeout;fe>=0&&(ce._idleTimeoutId=setTimeout(function(){ce._onTimeout&&ce._onTimeout()},fe))},ve.setImmediate=typeof ie=="function"?ie:function(ce){var fe=re++,pe=arguments.length<2?!1:oe.call(arguments,1);return he[fe]=!0,ae(function(){he[fe]&&(pe?ce.apply(null,pe):ce.call(null),ve.clearImmediate(fe))}),fe},ve.clearImmediate=typeof te=="function"?te:function(ce){delete he[ce]}}).call(this)}).call(this,x("timers").setImmediate,x("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(x,Te,ve){var ie=x("buffer").Buffer;Te.exports=function(te){if(te instanceof Uint8Array){if(te.byteOffset===0&&te.byteLength===te.buffer.byteLength)return te.buffer;if(typeof te.buffer.slice=="function")return te.buffer.slice(te.byteOffset,te.byteOffset+te.byteLength)}if(ie.isBuffer(te)){for(var ae=new Uint8Array(te.length),ne=te.length,oe=0;oe<ne;oe++)ae[oe]=te[oe];return ae.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(x,Te,ve){(function(ie){(function(){Te.exports=te;function te(ne,oe){if(ae("noDeprecation"))return ne;var he=!1;function re(){if(!he){if(ae("throwDeprecation"))throw new Error(oe);ae("traceDeprecation")?console.trace(oe):console.warn(oe),he=!0}return ne.apply(this,arguments)}return re}function ae(ne){try{if(!ie.localStorage)return!1}catch(he){return!1}var oe=ie.localStorage[ne];return oe==null?!1:String(oe).toLowerCase()==="true"}}).call(this)}).call(this,typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(x,Te,ve){arguments[4][84][0].apply(ve,arguments)},{dup:84}],418:[function(x,Te,ve){"use strict";var ie=x("is-arguments"),te=x("is-generator-function"),ae=x("which-typed-array"),ne=x("is-typed-array");function oe(ot){return ot.call.bind(ot)}var he=typeof BigInt!="undefined",re=typeof Symbol!="undefined",se=oe(Object.prototype.toString),ce=oe(Number.prototype.valueOf),fe=oe(String.prototype.valueOf),pe=oe(Boolean.prototype.valueOf);if(he)var le=oe(BigInt.prototype.valueOf);if(re)var Se=oe(Symbol.prototype.valueOf);function xe(ot,mt){if(typeof ot!="object")return!1;try{return mt(ot),!0}catch(Ot){return!1}}ve.isArgumentsObject=ie,ve.isGeneratorFunction=te,ve.isTypedArray=ne;function ge(ot){return typeof Promise!="undefined"&&ot instanceof Promise||ot!==null&&typeof ot=="object"&&typeof ot.then=="function"&&typeof ot.catch=="function"}ve.isPromise=ge;function Me(ot){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ot):ne(ot)||at(ot)}ve.isArrayBufferView=Me;function ye(ot){return ae(ot)==="Uint8Array"}ve.isUint8Array=ye;function be(ot){return ae(ot)==="Uint8ClampedArray"}ve.isUint8ClampedArray=be;function Fe(ot){return ae(ot)==="Uint16Array"}ve.isUint16Array=Fe;function ke(ot){return ae(ot)==="Uint32Array"}ve.isUint32Array=ke;function De(ot){return ae(ot)==="Int8Array"}ve.isInt8Array=De;function Le(ot){return ae(ot)==="Int16Array"}ve.isInt16Array=Le;function Ie(ot){return ae(ot)==="Int32Array"}ve.isInt32Array=Ie;function Be(ot){return ae(ot)==="Float32Array"}ve.isFloat32Array=Be;function Ue(ot){return ae(ot)==="Float64Array"}ve.isFloat64Array=Ue;function _e(ot){return ae(ot)==="BigInt64Array"}ve.isBigInt64Array=_e;function We(ot){return ae(ot)==="BigUint64Array"}ve.isBigUint64Array=We;function Ze(ot){return se(ot)==="[object Map]"}Ze.working=typeof Map!="undefined"&&Ze(new Map);function et(ot){return typeof Map=="undefined"?!1:Ze.working?Ze(ot):ot instanceof Map}ve.isMap=et;function it(ot){return se(ot)==="[object Set]"}it.working=typeof Set!="undefined"&&it(new Set);function pt(ot){return typeof Set=="undefined"?!1:it.working?it(ot):ot instanceof Set}ve.isSet=pt;function Ge(ot){return se(ot)==="[object WeakMap]"}Ge.working=typeof WeakMap!="undefined"&&Ge(new WeakMap);function Xe(ot){return typeof WeakMap=="undefined"?!1:Ge.working?Ge(ot):ot instanceof WeakMap}ve.isWeakMap=Xe;function lt(ot){return se(ot)==="[object WeakSet]"}lt.working=typeof WeakSet!="undefined"&<(new WeakSet);function dt(ot){return lt(ot)}ve.isWeakSet=dt;function st(ot){return se(ot)==="[object ArrayBuffer]"}st.working=typeof ArrayBuffer!="undefined"&&st(new ArrayBuffer);function nt(ot){return typeof ArrayBuffer=="undefined"?!1:st.working?st(ot):ot instanceof ArrayBuffer}ve.isArrayBuffer=nt;function rt(ot){return se(ot)==="[object DataView]"}rt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&rt(new DataView(new ArrayBuffer(1),0,1));function at(ot){return typeof DataView=="undefined"?!1:rt.working?rt(ot):ot instanceof DataView}ve.isDataView=at;var gt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function vt(ot){return se(ot)==="[object SharedArrayBuffer]"}function Et(ot){return typeof gt=="undefined"?!1:(typeof vt.working=="undefined"&&(vt.working=vt(new gt)),vt.working?vt(ot):ot instanceof gt)}ve.isSharedArrayBuffer=Et;function At(ot){return se(ot)==="[object AsyncFunction]"}ve.isAsyncFunction=At;function ut(ot){return se(ot)==="[object Map Iterator]"}ve.isMapIterator=ut;function Ye(ot){return se(ot)==="[object Set Iterator]"}ve.isSetIterator=Ye;function Ve(ot){return se(ot)==="[object Generator]"}ve.isGeneratorObject=Ve;function de(ot){return se(ot)==="[object WebAssembly.Module]"}ve.isWebAssemblyCompiledModule=de;function Ce(ot){return xe(ot,ce)}ve.isNumberObject=Ce;function He(ot){return xe(ot,fe)}ve.isStringObject=He;function je(ot){return xe(ot,pe)}ve.isBooleanObject=je;function Ae(ot){return he&&xe(ot,le)}ve.isBigIntObject=Ae;function Ne(ot){return re&&xe(ot,Se)}ve.isSymbolObject=Ne;function ze(ot){return Ce(ot)||He(ot)||je(ot)||Ae(ot)||Ne(ot)}ve.isBoxedPrimitive=ze;function Qe(ot){return typeof Uint8Array!="undefined"&&(nt(ot)||Et(ot))}ve.isAnyArrayBuffer=Qe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ot){Object.defineProperty(ve,ot,{enumerable:!1,value:function(){throw new Error(ot+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(x,Te,ve){(function(ie){(function(){var te=Object.getOwnPropertyDescriptors||function(gt){for(var vt=Object.keys(gt),Et={},At=0;At<vt.length;At++)Et[vt[At]]=Object.getOwnPropertyDescriptor(gt,vt[At]);return Et},ae=/%[sdj%]/g;ve.format=function(at){if(!Le(at)){for(var gt=[],vt=0;vt<arguments.length;vt++)gt.push(re(arguments[vt]));return gt.join(" ")}for(var vt=1,Et=arguments,At=Et.length,ut=String(at).replace(ae,function(Ve){if(Ve==="%%")return"%";if(vt>=At)return Ve;switch(Ve){case"%s":return String(Et[vt++]);case"%d":return Number(Et[vt++]);case"%j":try{return JSON.stringify(Et[vt++])}catch(de){return"[Circular]"}default:return Ve}}),Ye=Et[vt];vt<At;Ye=Et[++vt])Fe(Ye)||!_e(Ye)?ut+=" "+Ye:ut+=" "+re(Ye);return ut},ve.deprecate=function(at,gt){if(typeof ie!="undefined"&&ie.noDeprecation===!0)return at;if(typeof ie=="undefined")return function(){return ve.deprecate(at,gt).apply(this,arguments)};var vt=!1;function Et(){if(!vt){if(ie.throwDeprecation)throw new Error(gt);ie.traceDeprecation?console.trace(gt):console.error(gt),vt=!0}return at.apply(this,arguments)}return Et};var ne={},oe=/^$/;if(ie.env.NODE_DEBUG){var he=ie.env.NODE_DEBUG;he=he.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),oe=new RegExp("^"+he+"$","i")}ve.debuglog=function(at){if(at=at.toUpperCase(),!ne[at])if(oe.test(at)){var gt=ie.pid;ne[at]=function(){var vt=ve.format.apply(ve,arguments);console.error("%s %d: %s",at,gt,vt)}}else ne[at]=function(){};return ne[at]};function re(at,gt){var vt={seen:[],stylize:ce};return arguments.length>=3&&(vt.depth=arguments[2]),arguments.length>=4&&(vt.colors=arguments[3]),be(gt)?vt.showHidden=gt:gt&&ve._extend(vt,gt),Be(vt.showHidden)&&(vt.showHidden=!1),Be(vt.depth)&&(vt.depth=2),Be(vt.colors)&&(vt.colors=!1),Be(vt.customInspect)&&(vt.customInspect=!0),vt.colors&&(vt.stylize=se),pe(vt,at,vt.depth)}ve.inspect=re,re.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]},re.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function se(at,gt){var vt=re.styles[gt];return vt?"\x1B["+re.colors[vt][0]+"m"+at+"\x1B["+re.colors[vt][1]+"m":at}function ce(at,gt){return at}function fe(at){var gt={};return at.forEach(function(vt,Et){gt[vt]=!0}),gt}function pe(at,gt,vt){if(at.customInspect&>&&et(gt.inspect)&>.inspect!==ve.inspect&&!(gt.constructor&>.constructor.prototype===gt)){var Et=gt.inspect(vt,at);return Le(Et)||(Et=pe(at,Et,vt)),Et}var At=le(at,gt);if(At)return At;var ut=Object.keys(gt),Ye=fe(ut);if(at.showHidden&&(ut=Object.getOwnPropertyNames(gt)),Ze(gt)&&(ut.indexOf("message")>=0||ut.indexOf("description")>=0))return Se(gt);if(ut.length===0){if(et(gt)){var Ve=gt.name?": "+gt.name:"";return at.stylize("[Function"+Ve+"]","special")}if(Ue(gt))return at.stylize(RegExp.prototype.toString.call(gt),"regexp");if(We(gt))return at.stylize(Date.prototype.toString.call(gt),"date");if(Ze(gt))return Se(gt)}var de="",Ce=!1,He=["{","}"];if(ye(gt)&&(Ce=!0,He=["[","]"]),et(gt)){var je=gt.name?": "+gt.name:"";de=" [Function"+je+"]"}if(Ue(gt)&&(de=" "+RegExp.prototype.toString.call(gt)),We(gt)&&(de=" "+Date.prototype.toUTCString.call(gt)),Ze(gt)&&(de=" "+Se(gt)),ut.length===0&&(!Ce||gt.length==0))return He[0]+de+He[1];if(vt<0)return Ue(gt)?at.stylize(RegExp.prototype.toString.call(gt),"regexp"):at.stylize("[Object]","special");at.seen.push(gt);var Ae;return Ce?Ae=xe(at,gt,vt,Ye,ut):Ae=ut.map(function(Ne){return ge(at,gt,vt,Ye,Ne,Ce)}),at.seen.pop(),Me(Ae,de,He)}function le(at,gt){if(Be(gt))return at.stylize("undefined","undefined");if(Le(gt)){var vt="'"+JSON.stringify(gt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return at.stylize(vt,"string")}if(De(gt))return at.stylize(""+gt,"number");if(be(gt))return at.stylize(""+gt,"boolean");if(Fe(gt))return at.stylize("null","null")}function Se(at){return"["+Error.prototype.toString.call(at)+"]"}function xe(at,gt,vt,Et,At){for(var ut=[],Ye=0,Ve=gt.length;Ye<Ve;++Ye)dt(gt,String(Ye))?ut.push(ge(at,gt,vt,Et,String(Ye),!0)):ut.push("");return At.forEach(function(de){de.match(/^\d+$/)||ut.push(ge(at,gt,vt,Et,de,!0))}),ut}function ge(at,gt,vt,Et,At,ut){var Ye,Ve,de;if(de=Object.getOwnPropertyDescriptor(gt,At)||{value:gt[At]},de.get?de.set?Ve=at.stylize("[Getter/Setter]","special"):Ve=at.stylize("[Getter]","special"):de.set&&(Ve=at.stylize("[Setter]","special")),dt(Et,At)||(Ye="["+At+"]"),Ve||(at.seen.indexOf(de.value)<0?(Fe(vt)?Ve=pe(at,de.value,null):Ve=pe(at,de.value,vt-1),Ve.indexOf(`
|
|
|
`)>-1&&(ut?Ve=Ve.split(`
|
|
|
`).map(function(Ce){return" "+Ce}).join(`
|
|
|
`).slice(2):Ve=`
|
|
|
`+Ve.split(`
|
|
|
`).map(function(Ce){return" "+Ce}).join(`
|
|
|
`))):Ve=at.stylize("[Circular]","special")),Be(Ye)){if(ut&&At.match(/^\d+$/))return Ve;Ye=JSON.stringify(""+At),Ye.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ye=Ye.slice(1,-1),Ye=at.stylize(Ye,"name")):(Ye=Ye.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ye=at.stylize(Ye,"string"))}return Ye+": "+Ve}function Me(at,gt,vt){var Et=0,At=at.reduce(function(ut,Ye){return Et++,Ye.indexOf(`
|
|
|
`)>=0&&Et++,ut+Ye.replace(/\u001b\[\d\d?m/g,"").length+1},0);return At>60?vt[0]+(gt===""?"":gt+`
|
|
|
`)+" "+at.join(`,
|
|
|
`)+" "+vt[1]:vt[0]+gt+" "+at.join(", ")+" "+vt[1]}ve.types=x("./support/types");function ye(at){return Array.isArray(at)}ve.isArray=ye;function be(at){return typeof at=="boolean"}ve.isBoolean=be;function Fe(at){return at===null}ve.isNull=Fe;function ke(at){return at==null}ve.isNullOrUndefined=ke;function De(at){return typeof at=="number"}ve.isNumber=De;function Le(at){return typeof at=="string"}ve.isString=Le;function Ie(at){return typeof at=="symbol"}ve.isSymbol=Ie;function Be(at){return at===void 0}ve.isUndefined=Be;function Ue(at){return _e(at)&&pt(at)==="[object RegExp]"}ve.isRegExp=Ue,ve.types.isRegExp=Ue;function _e(at){return typeof at=="object"&&at!==null}ve.isObject=_e;function We(at){return _e(at)&&pt(at)==="[object Date]"}ve.isDate=We,ve.types.isDate=We;function Ze(at){return _e(at)&&(pt(at)==="[object Error]"||at instanceof Error)}ve.isError=Ze,ve.types.isNativeError=Ze;function et(at){return typeof at=="function"}ve.isFunction=et;function it(at){return at===null||typeof at=="boolean"||typeof at=="number"||typeof at=="string"||typeof at=="symbol"||typeof at=="undefined"}ve.isPrimitive=it,ve.isBuffer=x("./support/isBuffer");function pt(at){return Object.prototype.toString.call(at)}function Ge(at){return at<10?"0"+at.toString(10):at.toString(10)}var Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function lt(){var at=new Date,gt=[Ge(at.getHours()),Ge(at.getMinutes()),Ge(at.getSeconds())].join(":");return[at.getDate(),Xe[at.getMonth()],gt].join(" ")}ve.log=function(){console.log("%s - %s",lt(),ve.format.apply(ve,arguments))},ve.inherits=x("inherits"),ve._extend=function(at,gt){if(!gt||!_e(gt))return at;for(var vt=Object.keys(gt),Et=vt.length;Et--;)at[vt[Et]]=gt[vt[Et]];return at};function dt(at,gt){return Object.prototype.hasOwnProperty.call(at,gt)}var st=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ve.promisify=function(gt){if(typeof gt!="function")throw new TypeError('The "original" argument must be of type Function');if(st&>[st]){var vt=gt[st];if(typeof vt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(vt,st,{value:vt,enumerable:!1,writable:!1,configurable:!0}),vt}function vt(){for(var Et,At,ut=new Promise(function(de,Ce){Et=de,At=Ce}),Ye=[],Ve=0;Ve<arguments.length;Ve++)Ye.push(arguments[Ve]);Ye.push(function(de,Ce){de?At(de):Et(Ce)});try{gt.apply(this,Ye)}catch(de){At(de)}return ut}return Object.setPrototypeOf(vt,Object.getPrototypeOf(gt)),st&&Object.defineProperty(vt,st,{value:vt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(vt,te(gt))},ve.promisify.custom=st;function nt(at,gt){if(!at){var vt=new Error("Promise was rejected with a falsy value");vt.reason=at,at=vt}return gt(at)}function rt(at){if(typeof at!="function")throw new TypeError('The "original" argument must be of type Function');function gt(){for(var vt=[],Et=0;Et<arguments.length;Et++)vt.push(arguments[Et]);var At=vt.pop();if(typeof At!="function")throw new TypeError("The last argument must be of type Function");var ut=this,Ye=function(){return At.apply(ut,arguments)};at.apply(this,vt).then(function(Ve){ie.nextTick(Ye.bind(null,null,Ve))},function(Ve){ie.nextTick(nt.bind(null,Ve,Ye))})}return Object.setPrototypeOf(gt,Object.getPrototypeOf(at)),Object.defineProperties(gt,te(at)),gt}ve.callbackify=rt}).call(this)}).call(this,x("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(x,Te,ve){(function(ie){(function(){"use strict";var te=x("for-each"),ae=x("available-typed-arrays"),ne=x("call-bind"),oe=x("call-bind/callBound"),he=x("gopd"),re=oe("Object.prototype.toString"),se=x("has-tostringtag/shams")(),ce=typeof globalThis=="undefined"?ie:globalThis,fe=ae(),pe=oe("String.prototype.slice"),le=Object.getPrototypeOf,Se=oe("Array.prototype.indexOf",!0)||function(be,Fe){for(var ke=0;ke<be.length;ke+=1)if(be[ke]===Fe)return ke;return-1},xe={__proto__:null};se&&he&&le?te(fe,function(ye){var be=new ce[ye];if(Symbol.toStringTag in be){var Fe=le(be),ke=he(Fe,Symbol.toStringTag);if(!ke){var De=le(Fe);ke=he(De,Symbol.toStringTag)}xe["$"+ye]=ne(ke.get)}}):te(fe,function(ye){var be=new ce[ye];xe["$"+ye]=ne(be.slice)});var ge=function(be){var Fe=!1;return te(xe,function(ke,De){if(!Fe)try{"$"+ke(be)===De&&(Fe=pe(De,1))}catch(Le){}}),Fe},Me=function(be){var Fe=!1;return te(xe,function(ke,De){if(!Fe)try{ke(be),Fe=pe(De,1)}catch(Le){}}),Fe};Te.exports=function(be){if(!be||typeof be!="object")return!1;if(!se){var Fe=pe(re(be),8,-1);return Se(fe,Fe)>-1?Fe:Fe!=="Object"?!1:Me(be)}return he?ge(be):null}}).call(this)}).call(this,typeof Kt!="undefined"?Kt: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(x,Te,ve){(function(){"use strict";ve.stripBOM=function(ie){return ie[0]==="\uFEFF"?ie.substring(1):ie}}).call(this)},{}],422:[function(x,Te,ve){(function(){"use strict";var ie,te,ae,ne,oe,he={}.hasOwnProperty;ie=x("xmlbuilder"),te=x("./defaults").defaults,ne=function(re){return typeof re=="string"&&(re.indexOf("&")>=0||re.indexOf(">")>=0||re.indexOf("<")>=0)},oe=function(re){return"<![CDATA["+ae(re)+"]]>"},ae=function(re){return re.replace("]]>","]]]]><![CDATA[>")},ve.Builder=function(){function re(se){var ce,fe,pe;this.options={},fe=te["0.2"];for(ce in fe)he.call(fe,ce)&&(pe=fe[ce],this.options[ce]=pe);for(ce in se)he.call(se,ce)&&(pe=se[ce],this.options[ce]=pe)}return re.prototype.buildObject=function(se){var ce,fe,pe,le,Se;return ce=this.options.attrkey,fe=this.options.charkey,Object.keys(se).length===1&&this.options.rootName===te["0.2"].rootName?(Se=Object.keys(se)[0],se=se[Se]):Se=this.options.rootName,pe=function(xe){return function(ge,Me){var ye,be,Fe,ke,De,Le;if(typeof Me!="object")xe.options.cdata&&ne(Me)?ge.raw(oe(Me)):ge.txt(Me);else if(Array.isArray(Me)){for(ke in Me)if(he.call(Me,ke)){be=Me[ke];for(De in be)Fe=be[De],ge=pe(ge.ele(De),Fe).up()}}else for(De in Me)if(he.call(Me,De))if(be=Me[De],De===ce){if(typeof be=="object")for(ye in be)Le=be[ye],ge=ge.att(ye,Le)}else if(De===fe)xe.options.cdata&&ne(be)?ge=ge.raw(oe(be)):ge=ge.txt(be);else if(Array.isArray(be))for(ke in be)he.call(be,ke)&&(Fe=be[ke],typeof Fe=="string"?xe.options.cdata&&ne(Fe)?ge=ge.ele(De).raw(oe(Fe)).up():ge=ge.ele(De,Fe).up():ge=pe(ge.ele(De),Fe).up());else typeof be=="object"?ge=pe(ge.ele(De),be).up():typeof be=="string"&&xe.options.cdata&&ne(be)?ge=ge.ele(De).raw(oe(be)).up():(be==null&&(be=""),ge=ge.ele(De,be.toString()).up());return ge}}(this),le=ie.create(Se,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),pe(le,se).end(this.options.renderOpts)},re}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(x,Te,ve){(function(){ve.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(x,Te,ve){(function(){"use strict";var ie,te,ae,ne,oe,he,re,se,ce,fe=function(Se,xe){return function(){return Se.apply(xe,arguments)}},pe=function(Se,xe){for(var ge in xe)le.call(xe,ge)&&(Se[ge]=xe[ge]);function Me(){this.constructor=Se}return Me.prototype=xe.prototype,Se.prototype=new Me,Se.__super__=xe.prototype,Se},le={}.hasOwnProperty;se=x("sax"),ne=x("events"),ie=x("./bom"),re=x("./processors"),ce=x("timers").setImmediate,te=x("./defaults").defaults,oe=function(Se){return typeof Se=="object"&&Se!=null&&Object.keys(Se).length===0},he=function(Se,xe,ge){var Me,ye,be;for(Me=0,ye=Se.length;Me<ye;Me++)be=Se[Me],xe=be(xe,ge);return xe},ae=function(Se,xe,ge){var Me;return Me=Object.create(null),Me.value=ge,Me.writable=!0,Me.enumerable=!0,Me.configurable=!0,Object.defineProperty(Se,xe,Me)},ve.Parser=function(Se){pe(xe,Se);function xe(ge){this.parseStringPromise=fe(this.parseStringPromise,this),this.parseString=fe(this.parseString,this),this.reset=fe(this.reset,this),this.assignOrPush=fe(this.assignOrPush,this),this.processAsync=fe(this.processAsync,this);var Me,ye,be;if(!(this instanceof ve.Parser))return new ve.Parser(ge);this.options={},ye=te["0.2"];for(Me in ye)le.call(ye,Me)&&(be=ye[Me],this.options[Me]=be);for(Me in ge)le.call(ge,Me)&&(be=ge[Me],this.options[Me]=be);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(re.normalize)),this.reset()}return xe.prototype.processAsync=function(){var ge,Me;try{return this.remaining.length<=this.options.chunkSize?(ge=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ge),this.saxParser.close()):(ge=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ge),ce(this.processAsync))}catch(ye){if(Me=ye,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Me)}},xe.prototype.assignOrPush=function(ge,Me,ye){return Me in ge?(ge[Me]instanceof Array||ae(ge,Me,[ge[Me]]),ge[Me].push(ye)):this.options.explicitArray?ae(ge,Me,[ye]):ae(ge,Me,ye)},xe.prototype.reset=function(){var ge,Me,ye,be;return this.removeAllListeners(),this.saxParser=se.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Fe){return function(ke){if(Fe.saxParser.resume(),!Fe.saxParser.errThrown)return Fe.saxParser.errThrown=!0,Fe.emit("error",ke)}}(this),this.saxParser.onend=function(Fe){return function(){if(!Fe.saxParser.ended)return Fe.saxParser.ended=!0,Fe.emit("end",Fe.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,be=[],ge=this.options.attrkey,Me=this.options.charkey,this.saxParser.onopentag=function(Fe){return function(ke){var De,Le,Ie,Be,Ue;if(Ie={},Ie[Me]="",!Fe.options.ignoreAttrs){Ue=ke.attributes;for(De in Ue)le.call(Ue,De)&&(!(ge in Ie)&&!Fe.options.mergeAttrs&&(Ie[ge]={}),Le=Fe.options.attrValueProcessors?he(Fe.options.attrValueProcessors,ke.attributes[De],De):ke.attributes[De],Be=Fe.options.attrNameProcessors?he(Fe.options.attrNameProcessors,De):De,Fe.options.mergeAttrs?Fe.assignOrPush(Ie,Be,Le):ae(Ie[ge],Be,Le))}return Ie["#name"]=Fe.options.tagNameProcessors?he(Fe.options.tagNameProcessors,ke.name):ke.name,Fe.options.xmlns&&(Ie[Fe.options.xmlnskey]={uri:ke.uri,local:ke.local}),be.push(Ie)}}(this),this.saxParser.onclosetag=function(Fe){return function(){var ke,De,Le,Ie,Be,Ue,_e,We,Ze,et;if(Ue=be.pop(),Be=Ue["#name"],(!Fe.options.explicitChildren||!Fe.options.preserveChildrenOrder)&&delete Ue["#name"],Ue.cdata===!0&&(ke=Ue.cdata,delete Ue.cdata),Ze=be[be.length-1],Ue[Me].match(/^\s*$/)&&!ke?(De=Ue[Me],delete Ue[Me]):(Fe.options.trim&&(Ue[Me]=Ue[Me].trim()),Fe.options.normalize&&(Ue[Me]=Ue[Me].replace(/\s{2,}/g," ").trim()),Ue[Me]=Fe.options.valueProcessors?he(Fe.options.valueProcessors,Ue[Me],Be):Ue[Me],Object.keys(Ue).length===1&&Me in Ue&&!Fe.EXPLICIT_CHARKEY&&(Ue=Ue[Me])),oe(Ue)&&(typeof Fe.options.emptyTag=="function"?Ue=Fe.options.emptyTag():Ue=Fe.options.emptyTag!==""?Fe.options.emptyTag:De),Fe.options.validator!=null&&(et="/"+function(){var it,pt,Ge;for(Ge=[],it=0,pt=be.length;it<pt;it++)Ie=be[it],Ge.push(Ie["#name"]);return Ge}().concat(Be).join("/"),function(){var it;try{return Ue=Fe.options.validator(et,Ze&&Ze[Be],Ue)}catch(pt){return it=pt,Fe.emit("error",it)}}()),Fe.options.explicitChildren&&!Fe.options.mergeAttrs&&typeof Ue=="object"){if(!Fe.options.preserveChildrenOrder)Ie={},Fe.options.attrkey in Ue&&(Ie[Fe.options.attrkey]=Ue[Fe.options.attrkey],delete Ue[Fe.options.attrkey]),!Fe.options.charsAsChildren&&Fe.options.charkey in Ue&&(Ie[Fe.options.charkey]=Ue[Fe.options.charkey],delete Ue[Fe.options.charkey]),Object.getOwnPropertyNames(Ue).length>0&&(Ie[Fe.options.childkey]=Ue),Ue=Ie;else if(Ze){Ze[Fe.options.childkey]=Ze[Fe.options.childkey]||[],_e={};for(Le in Ue)le.call(Ue,Le)&&ae(_e,Le,Ue[Le]);Ze[Fe.options.childkey].push(_e),delete Ue["#name"],Object.keys(Ue).length===1&&Me in Ue&&!Fe.EXPLICIT_CHARKEY&&(Ue=Ue[Me])}}return be.length>0?Fe.assignOrPush(Ze,Be,Ue):(Fe.options.explicitRoot&&(We=Ue,Ue={},ae(Ue,Be,We)),Fe.resultObject=Ue,Fe.saxParser.ended=!0,Fe.emit("end",Fe.resultObject))}}(this),ye=function(Fe){return function(ke){var De,Le;if(Le=be[be.length-1],Le)return Le[Me]+=ke,Fe.options.explicitChildren&&Fe.options.preserveChildrenOrder&&Fe.options.charsAsChildren&&(Fe.options.includeWhiteChars||ke.replace(/\\n/g,"").trim()!=="")&&(Le[Fe.options.childkey]=Le[Fe.options.childkey]||[],De={"#name":"__text__"},De[Me]=ke,Fe.options.normalize&&(De[Me]=De[Me].replace(/\s{2,}/g," ").trim()),Le[Fe.options.childkey].push(De)),Le}}(this),this.saxParser.ontext=ye,this.saxParser.oncdata=function(Fe){return function(ke){var De;if(De=ye(ke),De)return De.cdata=!0}}(this)},xe.prototype.parseString=function(ge,Me){var ye;Me!=null&&typeof Me=="function"&&(this.on("end",function(be){return this.reset(),Me(null,be)}),this.on("error",function(be){return this.reset(),Me(be)}));try{return ge=ge.toString(),ge.trim()===""?(this.emit("end",null),!0):(ge=ie.stripBOM(ge),this.options.async?(this.remaining=ge,ce(this.processAsync),this.saxParser):this.saxParser.write(ge).close())}catch(be){if(ye=be,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw ye}else return this.emit("error",ye),this.saxParser.errThrown=!0}},xe.prototype.parseStringPromise=function(ge){return new Promise(function(Me){return function(ye,be){return Me.parseString(ge,function(Fe,ke){return Fe?be(Fe):ye(ke)})}}(this))},xe}(ne),ve.parseString=function(Se,xe,ge){var Me,ye,be;return ge!=null?(typeof ge=="function"&&(Me=ge),typeof xe=="object"&&(ye=xe)):(typeof xe=="function"&&(Me=xe),ye={}),be=new ve.Parser(ye),be.parseString(Se,Me)},ve.parseStringPromise=function(Se,xe){var ge,Me;return typeof xe=="object"&&(ge=xe),Me=new ve.Parser(ge),Me.parseStringPromise(Se)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(x,Te,ve){(function(){"use strict";var ie;ie=new RegExp(/(?!xmlns)^.*:/),ve.normalize=function(te){return te.toLowerCase()},ve.firstCharLowerCase=function(te){return te.charAt(0).toLowerCase()+te.slice(1)},ve.stripPrefix=function(te){return te.replace(ie,"")},ve.parseNumbers=function(te){return isNaN(te)||(te=te%1===0?parseInt(te,10):parseFloat(te)),te},ve.parseBooleans=function(te){return/^(?:true|false)$/i.test(te)&&(te=te.toLowerCase()==="true"),te}}).call(this)},{}],426:[function(x,Te,ve){(function(){"use strict";var ie,te,ae,ne,oe=function(re,se){for(var ce in se)he.call(se,ce)&&(re[ce]=se[ce]);function fe(){this.constructor=re}return fe.prototype=se.prototype,re.prototype=new fe,re.__super__=se.prototype,re},he={}.hasOwnProperty;te=x("./defaults"),ie=x("./builder"),ae=x("./parser"),ne=x("./processors"),ve.defaults=te.defaults,ve.processors=ne,ve.ValidationError=function(re){oe(se,re);function se(ce){this.message=ce}return se}(Error),ve.Builder=ie.Builder,ve.Parser=ae.Parser,ve.parseString=ae.parseString,ve.parseStringPromise=ae.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(x,Te,ve){(function(){Te.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(x,Te,ve){(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(x,Te,ve){(function(){var ie,te,ae,ne,oe,he,re,se=[].slice,ce={}.hasOwnProperty;ie=function(){var fe,pe,le,Se,xe,ge;if(ge=arguments[0],xe=2<=arguments.length?se.call(arguments,1):[],oe(Object.assign))Object.assign.apply(null,arguments);else for(fe=0,le=xe.length;fe<le;fe++)if(Se=xe[fe],Se!=null)for(pe in Se)ce.call(Se,pe)&&(ge[pe]=Se[pe]);return ge},oe=function(fe){return!!fe&&Object.prototype.toString.call(fe)==="[object Function]"},he=function(fe){var pe;return!!fe&&((pe=typeof fe)=="function"||pe==="object")},ae=function(fe){return oe(Array.isArray)?Array.isArray(fe):Object.prototype.toString.call(fe)==="[object Array]"},ne=function(fe){var pe;if(ae(fe))return!fe.length;for(pe in fe)if(ce.call(fe,pe))return!1;return!0},re=function(fe){var pe,le;return he(fe)&&(le=Object.getPrototypeOf(fe))&&(pe=le.constructor)&&typeof pe=="function"&&pe instanceof pe&&Function.prototype.toString.call(pe)===Function.prototype.toString.call(Object)},te=function(fe){return oe(fe.valueOf)?fe.valueOf():fe},Te.exports.assign=ie,Te.exports.isFunction=oe,Te.exports.isObject=he,Te.exports.isArray=ae,Te.exports.isEmpty=ne,Te.exports.isPlainObject=re,Te.exports.getValue=te}).call(this)},{}],430:[function(x,Te,ve){(function(){Te.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(x,Te,ve){(function(){var ie,te,ae;ie=x("./NodeType"),ae=x("./XMLNode"),Te.exports=te=function(){function ne(oe,he,re){if(this.parent=oe,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),he==null)throw new Error("Missing attribute name. "+this.debugInfo(he));this.name=this.stringify.name(he),this.value=this.stringify.attValue(re),this.type=ie.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(ne.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ne.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(ne.prototype,"textContent",{get:function(){return this.value},set:function(oe){return this.value=oe||""}}),Object.defineProperty(ne.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(ne.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(ne.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(ne.prototype,"specified",{get:function(){return!0}}),ne.prototype.clone=function(){return Object.create(this)},ne.prototype.toString=function(oe){return this.options.writer.attribute(this,this.options.writer.filterOptions(oe))},ne.prototype.debugInfo=function(oe){return oe=oe||this.name,oe==null?"parent: <"+this.parent.name+">":"attribute: {"+oe+"}, parent: <"+this.parent.name+">"},ne.prototype.isEqualNode=function(oe){return!(oe.namespaceURI!==this.namespaceURI||oe.prefix!==this.prefix||oe.localName!==this.localName||oe.value!==this.value)},ne}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ie=x("./NodeType"),ae=x("./XMLCharacterData"),Te.exports=te=function(he){ne(re,he);function re(se,ce){if(re.__super__.constructor.call(this,se),ce==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ie.CData,this.value=this.stringify.cdata(ce)}return re.prototype.clone=function(){return Object.create(this)},re.prototype.toString=function(se){return this.options.writer.cdata(this,this.options.writer.filterOptions(se))},re}(ae)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(x,Te,ve){(function(){var ie,te,ae=function(oe,he){for(var re in he)ne.call(he,re)&&(oe[re]=he[re]);function se(){this.constructor=oe}return se.prototype=he.prototype,oe.prototype=new se,oe.__super__=he.prototype,oe},ne={}.hasOwnProperty;te=x("./XMLNode"),Te.exports=ie=function(oe){ae(he,oe);function he(re){he.__super__.constructor.call(this,re),this.value=""}return Object.defineProperty(he.prototype,"data",{get:function(){return this.value},set:function(re){return this.value=re||""}}),Object.defineProperty(he.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(he.prototype,"textContent",{get:function(){return this.value},set:function(re){return this.value=re||""}}),he.prototype.clone=function(){return Object.create(this)},he.prototype.substringData=function(re,se){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.appendData=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.insertData=function(re,se){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.deleteData=function(re,se){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.replaceData=function(re,se,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.isEqualNode=function(re){return!(!he.__super__.isEqualNode.apply(this,arguments).isEqualNode(re)||re.data!==this.data)},he}(te)}).call(this)},{"./XMLNode":450}],434:[function(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ie=x("./NodeType"),te=x("./XMLCharacterData"),Te.exports=ae=function(he){ne(re,he);function re(se,ce){if(re.__super__.constructor.call(this,se),ce==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ie.Comment,this.value=this.stringify.comment(ce)}return re.prototype.clone=function(){return Object.create(this)},re.prototype.toString=function(se){return this.options.writer.comment(this,this.options.writer.filterOptions(se))},re}(te)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(x,Te,ve){(function(){var ie,te,ae;te=x("./XMLDOMErrorHandler"),ae=x("./XMLDOMStringList"),Te.exports=ie=function(){function ne(){var oe;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new te,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=oe=Object.create(this.defaultParams)}return Object.defineProperty(ne.prototype,"parameterNames",{get:function(){return new ae(Object.keys(this.defaultParams))}}),ne.prototype.getParameter=function(oe){return this.params.hasOwnProperty(oe)?this.params[oe]:null},ne.prototype.canSetParameter=function(oe,he){return!0},ne.prototype.setParameter=function(oe,he){return he!=null?this.params[oe]=he:delete this.params[oe]},ne}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(x,Te,ve){(function(){var ie;Te.exports=ie=function(){function te(){}return te.prototype.handleError=function(ae){throw new Error(ae)},te}()}).call(this)},{}],437:[function(x,Te,ve){(function(){var ie;Te.exports=ie=function(){function te(){}return te.prototype.hasFeature=function(ae,ne){return!0},te.prototype.createDocumentType=function(ae,ne,oe){throw new Error("This DOM method is not implemented.")},te.prototype.createDocument=function(ae,ne,oe){throw new Error("This DOM method is not implemented.")},te.prototype.createHTMLDocument=function(ae){throw new Error("This DOM method is not implemented.")},te.prototype.getFeature=function(ae,ne){throw new Error("This DOM method is not implemented.")},te}()}).call(this)},{}],438:[function(x,Te,ve){(function(){var ie;Te.exports=ie=function(){function te(ae){this.arr=ae||[]}return Object.defineProperty(te.prototype,"length",{get:function(){return this.arr.length}}),te.prototype.item=function(ae){return this.arr[ae]||null},te.prototype.contains=function(ae){return this.arr.indexOf(ae)!==-1},te}()}).call(this)},{}],439:[function(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ae=x("./XMLNode"),ie=x("./NodeType"),Te.exports=te=function(he){ne(re,he);function re(se,ce,fe,pe,le,Se){if(re.__super__.constructor.call(this,se),ce==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(fe==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(ce));if(!pe)throw new Error("Missing DTD attribute type. "+this.debugInfo(ce));if(!le)throw new Error("Missing DTD attribute default. "+this.debugInfo(ce));if(le.indexOf("#")!==0&&(le="#"+le),!le.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(ce));if(Se&&!le.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(ce));this.elementName=this.stringify.name(ce),this.type=ie.AttributeDeclaration,this.attributeName=this.stringify.name(fe),this.attributeType=this.stringify.dtdAttType(pe),Se&&(this.defaultValue=this.stringify.dtdAttDefault(Se)),this.defaultValueType=le}return re.prototype.toString=function(se){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(se))},re}(ae)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ae=x("./XMLNode"),ie=x("./NodeType"),Te.exports=te=function(he){ne(re,he);function re(se,ce,fe){if(re.__super__.constructor.call(this,se),ce==null)throw new Error("Missing DTD element name. "+this.debugInfo());fe||(fe="(#PCDATA)"),Array.isArray(fe)&&(fe="("+fe.join(",")+")"),this.name=this.stringify.name(ce),this.type=ie.ElementDeclaration,this.value=this.stringify.dtdElementValue(fe)}return re.prototype.toString=function(se){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(se))},re}(ae)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe=function(re,se){for(var ce in se)he.call(se,ce)&&(re[ce]=se[ce]);function fe(){this.constructor=re}return fe.prototype=se.prototype,re.prototype=new fe,re.__super__=se.prototype,re},he={}.hasOwnProperty;ne=x("./Utility").isObject,ae=x("./XMLNode"),ie=x("./NodeType"),Te.exports=te=function(re){oe(se,re);function se(ce,fe,pe,le){if(se.__super__.constructor.call(this,ce),pe==null)throw new Error("Missing DTD entity name. "+this.debugInfo(pe));if(le==null)throw new Error("Missing DTD entity value. "+this.debugInfo(pe));if(this.pe=!!fe,this.name=this.stringify.name(pe),this.type=ie.EntityDeclaration,!ne(le))this.value=this.stringify.dtdEntityValue(le),this.internal=!0;else{if(!le.pubID&&!le.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(pe));if(le.pubID&&!le.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(pe));if(this.internal=!1,le.pubID!=null&&(this.pubID=this.stringify.dtdPubID(le.pubID)),le.sysID!=null&&(this.sysID=this.stringify.dtdSysID(le.sysID)),le.nData!=null&&(this.nData=this.stringify.dtdNData(le.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(pe))}}return Object.defineProperty(se.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(se.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(se.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(se.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(se.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(se.prototype,"xmlVersion",{get:function(){return null}}),se.prototype.toString=function(ce){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(ce))},se}(ae)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ae=x("./XMLNode"),ie=x("./NodeType"),Te.exports=te=function(he){ne(re,he);function re(se,ce,fe){if(re.__super__.constructor.call(this,se),ce==null)throw new Error("Missing DTD notation name. "+this.debugInfo(ce));if(!fe.pubID&&!fe.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(ce));this.name=this.stringify.name(ce),this.type=ie.NotationDeclaration,fe.pubID!=null&&(this.pubID=this.stringify.dtdPubID(fe.pubID)),fe.sysID!=null&&(this.sysID=this.stringify.dtdSysID(fe.sysID))}return Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),re.prototype.toString=function(se){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(se))},re}(ae)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe=function(re,se){for(var ce in se)he.call(se,ce)&&(re[ce]=se[ce]);function fe(){this.constructor=re}return fe.prototype=se.prototype,re.prototype=new fe,re.__super__=se.prototype,re},he={}.hasOwnProperty;ne=x("./Utility").isObject,ae=x("./XMLNode"),ie=x("./NodeType"),Te.exports=te=function(re){oe(se,re);function se(ce,fe,pe,le){var Se;se.__super__.constructor.call(this,ce),ne(fe)&&(Se=fe,fe=Se.version,pe=Se.encoding,le=Se.standalone),fe||(fe="1.0"),this.type=ie.Declaration,this.version=this.stringify.xmlVersion(fe),pe!=null&&(this.encoding=this.stringify.xmlEncoding(pe)),le!=null&&(this.standalone=this.stringify.xmlStandalone(le))}return se.prototype.toString=function(ce){return this.options.writer.declaration(this,this.options.writer.filterOptions(ce))},se}(ae)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe,he,re,se,ce,fe=function(le,Se){for(var xe in Se)pe.call(Se,xe)&&(le[xe]=Se[xe]);function ge(){this.constructor=le}return ge.prototype=Se.prototype,le.prototype=new ge,le.__super__=Se.prototype,le},pe={}.hasOwnProperty;ce=x("./Utility").isObject,se=x("./XMLNode"),ie=x("./NodeType"),te=x("./XMLDTDAttList"),ne=x("./XMLDTDEntity"),ae=x("./XMLDTDElement"),oe=x("./XMLDTDNotation"),re=x("./XMLNamedNodeMap"),Te.exports=he=function(le){fe(Se,le);function Se(xe,ge,Me){var ye,be,Fe,ke,De,Le;if(Se.__super__.constructor.call(this,xe),this.type=ie.DocType,xe.children){for(ke=xe.children,be=0,Fe=ke.length;be<Fe;be++)if(ye=ke[be],ye.type===ie.Element){this.name=ye.name;break}}this.documentObject=xe,ce(ge)&&(De=ge,ge=De.pubID,Me=De.sysID),Me==null&&(Le=[ge,Me],Me=Le[0],ge=Le[1]),ge!=null&&(this.pubID=this.stringify.dtdPubID(ge)),Me!=null&&(this.sysID=this.stringify.dtdSysID(Me))}return Object.defineProperty(Se.prototype,"entities",{get:function(){var xe,ge,Me,ye,be;for(ye={},be=this.children,ge=0,Me=be.length;ge<Me;ge++)xe=be[ge],xe.type===ie.EntityDeclaration&&!xe.pe&&(ye[xe.name]=xe);return new re(ye)}}),Object.defineProperty(Se.prototype,"notations",{get:function(){var xe,ge,Me,ye,be;for(ye={},be=this.children,ge=0,Me=be.length;ge<Me;ge++)xe=be[ge],xe.type===ie.NotationDeclaration&&(ye[xe.name]=xe);return new re(ye)}}),Object.defineProperty(Se.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(Se.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(Se.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Se.prototype.element=function(xe,ge){var Me;return Me=new ae(this,xe,ge),this.children.push(Me),this},Se.prototype.attList=function(xe,ge,Me,ye,be){var Fe;return Fe=new te(this,xe,ge,Me,ye,be),this.children.push(Fe),this},Se.prototype.entity=function(xe,ge){var Me;return Me=new ne(this,!1,xe,ge),this.children.push(Me),this},Se.prototype.pEntity=function(xe,ge){var Me;return Me=new ne(this,!0,xe,ge),this.children.push(Me),this},Se.prototype.notation=function(xe,ge){var Me;return Me=new oe(this,xe,ge),this.children.push(Me),this},Se.prototype.toString=function(xe){return this.options.writer.docType(this,this.options.writer.filterOptions(xe))},Se.prototype.ele=function(xe,ge){return this.element(xe,ge)},Se.prototype.att=function(xe,ge,Me,ye,be){return this.attList(xe,ge,Me,ye,be)},Se.prototype.ent=function(xe,ge){return this.entity(xe,ge)},Se.prototype.pent=function(xe,ge){return this.pEntity(xe,ge)},Se.prototype.not=function(xe,ge){return this.notation(xe,ge)},Se.prototype.up=function(){return this.root()||this.documentObject},Se.prototype.isEqualNode=function(xe){return!(!Se.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.name!==this.name||xe.publicId!==this.publicId||xe.systemId!==this.systemId)},Se}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe,he,re,se,ce=function(pe,le){for(var Se in le)fe.call(le,Se)&&(pe[Se]=le[Se]);function xe(){this.constructor=pe}return xe.prototype=le.prototype,pe.prototype=new xe,pe.__super__=le.prototype,pe},fe={}.hasOwnProperty;se=x("./Utility").isPlainObject,ae=x("./XMLDOMImplementation"),te=x("./XMLDOMConfiguration"),oe=x("./XMLNode"),ie=x("./NodeType"),re=x("./XMLStringifier"),he=x("./XMLStringWriter"),Te.exports=ne=function(pe){ce(le,pe);function le(Se){le.__super__.constructor.call(this,null),this.name="#document",this.type=ie.Document,this.documentURI=null,this.domConfig=new te,Se||(Se={}),Se.writer||(Se.writer=new he),this.options=Se,this.stringify=new re(Se)}return Object.defineProperty(le.prototype,"implementation",{value:new ae}),Object.defineProperty(le.prototype,"doctype",{get:function(){var Se,xe,ge,Me;for(Me=this.children,xe=0,ge=Me.length;xe<ge;xe++)if(Se=Me[xe],Se.type===ie.DocType)return Se;return null}}),Object.defineProperty(le.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(le.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(le.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(le.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ie.Declaration?this.children[0].encoding:null}}),Object.defineProperty(le.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ie.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(le.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ie.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(le.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(le.prototype,"origin",{get:function(){return null}}),Object.defineProperty(le.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(le.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(le.prototype,"contentType",{get:function(){return null}}),le.prototype.end=function(Se){var xe;return xe={},Se?se(Se)&&(xe=Se,Se=this.options.writer):Se=this.options.writer,Se.document(this,Se.filterOptions(xe))},le.prototype.toString=function(Se){return this.options.writer.document(this,this.options.writer.filterOptions(Se))},le.prototype.createElement=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createTextNode=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createComment=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createCDATASection=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createProcessingInstruction=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createAttribute=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createEntityReference=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.getElementsByTagName=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.importNode=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createElementNS=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createAttributeNS=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.getElementsByTagNameNS=function(Se,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.getElementById=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.adoptNode=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.renameNode=function(Se,xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.getElementsByClassName=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createEvent=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createNodeIterator=function(Se,xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.createTreeWalker=function(Se,xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},le}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe,he,re,se,ce,fe,pe,le,Se,xe,ge,Me,ye,be,Fe,ke,De,Le,Ie,Be,Ue={}.hasOwnProperty;Be=x("./Utility"),Le=Be.isObject,De=Be.isFunction,Ie=Be.isPlainObject,ke=Be.getValue,ie=x("./NodeType"),le=x("./XMLDocument"),xe=x("./XMLElement"),ne=x("./XMLCData"),oe=x("./XMLComment"),Me=x("./XMLRaw"),Fe=x("./XMLText"),ge=x("./XMLProcessingInstruction"),fe=x("./XMLDeclaration"),pe=x("./XMLDocType"),he=x("./XMLDTDAttList"),se=x("./XMLDTDEntity"),re=x("./XMLDTDElement"),ce=x("./XMLDTDNotation"),ae=x("./XMLAttribute"),be=x("./XMLStringifier"),ye=x("./XMLStringWriter"),te=x("./WriterState"),Te.exports=Se=function(){function _e(We,Ze,et){var it;this.name="?xml",this.type=ie.Document,We||(We={}),it={},We.writer?Ie(We.writer)&&(it=We.writer,We.writer=new ye):We.writer=new ye,this.options=We,this.writer=We.writer,this.writerOptions=this.writer.filterOptions(it),this.stringify=new be(We),this.onDataCallback=Ze||function(){},this.onEndCallback=et||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return _e.prototype.createChildNode=function(We){var Ze,et,it,pt,Ge,Xe,lt,dt;switch(We.type){case ie.CData:this.cdata(We.value);break;case ie.Comment:this.comment(We.value);break;case ie.Element:it={},lt=We.attribs;for(et in lt)Ue.call(lt,et)&&(Ze=lt[et],it[et]=Ze.value);this.node(We.name,it);break;case ie.Dummy:this.dummy();break;case ie.Raw:this.raw(We.value);break;case ie.Text:this.text(We.value);break;case ie.ProcessingInstruction:this.instruction(We.target,We.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+We.constructor.name)}for(dt=We.children,Ge=0,Xe=dt.length;Ge<Xe;Ge++)pt=dt[Ge],this.createChildNode(pt),pt.type===ie.Element&&this.up();return this},_e.prototype.dummy=function(){return this},_e.prototype.node=function(We,Ze,et){var it;if(We==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(We));return this.openCurrent(),We=ke(We),Ze==null&&(Ze={}),Ze=ke(Ze),Le(Ze)||(it=[Ze,et],et=it[0],Ze=it[1]),this.currentNode=new xe(this,We,Ze),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,et!=null&&this.text(et),this},_e.prototype.element=function(We,Ze,et){var it,pt,Ge,Xe,lt,dt;if(this.currentNode&&this.currentNode.type===ie.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(We)||Le(We)||De(We))for(Xe=this.options.noValidation,this.options.noValidation=!0,dt=new le(this.options).element("TEMP_ROOT"),dt.element(We),this.options.noValidation=Xe,lt=dt.children,pt=0,Ge=lt.length;pt<Ge;pt++)it=lt[pt],this.createChildNode(it),it.type===ie.Element&&this.up();else this.node(We,Ze,et);return this},_e.prototype.attribute=function(We,Ze){var et,it;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(We));if(We!=null&&(We=ke(We)),Le(We))for(et in We)Ue.call(We,et)&&(it=We[et],this.attribute(et,it));else De(Ze)&&(Ze=Ze.apply()),this.options.keepNullAttributes&&Ze==null?this.currentNode.attribs[We]=new ae(this,We,""):Ze!=null&&(this.currentNode.attribs[We]=new ae(this,We,Ze));return this},_e.prototype.text=function(We){var Ze;return this.openCurrent(),Ze=new Fe(this,We),this.onData(this.writer.text(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.cdata=function(We){var Ze;return this.openCurrent(),Ze=new ne(this,We),this.onData(this.writer.cdata(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.comment=function(We){var Ze;return this.openCurrent(),Ze=new oe(this,We),this.onData(this.writer.comment(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.raw=function(We){var Ze;return this.openCurrent(),Ze=new Me(this,We),this.onData(this.writer.raw(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.instruction=function(We,Ze){var et,it,pt,Ge,Xe;if(this.openCurrent(),We!=null&&(We=ke(We)),Ze!=null&&(Ze=ke(Ze)),Array.isArray(We))for(et=0,Ge=We.length;et<Ge;et++)it=We[et],this.instruction(it);else if(Le(We))for(it in We)Ue.call(We,it)&&(pt=We[it],this.instruction(it,pt));else De(Ze)&&(Ze=Ze.apply()),Xe=new ge(this,We,Ze),this.onData(this.writer.processingInstruction(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},_e.prototype.declaration=function(We,Ze,et){var it;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return it=new fe(this,We,Ze,et),this.onData(this.writer.declaration(it,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.doctype=function(We,Ze,et){if(this.openCurrent(),We==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 pe(this,Ze,et),this.currentNode.rootNodeName=We,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},_e.prototype.dtdElement=function(We,Ze){var et;return this.openCurrent(),et=new re(this,We,Ze),this.onData(this.writer.dtdElement(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.attList=function(We,Ze,et,it,pt){var Ge;return this.openCurrent(),Ge=new he(this,We,Ze,et,it,pt),this.onData(this.writer.dtdAttList(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.entity=function(We,Ze){var et;return this.openCurrent(),et=new se(this,!1,We,Ze),this.onData(this.writer.dtdEntity(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.pEntity=function(We,Ze){var et;return this.openCurrent(),et=new se(this,!0,We,Ze),this.onData(this.writer.dtdEntity(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.notation=function(We,Ze){var et;return this.openCurrent(),et=new ce(this,We,Ze),this.onData(this.writer.dtdNotation(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.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},_e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},_e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},_e.prototype.openNode=function(We){var Ze,et,it,pt;if(!We.isOpen){if(!this.root&&this.currentLevel===0&&We.type===ie.Element&&(this.root=We),et="",We.type===ie.Element){this.writerOptions.state=te.OpenTag,et=this.writer.indent(We,this.writerOptions,this.currentLevel)+"<"+We.name,pt=We.attribs;for(it in pt)Ue.call(pt,it)&&(Ze=pt[it],et+=this.writer.attribute(Ze,this.writerOptions,this.currentLevel));et+=(We.children?">":"/>")+this.writer.endline(We,this.writerOptions,this.currentLevel),this.writerOptions.state=te.InsideTag}else this.writerOptions.state=te.OpenTag,et=this.writer.indent(We,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+We.rootNodeName,We.pubID&&We.sysID?et+=' PUBLIC "'+We.pubID+'" "'+We.sysID+'"':We.sysID&&(et+=' SYSTEM "'+We.sysID+'"'),We.children?(et+=" [",this.writerOptions.state=te.InsideTag):(this.writerOptions.state=te.CloseTag,et+=">"),et+=this.writer.endline(We,this.writerOptions,this.currentLevel);return this.onData(et,this.currentLevel),We.isOpen=!0}},_e.prototype.closeNode=function(We){var Ze;if(!We.isClosed)return Ze="",this.writerOptions.state=te.CloseTag,We.type===ie.Element?Ze=this.writer.indent(We,this.writerOptions,this.currentLevel)+"</"+We.name+">"+this.writer.endline(We,this.writerOptions,this.currentLevel):Ze=this.writer.indent(We,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(We,this.writerOptions,this.currentLevel),this.writerOptions.state=te.None,this.onData(Ze,this.currentLevel),We.isClosed=!0},_e.prototype.onData=function(We,Ze){return this.documentStarted=!0,this.onDataCallback(We,Ze+1)},_e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},_e.prototype.debugInfo=function(We){return We==null?"":"node: <"+We+">"},_e.prototype.ele=function(){return this.element.apply(this,arguments)},_e.prototype.nod=function(We,Ze,et){return this.node(We,Ze,et)},_e.prototype.txt=function(We){return this.text(We)},_e.prototype.dat=function(We){return this.cdata(We)},_e.prototype.com=function(We){return this.comment(We)},_e.prototype.ins=function(We,Ze){return this.instruction(We,Ze)},_e.prototype.dec=function(We,Ze,et){return this.declaration(We,Ze,et)},_e.prototype.dtd=function(We,Ze,et){return this.doctype(We,Ze,et)},_e.prototype.e=function(We,Ze,et){return this.element(We,Ze,et)},_e.prototype.n=function(We,Ze,et){return this.node(We,Ze,et)},_e.prototype.t=function(We){return this.text(We)},_e.prototype.d=function(We){return this.cdata(We)},_e.prototype.c=function(We){return this.comment(We)},_e.prototype.r=function(We){return this.raw(We)},_e.prototype.i=function(We,Ze){return this.instruction(We,Ze)},_e.prototype.att=function(){return this.currentNode&&this.currentNode.type===ie.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_e.prototype.a=function(){return this.currentNode&&this.currentNode.type===ie.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_e.prototype.ent=function(We,Ze){return this.entity(We,Ze)},_e.prototype.pent=function(We,Ze){return this.pEntity(We,Ze)},_e.prototype.not=function(We,Ze){return this.notation(We,Ze)},_e}()}).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(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ae=x("./XMLNode"),ie=x("./NodeType"),Te.exports=te=function(he){ne(re,he);function re(se){re.__super__.constructor.call(this,se),this.type=ie.Dummy}return re.prototype.clone=function(){return Object.create(this)},re.prototype.toString=function(se){return""},re}(ae)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe,he,re,se,ce,fe=function(le,Se){for(var xe in Se)pe.call(Se,xe)&&(le[xe]=Se[xe]);function ge(){this.constructor=le}return ge.prototype=Se.prototype,le.prototype=new ge,le.__super__=Se.prototype,le},pe={}.hasOwnProperty;ce=x("./Utility"),se=ce.isObject,re=ce.isFunction,he=ce.getValue,oe=x("./XMLNode"),ie=x("./NodeType"),te=x("./XMLAttribute"),ne=x("./XMLNamedNodeMap"),Te.exports=ae=function(le){fe(Se,le);function Se(xe,ge,Me){var ye,be,Fe,ke;if(Se.__super__.constructor.call(this,xe),ge==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ge),this.type=ie.Element,this.attribs={},this.schemaTypeInfo=null,Me!=null&&this.attribute(Me),xe.type===ie.Document&&(this.isRoot=!0,this.documentObject=xe,xe.rootObject=this,xe.children)){for(ke=xe.children,be=0,Fe=ke.length;be<Fe;be++)if(ye=ke[be],ye.type===ie.DocType){ye.name=this.name;break}}}return Object.defineProperty(Se.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Se.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Se.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new ne(this.attribs)),this.attributeMap}}),Se.prototype.clone=function(){var xe,ge,Me,ye;Me=Object.create(this),Me.isRoot&&(Me.documentObject=null),Me.attribs={},ye=this.attribs;for(ge in ye)pe.call(ye,ge)&&(xe=ye[ge],Me.attribs[ge]=xe.clone());return Me.children=[],this.children.forEach(function(be){var Fe;return Fe=be.clone(),Fe.parent=Me,Me.children.push(Fe)}),Me},Se.prototype.attribute=function(xe,ge){var Me,ye;if(xe!=null&&(xe=he(xe)),se(xe))for(Me in xe)pe.call(xe,Me)&&(ye=xe[Me],this.attribute(Me,ye));else re(ge)&&(ge=ge.apply()),this.options.keepNullAttributes&&ge==null?this.attribs[xe]=new te(this,xe,""):ge!=null&&(this.attribs[xe]=new te(this,xe,ge));return this},Se.prototype.removeAttribute=function(xe){var ge,Me,ye;if(xe==null)throw new Error("Missing attribute name. "+this.debugInfo());if(xe=he(xe),Array.isArray(xe))for(Me=0,ye=xe.length;Me<ye;Me++)ge=xe[Me],delete this.attribs[ge];else delete this.attribs[xe];return this},Se.prototype.toString=function(xe){return this.options.writer.element(this,this.options.writer.filterOptions(xe))},Se.prototype.att=function(xe,ge){return this.attribute(xe,ge)},Se.prototype.a=function(xe,ge){return this.attribute(xe,ge)},Se.prototype.getAttribute=function(xe){return this.attribs.hasOwnProperty(xe)?this.attribs[xe].value:null},Se.prototype.setAttribute=function(xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNode=function(xe){return this.attribs.hasOwnProperty(xe)?this.attribs[xe]:null},Se.prototype.setAttributeNode=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeAttributeNode=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagName=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNS=function(xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setAttributeNS=function(xe,ge,Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeAttributeNS=function(xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNodeNS=function(xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setAttributeNodeNS=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagNameNS=function(xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.hasAttribute=function(xe){return this.attribs.hasOwnProperty(xe)},Se.prototype.hasAttributeNS=function(xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setIdAttribute=function(xe,ge){return this.attribs.hasOwnProperty(xe)?this.attribs[xe].isId:ge},Se.prototype.setIdAttributeNS=function(xe,ge,Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setIdAttributeNode=function(xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagName=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagNameNS=function(xe,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByClassName=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isEqualNode=function(xe){var ge,Me,ye;if(!Se.__super__.isEqualNode.apply(this,arguments).isEqualNode(xe)||xe.namespaceURI!==this.namespaceURI||xe.prefix!==this.prefix||xe.localName!==this.localName||xe.attribs.length!==this.attribs.length)return!1;for(ge=Me=0,ye=this.attribs.length-1;0<=ye?Me<=ye:Me>=ye;ge=0<=ye?++Me:--Me)if(!this.attribs[ge].isEqualNode(xe.attribs[ge]))return!1;return!0},Se}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(x,Te,ve){(function(){var ie;Te.exports=ie=function(){function te(ae){this.nodes=ae}return Object.defineProperty(te.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),te.prototype.clone=function(){return this.nodes=null},te.prototype.getNamedItem=function(ae){return this.nodes[ae]},te.prototype.setNamedItem=function(ae){var ne;return ne=this.nodes[ae.nodeName],this.nodes[ae.nodeName]=ae,ne||null},te.prototype.removeNamedItem=function(ae){var ne;return ne=this.nodes[ae],delete this.nodes[ae],ne||null},te.prototype.item=function(ae){return this.nodes[Object.keys(this.nodes)[ae]]||null},te.prototype.getNamedItemNS=function(ae,ne){throw new Error("This DOM method is not implemented.")},te.prototype.setNamedItemNS=function(ae){throw new Error("This DOM method is not implemented.")},te.prototype.removeNamedItemNS=function(ae,ne){throw new Error("This DOM method is not implemented.")},te}()}).call(this)},{}],450:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe,he,re,se,ce,fe,pe,le,Se,xe,ge,Me,ye,be,Fe,ke={}.hasOwnProperty;Fe=x("./Utility"),be=Fe.isObject,ye=Fe.isFunction,Me=Fe.isEmpty,ge=Fe.getValue,se=null,ae=null,ne=null,oe=null,he=null,Se=null,xe=null,le=null,re=null,te=null,pe=null,ce=null,ie=null,Te.exports=fe=function(){function De(Le){this.parent=Le,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,se||(se=x("./XMLElement"),ae=x("./XMLCData"),ne=x("./XMLComment"),oe=x("./XMLDeclaration"),he=x("./XMLDocType"),Se=x("./XMLRaw"),xe=x("./XMLText"),le=x("./XMLProcessingInstruction"),re=x("./XMLDummy"),te=x("./NodeType"),pe=x("./XMLNodeList"),ce=x("./XMLNamedNodeMap"),ie=x("./DocumentPosition"))}return Object.defineProperty(De.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(De.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(De.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(De.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(De.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new pe(this.children)),this.childNodeList}}),Object.defineProperty(De.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(De.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(De.prototype,"previousSibling",{get:function(){var Le;return Le=this.parent.children.indexOf(this),this.parent.children[Le-1]||null}}),Object.defineProperty(De.prototype,"nextSibling",{get:function(){var Le;return Le=this.parent.children.indexOf(this),this.parent.children[Le+1]||null}}),Object.defineProperty(De.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(De.prototype,"textContent",{get:function(){var Le,Ie,Be,Ue,_e;if(this.nodeType===te.Element||this.nodeType===te.DocumentFragment){for(_e="",Ue=this.children,Ie=0,Be=Ue.length;Ie<Be;Ie++)Le=Ue[Ie],Le.textContent&&(_e+=Le.textContent);return _e}else return null},set:function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),De.prototype.setParent=function(Le){var Ie,Be,Ue,_e,We;for(this.parent=Le,Le&&(this.options=Le.options,this.stringify=Le.stringify),_e=this.children,We=[],Be=0,Ue=_e.length;Be<Ue;Be++)Ie=_e[Be],We.push(Ie.setParent(this));return We},De.prototype.element=function(Le,Ie,Be){var Ue,_e,We,Ze,et,it,pt,Ge,Xe,lt,dt;if(it=null,Ie===null&&Be==null&&(Xe=[{},null],Ie=Xe[0],Be=Xe[1]),Ie==null&&(Ie={}),Ie=ge(Ie),be(Ie)||(lt=[Ie,Be],Be=lt[0],Ie=lt[1]),Le!=null&&(Le=ge(Le)),Array.isArray(Le))for(We=0,pt=Le.length;We<pt;We++)_e=Le[We],it=this.element(_e);else if(ye(Le))it=this.element(Le.apply());else if(be(Le)){for(et in Le)if(ke.call(Le,et))if(dt=Le[et],ye(dt)&&(dt=dt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&et.indexOf(this.stringify.convertAttKey)===0)it=this.attribute(et.substr(this.stringify.convertAttKey.length),dt);else if(!this.options.separateArrayItems&&Array.isArray(dt)&&Me(dt))it=this.dummy();else if(be(dt)&&Me(dt))it=this.element(et);else if(!this.options.keepNullNodes&&dt==null)it=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(dt))for(Ze=0,Ge=dt.length;Ze<Ge;Ze++)_e=dt[Ze],Ue={},Ue[et]=_e,it=this.element(Ue);else be(dt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&et.indexOf(this.stringify.convertTextKey)===0?it=this.element(dt):(it=this.element(et),it.element(dt)):it=this.element(et,dt)}else!this.options.keepNullNodes&&Be===null?it=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Le.indexOf(this.stringify.convertTextKey)===0?it=this.text(Be):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Le.indexOf(this.stringify.convertCDataKey)===0?it=this.cdata(Be):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Le.indexOf(this.stringify.convertCommentKey)===0?it=this.comment(Be):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Le.indexOf(this.stringify.convertRawKey)===0?it=this.raw(Be):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Le.indexOf(this.stringify.convertPIKey)===0?it=this.instruction(Le.substr(this.stringify.convertPIKey.length),Be):it=this.node(Le,Ie,Be);if(it==null)throw new Error("Could not create any elements with: "+Le+". "+this.debugInfo());return it},De.prototype.insertBefore=function(Le,Ie,Be){var Ue,_e,We,Ze,et;if(Le!=null&&Le.type)return We=Le,Ze=Ie,We.setParent(this),Ze?(_e=children.indexOf(Ze),et=children.splice(_e),children.push(We),Array.prototype.push.apply(children,et)):children.push(We),We;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Le));return _e=this.parent.children.indexOf(this),et=this.parent.children.splice(_e),Ue=this.parent.element(Le,Ie,Be),Array.prototype.push.apply(this.parent.children,et),Ue},De.prototype.insertAfter=function(Le,Ie,Be){var Ue,_e,We;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Le));return _e=this.parent.children.indexOf(this),We=this.parent.children.splice(_e+1),Ue=this.parent.element(Le,Ie,Be),Array.prototype.push.apply(this.parent.children,We),Ue},De.prototype.remove=function(){var Le,Ie;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Le=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Le,Le-Le+1].concat(Ie=[])),this.parent},De.prototype.node=function(Le,Ie,Be){var Ue,_e;return Le!=null&&(Le=ge(Le)),Ie||(Ie={}),Ie=ge(Ie),be(Ie)||(_e=[Ie,Be],Be=_e[0],Ie=_e[1]),Ue=new se(this,Le,Ie),Be!=null&&Ue.text(Be),this.children.push(Ue),Ue},De.prototype.text=function(Le){var Ie;return be(Le)&&this.element(Le),Ie=new xe(this,Le),this.children.push(Ie),this},De.prototype.cdata=function(Le){var Ie;return Ie=new ae(this,Le),this.children.push(Ie),this},De.prototype.comment=function(Le){var Ie;return Ie=new ne(this,Le),this.children.push(Ie),this},De.prototype.commentBefore=function(Le){var Ie,Be,Ue;return Be=this.parent.children.indexOf(this),Ue=this.parent.children.splice(Be),Ie=this.parent.comment(Le),Array.prototype.push.apply(this.parent.children,Ue),this},De.prototype.commentAfter=function(Le){var Ie,Be,Ue;return Be=this.parent.children.indexOf(this),Ue=this.parent.children.splice(Be+1),Ie=this.parent.comment(Le),Array.prototype.push.apply(this.parent.children,Ue),this},De.prototype.raw=function(Le){var Ie;return Ie=new Se(this,Le),this.children.push(Ie),this},De.prototype.dummy=function(){var Le;return Le=new re(this),Le},De.prototype.instruction=function(Le,Ie){var Be,Ue,_e,We,Ze;if(Le!=null&&(Le=ge(Le)),Ie!=null&&(Ie=ge(Ie)),Array.isArray(Le))for(We=0,Ze=Le.length;We<Ze;We++)Be=Le[We],this.instruction(Be);else if(be(Le))for(Be in Le)ke.call(Le,Be)&&(Ue=Le[Be],this.instruction(Be,Ue));else ye(Ie)&&(Ie=Ie.apply()),_e=new le(this,Le,Ie),this.children.push(_e);return this},De.prototype.instructionBefore=function(Le,Ie){var Be,Ue,_e;return Ue=this.parent.children.indexOf(this),_e=this.parent.children.splice(Ue),Be=this.parent.instruction(Le,Ie),Array.prototype.push.apply(this.parent.children,_e),this},De.prototype.instructionAfter=function(Le,Ie){var Be,Ue,_e;return Ue=this.parent.children.indexOf(this),_e=this.parent.children.splice(Ue+1),Be=this.parent.instruction(Le,Ie),Array.prototype.push.apply(this.parent.children,_e),this},De.prototype.declaration=function(Le,Ie,Be){var Ue,_e;return Ue=this.document(),_e=new oe(Ue,Le,Ie,Be),Ue.children.length===0?Ue.children.unshift(_e):Ue.children[0].type===te.Declaration?Ue.children[0]=_e:Ue.children.unshift(_e),Ue.root()||Ue},De.prototype.dtd=function(Le,Ie){var Be,Ue,_e,We,Ze,et,it,pt,Ge,Xe;for(Ue=this.document(),_e=new he(Ue,Le,Ie),Ge=Ue.children,We=Ze=0,it=Ge.length;Ze<it;We=++Ze)if(Be=Ge[We],Be.type===te.DocType)return Ue.children[We]=_e,_e;for(Xe=Ue.children,We=et=0,pt=Xe.length;et<pt;We=++et)if(Be=Xe[We],Be.isRoot)return Ue.children.splice(We,0,_e),_e;return Ue.children.push(_e),_e},De.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},De.prototype.root=function(){var Le;for(Le=this;Le;){if(Le.type===te.Document)return Le.rootObject;if(Le.isRoot)return Le;Le=Le.parent}},De.prototype.document=function(){var Le;for(Le=this;Le;){if(Le.type===te.Document)return Le;Le=Le.parent}},De.prototype.end=function(Le){return this.document().end(Le)},De.prototype.prev=function(){var Le;if(Le=this.parent.children.indexOf(this),Le<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Le-1]},De.prototype.next=function(){var Le;if(Le=this.parent.children.indexOf(this),Le===-1||Le===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Le+1]},De.prototype.importDocument=function(Le){var Ie;return Ie=Le.root().clone(),Ie.parent=this,Ie.isRoot=!1,this.children.push(Ie),this},De.prototype.debugInfo=function(Le){var Ie,Be;return Le=Le||this.name,Le==null&&!((Ie=this.parent)!=null&&Ie.name)?"":Le==null?"parent: <"+this.parent.name+">":(Be=this.parent)!=null&&Be.name?"node: <"+Le+">, parent: <"+this.parent.name+">":"node: <"+Le+">"},De.prototype.ele=function(Le,Ie,Be){return this.element(Le,Ie,Be)},De.prototype.nod=function(Le,Ie,Be){return this.node(Le,Ie,Be)},De.prototype.txt=function(Le){return this.text(Le)},De.prototype.dat=function(Le){return this.cdata(Le)},De.prototype.com=function(Le){return this.comment(Le)},De.prototype.ins=function(Le,Ie){return this.instruction(Le,Ie)},De.prototype.doc=function(){return this.document()},De.prototype.dec=function(Le,Ie,Be){return this.declaration(Le,Ie,Be)},De.prototype.e=function(Le,Ie,Be){return this.element(Le,Ie,Be)},De.prototype.n=function(Le,Ie,Be){return this.node(Le,Ie,Be)},De.prototype.t=function(Le){return this.text(Le)},De.prototype.d=function(Le){return this.cdata(Le)},De.prototype.c=function(Le){return this.comment(Le)},De.prototype.r=function(Le){return this.raw(Le)},De.prototype.i=function(Le,Ie){return this.instruction(Le,Ie)},De.prototype.u=function(){return this.up()},De.prototype.importXMLBuilder=function(Le){return this.importDocument(Le)},De.prototype.replaceChild=function(Le,Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.removeChild=function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.appendChild=function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.hasChildNodes=function(){return this.children.length!==0},De.prototype.cloneNode=function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isSupported=function(Le,Ie){return!0},De.prototype.hasAttributes=function(){return this.attribs.length!==0},De.prototype.compareDocumentPosition=function(Le){var Ie,Be;return Ie=this,Ie===Le?0:this.document()!==Le.document()?(Be=ie.Disconnected|ie.ImplementationSpecific,Math.random()<.5?Be|=ie.Preceding:Be|=ie.Following,Be):Ie.isAncestor(Le)?ie.Contains|ie.Preceding:Ie.isDescendant(Le)?ie.Contains|ie.Following:Ie.isPreceding(Le)?ie.Preceding:ie.Following},De.prototype.isSameNode=function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.lookupPrefix=function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isDefaultNamespace=function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.lookupNamespaceURI=function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isEqualNode=function(Le){var Ie,Be,Ue;if(Le.nodeType!==this.nodeType||Le.children.length!==this.children.length)return!1;for(Ie=Be=0,Ue=this.children.length-1;0<=Ue?Be<=Ue:Be>=Ue;Ie=0<=Ue?++Be:--Be)if(!this.children[Ie].isEqualNode(Le.children[Ie]))return!1;return!0},De.prototype.getFeature=function(Le,Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.setUserData=function(Le,Ie,Be){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.getUserData=function(Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.contains=function(Le){return Le?Le===this||this.isDescendant(Le):!1},De.prototype.isDescendant=function(Le){var Ie,Be,Ue,_e,We;for(We=this.children,Ue=0,_e=We.length;Ue<_e;Ue++)if(Ie=We[Ue],Le===Ie||(Be=Ie.isDescendant(Le),Be))return!0;return!1},De.prototype.isAncestor=function(Le){return Le.isDescendant(this)},De.prototype.isPreceding=function(Le){var Ie,Be;return Ie=this.treePosition(Le),Be=this.treePosition(this),Ie===-1||Be===-1?!1:Ie<Be},De.prototype.isFollowing=function(Le){var Ie,Be;return Ie=this.treePosition(Le),Be=this.treePosition(this),Ie===-1||Be===-1?!1:Ie>Be},De.prototype.treePosition=function(Le){var Ie,Be;return Be=0,Ie=!1,this.foreachTreeNode(this.document(),function(Ue){if(Be++,!Ie&&Ue===Le)return Ie=!0}),Ie?Be:-1},De.prototype.foreachTreeNode=function(Le,Ie){var Be,Ue,_e,We,Ze;for(Le||(Le=this.document()),We=Le.children,Ue=0,_e=We.length;Ue<_e;Ue++){if(Be=We[Ue],Ze=Ie(Be))return Ze;if(Ze=this.foreachTreeNode(Be,Ie),Ze)return Ze}},De}()}).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(x,Te,ve){(function(){var ie;Te.exports=ie=function(){function te(ae){this.nodes=ae}return Object.defineProperty(te.prototype,"length",{get:function(){return this.nodes.length||0}}),te.prototype.clone=function(){return this.nodes=null},te.prototype.item=function(ae){return this.nodes[ae]||null},te}()}).call(this)},{}],452:[function(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ie=x("./NodeType"),te=x("./XMLCharacterData"),Te.exports=ae=function(he){ne(re,he);function re(se,ce,fe){if(re.__super__.constructor.call(this,se),ce==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ie.ProcessingInstruction,this.target=this.stringify.insTarget(ce),this.name=this.target,fe&&(this.value=this.stringify.insValue(fe))}return re.prototype.clone=function(){return Object.create(this)},re.prototype.toString=function(se){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(se))},re.prototype.isEqualNode=function(se){return!(!re.__super__.isEqualNode.apply(this,arguments).isEqualNode(se)||se.target!==this.target)},re}(te)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ie=x("./NodeType"),te=x("./XMLNode"),Te.exports=ae=function(he){ne(re,he);function re(se,ce){if(re.__super__.constructor.call(this,se),ce==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ie.Raw,this.value=this.stringify.raw(ce)}return re.prototype.clone=function(){return Object.create(this)},re.prototype.toString=function(se){return this.options.writer.raw(this,this.options.writer.filterOptions(se))},re}(te)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe=function(re,se){for(var ce in se)he.call(se,ce)&&(re[ce]=se[ce]);function fe(){this.constructor=re}return fe.prototype=se.prototype,re.prototype=new fe,re.__super__=se.prototype,re},he={}.hasOwnProperty;ie=x("./NodeType"),ne=x("./XMLWriterBase"),te=x("./WriterState"),Te.exports=ae=function(re){oe(se,re);function se(ce,fe){this.stream=ce,se.__super__.constructor.call(this,fe)}return se.prototype.endline=function(ce,fe,pe){return ce.isLastRootNode&&fe.state===te.CloseTag?"":se.__super__.endline.call(this,ce,fe,pe)},se.prototype.document=function(ce,fe){var pe,le,Se,xe,ge,Me,ye,be,Fe;for(ye=ce.children,le=Se=0,ge=ye.length;Se<ge;le=++Se)pe=ye[le],pe.isLastRootNode=le===ce.children.length-1;for(fe=this.filterOptions(fe),be=ce.children,Fe=[],xe=0,Me=be.length;xe<Me;xe++)pe=be[xe],Fe.push(this.writeChildNode(pe,fe,0));return Fe},se.prototype.attribute=function(ce,fe,pe){return this.stream.write(se.__super__.attribute.call(this,ce,fe,pe))},se.prototype.cdata=function(ce,fe,pe){return this.stream.write(se.__super__.cdata.call(this,ce,fe,pe))},se.prototype.comment=function(ce,fe,pe){return this.stream.write(se.__super__.comment.call(this,ce,fe,pe))},se.prototype.declaration=function(ce,fe,pe){return this.stream.write(se.__super__.declaration.call(this,ce,fe,pe))},se.prototype.docType=function(ce,fe,pe){var le,Se,xe,ge;if(pe||(pe=0),this.openNode(ce,fe,pe),fe.state=te.OpenTag,this.stream.write(this.indent(ce,fe,pe)),this.stream.write("<!DOCTYPE "+ce.root().name),ce.pubID&&ce.sysID?this.stream.write(' PUBLIC "'+ce.pubID+'" "'+ce.sysID+'"'):ce.sysID&&this.stream.write(' SYSTEM "'+ce.sysID+'"'),ce.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(ce,fe,pe)),fe.state=te.InsideTag,ge=ce.children,Se=0,xe=ge.length;Se<xe;Se++)le=ge[Se],this.writeChildNode(le,fe,pe+1);fe.state=te.CloseTag,this.stream.write("]")}return fe.state=te.CloseTag,this.stream.write(fe.spaceBeforeSlash+">"),this.stream.write(this.endline(ce,fe,pe)),fe.state=te.None,this.closeNode(ce,fe,pe)},se.prototype.element=function(ce,fe,pe){var le,Se,xe,ge,Me,ye,be,Fe,ke,De;pe||(pe=0),this.openNode(ce,fe,pe),fe.state=te.OpenTag,this.stream.write(this.indent(ce,fe,pe)+"<"+ce.name),ke=ce.attribs;for(be in ke)he.call(ke,be)&&(le=ke[be],this.attribute(le,fe,pe));if(xe=ce.children.length,ge=xe===0?null:ce.children[0],xe===0||ce.children.every(function(Le){return(Le.type===ie.Text||Le.type===ie.Raw)&&Le.value===""}))fe.allowEmpty?(this.stream.write(">"),fe.state=te.CloseTag,this.stream.write("</"+ce.name+">")):(fe.state=te.CloseTag,this.stream.write(fe.spaceBeforeSlash+"/>"));else if(fe.pretty&&xe===1&&(ge.type===ie.Text||ge.type===ie.Raw)&&ge.value!=null)this.stream.write(">"),fe.state=te.InsideTag,fe.suppressPrettyCount++,Fe=!0,this.writeChildNode(ge,fe,pe+1),fe.suppressPrettyCount--,Fe=!1,fe.state=te.CloseTag,this.stream.write("</"+ce.name+">");else{for(this.stream.write(">"+this.endline(ce,fe,pe)),fe.state=te.InsideTag,De=ce.children,Me=0,ye=De.length;Me<ye;Me++)Se=De[Me],this.writeChildNode(Se,fe,pe+1);fe.state=te.CloseTag,this.stream.write(this.indent(ce,fe,pe)+"</"+ce.name+">")}return this.stream.write(this.endline(ce,fe,pe)),fe.state=te.None,this.closeNode(ce,fe,pe)},se.prototype.processingInstruction=function(ce,fe,pe){return this.stream.write(se.__super__.processingInstruction.call(this,ce,fe,pe))},se.prototype.raw=function(ce,fe,pe){return this.stream.write(se.__super__.raw.call(this,ce,fe,pe))},se.prototype.text=function(ce,fe,pe){return this.stream.write(se.__super__.text.call(this,ce,fe,pe))},se.prototype.dtdAttList=function(ce,fe,pe){return this.stream.write(se.__super__.dtdAttList.call(this,ce,fe,pe))},se.prototype.dtdElement=function(ce,fe,pe){return this.stream.write(se.__super__.dtdElement.call(this,ce,fe,pe))},se.prototype.dtdEntity=function(ce,fe,pe){return this.stream.write(se.__super__.dtdEntity.call(this,ce,fe,pe))},se.prototype.dtdNotation=function(ce,fe,pe){return this.stream.write(se.__super__.dtdNotation.call(this,ce,fe,pe))},se}(ne)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(x,Te,ve){(function(){var ie,te,ae=function(oe,he){for(var re in he)ne.call(he,re)&&(oe[re]=he[re]);function se(){this.constructor=oe}return se.prototype=he.prototype,oe.prototype=new se,oe.__super__=he.prototype,oe},ne={}.hasOwnProperty;te=x("./XMLWriterBase"),Te.exports=ie=function(oe){ae(he,oe);function he(re){he.__super__.constructor.call(this,re)}return he.prototype.document=function(re,se){var ce,fe,pe,le,Se;for(se=this.filterOptions(se),le="",Se=re.children,fe=0,pe=Se.length;fe<pe;fe++)ce=Se[fe],le+=this.writeChildNode(ce,se,0);return se.pretty&&le.slice(-se.newline.length)===se.newline&&(le=le.slice(0,-se.newline.length)),le},he}(te)}).call(this)},{"./XMLWriterBase":458}],456:[function(x,Te,ve){(function(){var ie,te=function(ne,oe){return function(){return ne.apply(oe,arguments)}},ae={}.hasOwnProperty;Te.exports=ie=function(){function ne(oe){this.assertLegalName=te(this.assertLegalName,this),this.assertLegalChar=te(this.assertLegalChar,this);var he,re,se;oe||(oe={}),this.options=oe,this.options.version||(this.options.version="1.0"),re=oe.stringify||{};for(he in re)ae.call(re,he)&&(se=re[he],this[he]=se)}return ne.prototype.name=function(oe){return this.options.noValidation?oe:this.assertLegalName(""+oe||"")},ne.prototype.text=function(oe){return this.options.noValidation?oe:this.assertLegalChar(this.textEscape(""+oe||""))},ne.prototype.cdata=function(oe){return this.options.noValidation?oe:(oe=""+oe||"",oe=oe.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(oe))},ne.prototype.comment=function(oe){if(this.options.noValidation)return oe;if(oe=""+oe||"",oe.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+oe);return this.assertLegalChar(oe)},ne.prototype.raw=function(oe){return this.options.noValidation?oe:""+oe||""},ne.prototype.attValue=function(oe){return this.options.noValidation?oe:this.assertLegalChar(this.attEscape(oe=""+oe||""))},ne.prototype.insTarget=function(oe){return this.options.noValidation?oe:this.assertLegalChar(""+oe||"")},ne.prototype.insValue=function(oe){if(this.options.noValidation)return oe;if(oe=""+oe||"",oe.match(/\?>/))throw new Error("Invalid processing instruction value: "+oe);return this.assertLegalChar(oe)},ne.prototype.xmlVersion=function(oe){if(this.options.noValidation)return oe;if(oe=""+oe||"",!oe.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+oe);return oe},ne.prototype.xmlEncoding=function(oe){if(this.options.noValidation)return oe;if(oe=""+oe||"",!oe.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+oe);return this.assertLegalChar(oe)},ne.prototype.xmlStandalone=function(oe){return this.options.noValidation?oe:oe?"yes":"no"},ne.prototype.dtdPubID=function(oe){return this.options.noValidation?oe:this.assertLegalChar(""+oe||"")},ne.prototype.dtdSysID=function(oe){return this.options.noValidation?oe:this.assertLegalChar(""+oe||"")},ne.prototype.dtdElementValue=function(oe){return this.options.noValidation?oe:this.assertLegalChar(""+oe||"")},ne.prototype.dtdAttType=function(oe){return this.options.noValidation?oe:this.assertLegalChar(""+oe||"")},ne.prototype.dtdAttDefault=function(oe){return this.options.noValidation?oe:this.assertLegalChar(""+oe||"")},ne.prototype.dtdEntityValue=function(oe){return this.options.noValidation?oe:this.assertLegalChar(""+oe||"")},ne.prototype.dtdNData=function(oe){return this.options.noValidation?oe:this.assertLegalChar(""+oe||"")},ne.prototype.convertAttKey="@",ne.prototype.convertPIKey="?",ne.prototype.convertTextKey="#text",ne.prototype.convertCDataKey="#cdata",ne.prototype.convertCommentKey="#comment",ne.prototype.convertRawKey="#raw",ne.prototype.assertLegalChar=function(oe){var he,re;if(this.options.noValidation)return oe;if(he="",this.options.version==="1.0"){if(he=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,re=oe.match(he))throw new Error("Invalid character in string: "+oe+" at index "+re.index)}else if(this.options.version==="1.1"&&(he=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,re=oe.match(he)))throw new Error("Invalid character in string: "+oe+" at index "+re.index);return oe},ne.prototype.assertLegalName=function(oe){var he;if(this.options.noValidation)return oe;if(this.assertLegalChar(oe),he=/^([: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])*$/,!oe.match(he))throw new Error("Invalid character in name");return oe},ne.prototype.textEscape=function(oe){var he;return this.options.noValidation?oe:(he=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,oe.replace(he,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},ne.prototype.attEscape=function(oe){var he;return this.options.noValidation?oe:(he=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,oe.replace(he,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},ne}()}).call(this)},{}],457:[function(x,Te,ve){(function(){var ie,te,ae,ne=function(he,re){for(var se in re)oe.call(re,se)&&(he[se]=re[se]);function ce(){this.constructor=he}return ce.prototype=re.prototype,he.prototype=new ce,he.__super__=re.prototype,he},oe={}.hasOwnProperty;ie=x("./NodeType"),te=x("./XMLCharacterData"),Te.exports=ae=function(he){ne(re,he);function re(se,ce){if(re.__super__.constructor.call(this,se),ce==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ie.Text,this.value=this.stringify.text(ce)}return Object.defineProperty(re.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(re.prototype,"wholeText",{get:function(){var se,ce,fe;for(fe="",ce=this.previousSibling;ce;)fe=ce.data+fe,ce=ce.previousSibling;for(fe+=this.data,se=this.nextSibling;se;)fe=fe+se.data,se=se.nextSibling;return fe}}),re.prototype.clone=function(){return Object.create(this)},re.prototype.toString=function(se){return this.options.writer.text(this,this.options.writer.filterOptions(se))},re.prototype.splitText=function(se){throw new Error("This DOM method is not implemented."+this.debugInfo())},re.prototype.replaceWholeText=function(se){throw new Error("This DOM method is not implemented."+this.debugInfo())},re}(te)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(x,Te,ve){(function(){var ie,te,ae,ne,oe,he,re,se,ce,fe,pe,le,Se,xe,ge,Me,ye,be={}.hasOwnProperty;ye=x("./Utility").assign,ie=x("./NodeType"),ce=x("./XMLDeclaration"),fe=x("./XMLDocType"),ae=x("./XMLCData"),ne=x("./XMLComment"),le=x("./XMLElement"),xe=x("./XMLRaw"),ge=x("./XMLText"),Se=x("./XMLProcessingInstruction"),pe=x("./XMLDummy"),oe=x("./XMLDTDAttList"),he=x("./XMLDTDElement"),re=x("./XMLDTDEntity"),se=x("./XMLDTDNotation"),te=x("./WriterState"),Te.exports=Me=function(){function Fe(ke){var De,Le,Ie;ke||(ke={}),this.options=ke,Le=ke.writer||{};for(De in Le)be.call(Le,De)&&(Ie=Le[De],this["_"+De]=this[De],this[De]=Ie)}return Fe.prototype.filterOptions=function(ke){var De,Le,Ie,Be,Ue,_e,We,Ze;return ke||(ke={}),ke=ye({},this.options,ke),De={writer:this},De.pretty=ke.pretty||!1,De.allowEmpty=ke.allowEmpty||!1,De.indent=(Le=ke.indent)!=null?Le:" ",De.newline=(Ie=ke.newline)!=null?Ie:`
|
|
|
`,De.offset=(Be=ke.offset)!=null?Be:0,De.dontPrettyTextNodes=(Ue=(_e=ke.dontPrettyTextNodes)!=null?_e:ke.dontprettytextnodes)!=null?Ue:0,De.spaceBeforeSlash=(We=(Ze=ke.spaceBeforeSlash)!=null?Ze:ke.spacebeforeslash)!=null?We:"",De.spaceBeforeSlash===!0&&(De.spaceBeforeSlash=" "),De.suppressPrettyCount=0,De.user={},De.state=te.None,De},Fe.prototype.indent=function(ke,De,Le){var Ie;return!De.pretty||De.suppressPrettyCount?"":De.pretty&&(Ie=(Le||0)+De.offset+1,Ie>0)?new Array(Ie).join(De.indent):""},Fe.prototype.endline=function(ke,De,Le){return!De.pretty||De.suppressPrettyCount?"":De.newline},Fe.prototype.attribute=function(ke,De,Le){var Ie;return this.openAttribute(ke,De,Le),Ie=" "+ke.name+'="'+ke.value+'"',this.closeAttribute(ke,De,Le),Ie},Fe.prototype.cdata=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le)+"<![CDATA[",De.state=te.InsideTag,Ie+=ke.value,De.state=te.CloseTag,Ie+="]]>"+this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.comment=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le)+"<!-- ",De.state=te.InsideTag,Ie+=ke.value,De.state=te.CloseTag,Ie+=" -->"+this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.declaration=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le)+"<?xml",De.state=te.InsideTag,Ie+=' version="'+ke.version+'"',ke.encoding!=null&&(Ie+=' encoding="'+ke.encoding+'"'),ke.standalone!=null&&(Ie+=' standalone="'+ke.standalone+'"'),De.state=te.CloseTag,Ie+=De.spaceBeforeSlash+"?>",Ie+=this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.docType=function(ke,De,Le){var Ie,Be,Ue,_e,We;if(Le||(Le=0),this.openNode(ke,De,Le),De.state=te.OpenTag,_e=this.indent(ke,De,Le),_e+="<!DOCTYPE "+ke.root().name,ke.pubID&&ke.sysID?_e+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.sysID&&(_e+=' SYSTEM "'+ke.sysID+'"'),ke.children.length>0){for(_e+=" [",_e+=this.endline(ke,De,Le),De.state=te.InsideTag,We=ke.children,Be=0,Ue=We.length;Be<Ue;Be++)Ie=We[Be],_e+=this.writeChildNode(Ie,De,Le+1);De.state=te.CloseTag,_e+="]"}return De.state=te.CloseTag,_e+=De.spaceBeforeSlash+">",_e+=this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),_e},Fe.prototype.element=function(ke,De,Le){var Ie,Be,Ue,_e,We,Ze,et,it,pt,Ge,Xe,lt,dt,st;Le||(Le=0),Ge=!1,Xe="",this.openNode(ke,De,Le),De.state=te.OpenTag,Xe+=this.indent(ke,De,Le)+"<"+ke.name,lt=ke.attribs;for(pt in lt)be.call(lt,pt)&&(Ie=lt[pt],Xe+=this.attribute(Ie,De,Le));if(Ue=ke.children.length,_e=Ue===0?null:ke.children[0],Ue===0||ke.children.every(function(nt){return(nt.type===ie.Text||nt.type===ie.Raw)&&nt.value===""}))De.allowEmpty?(Xe+=">",De.state=te.CloseTag,Xe+="</"+ke.name+">"+this.endline(ke,De,Le)):(De.state=te.CloseTag,Xe+=De.spaceBeforeSlash+"/>"+this.endline(ke,De,Le));else if(De.pretty&&Ue===1&&(_e.type===ie.Text||_e.type===ie.Raw)&&_e.value!=null)Xe+=">",De.state=te.InsideTag,De.suppressPrettyCount++,Ge=!0,Xe+=this.writeChildNode(_e,De,Le+1),De.suppressPrettyCount--,Ge=!1,De.state=te.CloseTag,Xe+="</"+ke.name+">"+this.endline(ke,De,Le);else{if(De.dontPrettyTextNodes){for(dt=ke.children,We=0,et=dt.length;We<et;We++)if(Be=dt[We],(Be.type===ie.Text||Be.type===ie.Raw)&&Be.value!=null){De.suppressPrettyCount++,Ge=!0;break}}for(Xe+=">"+this.endline(ke,De,Le),De.state=te.InsideTag,st=ke.children,Ze=0,it=st.length;Ze<it;Ze++)Be=st[Ze],Xe+=this.writeChildNode(Be,De,Le+1);De.state=te.CloseTag,Xe+=this.indent(ke,De,Le)+"</"+ke.name+">",Ge&&De.suppressPrettyCount--,Xe+=this.endline(ke,De,Le),De.state=te.None}return this.closeNode(ke,De,Le),Xe},Fe.prototype.writeChildNode=function(ke,De,Le){switch(ke.type){case ie.CData:return this.cdata(ke,De,Le);case ie.Comment:return this.comment(ke,De,Le);case ie.Element:return this.element(ke,De,Le);case ie.Raw:return this.raw(ke,De,Le);case ie.Text:return this.text(ke,De,Le);case ie.ProcessingInstruction:return this.processingInstruction(ke,De,Le);case ie.Dummy:return"";case ie.Declaration:return this.declaration(ke,De,Le);case ie.DocType:return this.docType(ke,De,Le);case ie.AttributeDeclaration:return this.dtdAttList(ke,De,Le);case ie.ElementDeclaration:return this.dtdElement(ke,De,Le);case ie.EntityDeclaration:return this.dtdEntity(ke,De,Le);case ie.NotationDeclaration:return this.dtdNotation(ke,De,Le);default:throw new Error("Unknown XML node type: "+ke.constructor.name)}},Fe.prototype.processingInstruction=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le)+"<?",De.state=te.InsideTag,Ie+=ke.target,ke.value&&(Ie+=" "+ke.value),De.state=te.CloseTag,Ie+=De.spaceBeforeSlash+"?>",Ie+=this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.raw=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le),De.state=te.InsideTag,Ie+=ke.value,De.state=te.CloseTag,Ie+=this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.text=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le),De.state=te.InsideTag,Ie+=ke.value,De.state=te.CloseTag,Ie+=this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.dtdAttList=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le)+"<!ATTLIST",De.state=te.InsideTag,Ie+=" "+ke.elementName+" "+ke.attributeName+" "+ke.attributeType,ke.defaultValueType!=="#DEFAULT"&&(Ie+=" "+ke.defaultValueType),ke.defaultValue&&(Ie+=' "'+ke.defaultValue+'"'),De.state=te.CloseTag,Ie+=De.spaceBeforeSlash+">"+this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.dtdElement=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le)+"<!ELEMENT",De.state=te.InsideTag,Ie+=" "+ke.name+" "+ke.value,De.state=te.CloseTag,Ie+=De.spaceBeforeSlash+">"+this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.dtdEntity=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le)+"<!ENTITY",De.state=te.InsideTag,ke.pe&&(Ie+=" %"),Ie+=" "+ke.name,ke.value?Ie+=' "'+ke.value+'"':(ke.pubID&&ke.sysID?Ie+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.sysID&&(Ie+=' SYSTEM "'+ke.sysID+'"'),ke.nData&&(Ie+=" NDATA "+ke.nData)),De.state=te.CloseTag,Ie+=De.spaceBeforeSlash+">"+this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.dtdNotation=function(ke,De,Le){var Ie;return this.openNode(ke,De,Le),De.state=te.OpenTag,Ie=this.indent(ke,De,Le)+"<!NOTATION",De.state=te.InsideTag,Ie+=" "+ke.name,ke.pubID&&ke.sysID?Ie+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.pubID?Ie+=' PUBLIC "'+ke.pubID+'"':ke.sysID&&(Ie+=' SYSTEM "'+ke.sysID+'"'),De.state=te.CloseTag,Ie+=De.spaceBeforeSlash+">"+this.endline(ke,De,Le),De.state=te.None,this.closeNode(ke,De,Le),Ie},Fe.prototype.openNode=function(ke,De,Le){},Fe.prototype.closeNode=function(ke,De,Le){},Fe.prototype.openAttribute=function(ke,De,Le){},Fe.prototype.closeAttribute=function(ke,De,Le){},Fe}()}).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(x,Te,ve){(function(){var ie,te,ae,ne,oe,he,re,se,ce,fe;fe=x("./Utility"),se=fe.assign,ce=fe.isFunction,ae=x("./XMLDOMImplementation"),ne=x("./XMLDocument"),oe=x("./XMLDocumentCB"),re=x("./XMLStringWriter"),he=x("./XMLStreamWriter"),ie=x("./NodeType"),te=x("./WriterState"),Te.exports.create=function(pe,le,Se,xe){var ge,Me;if(pe==null)throw new Error("Root element needs a name.");return xe=se({},le,Se,xe),ge=new ne(xe),Me=ge.element(pe),xe.headless||(ge.declaration(xe),(xe.pubID!=null||xe.sysID!=null)&&ge.dtd(xe)),Me},Te.exports.begin=function(pe,le,Se){var xe;return ce(pe)&&(xe=[pe,le],le=xe[0],Se=xe[1],pe={}),le?new oe(pe,le,Se):new ne(pe)},Te.exports.stringWriter=function(pe){return new re(pe)},Te.exports.streamWriter=function(pe,le){return new he(pe,le)},Te.exports.implementation=new ae,Te.exports.nodeType=ie,Te.exports.writerState=te}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(x,Te,ve){Te.exports=te;var ie=Object.prototype.hasOwnProperty;function te(){for(var ae={},ne=0;ne<arguments.length;ne++){var oe=arguments[ne];for(var he in oe)ie.call(oe,he)&&(ae[he]=oe[he])}return ae}},{}],461:[function(x,Te,ve){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.array.slice.js");var ie=x("buffer").Buffer,te=x("./sha"),ae=x("./md5"),ne={sha1:te,md5:ae},oe=64,he=ie.alloc(oe);he.fill(0);function re(fe,pe,le){ie.isBuffer(pe)||(pe=ie.from(pe)),ie.isBuffer(le)||(le=ie.from(le)),pe.length>oe?pe=fe(pe):pe.length<oe&&(pe=ie.concat([pe,he],oe));for(var Se=ie.alloc(oe),xe=ie.alloc(oe),ge=0;ge<oe;ge++)Se[ge]=pe[ge]^54,xe[ge]=pe[ge]^92;var Me=fe(ie.concat([Se,le]));return fe(ie.concat([xe,Me]))}function se(fe,pe){fe=fe||"sha1";var le=ne[fe],Se=[],xe=0;return le||ce("algorithm:",fe,"is not yet supported"),{update:function(Me){return ie.isBuffer(Me)||(Me=ie.from(Me)),Se.push(Me),xe+=Me.length,this},digest:function(Me){var ye=ie.concat(Se),be=pe?re(le,pe,ye):le(ye);return Se=null,Me?be.toString(Me):be}}}function ce(){var fe=[].slice.call(arguments).join(" ");throw new Error([fe,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}ve.createHash=function(fe){return se(fe)},ve.createHmac=function(fe,pe){return se(fe,pe)},ve.createCredentials=function(){ce("sorry,createCredentials is not implemented yet")},ve.createCipher=function(){ce("sorry,createCipher is not implemented yet")},ve.createCipheriv=function(){ce("sorry,createCipheriv is not implemented yet")},ve.createDecipher=function(){ce("sorry,createDecipher is not implemented yet")},ve.createDecipheriv=function(){ce("sorry,createDecipheriv is not implemented yet")},ve.createSign=function(){ce("sorry,createSign is not implemented yet")},ve.createVerify=function(){ce("sorry,createVerify is not implemented yet")},ve.createDiffieHellman=function(){ce("sorry,createDiffieHellman is not implemented yet")},ve.pbkdf2=function(){ce("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(x,Te,ve){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js");var ie=x("buffer").Buffer,te=4,ae=ie.alloc(te);ae.fill(0);var ne=8;function oe(se,ce){if(se.length%te!==0){var fe=se.length+(te-se.length%te);se=ie.concat([se,ae],fe)}for(var pe=[],le=ce?se.readInt32BE:se.readInt32LE,Se=0;Se<se.length;Se+=te)pe.push(le.call(se,Se));return pe}function he(se,ce,fe){for(var pe=ie.alloc(ce),le=fe?pe.writeInt32BE:pe.writeInt32LE,Se=0;Se<se.length;Se++)le.call(pe,se[Se],Se*4,!0);return pe}function re(se,ce,fe,pe){ie.isBuffer(se)||(se=ie.from(se));var le=ce(oe(se,pe),se.length*ne);return he(le,fe,pe)}Te.exports={hash:re}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(x,Te,ve){"use strict";var ie=x("./helpers");function te(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ae(pe,le){pe[le>>5]|=128<<le%32,pe[(le+64>>>9<<4)+14]=le;for(var Se=1732584193,xe=-271733879,ge=-1732584194,Me=271733878,ye=0;ye<pe.length;ye+=16){var be=Se,Fe=xe,ke=ge,De=Me;Se=oe(Se,xe,ge,Me,pe[ye+0],7,-680876936),Me=oe(Me,Se,xe,ge,pe[ye+1],12,-389564586),ge=oe(ge,Me,Se,xe,pe[ye+2],17,606105819),xe=oe(xe,ge,Me,Se,pe[ye+3],22,-1044525330),Se=oe(Se,xe,ge,Me,pe[ye+4],7,-176418897),Me=oe(Me,Se,xe,ge,pe[ye+5],12,1200080426),ge=oe(ge,Me,Se,xe,pe[ye+6],17,-1473231341),xe=oe(xe,ge,Me,Se,pe[ye+7],22,-45705983),Se=oe(Se,xe,ge,Me,pe[ye+8],7,1770035416),Me=oe(Me,Se,xe,ge,pe[ye+9],12,-1958414417),ge=oe(ge,Me,Se,xe,pe[ye+10],17,-42063),xe=oe(xe,ge,Me,Se,pe[ye+11],22,-1990404162),Se=oe(Se,xe,ge,Me,pe[ye+12],7,1804603682),Me=oe(Me,Se,xe,ge,pe[ye+13],12,-40341101),ge=oe(ge,Me,Se,xe,pe[ye+14],17,-1502002290),xe=oe(xe,ge,Me,Se,pe[ye+15],22,1236535329),Se=he(Se,xe,ge,Me,pe[ye+1],5,-165796510),Me=he(Me,Se,xe,ge,pe[ye+6],9,-1069501632),ge=he(ge,Me,Se,xe,pe[ye+11],14,643717713),xe=he(xe,ge,Me,Se,pe[ye+0],20,-373897302),Se=he(Se,xe,ge,Me,pe[ye+5],5,-701558691),Me=he(Me,Se,xe,ge,pe[ye+10],9,38016083),ge=he(ge,Me,Se,xe,pe[ye+15],14,-660478335),xe=he(xe,ge,Me,Se,pe[ye+4],20,-405537848),Se=he(Se,xe,ge,Me,pe[ye+9],5,568446438),Me=he(Me,Se,xe,ge,pe[ye+14],9,-1019803690),ge=he(ge,Me,Se,xe,pe[ye+3],14,-187363961),xe=he(xe,ge,Me,Se,pe[ye+8],20,1163531501),Se=he(Se,xe,ge,Me,pe[ye+13],5,-1444681467),Me=he(Me,Se,xe,ge,pe[ye+2],9,-51403784),ge=he(ge,Me,Se,xe,pe[ye+7],14,1735328473),xe=he(xe,ge,Me,Se,pe[ye+12],20,-1926607734),Se=re(Se,xe,ge,Me,pe[ye+5],4,-378558),Me=re(Me,Se,xe,ge,pe[ye+8],11,-2022574463),ge=re(ge,Me,Se,xe,pe[ye+11],16,1839030562),xe=re(xe,ge,Me,Se,pe[ye+14],23,-35309556),Se=re(Se,xe,ge,Me,pe[ye+1],4,-1530992060),Me=re(Me,Se,xe,ge,pe[ye+4],11,1272893353),ge=re(ge,Me,Se,xe,pe[ye+7],16,-155497632),xe=re(xe,ge,Me,Se,pe[ye+10],23,-1094730640),Se=re(Se,xe,ge,Me,pe[ye+13],4,681279174),Me=re(Me,Se,xe,ge,pe[ye+0],11,-358537222),ge=re(ge,Me,Se,xe,pe[ye+3],16,-722521979),xe=re(xe,ge,Me,Se,pe[ye+6],23,76029189),Se=re(Se,xe,ge,Me,pe[ye+9],4,-640364487),Me=re(Me,Se,xe,ge,pe[ye+12],11,-421815835),ge=re(ge,Me,Se,xe,pe[ye+15],16,530742520),xe=re(xe,ge,Me,Se,pe[ye+2],23,-995338651),Se=se(Se,xe,ge,Me,pe[ye+0],6,-198630844),Me=se(Me,Se,xe,ge,pe[ye+7],10,1126891415),ge=se(ge,Me,Se,xe,pe[ye+14],15,-1416354905),xe=se(xe,ge,Me,Se,pe[ye+5],21,-57434055),Se=se(Se,xe,ge,Me,pe[ye+12],6,1700485571),Me=se(Me,Se,xe,ge,pe[ye+3],10,-1894986606),ge=se(ge,Me,Se,xe,pe[ye+10],15,-1051523),xe=se(xe,ge,Me,Se,pe[ye+1],21,-2054922799),Se=se(Se,xe,ge,Me,pe[ye+8],6,1873313359),Me=se(Me,Se,xe,ge,pe[ye+15],10,-30611744),ge=se(ge,Me,Se,xe,pe[ye+6],15,-1560198380),xe=se(xe,ge,Me,Se,pe[ye+13],21,1309151649),Se=se(Se,xe,ge,Me,pe[ye+4],6,-145523070),Me=se(Me,Se,xe,ge,pe[ye+11],10,-1120210379),ge=se(ge,Me,Se,xe,pe[ye+2],15,718787259),xe=se(xe,ge,Me,Se,pe[ye+9],21,-343485551),Se=ce(Se,be),xe=ce(xe,Fe),ge=ce(ge,ke),Me=ce(Me,De)}return Array(Se,xe,ge,Me)}function ne(pe,le,Se,xe,ge,Me){return ce(fe(ce(ce(le,pe),ce(xe,Me)),ge),Se)}function oe(pe,le,Se,xe,ge,Me,ye){return ne(le&Se|~le&xe,pe,le,ge,Me,ye)}function he(pe,le,Se,xe,ge,Me,ye){return ne(le&xe|Se&~xe,pe,le,ge,Me,ye)}function re(pe,le,Se,xe,ge,Me,ye){return ne(le^Se^xe,pe,le,ge,Me,ye)}function se(pe,le,Se,xe,ge,Me,ye){return ne(Se^(le|~xe),pe,le,ge,Me,ye)}function ce(pe,le){var Se=(pe&65535)+(le&65535),xe=(pe>>16)+(le>>16)+(Se>>16);return xe<<16|Se&65535}function fe(pe,le){return pe<<le|pe>>>32-le}Te.exports=function(le){return ie.hash(le,ae,16)}},{"./helpers":462}],464:[function(x,Te,ve){"use strict";var ie=x("./helpers");function te(re,se){re[se>>5]|=128<<24-se%32,re[(se+64>>9<<4)+15]=se;for(var ce=Array(80),fe=1732584193,pe=-271733879,le=-1732584194,Se=271733878,xe=-1009589776,ge=0;ge<re.length;ge+=16){for(var Me=fe,ye=pe,be=le,Fe=Se,ke=xe,De=0;De<80;De++){De<16?ce[De]=re[ge+De]:ce[De]=he(ce[De-3]^ce[De-8]^ce[De-14]^ce[De-16],1);var Le=oe(oe(he(fe,5),ae(De,pe,le,Se)),oe(oe(xe,ce[De]),ne(De)));xe=Se,Se=le,le=he(pe,30),pe=fe,fe=Le}fe=oe(fe,Me),pe=oe(pe,ye),le=oe(le,be),Se=oe(Se,Fe),xe=oe(xe,ke)}return Array(fe,pe,le,Se,xe)}function ae(re,se,ce,fe){return re<20?se&ce|~se&fe:re<40?se^ce^fe:re<60?se&ce|se&fe|ce&fe:se^ce^fe}function ne(re){return re<20?1518500249:re<40?1859775393:re<60?-1894007588:-899497514}function oe(re,se){var ce=(re&65535)+(se&65535),fe=(re>>16)+(se>>16)+(ce>>16);return fe<<16|ce&65535}function he(re,se){return re<<se|re>>>32-se}Te.exports=function(se){return ie.hash(se,te,20,!0)}},{"./helpers":462}],465:[function(x,Te,ve){"use strict";Te.exports=function(){return function(){}}},{}],466:[function(x,Te,ve){(function(ie){(function(){"use strict";var te=x("@babel/runtime/helpers/interopRequireDefault"),ae=te(x("@babel/runtime/helpers/typeof")),ne=x("stream"),oe=ne.Stream,he=x("../lib/common/utils/isArray"),re=he.isArray;Te.exports.string=function(fe){return typeof fe=="string"},Te.exports.array=re,Te.exports.buffer=ie.isBuffer;function se(ce){return ce instanceof oe}Te.exports.writableStream=function(fe){return se(fe)&&typeof fe._write=="function"&&(0,ae.default)(fe._writableState)==="object"}}).call(this)}).call(this,{isBuffer:x("../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(x,Te,ve){"use strict";var ie=x("immediate"),te=Te.exports={};te.nextTick=ie,te.title="browser",te.browser=!0,te.env={},te.argv=[],te.version="",te.versions={};function ae(){}te.on=ae,te.addListener=ae,te.once=ae,te.off=ae,te.removeListener=ae,te.removeAllListeners=ae,te.emit=ae,te.prependListener=ae,te.prependOnceListener=ae,te.listeners=function(ne){return[]},te.binding=function(ne){throw new Error("process.binding is not supported")},te.cwd=function(){return"/"},te.chdir=function(ne){throw new Error("process.chdir is not supported")},te.umask=function(){return 0}},{immediate:358}],468:[function(x,Te,ve){(function(ie){(function(){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js");var te=x("./lib/request"),ae=x("./lib/response"),ne=x("xtend"),oe=x("builtin-status-codes"),he=x("url"),re=ve;re.request=function(se,ce){typeof se=="string"?se=he.parse(se):se=ne(se);var fe=ie.location.protocol.search(/^https?:$/)===-1?"http:":"",pe=se.protocol||fe,le=se.hostname||se.host,Se=se.port,xe=se.path||"/";le&&le.indexOf(":")!==-1&&(le="["+le+"]"),se.url=(le?pe+"//"+le:"")+(Se?":"+Se:"")+xe,se.method=(se.method||"GET").toUpperCase(),se.headers=se.headers||{};var ge=new te(se);return ce&&ge.on("response",ce),ge},re.get=function(ce,fe){var pe=re.request(ce,fe);return pe.end(),pe},re.ClientRequest=te,re.IncomingMessage=ae.IncomingMessage,re.Agent=function(){},re.Agent.defaultMaxSockets=4,re.globalAgent=new re.Agent,re.STATUS_CODES=oe,re.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 Kt!="undefined"?Kt: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(x,Te,ve){(function(ie){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array-buffer.constructor.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.array.slice.js"),ve.fetch=re(ie.fetch)&&re(ie.ReadableStream),ve.writableStream=re(ie.WritableStream),ve.abortController=re(ie.AbortController),ve.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),ve.blobConstructor=!0}catch(se){}var te;function ae(){if(te!==void 0)return te;if(ie.XMLHttpRequest){te=new ie.XMLHttpRequest;try{te.open("GET",ie.XDomainRequest?"/":"https://example.com")}catch(se){te=null}}else te=null;return te}function ne(se){var ce=ae();if(!ce)return!1;try{return ce.responseType=se,ce.responseType===se}catch(fe){}return!1}var oe=typeof ie.ArrayBuffer!="undefined",he=oe&&re(ie.ArrayBuffer.prototype.slice);ve.arraybuffer=ve.fetch||oe&&ne("arraybuffer"),ve.msstream=!ve.fetch&&he&&ne("ms-stream"),ve.mozchunkedarraybuffer=!ve.fetch&&oe&&ne("moz-chunked-arraybuffer"),ve.overrideMimeType=ve.fetch||(ae()?re(ae().overrideMimeType):!1),ve.vbArray=re(ie.VBArray);function re(se){return typeof se=="function"}te=null}).call(this)}).call(this,typeof Kt!="undefined"?Kt: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(x,Te,ve){(function(ie,te,ae){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js");var ne=x("./capability"),oe=x("inherits"),he=x("./response"),re=x("readable-stream"),se=x("to-arraybuffer"),ce=he.IncomingMessage,fe=he.readyStates;function pe(ge,Me){return ne.fetch&&Me?"fetch":ne.mozchunkedarraybuffer?"moz-chunked-arraybuffer":ne.msstream?"ms-stream":ne.arraybuffer&&ge?"arraybuffer":ne.vbArray&&ge?"text:vbarray":"text"}var le=Te.exports=function(ge){var Me=this;re.Writable.call(Me),Me._opts=ge,Me._body=[],Me._headers={},ge.auth&&Me.setHeader("Authorization","Basic "+new ae(ge.auth).toString("base64")),Object.keys(ge.headers).forEach(function(Fe){Me.setHeader(Fe,ge.headers[Fe])});var ye,be=!0;if(ge.mode==="disable-fetch"||"requestTimeout"in ge&&!ne.abortController)be=!1,ye=!0;else if(ge.mode==="prefer-streaming")ye=!1;else if(ge.mode==="allow-wrong-content-type")ye=!ne.overrideMimeType;else if(!ge.mode||ge.mode==="default"||ge.mode==="prefer-fast")ye=!0;else throw new Error("Invalid value for opts.mode");Me._mode=pe(ye,be),Me._fetchTimer=null,Me.on("finish",function(){Me._onFinish()})};oe(le,re.Writable),le.prototype.setHeader=function(ge,Me){var ye=this,be=ge.toLowerCase();xe.indexOf(be)===-1&&(ye._headers[be]={name:ge,value:Me})},le.prototype.getHeader=function(ge){var Me=this._headers[ge.toLowerCase()];return Me?Me.value:null},le.prototype.removeHeader=function(ge){var Me=this;delete Me._headers[ge.toLowerCase()]},le.prototype._onFinish=function(){var ge=this;if(!ge._destroyed){var Me=ge._opts,ye=ge._headers,be=null;Me.method!=="GET"&&Me.method!=="HEAD"&&(ne.arraybuffer?be=se(ae.concat(ge._body)):ne.blobConstructor?be=new te.Blob(ge._body.map(function(Be){return se(Be)}),{type:(ye["content-type"]||{}).value||""}):be=ae.concat(ge._body).toString());var Fe=[];if(Object.keys(ye).forEach(function(Be){var Ue=ye[Be].name,_e=ye[Be].value;Array.isArray(_e)?_e.forEach(function(We){Fe.push([Ue,We])}):Fe.push([Ue,_e])}),ge._mode==="fetch"){var ke=null,De=null;if(ne.abortController){var Le=new AbortController;ke=Le.signal,ge._fetchAbortController=Le,"requestTimeout"in Me&&Me.requestTimeout!==0&&(ge._fetchTimer=te.setTimeout(function(){ge.emit("requestTimeout"),ge._fetchAbortController&&ge._fetchAbortController.abort()},Me.requestTimeout))}te.fetch(ge._opts.url,{method:ge._opts.method,headers:Fe,body:be||void 0,mode:"cors",credentials:Me.withCredentials?"include":"same-origin",signal:ke}).then(function(Be){ge._fetchResponse=Be,ge._connect()},function(Be){te.clearTimeout(ge._fetchTimer),ge._destroyed||ge.emit("error",Be)})}else{var Ie=ge._xhr=new te.XMLHttpRequest;try{Ie.open(ge._opts.method,ge._opts.url,!0)}catch(Be){ie.nextTick(function(){ge.emit("error",Be)});return}"responseType"in Ie&&(Ie.responseType=ge._mode.split(":")[0]),"withCredentials"in Ie&&(Ie.withCredentials=!!Me.withCredentials),ge._mode==="text"&&"overrideMimeType"in Ie&&Ie.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in Me&&(Ie.timeout=Me.requestTimeout,Ie.ontimeout=function(){ge.emit("requestTimeout")}),Fe.forEach(function(Be){Ie.setRequestHeader(Be[0],Be[1])}),ge._response=null,Ie.onreadystatechange=function(){switch(Ie.readyState){case fe.LOADING:case fe.DONE:ge._onXHRProgress();break}},ge._mode==="moz-chunked-arraybuffer"&&(Ie.onprogress=function(){ge._onXHRProgress()}),Ie.onerror=function(){ge._destroyed||ge.emit("error",new Error("XHR error"))};try{Ie.send(be)}catch(Be){ie.nextTick(function(){ge.emit("error",Be)});return}}}};function Se(ge){try{var Me=ge.status;return Me!==null&&Me!==0}catch(ye){return!1}}le.prototype._onXHRProgress=function(){var ge=this;!Se(ge._xhr)||ge._destroyed||(ge._response||ge._connect(),ge._response._onXHRProgress())},le.prototype._connect=function(){var ge=this;ge._destroyed||(ge._response=new ce(ge._xhr,ge._fetchResponse,ge._mode,ge._fetchTimer),ge._response.on("error",function(Me){ge.emit("error",Me)}),ge.emit("response",ge._response))},le.prototype._write=function(ge,Me,ye){var be=this;be._body.push(ge),ye()},le.prototype.abort=le.prototype.destroy=function(){var ge=this;ge._destroyed=!0,te.clearTimeout(ge._fetchTimer),ge._response&&(ge._response._destroyed=!0),ge._xhr?ge._xhr.abort():ge._fetchAbortController&&ge._fetchAbortController.abort()},le.prototype.end=function(ge,Me,ye){var be=this;typeof ge=="function"&&(ye=ge,ge=void 0),re.Writable.prototype.end.call(be,ge,Me,ye)},le.prototype.flushHeaders=function(){},le.prototype.setTimeout=function(){},le.prototype.setNoDelay=function(){},le.prototype.setSocketKeepAlive=function(){};var xe=["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,x("_process"),typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("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(x,Te,ve){(function(ie,te,ae){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.string.match.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.typed-array.uint8-array.js"),x("core-js/modules/es.typed-array.copy-within.js"),x("core-js/modules/es.typed-array.every.js"),x("core-js/modules/es.typed-array.fill.js"),x("core-js/modules/es.typed-array.filter.js"),x("core-js/modules/es.typed-array.find.js"),x("core-js/modules/es.typed-array.find-index.js"),x("core-js/modules/es.typed-array.for-each.js"),x("core-js/modules/es.typed-array.includes.js"),x("core-js/modules/es.typed-array.index-of.js"),x("core-js/modules/es.typed-array.iterator.js"),x("core-js/modules/es.typed-array.join.js"),x("core-js/modules/es.typed-array.last-index-of.js"),x("core-js/modules/es.typed-array.map.js"),x("core-js/modules/es.typed-array.reduce.js"),x("core-js/modules/es.typed-array.reduce-right.js"),x("core-js/modules/es.typed-array.reverse.js"),x("core-js/modules/es.typed-array.set.js"),x("core-js/modules/es.typed-array.slice.js"),x("core-js/modules/es.typed-array.some.js"),x("core-js/modules/es.typed-array.sort.js"),x("core-js/modules/es.typed-array.subarray.js"),x("core-js/modules/es.typed-array.to-locale-string.js"),x("core-js/modules/es.typed-array.to-string.js"),x("core-js/modules/es.array.slice.js");var ne=x("./capability"),oe=x("inherits"),he=x("readable-stream"),re=ve.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},se=ve.IncomingMessage=function(ce,fe,pe,le){var Se=this;if(he.Readable.call(Se),Se._mode=pe,Se.headers={},Se.rawHeaders=[],Se.trailers={},Se.rawTrailers=[],Se.on("end",function(){ie.nextTick(function(){Se.emit("close")})}),pe==="fetch"){var xe=function ke(){Me.read().then(function(De){if(!Se._destroyed){if(De.done){te.clearTimeout(le),Se.push(null);return}Se.push(new ae(De.value)),ke()}}).catch(function(De){te.clearTimeout(le),Se._destroyed||Se.emit("error",De)})};if(Se._fetchResponse=fe,Se.url=fe.url,Se.statusCode=fe.status,Se.statusMessage=fe.statusText,fe.headers.forEach(function(ke,De){Se.headers[De.toLowerCase()]=ke,Se.rawHeaders.push(De,ke)}),ne.writableStream){var ge=new WritableStream({write:function(De){return new Promise(function(Le,Ie){Se._destroyed?Ie():Se.push(new ae(De))?Le():Se._resumeFetch=Le})},close:function(){te.clearTimeout(le),Se._destroyed||Se.push(null)},abort:function(De){Se._destroyed||Se.emit("error",De)}});try{fe.body.pipeTo(ge).catch(function(ke){te.clearTimeout(le),Se._destroyed||Se.emit("error",ke)});return}catch(ke){}}var Me=fe.body.getReader();xe()}else{Se._xhr=ce,Se._pos=0,Se.url=ce.responseURL,Se.statusCode=ce.status,Se.statusMessage=ce.statusText;var ye=ce.getAllResponseHeaders().split(/\r?\n/);if(ye.forEach(function(ke){var De=ke.match(/^([^:]+):\s*(.*)/);if(De){var Le=De[1].toLowerCase();Le==="set-cookie"?(Se.headers[Le]===void 0&&(Se.headers[Le]=[]),Se.headers[Le].push(De[2])):Se.headers[Le]!==void 0?Se.headers[Le]+=", "+De[2]:Se.headers[Le]=De[2],Se.rawHeaders.push(De[1],De[2])}}),Se._charset="x-user-defined",!ne.overrideMimeType){var be=Se.rawHeaders["mime-type"];if(be){var Fe=be.match(/;\s*charset=([^;])(;|$)/);Fe&&(Se._charset=Fe[1].toLowerCase())}Se._charset||(Se._charset="utf-8")}}};oe(se,he.Readable),se.prototype._read=function(){var ce=this,fe=ce._resumeFetch;fe&&(ce._resumeFetch=null,fe())},se.prototype._onXHRProgress=function(){var ce=this,fe=ce._xhr,pe=null;switch(ce._mode){case"text:vbarray":if(fe.readyState!==re.DONE)break;try{pe=new te.VBArray(fe.responseBody).toArray()}catch(Me){}if(pe!==null){ce.push(new ae(pe));break}case"text":try{pe=fe.responseText}catch(Me){ce._mode="text:vbarray";break}if(pe.length>ce._pos){var le=pe.substr(ce._pos);if(ce._charset==="x-user-defined"){for(var Se=new ae(le.length),xe=0;xe<le.length;xe++)Se[xe]=le.charCodeAt(xe)&255;ce.push(Se)}else ce.push(le,ce._charset);ce._pos=pe.length}break;case"arraybuffer":if(fe.readyState!==re.DONE||!fe.response)break;pe=fe.response,ce.push(new ae(new Uint8Array(pe)));break;case"moz-chunked-arraybuffer":if(pe=fe.response,fe.readyState!==re.LOADING||!pe)break;ce.push(new ae(new Uint8Array(pe)));break;case"ms-stream":if(pe=fe.response,fe.readyState!==re.LOADING)break;var ge=new te.MSStreamReader;ge.onprogress=function(){ge.result.byteLength>ce._pos&&(ce.push(new ae(new Uint8Array(ge.result.slice(ce._pos)))),ce._pos=ge.result.byteLength)},ge.onload=function(){ce.push(null)},ge.readAsArrayBuffer(pe);break}ce._xhr.readyState===re.DONE&&ce._mode!=="ms-stream"&&ce.push(null)}}).call(this)}).call(this,x("_process"),typeof Kt!="undefined"?Kt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/helpers/typeof"));x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.string.match.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.splice.js");var ae=x("punycode"),ne=x("./util");ve.parse=De,ve.resolve=Ie,ve.resolveObject=Be,ve.format=Le,ve.Url=oe;function oe(){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 he=/^([a-z0-9.+-]+:)/i,re=/:[0-9]*$/,se=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ce=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],fe=["{","}","|","\\","^","`"].concat(ce),pe=["'"].concat(fe),le=["%","/","?",";","#"].concat(pe),Se=["/","?","#"],xe=255,ge=/^[+a-z0-9A-Z_-]{0,63}$/,Me=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ye={javascript:!0,"javascript:":!0},be={javascript:!0,"javascript:":!0},Fe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ke=x("querystring");function De(Ue,_e,We){if(Ue&&ne.isObject(Ue)&&Ue instanceof oe)return Ue;var Ze=new oe;return Ze.parse(Ue,_e,We),Ze}oe.prototype.parse=function(Ue,_e,We){if(!ne.isString(Ue))throw new TypeError("Parameter 'url' must be a string, not "+(0,te.default)(Ue));var Ze=Ue.indexOf("?"),et=Ze!==-1&&Ze<Ue.indexOf("#")?"?":"#",it=Ue.split(et),pt=/\\/g;it[0]=it[0].replace(pt,"/"),Ue=it.join(et);var Ge=Ue;if(Ge=Ge.trim(),!We&&Ue.split("#").length===1){var Xe=se.exec(Ge);if(Xe)return this.path=Ge,this.href=Ge,this.pathname=Xe[1],Xe[2]?(this.search=Xe[2],_e?this.query=ke.parse(this.search.substr(1)):this.query=this.search.substr(1)):_e&&(this.search="",this.query={}),this}var lt=he.exec(Ge);if(lt){lt=lt[0];var dt=lt.toLowerCase();this.protocol=dt,Ge=Ge.substr(lt.length)}if(We||lt||Ge.match(/^\/\/[^@\/]+@[^@\/]+/)){var st=Ge.substr(0,2)==="//";st&&!(lt&&be[lt])&&(Ge=Ge.substr(2),this.slashes=!0)}if(!be[lt]&&(st||lt&&!Fe[lt])){for(var nt=-1,rt=0;rt<Se.length;rt++){var at=Ge.indexOf(Se[rt]);at!==-1&&(nt===-1||at<nt)&&(nt=at)}var gt,vt;nt===-1?vt=Ge.lastIndexOf("@"):vt=Ge.lastIndexOf("@",nt),vt!==-1&&(gt=Ge.slice(0,vt),Ge=Ge.slice(vt+1),this.auth=decodeURIComponent(gt)),nt=-1;for(var rt=0;rt<le.length;rt++){var at=Ge.indexOf(le[rt]);at!==-1&&(nt===-1||at<nt)&&(nt=at)}nt===-1&&(nt=Ge.length),this.host=Ge.slice(0,nt),Ge=Ge.slice(nt),this.parseHost(),this.hostname=this.hostname||"";var Et=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Et)for(var At=this.hostname.split("."),rt=0,ut=At.length;rt<ut;rt++){var Ye=At[rt];if(Ye&&!Ye.match(ge)){for(var Ve="",de=0,Ce=Ye.length;de<Ce;de++)Ye.charCodeAt(de)>127?Ve+="x":Ve+=Ye[de];if(!Ve.match(ge)){var He=At.slice(0,rt),je=At.slice(rt+1),Ae=Ye.match(Me);Ae&&(He.push(Ae[1]),je.unshift(Ae[2])),je.length&&(Ge="/"+je.join(".")+Ge),this.hostname=He.join(".");break}}}this.hostname.length>xe?this.hostname="":this.hostname=this.hostname.toLowerCase(),Et||(this.hostname=ae.toASCII(this.hostname));var Ne=this.port?":"+this.port:"",ze=this.hostname||"";this.host=ze+Ne,this.href+=this.host,Et&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ge[0]!=="/"&&(Ge="/"+Ge))}if(!ye[dt])for(var rt=0,ut=pe.length;rt<ut;rt++){var Qe=pe[rt];if(Ge.indexOf(Qe)!==-1){var ot=encodeURIComponent(Qe);ot===Qe&&(ot=escape(Qe)),Ge=Ge.split(Qe).join(ot)}}var mt=Ge.indexOf("#");mt!==-1&&(this.hash=Ge.substr(mt),Ge=Ge.slice(0,mt));var Ot=Ge.indexOf("?");if(Ot!==-1?(this.search=Ge.substr(Ot),this.query=Ge.substr(Ot+1),_e&&(this.query=ke.parse(this.query)),Ge=Ge.slice(0,Ot)):_e&&(this.search="",this.query={}),Ge&&(this.pathname=Ge),Fe[dt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ne=this.pathname||"",xt=this.search||"";this.path=Ne+xt}return this.href=this.format(),this};function Le(Ue){return ne.isString(Ue)&&(Ue=De(Ue)),Ue instanceof oe?Ue.format():oe.prototype.format.call(Ue)}oe.prototype.format=function(){var Ue=this.auth||"";Ue&&(Ue=encodeURIComponent(Ue),Ue=Ue.replace(/%3A/i,":"),Ue+="@");var _e=this.protocol||"",We=this.pathname||"",Ze=this.hash||"",et=!1,it="";this.host?et=Ue+this.host:this.hostname&&(et=Ue+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(et+=":"+this.port)),this.query&&ne.isObject(this.query)&&Object.keys(this.query).length&&(it=ke.stringify(this.query));var pt=this.search||it&&"?"+it||"";return _e&&_e.substr(-1)!==":"&&(_e+=":"),this.slashes||(!_e||Fe[_e])&&et!==!1?(et="//"+(et||""),We&&We.charAt(0)!=="/"&&(We="/"+We)):et||(et=""),Ze&&Ze.charAt(0)!=="#"&&(Ze="#"+Ze),pt&&pt.charAt(0)!=="?"&&(pt="?"+pt),We=We.replace(/[?#]/g,function(Ge){return encodeURIComponent(Ge)}),pt=pt.replace("#","%23"),_e+et+We+pt+Ze};function Ie(Ue,_e){return De(Ue,!1,!0).resolve(_e)}oe.prototype.resolve=function(Ue){return this.resolveObject(De(Ue,!1,!0)).format()};function Be(Ue,_e){return Ue?De(Ue,!1,!0).resolveObject(_e):_e}oe.prototype.resolveObject=function(Ue){if(ne.isString(Ue)){var _e=new oe;_e.parse(Ue,!1,!0),Ue=_e}for(var We=new oe,Ze=Object.keys(this),et=0;et<Ze.length;et++){var it=Ze[et];We[it]=this[it]}if(We.hash=Ue.hash,Ue.href==="")return We.href=We.format(),We;if(Ue.slashes&&!Ue.protocol){for(var pt=Object.keys(Ue),Ge=0;Ge<pt.length;Ge++){var Xe=pt[Ge];Xe!=="protocol"&&(We[Xe]=Ue[Xe])}return Fe[We.protocol]&&We.hostname&&!We.pathname&&(We.path=We.pathname="/"),We.href=We.format(),We}if(Ue.protocol&&Ue.protocol!==We.protocol){if(!Fe[Ue.protocol]){for(var lt=Object.keys(Ue),dt=0;dt<lt.length;dt++){var st=lt[dt];We[st]=Ue[st]}return We.href=We.format(),We}if(We.protocol=Ue.protocol,!Ue.host&&!be[Ue.protocol]){for(var ut=(Ue.pathname||"").split("/");ut.length&&!(Ue.host=ut.shift()););Ue.host||(Ue.host=""),Ue.hostname||(Ue.hostname=""),ut[0]!==""&&ut.unshift(""),ut.length<2&&ut.unshift(""),We.pathname=ut.join("/")}else We.pathname=Ue.pathname;if(We.search=Ue.search,We.query=Ue.query,We.host=Ue.host||"",We.auth=Ue.auth,We.hostname=Ue.hostname||Ue.host,We.port=Ue.port,We.pathname||We.search){var nt=We.pathname||"",rt=We.search||"";We.path=nt+rt}return We.slashes=We.slashes||Ue.slashes,We.href=We.format(),We}var at=We.pathname&&We.pathname.charAt(0)==="/",gt=Ue.host||Ue.pathname&&Ue.pathname.charAt(0)==="/",vt=gt||at||We.host&&Ue.pathname,Et=vt,At=We.pathname&&We.pathname.split("/")||[],ut=Ue.pathname&&Ue.pathname.split("/")||[],Ye=We.protocol&&!Fe[We.protocol];if(Ye&&(We.hostname="",We.port=null,We.host&&(At[0]===""?At[0]=We.host:At.unshift(We.host)),We.host="",Ue.protocol&&(Ue.hostname=null,Ue.port=null,Ue.host&&(ut[0]===""?ut[0]=Ue.host:ut.unshift(Ue.host)),Ue.host=null),vt=vt&&(ut[0]===""||At[0]==="")),gt)We.host=Ue.host||Ue.host===""?Ue.host:We.host,We.hostname=Ue.hostname||Ue.hostname===""?Ue.hostname:We.hostname,We.search=Ue.search,We.query=Ue.query,At=ut;else if(ut.length)At||(At=[]),At.pop(),At=At.concat(ut),We.search=Ue.search,We.query=Ue.query;else if(!ne.isNullOrUndefined(Ue.search)){if(Ye){We.hostname=We.host=At.shift();var Ve=We.host&&We.host.indexOf("@")>0?We.host.split("@"):!1;Ve&&(We.auth=Ve.shift(),We.host=We.hostname=Ve.shift())}return We.search=Ue.search,We.query=Ue.query,(!ne.isNull(We.pathname)||!ne.isNull(We.search))&&(We.path=(We.pathname?We.pathname:"")+(We.search?We.search:"")),We.href=We.format(),We}if(!At.length)return We.pathname=null,We.search?We.path="/"+We.search:We.path=null,We.href=We.format(),We;for(var de=At.slice(-1)[0],Ce=(We.host||Ue.host||At.length>1)&&(de==="."||de==="..")||de==="",He=0,je=At.length;je>=0;je--)de=At[je],de==="."?At.splice(je,1):de===".."?(At.splice(je,1),He++):He&&(At.splice(je,1),He--);if(!vt&&!Et)for(;He--;He)At.unshift("..");vt&&At[0]!==""&&(!At[0]||At[0].charAt(0)!=="/")&&At.unshift(""),Ce&&At.join("/").substr(-1)!=="/"&&At.push("");var Ae=At[0]===""||At[0]&&At[0].charAt(0)==="/";if(Ye){We.hostname=We.host=Ae?"":At.length?At.shift():"";var Ve=We.host&&We.host.indexOf("@")>0?We.host.split("@"):!1;Ve&&(We.auth=Ve.shift(),We.host=We.hostname=Ve.shift())}return vt=vt||We.host&&At.length,vt&&!Ae&&At.unshift(""),At.length?We.pathname=At.join("/"):(We.pathname=null,We.path=null),(!ne.isNull(We.pathname)||!ne.isNull(We.search))&&(We.path=(We.pathname?We.pathname:"")+(We.search?We.search:"")),We.auth=Ue.auth||We.auth,We.slashes=We.slashes||Ue.slashes,We.href=We.format(),We},oe.prototype.parseHost=function(){var Ue=this.host,_e=re.exec(Ue);_e&&(_e=_e[0],_e!==":"&&(this.port=_e.substr(1)),Ue=Ue.substr(0,Ue.length-_e.length)),Ue&&(this.hostname=Ue)}},{"./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(x,Te,ve){"use strict";var ie=x("@babel/runtime/helpers/interopRequireDefault"),te=ie(x("@babel/runtime/helpers/typeof"));Te.exports={isString:function(ne){return typeof ne=="string"},isObject:function(ne){return(0,te.default)(ne)==="object"&&ne!==null},isNull:function(ne){return ne===null},isNullOrUndefined:function(ne){return ne==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(x,Te,ve){"use strict";x("core-js/modules/es.number.constructor.js"),ve.encodeURIComponent=function(ie){try{return encodeURIComponent(ie)}catch(te){return ie}},ve.escape=x("escape-html"),ve.timestamp=function(te){if(te){var ae=te;return typeof ae=="string"&&(ae=Number(ae)),String(te).length===10&&(ae*=1e3),new Date(ae)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(x,Te,ve){(function(ie,te){(function(){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/helpers/typeof"));x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.array.concat.js");var oe=x("util"),he=x("url"),re=x("http"),se=x("https"),ce=x("debug")("urllib"),fe=x("humanize-ms"),pe=0,le=Math.pow(2,31)-10,Se=/^https?:\/\//i;function xe(be,Fe){return be===void 0?Fe:be}function ge(be){return be?be.split(";")[0].trim().toLowerCase():""}function Me(be,Fe){return function(ke,De,Le){if(ke)return Fe(ke);be({data:De,status:Le.statusCode,headers:Le.headers,res:Le})}}ve.TIMEOUTS=[fe("300s"),fe("300s")];var ye=["json","text"];ve.request=function(Fe,ke,De){return arguments.length===2&&typeof ke=="function"&&(De=ke,ke=null),typeof De=="function"?ve.requestWithCallback(Fe,ke,De):new Promise(function(Le,Ie){ve.requestWithCallback(Fe,ke,Me(Le,Ie))})},ve.requestWithCallback=function(Fe,ke,De){if(!Fe||typeof Fe!="string"&&(0,ne.default)(Fe)!=="object"){var Le=oe.format("expect request url to be a string or a http request options, but got %j",Fe);throw new Error(Le)}arguments.length===2&&typeof ke=="function"&&(De=ke,ke=null),ke=ke||{},pe>=le&&(pe=0);var Ie=++pe;ke.requestUrls=ke.requestUrls||[];var Be={requestId:Ie,url:Fe,args:ke,ctx:ke.ctx};ke.emitter&&ke.emitter.emit("request",Be),ke.timeout=ke.timeout||ve.TIMEOUTS,ke.maxRedirects=ke.maxRedirects||10,ke.streaming=ke.streaming||ke.customResponse;var Ue=Date.now(),_e;typeof Fe=="string"?(Se.test(Fe)||(Fe="https://"+Fe),_e=he.parse(Fe)):_e=Fe;var We=(ke.type||ke.method||_e.method||"GET").toUpperCase(),Ze=_e.port||80,et=re,it=xe(ke.agent,ve.agent),pt=ke.fixJSONCtlChars;_e.protocol==="https:"&&(et=se,it=xe(ke.httpsAgent,ve.httpsAgent),_e.port||(Ze=443));var Ge={host:_e.hostname||_e.host||"localhost",path:_e.path||"/",method:We,port:Ze,agent:it,headers:ke.headers||{},lookup:ke.lookup};Array.isArray(ke.timeout)?Ge.requestTimeout=ke.timeout[ke.timeout.length-1]:typeof ke.timeout!="undefined"&&(Ge.requestTimeout=ke.timeout);var Xe=ke.auth||_e.auth;Xe&&(Ge.auth=Xe);var lt=ke.content||ke.data,dt=We==="GET"||We==="HEAD"||ke.dataAsQueryString;if(!ke.content&<&&!(typeof lt=="string"||te.isBuffer(lt)))if(dt)lt=ke.nestedQuerystring?qs.stringify(lt):querystring.stringify(lt);else{var st=Ge.headers["Content-Type"]||Ge.headers["content-type"];st||(ke.contentType==="json"?st="application/json":st="application/x-www-form-urlencoded",Ge.headers["Content-Type"]=st),ge(st)==="application/json"?lt=JSON.stringify(lt):lt=ke.nestedQuerystring?qs.stringify(lt):querystring.stringify(lt)}dt&<&&(Ge.path+=(_e.query?"&":"?")+lt,lt=null);var nt=0;if(lt){var rt=lt.length;te.isBuffer(lt)||(rt=te.byteLength(lt)),nt=Ge.headers["Content-Length"]=rt}ke.dataType==="json"&&(Ge.headers.Accept="application/json"),typeof ke.beforeRequest=="function"&&ke.beforeRequest(Ge);var at=null,gt=null,vt=null,Et=!1,At=!1,ut=0,Ye=-1,Ve=!1,de="",Ce="",He=null;ke.timing&&(He={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function je(){at&&(clearTimeout(at),at=null)}function Ae(){gt&&(clearTimeout(gt),gt=null)}function Ne(Zt,bn,Pt){if(Ae(),!De){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Ie,ie.pid,Ge.method,Fe),Zt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Ie,ie.pid,Zt.name,Zt.message,Zt.stack);return}var zt=De;De=null;var sn={};Pt&&(Ye=Pt.statusCode,sn=Pt.headers);var yn=Date.now()-Ue;He&&(He.contentDownload=yn),ce("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",yn,ut,Ye,Ge.method,Ge.host,Ge.path,At,He);var kn={status:Ye,statusCode:Ye,headers:sn,size:ut,aborted:Ve,rt:yn,keepAliveSocket:At,data:bn,requestUrls:ke.requestUrls,timing:He,remoteAddress:de,remotePort:Ce};if(Zt){var Gn="";it&&typeof it.getCurrentStatus=="function"&&(Gn=", agent status: "+JSON.stringify(it.getCurrentStatus())),Zt.message+=", "+Ge.method+" "+Fe+" "+Ye+" (connected: "+Et+", keepalive socket: "+At+Gn+`)
|
|
|
headers: `+JSON.stringify(sn),Zt.data=bn,Zt.path=Ge.path,Zt.status=Ye,Zt.headers=sn,Zt.res=kn}zt(Zt,bn,ke.streaming?Pt:kn),ke.emitter&&(Be.url=Fe,Be.socket=Ft&&Ft.connection,Be.options=Ge,Be.size=nt,ke.emitter.emit("response",{requestId:Ie,error:Zt,ctx:ke.ctx,req:Be,res:kn}))}function ze(Zt){var bn=null;if(ke.followRedirect&&statuses.redirect[Zt.statusCode]){ke._followRedirectCount=(ke._followRedirectCount||0)+1;var Pt=Zt.headers.location;if(!Pt)bn=new Error("Got statusCode "+Zt.statusCode+" but cannot resolve next location from headers"),bn.name="FollowRedirectError";else if(ke._followRedirectCount>ke.maxRedirects)bn=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Fe),bn.name="MaxRedirectError";else{var zt=ke.formatRedirectUrl?ke.formatRedirectUrl(Fe,Pt):he.resolve(Fe,Pt);ce("Request#%d %s: `redirected` from %s to %s",Ie,Ge.path,Fe,zt),Ae(),ke.headers&&ke.headers.Host&&Se.test(Pt)&&(ke.headers.Host=null);var sn=De;return De=null,ve.requestWithCallback(zt,ke,sn),{redirect:!0,error:null}}}return{redirect:!1,error:bn}}ke.gzip&&!Ge.headers["Accept-Encoding"]&&!Ge.headers["accept-encoding"]&&(Ge.headers["Accept-Encoding"]="gzip");function Qe(Zt,bn,Pt){var zt=Zt.headers["content-encoding"];return Pt(null,bn,zt)}var ot=ke.writeStream;ce("Request#%d %s %s with headers %j, options.path: %s",Ie,We,Fe,Ge.headers,Ge.path),ke.requestUrls.push(Fe);function mt(Zt){if(He&&(He.waiting=Date.now()-Ue),ce("Request#%d %s `req response` event emit: status %d, headers: %j",Ie,Fe,Zt.statusCode,Zt.headers),ke.streaming){var bn=ze(Zt);if(bn.redirect){Zt.resume();return}return bn.error?(Zt.resume(),Ne(bn.error,null,Zt)):Ne(null,null,Zt)}if(Zt.on("close",function(){ce("Request#%d %s: `res close` event emit, total size %d",Ie,Fe,ut)}),Zt.on("error",function(){ce("Request#%d %s: `res error` event emit, total size %d",Ie,Fe,ut)}),Zt.on("aborted",function(){Ve=!0,ce("Request#%d %s: `res aborted` event emit, total size %d",Ie,Fe,ut)}),ot){var Pt=ze(Zt);if(Pt.redirect){Zt.resume();return}return Pt.error?(Zt.resume(),ot.end(),Ne(Pt.error,null,Zt)):(ke.consumeWriteStream===!1?Zt.on("end",Ne.bind(null,null,null,Zt)):ot.on("close",function(){ce("Request#%d %s: writeStream close event emitted",Ie,Fe),Ne(vt||null,null,Zt)}),Zt.pipe(ot))}var zt=[];Zt.on("data",function(sn){ce("Request#%d %s: `res data` event emit, size %d",Ie,Fe,sn.length),ut+=sn.length,zt.push(sn)}),Zt.on("end",function(){var sn=te.concat(zt,ut);if(ce("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Ie,Fe,ut,Zt._dumped),vt)return Ne(vt,sn,Zt);var yn=ze(Zt);if(yn.error)return Ne(yn.error,sn,Zt);yn.redirect||Qe(Zt,sn,function(kn,Gn,dr){if(kn)return Ne(kn,sn,Zt);if(!dr&&ye.indexOf(ke.dataType)>=0){try{Gn=decodeBodyByCharset(Gn,Zt)}catch(zr){return ce("decodeBodyByCharset error: %s",zr),Ne(null,Gn,Zt)}if(ke.dataType==="json")if(ut===0)Gn=null;else{var Or=parseJSON(Gn,pt);Or.error?kn=Or.error:Gn=Or.data}}Ve&&ce("Request#%d %s: Remote socket was terminated before `response.end()` was called",Ie,Fe),Ne(kn,Gn,Zt)})})}var Ot,xt;Array.isArray(ke.timeout)?(Ot=fe(ke.timeout[0]),xt=fe(ke.timeout[1])):Ot=xt=fe(ke.timeout),ce("ConnectTimeout: %d, ResponseTimeout: %d",Ot,xt);function Ut(){ce("Connect timer ticking, timeout: %d",Ot),at=setTimeout(function(){at=null,Ye===-1&&(Ye=-2);var Zt="Connect timeout for "+Ot+"ms",bn="ConnectionTimeoutError";Ft.socket||(bn="SocketAssignTimeoutError",Zt+=", working sockets is full"),vt=new Error(Zt),vt.name=bn,vt.requestId=Ie,ce("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Ie,Fe,vt.name,Zt,Et),Qt()},Ot)}function xn(){ce("Response timer ticking, timeout: %d",xt),gt=setTimeout(function(){gt=null;var Zt="Response timeout for "+xt+"ms",bn="ResponseTimeoutError";vt=new Error(Zt),vt.name=bn,vt.requestId=Ie,ce("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Ie,Fe,vt.name,Zt,Et),Qt()},xt)}var Ft;Ge.mode=ke.mode?ke.mode:"";try{Ft=et.request(Ge,mt)}catch(Zt){return Ne(Zt)}typeof window=="undefined"?Ut():Ft.on("requestTimeout",function(){Ye===-1&&(Ye=-2);var Zt="Connect timeout for "+Ot+"ms",bn="ConnectionTimeoutError";vt=new Error(Zt),vt.name=bn,vt.requestId=Ie,Qt()});function Qt(){ce("Request#%d %s abort, connected: %s",Ie,Fe,Et),Ft.socket||(vt.noSocket=!0,Ne(vt)),Ft.abort()}return He&&Ft.on("finish",function(){He.requestSent=Date.now()-Ue}),Ft.once("socket",function(Zt){He&&(He.queuing=Date.now()-Ue);var bn=Zt.readyState;if(bn==="opening"){Zt.once("lookup",function(Pt,zt,sn){ce("Request#%d %s lookup: %s, %s, %s",Ie,Fe,Pt,zt,sn),He&&(He.dnslookup=Date.now()-Ue),zt&&(de=zt)}),Zt.once("connect",function(){He&&(He.connected=Date.now()-Ue),je(),xn(),ce("Request#%d %s new socket connected",Ie,Fe),Et=!0,de||(de=Zt.remoteAddress),Ce=Zt.remotePort});return}ce("Request#%d %s reuse socket connected, readyState: %s",Ie,Fe,bn),Et=!0,At=!0,de||(de=Zt.remoteAddress),Ce=Zt.remotePort,je(),xn()}),Ft.on("error",function(Zt){(Zt.name==="Error"||Zt.name==="TypeError")&&(Zt.name=Et?"ResponseError":"RequestError"),Zt.message+=' (req "error")',ce("Request#%d %s `req error` event emit, %s: %s",Ie,Fe,Zt.name,Zt.message),Ne(vt||Zt)}),ot&&ot.once("error",function(Zt){Zt.message+=' (writeStream "error")',vt=Zt,ce("Request#%d %s `writeStream error` event emit, %s: %s",Ie,Fe,Zt.name,Zt.message),Qt()}),ke.stream?(ke.stream.pipe(Ft),ke.stream.once("error",function(Zt){Zt.message+=' (stream "error")',vt=Zt,ce("Request#%d %s `readStream error` event emit, %s: %s",Ie,Fe,Zt.name,Zt.message),Qt()})):Ft.end(lt),Ft.requestId=Ie,Ft}}).call(this)}).call(this,x("_process"),x("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)},81643:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Oe}});const Oe=Je=>Je?typeof Je=="function"?Je():Je:null},57838:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Je}});var Oe=me(67294);function Je(){const[,x]=Oe.useReducer(Te=>Te+1,0);return x}},9708:function(tn,Kt,me){"use strict";me.d(Kt,{F:function(){return ve},Z:function(){return Te}});var Oe=me(94184),Je=me.n(Oe);const x=null;function Te(ie,te,ae){return Je()({[`${ie}-status-success`]:te==="success",[`${ie}-status-warning`]:te==="warning",[`${ie}-status-error`]:te==="error",[`${ie}-status-validating`]:te==="validating",[`${ie}-has-feedback`]:ae})}const ve=(ie,te)=>te||ie},85546:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return To}});var Oe=me(74902),Je=me(67294),x=me(22751),Te=me(3407),ve=me(91034),ie=me(94184),te=me.n(ie),ae=me(87462),ne=me(97685),oe=me(45987),he=me(4942),re=me(1413),se=me(71002);function ce(Ct){var Lt=Je.useRef();Lt.current=Ct;var dn=Je.useCallback(function(){for(var un,Un=arguments.length,Nn=new Array(Un),Mn=0;Mn<Un;Mn++)Nn[Mn]=arguments[Mn];return(un=Lt.current)===null||un===void 0?void 0:un.call.apply(un,[Lt].concat(Nn))},[]);return dn}function fe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var pe=fe()?Je.useLayoutEffect:Je.useEffect,le=pe,Se=function(Lt,dn){var un=Je.useRef(!0);pe(function(){if(!un.current)return Lt()},dn),pe(function(){return un.current=!1,function(){un.current=!0}},[])};function xe(Ct){var Lt=Je.useRef(!1),dn=Je.useState(Ct),un=(0,ne.Z)(dn,2),Un=un[0],Nn=un[1];Je.useEffect(function(){return Lt.current=!1,function(){Lt.current=!0}},[]);function Mn(nr,rr){rr&&Lt.current||Nn(nr)}return[Un,Mn]}function ge(Ct){return Ct!==void 0}function Me(Ct,Lt){var dn=Lt||{},un=dn.defaultValue,Un=dn.value,Nn=dn.onChange,Mn=dn.postState,nr=xe(function(){return ge(Un)?Un:ge(un)?typeof un=="function"?un():un:typeof Ct=="function"?Ct():Ct}),rr=(0,ne.Z)(nr,2),gr=rr[0],Jr=rr[1],jr=Un!==void 0?Un:gr,xi=Mn?Mn(jr):jr,Qr=ce(Nn),ci=xe([jr]),qr=(0,ne.Z)(ci,2),wi=qr[0],Hi=qr[1];Se(function(){var fa=wi[0];gr!==fa&&Qr(gr,fa)},[wi]),Se(function(){ge(Un)||Jr(Un)},[Un]);var oa=ce(function(fa,qi){Jr(fa,qi),Hi([jr],qi)});return[xi,oa]}var ye={};function be(Ct,Lt){}function Fe(Ct,Lt){}function ke(){ye={}}function De(Ct,Lt,dn){!Lt&&!ye[dn]&&(Ct(!1,dn),ye[dn]=!0)}function Le(Ct,Lt){De(be,Ct,Lt)}function Ie(Ct,Lt){De(Fe,Ct,Lt)}var Be=Le,Ue=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ct=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ct)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ct==null?void 0:Ct.substr(0,4))},_e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Lt){var dn=Lt.keyCode;if(Lt.altKey&&!Lt.ctrlKey||Lt.metaKey||dn>=_e.F1&&dn<=_e.F12)return!1;switch(dn){case _e.ALT:case _e.CAPS_LOCK:case _e.CONTEXT_MENU:case _e.CTRL:case _e.DOWN:case _e.END:case _e.ESC:case _e.HOME:case _e.INSERT:case _e.LEFT:case _e.MAC_FF_META:case _e.META:case _e.NUMLOCK:case _e.NUM_CENTER:case _e.PAGE_DOWN:case _e.PAGE_UP:case _e.PAUSE:case _e.PRINT_SCREEN:case _e.RIGHT:case _e.SHIFT:case _e.UP:case _e.WIN_KEY:case _e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Lt){if(Lt>=_e.ZERO&&Lt<=_e.NINE||Lt>=_e.NUM_ZERO&&Lt<=_e.NUM_MULTIPLY||Lt>=_e.A&&Lt<=_e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Lt===0)return!0;switch(Lt){case _e.SPACE:case _e.QUESTION_MARK:case _e.NUM_PLUS:case _e.NUM_MINUS:case _e.NUM_PERIOD:case _e.NUM_DIVISION:case _e.SEMICOLON:case _e.DASH:case _e.EQUALS:case _e.COMMA:case _e.PERIOD:case _e.SLASH:case _e.APOSTROPHE:case _e.SINGLE_QUOTE:case _e.OPEN_SQUARE_BRACKET:case _e.BACKSLASH:case _e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},We=_e,Ze=me(16357);function et(Ct,Lt,dn){var un=Je.useRef({});return(!("value"in un.current)||dn(un.current.condition,Lt))&&(un.current.value=Ct(),un.current.condition=Lt),un.current.value}function it(Ct,Lt){typeof Ct=="function"?Ct(Lt):(0,se.Z)(Ct)==="object"&&Ct&&"current"in Ct&&(Ct.current=Lt)}function pt(){for(var Ct=arguments.length,Lt=new Array(Ct),dn=0;dn<Ct;dn++)Lt[dn]=arguments[dn];var un=Lt.filter(function(Un){return Un});return un.length<=1?un[0]:function(Un){Lt.forEach(function(Nn){it(Nn,Un)})}}function Ge(){for(var Ct=arguments.length,Lt=new Array(Ct),dn=0;dn<Ct;dn++)Lt[dn]=arguments[dn];return et(function(){return pt.apply(void 0,Lt)},Lt,function(un,Un){return un.length===Un.length&&un.every(function(Nn,Mn){return Nn===Un[Mn]})})}function Xe(Ct){var Lt,dn,un=isMemo(Ct)?Ct.type.type:Ct.type;return!(typeof un=="function"&&!((Lt=un.prototype)!==null&&Lt!==void 0&&Lt.render)||typeof Ct=="function"&&!((dn=Ct.prototype)!==null&&dn!==void 0&&dn.render))}var lt=function(Lt){var dn=Lt.className,un=Lt.customizeIcon,Un=Lt.customizeIconProps,Nn=Lt.onMouseDown,Mn=Lt.onClick,nr=Lt.children,rr;return typeof un=="function"?rr=un(Un):rr=un,Je.createElement("span",{className:dn,onMouseDown:function(Jr){Jr.preventDefault(),Nn&&Nn(Jr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Mn,"aria-hidden":!0},rr!==void 0?rr:Je.createElement("span",{className:te()(dn.split(/\s+/).map(function(gr){return"".concat(gr,"-icon")}))},nr))},dt=lt;function st(Ct,Lt,dn,un,Un){var Nn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Mn=arguments.length>6?arguments[6]:void 0,nr=arguments.length>7?arguments[7]:void 0,rr=Je.useMemo(function(){if((0,se.Z)(un)==="object")return un.clearIcon;if(Un)return Un},[un,Un]),gr=Je.useMemo(function(){return!!(!Nn&&un&&(dn.length||Mn)&&!(nr==="combobox"&&Mn===""))},[un,Nn,dn.length,Mn,nr]);return{allowClear:gr,clearIcon:Je.createElement(dt,{className:"".concat(Ct,"-clear"),onMouseDown:Lt,customizeIcon:rr},"\xD7")}}var nt=Je.createContext(null);function rt(){return Je.useContext(nt)}function at(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Lt=Je.useState(!1),dn=(0,ne.Z)(Lt,2),un=dn[0],Un=dn[1],Nn=Je.useRef(null),Mn=function(){window.clearTimeout(Nn.current)};Je.useEffect(function(){return Mn},[]);var nr=function(gr,Jr){Mn(),Nn.current=window.setTimeout(function(){Un(gr),Jr&&Jr()},Ct)};return[un,nr,Mn]}function gt(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Lt=Je.useRef(null),dn=Je.useRef(null);Je.useEffect(function(){return function(){window.clearTimeout(dn.current)}},[]);function un(Un){(Un||Lt.current===null)&&(Lt.current=Un),window.clearTimeout(dn.current),dn.current=window.setTimeout(function(){Lt.current=null},Ct)}return[function(){return Lt.current},un]}function vt(Ct,Lt,dn,un){var Un=Je.useRef(null);Un.current={open:Lt,triggerOpen:dn,customizedTrigger:un},Je.useEffect(function(){function Nn(Mn){var nr;if(!((nr=Un.current)!==null&&nr!==void 0&&nr.customizedTrigger)){var rr=Mn.target;rr.shadowRoot&&Mn.composed&&(rr=Mn.composedPath()[0]||rr),Un.current.open&&Ct().filter(function(gr){return gr}).every(function(gr){return!gr.contains(rr)&&gr!==rr})&&Un.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Nn),function(){return window.removeEventListener("mousedown",Nn)}},[])}var Et=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,At=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ut="".concat(Et," ").concat(At).split(/[\s\n]+/),Ye="aria-",Ve="data-";function de(Ct,Lt){return Ct.indexOf(Lt)===0}function Ce(Ct){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dn;Lt===!1?dn={aria:!0,data:!0,attr:!0}:Lt===!0?dn={aria:!0}:dn=(0,re.Z)({},Lt);var un={};return Object.keys(Ct).forEach(function(Un){(dn.aria&&(Un==="role"||de(Un,Ye))||dn.data&&de(Un,Ve)||dn.attr&&ut.includes(Un))&&(un[Un]=Ct[Un])}),un}var He=me(48555);function je(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ae=je()?Je.useLayoutEffect:Je.useEffect,Ne=function(Lt,dn){var un=Je.useRef(!0);Ae(function(){return Lt(un.current)},dn),Ae(function(){return un.current=!1,function(){un.current=!0}},[])},ze=function(Lt,dn){Ne(function(un){if(!un)return Lt()},dn)},Qe=Ne,ot=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],mt=void 0;function Ot(Ct,Lt){var dn=Ct.prefixCls,un=Ct.invalidate,Un=Ct.item,Nn=Ct.renderItem,Mn=Ct.responsive,nr=Ct.responsiveDisabled,rr=Ct.registerSize,gr=Ct.itemKey,Jr=Ct.className,jr=Ct.style,xi=Ct.children,Qr=Ct.display,ci=Ct.order,qr=Ct.component,wi=qr===void 0?"div":qr,Hi=(0,oe.Z)(Ct,ot),oa=Mn&&!Qr;function fa(Aa){rr(gr,Aa)}Je.useEffect(function(){return function(){fa(null)}},[]);var qi=Nn&&Un!==mt?Nn(Un):xi,va;un||(va={opacity:oa?0:1,height:oa?0:mt,overflowY:oa?"hidden":mt,order:Mn?ci:mt,pointerEvents:oa?"none":mt,position:oa?"absolute":mt});var Bi={};oa&&(Bi["aria-hidden"]=!0);var ga=Je.createElement(wi,(0,ae.Z)({className:te()(!un&&dn,Jr),style:(0,re.Z)((0,re.Z)({},va),jr)},Bi,Hi,{ref:Lt}),qi);return Mn&&(ga=Je.createElement(He.Z,{onResize:function(si){var fi=si.offsetWidth;fa(fi)},disabled:nr},ga)),ga}var xt=Je.forwardRef(Ot);xt.displayName="Item";var Ut=xt;function xn(Ct){var Lt=Je.useRef();Lt.current=Ct;var dn=Je.useCallback(function(){for(var un,Un=arguments.length,Nn=new Array(Un),Mn=0;Mn<Un;Mn++)Nn[Mn]=arguments[Mn];return(un=Lt.current)===null||un===void 0?void 0:un.call.apply(un,[Lt].concat(Nn))},[]);return dn}var Ft=me(73935),Qt=function(Lt){return+setTimeout(Lt,16)},Zt=function(Lt){return clearTimeout(Lt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Qt=function(Lt){return window.requestAnimationFrame(Lt)},Zt=function(Lt){return window.cancelAnimationFrame(Lt)});var bn=0,Pt=new Map;function zt(Ct){Pt.delete(Ct)}var sn=function(Lt){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;bn+=1;var un=bn;function Un(Nn){if(Nn===0)zt(un),Lt();else{var Mn=Qt(function(){Un(Nn-1)});Pt.set(un,Mn)}}return Un(dn),un};sn.cancel=function(Ct){var Lt=Pt.get(Ct);return zt(Lt),Zt(Lt)};var yn=sn;function kn(Ct){if(typeof MessageChannel=="undefined")yn(Ct);else{var Lt=new MessageChannel;Lt.port1.onmessage=function(){return Ct()},Lt.port2.postMessage(void 0)}}function Gn(){var Ct=Je.useRef(null),Lt=function(un){Ct.current||(Ct.current=[],kn(function(){(0,Ft.unstable_batchedUpdates)(function(){Ct.current.forEach(function(Un){Un()}),Ct.current=null})})),Ct.current.push(un)};return Lt}function dr(Ct,Lt){var dn=Je.useState(Lt),un=(0,ne.Z)(dn,2),Un=un[0],Nn=un[1],Mn=xn(function(nr){Ct(function(){Nn(nr)})});return[Un,Mn]}var Or=Je.createContext(null),zr=["component"],Hr=["className"],Dr=["className"],Kr=function(Lt,dn){var un=Je.useContext(Or);if(!un){var Un=Lt.component,Nn=Un===void 0?"div":Un,Mn=(0,oe.Z)(Lt,zr);return Je.createElement(Nn,(0,ae.Z)({},Mn,{ref:dn}))}var nr=un.className,rr=(0,oe.Z)(un,Hr),gr=Lt.className,Jr=(0,oe.Z)(Lt,Dr);return Je.createElement(Or.Provider,{value:null},Je.createElement(Ut,(0,ae.Z)({ref:dn,className:te()(nr,gr)},rr,Jr)))},Ai=Je.forwardRef(Kr);Ai.displayName="RawItem";var Di=Ai,Zi=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],di="responsive",rn="invalidate";function zn(Ct){return"+ ".concat(Ct.length," ...")}function fr(Ct,Lt){var dn=Ct.prefixCls,un=dn===void 0?"rc-overflow":dn,Un=Ct.data,Nn=Un===void 0?[]:Un,Mn=Ct.renderItem,nr=Ct.renderRawItem,rr=Ct.itemKey,gr=Ct.itemWidth,Jr=gr===void 0?10:gr,jr=Ct.ssr,xi=Ct.style,Qr=Ct.className,ci=Ct.maxCount,qr=Ct.renderRest,wi=Ct.renderRawRest,Hi=Ct.suffix,oa=Ct.component,fa=oa===void 0?"div":oa,qi=Ct.itemComponent,va=Ct.onVisibleChange,Bi=(0,oe.Z)(Ct,Zi),ga=jr==="full",Aa=Gn(),si=dr(Aa,null),fi=(0,ne.Z)(si,2),ki=fi[0],Ia=fi[1],ma=ki||0,Ca=dr(Aa,new Map),ya=(0,ne.Z)(Ca,2),Na=ya[0],Ba=ya[1],Za=dr(Aa,0),eo=(0,ne.Z)(Za,2),Wo=eo[0],ro=eo[1],Io=dr(Aa,0),vs=(0,ne.Z)(Io,2),$a=vs[0],ea=vs[1],ta=dr(Aa,0),ba=(0,ne.Z)(ta,2),Gi=ba[0],gi=ba[1],na=(0,Je.useState)(null),Xi=(0,ne.Z)(na,2),Pa=Xi[0],Ua=Xi[1],Ya=(0,Je.useState)(null),Ma=(0,ne.Z)(Ya,2),oo=Ma[0],Oo=Ma[1],So=Je.useMemo(function(){return oo===null&&ga?Number.MAX_SAFE_INTEGER:oo||0},[oo,ki]),jo=(0,Je.useState)(!1),ts=(0,ne.Z)(jo,2),_o=ts[0],ks=ts[1],xs="".concat(un,"-item"),js=Math.max(Wo,$a),ns=ci===di,Ko=Nn.length&&ns,ws=ci===rn,ss=Ko||typeof ci=="number"&&Nn.length>ci,qo=(0,Je.useMemo)(function(){var to=Nn;return Ko?ki===null&&ga?to=Nn:to=Nn.slice(0,Math.min(Nn.length,ma/Jr)):typeof ci=="number"&&(to=Nn.slice(0,ci)),to},[Nn,Jr,ki,ci,Ko]),Ls=(0,Je.useMemo)(function(){return Ko?Nn.slice(So+1):Nn.slice(qo.length)},[Nn,qo,Ko,So]),Es=(0,Je.useCallback)(function(to,yi){var Yi;return typeof rr=="function"?rr(to):(Yi=rr&&(to==null?void 0:to[rr]))!==null&&Yi!==void 0?Yi:yi},[rr]),Qo=(0,Je.useCallback)(Mn||function(to){return to},[Mn]);function Zs(to,yi,Yi){oo===to&&(yi===void 0||yi===Pa)||(Oo(to),Yi||(ks(to<Nn.length-1),va==null||va(to)),yi!==void 0&&Ua(yi))}function Ol(to,yi){Ia(yi.clientWidth)}function xl(to,yi){Ba(function(Yi){var ka=new Map(Yi);return yi===null?ka.delete(to):ka.set(to,yi),ka})}function ls(to,yi){ea(yi),ro($a)}function Co(to,yi){gi(yi)}function cs(to){return Na.get(Es(qo[to],to))}Qe(function(){if(ma&&typeof js=="number"&&qo){var to=Gi,yi=qo.length,Yi=yi-1;if(!yi){Zs(0,null);return}for(var ka=0;ka<yi;ka+=1){var Va=cs(ka);if(ga&&(Va=Va||0),Va===void 0){Zs(ka-1,void 0,!0);break}if(to+=Va,Yi===0&&to<=ma||ka===Yi-1&&to+cs(Yi)<=ma){Zs(Yi,null);break}else if(to+js>ma){Zs(ka-1,to-Va-Gi+$a);break}}Hi&&cs(0)+Gi>ma&&Ua(null)}},[ma,Na,$a,Gi,Es,qo]);var Gs=_o&&!!Ls.length,tl={};Pa!==null&&Ko&&(tl={position:"absolute",left:Pa,top:0});var Jo={prefixCls:xs,responsive:Ko,component:qi,invalidate:ws},No=nr?function(to,yi){var Yi=Es(to,yi);return Je.createElement(Or.Provider,{key:Yi,value:(0,re.Z)((0,re.Z)({},Jo),{},{order:yi,item:to,itemKey:Yi,registerSize:xl,display:yi<=So})},nr(to,yi))}:function(to,yi){var Yi=Es(to,yi);return Je.createElement(Ut,(0,ae.Z)({},Jo,{order:yi,key:Yi,item:to,renderItem:Qo,itemKey:Yi,registerSize:xl,display:yi<=So}))},Zo,Ks={order:Gs?So:Number.MAX_SAFE_INTEGER,className:"".concat(xs,"-rest"),registerSize:ls,display:Gs};if(wi)wi&&(Zo=Je.createElement(Or.Provider,{value:(0,re.Z)((0,re.Z)({},Jo),Ks)},wi(Ls)));else{var As=qr||zn;Zo=Je.createElement(Ut,(0,ae.Z)({},Jo,Ks),typeof As=="function"?As(Ls):As)}var zs=Je.createElement(fa,(0,ae.Z)({className:te()(!ws&&un,Qr),style:xi,ref:Lt},Bi),qo.map(No),ss?Zo:null,Hi&&Je.createElement(Ut,(0,ae.Z)({},Jo,{responsive:ns,responsiveDisabled:!Ko,order:So,className:"".concat(xs,"-suffix"),registerSize:Co,display:!0,style:tl}),Hi));return ns&&(zs=Je.createElement(He.Z,{onResize:Ol,disabled:!Ko},zs)),zs}var lr=Je.forwardRef(fr);lr.displayName="Overflow",lr.Item=Di,lr.RESPONSIVE=di,lr.INVALIDATE=rn;var Tr=lr,Pr=Tr,Gr=function(Lt,dn){var un,Un,Nn=Lt.prefixCls,Mn=Lt.id,nr=Lt.inputElement,rr=Lt.disabled,gr=Lt.tabIndex,Jr=Lt.autoFocus,jr=Lt.autoComplete,xi=Lt.editable,Qr=Lt.activeDescendantId,ci=Lt.value,qr=Lt.maxLength,wi=Lt.onKeyDown,Hi=Lt.onMouseDown,oa=Lt.onChange,fa=Lt.onPaste,qi=Lt.onCompositionStart,va=Lt.onCompositionEnd,Bi=Lt.open,ga=Lt.attrs,Aa=nr||Je.createElement("input",null),si=Aa,fi=si.ref,ki=si.props,Ia=ki.onKeyDown,ma=ki.onChange,Ca=ki.onMouseDown,ya=ki.onCompositionStart,Na=ki.onCompositionEnd,Ba=ki.style;return"maxLength"in Aa.props,Aa=Je.cloneElement(Aa,(0,re.Z)((0,re.Z)((0,re.Z)({type:"search"},ki),{},{id:Mn,ref:pt(dn,fi),disabled:rr,tabIndex:gr,autoComplete:jr||"off",autoFocus:Jr,className:te()("".concat(Nn,"-selection-search-input"),(un=Aa)===null||un===void 0||(Un=un.props)===null||Un===void 0?void 0:Un.className),role:"combobox","aria-label":"Search","aria-expanded":Bi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Mn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Mn,"_list"),"aria-activedescendant":Bi?Qr:void 0},ga),{},{value:xi?ci:"",maxLength:qr,readOnly:!xi,unselectable:xi?null:"on",style:(0,re.Z)((0,re.Z)({},Ba),{},{opacity:xi?null:0}),onKeyDown:function(eo){wi(eo),Ia&&Ia(eo)},onMouseDown:function(eo){Hi(eo),Ca&&Ca(eo)},onChange:function(eo){oa(eo),ma&&ma(eo)},onCompositionStart:function(eo){qi(eo),ya&&ya(eo)},onCompositionEnd:function(eo){va(eo),Na&&Na(eo)},onPaste:fa})),Aa},Er=Je.forwardRef(Gr);Er.displayName="Input";var Wt=Er;function $t(Ct){return Array.isArray(Ct)?Ct:Ct!==void 0?[Ct]:[]}var cn=typeof window!="undefined"&&window.document&&window.document.documentElement,Rn=cn;function jt(Ct){return Ct!=null}function an(Ct){return!Ct&&Ct!==0}function Tn(Ct){return["string","number"].includes((0,se.Z)(Ct))}function vn(Ct){var Lt=void 0;return Ct&&(Tn(Ct.title)?Lt=Ct.title.toString():Tn(Ct.label)&&(Lt=Ct.label.toString())),Lt}function Bn(Ct,Lt){Rn?Je.useLayoutEffect(Ct,Lt):Je.useEffect(Ct,Lt)}function _n(Ct){var Lt;return(Lt=Ct.key)!==null&&Lt!==void 0?Lt:Ct.value}var hr=function(Lt){Lt.preventDefault(),Lt.stopPropagation()},ei=function(Lt){var dn=Lt.id,un=Lt.prefixCls,Un=Lt.values,Nn=Lt.open,Mn=Lt.searchValue,nr=Lt.autoClearSearchValue,rr=Lt.inputRef,gr=Lt.placeholder,Jr=Lt.disabled,jr=Lt.mode,xi=Lt.showSearch,Qr=Lt.autoFocus,ci=Lt.autoComplete,qr=Lt.activeDescendantId,wi=Lt.tabIndex,Hi=Lt.removeIcon,oa=Lt.maxTagCount,fa=Lt.maxTagTextLength,qi=Lt.maxTagPlaceholder,va=qi===void 0?function(Ua){return"+ ".concat(Ua.length," ...")}:qi,Bi=Lt.tagRender,ga=Lt.onToggleOpen,Aa=Lt.onRemove,si=Lt.onInputChange,fi=Lt.onInputPaste,ki=Lt.onInputKeyDown,Ia=Lt.onInputMouseDown,ma=Lt.onInputCompositionStart,Ca=Lt.onInputCompositionEnd,ya=Je.useRef(null),Na=(0,Je.useState)(0),Ba=(0,ne.Z)(Na,2),Za=Ba[0],eo=Ba[1],Wo=(0,Je.useState)(!1),ro=(0,ne.Z)(Wo,2),Io=ro[0],vs=ro[1],$a="".concat(un,"-selection"),ea=Nn||jr==="multiple"&&nr===!1||jr==="tags"?Mn:"",ta=jr==="tags"||jr==="multiple"&&nr===!1||xi&&(Nn||Io);Bn(function(){eo(ya.current.scrollWidth)},[ea]);function ba(Ua,Ya,Ma,oo,Oo){return Je.createElement("span",{className:te()("".concat($a,"-item"),(0,he.Z)({},"".concat($a,"-item-disabled"),Ma)),title:vn(Ua)},Je.createElement("span",{className:"".concat($a,"-item-content")},Ya),oo&&Je.createElement(dt,{className:"".concat($a,"-item-remove"),onMouseDown:hr,onClick:Oo,customizeIcon:Hi},"\xD7"))}function Gi(Ua,Ya,Ma,oo,Oo){var So=function(ts){hr(ts),ga(!Nn)};return Je.createElement("span",{onMouseDown:So},Bi({label:Ya,value:Ua,disabled:Ma,closable:oo,onClose:Oo}))}function gi(Ua){var Ya=Ua.disabled,Ma=Ua.label,oo=Ua.value,Oo=!Jr&&!Ya,So=Ma;if(typeof fa=="number"&&(typeof Ma=="string"||typeof Ma=="number")){var jo=String(So);jo.length>fa&&(So="".concat(jo.slice(0,fa),"..."))}var ts=function(ks){ks&&ks.stopPropagation(),Aa(Ua)};return typeof Bi=="function"?Gi(oo,So,Ya,Oo,ts):ba(Ua,So,Ya,Oo,ts)}function na(Ua){var Ya=typeof va=="function"?va(Ua):va;return ba({title:Ya},Ya,!1)}var Xi=Je.createElement("div",{className:"".concat($a,"-search"),style:{width:Za},onFocus:function(){vs(!0)},onBlur:function(){vs(!1)}},Je.createElement(Wt,{ref:rr,open:Nn,prefixCls:un,id:dn,inputElement:null,disabled:Jr,autoFocus:Qr,autoComplete:ci,editable:ta,activeDescendantId:qr,value:ea,onKeyDown:ki,onMouseDown:Ia,onChange:si,onPaste:fi,onCompositionStart:ma,onCompositionEnd:Ca,tabIndex:wi,attrs:Ce(Lt,!0)}),Je.createElement("span",{ref:ya,className:"".concat($a,"-search-mirror"),"aria-hidden":!0},ea,"\xA0")),Pa=Je.createElement(Pr,{prefixCls:"".concat($a,"-overflow"),data:Un,renderItem:gi,renderRest:na,suffix:Xi,itemKey:_n,maxCount:oa});return Je.createElement(Je.Fragment,null,Pa,!Un.length&&!ea&&Je.createElement("span",{className:"".concat($a,"-placeholder")},gr))},Ir=ei,Lr=function(Lt){var dn=Lt.inputElement,un=Lt.prefixCls,Un=Lt.id,Nn=Lt.inputRef,Mn=Lt.disabled,nr=Lt.autoFocus,rr=Lt.autoComplete,gr=Lt.activeDescendantId,Jr=Lt.mode,jr=Lt.open,xi=Lt.values,Qr=Lt.placeholder,ci=Lt.tabIndex,qr=Lt.showSearch,wi=Lt.searchValue,Hi=Lt.activeValue,oa=Lt.maxLength,fa=Lt.onInputKeyDown,qi=Lt.onInputMouseDown,va=Lt.onInputChange,Bi=Lt.onInputPaste,ga=Lt.onInputCompositionStart,Aa=Lt.onInputCompositionEnd,si=Lt.title,fi=Je.useState(!1),ki=(0,ne.Z)(fi,2),Ia=ki[0],ma=ki[1],Ca=Jr==="combobox",ya=Ca||qr,Na=xi[0],Ba=wi||"";Ca&&Hi&&!Ia&&(Ba=Hi),Je.useEffect(function(){Ca&&ma(!1)},[Ca,Hi]);var Za=Jr!=="combobox"&&!jr&&!qr?!1:!!Ba,eo=si===void 0?vn(Na):si,Wo=function(){if(Na)return null;var Io=Za?{visibility:"hidden"}:void 0;return Je.createElement("span",{className:"".concat(un,"-selection-placeholder"),style:Io},Qr)};return Je.createElement(Je.Fragment,null,Je.createElement("span",{className:"".concat(un,"-selection-search")},Je.createElement(Wt,{ref:Nn,prefixCls:un,id:Un,open:jr,inputElement:dn,disabled:Mn,autoFocus:nr,autoComplete:rr,editable:ya,activeDescendantId:gr,value:Ba,onKeyDown:fa,onMouseDown:qi,onChange:function(Io){ma(!0),va(Io)},onPaste:Bi,onCompositionStart:ga,onCompositionEnd:Aa,tabIndex:ci,attrs:Ce(Lt,!0),maxLength:Ca?oa:void 0})),!Ca&&Na?Je.createElement("span",{className:"".concat(un,"-selection-item"),title:eo,style:Za?{visibility:"hidden"}:void 0},Na.label):null,Wo())},Wr=Lr;function Vr(Ct){return![We.ESC,We.SHIFT,We.BACKSPACE,We.TAB,We.WIN_KEY,We.ALT,We.META,We.WIN_KEY_RIGHT,We.CTRL,We.SEMICOLON,We.EQUALS,We.CAPS_LOCK,We.CONTEXT_MENU,We.F1,We.F2,We.F3,We.F4,We.F5,We.F6,We.F7,We.F8,We.F9,We.F10,We.F11,We.F12].includes(Ct)}var nn=function(Lt,dn){var un=(0,Je.useRef)(null),Un=(0,Je.useRef)(!1),Nn=Lt.prefixCls,Mn=Lt.open,nr=Lt.mode,rr=Lt.showSearch,gr=Lt.tokenWithEnter,Jr=Lt.autoClearSearchValue,jr=Lt.onSearch,xi=Lt.onSearchSubmit,Qr=Lt.onToggleOpen,ci=Lt.onInputKeyDown,qr=Lt.domRef;Je.useImperativeHandle(dn,function(){return{focus:function(){un.current.focus()},blur:function(){un.current.blur()}}});var wi=gt(0),Hi=(0,ne.Z)(wi,2),oa=Hi[0],fa=Hi[1],qi=function(Ba){var Za=Ba.which;(Za===We.UP||Za===We.DOWN)&&Ba.preventDefault(),ci&&ci(Ba),Za===We.ENTER&&nr==="tags"&&!Un.current&&!Mn&&(xi==null||xi(Ba.target.value)),Vr(Za)&&Qr(!0)},va=function(){fa(!0)},Bi=(0,Je.useRef)(null),ga=function(Ba){jr(Ba,!0,Un.current)!==!1&&Qr(!0)},Aa=function(){Un.current=!0},si=function(Ba){Un.current=!1,nr!=="combobox"&&ga(Ba.target.value)},fi=function(Ba){var Za=Ba.target.value;if(gr&&Bi.current&&/[\r\n]/.test(Bi.current)){var eo=Bi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Za=Za.replace(eo,Bi.current)}Bi.current=null,ga(Za)},ki=function(Ba){var Za=Ba.clipboardData,eo=Za.getData("text");Bi.current=eo},Ia=function(Ba){var Za=Ba.target;if(Za!==un.current){var eo=document.body.style.msTouchAction!==void 0;eo?setTimeout(function(){un.current.focus()}):un.current.focus()}},ma=function(Ba){var Za=oa();Ba.target!==un.current&&!Za&&nr!=="combobox"&&Ba.preventDefault(),(nr!=="combobox"&&(!rr||!Za)||!Mn)&&(Mn&&Jr!==!1&&jr("",!0,!1),Qr())},Ca={inputRef:un,onInputKeyDown:qi,onInputMouseDown:va,onInputChange:fi,onInputPaste:ki,onInputCompositionStart:Aa,onInputCompositionEnd:si},ya=nr==="multiple"||nr==="tags"?Je.createElement(Ir,(0,ae.Z)({},Lt,Ca)):Je.createElement(Wr,(0,ae.Z)({},Lt,Ca));return Je.createElement("div",{ref:qr,className:"".concat(Nn,"-selector"),onClick:Ia,onMouseDown:ma},ya)},Jt=Je.forwardRef(nn);Jt.displayName="Selector";var pn=Jt,tr=me(62709),Ar=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],jn=function(Lt){var dn=Lt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"}}},Jn=function(Lt,dn){var un=Lt.prefixCls,Un=Lt.disabled,Nn=Lt.visible,Mn=Lt.children,nr=Lt.popupElement,rr=Lt.animation,gr=Lt.transitionName,Jr=Lt.dropdownStyle,jr=Lt.dropdownClassName,xi=Lt.direction,Qr=xi===void 0?"ltr":xi,ci=Lt.placement,qr=Lt.builtinPlacements,wi=Lt.dropdownMatchSelectWidth,Hi=Lt.dropdownRender,oa=Lt.dropdownAlign,fa=Lt.getPopupContainer,qi=Lt.empty,va=Lt.getTriggerDOMNode,Bi=Lt.onPopupVisibleChange,ga=Lt.onPopupMouseEnter,Aa=(0,oe.Z)(Lt,Ar),si="".concat(un,"-dropdown"),fi=nr;Hi&&(fi=Hi(nr));var ki=Je.useMemo(function(){return qr||jn(wi)},[qr,wi]),Ia=rr?"".concat(si,"-").concat(rr):gr,ma=typeof wi=="number",Ca=Je.useMemo(function(){return ma?null:wi===!1?"minWidth":"width"},[wi,ma]),ya=Jr;ma&&(ya=(0,re.Z)((0,re.Z)({},ya),{},{width:wi}));var Na=Je.useRef(null);return Je.useImperativeHandle(dn,function(){return{getPopupElement:function(){return Na.current}}}),Je.createElement(tr.Z,(0,ae.Z)({},Aa,{showAction:Bi?["click"]:[],hideAction:Bi?["click"]:[],popupPlacement:ci||(Qr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ki,prefixCls:si,popupTransitionName:Ia,popup:Je.createElement("div",{ref:Na,onMouseEnter:ga},fi),stretch:Ca,popupAlign:oa,popupVisible:Nn,getPopupContainer:fa,popupClassName:te()(jr,(0,he.Z)({},"".concat(si,"-empty"),qi)),popupStyle:ya,getTriggerDOMNode:va,onPopupVisibleChange:Bi}),Mn)},ir=Je.forwardRef(Jn);ir.displayName="SelectTrigger";var kr=ir,Ur=me(84506);function Wn(Ct,Lt){var dn=Ct.key,un;return"value"in Ct&&(un=Ct.value),dn!=null?dn:un!==void 0?un:"rc-index-key-".concat(Lt)}function Oi(Ct,Lt){var dn=Ct||{},un=dn.label,Un=dn.value,Nn=dn.options,Mn=dn.groupLabel,nr=un||(Lt?"children":"label");return{label:nr,value:Un||"value",options:Nn||"options",groupLabel:Mn||nr}}function bi(Ct){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dn=Lt.fieldNames,un=Lt.childrenAsData,Un=[],Nn=Oi(dn,!1),Mn=Nn.label,nr=Nn.value,rr=Nn.options,gr=Nn.groupLabel;function Jr(jr,xi){jr.forEach(function(Qr){if(xi||!(rr in Qr)){var ci=Qr[nr];Un.push({key:Wn(Qr,Un.length),groupOption:xi,data:Qr,label:Qr[Mn],value:ci})}else{var qr=Qr[gr];qr===void 0&&un&&(qr=Qr.label),Un.push({key:Wn(Qr,Un.length),group:!0,data:Qr,label:qr}),Jr(Qr[rr],!0)}})}return Jr(Ct,!1),Un}function xa(Ct){var Lt=(0,re.Z)({},Ct);return"props"in Lt||Object.defineProperty(Lt,"props",{get:function(){return Be(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Lt}}),Lt}function ha(Ct,Lt){if(!Lt||!Lt.length)return null;var dn=!1;function un(Nn,Mn){var nr=(0,Ur.Z)(Mn),rr=nr[0],gr=nr.slice(1);if(!rr)return[Nn];var Jr=Nn.split(rr);return dn=dn||Jr.length>1,Jr.reduce(function(jr,xi){return[].concat((0,Oe.Z)(jr),(0,Oe.Z)(un(xi,gr)))},[]).filter(function(jr){return jr})}var Un=un(Ct,Lt);return dn?Un:null}var ia=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ha=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ji(Ct){return Ct==="tags"||Ct==="multiple"}var Wi=Je.forwardRef(function(Ct,Lt){var dn,un,Un=Ct.id,Nn=Ct.prefixCls,Mn=Ct.className,nr=Ct.showSearch,rr=Ct.tagRender,gr=Ct.direction,Jr=Ct.omitDomProps,jr=Ct.displayValues,xi=Ct.onDisplayValuesChange,Qr=Ct.emptyOptions,ci=Ct.notFoundContent,qr=ci===void 0?"Not Found":ci,wi=Ct.onClear,Hi=Ct.mode,oa=Ct.disabled,fa=Ct.loading,qi=Ct.getInputElement,va=Ct.getRawInputElement,Bi=Ct.open,ga=Ct.defaultOpen,Aa=Ct.onDropdownVisibleChange,si=Ct.activeValue,fi=Ct.onActiveValueChange,ki=Ct.activeDescendantId,Ia=Ct.searchValue,ma=Ct.autoClearSearchValue,Ca=Ct.onSearch,ya=Ct.onSearchSplit,Na=Ct.tokenSeparators,Ba=Ct.allowClear,Za=Ct.suffixIcon,eo=Ct.clearIcon,Wo=Ct.OptionList,ro=Ct.animation,Io=Ct.transitionName,vs=Ct.dropdownStyle,$a=Ct.dropdownClassName,ea=Ct.dropdownMatchSelectWidth,ta=Ct.dropdownRender,ba=Ct.dropdownAlign,Gi=Ct.placement,gi=Ct.builtinPlacements,na=Ct.getPopupContainer,Xi=Ct.showAction,Pa=Xi===void 0?[]:Xi,Ua=Ct.onFocus,Ya=Ct.onBlur,Ma=Ct.onKeyUp,oo=Ct.onKeyDown,Oo=Ct.onMouseDown,So=(0,oe.Z)(Ct,ia),jo=Ji(Hi),ts=(nr!==void 0?nr:jo)||Hi==="combobox",_o=(0,re.Z)({},So);Ha.forEach(function(go){delete _o[go]}),Jr==null||Jr.forEach(function(go){delete _o[go]});var ks=Je.useState(!1),xs=(0,ne.Z)(ks,2),js=xs[0],ns=xs[1];Je.useEffect(function(){ns(Ue())},[]);var Ko=Je.useRef(null),ws=Je.useRef(null),ss=Je.useRef(null),qo=Je.useRef(null),Ls=Je.useRef(null),Es=at(),Qo=(0,ne.Z)(Es,3),Zs=Qo[0],Ol=Qo[1],xl=Qo[2];Je.useImperativeHandle(Lt,function(){var go,yo;return{focus:(go=qo.current)===null||go===void 0?void 0:go.focus,blur:(yo=qo.current)===null||yo===void 0?void 0:yo.blur,scrollTo:function(nl){var gs;return(gs=Ls.current)===null||gs===void 0?void 0:gs.scrollTo(nl)}}});var ls=Je.useMemo(function(){var go;if(Hi!=="combobox")return Ia;var yo=(go=jr[0])===null||go===void 0?void 0:go.value;return typeof yo=="string"||typeof yo=="number"?String(yo):""},[Ia,Hi,jr]),Co=Hi==="combobox"&&typeof qi=="function"&&qi()||null,cs=typeof va=="function"&&va(),Gs=Ge(ws,cs==null||(dn=cs.props)===null||dn===void 0?void 0:dn.ref),tl=Je.useState(!1),Jo=(0,ne.Z)(tl,2),No=Jo[0],Zo=Jo[1];le(function(){Zo(!0)},[]);var Ks=Me(!1,{defaultValue:ga,value:Bi}),As=(0,ne.Z)(Ks,2),zs=As[0],to=As[1],yi=No?zs:!1,Yi=!qr&&Qr;(oa||Yi&&yi&&Hi==="combobox")&&(yi=!1);var ka=Yi?!1:yi,Va=Je.useCallback(function(go){var yo=go!==void 0?go:!yi;oa||(to(yo),yi!==yo&&(Aa==null||Aa(yo)))},[oa,yi,to,Aa]),Go=Je.useMemo(function(){return(Na||[]).some(function(go){return[`
|
|
|
`,`\r
|
|
|
`].includes(go)})},[Na]),Xo=function(yo,Ss,nl){var gs=!0,yl=yo;fi==null||fi(null);var ol=nl?null:ha(yo,Na);return Hi!=="combobox"&&ol&&(yl="",ya==null||ya(ol),Va(!1),gs=!1),Ca&&ls!==yl&&Ca(yl,{source:Ss?"typing":"effect"}),gs},gl=function(yo){!yo||!yo.trim()||Ca(yo,{source:"submit"})};Je.useEffect(function(){!yi&&!jo&&Hi!=="combobox"&&Xo("",!1,!1)},[yi]),Je.useEffect(function(){zs&&oa&&to(!1),oa&&Ol(!1)},[oa]);var Js=gt(),Dl=(0,ne.Z)(Js,2),Ps=Dl[0],Il=Dl[1],ac=function(yo){var Ss=Ps(),nl=yo.which;if(nl===We.ENTER&&(Hi!=="combobox"&&yo.preventDefault(),yi||Va(!0)),Il(!!ls),nl===We.BACKSPACE&&!Ss&&jo&&!ls&&jr.length){for(var gs=(0,Oe.Z)(jr),yl=null,ol=gs.length-1;ol>=0;ol-=1){var bc=gs[ol];if(!bc.disabled){gs.splice(ol,1),yl=bc;break}}yl&&xi(gs,{type:"remove",values:[yl]})}for(var Hl=arguments.length,_l=new Array(Hl>1?Hl-1:0),Ml=1;Ml<Hl;Ml++)_l[Ml-1]=arguments[Ml];if(yi&&Ls.current){var Wl;(Wl=Ls.current).onKeyDown.apply(Wl,[yo].concat(_l))}oo==null||oo.apply(void 0,[yo].concat(_l))},oc=function(yo){for(var Ss=arguments.length,nl=new Array(Ss>1?Ss-1:0),gs=1;gs<Ss;gs++)nl[gs-1]=arguments[gs];if(yi&&Ls.current){var yl;(yl=Ls.current).onKeyUp.apply(yl,[yo].concat(nl))}Ma==null||Ma.apply(void 0,[yo].concat(nl))},Kc=function(yo){var Ss=jr.filter(function(nl){return nl!==yo});xi(Ss,{type:"remove",values:[yo]})},Rl=Je.useRef(!1),Bl=function(){Ol(!0),oa||(Ua&&!Rl.current&&Ua.apply(void 0,arguments),Pa.includes("focus")&&Va(!0)),Rl.current=!0},mu=function(){Ol(!1,function(){Rl.current=!1,Va(!1)}),!oa&&(ls&&(Hi==="tags"?Ca(ls,{source:"submit"}):Hi==="multiple"&&Ca("",{source:"blur"})),Ya&&Ya.apply(void 0,arguments))},Al=[];Je.useEffect(function(){return function(){Al.forEach(function(go){return clearTimeout(go)}),Al.splice(0,Al.length)}},[]);var Qc=function(yo){var Ss,nl=yo.target,gs=(Ss=ss.current)===null||Ss===void 0?void 0:Ss.getPopupElement();if(gs&&gs.contains(nl)){var yl=setTimeout(function(){var _l=Al.indexOf(yl);if(_l!==-1&&Al.splice(_l,1),xl(),!js&&!gs.contains(document.activeElement)){var Ml;(Ml=qo.current)===null||Ml===void 0||Ml.focus()}});Al.push(yl)}for(var ol=arguments.length,bc=new Array(ol>1?ol-1:0),Hl=1;Hl<ol;Hl++)bc[Hl-1]=arguments[Hl];Oo==null||Oo.apply(void 0,[yo].concat(bc))},sc=Je.useState({}),ra=(0,ne.Z)(sc,2),wl=ra[1];function vu(){wl({})}var gu;cs&&(gu=function(yo){Va(yo)}),vt(function(){var go;return[Ko.current,(go=ss.current)===null||go===void 0?void 0:go.getPopupElement()]},ka,Va,!!cs);var il=Je.useMemo(function(){return(0,re.Z)((0,re.Z)({},Ct),{},{notFoundContent:qr,open:yi,triggerOpen:ka,id:Un,showSearch:ts,multiple:jo,toggleOpen:Va})},[Ct,qr,ka,yi,Un,ts,jo,Va]),Ts=!!Za||fa,gc;Ts&&(gc=Je.createElement(dt,{className:te()("".concat(Nn,"-arrow"),(0,he.Z)({},"".concat(Nn,"-arrow-loading"),fa)),customizeIcon:Za,customizeIconProps:{loading:fa,searchValue:ls,open:yi,focused:Zs,showSearch:ts}}));var ju=function(){var yo;wi==null||wi(),(yo=qo.current)===null||yo===void 0||yo.focus(),xi([],{type:"clear",values:jr}),Xo("",!1,!1)},yu=st(Nn,ju,jr,Ba,eo,oa,ls,Hi),lc=yu.allowClear,al=yu.clearIcon,Jc=Je.createElement(Wo,{ref:Ls}),zl=te()(Nn,Mn,(un={},(0,he.Z)(un,"".concat(Nn,"-focused"),Zs),(0,he.Z)(un,"".concat(Nn,"-multiple"),jo),(0,he.Z)(un,"".concat(Nn,"-single"),!jo),(0,he.Z)(un,"".concat(Nn,"-allow-clear"),Ba),(0,he.Z)(un,"".concat(Nn,"-show-arrow"),Ts),(0,he.Z)(un,"".concat(Nn,"-disabled"),oa),(0,he.Z)(un,"".concat(Nn,"-loading"),fa),(0,he.Z)(un,"".concat(Nn,"-open"),yi),(0,he.Z)(un,"".concat(Nn,"-customize-input"),Co),(0,he.Z)(un,"".concat(Nn,"-show-search"),ts),un)),$c=Je.createElement(kr,{ref:ss,disabled:oa,prefixCls:Nn,visible:ka,popupElement:Jc,animation:ro,transitionName:Io,dropdownStyle:vs,dropdownClassName:$a,direction:gr,dropdownMatchSelectWidth:ea,dropdownRender:ta,dropdownAlign:ba,placement:Gi,builtinPlacements:gi,getPopupContainer:na,empty:Qr,getTriggerDOMNode:function(){return ws.current},onPopupVisibleChange:gu,onPopupMouseEnter:vu},cs?Je.cloneElement(cs,{ref:Gs}):Je.createElement(pn,(0,ae.Z)({},Ct,{domRef:ws,prefixCls:Nn,inputElement:Co,ref:qo,id:Un,showSearch:ts,autoClearSearchValue:ma,mode:Hi,activeDescendantId:ki,tagRender:rr,values:jr,open:yi,onToggleOpen:Va,activeValue:si,searchValue:ls,onSearch:Xo,onSearchSubmit:gl,onRemove:Kc,tokenWithEnter:Go}))),yc;return cs?yc=$c:yc=Je.createElement("div",(0,ae.Z)({className:zl},_o,{ref:Ko,onMouseDown:Qc,onKeyDown:ac,onKeyUp:oc,onFocus:Bl,onBlur:mu}),Zs&&!yi&&Je.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(jr.map(function(go){var yo=go.label,Ss=go.value;return["number","string"].includes((0,se.Z)(yo))?yo:Ss}).join(", "))),$c,gc,lc&&al),Je.createElement(nt.Provider,{value:il},yc)}),wa=Wi,Fa=function(Ct,Lt){var dn=Je.useRef({values:new Map,options:new Map}),un=Je.useMemo(function(){var Nn=dn.current,Mn=Nn.values,nr=Nn.options,rr=Ct.map(function(jr){if(jr.label===void 0){var xi;return(0,re.Z)((0,re.Z)({},jr),{},{label:(xi=Mn.get(jr.value))===null||xi===void 0?void 0:xi.label})}return jr}),gr=new Map,Jr=new Map;return rr.forEach(function(jr){gr.set(jr.value,jr),Jr.set(jr.value,Lt.get(jr.value)||nr.get(jr.value))}),dn.current.values=gr,dn.current.options=Jr,rr},[Ct,Lt]),Un=Je.useCallback(function(Nn){return Lt.get(Nn)||dn.current.options.get(Nn)},[Lt]);return[un,Un]};function Ii(Ct,Lt){return $t(Ct).join("").toUpperCase().includes(Lt)}var la=function(Ct,Lt,dn,un,Un){return Je.useMemo(function(){if(!dn||un===!1)return Ct;var Nn=Lt.options,Mn=Lt.label,nr=Lt.value,rr=[],gr=typeof un=="function",Jr=dn.toUpperCase(),jr=gr?un:function(Qr,ci){return Un?Ii(ci[Un],Jr):ci[Nn]?Ii(ci[Mn!=="children"?Mn:"label"],Jr):Ii(ci[nr],Jr)},xi=gr?function(Qr){return xa(Qr)}:function(Qr){return Qr};return Ct.forEach(function(Qr){if(Qr[Nn]){var ci=jr(dn,xi(Qr));if(ci)rr.push(Qr);else{var qr=Qr[Nn].filter(function(wi){return jr(dn,xi(wi))});qr.length&&rr.push((0,re.Z)((0,re.Z)({},Qr),{},(0,he.Z)({},Nn,qr)))}return}jr(dn,xi(Qr))&&rr.push(Qr)}),rr},[Ct,un,Un,dn,Lt])},Oa=0,ao=fe();function Qa(){var Ct;return ao?(Ct=Oa,Oa+=1):Ct="TEST_OR_SSR",Ct}function Ni(Ct){var Lt=Je.useState(),dn=(0,ne.Z)(Lt,2),un=dn[0],Un=dn[1];return Je.useEffect(function(){Un("rc_select_".concat(Qa()))},[]),Ct||un}function mn(Ct){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dn=[];return Je.Children.forEach(Ct,function(un){un==null&&!Lt.keepEmpty||(Array.isArray(un)?dn=dn.concat(mn(un)):(0,Ze.isFragment)(un)&&un.props?dn=dn.concat(mn(un.props.children,Lt)):dn.push(un))}),dn}var ln=["children","value"],Fn=["children"];function or(Ct){var Lt=Ct,dn=Lt.key,un=Lt.props,Un=un.children,Nn=un.value,Mn=(0,oe.Z)(un,ln);return(0,re.Z)({key:dn,value:Nn!==void 0?Nn:dn,children:Un},Mn)}function br(Ct){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return mn(Ct).map(function(dn,un){if(!Je.isValidElement(dn)||!dn.type)return null;var Un=dn,Nn=Un.type.isSelectOptGroup,Mn=Un.key,nr=Un.props,rr=nr.children,gr=(0,oe.Z)(nr,Fn);return Lt||!Nn?or(dn):(0,re.Z)((0,re.Z)({key:"__RC_SELECT_GRP__".concat(Mn===null?un:Mn,"__"),label:Mn},gr),{},{options:br(rr)})}).filter(function(dn){return dn})}function Xr(Ct,Lt,dn,un,Un){return Je.useMemo(function(){var Nn=Ct,Mn=!Ct;Mn&&(Nn=br(Lt));var nr=new Map,rr=new Map,gr=function(xi,Qr,ci){ci&&typeof ci=="string"&&xi.set(Qr[ci],Qr)};function Jr(jr){for(var xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qr=0;Qr<jr.length;Qr+=1){var ci=jr[Qr];!ci[dn.options]||xi?(nr.set(ci[dn.value],ci),gr(rr,ci,dn.label),gr(rr,ci,un),gr(rr,ci,Un)):Jr(ci[dn.options],!0)}}return Jr(Nn),{options:Nn,valueOptions:nr,labelOptions:rr}},[Ct,Lt,dn,un,Un])}function oi(Ct){var Lt=Je.useRef();Lt.current=Ct;var dn=Je.useCallback(function(){return Lt.current.apply(Lt,arguments)},[]);return dn}var pi=function(){return null};pi.isSelectOptGroup=!0;var Ti=pi,vi=function(){return null};vi.isSelectOption=!0;var Ri=vi;function $i(Ct,Lt){var dn=(0,re.Z)({},Ct);return Array.isArray(Lt)&&Lt.forEach(function(un){delete dn[un]}),dn}var ni=me(73299),Sn=Je.createContext(null),Pn=Sn;function Yn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var qe=["disabled","title","children","style","className"];function yt(Ct){return typeof Ct=="string"||typeof Ct=="number"}var St=function(Lt,dn){var un=rt(),Un=un.prefixCls,Nn=un.id,Mn=un.open,nr=un.multiple,rr=un.mode,gr=un.searchValue,Jr=un.toggleOpen,jr=un.notFoundContent,xi=un.onPopupScroll,Qr=Je.useContext(Pn),ci=Qr.flattenOptions,qr=Qr.onActiveValue,wi=Qr.defaultActiveFirstOption,Hi=Qr.onSelect,oa=Qr.menuItemSelectedIcon,fa=Qr.rawValues,qi=Qr.fieldNames,va=Qr.virtual,Bi=Qr.direction,ga=Qr.listHeight,Aa=Qr.listItemHeight,si="".concat(Un,"-item"),fi=et(function(){return ci},[Mn,ci],function(ba,Gi){return Gi[0]&&ba[1]!==Gi[1]}),ki=Je.useRef(null),Ia=function(Gi){Gi.preventDefault()},ma=function(Gi){ki.current&&ki.current.scrollTo(typeof Gi=="number"?{index:Gi}:Gi)},Ca=function(Gi){for(var gi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,na=fi.length,Xi=0;Xi<na;Xi+=1){var Pa=(Gi+Xi*gi+na)%na,Ua=fi[Pa],Ya=Ua.group,Ma=Ua.data;if(!Ya&&!Ma.disabled)return Pa}return-1},ya=Je.useState(function(){return Ca(0)}),Na=(0,ne.Z)(ya,2),Ba=Na[0],Za=Na[1],eo=function(Gi){var gi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Za(Gi);var na={source:gi?"keyboard":"mouse"},Xi=fi[Gi];if(!Xi){qr(null,-1,na);return}qr(Xi.value,Gi,na)};(0,Je.useEffect)(function(){eo(wi!==!1?Ca(0):-1)},[fi.length,gr]);var Wo=Je.useCallback(function(ba){return fa.has(ba)&&rr!=="combobox"},[rr,(0,Oe.Z)(fa).toString(),fa.size]);(0,Je.useEffect)(function(){var ba=setTimeout(function(){if(!nr&&Mn&&fa.size===1){var gi=Array.from(fa)[0],na=fi.findIndex(function(Xi){var Pa=Xi.data;return Pa.value===gi});na!==-1&&(eo(na),ma(na))}});if(Mn){var Gi;(Gi=ki.current)===null||Gi===void 0||Gi.scrollTo(void 0)}return function(){return clearTimeout(ba)}},[Mn,gr,ci.length]);var ro=function(Gi){Gi!==void 0&&Hi(Gi,{selected:!fa.has(Gi)}),nr||Jr(!1)};if(Je.useImperativeHandle(dn,function(){return{onKeyDown:function(Gi){var gi=Gi.which,na=Gi.ctrlKey;switch(gi){case We.N:case We.P:case We.UP:case We.DOWN:{var Xi=0;if(gi===We.UP?Xi=-1:gi===We.DOWN?Xi=1:Yn()&&na&&(gi===We.N?Xi=1:gi===We.P&&(Xi=-1)),Xi!==0){var Pa=Ca(Ba+Xi,Xi);ma(Pa),eo(Pa,!0)}break}case We.ENTER:{var Ua=fi[Ba];Ua&&!Ua.data.disabled?ro(Ua.value):ro(void 0),Mn&&Gi.preventDefault();break}case We.ESC:Jr(!1),Mn&&Gi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Gi){ma(Gi)}}}),fi.length===0)return Je.createElement("div",{role:"listbox",id:"".concat(Nn,"_list"),className:"".concat(si,"-empty"),onMouseDown:Ia},jr);var Io=Object.keys(qi).map(function(ba){return qi[ba]}),vs=function(Gi){return Gi.label};function $a(ba,Gi){var gi=ba.group;return{role:gi?"presentation":"option",id:"".concat(Nn,"_list_").concat(Gi)}}var ea=function(Gi){var gi=fi[Gi];if(!gi)return null;var na=gi.data||{},Xi=na.value,Pa=gi.group,Ua=Ce(na,!0),Ya=vs(gi);return gi?Je.createElement("div",(0,ae.Z)({"aria-label":typeof Ya=="string"&&!Pa?Ya:null},Ua,{key:Gi},$a(gi,Gi),{"aria-selected":Wo(Xi)}),Xi):null},ta={role:"listbox",id:"".concat(Nn,"_list")};return Je.createElement(Je.Fragment,null,va&&Je.createElement("div",(0,ae.Z)({},ta,{style:{height:0,width:0,overflow:"hidden"}}),ea(Ba-1),ea(Ba),ea(Ba+1)),Je.createElement(ni.Z,{itemKey:"key",ref:ki,data:fi,height:ga,itemHeight:Aa,fullHeight:!1,onMouseDown:Ia,onScroll:xi,virtual:va,direction:Bi,innerProps:va?null:ta},function(ba,Gi){var gi,na=ba.group,Xi=ba.groupOption,Pa=ba.data,Ua=ba.label,Ya=ba.value,Ma=Pa.key;if(na){var oo,Oo=(oo=Pa.title)!==null&&oo!==void 0?oo:yt(Ua)?Ua.toString():void 0;return Je.createElement("div",{className:te()(si,"".concat(si,"-group")),title:Oo},Ua!==void 0?Ua:Ma)}var So=Pa.disabled,jo=Pa.title,ts=Pa.children,_o=Pa.style,ks=Pa.className,xs=(0,oe.Z)(Pa,qe),js=$i(xs,Io),ns=Wo(Ya),Ko="".concat(si,"-option"),ws=te()(si,Ko,ks,(gi={},(0,he.Z)(gi,"".concat(Ko,"-grouped"),Xi),(0,he.Z)(gi,"".concat(Ko,"-active"),Ba===Gi&&!So),(0,he.Z)(gi,"".concat(Ko,"-disabled"),So),(0,he.Z)(gi,"".concat(Ko,"-selected"),ns),gi)),ss=vs(ba),qo=!oa||typeof oa=="function"||ns,Ls=typeof ss=="number"?ss:ss||Ya,Es=yt(Ls)?Ls.toString():void 0;return jo!==void 0&&(Es=jo),Je.createElement("div",(0,ae.Z)({},Ce(js),va?{}:$a(ba,Gi),{"aria-selected":ns,className:ws,title:Es,onMouseMove:function(){Ba===Gi||So||eo(Gi)},onClick:function(){So||ro(Ya)},style:_o}),Je.createElement("div",{className:"".concat(Ko,"-content")},Ls),Je.isValidElement(oa)||ns,qo&&Je.createElement(dt,{className:"".concat(si,"-option-state"),customizeIcon:oa,customizeIconProps:{isSelected:ns}},ns?"\u2713":null))}))},Dt=Je.forwardRef(St);Dt.displayName="OptionList";var Tt=Dt;function Nt(Ct){var Lt=Ct.mode,dn=Ct.options,un=Ct.children,Un=Ct.backfill,Nn=Ct.allowClear,Mn=Ct.placeholder,nr=Ct.getInputElement,rr=Ct.showSearch,gr=Ct.onSearch,Jr=Ct.defaultOpen,jr=Ct.autoFocus,xi=Ct.labelInValue,Qr=Ct.value,ci=Ct.inputValue,qr=Ct.optionLabelProp,wi=isMultiple(Lt),Hi=rr!==void 0?rr:wi||Lt==="combobox",oa=dn||convertChildrenToData(un);if(warning(Lt!=="tags"||oa.every(function(Bi){return!Bi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Lt==="tags"||Lt==="combobox"){var fa=oa.some(function(Bi){return Bi.options?Bi.options.some(function(ga){return typeof("value"in ga?ga.value:ga.key)=="number"}):typeof("value"in Bi?Bi.value:Bi.key)=="number"});warning(!fa,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Lt!=="combobox"||!qr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Lt==="combobox"||!Un,"`backfill` only works with `combobox` mode."),warning(Lt==="combobox"||!nr,"`getInputElement` only work with `combobox` mode."),noteOnce(Lt!=="combobox"||!nr||!Nn||!Mn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),gr&&!Hi&&Lt!=="combobox"&&Lt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Jr||jr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Qr!=null){var qi=toArray(Qr);warning(!xi||qi.every(function(Bi){return _typeof(Bi)==="object"&&("key"in Bi||"value"in Bi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!wi||Array.isArray(Qr),"`value` should be array when `mode` is `multiple` or `tags`")}if(un){var va=null;toNodeArray(un).some(function(Bi){if(!React.isValidElement(Bi)||!Bi.type)return!1;var ga=Bi,Aa=ga.type;if(Aa.isSelectOption)return!1;if(Aa.isSelectOptGroup){var si=toNodeArray(Bi.props.children).every(function(fi){return!React.isValidElement(fi)||!Bi.type||fi.type.isSelectOption?!0:(va=fi.type,!1)});return!si}return va=Aa,!0}),va&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(va.displayName||va.name||va,"`.")),warning(ci===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _t(Ct,Lt){if(Ct){var dn=function un(Un){for(var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mn=0;Mn<Un.length;Mn++){var nr=Un[Mn];if(nr[Lt==null?void 0:Lt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Nn&&Array.isArray(nr[Lt==null?void 0:Lt.options])&&un(nr[Lt==null?void 0:Lt.options],!0))break}};dn(Ct)}}var on=null,gn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Vn=["inputValue"];function qn(Ct){return!Ct||(0,se.Z)(Ct)!=="object"}var Xn=Je.forwardRef(function(Ct,Lt){var dn=Ct.id,un=Ct.mode,Un=Ct.prefixCls,Nn=Un===void 0?"rc-select":Un,Mn=Ct.backfill,nr=Ct.fieldNames,rr=Ct.inputValue,gr=Ct.searchValue,Jr=Ct.onSearch,jr=Ct.autoClearSearchValue,xi=jr===void 0?!0:jr,Qr=Ct.onSelect,ci=Ct.onDeselect,qr=Ct.dropdownMatchSelectWidth,wi=qr===void 0?!0:qr,Hi=Ct.filterOption,oa=Ct.filterSort,fa=Ct.optionFilterProp,qi=Ct.optionLabelProp,va=Ct.options,Bi=Ct.children,ga=Ct.defaultActiveFirstOption,Aa=Ct.menuItemSelectedIcon,si=Ct.virtual,fi=Ct.direction,ki=Ct.listHeight,Ia=ki===void 0?200:ki,ma=Ct.listItemHeight,Ca=ma===void 0?20:ma,ya=Ct.value,Na=Ct.defaultValue,Ba=Ct.labelInValue,Za=Ct.onChange,eo=(0,oe.Z)(Ct,gn),Wo=Ni(dn),ro=Ji(un),Io=!!(!va&&Bi),vs=Je.useMemo(function(){return Hi===void 0&&un==="combobox"?!1:Hi},[Hi,un]),$a=Je.useMemo(function(){return Oi(nr,Io)},[JSON.stringify(nr),Io]),ea=Me("",{value:gr!==void 0?gr:rr,postState:function(Yi){return Yi||""}}),ta=(0,ne.Z)(ea,2),ba=ta[0],Gi=ta[1],gi=Xr(va,Bi,$a,fa,qi),na=gi.valueOptions,Xi=gi.labelOptions,Pa=gi.options,Ua=Je.useCallback(function(yi){var Yi=$t(yi);return Yi.map(function(ka){var Va,Go,Xo,gl,Js;if(qn(ka))Va=ka;else{var Dl;Xo=ka.key,Go=ka.label,Va=(Dl=ka.value)!==null&&Dl!==void 0?Dl:Xo}var Ps=na.get(Va);if(Ps){var Il;if(Go===void 0&&(Go=Ps==null?void 0:Ps[qi||$a.label]),Xo===void 0&&(Xo=(Il=Ps==null?void 0:Ps.key)!==null&&Il!==void 0?Il:Va),gl=Ps==null?void 0:Ps.disabled,Js=Ps==null?void 0:Ps.title,0)var ac}return{label:Go,value:Va,key:Xo,disabled:gl,title:Js}})},[$a,qi,na]),Ya=Me(Na,{value:ya}),Ma=(0,ne.Z)(Ya,2),oo=Ma[0],Oo=Ma[1],So=Je.useMemo(function(){var yi,Yi=Ua(oo);return un==="combobox"&&an((yi=Yi[0])===null||yi===void 0?void 0:yi.value)?[]:Yi},[oo,Ua,un]),jo=Fa(So,na),ts=(0,ne.Z)(jo,2),_o=ts[0],ks=ts[1],xs=Je.useMemo(function(){if(!un&&_o.length===1){var yi=_o[0];if(yi.value===null&&(yi.label===null||yi.label===void 0))return[]}return _o.map(function(Yi){var ka;return(0,re.Z)((0,re.Z)({},Yi),{},{label:(ka=Yi.label)!==null&&ka!==void 0?ka:Yi.value})})},[un,_o]),js=Je.useMemo(function(){return new Set(_o.map(function(yi){return yi.value}))},[_o]);Je.useEffect(function(){if(un==="combobox"){var yi,Yi=(yi=_o[0])===null||yi===void 0?void 0:yi.value;Gi(jt(Yi)?String(Yi):"")}},[_o]);var ns=oi(function(yi,Yi){var ka,Va=Yi!=null?Yi:yi;return ka={},(0,he.Z)(ka,$a.value,yi),(0,he.Z)(ka,$a.label,Va),ka}),Ko=Je.useMemo(function(){if(un!=="tags")return Pa;var yi=(0,Oe.Z)(Pa),Yi=function(Va){return na.has(Va)};return(0,Oe.Z)(_o).sort(function(ka,Va){return ka.value<Va.value?-1:1}).forEach(function(ka){var Va=ka.value;Yi(Va)||yi.push(ns(Va,ka.label))}),yi},[ns,Pa,na,_o,un]),ws=la(Ko,$a,ba,vs,fa),ss=Je.useMemo(function(){return un!=="tags"||!ba||ws.some(function(yi){return yi[fa||"value"]===ba})||ws.some(function(yi){return yi[$a.value]===ba})?ws:[ns(ba)].concat((0,Oe.Z)(ws))},[ns,fa,un,ws,ba,$a]),qo=Je.useMemo(function(){return oa?(0,Oe.Z)(ss).sort(function(yi,Yi){return oa(yi,Yi)}):ss},[ss,oa]),Ls=Je.useMemo(function(){return bi(qo,{fieldNames:$a,childrenAsData:Io})},[qo,$a,Io]),Es=function(Yi){var ka=Ua(Yi);if(Oo(ka),Za&&(ka.length!==_o.length||ka.some(function(Xo,gl){var Js;return((Js=_o[gl])===null||Js===void 0?void 0:Js.value)!==(Xo==null?void 0:Xo.value)}))){var Va=Ba?ka:ka.map(function(Xo){return Xo.value}),Go=ka.map(function(Xo){return xa(ks(Xo.value))});Za(ro?Va:Va[0],ro?Go:Go[0])}},Qo=Je.useState(null),Zs=(0,ne.Z)(Qo,2),Ol=Zs[0],xl=Zs[1],ls=Je.useState(0),Co=(0,ne.Z)(ls,2),cs=Co[0],Gs=Co[1],tl=ga!==void 0?ga:un!=="combobox",Jo=Je.useCallback(function(yi,Yi){var ka=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Va=ka.source,Go=Va===void 0?"keyboard":Va;Gs(Yi),Mn&&un==="combobox"&&yi!==null&&Go==="keyboard"&&xl(String(yi))},[Mn,un]),No=function(Yi,ka,Va){var Go=function(){var Rl,Bl=ks(Yi);return[Ba?{label:Bl==null?void 0:Bl[$a.label],value:Yi,key:(Rl=Bl==null?void 0:Bl.key)!==null&&Rl!==void 0?Rl:Yi}:Yi,xa(Bl)]};if(ka&&Qr){var Xo=Go(),gl=(0,ne.Z)(Xo,2),Js=gl[0],Dl=gl[1];Qr(Js,Dl)}else if(!ka&&ci&&Va!=="clear"){var Ps=Go(),Il=(0,ne.Z)(Ps,2),ac=Il[0],oc=Il[1];ci(ac,oc)}},Zo=oi(function(yi,Yi){var ka,Va=ro?Yi.selected:!0;Va?ka=ro?[].concat((0,Oe.Z)(_o),[yi]):[yi]:ka=_o.filter(function(Go){return Go.value!==yi}),Es(ka),No(yi,Va),un==="combobox"?xl(""):(!Ji||xi)&&(Gi(""),xl(""))}),Ks=function(Yi,ka){Es(Yi);var Va=ka.type,Go=ka.values;(Va==="remove"||Va==="clear")&&Go.forEach(function(Xo){No(Xo.value,!1,Va)})},As=function(Yi,ka){if(Gi(Yi),xl(null),ka.source==="submit"){var Va=(Yi||"").trim();if(Va){var Go=Array.from(new Set([].concat((0,Oe.Z)(js),[Va])));Es(Go),No(Va,!0),Gi("")}return}ka.source!=="blur"&&(un==="combobox"&&Es(Yi),Jr==null||Jr(Yi))},zs=function(Yi){var ka=Yi;un!=="tags"&&(ka=Yi.map(function(Go){var Xo=Xi.get(Go);return Xo==null?void 0:Xo.value}).filter(function(Go){return Go!==void 0}));var Va=Array.from(new Set([].concat((0,Oe.Z)(js),(0,Oe.Z)(ka))));Es(Va),Va.forEach(function(Go){No(Go,!0)})},to=Je.useMemo(function(){var yi=si!==!1&&wi!==!1;return(0,re.Z)((0,re.Z)({},gi),{},{flattenOptions:Ls,onActiveValue:Jo,defaultActiveFirstOption:tl,onSelect:Zo,menuItemSelectedIcon:Aa,rawValues:js,fieldNames:$a,virtual:yi,direction:fi,listHeight:Ia,listItemHeight:Ca,childrenAsData:Io})},[gi,Ls,Jo,tl,Zo,Aa,js,$a,si,wi,Ia,Ca,Io]);return Je.createElement(Pn.Provider,{value:to},Je.createElement(wa,(0,ae.Z)({},eo,{id:Wo,prefixCls:Nn,ref:Lt,omitDomProps:Vn,mode:un,displayValues:xs,onDisplayValuesChange:Ks,direction:fi,searchValue:ba,onSearch:As,autoClearSearchValue:xi,onSearchSplit:zs,dropdownMatchSelectWidth:wi,OptionList:Tt,emptyOptions:!Ls.length,activeValue:Ol,activeDescendantId:"".concat(Wo,"_list_").concat(cs)})))}),Dn=Xn;Dn.Option=Ri,Dn.OptGroup=Ti;var In=null,Cn=null,Zn=me(17341);function pr(Ct){var Lt=Je.useRef(!1),dn=Je.useState(Ct),un=(0,ne.Z)(dn,2),Un=un[0],Nn=un[1];Je.useEffect(function(){return Lt.current=!1,function(){Lt.current=!0}},[]);function Mn(nr,rr){rr&&Lt.current||Nn(nr)}return[Un,Mn]}function $n(Ct){return Ct!==void 0}function ar(Ct,Lt){var dn=Lt||{},un=dn.defaultValue,Un=dn.value,Nn=dn.onChange,Mn=dn.postState,nr=pr(function(){return $n(Un)?Un:$n(un)?typeof un=="function"?un():un:typeof Ct=="function"?Ct():Ct}),rr=(0,ne.Z)(nr,2),gr=rr[0],Jr=rr[1],jr=Un!==void 0?Un:gr,xi=Mn?Mn(jr):jr,Qr=xn(Nn),ci=pr([jr]),qr=(0,ne.Z)(ci,2),wi=qr[0],Hi=qr[1];ze(function(){var fa=wi[0];gr!==fa&&Qr(gr,fa)},[wi]),ze(function(){$n(Un)||Jr(Un)},[Un]);var oa=xn(function(fa,qi){Jr(fa,qi),Hi([jr],qi)});return[xi,oa]}var ur=Je.createContext(null),mr=ur,wr="__rc_cascader_search_mark__",kt=function(Lt,dn,un){var Un=un.label;return dn.some(function(Nn){return String(Nn[Un]).toLowerCase().includes(Lt.toLowerCase())})},It=function(Lt,dn,un,Un){return dn.map(function(Nn){return Nn[Un.label]}).join(" / ")},qt=function(Ct,Lt,dn,un,Un,Nn){var Mn=Un.filter,nr=Mn===void 0?kt:Mn,rr=Un.render,gr=rr===void 0?It:rr,Jr=Un.limit,jr=Jr===void 0?50:Jr,xi=Un.sort;return Je.useMemo(function(){var Qr=[];if(!Ct)return[];function ci(qr,wi){var Hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;qr.forEach(function(oa){if(!(!xi&&jr!==!1&&jr>0&&Qr.length>=jr)){var fa=[].concat((0,Oe.Z)(wi),[oa]),qi=oa[dn.children],va=Hi||oa.disabled;if((!qi||qi.length===0||Nn)&&nr(Ct,fa,{label:dn.label})){var Bi;Qr.push((0,re.Z)((0,re.Z)({},oa),{},(Bi={disabled:va},(0,he.Z)(Bi,dn.label,gr(Ct,fa,un,dn)),(0,he.Z)(Bi,wr,fa),(0,he.Z)(Bi,dn.children,void 0),Bi)))}qi&&ci(oa[dn.children],fa,va)}})}return ci(Lt,[]),xi&&Qr.sort(function(qr,wi){return xi(qr[wr],wi[wr],Ct,dn)}),jr!==!1&&jr>0?Qr.slice(0,jr):Qr},[Ct,Lt,dn,un,gr,Nn,nr,xi,jr])},Yt="__RC_CASCADER_SPLIT__",En="SHOW_PARENT",Hn="SHOW_CHILD";function Ht(Ct){return Ct.join(Yt)}function Vt(Ct){return Ct.map(Ht)}function Gt(Ct){return Ct.split(Yt)}function en(Ct){var Lt=Ct||{},dn=Lt.label,un=Lt.value,Un=Lt.children,Nn=un||"value";return{label:dn||"label",value:Nn,key:Nn,children:Un||"children"}}function Ln(Ct,Lt){var dn,un;return(dn=Ct.isLeaf)!==null&&dn!==void 0?dn:!((un=Ct[Lt.children])!==null&&un!==void 0&&un.length)}function Qn(Ct){var Lt=Ct.parentElement;if(Lt){var dn=Ct.offsetTop-Lt.offsetTop;dn-Lt.scrollTop<0?Lt.scrollTo({top:dn}):dn+Ct.offsetHeight-Lt.scrollTop>Lt.offsetHeight&&Lt.scrollTo({top:dn+Ct.offsetHeight-Lt.offsetHeight})}}function On(Ct,Lt){return Ct.map(function(dn){var un;return(un=dn[wr])===null||un===void 0?void 0:un.map(function(Un){return Un[Lt.value]})})}function Kn(Ct,Lt,dn){var un=new Set(Ct),Un=Lt();return Ct.filter(function(Nn){var Mn=Un[Nn],nr=Mn?Mn.parent:null,rr=Mn?Mn.children:null;return Mn&&Mn.node.disabled?!0:dn===Hn?!(rr&&rr.some(function(gr){return gr.key&&un.has(gr.key)})):!(nr&&!nr.node.disabled&&un.has(nr.key))})}function vr(Ct,Lt,dn){for(var un=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Un=Lt,Nn=[],Mn=function(){var gr,Jr,jr,xi=Ct[nr],Qr=(gr=Un)===null||gr===void 0?void 0:gr.findIndex(function(qr){var wi=qr[dn.value];return un?String(wi)===String(xi):wi===xi}),ci=Qr!==-1?(Jr=Un)===null||Jr===void 0?void 0:Jr[Qr]:null;Nn.push({value:(jr=ci==null?void 0:ci[dn.value])!==null&&jr!==void 0?jr:xi,index:Qr,option:ci}),Un=ci==null?void 0:ci[dn.children]},nr=0;nr<Ct.length;nr+=1)Mn();return Nn}var Br=function(Ct,Lt,dn,un,Un){return Je.useMemo(function(){var Nn=Un||function(Mn){var nr=un?Mn.slice(-1):Mn,rr=" / ";return nr.every(function(gr){return["string","number"].includes((0,se.Z)(gr))})?nr.join(rr):nr.reduce(function(gr,Jr,jr){var xi=Je.isValidElement(Jr)?Je.cloneElement(Jr,{key:jr}):Jr;return jr===0?[xi]:[].concat((0,Oe.Z)(gr),[rr,xi])},[])};return Ct.map(function(Mn){var nr,rr,gr=vr(Mn,Lt,dn),Jr=Nn(gr.map(function(xi){var Qr,ci=xi.option,qr=xi.value;return(Qr=ci==null?void 0:ci[dn.label])!==null&&Qr!==void 0?Qr:qr}),gr.map(function(xi){var Qr=xi.option;return Qr})),jr=Ht(Mn);return{label:Jr,value:jr,key:jr,valueCells:Mn,disabled:(nr=gr[gr.length-1])===null||nr===void 0||(rr=nr.option)===null||rr===void 0?void 0:rr.disabled}})},[Ct,Lt,dn,Un,un])},Cr=me(1089),sr=function(Ct,Lt){var dn=Je.useRef({options:null,info:null}),un=Je.useCallback(function(){return dn.current.options!==Ct&&(dn.current.options=Ct,dn.current.info=(0,Cr.I8)(Ct,{fieldNames:Lt,initWrapper:function(Nn){return(0,re.Z)((0,re.Z)({},Nn),{},{pathKeyEntities:{}})},processEntity:function(Nn,Mn){var nr=Nn.nodes.map(function(rr){return rr[Lt.value]}).join(Yt);Mn.pathKeyEntities[nr]=Nn,Nn.key=nr}})),dn.current.info.pathKeyEntities},[Lt,Ct]);return un},Mr=function(Ct,Lt){return Je.useCallback(function(dn){var un=[],Un=[];return dn.forEach(function(Nn){var Mn=vr(Nn,Ct,Lt);Mn.every(function(nr){return nr.option})?Un.push(Nn):un.push(Nn)}),[Un,un]},[Ct,Lt])},Nr={},Yr=[],Rr=function(Lt){Yr.push(Lt)};function xr(Ct,Lt){if(0)var dn}function ii(Ct,Lt){if(0)var dn}function ri(){Nr={}}function Fi(Ct,Lt,dn){!Lt&&!Nr[dn]&&(Ct(!1,dn),Nr[dn]=!0)}function Ui(Ct,Lt){Fi(xr,Ct,Lt)}function aa(Ct,Lt){Fi(ii,Ct,Lt)}Ui.preMessage=Rr,Ui.resetWarned=ri,Ui.noteOnce=aa;var ji=null;function zi(Ct){return Je.useMemo(function(){if(!Ct)return[!1,{}];var Lt={matchInputWidth:!0,limit:50};return Ct&&(0,se.Z)(Ct)==="object"&&(Lt=(0,re.Z)((0,re.Z)({},Lt),Ct)),Lt.limit<=0&&delete Lt.limit,[!0,Lt]},[Ct])}var Mi=Je.memo(function(Ct){var Lt=Ct.children;return Lt},function(Ct,Lt){return!Lt.open}),ca=Mi;function Li(Ct){var Lt,dn=Ct.prefixCls,un=Ct.checked,Un=Ct.halfChecked,Nn=Ct.disabled,Mn=Ct.onClick,nr=Ct.disableCheckbox,rr=Je.useContext(mr),gr=rr.checkable,Jr=typeof gr!="boolean"?gr:null;return Je.createElement("span",{className:te()("".concat(dn),(Lt={},(0,he.Z)(Lt,"".concat(dn,"-checked"),un),(0,he.Z)(Lt,"".concat(dn,"-indeterminate"),!un&&Un),(0,he.Z)(Lt,"".concat(dn,"-disabled"),Nn||nr),Lt)),onClick:Mn},Jr)}var li="__cascader_fix_label__";function Vi(Ct){var Lt=Ct.prefixCls,dn=Ct.multiple,un=Ct.options,Un=Ct.activeValue,Nn=Ct.prevValuePath,Mn=Ct.onToggleOpen,nr=Ct.onSelect,rr=Ct.onActive,gr=Ct.checkedSet,Jr=Ct.halfCheckedSet,jr=Ct.loadingKeys,xi=Ct.isSelectable,Qr=Ct.searchValue,ci="".concat(Lt,"-menu"),qr="".concat(Lt,"-menu-item"),wi=Je.useContext(mr),Hi=wi.fieldNames,oa=wi.changeOnSelect,fa=wi.expandTrigger,qi=wi.expandIcon,va=wi.loadingIcon,Bi=wi.dropdownMenuColumnStyle,ga=fa==="hover",Aa=Je.useMemo(function(){return un.map(function(si){var fi,ki=si.disabled,Ia=si.disableCheckbox,ma=si[wr],Ca=(fi=si[li])!==null&&fi!==void 0?fi:si[Hi.label],ya=si[Hi.value],Na=Ln(si,Hi),Ba=ma?ma.map(function(Io){return Io[Hi.value]}):[].concat((0,Oe.Z)(Nn),[ya]),Za=Ht(Ba),eo=jr.includes(Za),Wo=gr.has(Za),ro=Jr.has(Za);return{disabled:ki,label:Ca,value:ya,isLeaf:Na,isLoading:eo,checked:Wo,halfChecked:ro,option:si,disableCheckbox:Ia,fullPath:Ba,fullPathKey:Za}})},[un,gr,Hi,Jr,jr,Nn]);return Je.createElement("ul",{className:ci,role:"menu"},Aa.map(function(si){var fi,ki=si.disabled,Ia=si.label,ma=si.value,Ca=si.isLeaf,ya=si.isLoading,Na=si.checked,Ba=si.halfChecked,Za=si.option,eo=si.fullPath,Wo=si.fullPathKey,ro=si.disableCheckbox,Io=function(){if(!(ki||Qr)){var ta=(0,Oe.Z)(eo);ga&&Ca&&ta.pop(),rr(ta)}},vs=function(){xi(Za)&&nr(eo,Ca)},$a;return typeof Za.title=="string"?$a=Za.title:typeof Ia=="string"&&($a=Ia),Je.createElement("li",{key:Wo,className:te()(qr,(fi={},(0,he.Z)(fi,"".concat(qr,"-expand"),!Ca),(0,he.Z)(fi,"".concat(qr,"-active"),Un===ma||Un===Wo),(0,he.Z)(fi,"".concat(qr,"-disabled"),ki),(0,he.Z)(fi,"".concat(qr,"-loading"),ya),fi)),style:Bi,role:"menuitemcheckbox",title:$a,"aria-checked":Na,"data-path-key":Wo,onClick:function(){Io(),!ro&&(!dn||Ca)&&vs()},onDoubleClick:function(){oa&&Mn(!1)},onMouseEnter:function(){ga&&Io()},onMouseDown:function(ta){ta.preventDefault()}},dn&&Je.createElement(Li,{prefixCls:"".concat(Lt,"-checkbox"),checked:Na,halfChecked:Ba,disabled:ki||ro,disableCheckbox:ro,onClick:function(ta){ro||(ta.stopPropagation(),vs())}}),Je.createElement("div",{className:"".concat(qr,"-content")},Ia),!ya&&qi&&!Ca&&Je.createElement("div",{className:"".concat(qr,"-expand-icon")},qi),ya&&va&&Je.createElement("div",{className:"".concat(qr,"-loading-icon")},va))}))}var Sa=function(){var Ct=rt(),Lt=Ct.multiple,dn=Ct.open,un=Je.useContext(mr),Un=un.values,Nn=Je.useState([]),Mn=(0,ne.Z)(Nn,2),nr=Mn[0],rr=Mn[1];return Je.useEffect(function(){if(dn&&!Lt){var gr=Un[0];rr(gr||[])}},[dn]),[nr,rr]},Ci={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Lt){var dn=Lt.keyCode;if(Lt.altKey&&!Lt.ctrlKey||Lt.metaKey||dn>=Ci.F1&&dn<=Ci.F12)return!1;switch(dn){case Ci.ALT:case Ci.CAPS_LOCK:case Ci.CONTEXT_MENU:case Ci.CTRL:case Ci.DOWN:case Ci.END:case Ci.ESC:case Ci.HOME:case Ci.INSERT:case Ci.LEFT:case Ci.MAC_FF_META:case Ci.META:case Ci.NUMLOCK:case Ci.NUM_CENTER:case Ci.PAGE_DOWN:case Ci.PAGE_UP:case Ci.PAUSE:case Ci.PRINT_SCREEN:case Ci.RIGHT:case Ci.SHIFT:case Ci.UP:case Ci.WIN_KEY:case Ci.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Lt){if(Lt>=Ci.ZERO&&Lt<=Ci.NINE||Lt>=Ci.NUM_ZERO&&Lt<=Ci.NUM_MULTIPLY||Lt>=Ci.A&&Lt<=Ci.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Lt===0)return!0;switch(Lt){case Ci.SPACE:case Ci.QUESTION_MARK:case Ci.NUM_PLUS:case Ci.NUM_MINUS:case Ci.NUM_PERIOD:case Ci.NUM_DIVISION:case Ci.SEMICOLON:case Ci.DASH:case Ci.EQUALS:case Ci.COMMA:case Ci.PERIOD:case Ci.SLASH:case Ci.APOSTROPHE:case Ci.SINGLE_QUOTE:case Ci.OPEN_SQUARE_BRACKET:case Ci.BACKSLASH:case Ci.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Xa=Ci,qa=function(Ct,Lt,dn,un,Un,Nn){var Mn=rt(),nr=Mn.direction,rr=Mn.searchValue,gr=Mn.toggleOpen,Jr=Mn.open,jr=nr==="rtl",xi=Je.useMemo(function(){for(var Bi=-1,ga=Lt,Aa=[],si=[],fi=un.length,ki=On(Lt,dn),Ia=function(Za){var eo=ga.findIndex(function(Wo,ro){return(ki[ro]?Ht(ki[ro]):Wo[dn.value])===un[Za]});if(eo===-1)return"break";Bi=eo,Aa.push(Bi),si.push(un[Za]),ga=ga[Bi][dn.children]},ma=0;ma<fi&&ga;ma+=1){var Ca=Ia(ma);if(Ca==="break")break}for(var ya=Lt,Na=0;Na<Aa.length-1;Na+=1)ya=ya[Aa[Na]][dn.children];return[si,Bi,ya,ki]},[un,dn,Lt]),Qr=(0,ne.Z)(xi,4),ci=Qr[0],qr=Qr[1],wi=Qr[2],Hi=Qr[3],oa=function(ga){Un(ga)},fa=function(ga){var Aa=wi.length,si=qr;si===-1&&ga<0&&(si=Aa);for(var fi=0;fi<Aa;fi+=1){si=(si+ga+Aa)%Aa;var ki=wi[si];if(ki&&!ki.disabled){var Ia=ci.slice(0,-1).concat(Hi[si]?Ht(Hi[si]):ki[dn.value]);oa(Ia);return}}},qi=function(){if(ci.length>1){var ga=ci.slice(0,-1);oa(ga)}else gr(!1)},va=function(){var ga,Aa=((ga=wi[qr])===null||ga===void 0?void 0:ga[dn.children])||[],si=Aa.find(function(ki){return!ki.disabled});if(si){var fi=[].concat((0,Oe.Z)(ci),[si[dn.value]]);oa(fi)}};Je.useImperativeHandle(Ct,function(){return{onKeyDown:function(ga){var Aa=ga.which;switch(Aa){case Xa.UP:case Xa.DOWN:{var si=0;Aa===Xa.UP?si=-1:Aa===Xa.DOWN&&(si=1),si!==0&&fa(si);break}case Xa.LEFT:{if(rr)break;jr?va():qi();break}case Xa.RIGHT:{if(rr)break;jr?qi():va();break}case Xa.BACKSPACE:{rr||qi();break}case Xa.ENTER:{if(ci.length){var fi=wi[qr],ki=(fi==null?void 0:fi[wr])||[];ki.length?Nn(ki.map(function(Ia){return Ia[dn.value]}),ki[ki.length-1]):Nn(ci,wi[qr])}break}case Xa.ESC:gr(!1),Jr&&ga.stopPropagation()}},onKeyUp:function(){}}})},Ja=Je.forwardRef(function(Ct,Lt){var dn,un,Un,Nn,Mn=rt(),nr=Mn.prefixCls,rr=Mn.multiple,gr=Mn.searchValue,Jr=Mn.toggleOpen,jr=Mn.notFoundContent,xi=Mn.direction,Qr=Mn.open,ci=Je.useRef(),qr=xi==="rtl",wi=Je.useContext(mr),Hi=wi.options,oa=wi.values,fa=wi.halfValues,qi=wi.fieldNames,va=wi.changeOnSelect,Bi=wi.onSelect,ga=wi.searchOptions,Aa=wi.dropdownPrefixCls,si=wi.loadData,fi=wi.expandTrigger,ki=Aa||nr,Ia=Je.useState([]),ma=(0,ne.Z)(Ia,2),Ca=ma[0],ya=ma[1],Na=function(Ma){if(!(!si||gr)){var oo=vr(Ma,Hi,qi),Oo=oo.map(function(ts){var _o=ts.option;return _o}),So=Oo[Oo.length-1];if(So&&!Ln(So,qi)){var jo=Ht(Ma);ya(function(ts){return[].concat((0,Oe.Z)(ts),[jo])}),si(Oo)}}};Je.useEffect(function(){Ca.length&&Ca.forEach(function(Ya){var Ma=Gt(Ya),oo=vr(Ma,Hi,qi,!0).map(function(So){var jo=So.option;return jo}),Oo=oo[oo.length-1];(!Oo||Oo[qi.children]||Ln(Oo,qi))&&ya(function(So){return So.filter(function(jo){return jo!==Ya})})})},[Hi,Ca,qi]);var Ba=Je.useMemo(function(){return new Set(Vt(oa))},[oa]),Za=Je.useMemo(function(){return new Set(Vt(fa))},[fa]),eo=Sa(),Wo=(0,ne.Z)(eo,2),ro=Wo[0],Io=Wo[1],vs=function(Ma){Io(Ma),Na(Ma)},$a=function(Ma){var oo=Ma.disabled,Oo=Ln(Ma,qi);return!oo&&(Oo||va||rr)},ea=function(Ma,oo){var Oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Bi(Ma),!rr&&(oo||va&&(fi==="hover"||Oo))&&Jr(!1)},ta=Je.useMemo(function(){return gr?ga:Hi},[gr,ga,Hi]),ba=Je.useMemo(function(){for(var Ya=[{options:ta}],Ma=ta,oo=On(Ma,qi),Oo=function(){var _o=ro[So],ks=Ma.find(function(js,ns){return(oo[ns]?Ht(oo[ns]):js[qi.value])===_o}),xs=ks==null?void 0:ks[qi.children];if(!(xs!=null&&xs.length))return"break";Ma=xs,Ya.push({options:xs})},So=0;So<ro.length;So+=1){var jo=Oo();if(jo==="break")break}return Ya},[ta,ro,qi]),Gi=function(Ma,oo){$a(oo)&&ea(Ma,Ln(oo,qi),!0)};qa(Lt,ta,qi,ro,vs,Gi),Je.useEffect(function(){for(var Ya=0;Ya<ro.length;Ya+=1){var Ma,oo=ro.slice(0,Ya+1),Oo=Ht(oo),So=(Ma=ci.current)===null||Ma===void 0?void 0:Ma.querySelector('li[data-path-key="'.concat(Oo.replace(/\\{0,2}"/g,'\\"'),'"]'));So&&Qn(So)}},[ro]);var gi=!((dn=ba[0])!==null&&dn!==void 0&&(un=dn.options)!==null&&un!==void 0&&un.length),na=[(Un={},(0,he.Z)(Un,qi.value,"__EMPTY__"),(0,he.Z)(Un,li,jr),(0,he.Z)(Un,"disabled",!0),Un)],Xi=(0,re.Z)((0,re.Z)({},Ct),{},{multiple:!gi&&rr,onSelect:ea,onActive:vs,onToggleOpen:Jr,checkedSet:Ba,halfCheckedSet:Za,loadingKeys:Ca,isSelectable:$a}),Pa=gi?[{options:na}]:ba,Ua=Pa.map(function(Ya,Ma){var oo=ro.slice(0,Ma),Oo=ro[Ma];return Je.createElement(Vi,(0,ae.Z)({key:Ma},Xi,{searchValue:gr,prefixCls:ki,options:Ya.options,prevValuePath:oo,activeValue:Oo}))});return Je.createElement(ca,{open:Qr},Je.createElement("div",{className:te()("".concat(ki,"-menus"),(Nn={},(0,he.Z)(Nn,"".concat(ki,"-menu-empty"),gi),(0,he.Z)(Nn,"".concat(ki,"-rtl"),qr),Nn)),ref:ci},Ua))}),Ra=Ja;function ua(Ct){var Lt=Ct.onPopupVisibleChange,dn=Ct.popupVisible,un=Ct.popupClassName,Un=Ct.popupPlacement;warning(!Lt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(dn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(un===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Un===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function bo(Ct,Lt){if(Ct){var dn=function un(Un){for(var Nn=0;Nn<Un.length;Nn++){var Mn=Un[Nn];if(Mn[Lt==null?void 0:Lt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Mn[Lt==null?void 0:Lt.children])&&un(Mn[Lt==null?void 0:Lt.children]))return!0}};dn(Ct)}}var Da=null,Ki=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function ja(Ct){return Array.isArray(Ct)&&Array.isArray(Ct[0])}function lo(Ct){return Ct?ja(Ct)?Ct:(Ct.length===0?[]:[Ct]).map(function(Lt){return Array.isArray(Lt)?Lt:[Lt]}):[]}var Ka=Je.forwardRef(function(Ct,Lt){var dn=Ct.id,un=Ct.prefixCls,Un=un===void 0?"rc-cascader":un,Nn=Ct.fieldNames,Mn=Ct.defaultValue,nr=Ct.value,rr=Ct.changeOnSelect,gr=Ct.onChange,Jr=Ct.displayRender,jr=Ct.checkable,xi=Ct.autoClearSearchValue,Qr=xi===void 0?!0:xi,ci=Ct.searchValue,qr=Ct.onSearch,wi=Ct.showSearch,Hi=Ct.expandTrigger,oa=Ct.options,fa=Ct.dropdownPrefixCls,qi=Ct.loadData,va=Ct.popupVisible,Bi=Ct.open,ga=Ct.popupClassName,Aa=Ct.dropdownClassName,si=Ct.dropdownMenuColumnStyle,fi=Ct.popupPlacement,ki=Ct.placement,Ia=Ct.onDropdownVisibleChange,ma=Ct.onPopupVisibleChange,Ca=Ct.expandIcon,ya=Ca===void 0?">":Ca,Na=Ct.loadingIcon,Ba=Ct.children,Za=Ct.dropdownMatchSelectWidth,eo=Za===void 0?!1:Za,Wo=Ct.showCheckedStrategy,ro=Wo===void 0?En:Wo,Io=(0,oe.Z)(Ct,Ki),vs=Ni(dn),$a=!!jr,ea=ar(Mn,{value:nr,postState:lo}),ta=(0,ne.Z)(ea,2),ba=ta[0],Gi=ta[1],gi=Je.useMemo(function(){return en(Nn)},[JSON.stringify(Nn)]),na=Je.useMemo(function(){return oa||[]},[oa]),Xi=sr(na,gi),Pa=Je.useCallback(function(Jo){var No=Xi();return Jo.map(function(Zo){var Ks=No[Zo].nodes;return Ks.map(function(As){return As[gi.value]})})},[Xi,gi]),Ua=ar("",{value:ci,postState:function(No){return No||""}}),Ya=(0,ne.Z)(Ua,2),Ma=Ya[0],oo=Ya[1],Oo=function(No,Zo){oo(No),Zo.source!=="blur"&&qr&&qr(No)},So=zi(wi),jo=(0,ne.Z)(So,2),ts=jo[0],_o=jo[1],ks=qt(Ma,na,gi,fa||Un,_o,rr),xs=Mr(na,gi),js=Je.useMemo(function(){var Jo=xs(ba),No=(0,ne.Z)(Jo,2),Zo=No[0],Ks=No[1];if(!$a||!ba.length)return[Zo,[],Ks];var As=Vt(Zo),zs=Xi(),to=(0,Zn.S)(As,!0,zs),yi=to.checkedKeys,Yi=to.halfCheckedKeys;return[Pa(yi),Pa(Yi),Ks]},[$a,ba,Xi,Pa,xs]),ns=(0,ne.Z)(js,3),Ko=ns[0],ws=ns[1],ss=ns[2],qo=Je.useMemo(function(){var Jo=Vt(Ko),No=Kn(Jo,Xi,ro);return[].concat((0,Oe.Z)(ss),(0,Oe.Z)(Pa(No)))},[Ko,Xi,Pa,ss,ro]),Ls=Br(qo,na,gi,$a,Jr),Es=xn(function(Jo){if(Gi(Jo),gr){var No=lo(Jo),Zo=No.map(function(zs){return vr(zs,na,gi).map(function(to){return to.option})}),Ks=$a?No:No[0],As=$a?Zo:Zo[0];gr(Ks,As)}}),Qo=xn(function(Jo){if((!$a||Qr)&&oo(""),!$a)Es(Jo);else{var No=Ht(Jo),Zo=Vt(Ko),Ks=Vt(ws),As=Zo.includes(No),zs=ss.some(function(Js){return Ht(Js)===No}),to=Ko,yi=ss;if(zs&&!As)yi=ss.filter(function(Js){return Ht(Js)!==No});else{var Yi=As?Zo.filter(function(Js){return Js!==No}):[].concat((0,Oe.Z)(Zo),[No]),ka=Xi(),Va;if(As){var Go=(0,Zn.S)(Yi,{checked:!1,halfCheckedKeys:Ks},ka);Va=Go.checkedKeys}else{var Xo=(0,Zn.S)(Yi,!0,ka);Va=Xo.checkedKeys}var gl=Kn(Va,Xi,ro);to=Pa(gl)}Es([].concat((0,Oe.Z)(yi),(0,Oe.Z)(to)))}}),Zs=function(No,Zo){if(Zo.type==="clear"){Es([]);return}var Ks=Zo.values[0],As=Ks.valueCells;Qo(As)},Ol=Bi!==void 0?Bi:va,xl=Aa||ga,ls=ki||fi,Co=function(No){Ia==null||Ia(No),ma==null||ma(No)},cs=Je.useMemo(function(){return{options:na,fieldNames:gi,values:Ko,halfValues:ws,changeOnSelect:rr,onSelect:Qo,checkable:jr,searchOptions:ks,dropdownPrefixCls:fa,loadData:qi,expandTrigger:Hi,expandIcon:ya,loadingIcon:Na,dropdownMenuColumnStyle:si}},[na,gi,Ko,ws,rr,Qo,jr,ks,fa,qi,Hi,ya,Na,si]),Gs=!(Ma?ks:na).length,tl=Ma&&_o.matchInputWidth||Gs?{}:{minWidth:"auto"};return Je.createElement(mr.Provider,{value:cs},Je.createElement(wa,(0,ae.Z)({},Io,{ref:Lt,id:vs,prefixCls:Un,autoClearSearchValue:Qr,dropdownMatchSelectWidth:eo,dropdownStyle:tl,displayValues:Ls,onDisplayValuesChange:Zs,mode:$a?"multiple":void 0,searchValue:Ma,onSearch:Oo,showSearch:ts,OptionList:Ra,emptyOptions:Gs,open:Ol,dropdownClassName:xl,placement:ls,onDropdownVisibleChange:Co,getRawInputElement:function(){return Ba}})))});Ka.SHOW_PARENT=En,Ka.SHOW_CHILD=Hn;var io=Ka,pa=io,po=me(10366),mo=me(33603),fo=me(8745),vo=me(9708),Mo=me(53124),Ho=me(88258),ho=me(98866),ko=me(98675),$o=me(65223),Yo=me(87244),as=me(13458),Bo=me(78642),wo=me(46163),La=me(4173),za=me(63185),uo=me(14747),xo=me(80110),Fo=me(67968);const es=Ct=>{const{prefixCls:Lt,componentCls:dn,antCls:un}=Ct,Un=`${dn}-menu-item`,Nn=`
|
|
|
&${Un}-expand ${Un}-expand-icon,
|
|
|
${Un}-loading-icon
|
|
|
`;return[{[dn]:{width:Ct.controlWidth}},{[`${dn}-dropdown`]:[(0,za.C2)(`${Lt}-checkbox`,Ct),{[`&${un}-select-dropdown`]:{padding:0}},{[dn]:{"&-checkbox":{top:0,marginInlineEnd:Ct.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${dn}-menu-empty`]:{[`${dn}-menu`]:{width:"100%",height:"auto",[Un]:{color:Ct.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Ct.controlItemWidth,height:Ct.dropdownHeight,margin:0,padding:Ct.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Ct.lineWidth}px ${Ct.lineType} ${Ct.colorSplit}`},"&-item":Object.assign(Object.assign({},uo.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ct.optionPadding,lineHeight:Ct.lineHeight,cursor:"pointer",transition:`all ${Ct.motionDurationMid}`,borderRadius:Ct.borderRadiusSM,"&:hover":{background:Ct.controlItemBgHover},"&-disabled":{color:Ct.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Nn]:{color:Ct.colorTextDisabled}},[`&-active:not(${Un}-disabled)`]:{"&, &:hover":{fontWeight:Ct.optionSelectedFontWeight,backgroundColor:Ct.optionSelectedBg}},"&-content":{flex:"auto"},[Nn]:{marginInlineStart:Ct.paddingXXS,color:Ct.colorTextDescription,fontSize:Ct.fontSizeIcon},"&-keyword":{color:Ct.colorHighlight}})}}}]},{[`${dn}-dropdown-rtl`]:{direction:"rtl"}},(0,xo.c)(Ct)]};var ms=(0,Fo.Z)("Cascader",Ct=>[es(Ct)],Ct=>{const Lt=Math.round((Ct.controlHeight-Ct.fontSize*Ct.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ct.controlItemBgActive,optionSelectedFontWeight:Ct.fontWeightStrong,optionPadding:`${Lt}px ${Ct.paddingSM}px`,menuPadding:Ct.paddingXXS}}),_s=function(Ct,Lt){var dn={};for(var un in Ct)Object.prototype.hasOwnProperty.call(Ct,un)&&Lt.indexOf(un)<0&&(dn[un]=Ct[un]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Un=0,un=Object.getOwnPropertySymbols(Ct);Un<un.length;Un++)Lt.indexOf(un[Un])<0&&Object.prototype.propertyIsEnumerable.call(Ct,un[Un])&&(dn[un[Un]]=Ct[un[Un]]);return dn};const{SHOW_CHILD:Fs,SHOW_PARENT:os}=pa;function Is(Ct,Lt,dn){const un=Ct.toLowerCase().split(Lt).reduce((Mn,nr,rr)=>rr===0?[nr]:[].concat((0,Oe.Z)(Mn),[Lt,nr]),[]),Un=[];let Nn=0;return un.forEach((Mn,nr)=>{const rr=Nn+Mn.length;let gr=Ct.slice(Nn,rr);Nn=rr,nr%2===1&&(gr=Je.createElement("span",{className:`${dn}-menu-item-keyword`,key:`separator-${nr}`},gr)),Un.push(gr)}),Un}const no=(Ct,Lt,dn,un)=>{const Un=[],Nn=Ct.toLowerCase();return Lt.forEach((Mn,nr)=>{nr!==0&&Un.push(" / ");let rr=Mn[un.label];const gr=typeof rr;(gr==="string"||gr==="number")&&(rr=Is(String(rr),Nn,dn)),Un.push(rr)}),Un},Ea=Je.forwardRef((Ct,Lt)=>{const{prefixCls:dn,size:un,disabled:Un,className:Nn,rootClassName:Mn,multiple:nr,bordered:rr=!0,transitionName:gr,choiceTransitionName:Jr="",popupClassName:jr,dropdownClassName:xi,expandIcon:Qr,placement:ci,showSearch:qr,allowClear:wi=!0,notFoundContent:Hi,direction:oa,getPopupContainer:fa,status:qi,showArrow:va,builtinPlacements:Bi,style:ga}=Ct,Aa=_s(Ct,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),si=(0,po.Z)(Aa,["suffixIcon"]),{getPopupContainer:fi,getPrefixCls:ki,renderEmpty:Ia,direction:ma,popupOverflow:Ca,cascader:ya}=Je.useContext(Mo.E_),Na=oa||ma,Ba=Na==="rtl",{status:Za,hasFeedback:eo,isFormItemInput:Wo,feedbackIcon:ro}=Je.useContext($o.aM),Io=(0,vo.F)(Za,qi),vs=Hi||(Ia==null?void 0:Ia("Cascader"))||Je.createElement(Ho.Z,{componentName:"Cascader"}),$a=ki(),ea=ki("select",dn),ta=ki("cascader",dn),[ba,Gi]=(0,Yo.Z)(ea),[gi]=ms(ta),{compactSize:na,compactItemClassnames:Xi}=(0,La.ri)(ea,oa),Pa=te()(jr||xi,`${ta}-dropdown`,{[`${ta}-dropdown-rtl`]:Na==="rtl"},Mn,Gi),Ua=Je.useMemo(()=>{if(!qr)return qr;let ss={render:no};return typeof qr=="object"&&(ss=Object.assign(Object.assign({},ss),qr)),ss},[qr]),Ya=(0,ko.Z)(ss=>{var qo;return(qo=un!=null?un:na)!==null&&qo!==void 0?qo:ss}),Ma=Je.useContext(ho.Z),oo=Un!=null?Un:Ma;let Oo=Qr;Qr||(Oo=Ba?Je.createElement(x.Z,null):Je.createElement(ve.Z,null));const So=Je.createElement("span",{className:`${ea}-menu-item-loading-icon`},Je.createElement(Te.Z,{spin:!0})),jo=Je.useMemo(()=>nr?Je.createElement("span",{className:`${ta}-checkbox-inner`}):!1,[nr]),ts=(0,Bo.Z)(Ct.suffixIcon,va),{suffixIcon:_o,removeIcon:ks,clearIcon:xs}=(0,wo.Z)(Object.assign(Object.assign({},Ct),{hasFeedback:eo,feedbackIcon:ro,showSuffixIcon:ts,multiple:nr,prefixCls:ea,componentName:"Cascader"})),js=Je.useMemo(()=>ci!==void 0?ci:Ba?"bottomRight":"bottomLeft",[ci,Ba]),ns=(0,as.Z)(Bi,Ca),Ko=wi===!0?{clearIcon:xs}:wi,ws=Je.createElement(pa,Object.assign({prefixCls:ea,className:te()(!dn&&ta,{[`${ea}-lg`]:Ya==="large",[`${ea}-sm`]:Ya==="small",[`${ea}-rtl`]:Ba,[`${ea}-borderless`]:!rr,[`${ea}-in-form-item`]:Wo},(0,vo.Z)(ea,Io,eo),Xi,ya==null?void 0:ya.className,Nn,Mn,Gi),disabled:oo,style:Object.assign(Object.assign({},ya==null?void 0:ya.style),ga)},si,{builtinPlacements:ns,direction:Na,placement:js,notFoundContent:vs,allowClear:Ko,showSearch:Ua,expandIcon:Oo,suffixIcon:_o,removeIcon:ks,loadingIcon:So,checkable:jo,dropdownClassName:Pa,dropdownPrefixCls:dn||ta,choiceTransitionName:(0,mo.m)($a,"",Jr),transitionName:(0,mo.m)($a,"slide-up",gr),getPopupContainer:fa||fi,ref:Lt}));return gi(ba(ws))}),Do=(0,fo.Z)(Ea);Ea.SHOW_PARENT=os,Ea.SHOW_CHILD=Fs,Ea._InternalPanelDoNotUseOrYouWillBeFired=Do;var To=Ea},84567:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return Fe}});var Oe=me(94184),Je=me.n(Oe),x=me(95860),Te=me(67294),ve=me(53124),ie=me(98866),te=me(65223),ne=Te.createContext(null),oe=me(63185),he=me(45353),re=me(92429),se=function(ke,De){var Le={};for(var Ie in ke)Object.prototype.hasOwnProperty.call(ke,Ie)&&De.indexOf(Ie)<0&&(Le[Ie]=ke[Ie]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ie=Object.getOwnPropertySymbols(ke);Be<Ie.length;Be++)De.indexOf(Ie[Be])<0&&Object.prototype.propertyIsEnumerable.call(ke,Ie[Be])&&(Le[Ie[Be]]=ke[Ie[Be]]);return Le};const ce=(ke,De)=>{var Le;const{prefixCls:Ie,className:Be,rootClassName:Ue,children:_e,indeterminate:We=!1,style:Ze,onMouseEnter:et,onMouseLeave:it,skipGroup:pt=!1,disabled:Ge}=ke,Xe=se(ke,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:lt,direction:dt,checkbox:st}=Te.useContext(ve.E_),nt=Te.useContext(ne),{isFormItemInput:rt}=Te.useContext(te.aM),at=Te.useContext(ie.Z),gt=(Le=(nt==null?void 0:nt.disabled)||Ge)!==null&&Le!==void 0?Le:at,vt=Te.useRef(Xe.value);Te.useEffect(()=>{nt==null||nt.registerValue(Xe.value)},[]),Te.useEffect(()=>{if(!pt)return Xe.value!==vt.current&&(nt==null||nt.cancelValue(vt.current),nt==null||nt.registerValue(Xe.value),vt.current=Xe.value),()=>nt==null?void 0:nt.cancelValue(Xe.value)},[Xe.value]);const Et=lt("checkbox",Ie),[At,ut]=(0,oe.ZP)(Et),Ye=Object.assign({},Xe);nt&&!pt&&(Ye.onChange=function(){Xe.onChange&&Xe.onChange.apply(Xe,arguments),nt.toggleOption&&nt.toggleOption({label:_e,value:Xe.value})},Ye.name=nt.name,Ye.checked=nt.value.includes(Xe.value));const Ve=Je()(`${Et}-wrapper`,{[`${Et}-rtl`]:dt==="rtl",[`${Et}-wrapper-checked`]:Ye.checked,[`${Et}-wrapper-disabled`]:gt,[`${Et}-wrapper-in-form-item`]:rt},st==null?void 0:st.className,Be,Ue,ut),de=Je()({[`${Et}-indeterminate`]:We},re.A,ut),Ce=We?"mixed":void 0;return At(Te.createElement(he.Z,{component:"Checkbox",disabled:gt},Te.createElement("label",{className:Ve,style:Object.assign(Object.assign({},st==null?void 0:st.style),Ze),onMouseEnter:et,onMouseLeave:it},Te.createElement(x.Z,Object.assign({"aria-checked":Ce},Ye,{prefixCls:Et,className:de,disabled:gt,ref:De})),_e!==void 0&&Te.createElement("span",null,_e))))};var pe=Te.forwardRef(ce),le=me(74902),Se=me(10366),xe=function(ke,De){var Le={};for(var Ie in ke)Object.prototype.hasOwnProperty.call(ke,Ie)&&De.indexOf(Ie)<0&&(Le[Ie]=ke[Ie]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ie=Object.getOwnPropertySymbols(ke);Be<Ie.length;Be++)De.indexOf(Ie[Be])<0&&Object.prototype.propertyIsEnumerable.call(ke,Ie[Be])&&(Le[Ie[Be]]=ke[Ie[Be]]);return Le};const ge=(ke,De)=>{const{defaultValue:Le,children:Ie,options:Be=[],prefixCls:Ue,className:_e,rootClassName:We,style:Ze,onChange:et}=ke,it=xe(ke,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:pt,direction:Ge}=Te.useContext(ve.E_),[Xe,lt]=Te.useState(it.value||Le||[]),[dt,st]=Te.useState([]);Te.useEffect(()=>{"value"in it&<(it.value||[])},[it.value]);const nt=Te.useMemo(()=>Be.map(He=>typeof He=="string"||typeof He=="number"?{label:He,value:He}:He),[Be]),rt=He=>{st(je=>je.filter(Ae=>Ae!==He))},at=He=>{st(je=>[].concat((0,le.Z)(je),[He]))},gt=He=>{const je=Xe.indexOf(He.value),Ae=(0,le.Z)(Xe);je===-1?Ae.push(He.value):Ae.splice(je,1),"value"in it||lt(Ae),et==null||et(Ae.filter(Ne=>dt.includes(Ne)).sort((Ne,ze)=>{const Qe=nt.findIndex(mt=>mt.value===Ne),ot=nt.findIndex(mt=>mt.value===ze);return Qe-ot}))},vt=pt("checkbox",Ue),Et=`${vt}-group`,[At,ut]=(0,oe.ZP)(vt),Ye=(0,Se.Z)(it,["value","disabled"]),Ve=Be.length?nt.map(He=>Te.createElement(pe,{prefixCls:vt,key:He.value.toString(),disabled:"disabled"in He?He.disabled:it.disabled,value:He.value,checked:Xe.includes(He.value),onChange:He.onChange,className:`${Et}-item`,style:He.style,title:He.title},He.label)):Ie,de={toggleOption:gt,value:Xe,disabled:it.disabled,name:it.name,registerValue:at,cancelValue:rt},Ce=Je()(Et,{[`${Et}-rtl`]:Ge==="rtl"},_e,We,ut);return At(Te.createElement("div",Object.assign({className:Ce,style:Ze},Ye,{ref:De}),Te.createElement(ne.Provider,{value:de},Ve)))},Me=Te.forwardRef(ge);var ye=Te.memo(Me);const be=pe;be.Group=ye,be.__ANT_CHECKBOX=!0;var Fe=be},63185:function(tn,Kt,me){"use strict";me.d(Kt,{C2:function(){return ve}});var Oe=me(14747),Je=me(45503),x=me(67968);const Te=ie=>{const{checkboxCls:te}=ie,ae=`${te}-wrapper`;return[{[`${te}-group`]:Object.assign(Object.assign({},(0,Oe.Wf)(ie)),{display:"inline-flex",flexWrap:"wrap",columnGap:ie.marginXS,[`> ${ie.antCls}-row`]:{flex:1}}),[ae]:Object.assign(Object.assign({},(0,Oe.Wf)(ie)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ae}`]:{marginInlineStart:0},[`&${ae}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[te]:Object.assign(Object.assign({},(0,Oe.Wf)(ie)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ie.borderRadiusSM,alignSelf:"center",[`${te}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${te}-inner`]:Object.assign({},(0,Oe.oN)(ie))},[`${te}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ie.checkboxSize,height:ie.checkboxSize,direction:"ltr",backgroundColor:ie.colorBgContainer,border:`${ie.lineWidth}px ${ie.lineType} ${ie.colorBorder}`,borderRadius:ie.borderRadiusSM,borderCollapse:"separate",transition:`all ${ie.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ie.checkboxSize/14*5,height:ie.checkboxSize/14*8,border:`${ie.lineWidthBold}px solid ${ie.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ie.motionDurationFast} ${ie.motionEaseInBack}, opacity ${ie.motionDurationFast}`}},"& + span":{paddingInlineStart:ie.paddingXS,paddingInlineEnd:ie.paddingXS}})},{[`
|
|
|
${ae}:not(${ae}-disabled),
|
|
|
${te}:not(${te}-disabled)
|
|
|
`]:{[`&:hover ${te}-inner`]:{borderColor:ie.colorPrimary}},[`${ae}:not(${ae}-disabled)`]:{[`&:hover ${te}-checked:not(${te}-disabled) ${te}-inner`]:{backgroundColor:ie.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${te}-checked:not(${te}-disabled):after`]:{borderColor:ie.colorPrimaryHover}}},{[`${te}-checked`]:{[`${te}-inner`]:{backgroundColor:ie.colorPrimary,borderColor:ie.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ie.motionDurationMid} ${ie.motionEaseOutBack} ${ie.motionDurationFast}`}}},[`
|
|
|
${ae}-checked:not(${ae}-disabled),
|
|
|
${te}-checked:not(${te}-disabled)
|
|
|
`]:{[`&:hover ${te}-inner`]:{backgroundColor:ie.colorPrimaryHover,borderColor:"transparent"}}},{[te]:{"&-indeterminate":{[`${te}-inner`]:{backgroundColor:ie.colorBgContainer,borderColor:ie.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ie.fontSizeLG/2,height:ie.fontSizeLG/2,backgroundColor:ie.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ae}-disabled`]:{cursor:"not-allowed"},[`${te}-disabled`]:{[`&, ${te}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${te}-inner`]:{background:ie.colorBgContainerDisabled,borderColor:ie.colorBorder,"&:after":{borderColor:ie.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ie.colorTextDisabled},[`&${te}-indeterminate ${te}-inner::after`]:{background:ie.colorTextDisabled}}}]};function ve(ie,te){const ae=(0,Je.TS)(te,{checkboxCls:`.${ie}`,checkboxSize:te.controlInteractiveSize});return[Te(ae)]}Kt.ZP=(0,x.Z)("Checkbox",(ie,te)=>{let{prefixCls:ae}=te;return[ve(ae,ie)]})},47221:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return Ye}});var Oe=me(91034),Je=me(94184),x=me.n(Je),Te=me(97685),ve=me(74902),ie=me(71002),te=me(21770),ae=me(80334),ne=me(67294),oe=me(87462),he=me(45987),re=me(50344),se=me(4942),ce=me(62874),fe=me(15105),pe=ne.forwardRef(function(Ve,de){var Ce,He=Ve.prefixCls,je=Ve.forceRender,Ae=Ve.className,Ne=Ve.style,ze=Ve.children,Qe=Ve.isActive,ot=Ve.role,mt=ne.useState(Qe||je),Ot=(0,Te.Z)(mt,2),xt=Ot[0],Ut=Ot[1];return ne.useEffect(function(){(je||Qe)&&Ut(!0)},[je,Qe]),xt?ne.createElement("div",{ref:de,className:x()("".concat(He,"-content"),(Ce={},(0,se.Z)(Ce,"".concat(He,"-content-active"),Qe),(0,se.Z)(Ce,"".concat(He,"-content-inactive"),!Qe),Ce),Ae),style:Ne,role:ot},ne.createElement("div",{className:"".concat(He,"-content-box")},ze)):null});pe.displayName="PanelContent";var le=pe,Se=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],xe=ne.forwardRef(function(Ve,de){var Ce,He,je=Ve.showArrow,Ae=je===void 0?!0:je,Ne=Ve.headerClass,ze=Ve.isActive,Qe=Ve.onItemClick,ot=Ve.forceRender,mt=Ve.className,Ot=Ve.prefixCls,xt=Ve.collapsible,Ut=Ve.accordion,xn=Ve.panelKey,Ft=Ve.extra,Qt=Ve.header,Zt=Ve.expandIcon,bn=Ve.openMotion,Pt=Ve.destroyInactivePanel,zt=Ve.children,sn=(0,he.Z)(Ve,Se),yn=xt==="disabled",kn=xt==="header",Gn=xt==="icon",dr=Ft!=null&&typeof Ft!="boolean",Or=function(){Qe==null||Qe(xn)},zr=function(Zi){(Zi.key==="Enter"||Zi.keyCode===fe.Z.ENTER||Zi.which===fe.Z.ENTER)&&Or()},Hr=typeof Zt=="function"?Zt(Ve):ne.createElement("i",{className:"arrow"});Hr&&(Hr=ne.createElement("div",{className:"".concat(Ot,"-expand-icon"),onClick:["header","icon"].includes(xt)?Or:void 0},Hr));var Dr=x()((Ce={},(0,se.Z)(Ce,"".concat(Ot,"-item"),!0),(0,se.Z)(Ce,"".concat(Ot,"-item-active"),ze),(0,se.Z)(Ce,"".concat(Ot,"-item-disabled"),yn),Ce),mt),Kr=x()(Ne,(He={},(0,se.Z)(He,"".concat(Ot,"-header"),!0),(0,se.Z)(He,"".concat(Ot,"-header-collapsible-only"),kn),(0,se.Z)(He,"".concat(Ot,"-icon-collapsible-only"),Gn),He)),Ai={className:Kr,"aria-expanded":ze,"aria-disabled":yn,onKeyDown:zr};return!kn&&!Gn&&(Ai.onClick=Or,Ai.role=Ut?"tab":"button",Ai.tabIndex=yn?-1:0),ne.createElement("div",(0,oe.Z)({},sn,{ref:de,className:Dr}),ne.createElement("div",Ai,Ae&&Hr,ne.createElement("span",{className:"".concat(Ot,"-header-text"),onClick:xt==="header"?Or:void 0},Qt),dr&&ne.createElement("div",{className:"".concat(Ot,"-extra")},Ft)),ne.createElement(ce.Z,(0,oe.Z)({visible:ze,leavedClassName:"".concat(Ot,"-content-hidden")},bn,{forceRender:ot,removeOnLeave:Pt}),function(Di,Zi){var di=Di.className,rn=Di.style;return ne.createElement(le,{ref:Zi,prefixCls:Ot,className:di,style:rn,isActive:ze,forceRender:ot,role:Ut?"tabpanel":void 0},zt)}))}),ge=xe,Me=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ye=function(de,Ce){var He=Ce.prefixCls,je=Ce.accordion,Ae=Ce.collapsible,Ne=Ce.destroyInactivePanel,ze=Ce.onItemClick,Qe=Ce.activeKey,ot=Ce.openMotion,mt=Ce.expandIcon;return de.map(function(Ot,xt){var Ut=Ot.children,xn=Ot.label,Ft=Ot.key,Qt=Ot.collapsible,Zt=Ot.onItemClick,bn=Ot.destroyInactivePanel,Pt=(0,he.Z)(Ot,Me),zt=String(Ft!=null?Ft:xt),sn=Qt!=null?Qt:Ae,yn=bn!=null?bn:Ne,kn=function(Or){sn!=="disabled"&&(ze(Or),Zt==null||Zt(Or))},Gn=!1;return je?Gn=Qe[0]===zt:Gn=Qe.indexOf(zt)>-1,ne.createElement(ge,(0,oe.Z)({},Pt,{prefixCls:He,key:zt,panelKey:zt,isActive:Gn,accordion:je,openMotion:ot,expandIcon:mt,header:xn,collapsible:sn,onItemClick:kn,destroyInactivePanel:yn}),Ut)})},be=function(de,Ce,He){if(!de)return null;var je=He.prefixCls,Ae=He.accordion,Ne=He.collapsible,ze=He.destroyInactivePanel,Qe=He.onItemClick,ot=He.activeKey,mt=He.openMotion,Ot=He.expandIcon,xt=de.key||String(Ce),Ut=de.props,xn=Ut.header,Ft=Ut.headerClass,Qt=Ut.destroyInactivePanel,Zt=Ut.collapsible,bn=Ut.onItemClick,Pt=!1;Ae?Pt=ot[0]===xt:Pt=ot.indexOf(xt)>-1;var zt=Zt!=null?Zt:Ne,sn=function(Gn){zt!=="disabled"&&(Qe(Gn),bn==null||bn(Gn))},yn={key:xt,panelKey:xt,header:xn,headerClass:Ft,isActive:Pt,prefixCls:je,destroyInactivePanel:Qt!=null?Qt:ze,openMotion:mt,accordion:Ae,children:de.props.children,onItemClick:sn,expandIcon:Ot,collapsible:zt};return typeof de.type=="string"?de:(Object.keys(yn).forEach(function(kn){typeof yn[kn]=="undefined"&&delete yn[kn]}),ne.cloneElement(de,yn))};function Fe(Ve,de,Ce){return Array.isArray(Ve)?ye(Ve,Ce):(0,re.Z)(de).map(function(He,je){return be(He,je,Ce)})}var ke=Fe;function De(Ve){var de=Ve;if(!Array.isArray(de)){var Ce=(0,ie.Z)(de);de=Ce==="number"||Ce==="string"?[de]:[]}return de.map(function(He){return String(He)})}var Le=ne.forwardRef(function(Ve,de){var Ce=Ve.prefixCls,He=Ce===void 0?"rc-collapse":Ce,je=Ve.destroyInactivePanel,Ae=je===void 0?!1:je,Ne=Ve.style,ze=Ve.accordion,Qe=Ve.className,ot=Ve.children,mt=Ve.collapsible,Ot=Ve.openMotion,xt=Ve.expandIcon,Ut=Ve.activeKey,xn=Ve.defaultActiveKey,Ft=Ve.onChange,Qt=Ve.items,Zt=x()(He,Qe),bn=(0,te.Z)([],{value:Ut,onChange:function(dr){return Ft==null?void 0:Ft(dr)},defaultValue:xn,postState:De}),Pt=(0,Te.Z)(bn,2),zt=Pt[0],sn=Pt[1],yn=function(dr){return sn(function(){if(ze)return zt[0]===dr?[]:[dr];var Or=zt.indexOf(dr),zr=Or>-1;return zr?zt.filter(function(Hr){return Hr!==dr}):[].concat((0,ve.Z)(zt),[dr])})};(0,ae.ZP)(!ot,"`children` will be removed in next major version. Please use `items` instead.");var kn=ke(Qt,ot,{prefixCls:He,accordion:ze,openMotion:Ot,expandIcon:xt,collapsible:mt,destroyInactivePanel:Ae,onItemClick:yn,activeKey:zt});return ne.createElement("div",{ref:de,className:Zt,style:Ne,role:ze?"tablist":void 0},kn)}),Ie=Object.assign(Le,{Panel:ge}),Be=Ie,Ue=Ie.Panel,_e=me(37419),We=me(10366),Ze=me(33603),et=me(96159),it=me(53124),pt=me(98675),Xe=ne.forwardRef((Ve,de)=>{const{getPrefixCls:Ce}=ne.useContext(it.E_),{prefixCls:He,className:je,showArrow:Ae=!0}=Ve,Ne=Ce("collapse",He),ze=x()({[`${Ne}-no-arrow`]:!Ae},je);return ne.createElement(Be.Panel,Object.assign({ref:de},Ve,{prefixCls:Ne,className:ze}))}),lt=me(14747),dt=me(33507),st=me(67968),nt=me(45503);const rt=Ve=>{const{componentCls:de,contentBg:Ce,padding:He,headerBg:je,headerPadding:Ae,collapseHeaderPaddingSM:Ne,collapseHeaderPaddingLG:ze,collapsePanelBorderRadius:Qe,lineWidth:ot,lineType:mt,colorBorder:Ot,colorText:xt,colorTextHeading:Ut,colorTextDisabled:xn,fontSize:Ft,fontSizeLG:Qt,lineHeight:Zt,marginSM:bn,paddingSM:Pt,paddingLG:zt,paddingXS:sn,motionDurationSlow:yn,fontSizeIcon:kn,contentPadding:Gn}=Ve,dr=`${ot}px ${mt} ${Ot}`;return{[de]:Object.assign(Object.assign({},(0,lt.Wf)(Ve)),{backgroundColor:je,border:dr,borderBottom:0,borderRadius:`${Qe}px`,"&-rtl":{direction:"rtl"},[`& > ${de}-item`]:{borderBottom:dr,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${de}-header`]:{borderRadius:`0 0 ${Qe}px ${Qe}px`}},[`> ${de}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Ae,color:Ut,lineHeight:Zt,cursor:"pointer",transition:`all ${yn}, visibility 0s`,[`> ${de}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${de}-expand-icon`]:{height:Ft*Zt,display:"flex",alignItems:"center",paddingInlineEnd:bn},[`${de}-arrow`]:Object.assign(Object.assign({},(0,lt.Ro)()),{fontSize:kn,svg:{transition:`transform ${yn}`}}),[`${de}-header-text`]:{marginInlineEnd:"auto"}},[`${de}-header-collapsible-only`]:{cursor:"default",[`${de}-header-text`]:{flex:"none",cursor:"pointer"}},[`${de}-icon-collapsible-only`]:{cursor:"default",[`${de}-expand-icon`]:{cursor:"pointer"}}},[`${de}-content`]:{color:xt,backgroundColor:Ce,borderTop:dr,[`& > ${de}-content-box`]:{padding:Gn},"&-hidden":{display:"none"}},"&-small":{[`> ${de}-item`]:{[`> ${de}-header`]:{padding:Ne,paddingInlineStart:sn,[`> ${de}-expand-icon`]:{marginInlineStart:Pt-sn}},[`> ${de}-content > ${de}-content-box`]:{padding:Pt}}},"&-large":{[`> ${de}-item`]:{fontSize:Qt,[`> ${de}-header`]:{padding:ze,paddingInlineStart:He,[`> ${de}-expand-icon`]:{height:Qt*Zt,marginInlineStart:zt-He}},[`> ${de}-content > ${de}-content-box`]:{padding:zt}}},[`${de}-item:last-child`]:{[`> ${de}-content`]:{borderRadius:`0 0 ${Qe}px ${Qe}px`}},[`& ${de}-item-disabled > ${de}-header`]:{"\n &,\n & > .arrow\n ":{color:xn,cursor:"not-allowed"}},[`&${de}-icon-position-end`]:{[`& > ${de}-item`]:{[`> ${de}-header`]:{[`${de}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:bn}}}}})}},at=Ve=>{const{componentCls:de}=Ve,Ce=`> ${de}-item > ${de}-header ${de}-arrow svg`;return{[`${de}-rtl`]:{[Ce]:{transform:"rotate(180deg)"}}}},gt=Ve=>{const{componentCls:de,headerBg:Ce,paddingXXS:He,colorBorder:je}=Ve;return{[`${de}-borderless`]:{backgroundColor:Ce,border:0,[`> ${de}-item`]:{borderBottom:`1px solid ${je}`},[`
|
|
|
> ${de}-item:last-child,
|
|
|
> ${de}-item:last-child ${de}-header
|
|
|
`]:{borderRadius:0},[`> ${de}-item:last-child`]:{borderBottom:0},[`> ${de}-item > ${de}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${de}-item > ${de}-content > ${de}-content-box`]:{paddingTop:He}}}},vt=Ve=>{const{componentCls:de,paddingSM:Ce}=Ve;return{[`${de}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${de}-item`]:{borderBottom:0,[`> ${de}-content`]:{backgroundColor:"transparent",border:0,[`> ${de}-content-box`]:{paddingBlock:Ce}}}}}};var Et=(0,st.Z)("Collapse",Ve=>{const de=(0,nt.TS)(Ve,{collapseHeaderPaddingSM:`${Ve.paddingXS}px ${Ve.paddingSM}px`,collapseHeaderPaddingLG:`${Ve.padding}px ${Ve.paddingLG}px`,collapsePanelBorderRadius:Ve.borderRadiusLG});return[rt(de),gt(de),vt(de),at(de),(0,dt.Z)(de)]},Ve=>({headerPadding:`${Ve.paddingSM}px ${Ve.padding}px`,headerBg:Ve.colorFillAlter,contentPadding:`${Ve.padding}px 16px`,contentBg:Ve.colorBgContainer})),ut=Object.assign(ne.forwardRef((Ve,de)=>{const{getPrefixCls:Ce,direction:He,collapse:je}=ne.useContext(it.E_),{prefixCls:Ae,className:Ne,rootClassName:ze,style:Qe,bordered:ot=!0,ghost:mt,size:Ot,expandIconPosition:xt="start",children:Ut,expandIcon:xn}=Ve,Ft=(0,pt.Z)(dr=>{var Or;return(Or=Ot!=null?Ot:dr)!==null&&Or!==void 0?Or:"middle"}),Qt=Ce("collapse",Ae),Zt=Ce(),[bn,Pt]=Et(Qt),zt=ne.useMemo(()=>xt==="left"?"start":xt==="right"?"end":xt,[xt]),sn=function(){let dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Or=xn?xn(dr):ne.createElement(Oe.Z,{rotate:dr.isActive?90:void 0});return(0,et.Tm)(Or,()=>({className:x()(Or.props.className,`${Qt}-arrow`)}))},yn=x()(`${Qt}-icon-position-${zt}`,{[`${Qt}-borderless`]:!ot,[`${Qt}-rtl`]:He==="rtl",[`${Qt}-ghost`]:!!mt,[`${Qt}-${Ft}`]:Ft!=="middle"},je==null?void 0:je.className,Ne,ze,Pt),kn=Object.assign(Object.assign({},(0,Ze.Z)(Zt)),{motionAppear:!1,leavedClassName:`${Qt}-content-hidden`}),Gn=ne.useMemo(()=>Ut?(0,_e.Z)(Ut).map((dr,Or)=>{var zr,Hr;if(!((zr=dr.props)===null||zr===void 0)&&zr.disabled){const Dr=(Hr=dr.key)!==null&&Hr!==void 0?Hr:String(Or),{disabled:Kr,collapsible:Ai}=dr.props,Di=Object.assign(Object.assign({},(0,We.Z)(dr.props,["disabled"])),{key:Dr,collapsible:Ai!=null?Ai:Kr?"disabled":void 0});return(0,et.Tm)(dr,Di)}return dr}):null,[Ut]);return bn(ne.createElement(Be,Object.assign({ref:de,openMotion:kn},(0,We.Z)(Ve,["rootClassName"]),{expandIcon:sn,prefixCls:Qt,className:yn,style:Object.assign(Object.assign({},je==null?void 0:je.style),Qe)}),Gn))}),{Panel:Xe}),Ye=ut},88258:function(tn,Kt,me){"use strict";var Oe=me(67294),Je=me(53124),x=me(32983);const Te=ve=>{const{componentName:ie}=ve,{getPrefixCls:te}=(0,Oe.useContext)(Je.E_),ae=te("empty");switch(ie){case"Table":case"List":return Oe.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Oe.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE,className:`${ae}-small`});default:return Oe.createElement(x.Z,null)}};Kt.Z=Te},72565:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Ni}});var Oe=me(94184),Je=me.n(Oe),x=me(1413),Te=me(97685),ve=me(67294),ie=me(73935);function te(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ae={};function ne(mn,ln){}function oe(mn,ln){}function he(){ae={}}function re(mn,ln,Fn){!ln&&!ae[Fn]&&(mn(!1,Fn),ae[Fn]=!0)}function se(mn,ln){re(ne,mn,ln)}function ce(mn,ln){re(oe,mn,ln)}var fe=null,pe=me(71002),le=me(18459);function Se(mn,ln,Fn){var or=ve.useRef({});return(!("value"in or.current)||Fn(or.current.condition,ln))&&(or.current.value=mn(),or.current.condition=ln),or.current.value}function xe(mn,ln){typeof mn=="function"?mn(ln):(0,pe.Z)(mn)==="object"&&mn&&"current"in mn&&(mn.current=ln)}function ge(){for(var mn=arguments.length,ln=new Array(mn),Fn=0;Fn<mn;Fn++)ln[Fn]=arguments[Fn];var or=ln.filter(function(br){return br});return or.length<=1?or[0]:function(br){ln.forEach(function(Xr){xe(Xr,br)})}}function Me(){for(var mn=arguments.length,ln=new Array(mn),Fn=0;Fn<mn;Fn++)ln[Fn]=arguments[Fn];return Se(function(){return ge.apply(void 0,ln)},ln,function(or,br){return or.length===br.length&&or.every(function(Xr,oi){return Xr===br[oi]})})}function ye(mn){var ln,Fn,or=(0,le.isMemo)(mn)?mn.type.type:mn.type;return!(typeof or=="function"&&!((ln=or.prototype)!==null&&ln!==void 0&&ln.render)||typeof mn=="function"&&!((Fn=mn.prototype)!==null&&Fn!==void 0&&Fn.render))}var be=ve.createContext(null),Fe=be,ke=me(74902),De=te()?ve.useLayoutEffect:ve.useEffect,Le=De,Ie=function(ln,Fn){var or=React.useRef(!0);De(function(){if(!or.current)return ln()},Fn),De(function(){return or.current=!1,function(){or.current=!0}},[])},Be=[];function Ue(mn,ln){var Fn=ve.useState(function(){if(!te())return null;var Pn=document.createElement("div");return Pn}),or=(0,Te.Z)(Fn,1),br=or[0],Xr=ve.useRef(!1),oi=ve.useContext(Fe),pi=ve.useState(Be),Ti=(0,Te.Z)(pi,2),vi=Ti[0],Ri=Ti[1],$i=oi||(Xr.current?void 0:function(Pn){Ri(function(Yn){var qe=[Pn].concat((0,ke.Z)(Yn));return qe})});function ni(){br.parentElement||document.body.appendChild(br),Xr.current=!0}function Sn(){var Pn;(Pn=br.parentElement)===null||Pn===void 0||Pn.removeChild(br),Xr.current=!1}return Le(function(){return mn?oi?oi(ni):ni():Sn(),Sn},[mn]),Le(function(){vi.length&&(vi.forEach(function(Pn){return Pn()}),Ri(Be))},[vi]),[br,$i]}function _e(mn,ln){if(!mn)return!1;if(mn.contains)return mn.contains(ln);for(var Fn=ln;Fn;){if(Fn===mn)return!0;Fn=Fn.parentNode}return!1}var We="data-rc-order",Ze="rc-util-key",et=new Map;function it(){var mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=mn.mark;return ln?ln.startsWith("data-")?ln:"data-".concat(ln):Ze}function pt(mn){if(mn.attachTo)return mn.attachTo;var ln=document.querySelector("head");return ln||document.body}function Ge(mn){return mn==="queue"?"prependQueue":mn?"prepend":"append"}function Xe(mn){return Array.from((et.get(mn)||mn).children).filter(function(ln){return ln.tagName==="STYLE"})}function lt(mn){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!te())return null;var Fn=ln.csp,or=ln.prepend,br=document.createElement("style");br.setAttribute(We,Ge(or)),Fn!=null&&Fn.nonce&&(br.nonce=Fn==null?void 0:Fn.nonce),br.innerHTML=mn;var Xr=pt(ln),oi=Xr.firstChild;if(or){if(or==="queue"){var pi=Xe(Xr).filter(function(Ti){return["prepend","prependQueue"].includes(Ti.getAttribute(We))});if(pi.length)return Xr.insertBefore(br,pi[pi.length-1].nextSibling),br}Xr.insertBefore(br,oi)}else Xr.appendChild(br);return br}function dt(mn){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fn=pt(ln);return Xe(Fn).find(function(or){return or.getAttribute(it(ln))===mn})}function st(mn){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fn=dt(mn,ln);if(Fn){var or=pt(ln);or.removeChild(Fn)}}function nt(mn,ln){var Fn=et.get(mn);if(!Fn||!_e(document,Fn)){var or=lt("",ln),br=or.parentNode;et.set(mn,br),mn.removeChild(or)}}function rt(){et.clear()}function at(mn,ln){var Fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},or=pt(Fn);nt(or,Fn);var br=dt(ln,Fn);if(br){var Xr,oi;if((Xr=Fn.csp)!==null&&Xr!==void 0&&Xr.nonce&&br.nonce!==((oi=Fn.csp)===null||oi===void 0?void 0:oi.nonce)){var pi;br.nonce=(pi=Fn.csp)===null||pi===void 0?void 0:pi.nonce}return br.innerHTML!==mn&&(br.innerHTML=mn),br}var Ti=lt(mn,Fn);return Ti.setAttribute(it(Fn),ln),Ti}var gt;function vt(mn){if(typeof document=="undefined")return 0;if(mn||gt===void 0){var ln=document.createElement("div");ln.style.width="100%",ln.style.height="200px";var Fn=document.createElement("div"),or=Fn.style;or.position="absolute",or.top="0",or.left="0",or.pointerEvents="none",or.visibility="hidden",or.width="200px",or.height="150px",or.overflow="hidden",Fn.appendChild(ln),document.body.appendChild(Fn);var br=ln.offsetWidth;Fn.style.overflow="scroll";var Xr=ln.offsetWidth;br===Xr&&(Xr=Fn.clientWidth),document.body.removeChild(Fn),gt=br-Xr}return gt}function Et(mn){var ln=mn.match(/^(.*)px$/),Fn=Number(ln==null?void 0:ln[1]);return Number.isNaN(Fn)?vt():Fn}function At(mn){if(typeof document=="undefined"||!mn||!(mn instanceof Element))return{width:0,height:0};var ln=getComputedStyle(mn,"::-webkit-scrollbar"),Fn=ln.width,or=ln.height;return{width:Et(Fn),height:Et(or)}}function ut(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ye="rc-util-locker-".concat(Date.now()),Ve=0;function de(mn){var ln=!!mn,Fn=ve.useState(function(){return Ve+=1,"".concat(Ye,"_").concat(Ve)}),or=(0,Te.Z)(Fn,1),br=or[0];Le(function(){if(ln){var Xr=At(document.body).width,oi=ut();at(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(oi?"width: calc(100% - ".concat(Xr,"px);"):"",`
|
|
|
}`),br)}else st(br);return function(){st(br)}},[ln,br])}var Ce=!1;function He(mn){return typeof mn=="boolean"&&(Ce=mn),Ce}var je=function(ln){return ln===!1?!1:!te()||!ln?null:typeof ln=="string"?document.querySelector(ln):typeof ln=="function"?ln():ln},Ae=ve.forwardRef(function(mn,ln){var Fn=mn.open,or=mn.autoLock,br=mn.getContainer,Xr=mn.debug,oi=mn.autoDestroy,pi=oi===void 0?!0:oi,Ti=mn.children,vi=ve.useState(Fn),Ri=(0,Te.Z)(vi,2),$i=Ri[0],ni=Ri[1],Sn=$i||Fn;ve.useEffect(function(){(pi||Fn)&&ni(Fn)},[Fn,pi]);var Pn=ve.useState(function(){return je(br)}),Yn=(0,Te.Z)(Pn,2),qe=Yn[0],yt=Yn[1];ve.useEffect(function(){var Dn=je(br);yt(Dn!=null?Dn:null)});var St=Ue(Sn&&!qe,Xr),Dt=(0,Te.Z)(St,2),Tt=Dt[0],Nt=Dt[1],_t=qe!=null?qe:Tt;de(or&&Fn&&te()&&(_t===Tt||_t===document.body));var on=null;if(Ti&&ye(Ti)&&ln){var gn=Ti;on=gn.ref}var Vn=Me(on,ln);if(!Sn||!te()||qe===void 0)return null;var qn=_t===!1||He(),Xn=Ti;return ln&&(Xn=ve.cloneElement(Ti,{ref:Vn})),ve.createElement(Fe.Provider,{value:Nt},qn?Xn:(0,ie.createPortal)(Xn,_t))}),Ne=Ae,ze=Ne;function Qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ot=Qe()?ve.useLayoutEffect:ve.useEffect,mt=function(ln,Fn){var or=ve.useRef(!0);ot(function(){return ln(or.current)},Fn),ot(function(){return or.current=!1,function(){or.current=!0}},[])},Ot=function(ln,Fn){mt(function(or){if(!or)return ln()},Fn)},xt=mt,Ut=ve.createContext(null),xn=ve.createContext({}),Ft=Ut,Qt=me(4942),Zt=me(87462),bn=me(62874),Pt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ln){var Fn=ln.keyCode;if(ln.altKey&&!ln.ctrlKey||ln.metaKey||Fn>=Pt.F1&&Fn<=Pt.F12)return!1;switch(Fn){case Pt.ALT:case Pt.CAPS_LOCK:case Pt.CONTEXT_MENU:case Pt.CTRL:case Pt.DOWN:case Pt.END:case Pt.ESC:case Pt.HOME:case Pt.INSERT:case Pt.LEFT:case Pt.MAC_FF_META:case Pt.META:case Pt.NUMLOCK:case Pt.NUM_CENTER:case Pt.PAGE_DOWN:case Pt.PAGE_UP:case Pt.PAUSE:case Pt.PRINT_SCREEN:case Pt.RIGHT:case Pt.SHIFT:case Pt.UP:case Pt.WIN_KEY:case Pt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ln){if(ln>=Pt.ZERO&&ln<=Pt.NINE||ln>=Pt.NUM_ZERO&&ln<=Pt.NUM_MULTIPLY||ln>=Pt.A&&ln<=Pt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ln===0)return!0;switch(ln){case Pt.SPACE:case Pt.QUESTION_MARK:case Pt.NUM_PLUS:case Pt.NUM_MINUS:case Pt.NUM_PERIOD:case Pt.NUM_DIVISION:case Pt.SEMICOLON:case Pt.DASH:case Pt.EQUALS:case Pt.COMMA:case Pt.PERIOD:case Pt.SLASH:case Pt.APOSTROPHE:case Pt.SINGLE_QUOTE:case Pt.OPEN_SQUARE_BRACKET:case Pt.BACKSLASH:case Pt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},zt=Pt,sn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,yn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,kn="".concat(sn," ").concat(yn).split(/[\s\n]+/),Gn="aria-",dr="data-";function Or(mn,ln){return mn.indexOf(ln)===0}function zr(mn){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fn;ln===!1?Fn={aria:!0,data:!0,attr:!0}:ln===!0?Fn={aria:!0}:Fn=(0,x.Z)({},ln);var or={};return Object.keys(mn).forEach(function(br){(Fn.aria&&(br==="role"||Or(br,Gn))||Fn.data&&Or(br,dr)||Fn.attr&&kn.includes(br))&&(or[br]=mn[br])}),or}function Hr(mn){var ln=React.useRef();ln.current=mn;var Fn=React.useCallback(function(){for(var or,br=arguments.length,Xr=new Array(br),oi=0;oi<br;oi++)Xr[oi]=arguments[oi];return(or=ln.current)===null||or===void 0?void 0:or.call.apply(or,[ln].concat(Xr))},[]);return Fn}function Dr(mn){var ln=React.useRef(!1),Fn=React.useState(mn),or=_slicedToArray(Fn,2),br=or[0],Xr=or[1];React.useEffect(function(){return ln.current=!1,function(){ln.current=!0}},[]);function oi(pi,Ti){Ti&&ln.current||Xr(pi)}return[br,oi]}function Kr(mn){return mn!==void 0}function Ai(mn,ln){var Fn=ln||{},or=Fn.defaultValue,br=Fn.value,Xr=Fn.onChange,oi=Fn.postState,pi=useState(function(){return Kr(br)?br:Kr(or)?typeof or=="function"?or():or:typeof mn=="function"?mn():mn}),Ti=_slicedToArray(pi,2),vi=Ti[0],Ri=Ti[1],$i=br!==void 0?br:vi,ni=oi?oi($i):$i,Sn=useEvent(Xr),Pn=useState([$i]),Yn=_slicedToArray(Pn,2),qe=Yn[0],yt=Yn[1];useLayoutUpdateEffect(function(){var Dt=qe[0];vi!==Dt&&Sn(vi,Dt)},[qe]),useLayoutUpdateEffect(function(){Kr(br)||Ri(br)},[br]);var St=useEvent(function(Dt,Tt){Ri(Dt,Tt),yt([$i],Tt)});return[ni,St]}var Di=me(33993);function Zi(mn,ln,Fn){var or=ve.useRef({});return(!("value"in or.current)||Fn(or.current.condition,ln))&&(or.current.value=mn(),or.current.condition=ln),or.current.value}function di(mn,ln){typeof mn=="function"?mn(ln):(0,pe.Z)(mn)==="object"&&mn&&"current"in mn&&(mn.current=ln)}function rn(){for(var mn=arguments.length,ln=new Array(mn),Fn=0;Fn<mn;Fn++)ln[Fn]=arguments[Fn];var or=ln.filter(function(br){return br});return or.length<=1?or[0]:function(br){ln.forEach(function(Xr){di(Xr,br)})}}function zn(){for(var mn=arguments.length,ln=new Array(mn),Fn=0;Fn<mn;Fn++)ln[Fn]=arguments[Fn];return Zi(function(){return rn.apply(void 0,ln)},ln,function(or,br){return or.length!==br.length||or.every(function(Xr,oi){return Xr!==br[oi]})})}function fr(mn){var ln,Fn,or=isMemo(mn)?mn.type.type:mn.type;return!(typeof or=="function"&&!((ln=or.prototype)!==null&&ln!==void 0&&ln.render)||typeof mn=="function"&&!((Fn=mn.prototype)!==null&&Fn!==void 0&&Fn.render))}function lr(mn){return!isValidElement(mn)||isFragment(mn)?!1:fr(mn)}function Tr(mn,ln,Fn,or){if(!ln.length)return Fn;var br=_toArray(ln),Xr=br[0],oi=br.slice(1),pi;return!mn&&typeof Xr=="number"?pi=[]:Array.isArray(mn)?pi=_toConsumableArray(mn):pi=_objectSpread({},mn),or&&Fn===void 0&&oi.length===1?delete pi[Xr][oi[0]]:pi[Xr]=Tr(pi[Xr],oi,Fn,or),pi}function Pr(mn,ln,Fn){var or=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ln.length&&or&&Fn===void 0&&!get(mn,ln.slice(0,-1))?mn:Tr(mn,ln,Fn,or)}function Gr(mn){return _typeof(mn)==="object"&&mn!==null&&Object.getPrototypeOf(mn)===Object.prototype}function Er(mn){return Array.isArray(mn)?[]:{}}var Wt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function $t(){for(var mn=arguments.length,ln=new Array(mn),Fn=0;Fn<mn;Fn++)ln[Fn]=arguments[Fn];var or=Er(ln[0]);return ln.forEach(function(br){function Xr(oi,pi){var Ti=new Set(pi),vi=get(br,oi),Ri=Array.isArray(vi);if(Ri||Gr(vi)){if(!Ti.has(vi)){Ti.add(vi);var $i=get(or,oi);Ri?or=Pr(or,oi,[]):(!$i||_typeof($i)!=="object")&&(or=Pr(or,oi,Er(vi))),Wt(vi).forEach(function(ni){Xr([].concat(_toConsumableArray(oi),[ni]),Ti)})}}else or=Pr(or,oi,vi)}Xr([])}),or}var cn={},Rn=[],jt=function(ln){Rn.push(ln)};function an(mn,ln){if(0)var Fn}function Tn(mn,ln){if(0)var Fn}function vn(){cn={}}function Bn(mn,ln,Fn){!ln&&!cn[Fn]&&(mn(!1,Fn),cn[Fn]=!0)}function _n(mn,ln){Bn(an,mn,ln)}function hr(mn,ln){Bn(Tn,mn,ln)}_n.preMessage=jt,_n.resetWarned=vn,_n.noteOnce=hr;var ei=_n,Ir=function(ln){var Fn=ln.prefixCls,or=ln.className,br=ln.style,Xr=ln.children,oi=ln.containerRef,pi=ln.id,Ti=ln.onMouseEnter,vi=ln.onMouseOver,Ri=ln.onMouseLeave,$i=ln.onClick,ni=ln.onKeyDown,Sn=ln.onKeyUp,Pn={onMouseEnter:Ti,onMouseOver:vi,onMouseLeave:Ri,onClick:$i,onKeyDown:ni,onKeyUp:Sn},Yn=ve.useContext(xn),qe=Yn.panel,yt=zn(qe,oi);return ve.createElement(ve.Fragment,null,ve.createElement("div",(0,Zt.Z)({id:pi,className:Je()("".concat(Fn,"-content"),or),style:(0,x.Z)({},br),"aria-modal":"true",role:"dialog",ref:yt},Pn),Xr))},Lr=Ir;function Wr(mn){return typeof mn=="string"&&String(Number(mn))===mn?(ei(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(mn)):mn}function Vr(mn){warning(!("wrapperClassName"in mn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!mn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var nn={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Jt(mn,ln){var Fn,or,br,Xr,oi=mn.prefixCls,pi=mn.open,Ti=mn.placement,vi=mn.inline,Ri=mn.push,$i=mn.forceRender,ni=mn.autoFocus,Sn=mn.keyboard,Pn=mn.rootClassName,Yn=mn.rootStyle,qe=mn.zIndex,yt=mn.className,St=mn.id,Dt=mn.style,Tt=mn.motion,Nt=mn.width,_t=mn.height,on=mn.children,gn=mn.contentWrapperStyle,Vn=mn.mask,qn=mn.maskClosable,Xn=mn.maskMotion,Dn=mn.maskClassName,In=mn.maskStyle,Cn=mn.afterOpenChange,Zn=mn.onClose,pr=mn.onMouseEnter,$n=mn.onMouseOver,ar=mn.onMouseLeave,ur=mn.onClick,mr=mn.onKeyDown,wr=mn.onKeyUp,kt=ve.useRef(),It=ve.useRef(),qt=ve.useRef();ve.useImperativeHandle(ln,function(){return kt.current});var Yt=function(Nr){var Yr=Nr.keyCode,Rr=Nr.shiftKey;switch(Yr){case zt.TAB:{if(Yr===zt.TAB){if(!Rr&&document.activeElement===qt.current){var xr;(xr=It.current)===null||xr===void 0||xr.focus({preventScroll:!0})}else if(Rr&&document.activeElement===It.current){var ii;(ii=qt.current)===null||ii===void 0||ii.focus({preventScroll:!0})}}break}case zt.ESC:{Zn&&Sn&&(Nr.stopPropagation(),Zn(Nr));break}}};ve.useEffect(function(){if(pi&&ni){var Mr;(Mr=kt.current)===null||Mr===void 0||Mr.focus({preventScroll:!0})}},[pi]);var En=ve.useState(!1),Hn=(0,Te.Z)(En,2),Ht=Hn[0],Vt=Hn[1],Gt=ve.useContext(Ft),en;Ri===!1?en={distance:0}:Ri===!0?en={}:en=Ri||{};var Ln=(Fn=(or=(br=en)===null||br===void 0?void 0:br.distance)!==null&&or!==void 0?or:Gt==null?void 0:Gt.pushDistance)!==null&&Fn!==void 0?Fn:180,Qn=ve.useMemo(function(){return{pushDistance:Ln,push:function(){Vt(!0)},pull:function(){Vt(!1)}}},[Ln]);ve.useEffect(function(){if(pi){var Mr;Gt==null||(Mr=Gt.push)===null||Mr===void 0||Mr.call(Gt)}else{var Nr;Gt==null||(Nr=Gt.pull)===null||Nr===void 0||Nr.call(Gt)}},[pi]),ve.useEffect(function(){return function(){var Mr;Gt==null||(Mr=Gt.pull)===null||Mr===void 0||Mr.call(Gt)}},[]);var On=Vn&&ve.createElement(bn.Z,(0,Zt.Z)({key:"mask"},Xn,{visible:pi}),function(Mr,Nr){var Yr=Mr.className,Rr=Mr.style;return ve.createElement("div",{className:Je()("".concat(oi,"-mask"),Yr,Dn),style:(0,x.Z)((0,x.Z)({},Rr),In),onClick:qn&&pi?Zn:void 0,ref:Nr})}),Kn=typeof Tt=="function"?Tt(Ti):Tt,vr={};if(Ht&&Ln)switch(Ti){case"top":vr.transform="translateY(".concat(Ln,"px)");break;case"bottom":vr.transform="translateY(".concat(-Ln,"px)");break;case"left":vr.transform="translateX(".concat(Ln,"px)");break;default:vr.transform="translateX(".concat(-Ln,"px)");break}Ti==="left"||Ti==="right"?vr.width=Wr(Nt):vr.height=Wr(_t);var Br={onMouseEnter:pr,onMouseOver:$n,onMouseLeave:ar,onClick:ur,onKeyDown:mr,onKeyUp:wr},Cr=ve.createElement(bn.Z,(0,Zt.Z)({key:"panel"},Kn,{visible:pi,forceRender:$i,onVisibleChanged:function(Nr){Cn==null||Cn(Nr)},removeOnLeave:!1,leavedClassName:"".concat(oi,"-content-wrapper-hidden")}),function(Mr,Nr){var Yr=Mr.className,Rr=Mr.style;return ve.createElement("div",(0,Zt.Z)({className:Je()("".concat(oi,"-content-wrapper"),Yr),style:(0,x.Z)((0,x.Z)((0,x.Z)({},vr),Rr),gn)},zr(mn,{data:!0})),ve.createElement(Lr,(0,Zt.Z)({id:St,containerRef:Nr,prefixCls:oi,className:yt,style:Dt},Br),on))}),sr=(0,x.Z)({},Yn);return qe&&(sr.zIndex=qe),ve.createElement(Ft.Provider,{value:Qn},ve.createElement("div",{className:Je()(oi,"".concat(oi,"-").concat(Ti),Pn,(Xr={},(0,Qt.Z)(Xr,"".concat(oi,"-open"),pi),(0,Qt.Z)(Xr,"".concat(oi,"-inline"),vi),Xr)),style:sr,tabIndex:-1,ref:kt,onKeyDown:Yt},On,ve.createElement("div",{tabIndex:0,ref:It,style:nn,"aria-hidden":"true","data-sentinel":"start"}),Cr,ve.createElement("div",{tabIndex:0,ref:qt,style:nn,"aria-hidden":"true","data-sentinel":"end"})))}var pn=ve.forwardRef(Jt),tr=pn,Ar=function(ln){var Fn=ln.open,or=Fn===void 0?!1:Fn,br=ln.prefixCls,Xr=br===void 0?"rc-drawer":br,oi=ln.placement,pi=oi===void 0?"right":oi,Ti=ln.autoFocus,vi=Ti===void 0?!0:Ti,Ri=ln.keyboard,$i=Ri===void 0?!0:Ri,ni=ln.width,Sn=ni===void 0?378:ni,Pn=ln.mask,Yn=Pn===void 0?!0:Pn,qe=ln.maskClosable,yt=qe===void 0?!0:qe,St=ln.getContainer,Dt=ln.forceRender,Tt=ln.afterOpenChange,Nt=ln.destroyOnClose,_t=ln.onMouseEnter,on=ln.onMouseOver,gn=ln.onMouseLeave,Vn=ln.onClick,qn=ln.onKeyDown,Xn=ln.onKeyUp,Dn=ln.panelRef,In=ve.useState(!1),Cn=(0,Te.Z)(In,2),Zn=Cn[0],pr=Cn[1],$n=ve.useState(!1),ar=(0,Te.Z)($n,2),ur=ar[0],mr=ar[1];xt(function(){mr(!0)},[]);var wr=ur?or:!1,kt=ve.useRef(),It=ve.useRef();xt(function(){wr&&(It.current=document.activeElement)},[wr]);var qt=function(Vt){var Gt;if(pr(Vt),Tt==null||Tt(Vt),!Vt&&It.current&&!((Gt=kt.current)!==null&&Gt!==void 0&&Gt.contains(It.current))){var en;(en=It.current)===null||en===void 0||en.focus({preventScroll:!0})}},Yt=ve.useMemo(function(){return{panel:Dn}},[Dn]);if(!Dt&&!Zn&&!wr&&Nt)return null;var En={onMouseEnter:_t,onMouseOver:on,onMouseLeave:gn,onClick:Vn,onKeyDown:qn,onKeyUp:Xn},Hn=(0,x.Z)((0,x.Z)({},ln),{},{open:wr,prefixCls:Xr,placement:pi,autoFocus:vi,keyboard:$i,width:Sn,mask:Yn,maskClosable:yt,inline:St===!1,afterOpenChange:qt,ref:kt},En);return ve.createElement(xn.Provider,{value:Yt},ve.createElement(ze,{open:wr||Dt||Zn,autoDestroy:!1,getContainer:St,autoLock:Yn&&(wr||Zn)},ve.createElement(tr,Hn)))},jn=Ar,Jn=jn,ir=me(33603),kr=me(53124),Ur=me(65223),Wn=me(69760),bi=mn=>{const{prefixCls:ln,title:Fn,footer:or,extra:br,closeIcon:Xr,closable:oi,onClose:pi,headerStyle:Ti,drawerStyle:vi,bodyStyle:Ri,footerStyle:$i,children:ni}=mn,Sn=ve.useCallback(St=>ve.createElement("button",{type:"button",onClick:pi,"aria-label":"Close",className:`${ln}-close`},St),[pi]),[Pn,Yn]=(0,Wn.Z)(oi,Xr,Sn,void 0,!0),qe=ve.useMemo(()=>!Fn&&!Pn?null:ve.createElement("div",{style:Ti,className:Je()(`${ln}-header`,{[`${ln}-header-close-only`]:Pn&&!Fn&&!br})},ve.createElement("div",{className:`${ln}-header-title`},Yn,Fn&&ve.createElement("div",{className:`${ln}-title`},Fn)),br&&ve.createElement("div",{className:`${ln}-extra`},br)),[Pn,Yn,br,Ti,ln,Fn]),yt=ve.useMemo(()=>{if(!or)return null;const St=`${ln}-footer`;return ve.createElement("div",{className:St,style:$i},or)},[or,$i,ln]);return ve.createElement("div",{className:`${ln}-wrapper-body`,style:vi},qe,ve.createElement("div",{className:`${ln}-body`,style:Ri},ni),yt)},xa=me(4173),ha=me(67968),ia=me(45503),Ji=mn=>{const{componentCls:ln,motionDurationSlow:Fn}=mn,or={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Fn}`}}};return{[ln]:{[`${ln}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Fn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ln}-panel-motion`]:{"&-left":[or,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[or,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[or,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[or,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Wi=mn=>{const{componentCls:ln,zIndexPopup:Fn,colorBgMask:or,colorBgElevated:br,motionDurationSlow:Xr,motionDurationMid:oi,padding:pi,paddingLG:Ti,fontSizeLG:vi,lineHeightLG:Ri,lineWidth:$i,lineType:ni,colorSplit:Sn,marginSM:Pn,colorIcon:Yn,colorIconHover:qe,colorText:yt,fontWeightStrong:St,footerPaddingBlock:Dt,footerPaddingInline:Tt}=mn,Nt=`${ln}-content-wrapper`;return{[ln]:{position:"fixed",inset:0,zIndex:Fn,pointerEvents:"none","&-pure":{position:"relative",background:br,[`&${ln}-left`]:{boxShadow:mn.boxShadowDrawerLeft},[`&${ln}-right`]:{boxShadow:mn.boxShadowDrawerRight},[`&${ln}-top`]:{boxShadow:mn.boxShadowDrawerUp},[`&${ln}-bottom`]:{boxShadow:mn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ln}-mask`]:{position:"absolute",inset:0,zIndex:Fn,background:or,pointerEvents:"auto"},[Nt]:{position:"absolute",zIndex:Fn,maxWidth:"100vw",transition:`all ${Xr}`,"&-hidden":{display:"none"}},[`&-left > ${Nt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:mn.boxShadowDrawerLeft},[`&-right > ${Nt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:mn.boxShadowDrawerRight},[`&-top > ${Nt}`]:{top:0,insetInline:0,boxShadow:mn.boxShadowDrawerUp},[`&-bottom > ${Nt}`]:{bottom:0,insetInline:0,boxShadow:mn.boxShadowDrawerDown},[`${ln}-content`]:{width:"100%",height:"100%",overflow:"auto",background:br,pointerEvents:"auto"},[`${ln}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ln}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${pi}px ${Ti}px`,fontSize:vi,lineHeight:Ri,borderBottom:`${$i}px ${ni} ${Sn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ln}-extra`]:{flex:"none"},[`${ln}-close`]:{display:"inline-block",marginInlineEnd:Pn,color:Yn,fontWeight:St,fontSize:vi,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${oi}`,textRendering:"auto","&:focus, &:hover":{color:qe,textDecoration:"none"}},[`${ln}-title`]:{flex:1,margin:0,color:yt,fontWeight:mn.fontWeightStrong,fontSize:vi,lineHeight:Ri},[`${ln}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ti,overflow:"auto"},[`${ln}-footer`]:{flexShrink:0,padding:`${Dt}px ${Tt}px`,borderTop:`${$i}px ${ni} ${Sn}`},"&-rtl":{direction:"rtl"}}}};var wa=(0,ha.Z)("Drawer",mn=>{const ln=(0,ia.TS)(mn,{});return[Wi(ln),Ji(ln)]},mn=>({zIndexPopup:mn.zIndexPopupBase,footerPaddingBlock:mn.paddingXS,footerPaddingInline:mn.padding})),Fa=me(16569),Ii=function(mn,ln){var Fn={};for(var or in mn)Object.prototype.hasOwnProperty.call(mn,or)&&ln.indexOf(or)<0&&(Fn[or]=mn[or]);if(mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var br=0,or=Object.getOwnPropertySymbols(mn);br<or.length;br++)ln.indexOf(or[br])<0&&Object.prototype.propertyIsEnumerable.call(mn,or[br])&&(Fn[or[br]]=mn[or[br]]);return Fn};const la=null,Oa={distance:180},ao=mn=>{var ln;const{rootClassName:Fn,width:or,height:br,size:Xr="default",mask:oi=!0,push:pi=Oa,open:Ti,afterOpenChange:vi,onClose:Ri,prefixCls:$i,getContainer:ni,style:Sn,className:Pn,visible:Yn,afterVisibleChange:qe}=mn,yt=Ii(mn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:St,getPrefixCls:Dt,direction:Tt,drawer:Nt}=ve.useContext(kr.E_),_t=Dt("drawer",$i),[on,gn]=wa(_t),Vn=ni===void 0&&St?()=>St(document.body):ni,qn=Je()({"no-mask":!oi,[`${_t}-rtl`]:Tt==="rtl"},Fn,gn),Xn=ve.useMemo(()=>or!=null?or:Xr==="large"?736:378,[or,Xr]),Dn=ve.useMemo(()=>br!=null?br:Xr==="large"?736:378,[br,Xr]),In={motionName:(0,ir.m)(_t,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Cn=pr=>({motionName:(0,ir.m)(_t,`panel-motion-${pr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Zn=(0,Fa.H)();return on(ve.createElement(xa.BR,null,ve.createElement(Ur.Ux,{status:!0,override:!0},ve.createElement(Jn,Object.assign({prefixCls:_t,onClose:Ri,maskMotion:In,motion:Cn},yt,{open:Ti!=null?Ti:Yn,mask:oi,push:pi,width:Xn,height:Dn,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),Sn),className:Je()(Nt==null?void 0:Nt.className,Pn),rootClassName:qn,getContainer:Vn,afterOpenChange:vi!=null?vi:qe,panelRef:Zn}),ve.createElement(bi,Object.assign({prefixCls:_t},yt,{onClose:Ri}))))))},Qa=mn=>{const{prefixCls:ln,style:Fn,className:or,placement:br="right"}=mn,Xr=Ii(mn,["prefixCls","style","className","placement"]),{getPrefixCls:oi}=ve.useContext(kr.E_),pi=oi("drawer",ln),[Ti,vi]=wa(pi),Ri=Je()(pi,`${pi}-pure`,`${pi}-${br}`,vi,or);return Ti(ve.createElement("div",{className:Ri,style:Fn},ve.createElement(bi,Object.assign({prefixCls:pi},Xr))))};ao._InternalPanelDoNotUseOrYouWillBeFired=Qa;var Ni=ao},35874:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return je}});var Oe=me(67294),Je=me(91034),x=me(94184),Te=me.n(x),ve=me(87462),ie=me(4942),te=me(97685),ae=me(45987),ne=me(62709),oe=me(71002),he=me(12060);function re(Ae,Ne,ze){var Qe=React.useRef({});return(!("value"in Qe.current)||ze(Qe.current.condition,Ne))&&(Qe.current.value=Ae(),Qe.current.condition=Ne),Qe.current.value}function se(Ae,Ne){typeof Ae=="function"?Ae(Ne):(0,oe.Z)(Ae)==="object"&&Ae&&"current"in Ae&&(Ae.current=Ne)}function ce(){for(var Ae=arguments.length,Ne=new Array(Ae),ze=0;ze<Ae;ze++)Ne[ze]=arguments[ze];var Qe=Ne.filter(function(ot){return ot});return Qe.length<=1?Qe[0]:function(ot){Ne.forEach(function(mt){se(mt,ot)})}}function fe(){for(var Ae=arguments.length,Ne=new Array(Ae),ze=0;ze<Ae;ze++)Ne[ze]=arguments[ze];return useMemo(function(){return ce.apply(void 0,Ne)},Ne,function(Qe,ot){return Qe.length===ot.length&&Qe.every(function(mt,Ot){return mt===ot[Ot]})})}function pe(Ae){var Ne,ze,Qe=(0,he.isMemo)(Ae)?Ae.type.type:Ae.type;return!(typeof Qe=="function"&&!((Ne=Qe.prototype)!==null&&Ne!==void 0&&Ne.render)||typeof Ae=="function"&&!((ze=Ae.prototype)!==null&&ze!==void 0&&ze.render))}var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ne){var ze=Ne.keyCode;if(Ne.altKey&&!Ne.ctrlKey||Ne.metaKey||ze>=le.F1&&ze<=le.F12)return!1;switch(ze){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ne){if(Ne>=le.ZERO&&Ne<=le.NINE||Ne>=le.NUM_ZERO&&Ne<=le.NUM_MULTIPLY||Ne>=le.A&&Ne<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ne===0)return!0;switch(Ne){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Se=le,xe=function(Ne){return+setTimeout(Ne,16)},ge=function(Ne){return clearTimeout(Ne)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(xe=function(Ne){return window.requestAnimationFrame(Ne)},ge=function(Ne){return window.cancelAnimationFrame(Ne)});var Me=0,ye=new Map;function be(Ae){ye.delete(Ae)}var Fe=function(Ne){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Me+=1;var Qe=Me;function ot(mt){if(mt===0)be(Qe),Ne();else{var Ot=xe(function(){ot(mt-1)});ye.set(Qe,Ot)}}return ot(ze),Qe};Fe.cancel=function(Ae){var Ne=ye.get(Ae);return be(Ne),ge(Ne)};var ke=Fe,De=Se.ESC,Le=Se.TAB;function Ie(Ae){var Ne=Ae.visible,ze=Ae.triggerRef,Qe=Ae.onVisibleChange,ot=Ae.autoFocus,mt=Ae.overlayRef,Ot=Oe.useRef(!1),xt=function(){if(Ne){var Qt,Zt;(Qt=ze.current)===null||Qt===void 0||(Zt=Qt.focus)===null||Zt===void 0||Zt.call(Qt),Qe==null||Qe(!1)}},Ut=function(){var Qt;return(Qt=mt.current)!==null&&Qt!==void 0&&Qt.focus?(mt.current.focus(),Ot.current=!0,!0):!1},xn=function(Qt){switch(Qt.keyCode){case De:xt();break;case Le:{var Zt=!1;Ot.current||(Zt=Ut()),Zt?Qt.preventDefault():xt();break}}};Oe.useEffect(function(){return Ne?(window.addEventListener("keydown",xn),ot&&ke(Ut,3),function(){window.removeEventListener("keydown",xn),Ot.current=!1}):function(){Ot.current=!1}},[Ne])}var Be=(0,Oe.forwardRef)(function(Ae,Ne){var ze=Ae.overlay,Qe=Ae.arrow,ot=Ae.prefixCls,mt=(0,Oe.useMemo)(function(){var xt;return typeof ze=="function"?xt=ze():xt=ze,xt},[ze]),Ot=ce(Ne,mt==null?void 0:mt.ref);return Oe.createElement(Oe.Fragment,null,Qe&&Oe.createElement("div",{className:"".concat(ot,"-arrow")}),Oe.cloneElement(mt,{ref:pe(mt)?Ot:void 0}))}),Ue=Be,_e={adjustX:1,adjustY:1},We=[0,0],Ze={topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-4],targetOffset:We},top:{points:["bc","tc"],overflow:_e,offset:[0,-4],targetOffset:We},topRight:{points:["br","tr"],overflow:_e,offset:[0,-4],targetOffset:We},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,4],targetOffset:We},bottom:{points:["tc","bc"],overflow:_e,offset:[0,4],targetOffset:We},bottomRight:{points:["tr","br"],overflow:_e,offset:[0,4],targetOffset:We}},et=Ze,it=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function pt(Ae,Ne){var ze,Qe=Ae.arrow,ot=Qe===void 0?!1:Qe,mt=Ae.prefixCls,Ot=mt===void 0?"rc-dropdown":mt,xt=Ae.transitionName,Ut=Ae.animation,xn=Ae.align,Ft=Ae.placement,Qt=Ft===void 0?"bottomLeft":Ft,Zt=Ae.placements,bn=Zt===void 0?et:Zt,Pt=Ae.getPopupContainer,zt=Ae.showAction,sn=Ae.hideAction,yn=Ae.overlayClassName,kn=Ae.overlayStyle,Gn=Ae.visible,dr=Ae.trigger,Or=dr===void 0?["hover"]:dr,zr=Ae.autoFocus,Hr=Ae.overlay,Dr=Ae.children,Kr=Ae.onVisibleChange,Ai=(0,ae.Z)(Ae,it),Di=Oe.useState(),Zi=(0,te.Z)(Di,2),di=Zi[0],rn=Zi[1],zn="visible"in Ae?Gn:di,fr=Oe.useRef(null),lr=Oe.useRef(null),Tr=Oe.useRef(null);Oe.useImperativeHandle(Ne,function(){return fr.current});var Pr=function(Tn){rn(Tn),Kr==null||Kr(Tn)};Ie({visible:zn,triggerRef:Tr,onVisibleChange:Pr,autoFocus:zr,overlayRef:lr});var Gr=function(Tn){var vn=Ae.onOverlayClick;rn(!1),vn&&vn(Tn)},Er=function(){return Oe.createElement(Ue,{ref:lr,overlay:Hr,prefixCls:Ot,arrow:ot})},Wt=function(){return typeof Hr=="function"?Er:Er()},$t=function(){var Tn=Ae.minOverlayWidthMatchTrigger,vn=Ae.alignPoint;return"minOverlayWidthMatchTrigger"in Ae?Tn:!vn},cn=function(){var Tn=Ae.openClassName;return Tn!==void 0?Tn:"".concat(Ot,"-open")},Rn=Oe.cloneElement(Dr,{className:Te()((ze=Dr.props)===null||ze===void 0?void 0:ze.className,zn&&cn()),ref:pe(Dr)?ce(Tr,Dr.ref):void 0}),jt=sn;return!jt&&Or.indexOf("contextMenu")!==-1&&(jt=["click"]),Oe.createElement(ne.Z,(0,ve.Z)({builtinPlacements:bn},Ai,{prefixCls:Ot,ref:fr,popupClassName:Te()(yn,(0,ie.Z)({},"".concat(Ot,"-show-arrow"),ot)),popupStyle:kn,action:Or,showAction:zt,hideAction:jt,popupPlacement:Qt,popupAlign:xn,popupTransitionName:xt,popupAnimation:Ut,popupVisible:zn,stretch:$t()?"minWidth":"",popup:Wt(),onPopupVisibleChange:Pr,onPopupClick:Gr,getPopupContainer:Pt}),Rn)}var Ge=Oe.forwardRef(pt),Xe=Ge,lt=me(60276),dt=me(5663),st=me(10366),nt=me(80636),rt=me(8745),at=me(96159),gt=me(53124),vt=me(68508),Et=me(76529),At=me(29691),ut=me(66748);const Ye=null,Ve=Ae=>{const{menu:Ne,arrow:ze,prefixCls:Qe,children:ot,trigger:mt,disabled:Ot,dropdownRender:xt,getPopupContainer:Ut,overlayClassName:xn,rootClassName:Ft,open:Qt,onOpenChange:Zt,visible:bn,onVisibleChange:Pt,mouseEnterDelay:zt=.15,mouseLeaveDelay:sn=.1,autoAdjustOverflow:yn=!0,placement:kn="",overlay:Gn,transitionName:dr}=Ae,{getPopupContainer:Or,getPrefixCls:zr,direction:Hr}=Oe.useContext(gt.E_),Dr=Oe.useMemo(()=>{const Rn=zr();return dr!==void 0?dr:kn.includes("top")?`${Rn}-slide-down`:`${Rn}-slide-up`},[zr,kn,dr]),Kr=Oe.useMemo(()=>kn?kn.includes("Center")?kn.slice(0,kn.indexOf("Center")):kn:Hr==="rtl"?"bottomRight":"bottomLeft",[kn,Hr]),Ai=zr("dropdown",Qe),[Di,Zi]=(0,ut.Z)(Ai),[,di]=(0,At.Z)(),rn=Oe.Children.only(ot),zn=(0,at.Tm)(rn,{className:Te()(`${Ai}-trigger`,{[`${Ai}-rtl`]:Hr==="rtl"},rn.props.className),disabled:Ot}),fr=Ot?[]:mt;let lr;fr&&fr.includes("contextMenu")&&(lr=!0);const[Tr,Pr]=(0,dt.Z)(!1,{value:Qt!=null?Qt:bn}),Gr=(0,lt.useEvent)(Rn=>{Zt==null||Zt(Rn),Pt==null||Pt(Rn),Pr(Rn)}),Er=Te()(xn,Ft,Zi,{[`${Ai}-rtl`]:Hr==="rtl"}),Wt=(0,nt.Z)({arrowPointAtCenter:typeof ze=="object"&&ze.pointAtCenter,autoAdjustOverflow:yn,offset:di.marginXXS,arrowWidth:ze?di.sizePopupArrow:0,borderRadius:di.borderRadius}),$t=Oe.useCallback(()=>{Pr(!1)},[]),cn=()=>{let Rn;return Ne!=null&&Ne.items?Rn=Oe.createElement(vt.default,Object.assign({},Ne)):typeof Gn=="function"?Rn=Gn():Rn=Gn,xt&&(Rn=xt(Rn)),Rn=Oe.Children.only(typeof Rn=="string"?Oe.createElement("span",null,Rn):Rn),Oe.createElement(Et.J,{prefixCls:`${Ai}-menu`,expandIcon:Oe.createElement("span",{className:`${Ai}-menu-submenu-arrow`},Oe.createElement(Je.Z,{className:`${Ai}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:$t,validator:jt=>{let{mode:an}=jt}},Rn)};return Di(Oe.createElement(Xe,Object.assign({alignPoint:lr},(0,st.Z)(Ae,["rootClassName"]),{mouseEnterDelay:zt,mouseLeaveDelay:sn,visible:Tr,builtinPlacements:Wt,arrow:!!ze,overlayClassName:Er,prefixCls:Ai,getPopupContainer:Ut||Or,transitionName:Dr,trigger:fr,overlay:cn,placement:Kr,onVisibleChange:Gr}),zn))};function de(Ae){return Object.assign(Object.assign({},Ae),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ce=(0,rt.Z)(Ve,"dropdown",Ae=>Ae,de),He=Ae=>Oe.createElement(Ce,Object.assign({},Ae),Oe.createElement("span",null));Ve._InternalPanelDoNotUseOrYouWillBeFired=He;var je=Ve},85418:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return fe}});var Oe=me(35874),Je=me(94184),x=me.n(Je),Te=me(67294),ve=me(25877),ie=me(71577),te=me(53124),ae=me(93421),ne=me(4173),oe=me(66748),he=function(pe,le){var Se={};for(var xe in pe)Object.prototype.hasOwnProperty.call(pe,xe)&&le.indexOf(xe)<0&&(Se[xe]=pe[xe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,xe=Object.getOwnPropertySymbols(pe);ge<xe.length;ge++)le.indexOf(xe[ge])<0&&Object.prototype.propertyIsEnumerable.call(pe,xe[ge])&&(Se[xe[ge]]=pe[xe[ge]]);return Se};const re=pe=>{const{getPopupContainer:le,getPrefixCls:Se,direction:xe}=Te.useContext(te.E_),{prefixCls:ge,type:Me="default",danger:ye,disabled:be,loading:Fe,onClick:ke,htmlType:De,children:Le,className:Ie,menu:Be,arrow:Ue,autoFocus:_e,overlay:We,trigger:Ze,align:et,open:it,onOpenChange:pt,placement:Ge,getPopupContainer:Xe,href:lt,icon:dt=Te.createElement(ve.Z,null),title:st,buttonsRender:nt=Ot=>Ot,mouseEnterDelay:rt,mouseLeaveDelay:at,overlayClassName:gt,overlayStyle:vt,destroyPopupOnHide:Et,dropdownRender:At}=pe,ut=he(pe,["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"]),Ye=Se("dropdown",ge),Ve=`${Ye}-button`,[de,Ce]=(0,oe.Z)(Ye),He={menu:Be,arrow:Ue,autoFocus:_e,align:et,disabled:be,trigger:be?[]:Ze,onOpenChange:pt,getPopupContainer:Xe||le,mouseEnterDelay:rt,mouseLeaveDelay:at,overlayClassName:gt,overlayStyle:vt,destroyPopupOnHide:Et,dropdownRender:At},{compactSize:je,compactItemClassnames:Ae}=(0,ne.ri)(Ye,xe),Ne=x()(Ve,Ae,Ie,Ce);"overlay"in pe&&(He.overlay=We),"open"in pe&&(He.open=it),"placement"in pe?He.placement=Ge:He.placement=xe==="rtl"?"bottomLeft":"bottomRight";const ze=Te.createElement(ie.ZP,{type:Me,danger:ye,disabled:be,loading:Fe,onClick:ke,htmlType:De,href:lt,title:st},Le),Qe=Te.createElement(ie.ZP,{type:Me,danger:ye,icon:dt}),[ot,mt]=nt([ze,Qe]);return de(Te.createElement(ae.Z.Compact,Object.assign({className:Ne,size:je,block:!0},ut),ot,Te.createElement(Oe.Z,Object.assign({},He),mt)))};re.__ANT_BUTTON=!0;var se=re;const ce=Oe.Z;ce.Button=se;var fe=ce},66748:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return he}});var Oe=me(14747),Je=me(67771),x=me(33297),Te=me(50438),ve=me(97414),ie=me(67968),te=me(45503),ne=re=>{const{componentCls:se,menuCls:ce,colorError:fe,colorTextLightSolid:pe}=re,le=`${ce}-item`;return{[`${se}, ${se}-menu-submenu`]:{[`${ce} ${le}`]:{[`&${le}-danger:not(${le}-disabled)`]:{color:fe,"&:hover":{color:pe,backgroundColor:fe}}}}}};const oe=re=>{const{componentCls:se,menuCls:ce,zIndexPopup:fe,dropdownArrowDistance:pe,sizePopupArrow:le,antCls:Se,iconCls:xe,motionDurationMid:ge,dropdownPaddingVertical:Me,fontSize:ye,dropdownEdgeChildPadding:be,colorTextDisabled:Fe,fontSizeIcon:ke,controlPaddingHorizontal:De,colorBgElevated:Le}=re;return[{[se]:Object.assign(Object.assign({},(0,Oe.Wf)(re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:fe,display:"block","&::before":{position:"absolute",insetBlock:-pe+le/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Se}-btn`]:{[`& > ${xe}-down, & > ${Se}-btn-icon > ${xe}-down`]:{fontSize:ke}},[`${se}-wrap`]:{position:"relative",[`${Se}-btn > ${xe}-down`]:{fontSize:ke},[`${xe}-down::before`]:{transition:`transform ${ge}`}},[`${se}-wrap-open`]:{[`${xe}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Se}-slide-down-enter${Se}-slide-down-enter-active${se}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${se}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-enter${Se}-slide-down-enter-active${se}-placement-bottom,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${se}-placement-bottom,
|
|
|
&${Se}-slide-down-enter${Se}-slide-down-enter-active${se}-placement-bottomRight,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${se}-placement-bottomRight`]:{animationName:Je.fJ},[`&${Se}-slide-up-enter${Se}-slide-up-enter-active${se}-placement-topLeft,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${se}-placement-topLeft,
|
|
|
&${Se}-slide-up-enter${Se}-slide-up-enter-active${se}-placement-top,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${se}-placement-top,
|
|
|
&${Se}-slide-up-enter${Se}-slide-up-enter-active${se}-placement-topRight,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${se}-placement-topRight`]:{animationName:Je.Qt},[`&${Se}-slide-down-leave${Se}-slide-down-leave-active${se}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-leave${Se}-slide-down-leave-active${se}-placement-bottom,
|
|
|
&${Se}-slide-down-leave${Se}-slide-down-leave-active${se}-placement-bottomRight`]:{animationName:Je.Uw},[`&${Se}-slide-up-leave${Se}-slide-up-leave-active${se}-placement-topLeft,
|
|
|
&${Se}-slide-up-leave${Se}-slide-up-leave-active${se}-placement-top,
|
|
|
&${Se}-slide-up-leave${Se}-slide-up-leave-active${se}-placement-topRight`]:{animationName:Je.ly}})},(0,ve.ZP)(re,{colorBg:Le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${se} ${ce}`]:{position:"relative",margin:0},[`${ce}-submenu-popup`]:{position:"absolute",zIndex:fe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${se}, ${se}-menu-submenu`]:{[ce]:Object.assign(Object.assign({padding:be,listStyleType:"none",backgroundColor:Le,backgroundClip:"padding-box",borderRadius:re.borderRadiusLG,outline:"none",boxShadow:re.boxShadowSecondary},(0,Oe.Qy)(re)),{[`${ce}-item-group-title`]:{padding:`${Me}px ${De}px`,color:re.colorTextDescription,transition:`all ${ge}`},[`${ce}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ce}-item-icon`]:{minWidth:ye,marginInlineEnd:re.marginXS,fontSize:re.fontSizeSM},[`${ce}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ge}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ce}-item, ${ce}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Me}px ${De}px`,color:re.colorText,fontWeight:"normal",fontSize:ye,lineHeight:re.lineHeight,cursor:"pointer",transition:`all ${ge}`,borderRadius:re.borderRadiusSM,"&:hover, &-active":{backgroundColor:re.controlItemBgHover}},(0,Oe.Qy)(re)),{"&-selected":{color:re.colorPrimary,backgroundColor:re.controlItemBgActive,"&:hover, &-active":{backgroundColor:re.controlItemBgActiveHover}},"&-disabled":{color:Fe,cursor:"not-allowed","&:hover":{color:Fe,backgroundColor:Le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:re.colorSplit},[`${se}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:re.paddingXS,[`${se}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:re.colorTextDescription,fontSize:ke,fontStyle:"normal"}}}),[`${ce}-item-group-list`]:{margin:`0 ${re.marginXS}px`,padding:0,listStyle:"none"},[`${ce}-submenu-title`]:{paddingInlineEnd:De+re.fontSizeSM},[`${ce}-submenu-vertical`]:{position:"relative"},[`${ce}-submenu${ce}-submenu-disabled ${se}-menu-submenu-title`]:{[`&, ${se}-menu-submenu-arrow-icon`]:{color:Fe,backgroundColor:Le,cursor:"not-allowed"}},[`${ce}-submenu-selected ${se}-menu-submenu-title`]:{color:re.colorPrimary}})}},[(0,Je.oN)(re,"slide-up"),(0,Je.oN)(re,"slide-down"),(0,x.Fm)(re,"move-up"),(0,x.Fm)(re,"move-down"),(0,Te._y)(re,"zoom-big")]]};var he=(0,ie.Z)("Dropdown",(re,se)=>{let{rootPrefixCls:ce}=se;const{marginXXS:fe,sizePopupArrow:pe,controlHeight:le,fontSize:Se,lineHeight:xe,paddingXXS:ge,componentCls:Me,borderRadiusLG:ye}=re,be=(le-Se*xe)/2,{dropdownArrowOffset:Fe}=(0,ve.fS)({contentRadius:ye}),ke=(0,te.TS)(re,{menuCls:`${Me}-menu`,rootPrefixCls:ce,dropdownArrowDistance:pe/2+fe,dropdownArrowOffset:Fe,dropdownPaddingVertical:be,dropdownEdgeChildPadding:ge});return[oe(ke),ne(ke)]},re=>({zIndexPopup:re.zIndexPopupBase+50}))},32983:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ge}});var Oe=me(94184),Je=me.n(Oe),x=me(67294),Te=me(53124),ve=me(10110),ie=me(84780),te=me(29691),ne=()=>{const[,Me]=(0,te.Z)(),be=new ie.C(Me.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement("svg",{style:be,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(24 31.67)"},x.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),x.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"}),x.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)"}),x.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"}),x.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"})),x.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"}),x.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},x.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),x.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,Me]=(0,te.Z)(),{colorFill:ye,colorFillTertiary:be,colorFillQuaternary:Fe,colorBgContainer:ke}=Me,{borderColor:De,shadowColor:Le,contentColor:Ie}=(0,x.useMemo)(()=>({borderColor:new ie.C(ye).onBackground(ke).toHexShortString(),shadowColor:new ie.C(be).onBackground(ke).toHexShortString(),contentColor:new ie.C(Fe).onBackground(ke).toHexShortString()}),[ye,be,Fe,ke]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:Le,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:De},x.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"}),x.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:Ie}))))},re=me(67968),se=me(45503);const ce=Me=>{const{componentCls:ye,margin:be,marginXS:Fe,marginXL:ke,fontSize:De,lineHeight:Le}=Me;return{[ye]:{marginInline:Fe,fontSize:De,lineHeight:Le,textAlign:"center",[`${ye}-image`]:{height:Me.emptyImgHeight,marginBottom:Fe,opacity:Me.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ye}-description`]:{color:Me.colorText},[`${ye}-footer`]:{marginTop:be},"&-normal":{marginBlock:ke,color:Me.colorTextDisabled,[`${ye}-description`]:{color:Me.colorTextDisabled},[`${ye}-image`]:{height:Me.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:Me.colorTextDisabled,[`${ye}-image`]:{height:Me.emptyImgHeightSM}}}}};var fe=(0,re.Z)("Empty",Me=>{const{componentCls:ye,controlHeightLG:be}=Me,Fe=(0,se.TS)(Me,{emptyImgCls:`${ye}-img`,emptyImgHeight:be*2.5,emptyImgHeightMD:be,emptyImgHeightSM:be*.875});return[ce(Fe)]}),pe=function(Me,ye){var be={};for(var Fe in Me)Object.prototype.hasOwnProperty.call(Me,Fe)&&ye.indexOf(Fe)<0&&(be[Fe]=Me[Fe]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Fe=Object.getOwnPropertySymbols(Me);ke<Fe.length;ke++)ye.indexOf(Fe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Me,Fe[ke])&&(be[Fe[ke]]=Me[Fe[ke]]);return be};const le=x.createElement(ne,null),Se=x.createElement(he,null),xe=Me=>{var{className:ye,rootClassName:be,prefixCls:Fe,image:ke=le,description:De,children:Le,imageStyle:Ie,style:Be}=Me,Ue=pe(Me,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:_e,direction:We,empty:Ze}=x.useContext(Te.E_),et=_e("empty",Fe),[it,pt]=fe(et),[Ge]=(0,ve.Z)("Empty"),Xe=typeof De!="undefined"?De:Ge==null?void 0:Ge.description,lt=typeof Xe=="string"?Xe:"empty";let dt=null;return typeof ke=="string"?dt=x.createElement("img",{alt:lt,src:ke}):dt=ke,it(x.createElement("div",Object.assign({className:Je()(pt,et,Ze==null?void 0:Ze.className,{[`${et}-normal`]:ke===Se,[`${et}-rtl`]:We==="rtl"},ye,be),style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Be)},Ue),x.createElement("div",{className:`${et}-image`,style:Ie},dt),Xe&&x.createElement("div",{className:`${et}-description`},Xe),Le&&x.createElement("div",{className:`${et}-footer`},Le)))};xe.PRESENTED_IMAGE_DEFAULT=le,xe.PRESENTED_IMAGE_SIMPLE=Se;var ge=xe},22150:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return Rn}});var Oe=me(74902),Je=me(94184),x=me.n(Je),Te=me(38379),ve=me(67294),ie=me(33603),te=me(65223);function ae(jt){const[an,Tn]=ve.useState(jt);return ve.useEffect(()=>{const vn=setTimeout(()=>{Tn(jt)},jt.length?0:10);return()=>{clearTimeout(vn)}},[jt]),an}var ne=me(14747),oe=me(50438),he=me(33507),re=me(45503),se=me(67968),fe=jt=>{const{componentCls:an}=jt,Tn=`${an}-show-help`,vn=`${an}-show-help-item`;return{[Tn]:{transition:`opacity ${jt.motionDurationSlow} ${jt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[vn]:{overflow:"hidden",transition:`height ${jt.motionDurationSlow} ${jt.motionEaseInOut},
|
|
|
opacity ${jt.motionDurationSlow} ${jt.motionEaseInOut},
|
|
|
transform ${jt.motionDurationSlow} ${jt.motionEaseInOut} !important`,[`&${vn}-appear, &${vn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${vn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const pe=jt=>({legend:{display:"block",width:"100%",marginBottom:jt.marginLG,padding:0,color:jt.colorTextDescription,fontSize:jt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${jt.lineWidth}px ${jt.lineType} ${jt.colorBorder}`},label:{fontSize:jt.fontSize},'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 ${jt.controlOutlineWidth}px ${jt.controlOutline}`},output:{display:"block",paddingTop:15,color:jt.colorText,fontSize:jt.fontSize,lineHeight:jt.lineHeight}}),le=(jt,an)=>{const{formItemCls:Tn}=jt;return{[Tn]:{[`${Tn}-label > label`]:{height:an},[`${Tn}-control-input`]:{minHeight:an}}}},Se=jt=>{const{componentCls:an}=jt;return{[jt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ne.Wf)(jt)),pe(jt)),{[`${an}-text`]:{display:"inline-block",paddingInlineEnd:jt.paddingSM},"&-small":Object.assign({},le(jt,jt.controlHeightSM)),"&-large":Object.assign({},le(jt,jt.controlHeightLG))})}},xe=jt=>{const{formItemCls:an,iconCls:Tn,componentCls:vn,rootPrefixCls:Bn,labelRequiredMarkColor:_n,labelColor:hr,labelFontSize:ei,labelHeight:Ir,labelColonMarginInlineStart:Lr,labelColonMarginInlineEnd:Wr,itemMarginBottom:Vr}=jt;return{[an]:Object.assign(Object.assign({},(0,ne.Wf)(jt)),{marginBottom:Vr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Bn}-row`]:{display:"none"},"&-has-warning":{[`${an}-split`]:{color:jt.colorError}},"&-has-error":{[`${an}-split`]:{color:jt.colorWarning}},[`${an}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${jt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ir,color:hr,fontSize:ei,[`> ${Tn}`]:{fontSize:jt.fontSize,verticalAlign:"top"},[`&${an}-required:not(${an}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:jt.marginXXS,color:_n,fontSize:jt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${vn}-hide-required-mark &`]:{display:"none"}},[`${an}-optional`]:{display:"inline-block",marginInlineStart:jt.marginXXS,color:jt.colorTextDescription,[`${vn}-hide-required-mark &`]:{display:"none"}},[`${an}-tooltip`]:{color:jt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:jt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Lr,marginInlineEnd:Wr},[`&${an}-no-colon::after`]:{content:'"\\a0"'}}},[`${an}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Bn}-col-'"]):not([class*="' ${Bn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:jt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[an]:{"&-explain, &-extra":{clear:"both",color:jt.colorTextDescription,fontSize:jt.fontSize,lineHeight:jt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:jt.controlHeightSM,transition:`color ${jt.motionDurationMid} ${jt.motionEaseOut}`},"&-explain":{"&-error":{color:jt.colorError},"&-warning":{color:jt.colorWarning}}},[`&-with-help ${an}-explain`]:{height:"auto",opacity:1},[`${an}-feedback-icon`]:{fontSize:jt.fontSize,textAlign:"center",visibility:"visible",animationName:oe.kr,animationDuration:jt.motionDurationMid,animationTimingFunction:jt.motionEaseOutBack,pointerEvents:"none","&-success":{color:jt.colorSuccess},"&-error":{color:jt.colorError},"&-warning":{color:jt.colorWarning},"&-validating":{color:jt.colorPrimary}}})}},ge=jt=>{const{componentCls:an,formItemCls:Tn}=jt;return{[`${an}-horizontal`]:{[`${Tn}-label`]:{flexGrow:0},[`${Tn}-control`]:{flex:"1 1 0",minWidth:0},[`${Tn}-label[class$='-24'], ${Tn}-label[class*='-24 ']`]:{[`& + ${Tn}-control`]:{minWidth:"unset"}}}}},Me=jt=>{const{componentCls:an,formItemCls:Tn}=jt;return{[`${an}-inline`]:{display:"flex",flexWrap:"wrap",[Tn]:{flex:"none",marginInlineEnd:jt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Tn}-label,
|
|
|
> ${Tn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Tn}-label`]:{flex:"none"},[`${an}-text`]:{display:"inline-block"},[`${Tn}-has-feedback`]:{display:"inline-block"}}}}},ye=jt=>({padding:jt.verticalLabelPadding,margin:jt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),be=jt=>{const{componentCls:an,formItemCls:Tn,rootPrefixCls:vn}=jt;return{[`${Tn} ${Tn}-label`]:ye(jt),[an]:{[Tn]:{flexWrap:"wrap",[`${Tn}-label, ${Tn}-control`]:{[`&:not([class*=" ${vn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Fe=jt=>{const{componentCls:an,formItemCls:Tn,rootPrefixCls:vn}=jt;return{[`${an}-vertical`]:{[Tn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${an}-item-control`]:{width:"100%"}}},[`${an}-vertical ${Tn}-label,
|
|
|
.${vn}-col-24${Tn}-label,
|
|
|
.${vn}-col-xl-24${Tn}-label`]:ye(jt),[`@media (max-width: ${jt.screenXSMax}px)`]:[be(jt),{[an]:{[`.${vn}-col-xs-24${Tn}-label`]:ye(jt)}}],[`@media (max-width: ${jt.screenSMMax}px)`]:{[an]:{[`.${vn}-col-sm-24${Tn}-label`]:ye(jt)}},[`@media (max-width: ${jt.screenMDMax}px)`]:{[an]:{[`.${vn}-col-md-24${Tn}-label`]:ye(jt)}},[`@media (max-width: ${jt.screenLGMax}px)`]:{[an]:{[`.${vn}-col-lg-24${Tn}-label`]:ye(jt)}}}},ke=(jt,an)=>(0,re.TS)(jt,{formItemCls:`${jt.componentCls}-item`,rootPrefixCls:an});var De=(0,se.Z)("Form",(jt,an)=>{let{rootPrefixCls:Tn}=an;const vn=ke(jt,Tn);return[Se(vn),xe(vn),fe(vn),ge(vn),Me(vn),Fe(vn),(0,he.Z)(vn),oe.kr]},jt=>({labelRequiredMarkColor:jt.colorError,labelColor:jt.colorTextHeading,labelFontSize:jt.fontSize,labelHeight:jt.controlHeight,labelColonMarginInlineStart:jt.marginXXS/2,labelColonMarginInlineEnd:jt.marginXS,itemMarginBottom:jt.marginLG,verticalLabelPadding:`0 0 ${jt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Le=[];function Ie(jt,an,Tn){let vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof jt=="string"?jt:`${an}-${vn}`,error:jt,errorStatus:Tn}}var Ue=jt=>{let{help:an,helpStatus:Tn,errors:vn=Le,warnings:Bn=Le,className:_n,fieldId:hr,onVisibleChanged:ei}=jt;const{prefixCls:Ir}=ve.useContext(te.Rk),Lr=`${Ir}-item-explain`,[,Wr]=De(Ir),Vr=(0,ve.useMemo)(()=>(0,ie.Z)(Ir),[Ir]),nn=ae(vn),Jt=ae(Bn),pn=ve.useMemo(()=>an!=null?[Ie(an,"help",Tn)]:[].concat((0,Oe.Z)(nn.map((Ar,jn)=>Ie(Ar,"error","error",jn))),(0,Oe.Z)(Jt.map((Ar,jn)=>Ie(Ar,"warning","warning",jn)))),[an,Tn,nn,Jt]),tr={};return hr&&(tr.id=`${hr}_help`),ve.createElement(Te.default,{motionDeadline:Vr.motionDeadline,motionName:`${Ir}-show-help`,visible:!!pn.length,onVisibleChanged:ei},Ar=>{const{className:jn,style:Jn}=Ar;return ve.createElement("div",Object.assign({},tr,{className:x()(Lr,jn,_n,Wr),style:Jn,role:"alert"}),ve.createElement(Te.CSSMotionList,Object.assign({keys:pn},(0,ie.Z)(Ir),{motionName:`${Ir}-show-help-item`,component:!1}),ir=>{const{key:kr,error:Ur,errorStatus:Wn,className:Oi,style:bi}=ir;return ve.createElement("div",{key:kr,className:x()(Oi,{[`${Lr}-${Wn}`]:Wn}),style:bi},Ur)}))})},_e=me(46660),We=me(53124),Ze=me(98866),et=me(97647),it=me(98675),pt=me(17423);const Ge=["parentNode"],Xe="form_item";function lt(jt){return jt===void 0||jt===!1?[]:Array.isArray(jt)?jt:[jt]}function dt(jt,an){if(!jt.length)return;const Tn=jt.join("_");return an?`${an}_${Tn}`:Ge.includes(Tn)?`${Xe}_${Tn}`:Tn}function st(jt,an,Tn,vn,Bn,_n){let hr=vn;return _n!==void 0?hr=_n:Tn.validating?hr="validating":jt.length?hr="error":an.length?hr="warning":(Tn.touched||Bn&&Tn.validated)&&(hr="success"),hr}function nt(jt){return lt(jt).join("_")}function rt(jt){const[an]=(0,_e.useForm)(),Tn=ve.useRef({}),vn=ve.useMemo(()=>jt!=null?jt:Object.assign(Object.assign({},an),{__INTERNAL__:{itemRef:Bn=>_n=>{const hr=nt(Bn);_n?Tn.current[hr]=_n:delete Tn.current[hr]}},scrollToField:function(Bn){let _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const hr=lt(Bn),ei=dt(hr,vn.__INTERNAL__.name),Ir=ei?document.getElementById(ei):null;Ir&&(0,pt.Z)(Ir,Object.assign({scrollMode:"if-needed",block:"nearest"},_n))},getFieldInstance:Bn=>{const _n=nt(Bn);return Tn.current[_n]}}),[jt,an]);return[vn]}var at=me(37920),gt=function(jt,an){var Tn={};for(var vn in jt)Object.prototype.hasOwnProperty.call(jt,vn)&&an.indexOf(vn)<0&&(Tn[vn]=jt[vn]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,vn=Object.getOwnPropertySymbols(jt);Bn<vn.length;Bn++)an.indexOf(vn[Bn])<0&&Object.prototype.propertyIsEnumerable.call(jt,vn[Bn])&&(Tn[vn[Bn]]=jt[vn[Bn]]);return Tn};const vt=(jt,an)=>{const Tn=ve.useContext(Ze.Z),{getPrefixCls:vn,direction:Bn,form:_n}=ve.useContext(We.E_),{prefixCls:hr,className:ei,rootClassName:Ir,size:Lr,disabled:Wr=Tn,form:Vr,colon:nn,labelAlign:Jt,labelWrap:pn,labelCol:tr,wrapperCol:Ar,hideRequiredMark:jn,layout:Jn="horizontal",scrollToFirstError:ir,requiredMark:kr,onFinishFailed:Ur,name:Wn,style:Oi,feedbackIcons:bi}=jt,xa=gt(jt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ha=(0,it.Z)(Lr),ia=ve.useContext(at.Z),Ha=(0,ve.useMemo)(()=>kr!==void 0?kr:_n&&_n.requiredMark!==void 0?_n.requiredMark:!jn,[jn,kr,_n]),Ji=nn!=null?nn:_n==null?void 0:_n.colon,Wi=vn("form",hr),[wa,Fa]=De(Wi),Ii=x()(Wi,`${Wi}-${Jn}`,{[`${Wi}-hide-required-mark`]:Ha===!1,[`${Wi}-rtl`]:Bn==="rtl",[`${Wi}-${ha}`]:ha},Fa,_n==null?void 0:_n.className,ei,Ir),[la]=rt(Vr),{__INTERNAL__:Oa}=la;Oa.name=Wn;const ao=(0,ve.useMemo)(()=>({name:Wn,labelAlign:Jt,labelCol:tr,labelWrap:pn,wrapperCol:Ar,vertical:Jn==="vertical",colon:Ji,requiredMark:Ha,itemRef:Oa.itemRef,form:la,feedbackIcons:bi}),[Wn,Jt,tr,Ar,Jn,Ji,Ha,la,bi]);ve.useImperativeHandle(an,()=>la);const Qa=(mn,ln)=>{if(mn){let Fn={block:"nearest"};typeof mn=="object"&&(Fn=mn),la.scrollToField(ln,Fn)}},Ni=mn=>{if(Ur==null||Ur(mn),mn.errorFields.length){const ln=mn.errorFields[0].name;if(ir!==void 0){Qa(ir,ln);return}_n&&_n.scrollToFirstError!==void 0&&Qa(_n.scrollToFirstError,ln)}};return wa(ve.createElement(Ze.n,{disabled:Wr},ve.createElement(et.q,{size:ha},ve.createElement(te.RV,Object.assign({},{validateMessages:ia}),ve.createElement(te.q3.Provider,{value:ao},ve.createElement(_e.default,Object.assign({id:Wn},xa,{name:Wn,onFinishFailed:Ni,form:la,style:Object.assign(Object.assign({},_n==null?void 0:_n.style),Oi),className:Ii})))))))};var At=ve.forwardRef(vt),ut=me(9475),Ye=me(17799),Ve=me(96159),de=me(37419);function Ce(jt){if(typeof jt=="function")return jt;const an=(0,de.Z)(jt);return an.length<=1?an[0]:an}const He=()=>{const{status:jt,errors:an=[],warnings:Tn=[]}=(0,ve.useContext)(te.aM);return{status:jt,errors:an,warnings:Tn}};He.Context=te.aM;var je=He,Ae=me(96523);function Ne(jt){const[an,Tn]=ve.useState(jt),vn=(0,ve.useRef)(null),Bn=(0,ve.useRef)([]),_n=(0,ve.useRef)(!1);ve.useEffect(()=>(_n.current=!1,()=>{_n.current=!0,Ae.Z.cancel(vn.current),vn.current=null}),[]);function hr(ei){_n.current||(vn.current===null&&(Bn.current=[],vn.current=(0,Ae.Z)(()=>{vn.current=null,Tn(Ir=>{let Lr=Ir;return Bn.current.forEach(Wr=>{Lr=Wr(Lr)}),Lr})})),Bn.current.push(ei))}return[an,hr]}function ze(){const{itemRef:jt}=ve.useContext(te.q3),an=ve.useRef({});function Tn(vn,Bn){const _n=Bn&&typeof Bn=="object"&&Bn.ref,hr=vn.join("_");return(an.current.name!==hr||an.current.originRef!==_n)&&(an.current.name=hr,an.current.originRef=_n,an.current.ref=(0,Ye.sQ)(jt(vn),_n)),an.current.ref}return Tn}var Qe=me(48130),ot=me(14075),mt=me(10366),Ot=me(92820),xt=me(21584);const Ut=jt=>{const{formItemCls:an}=jt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${an}-control`]:{display:"flex"}}}};var xn=(0,se.b)(["Form","item-item"],(jt,an)=>{let{rootPrefixCls:Tn}=an;const vn=ke(jt,Tn);return[Ut(vn)]}),Qt=jt=>{const{prefixCls:an,status:Tn,wrapperCol:vn,children:Bn,errors:_n,warnings:hr,_internalItemRender:ei,extra:Ir,help:Lr,fieldId:Wr,marginBottom:Vr,onErrorVisibleChanged:nn}=jt,Jt=`${an}-item`,pn=ve.useContext(te.q3),tr=vn||pn.wrapperCol||{},Ar=x()(`${Jt}-control`,tr.className),jn=ve.useMemo(()=>Object.assign({},pn),[pn]);delete jn.labelCol,delete jn.wrapperCol;const Jn=ve.createElement("div",{className:`${Jt}-control-input`},ve.createElement("div",{className:`${Jt}-control-input-content`},Bn)),ir=ve.useMemo(()=>({prefixCls:an,status:Tn}),[an,Tn]),kr=Vr!==null||_n.length||hr.length?ve.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ve.createElement(te.Rk.Provider,{value:ir},ve.createElement(Ue,{fieldId:Wr,errors:_n,warnings:hr,help:Lr,helpStatus:Tn,className:`${Jt}-explain-connected`,onVisibleChanged:nn})),!!Vr&&ve.createElement("div",{style:{width:0,height:Vr}})):null,Ur={};Wr&&(Ur.id=`${Wr}_extra`);const Wn=Ir?ve.createElement("div",Object.assign({},Ur,{className:`${Jt}-extra`}),Ir):null,Oi=ei&&ei.mark==="pro_table_render"&&ei.render?ei.render(jt,{input:Jn,errorList:kr,extra:Wn}):ve.createElement(ve.Fragment,null,Jn,kr,Wn);return ve.createElement(te.q3.Provider,{value:jn},ve.createElement(xt.Z,Object.assign({},tr,{className:Ar}),Oi),ve.createElement(xn,{prefixCls:an}))},Zt=me(17663),bn=me(24457),Pt=me(10110),zt=me(83062),sn=function(jt,an){var Tn={};for(var vn in jt)Object.prototype.hasOwnProperty.call(jt,vn)&&an.indexOf(vn)<0&&(Tn[vn]=jt[vn]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,vn=Object.getOwnPropertySymbols(jt);Bn<vn.length;Bn++)an.indexOf(vn[Bn])<0&&Object.prototype.propertyIsEnumerable.call(jt,vn[Bn])&&(Tn[vn[Bn]]=jt[vn[Bn]]);return Tn};function yn(jt){return jt?typeof jt=="object"&&!ve.isValidElement(jt)?jt:{title:jt}:null}var Gn=jt=>{let{prefixCls:an,label:Tn,htmlFor:vn,labelCol:Bn,labelAlign:_n,colon:hr,required:ei,requiredMark:Ir,tooltip:Lr}=jt;var Wr;const[Vr]=(0,Pt.Z)("Form"),{vertical:nn,labelAlign:Jt,labelCol:pn,labelWrap:tr,colon:Ar}=ve.useContext(te.q3);if(!Tn)return null;const jn=Bn||pn||{},Jn=_n||Jt,ir=`${an}-item-label`,kr=x()(ir,Jn==="left"&&`${ir}-left`,jn.className,{[`${ir}-wrap`]:!!tr});let Ur=Tn;const Wn=hr===!0||Ar!==!1&&hr!==!1;Wn&&!nn&&typeof Tn=="string"&&Tn.trim()!==""&&(Ur=Tn.replace(/[:|:]\s*$/,""));const bi=yn(Lr);if(bi){const{icon:Ha=ve.createElement(Zt.Z,null)}=bi,Ji=sn(bi,["icon"]),Wi=ve.createElement(zt.Z,Object.assign({},Ji),ve.cloneElement(Ha,{className:`${an}-item-tooltip`,title:""}));Ur=ve.createElement(ve.Fragment,null,Ur,Wi)}const xa=Ir==="optional",ha=typeof Ir=="function";ha?Ur=Ir(Ur,{required:!!ei}):xa&&!ei&&(Ur=ve.createElement(ve.Fragment,null,Ur,ve.createElement("span",{className:`${an}-item-optional`,title:""},(Vr==null?void 0:Vr.optional)||((Wr=bn.Z.Form)===null||Wr===void 0?void 0:Wr.optional))));const ia=x()({[`${an}-item-required`]:ei,[`${an}-item-required-mark-optional`]:xa||ha,[`${an}-item-no-colon`]:!Wn});return ve.createElement(xt.Z,Object.assign({},jn,{className:kr}),ve.createElement("label",{htmlFor:vn,className:ia,title:typeof Tn=="string"?Tn:""},Ur))},dr=me(87725),Or=me(16646),zr=me(87995),Hr=me(3407);const Dr={success:dr.Z,warning:zr.Z,error:Or.Z,validating:Hr.Z};function Kr(jt){let{children:an,errors:Tn,warnings:vn,hasFeedback:Bn,validateStatus:_n,prefixCls:hr,meta:ei,noStyle:Ir}=jt;const Lr=`${hr}-item`,{feedbackIcons:Wr}=ve.useContext(te.q3),Vr=st(Tn,vn,ei,null,!!Bn,_n),{isFormItemInput:nn,status:Jt}=ve.useContext(te.aM),pn=ve.useMemo(()=>{var tr;let Ar;if(Bn){const ir=Bn!==!0&&Bn.icons||Wr,kr=Vr&&((tr=ir==null?void 0:ir({status:Vr,errors:Tn,warnings:vn}))===null||tr===void 0?void 0:tr[Vr]),Ur=Vr&&Dr[Vr];Ar=kr!==!1&&Ur?ve.createElement("span",{className:x()(`${Lr}-feedback-icon`,`${Lr}-feedback-icon-${Vr}`)},kr||ve.createElement(Ur,null)):null}let jn=!0,Jn=Vr||"";return Ir&&(jn=nn,Jn=(Vr!=null?Vr:Jt)||""),{status:Jn,errors:Tn,warnings:vn,hasFeedback:!!Bn,feedbackIcon:Ar,isFormItemInput:jn}},[Vr,Bn,Ir,nn,Jt]);return ve.createElement(te.aM.Provider,{value:pn},an)}var Ai=function(jt,an){var Tn={};for(var vn in jt)Object.prototype.hasOwnProperty.call(jt,vn)&&an.indexOf(vn)<0&&(Tn[vn]=jt[vn]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,vn=Object.getOwnPropertySymbols(jt);Bn<vn.length;Bn++)an.indexOf(vn[Bn])<0&&Object.prototype.propertyIsEnumerable.call(jt,vn[Bn])&&(Tn[vn[Bn]]=jt[vn[Bn]]);return Tn};function Di(jt){const{prefixCls:an,className:Tn,rootClassName:vn,style:Bn,help:_n,errors:hr,warnings:ei,validateStatus:Ir,meta:Lr,hasFeedback:Wr,hidden:Vr,children:nn,fieldId:Jt,required:pn,isRequired:tr,onSubItemMetaChange:Ar}=jt,jn=Ai(jt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Jn=`${an}-item`,{requiredMark:ir}=ve.useContext(te.q3),kr=ve.useRef(null),Ur=ae(hr),Wn=ae(ei),Oi=_n!=null,bi=!!(Oi||hr.length||ei.length),xa=!!kr.current&&(0,Qe.Z)(kr.current),[ha,ia]=ve.useState(null);(0,ot.Z)(()=>{if(bi&&kr.current){const Fa=getComputedStyle(kr.current);ia(parseInt(Fa.marginBottom,10))}},[bi,xa]);const Ha=Fa=>{Fa||ia(null)},Wi=function(){let Fa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ii=Fa?Ur:Lr.errors,la=Fa?Wn:Lr.warnings;return st(Ii,la,Lr,"",!!Wr,Ir)}(),wa=x()(Jn,Tn,vn,{[`${Jn}-with-help`]:Oi||Ur.length||Wn.length,[`${Jn}-has-feedback`]:Wi&&Wr,[`${Jn}-has-success`]:Wi==="success",[`${Jn}-has-warning`]:Wi==="warning",[`${Jn}-has-error`]:Wi==="error",[`${Jn}-is-validating`]:Wi==="validating",[`${Jn}-hidden`]:Vr});return ve.createElement("div",{className:wa,style:Bn,ref:kr},ve.createElement(Ot.Z,Object.assign({className:`${Jn}-row`},(0,mt.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"])),ve.createElement(Gn,Object.assign({htmlFor:Jt},jt,{requiredMark:ir,required:pn!=null?pn:tr,prefixCls:an})),ve.createElement(Qt,Object.assign({},jt,Lr,{errors:Ur,warnings:Wn,prefixCls:an,status:Wi,help:_n,marginBottom:ha,onErrorVisibleChanged:Ha}),ve.createElement(te.qI.Provider,{value:Ar},ve.createElement(Kr,{prefixCls:an,meta:Lr,errors:Lr.errors,warnings:Lr.warnings,hasFeedback:Wr,validateStatus:Wi},nn)))),!!ha&&ve.createElement("div",{className:`${Jn}-margin-offset`,style:{marginBottom:-ha}}))}const Zi="__SPLIT__",di=null,rn=ve.memo(jt=>{let{children:an}=jt;return an},(jt,an)=>jt.value===an.value&&jt.update===an.update&&jt.childProps.length===an.childProps.length&&jt.childProps.every((Tn,vn)=>Tn===an.childProps[vn]));function zn(jt){return jt!=null}function fr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function lr(jt){const{name:an,noStyle:Tn,className:vn,dependencies:Bn,prefixCls:_n,shouldUpdate:hr,rules:ei,children:Ir,required:Lr,label:Wr,messageVariables:Vr,trigger:nn="onChange",validateTrigger:Jt,hidden:pn,help:tr}=jt,{getPrefixCls:Ar}=ve.useContext(We.E_),{name:jn}=ve.useContext(te.q3),Jn=Ce(Ir),ir=typeof Jn=="function",kr=ve.useContext(te.qI),{validateTrigger:Ur}=ve.useContext(_e.FieldContext),Wn=Jt!==void 0?Jt:Ur,Oi=zn(an),bi=Ar("form",_n),[xa,ha]=De(bi),ia=ve.useContext(_e.ListContext),Ha=ve.useRef(),[Ji,Wi]=Ne({}),[wa,Fa]=(0,ut.Z)(()=>fr()),Ii=ln=>{const Fn=ia==null?void 0:ia.getKey(ln.name);if(Fa(ln.destroy?fr():ln,!0),Tn&&tr!==!1&&kr){let or=ln.name;if(ln.destroy)or=Ha.current||or;else if(Fn!==void 0){const[br,Xr]=Fn;or=[br].concat((0,Oe.Z)(Xr)),Ha.current=or}kr(ln,or)}},la=(ln,Fn)=>{Wi(or=>{const br=Object.assign({},or),oi=[].concat((0,Oe.Z)(ln.name.slice(0,-1)),(0,Oe.Z)(Fn)).join(Zi);return ln.destroy?delete br[oi]:br[oi]=ln,br})},[Oa,ao]=ve.useMemo(()=>{const ln=(0,Oe.Z)(wa.errors),Fn=(0,Oe.Z)(wa.warnings);return Object.values(Ji).forEach(or=>{ln.push.apply(ln,(0,Oe.Z)(or.errors||[])),Fn.push.apply(Fn,(0,Oe.Z)(or.warnings||[]))}),[ln,Fn]},[Ji,wa.errors,wa.warnings]),Qa=ze();function Ni(ln,Fn,or){return Tn&&!pn?ve.createElement(Kr,{prefixCls:bi,hasFeedback:jt.hasFeedback,validateStatus:jt.validateStatus,meta:wa,errors:Oa,warnings:ao,noStyle:!0},ln):ve.createElement(Di,Object.assign({key:"row"},jt,{className:x()(vn,ha),prefixCls:bi,fieldId:Fn,isRequired:or,errors:Oa,warnings:ao,meta:wa,onSubItemMetaChange:la}),ln)}if(!Oi&&!ir&&!Bn)return xa(Ni(Jn));let mn={};return typeof Wr=="string"?mn.label=Wr:an&&(mn.label=String(an)),Vr&&(mn=Object.assign(Object.assign({},mn),Vr)),xa(ve.createElement(_e.Field,Object.assign({},jt,{messageVariables:mn,trigger:nn,validateTrigger:Wn,onMetaChange:Ii}),(ln,Fn,or)=>{const br=lt(an).length&&Fn?Fn.name:[],Xr=dt(br,jn),oi=Lr!==void 0?Lr:!!(ei&&ei.some(vi=>{if(vi&&typeof vi=="object"&&vi.required&&!vi.warningOnly)return!0;if(typeof vi=="function"){const Ri=vi(or);return Ri&&Ri.required&&!Ri.warningOnly}return!1})),pi=Object.assign({},ln);let Ti=null;if(Array.isArray(Jn)&&Oi)Ti=Jn;else if(!(ir&&(!(hr||Bn)||Oi))){if(!(Bn&&!ir&&!Oi))if((0,Ve.l$)(Jn)){const vi=Object.assign(Object.assign({},Jn.props),pi);if(vi.id||(vi.id=Xr),tr||Oa.length>0||ao.length>0||jt.extra){const ni=[];(tr||Oa.length>0)&&ni.push(`${Xr}_help`),jt.extra&&ni.push(`${Xr}_extra`),vi["aria-describedby"]=ni.join(" ")}Oa.length>0&&(vi["aria-invalid"]="true"),oi&&(vi["aria-required"]="true"),(0,Ye.Yr)(Jn)&&(vi.ref=Qa(br,Jn)),new Set([].concat((0,Oe.Z)(lt(nn)),(0,Oe.Z)(lt(Wn)))).forEach(ni=>{vi[ni]=function(){for(var Sn,Pn,Yn,qe,yt,St=arguments.length,Dt=new Array(St),Tt=0;Tt<St;Tt++)Dt[Tt]=arguments[Tt];(Yn=pi[ni])===null||Yn===void 0||(Sn=Yn).call.apply(Sn,[pi].concat(Dt)),(yt=(qe=Jn.props)[ni])===null||yt===void 0||(Pn=yt).call.apply(Pn,[qe].concat(Dt))}});const $i=[vi["aria-required"],vi["aria-invalid"],vi["aria-describedby"]];Ti=ve.createElement(rn,{value:pi[jt.valuePropName||"value"],update:Jn,childProps:$i},(0,Ve.Tm)(Jn,vi))}else ir&&(hr||Bn)&&!Oi?Ti=Jn(or):Ti=Jn}return Ni(Ti,Xr,oi)}))}const Tr=lr;Tr.useStatus=je;var Pr=Tr,Gr=function(jt,an){var Tn={};for(var vn in jt)Object.prototype.hasOwnProperty.call(jt,vn)&&an.indexOf(vn)<0&&(Tn[vn]=jt[vn]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,vn=Object.getOwnPropertySymbols(jt);Bn<vn.length;Bn++)an.indexOf(vn[Bn])<0&&Object.prototype.propertyIsEnumerable.call(jt,vn[Bn])&&(Tn[vn[Bn]]=jt[vn[Bn]]);return Tn},Wt=jt=>{var{prefixCls:an,children:Tn}=jt,vn=Gr(jt,["prefixCls","children"]);const{getPrefixCls:Bn}=ve.useContext(We.E_),_n=Bn("form",an),hr=ve.useMemo(()=>({prefixCls:_n,status:"error"}),[_n]);return ve.createElement(_e.List,Object.assign({},vn),(ei,Ir,Lr)=>ve.createElement(te.Rk.Provider,{value:hr},Tn(ei.map(Wr=>Object.assign(Object.assign({},Wr),{fieldKey:Wr.key})),Ir,{errors:Lr.errors,warnings:Lr.warnings})))};function $t(){const{form:jt}=(0,ve.useContext)(te.q3);return jt}const cn=At;cn.Item=Pr,cn.List=Wt,cn.ErrorList=Ue,cn.useForm=rt,cn.useFormInstance=$t,cn.useWatch=_e.useWatch,cn.Provider=te.RV,cn.create=()=>{};var Rn=cn},31795:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Er}});var Oe=me(42922),Je=me(53978),x=me(94184),Te=me.n(x),ve=me(87462),ie=me(4942),te=me(71002),ae=me(97685),ne=me(45987),oe=me(15671),he=me(43144);function re(){return typeof BigInt=="function"}function se(Wt){return!Wt&&Wt!==0&&!Number.isNaN(Wt)||!String(Wt).trim()}function ce(Wt){var $t=Wt.trim(),cn=$t.startsWith("-");cn&&($t=$t.slice(1)),$t=$t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),$t.startsWith(".")&&($t="0".concat($t));var Rn=$t||"0",jt=Rn.split("."),an=jt[0]||"0",Tn=jt[1]||"0";an==="0"&&Tn==="0"&&(cn=!1);var vn=cn?"-":"";return{negative:cn,negativeStr:vn,trimStr:Rn,integerStr:an,decimalStr:Tn,fullStr:"".concat(vn).concat(Rn)}}function fe(Wt){var $t=String(Wt);return!Number.isNaN(Number($t))&&$t.includes("e")}function pe(Wt){var $t=String(Wt);if(fe(Wt)){var cn=Number($t.slice($t.indexOf("e-")+2)),Rn=$t.match(/\.(\d+)/);return Rn!=null&&Rn[1]&&(cn+=Rn[1].length),cn}return $t.includes(".")&&Se($t)?$t.length-$t.indexOf(".")-1:0}function le(Wt){var $t=String(Wt);if(fe(Wt)){if(Wt>Number.MAX_SAFE_INTEGER)return String(re()?BigInt(Wt).toString():Number.MAX_SAFE_INTEGER);if(Wt<Number.MIN_SAFE_INTEGER)return String(re()?BigInt(Wt).toString():Number.MIN_SAFE_INTEGER);$t=Wt.toFixed(pe($t))}return ce($t).fullStr}function Se(Wt){return typeof Wt=="number"?!Number.isNaN(Wt):Wt?/^\s*-?\d+(\.\d+)?\s*$/.test(Wt)||/^\s*-?\d+\.\s*$/.test(Wt)||/^\s*-?\.\d+\s*$/.test(Wt):!1}var xe=function(){function Wt($t){if((0,oe.Z)(this,Wt),(0,ie.Z)(this,"origin",""),(0,ie.Z)(this,"negative",void 0),(0,ie.Z)(this,"integer",void 0),(0,ie.Z)(this,"decimal",void 0),(0,ie.Z)(this,"decimalLen",void 0),(0,ie.Z)(this,"empty",void 0),(0,ie.Z)(this,"nan",void 0),se($t)){this.empty=!0;return}if(this.origin=String($t),$t==="-"||Number.isNaN($t)){this.nan=!0;return}var cn=$t;if(fe(cn)&&(cn=Number(cn)),cn=typeof cn=="string"?cn:le(cn),Se(cn)){var Rn=ce(cn);this.negative=Rn.negative;var jt=Rn.trimStr.split(".");this.integer=BigInt(jt[0]);var an=jt[1]||"0";this.decimal=BigInt(an),this.decimalLen=an.length}else this.nan=!0}return(0,he.Z)(Wt,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(cn){var Rn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(cn,"0"));return BigInt(Rn)}},{key:"negate",value:function(){var cn=new Wt(this.toString());return cn.negative=!cn.negative,cn}},{key:"cal",value:function(cn,Rn,jt){var an=Math.max(this.getDecimalStr().length,cn.getDecimalStr().length),Tn=this.alignDecimal(an),vn=cn.alignDecimal(an),Bn=Rn(Tn,vn).toString(),_n=jt(an),hr=ce(Bn),ei=hr.negativeStr,Ir=hr.trimStr,Lr="".concat(ei).concat(Ir.padStart(_n+1,"0"));return new Wt("".concat(Lr.slice(0,-_n),".").concat(Lr.slice(-_n)))}},{key:"add",value:function(cn){if(this.isInvalidate())return new Wt(cn);var Rn=new Wt(cn);return Rn.isInvalidate()?this:this.cal(Rn,function(jt,an){return jt+an},function(jt){return jt})}},{key:"multi",value:function(cn){var Rn=new Wt(cn);return this.isInvalidate()||Rn.isInvalidate()?new Wt(NaN):this.cal(Rn,function(jt,an){return jt*an},function(jt){return jt*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(cn){return this.toString()===(cn==null?void 0:cn.toString())}},{key:"lessEquals",value:function(cn){return this.add(cn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return cn?this.isInvalidate()?"":ce("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Wt}(),ge=function(){function Wt($t){if((0,oe.Z)(this,Wt),(0,ie.Z)(this,"origin",""),(0,ie.Z)(this,"number",void 0),(0,ie.Z)(this,"empty",void 0),se($t)){this.empty=!0;return}this.origin=String($t),this.number=Number($t)}return(0,he.Z)(Wt,[{key:"negate",value:function(){return new Wt(-this.toNumber())}},{key:"add",value:function(cn){if(this.isInvalidate())return new Wt(cn);var Rn=Number(cn);if(Number.isNaN(Rn))return this;var jt=this.number+Rn;if(jt>Number.MAX_SAFE_INTEGER)return new Wt(Number.MAX_SAFE_INTEGER);if(jt<Number.MIN_SAFE_INTEGER)return new Wt(Number.MIN_SAFE_INTEGER);var an=Math.max(pe(this.number),pe(Rn));return new Wt(jt.toFixed(an))}},{key:"multi",value:function(cn){var Rn=Number(cn);if(this.isInvalidate()||Number.isNaN(Rn))return new Wt(NaN);var jt=this.number*Rn;if(jt>Number.MAX_SAFE_INTEGER)return new Wt(Number.MAX_SAFE_INTEGER);if(jt<Number.MIN_SAFE_INTEGER)return new Wt(Number.MIN_SAFE_INTEGER);var an=Math.max(pe(this.number),pe(Rn));return new Wt(jt.toFixed(an))}},{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(cn){return this.toNumber()===(cn==null?void 0:cn.toNumber())}},{key:"lessEquals",value:function(cn){return this.add(cn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return cn?this.isInvalidate()?"":le(this.number):this.origin}}]),Wt}();function Me(Wt){return re()?new xe(Wt):new ge(Wt)}function ye(Wt,$t,cn){var Rn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Wt==="")return"";var jt=ce(Wt),an=jt.negativeStr,Tn=jt.integerStr,vn=jt.decimalStr,Bn="".concat($t).concat(vn),_n="".concat(an).concat(Tn);if(cn>=0){var hr=Number(vn[cn]);if(hr>=5&&!Rn){var ei=Me(Wt).add("".concat(an,"0.").concat("0".repeat(cn)).concat(10-hr));return ye(ei.toString(),$t,cn,Rn)}return cn===0?_n:"".concat(_n).concat($t).concat(vn.padEnd(cn,"0").slice(0,cn))}return Bn===".0"?_n:"".concat(_n).concat(Bn)}var be=Me,Fe=me(67656),ke=me(67294);function De(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Le=De()?ke.useLayoutEffect:ke.useEffect,Ie=function($t,cn){var Rn=ke.useRef(!0);Le(function(){return $t(Rn.current)},cn),Le(function(){return Rn.current=!1,function(){Rn.current=!0}},[])},Be=function($t,cn){Ie(function(Rn){if(!Rn)return $t()},cn)},Ue=Ie,_e=me(27183);function We(Wt,$t,cn){var Rn=React.useRef({});return(!("value"in Rn.current)||cn(Rn.current.condition,$t))&&(Rn.current.value=Wt(),Rn.current.condition=$t),Rn.current.value}function Ze(Wt,$t){typeof Wt=="function"?Wt($t):(0,te.Z)(Wt)==="object"&&Wt&&"current"in Wt&&(Wt.current=$t)}function et(){for(var Wt=arguments.length,$t=new Array(Wt),cn=0;cn<Wt;cn++)$t[cn]=arguments[cn];var Rn=$t.filter(function(jt){return jt});return Rn.length<=1?Rn[0]:function(jt){$t.forEach(function(an){Ze(an,jt)})}}function it(){for(var Wt=arguments.length,$t=new Array(Wt),cn=0;cn<Wt;cn++)$t[cn]=arguments[cn];return useMemo(function(){return et.apply(void 0,$t)},$t,function(Rn,jt){return Rn.length!==jt.length||Rn.every(function(an,Tn){return an!==jt[Tn]})})}function pt(Wt){var $t,cn,Rn=isMemo(Wt)?Wt.type.type:Wt.type;return!(typeof Rn=="function"&&!(($t=Rn.prototype)!==null&&$t!==void 0&&$t.render)||typeof Wt=="function"&&!((cn=Wt.prototype)!==null&&cn!==void 0&&cn.render))}function Ge(Wt){return!isValidElement(Wt)||isFragment(Wt)?!1:pt(Wt)}var Xe={},lt=[],dt=function($t){lt.push($t)};function st(Wt,$t){if(0)var cn}function nt(Wt,$t){if(0)var cn}function rt(){Xe={}}function at(Wt,$t,cn){!$t&&!Xe[cn]&&(Wt(!1,cn),Xe[cn]=!0)}function gt(Wt,$t){at(st,Wt,$t)}function vt(Wt,$t){at(nt,Wt,$t)}gt.preMessage=dt,gt.resetWarned=rt,gt.noteOnce=vt;var Et=gt;function At(Wt,$t){var cn=(0,ke.useRef)(null);function Rn(){try{var an=Wt.selectionStart,Tn=Wt.selectionEnd,vn=Wt.value,Bn=vn.substring(0,an),_n=vn.substring(Tn);cn.current={start:an,end:Tn,value:vn,beforeTxt:Bn,afterTxt:_n}}catch(hr){}}function jt(){if(Wt&&cn.current&&$t)try{var an=Wt.value,Tn=cn.current,vn=Tn.beforeTxt,Bn=Tn.afterTxt,_n=Tn.start,hr=an.length;if(an.endsWith(Bn))hr=an.length-cn.current.afterTxt.length;else if(an.startsWith(vn))hr=vn.length;else{var ei=vn[_n-1],Ir=an.indexOf(ei,_n-1);Ir!==-1&&(hr=Ir+1)}Wt.setSelectionRange(hr,hr)}catch(Lr){Et(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Lr.message))}}return[Rn,jt]}var ut=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Wt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Wt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Wt==null?void 0:Wt.substr(0,4))},Ye=function(){var $t=(0,ke.useState)(!1),cn=(0,ae.Z)($t,2),Rn=cn[0],jt=cn[1];return Ue(function(){jt(ut())},[]),Rn},Ve=Ye,de=function($t){return+setTimeout($t,16)},Ce=function($t){return clearTimeout($t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(de=function($t){return window.requestAnimationFrame($t)},Ce=function($t){return window.cancelAnimationFrame($t)});var He=0,je=new Map;function Ae(Wt){je.delete(Wt)}var Ne=function($t){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;He+=1;var Rn=He;function jt(an){if(an===0)Ae(Rn),$t();else{var Tn=de(function(){jt(an-1)});je.set(Rn,Tn)}}return jt(cn),Rn};Ne.cancel=function(Wt){var $t=je.get(Wt);return Ae($t),Ce($t)};var ze=Ne,Qe=200,ot=600;function mt(Wt){var $t=Wt.prefixCls,cn=Wt.upNode,Rn=Wt.downNode,jt=Wt.upDisabled,an=Wt.downDisabled,Tn=Wt.onStep,vn=ke.useRef(),Bn=ke.useRef([]),_n=ke.useRef();_n.current=Tn;var hr=function(){clearTimeout(vn.current)},ei=function(tr,Ar){tr.preventDefault(),hr(),_n.current(Ar);function jn(){_n.current(Ar),vn.current=setTimeout(jn,Qe)}vn.current=setTimeout(jn,ot)};ke.useEffect(function(){return function(){hr(),Bn.current.forEach(function(pn){return ze.cancel(pn)})}},[]);var Ir=Ve();if(Ir)return null;var Lr="".concat($t,"-handler"),Wr=Te()(Lr,"".concat(Lr,"-up"),(0,ie.Z)({},"".concat(Lr,"-up-disabled"),jt)),Vr=Te()(Lr,"".concat(Lr,"-down"),(0,ie.Z)({},"".concat(Lr,"-down-disabled"),an)),nn=function(){return Bn.current.push(ze(hr))},Jt={unselectable:"on",role:"button",onMouseUp:nn,onMouseLeave:nn};return ke.createElement("div",{className:"".concat(Lr,"-wrap")},ke.createElement("span",(0,ve.Z)({},Jt,{onMouseDown:function(tr){ei(tr,!0)},"aria-label":"Increase Value","aria-disabled":jt,className:Wr}),cn||ke.createElement("span",{unselectable:"on",className:"".concat($t,"-handler-up-inner")})),ke.createElement("span",(0,ve.Z)({},Jt,{onMouseDown:function(tr){ei(tr,!1)},"aria-label":"Decrease Value","aria-disabled":an,className:Vr}),Rn||ke.createElement("span",{unselectable:"on",className:"".concat($t,"-handler-down-inner")})))}function Ot(Wt){var $t=typeof Wt=="number"?le(Wt):ce(Wt).fullStr,cn=$t.includes(".");return cn?ce($t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Wt+"0"}var xt=me(87887),Ut=function(){var Wt=(0,ke.useRef)(0),$t=function(){ze.cancel(Wt.current)};return(0,ke.useEffect)(function(){return $t},[]),function(cn){$t(),Wt.current=ze(function(){cn()})}},xn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Ft=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Qt=function($t,cn){return $t||cn.isEmpty()?cn.toString():cn.toNumber()},Zt=function($t){var cn=be($t);return cn.isInvalidate()?null:cn},bn=ke.forwardRef(function(Wt,$t){var cn,Rn=Wt.prefixCls,jt=Rn===void 0?"rc-input-number":Rn,an=Wt.className,Tn=Wt.style,vn=Wt.min,Bn=Wt.max,_n=Wt.step,hr=_n===void 0?1:_n,ei=Wt.defaultValue,Ir=Wt.value,Lr=Wt.disabled,Wr=Wt.readOnly,Vr=Wt.upHandler,nn=Wt.downHandler,Jt=Wt.keyboard,pn=Wt.controls,tr=pn===void 0?!0:pn,Ar=Wt.classNames,jn=Wt.stringMode,Jn=Wt.parser,ir=Wt.formatter,kr=Wt.precision,Ur=Wt.decimalSeparator,Wn=Wt.onChange,Oi=Wt.onInput,bi=Wt.onPressEnter,xa=Wt.onStep,ha=(0,ne.Z)(Wt,xn),ia="".concat(jt,"-input"),Ha=ke.useRef(null),Ji=ke.useState(!1),Wi=(0,ae.Z)(Ji,2),wa=Wi[0],Fa=Wi[1],Ii=ke.useRef(!1),la=ke.useRef(!1),Oa=ke.useRef(!1),ao=ke.useState(function(){return be(Ir!=null?Ir:ei)}),Qa=(0,ae.Z)(ao,2),Ni=Qa[0],mn=Qa[1];function ln($n){Ir===void 0&&mn($n)}var Fn=ke.useCallback(function($n,ar){if(!ar)return kr>=0?kr:Math.max(pe($n),pe(hr))},[kr,hr]),or=ke.useCallback(function($n){var ar=String($n);if(Jn)return Jn(ar);var ur=ar;return Ur&&(ur=ur.replace(Ur,".")),ur.replace(/[^\w.-]+/g,"")},[Jn,Ur]),br=ke.useRef(""),Xr=ke.useCallback(function($n,ar){if(ir)return ir($n,{userTyping:ar,input:String(br.current)});var ur=typeof $n=="number"?le($n):$n;if(!ar){var mr=Fn(ur,ar);if(Se(ur)&&(Ur||mr>=0)){var wr=Ur||".";ur=ye(ur,wr,mr)}}return ur},[ir,Fn,Ur]),oi=ke.useState(function(){var $n=ei!=null?ei:Ir;return Ni.isInvalidate()&&["string","number"].includes((0,te.Z)($n))?Number.isNaN($n)?"":$n:Xr(Ni.toString(),!1)}),pi=(0,ae.Z)(oi,2),Ti=pi[0],vi=pi[1];br.current=Ti;function Ri($n,ar){vi(Xr($n.isInvalidate()?$n.toString(!1):$n.toString(!ar),ar))}var $i=ke.useMemo(function(){return Zt(Bn)},[Bn,kr]),ni=ke.useMemo(function(){return Zt(vn)},[vn,kr]),Sn=ke.useMemo(function(){return!$i||!Ni||Ni.isInvalidate()?!1:$i.lessEquals(Ni)},[$i,Ni]),Pn=ke.useMemo(function(){return!ni||!Ni||Ni.isInvalidate()?!1:Ni.lessEquals(ni)},[ni,Ni]),Yn=At(Ha.current,wa),qe=(0,ae.Z)(Yn,2),yt=qe[0],St=qe[1],Dt=function(ar){return $i&&!ar.lessEquals($i)?$i:ni&&!ni.lessEquals(ar)?ni:null},Tt=function(ar){return!Dt(ar)},Nt=function(ar,ur){var mr=ar,wr=Tt(mr)||mr.isEmpty();if(!mr.isEmpty()&&!ur&&(mr=Dt(mr)||mr,wr=!0),!Wr&&!Lr&&wr){var kt=mr.toString(),It=Fn(kt,ur);return It>=0&&(mr=be(ye(kt,".",It)),Tt(mr)||(mr=be(ye(kt,".",It,!0)))),mr.equals(Ni)||(ln(mr),Wn==null||Wn(mr.isEmpty()?null:Qt(jn,mr)),Ir===void 0&&Ri(mr,ur)),mr}return Ni},_t=Ut(),on=function $n(ar){if(yt(),br.current=ar,vi(ar),!la.current){var ur=or(ar),mr=be(ur);mr.isNaN()||Nt(mr,!0)}Oi==null||Oi(ar),_t(function(){var wr=ar;Jn||(wr=ar.replace(/。/g,".")),wr!==ar&&$n(wr)})},gn=function(){la.current=!0},Vn=function(){la.current=!1,on(Ha.current.value)},qn=function(ar){on(ar.target.value)},Xn=function(ar){var ur;if(!(ar&&Sn||!ar&&Pn)){Ii.current=!1;var mr=be(Oa.current?Ot(hr):hr);ar||(mr=mr.negate());var wr=(Ni||be(0)).add(mr.toString()),kt=Nt(wr,!1);xa==null||xa(Qt(jn,kt),{offset:Oa.current?Ot(hr):hr,type:ar?"up":"down"}),(ur=Ha.current)===null||ur===void 0||ur.focus()}},Dn=function(ar){var ur=be(or(Ti)),mr=ur;ur.isNaN()?mr=Nt(Ni,ar):mr=Nt(ur,ar),Ir!==void 0?Ri(Ni,!1):mr.isNaN()||Ri(mr,!1)},In=function(){Ii.current=!0},Cn=function(ar){var ur=ar.key,mr=ar.shiftKey;Ii.current=!0,Oa.current=mr,ur==="Enter"&&(la.current||(Ii.current=!1),Dn(!1),bi==null||bi(ar)),Jt!==!1&&!la.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ur)&&(Xn(ur==="Up"||ur==="ArrowUp"),ar.preventDefault())},Zn=function(){Ii.current=!1,Oa.current=!1},pr=function(){Dn(!1),Fa(!1),Ii.current=!1};return Be(function(){Ni.isInvalidate()||Ri(Ni,!1)},[kr]),Be(function(){var $n=be(Ir);mn($n);var ar=be(or(Ti));(!$n.equals(ar)||!Ii.current||ir)&&Ri($n,Ii.current)},[Ir]),Be(function(){ir&&St()},[Ti]),ke.createElement("div",{className:Te()(jt,Ar==null?void 0:Ar.input,an,(cn={},(0,ie.Z)(cn,"".concat(jt,"-focused"),wa),(0,ie.Z)(cn,"".concat(jt,"-disabled"),Lr),(0,ie.Z)(cn,"".concat(jt,"-readonly"),Wr),(0,ie.Z)(cn,"".concat(jt,"-not-a-number"),Ni.isNaN()),(0,ie.Z)(cn,"".concat(jt,"-out-of-range"),!Ni.isInvalidate()&&!Tt(Ni)),cn)),style:Tn,onFocus:function(){Fa(!0)},onBlur:pr,onKeyDown:Cn,onKeyUp:Zn,onCompositionStart:gn,onCompositionEnd:Vn,onBeforeInput:In},tr&&ke.createElement(mt,{prefixCls:jt,upNode:Vr,downNode:nn,upDisabled:Sn,downDisabled:Pn,onStep:Xn}),ke.createElement("div",{className:"".concat(ia,"-wrap")},ke.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":vn,"aria-valuemax":Bn,"aria-valuenow":Ni.isInvalidate()?null:Ni.toString(),step:hr},ha,{ref:et(Ha,$t),className:ia,value:Ti,onChange:qn,disabled:Lr,readOnly:Wr}))))}),Pt=ke.forwardRef(function(Wt,$t){var cn=Wt.disabled,Rn=Wt.style,jt=Wt.prefixCls,an=Wt.value,Tn=Wt.prefix,vn=Wt.suffix,Bn=Wt.addonBefore,_n=Wt.addonAfter,hr=Wt.classes,ei=Wt.className,Ir=Wt.classNames,Lr=(0,ne.Z)(Wt,Ft),Wr=ke.useRef(null),Vr=function(Jt){Wr.current&&(0,xt.nH)(Wr.current,Jt)};return ke.createElement(Fe.BaseInput,{inputElement:ke.createElement(bn,(0,ve.Z)({prefixCls:jt,disabled:cn,classNames:Ir,ref:et(Wr,$t)},Lr)),className:ei,triggerFocus:Vr,prefixCls:jt,value:an,disabled:cn,style:Rn,prefix:Tn,suffix:vn,addonAfter:_n,addonBefore:Bn,classes:hr,classNames:Ir,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Pt.displayName="InputNumber";var zt=Pt,sn=zt,yn=me(9708),kn=me(53124),Gn=me(46735),dr=me(98866),Or=me(98675),zr=me(65223),Hr=me(4173),Dr=me(47673),Kr=me(14747),Ai=me(80110),Di=me(67968),Zi=me(45503);const di=(Wt,$t)=>{let{componentCls:cn,borderRadiusSM:Rn,borderRadiusLG:jt}=Wt;const an=$t==="lg"?jt:Rn;return{[`&-${$t}`]:{[`${cn}-handler-wrap`]:{borderStartEndRadius:an,borderEndEndRadius:an},[`${cn}-handler-up`]:{borderStartEndRadius:an},[`${cn}-handler-down`]:{borderEndEndRadius:an}}}},rn=Wt=>{const{componentCls:$t,lineWidth:cn,lineType:Rn,colorBorder:jt,borderRadius:an,fontSizeLG:Tn,controlHeightLG:vn,controlHeightSM:Bn,colorError:_n,paddingInlineSM:hr,colorTextDescription:ei,motionDurationMid:Ir,handleHoverColor:Lr,paddingInline:Wr,paddingBlock:Vr,handleBg:nn,handleActiveBg:Jt,colorTextDisabled:pn,borderRadiusSM:tr,borderRadiusLG:Ar,controlWidth:jn,handleVisible:Jn,handleBorderColor:ir}=Wt;return[{[$t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kr.Wf)(Wt)),(0,Dr.ik)(Wt)),(0,Dr.bi)(Wt,$t)),{display:"inline-block",width:jn,margin:0,padding:0,border:`${cn}px ${Rn} ${jt}`,borderRadius:an,"&-rtl":{direction:"rtl",[`${$t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Tn,borderRadius:Ar,[`input${$t}-input`]:{height:vn-2*cn}},"&-sm":{padding:0,borderRadius:tr,[`input${$t}-input`]:{height:Bn-2*cn,padding:`0 ${hr}px`}},"&:hover":Object.assign({},(0,Dr.pU)(Wt)),"&-focused":Object.assign({},(0,Dr.M1)(Wt)),"&-out-of-range":{[`${$t}-input-wrap`]:{input:{color:_n}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Kr.Wf)(Wt)),(0,Dr.s7)(Wt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${$t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${$t}-group-addon`]:{borderRadius:Ar,fontSize:Wt.fontSizeLG}},"&-sm":{[`${$t}-group-addon`]:{borderRadius:tr}},[`${$t}-wrapper-disabled > ${$t}-group-addon`]:Object.assign({},(0,Dr.Xy)(Wt))}}),[`&-disabled ${$t}-input`]:{cursor:"not-allowed"},[$t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kr.Wf)(Wt)),{width:"100%",padding:`${Vr}px ${Wr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:an,outline:0,transition:`all ${Ir} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Dr.nz)(Wt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[$t]:Object.assign(Object.assign(Object.assign({[`&:hover ${$t}-handler-wrap, &-focused ${$t}-handler-wrap`]:{opacity:1},[`${$t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Wt.handleWidth,height:"100%",background:nn,borderStartStartRadius:0,borderStartEndRadius:an,borderEndEndRadius:an,borderEndStartRadius:0,opacity:Jn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Ir} linear ${Ir}`,[`${$t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${$t}-handler-up-inner,
|
|
|
${$t}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Wt.handleFontSize}}},[`${$t}-handler`]:{height:"50%",overflow:"hidden",color:ei,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${cn}px ${Rn} ${ir}`,transition:`all ${Ir} linear`,"&:active":{background:Jt},"&:hover":{height:"60%",[`
|
|
|
${$t}-handler-up-inner,
|
|
|
${$t}-handler-down-inner
|
|
|
`]:{color:Lr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Kr.Ro)()),{color:ei,transition:`all ${Ir} linear`,userSelect:"none"})},[`${$t}-handler-up`]:{borderStartEndRadius:an},[`${$t}-handler-down`]:{borderBlockStart:`${cn}px ${Rn} ${ir}`,borderEndEndRadius:an}},di(Wt,"lg")),di(Wt,"sm")),{"&-disabled, &-readonly":{[`${$t}-handler-wrap`]:{display:"none"},[`${$t}-input`]:{color:"inherit"}},[`
|
|
|
${$t}-handler-up-disabled,
|
|
|
${$t}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${$t}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${$t}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:pn}})},{[`${$t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${$t}-handler-down`]:{borderBlockStartWidth:0}}}]},zn=Wt=>{const{componentCls:$t,paddingBlock:cn,paddingInline:Rn,inputAffixPadding:jt,controlWidth:an,borderRadiusLG:Tn,borderRadiusSM:vn}=Wt;return{[`${$t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Dr.ik)(Wt)),(0,Dr.bi)(Wt,`${$t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:an,padding:0,paddingInlineStart:Rn,"&-lg":{borderRadius:Tn},"&-sm":{borderRadius:vn},[`&:not(${$t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,Dr.pU)(Wt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${$t}-disabled`]:{background:"transparent"},[`> div${$t}`]:{width:"100%",border:"none",outline:"none",[`&${$t}-focused`]:{boxShadow:"none !important"}},[`input${$t}-input`]:{padding:`${cn}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${$t}-handler-wrap`]:{zIndex:2},[$t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:jt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Rn,marginInlineStart:jt}}})}};var fr=(0,Di.Z)("InputNumber",Wt=>{const $t=(0,Zi.TS)(Wt,(0,Dr.e5)(Wt));return[rn($t),zn($t),(0,Ai.c)($t)]},Wt=>Object.assign(Object.assign({},(0,Dr.TM)(Wt)),{controlWidth:90,handleWidth:Wt.controlHeightSM-Wt.lineWidth*2,handleFontSize:Wt.fontSize/2,handleVisible:"auto",handleActiveBg:Wt.colorFillAlter,handleBg:Wt.colorBgContainer,handleHoverColor:Wt.colorPrimary,handleBorderColor:Wt.colorBorder})),lr=function(Wt,$t){var cn={};for(var Rn in Wt)Object.prototype.hasOwnProperty.call(Wt,Rn)&&$t.indexOf(Rn)<0&&(cn[Rn]=Wt[Rn]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Rn=Object.getOwnPropertySymbols(Wt);jt<Rn.length;jt++)$t.indexOf(Rn[jt])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Rn[jt])&&(cn[Rn[jt]]=Wt[Rn[jt]]);return cn};const Tr=ke.forwardRef((Wt,$t)=>{const{getPrefixCls:cn,direction:Rn}=ke.useContext(kn.E_),jt=ke.useRef(null);ke.useImperativeHandle($t,()=>jt.current);const{className:an,rootClassName:Tn,size:vn,disabled:Bn,prefixCls:_n,addonBefore:hr,addonAfter:ei,prefix:Ir,bordered:Lr=!0,readOnly:Wr,status:Vr,controls:nn}=Wt,Jt=lr(Wt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),pn=cn("input-number",_n),[tr,Ar]=fr(pn),{compactSize:jn,compactItemClassnames:Jn}=(0,Hr.ri)(pn,Rn);let ir=ke.createElement(Je.Z,{className:`${pn}-handler-up-inner`}),kr=ke.createElement(Oe.Z,{className:`${pn}-handler-down-inner`});const Ur=typeof nn=="boolean"?nn:void 0;typeof nn=="object"&&(ir=typeof nn.upIcon=="undefined"?ir:ke.createElement("span",{className:`${pn}-handler-up-inner`},nn.upIcon),kr=typeof nn.downIcon=="undefined"?kr:ke.createElement("span",{className:`${pn}-handler-down-inner`},nn.downIcon));const{hasFeedback:Wn,status:Oi,isFormItemInput:bi,feedbackIcon:xa}=ke.useContext(zr.aM),ha=(0,yn.F)(Oi,Vr),ia=(0,Or.Z)(Ii=>{var la;return(la=vn!=null?vn:jn)!==null&&la!==void 0?la:Ii}),Ha=ke.useContext(dr.Z),Ji=Bn!=null?Bn:Ha,Wi=Te()({[`${pn}-lg`]:ia==="large",[`${pn}-sm`]:ia==="small",[`${pn}-rtl`]:Rn==="rtl",[`${pn}-borderless`]:!Lr,[`${pn}-in-form-item`]:bi},(0,yn.Z)(pn,ha),Jn,Ar),wa=`${pn}-group`,Fa=ke.createElement(sn,Object.assign({ref:jt,disabled:Ji,className:Te()(an,Tn),upHandler:ir,downHandler:kr,prefixCls:pn,readOnly:Wr,controls:Ur,prefix:Ir,suffix:Wn&&xa,addonAfter:ei&&ke.createElement(Hr.BR,null,ke.createElement(zr.Ux,{override:!0,status:!0},ei)),addonBefore:hr&&ke.createElement(Hr.BR,null,ke.createElement(zr.Ux,{override:!0,status:!0},hr)),classNames:{input:Wi},classes:{affixWrapper:Te()((0,yn.Z)(`${pn}-affix-wrapper`,ha,Wn),{[`${pn}-affix-wrapper-sm`]:ia==="small",[`${pn}-affix-wrapper-lg`]:ia==="large",[`${pn}-affix-wrapper-rtl`]:Rn==="rtl",[`${pn}-affix-wrapper-borderless`]:!Lr},Ar),wrapper:Te()({[`${wa}-rtl`]:Rn==="rtl",[`${pn}-wrapper-disabled`]:Ji},Ar),group:Te()({[`${pn}-group-wrapper-sm`]:ia==="small",[`${pn}-group-wrapper-lg`]:ia==="large",[`${pn}-group-wrapper-rtl`]:Rn==="rtl"},(0,yn.Z)(`${pn}-group-wrapper`,ha,Wn),Ar)}},Jt));return tr(Fa)}),Pr=Tr,Gr=Wt=>ke.createElement(Gn.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},ke.createElement(Tr,Object.assign({},Wt)));Pr._InternalPanelDoNotUseOrYouWillBeFired=Gr;var Er=Pr},82586:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return xe},n:function(){return le}});var Oe=me(16646),Je=me(94184),x=me.n(Je),Te=me(67656),ve=me(17799),ie=me(67294),te=me(9708),ae=me(53124),ne=me(98866),oe=me(98675),he=me(65223),re=me(4173),se=me(72922),ce=me(47673);function fe(ge){return!!(ge.prefix||ge.suffix||ge.allowClear)}var pe=function(ge,Me){var ye={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&Me.indexOf(be)<0&&(ye[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,be=Object.getOwnPropertySymbols(ge);Fe<be.length;Fe++)Me.indexOf(be[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[Fe])&&(ye[be[Fe]]=ge[be[Fe]]);return ye};function le(ge,Me){if(!ge)return;ge.focus(Me);const{cursor:ye}=Me||{};if(ye){const be=ge.value.length;switch(ye){case"start":ge.setSelectionRange(0,0);break;case"end":ge.setSelectionRange(be,be);break;default:ge.setSelectionRange(0,be);break}}}var xe=(0,ie.forwardRef)((ge,Me)=>{var ye;const{prefixCls:be,bordered:Fe=!0,status:ke,size:De,disabled:Le,onBlur:Ie,onFocus:Be,suffix:Ue,allowClear:_e,addonAfter:We,addonBefore:Ze,className:et,style:it,styles:pt,rootClassName:Ge,onChange:Xe,classNames:lt}=ge,dt=pe(ge,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:st,direction:nt,input:rt}=ie.useContext(ae.E_),at=st("input",be),gt=(0,ie.useRef)(null),[vt,Et]=(0,ce.ZP)(at),{compactSize:At,compactItemClassnames:ut}=(0,re.ri)(at,nt),Ye=(0,oe.Z)(xn=>{var Ft;return(Ft=De!=null?De:At)!==null&&Ft!==void 0?Ft:xn}),Ve=ie.useContext(ne.Z),de=Le!=null?Le:Ve,{status:Ce,hasFeedback:He,feedbackIcon:je}=(0,ie.useContext)(he.aM),Ae=(0,te.F)(Ce,ke),Ne=fe(ge)||!!He,ze=(0,ie.useRef)(Ne);(0,ie.useEffect)(()=>{var xn;Ne&&ze.current,ze.current=Ne},[Ne]);const Qe=(0,se.Z)(gt,!0),ot=xn=>{Qe(),Ie==null||Ie(xn)},mt=xn=>{Qe(),Be==null||Be(xn)},Ot=xn=>{Qe(),Xe==null||Xe(xn)},xt=(He||Ue)&&ie.createElement(ie.Fragment,null,Ue,He&&je);let Ut;return typeof _e=="object"&&(_e!=null&&_e.clearIcon)?Ut=_e:_e&&(Ut={clearIcon:ie.createElement(Oe.Z,null)}),vt(ie.createElement(Te.default,Object.assign({ref:(0,ve.sQ)(Me,gt),prefixCls:at,autoComplete:rt==null?void 0:rt.autoComplete},dt,{disabled:de,onBlur:ot,onFocus:mt,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),it),styles:Object.assign(Object.assign({},rt==null?void 0:rt.styles),pt),suffix:xt,allowClear:Ut,className:x()(et,Ge,ut,rt==null?void 0:rt.className),onChange:Ot,addonAfter:We&&ie.createElement(re.BR,null,ie.createElement(he.Ux,{override:!0,status:!0},We)),addonBefore:Ze&&ie.createElement(re.BR,null,ie.createElement(he.Ux,{override:!0,status:!0},Ze)),classNames:Object.assign(Object.assign(Object.assign({},lt),rt==null?void 0:rt.classNames),{input:x()({[`${at}-sm`]:Ye==="small",[`${at}-lg`]:Ye==="large",[`${at}-rtl`]:nt==="rtl",[`${at}-borderless`]:!Fe},!Ne&&(0,te.Z)(at,Ae),lt==null?void 0:lt.input,(ye=rt==null?void 0:rt.classNames)===null||ye===void 0?void 0:ye.input,Et)}),classes:{affixWrapper:x()({[`${at}-affix-wrapper-sm`]:Ye==="small",[`${at}-affix-wrapper-lg`]:Ye==="large",[`${at}-affix-wrapper-rtl`]:nt==="rtl",[`${at}-affix-wrapper-borderless`]:!Fe},(0,te.Z)(`${at}-affix-wrapper`,Ae,He),Et),wrapper:x()({[`${at}-group-rtl`]:nt==="rtl"},Et),group:x()({[`${at}-group-wrapper-sm`]:Ye==="small",[`${at}-group-wrapper-lg`]:Ye==="large",[`${at}-group-wrapper-rtl`]:nt==="rtl",[`${at}-group-wrapper-disabled`]:de},(0,te.Z)(`${at}-group-wrapper`,Ae,He),Et)}})))})},96330:function(tn,Kt,me){"use strict";var Oe=me(16646),Je=me(94184),x=me.n(Je),Te=me(64701),ve=me(67294),ie=me(9708),te=me(53124),ae=me(98866),ne=me(98675),oe=me(65223),he=me(82586),re=me(47673),se=function(fe,pe){var le={};for(var Se in fe)Object.prototype.hasOwnProperty.call(fe,Se)&&pe.indexOf(Se)<0&&(le[Se]=fe[Se]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Se=Object.getOwnPropertySymbols(fe);xe<Se.length;xe++)pe.indexOf(Se[xe])<0&&Object.prototype.propertyIsEnumerable.call(fe,Se[xe])&&(le[Se[xe]]=fe[Se[xe]]);return le};const ce=(0,ve.forwardRef)((fe,pe)=>{const{prefixCls:le,bordered:Se=!0,size:xe,disabled:ge,status:Me,allowClear:ye,showCount:be,classNames:Fe,rootClassName:ke,className:De}=fe,Le=se(fe,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ie,direction:Be}=ve.useContext(te.E_),Ue=(0,ne.Z)(xe),_e=ve.useContext(ae.Z),We=ge!=null?ge:_e,{status:Ze,hasFeedback:et,feedbackIcon:it}=ve.useContext(oe.aM),pt=(0,ie.F)(Ze,Me),Ge=ve.useRef(null);ve.useImperativeHandle(pe,()=>{var nt;return{resizableTextArea:(nt=Ge.current)===null||nt===void 0?void 0:nt.resizableTextArea,focus:rt=>{var at,gt;(0,he.n)((gt=(at=Ge.current)===null||at===void 0?void 0:at.resizableTextArea)===null||gt===void 0?void 0:gt.textArea,rt)},blur:()=>{var rt;return(rt=Ge.current)===null||rt===void 0?void 0:rt.blur()}}});const Xe=Ie("input",le);let lt;typeof ye=="object"&&(ye!=null&&ye.clearIcon)?lt=ye:ye&&(lt={clearIcon:ve.createElement(Oe.Z,null)});const[dt,st]=(0,re.ZP)(Xe);return dt(ve.createElement(Te.default,Object.assign({},Le,{disabled:We,allowClear:lt,className:x()(De,ke),classes:{affixWrapper:x()(`${Xe}-textarea-affix-wrapper`,{[`${Xe}-affix-wrapper-rtl`]:Be==="rtl",[`${Xe}-affix-wrapper-borderless`]:!Se,[`${Xe}-affix-wrapper-sm`]:Ue==="small",[`${Xe}-affix-wrapper-lg`]:Ue==="large",[`${Xe}-textarea-show-count`]:be},(0,ie.Z)(`${Xe}-affix-wrapper`,pt),st)},classNames:Object.assign(Object.assign({},Fe),{textarea:x()({[`${Xe}-borderless`]:!Se,[`${Xe}-sm`]:Ue==="small",[`${Xe}-lg`]:Ue==="large"},(0,ie.Z)(Xe,pt),st,Fe==null?void 0:Fe.textarea)}),prefixCls:Xe,suffix:et&&ve.createElement("span",{className:`${Xe}-textarea-suffix`},it),showCount:be,ref:Ge})))});Kt.Z=ce},72922:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Je}});var Oe=me(67294);function Je(x,Te){const ve=(0,Oe.useRef)([]),ie=()=>{ve.current.push(setTimeout(()=>{var te,ae,ne,oe;!((te=x.current)===null||te===void 0)&&te.input&&((ae=x.current)===null||ae===void 0?void 0:ae.input.getAttribute("type"))==="password"&&(!((ne=x.current)===null||ne===void 0)&&ne.input.hasAttribute("value"))&&((oe=x.current)===null||oe===void 0||oe.input.removeAttribute("value"))}))};return(0,Oe.useEffect)(()=>(Te&&ie(),()=>ve.current.forEach(te=>{te&&clearTimeout(te)})),[]),ie}},69677:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return Ue}});var Oe=me(94184),Je=me.n(Oe),x=me(67294),Te=me(53124),ve=me(65223),ie=me(47673),ae=_e=>{const{getPrefixCls:We,direction:Ze}=(0,x.useContext)(Te.E_),{prefixCls:et,className:it}=_e,pt=We("input-group",et),Ge=We("input"),[Xe,lt]=(0,ie.ZP)(Ge),dt=Je()(pt,{[`${pt}-lg`]:_e.size==="large",[`${pt}-sm`]:_e.size==="small",[`${pt}-compact`]:_e.compact,[`${pt}-rtl`]:Ze==="rtl"},lt,it),st=(0,x.useContext)(ve.aM),nt=(0,x.useMemo)(()=>Object.assign(Object.assign({},st),{isFormItemInput:!1}),[st]);return Xe(x.createElement("span",{className:dt,style:_e.style,onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onFocus:_e.onFocus,onBlur:_e.onBlur},x.createElement(ve.aM.Provider,{value:nt},_e.children)))},ne=me(82586),oe=me(63237),he=me(99569),re=me(10366),se=me(17799),ce=me(72922),fe=function(_e,We){var Ze={};for(var et in _e)Object.prototype.hasOwnProperty.call(_e,et)&&We.indexOf(et)<0&&(Ze[et]=_e[et]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,et=Object.getOwnPropertySymbols(_e);it<et.length;it++)We.indexOf(et[it])<0&&Object.prototype.propertyIsEnumerable.call(_e,et[it])&&(Ze[et[it]]=_e[et[it]]);return Ze};const pe=_e=>_e?x.createElement(he.Z,null):x.createElement(oe.Z,null),le={click:"onClick",hover:"onMouseOver"};var xe=x.forwardRef((_e,We)=>{const{visibilityToggle:Ze=!0}=_e,et=typeof Ze=="object"&&Ze.visible!==void 0,[it,pt]=(0,x.useState)(()=>et?Ze.visible:!1),Ge=(0,x.useRef)(null);x.useEffect(()=>{et&&pt(Ze.visible)},[et,Ze]);const Xe=(0,ce.Z)(Ge),lt=()=>{const{disabled:de}=_e;de||(it&&Xe(),pt(Ce=>{var He;const je=!Ce;return typeof Ze=="object"&&((He=Ze.onVisibleChange)===null||He===void 0||He.call(Ze,je)),je}))},dt=de=>{const{action:Ce="click",iconRender:He=pe}=_e,je=le[Ce]||"",Ae=He(it),Ne={[je]:lt,className:`${de}-icon`,key:"passwordIcon",onMouseDown:ze=>{ze.preventDefault()},onMouseUp:ze=>{ze.preventDefault()}};return x.cloneElement(x.isValidElement(Ae)?Ae:x.createElement("span",null,Ae),Ne)},{className:st,prefixCls:nt,inputPrefixCls:rt,size:at}=_e,gt=fe(_e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:vt}=x.useContext(Te.E_),Et=vt("input",rt),At=vt("input-password",nt),ut=Ze&&dt(At),Ye=Je()(At,st,{[`${At}-${at}`]:!!at}),Ve=Object.assign(Object.assign({},(0,re.Z)(gt,["suffix","iconRender","visibilityToggle"])),{type:it?"text":"password",className:Ye,prefixCls:Et,suffix:ut});return at&&(Ve.size=at),x.createElement(ne.Z,Object.assign({ref:(0,se.sQ)(We,Ge)},Ve))}),ge=me(72395),Me=me(96159),ye=me(71577),be=me(98675),Fe=me(4173),ke=function(_e,We){var Ze={};for(var et in _e)Object.prototype.hasOwnProperty.call(_e,et)&&We.indexOf(et)<0&&(Ze[et]=_e[et]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,et=Object.getOwnPropertySymbols(_e);it<et.length;it++)We.indexOf(et[it])<0&&Object.prototype.propertyIsEnumerable.call(_e,et[it])&&(Ze[et[it]]=_e[et[it]]);return Ze},Le=x.forwardRef((_e,We)=>{const{prefixCls:Ze,inputPrefixCls:et,className:it,size:pt,suffix:Ge,enterButton:Xe=!1,addonAfter:lt,loading:dt,disabled:st,onSearch:nt,onChange:rt,onCompositionStart:at,onCompositionEnd:gt}=_e,vt=ke(_e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Et,direction:At}=x.useContext(Te.E_),ut=x.useRef(!1),Ye=Et("input-search",Ze),Ve=Et("input",et),{compactSize:de}=(0,Fe.ri)(Ye,At),Ce=(0,be.Z)(Qt=>{var Zt;return(Zt=pt!=null?pt:de)!==null&&Zt!==void 0?Zt:Qt}),He=x.useRef(null),je=Qt=>{Qt&&Qt.target&&Qt.type==="click"&&nt&&nt(Qt.target.value,Qt,{source:"clear"}),rt&&rt(Qt)},Ae=Qt=>{var Zt;document.activeElement===((Zt=He.current)===null||Zt===void 0?void 0:Zt.input)&&Qt.preventDefault()},Ne=Qt=>{var Zt,bn;nt&&nt((bn=(Zt=He.current)===null||Zt===void 0?void 0:Zt.input)===null||bn===void 0?void 0:bn.value,Qt,{source:"input"})},ze=Qt=>{ut.current||dt||Ne(Qt)},Qe=typeof Xe=="boolean"?x.createElement(ge.Z,null):null,ot=`${Ye}-button`;let mt;const Ot=Xe||{},xt=Ot.type&&Ot.type.__ANT_BUTTON===!0;xt||Ot.type==="button"?mt=(0,Me.Tm)(Ot,Object.assign({onMouseDown:Ae,onClick:Qt=>{var Zt,bn;(bn=(Zt=Ot==null?void 0:Ot.props)===null||Zt===void 0?void 0:Zt.onClick)===null||bn===void 0||bn.call(Zt,Qt),Ne(Qt)},key:"enterButton"},xt?{className:ot,size:Ce}:{})):mt=x.createElement(ye.ZP,{className:ot,type:Xe?"primary":void 0,size:Ce,disabled:st,key:"enterButton",onMouseDown:Ae,onClick:Ne,loading:dt,icon:Qe},Xe),lt&&(mt=[mt,(0,Me.Tm)(lt,{key:"addonAfter"})]);const Ut=Je()(Ye,{[`${Ye}-rtl`]:At==="rtl",[`${Ye}-${Ce}`]:!!Ce,[`${Ye}-with-button`]:!!Xe},it),xn=Qt=>{ut.current=!0,at==null||at(Qt)},Ft=Qt=>{ut.current=!1,gt==null||gt(Qt)};return x.createElement(ne.Z,Object.assign({ref:(0,se.sQ)(He,We),onPressEnter:ze},vt,{size:Ce,onCompositionStart:xn,onCompositionEnd:Ft,prefixCls:Ve,addonAfter:mt,suffix:Ge,onChange:je,className:Ut,disabled:st}))}),Ie=me(96330);const Be=ne.Z;Be.Group=ae,Be.Search=Le,Be.TextArea=Ie.Z,Be.Password=xe;var Ue=Be},47673:function(tn,Kt,me){"use strict";me.d(Kt,{M1:function(){return te},TM:function(){return Me},Xy:function(){return ae},bi:function(){return he},e5:function(){return ge},ik:function(){return re},nz:function(){return ve},pU:function(){return ie},s7:function(){return se},x0:function(){return oe}});var Oe=me(14747),Je=me(80110),x=me(45503),Te=me(67968);const ve=ye=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:ye,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ie=ye=>({borderColor:ye.hoverBorderColor}),te=ye=>({borderColor:ye.activeBorderColor,boxShadow:ye.activeShadow,outline:0}),ae=ye=>({color:ye.colorTextDisabled,backgroundColor:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ie((0,x.TS)(ye,{hoverBorderColor:ye.colorBorder})))}),ne=ye=>{const{paddingBlockLG:be,fontSizeLG:Fe,lineHeightLG:ke,borderRadiusLG:De,paddingInlineLG:Le}=ye;return{padding:`${be}px ${Le}px`,fontSize:Fe,lineHeight:ke,borderRadius:De}},oe=ye=>({padding:`${ye.paddingBlockSM}px ${ye.paddingInlineSM}px`,borderRadius:ye.borderRadiusSM}),he=(ye,be)=>{const{componentCls:Fe,colorError:ke,colorWarning:De,errorActiveShadow:Le,warningActiveShadow:Ie,colorErrorBorderHover:Be,colorWarningBorderHover:Ue}=ye;return{[`&-status-error:not(${be}-disabled):not(${be}-borderless)${be}`]:{borderColor:ke,"&:hover":{borderColor:Be},"&:focus, &-focused":Object.assign({},te((0,x.TS)(ye,{activeBorderColor:ke,activeShadow:Le}))),[`${Fe}-prefix, ${Fe}-suffix`]:{color:ke}},[`&-status-warning:not(${be}-disabled):not(${be}-borderless)${be}`]:{borderColor:De,"&:hover":{borderColor:Ue},"&:focus, &-focused":Object.assign({},te((0,x.TS)(ye,{activeBorderColor:De,activeShadow:Ie}))),[`${Fe}-prefix, ${Fe}-suffix`]:{color:De}}}},re=ye=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ye.paddingBlock}px ${ye.paddingInline}px`,color:ye.colorText,fontSize:ye.fontSize,lineHeight:ye.lineHeight,backgroundColor:ye.colorBgContainer,backgroundImage:"none",borderWidth:ye.lineWidth,borderStyle:ye.lineType,borderColor:ye.colorBorder,borderRadius:ye.borderRadius,transition:`all ${ye.motionDurationMid}`},ve(ye.colorTextPlaceholder)),{"&:hover":Object.assign({},ie(ye)),"&:focus, &-focused":Object.assign({},te(ye)),"&-disabled, &[disabled]":Object.assign({},ae(ye)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:ye.controlHeight,lineHeight:ye.lineHeight,verticalAlign:"bottom",transition:`all ${ye.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},ne(ye)),"&-sm":Object.assign({},oe(ye)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),se=ye=>{const{componentCls:be,antCls:Fe}=ye;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:ye.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${be}, &-lg > ${be}-group-addon`]:Object.assign({},ne(ye)),[`&-sm ${be}, &-sm > ${be}-group-addon`]:Object.assign({},oe(ye)),[`&-lg ${Fe}-select-single ${Fe}-select-selector`]:{height:ye.controlHeightLG},[`&-sm ${Fe}-select-single ${Fe}-select-selector`]:{height:ye.controlHeightSM},[`> ${be}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${be}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ye.paddingInline}px`,color:ye.colorText,fontWeight:"normal",fontSize:ye.fontSize,textAlign:"center",backgroundColor:ye.colorFillAlter,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadius,transition:`all ${ye.motionDurationSlow}`,lineHeight:1,[`${Fe}-select`]:{margin:`-${ye.paddingBlock+1}px -${ye.paddingInline}px`,[`&${Fe}-select-single:not(${Fe}-select-customize-input)`]:{[`${Fe}-select-selector`]:{backgroundColor:"inherit",border:`${ye.lineWidth}px ${ye.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Fe}-select-selector`]:{color:ye.colorPrimary}}},[`${Fe}-cascader-picker`]:{margin:`-9px -${ye.paddingInline}px`,backgroundColor:"transparent",[`${Fe}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${be}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${be}-search-with-button &`]:{zIndex:0}}},[`> ${be}:first-child, ${be}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Fe}-select ${Fe}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${be}-affix-wrapper`]:{[`&:not(:first-child) ${be}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${be}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${be}:last-child, ${be}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Fe}-select ${Fe}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${be}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${be}-search &`]:{borderStartStartRadius:ye.borderRadius,borderEndStartRadius:ye.borderRadius}},[`&:not(:first-child), ${be}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${be}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,Oe.dF)()),{[`${be}-group-addon, ${be}-group-wrap, > ${be}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:ye.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${be}-affix-wrapper,
|
|
|
& > ${be}-number-affix-wrapper,
|
|
|
& > ${Fe}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-ye.lineWidth,borderInlineEndWidth:ye.lineWidth},[`${be}`]:{float:"none"},[`& > ${Fe}-select > ${Fe}-select-selector,
|
|
|
& > ${Fe}-select-auto-complete ${be},
|
|
|
& > ${Fe}-cascader-picker ${be},
|
|
|
& > ${be}-group-wrapper ${be}`]:{borderInlineEndWidth:ye.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Fe}-select-focused`]:{zIndex:1},[`& > ${Fe}-select > ${Fe}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Fe}-select:first-child > ${Fe}-select-selector,
|
|
|
& > ${Fe}-select-auto-complete:first-child ${be},
|
|
|
& > ${Fe}-cascader-picker:first-child ${be}`]:{borderStartStartRadius:ye.borderRadius,borderEndStartRadius:ye.borderRadius},[`& > *:last-child,
|
|
|
& > ${Fe}-select:last-child > ${Fe}-select-selector,
|
|
|
& > ${Fe}-cascader-picker:last-child ${be},
|
|
|
& > ${Fe}-cascader-picker-focused:last-child ${be}`]:{borderInlineEndWidth:ye.lineWidth,borderStartEndRadius:ye.borderRadius,borderEndEndRadius:ye.borderRadius},[`& > ${Fe}-select-auto-complete ${be}`]:{verticalAlign:"top"},[`${be}-group-wrapper + ${be}-group-wrapper`]:{marginInlineStart:-ye.lineWidth,[`${be}-affix-wrapper`]:{borderRadius:0}},[`${be}-group-wrapper:not(:last-child)`]:{[`&${be}-search > ${be}-group`]:{[`& > ${be}-group-addon > ${be}-search-button`]:{borderRadius:0},[`& > ${be}`]:{borderStartStartRadius:ye.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ye.borderRadius}}}})}},ce=ye=>{const{componentCls:be,controlHeightSM:Fe,lineWidth:ke}=ye,Le=(Fe-ke*2-16)/2;return{[be]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Oe.Wf)(ye)),re(ye)),he(ye,be)),{'&[type="color"]':{height:ye.controlHeight,[`&${be}-lg`]:{height:ye.controlHeightLG},[`&${be}-sm`]:{height:Fe,paddingTop:Le,paddingBottom:Le}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},fe=ye=>{const{componentCls:be}=ye;return{[`${be}-clear-icon`]:{margin:0,color:ye.colorTextQuaternary,fontSize:ye.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${ye.motionDurationSlow}`,"&:hover":{color:ye.colorTextTertiary},"&:active":{color:ye.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ye.inputAffixPadding}px`}}}},pe=ye=>{const{componentCls:be,inputAffixPadding:Fe,colorTextDescription:ke,motionDurationSlow:De,colorIcon:Le,colorIconHover:Ie,iconCls:Be}=ye;return{[`${be}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},re(ye)),{display:"inline-flex",[`&:not(${be}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ie(ye)),{zIndex:1,[`${be}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${be}[disabled]`]:{background:"transparent"}},[`> input${be}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${be}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:ye.paddingXS}},"&-show-count-suffix":{color:ke},"&-show-count-has-suffix":{marginInlineEnd:ye.paddingXXS},"&-prefix":{marginInlineEnd:Fe},"&-suffix":{marginInlineStart:Fe}}}),fe(ye)),{[`${Be}${be}-password-icon`]:{color:Le,cursor:"pointer",transition:`all ${De}`,"&:hover":{color:Ie}}}),he(ye,`${be}-affix-wrapper`))}},le=ye=>{const{componentCls:be,colorError:Fe,colorWarning:ke,borderRadiusLG:De,borderRadiusSM:Le}=ye;return{[`${be}-group`]:Object.assign(Object.assign(Object.assign({},(0,Oe.Wf)(ye)),se(ye)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${be}-group-addon`]:{borderRadius:De,fontSize:ye.fontSizeLG}},"&-sm":{[`${be}-group-addon`]:{borderRadius:Le}},"&-status-error":{[`${be}-group-addon`]:{color:Fe,borderColor:Fe}},"&-status-warning":{[`${be}-group-addon`]:{color:ke,borderColor:ke}},"&-disabled":{[`${be}-group-addon`]:Object.assign({},ae(ye))},[`&:not(${be}-compact-first-item):not(${be}-compact-last-item)${be}-compact-item`]:{[`${be}, ${be}-group-addon`]:{borderRadius:0}},[`&:not(${be}-compact-last-item)${be}-compact-first-item`]:{[`${be}, ${be}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${be}-compact-first-item)${be}-compact-last-item`]:{[`${be}, ${be}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Se=ye=>{const{componentCls:be,antCls:Fe}=ye,ke=`${be}-search`;return{[ke]:{[`${be}`]:{"&:hover, &:focus":{borderColor:ye.colorPrimaryHover,[`+ ${be}-group-addon ${ke}-button:not(${Fe}-btn-primary)`]:{borderInlineStartColor:ye.colorPrimaryHover}}},[`${be}-affix-wrapper`]:{borderRadius:0},[`${be}-lg`]:{lineHeight:ye.lineHeightLG-2e-4},[`> ${be}-group`]:{[`> ${be}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${ke}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:ye.borderRadius,borderEndEndRadius:ye.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${ke}-button:not(${Fe}-btn-primary)`]:{color:ye.colorTextDescription,"&:hover":{color:ye.colorPrimaryHover},"&:active":{color:ye.colorPrimaryActive},[`&${Fe}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${ke}-button`]:{height:ye.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${ke}-button`]:{height:ye.controlHeightLG},[`&-small ${ke}-button`]:{height:ye.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${be}-compact-item`]:{[`&:not(${be}-compact-last-item)`]:{[`${be}-group-addon`]:{[`${be}-search-button`]:{marginInlineEnd:-ye.lineWidth,borderRadius:0}}},[`&:not(${be}-compact-first-item)`]:{[`${be},${be}-affix-wrapper`]:{borderRadius:0}},[`> ${be}-group-addon ${be}-search-button,
|
|
|
> ${be},
|
|
|
${be}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${be}-affix-wrapper-focused`]:{zIndex:2}}}}},xe=ye=>{const{componentCls:be,paddingLG:Fe}=ye,ke=`${be}-textarea`;return{[ke]:{position:"relative","&-show-count":{[`> ${be}`]:{height:"100%"},[`${be}-data-count`]:{position:"absolute",bottom:-ye.fontSize*ye.lineHeight,insetInlineEnd:0,color:ye.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${be}`]:{paddingInlineEnd:Fe}},[`&-affix-wrapper${ke}-has-feedback`]:{[`${be}`]:{paddingInlineEnd:Fe}},[`&-affix-wrapper${be}-affix-wrapper`]:{padding:0,[`> textarea${be}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${be}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${be}-clear-icon`]:{position:"absolute",insetInlineEnd:ye.paddingXS,insetBlockStart:ye.paddingXS},[`${ke}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ye.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ge(ye){return(0,x.TS)(ye,{inputAffixPadding:ye.paddingXXS})}const Me=ye=>{const{controlHeight:be,fontSize:Fe,lineHeight:ke,lineWidth:De,controlHeightSM:Le,controlHeightLG:Ie,fontSizeLG:Be,lineHeightLG:Ue,paddingSM:_e,controlPaddingHorizontalSM:We,controlPaddingHorizontal:Ze,colorFillAlter:et,colorPrimaryHover:it,controlOutlineWidth:pt,controlOutline:Ge,colorErrorOutline:Xe,colorWarningOutline:lt}=ye;return{paddingBlock:Math.max(Math.round((be-Fe*ke)/2*10)/10-De,3),paddingBlockSM:Math.max(Math.round((Le-Fe*ke)/2*10)/10-De,0),paddingBlockLG:Math.ceil((Ie-Be*Ue)/2*10)/10-De,paddingInline:_e-De,paddingInlineSM:We-De,paddingInlineLG:Ze-De,addonBg:et,activeBorderColor:it,hoverBorderColor:it,activeShadow:`0 0 0 ${pt}px ${Ge}`,errorActiveShadow:`0 0 0 ${pt}px ${Xe}`,warningActiveShadow:`0 0 0 ${pt}px ${lt}`}};Kt.ZP=(0,Te.Z)("Input",ye=>{const be=(0,x.TS)(ye,ge(ye));return[ce(be),xe(be),pe(be),le(be),Se(be),(0,Je.c)(be)]},Me)},71322:function(tn,Kt,me){"use strict";me.d(Kt,{D:function(){return xe},Z:function(){return ye}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(Fe,ke){return Je.createElement(ve.Z,(0,Oe.Z)({},Fe,{ref:ke,icon:Te}))},te=Je.forwardRef(ie),ae=me(22751),ne=me(91034),oe=me(94184),he=me.n(oe),re=me(10366),ce=be=>!isNaN(parseFloat(be))&&isFinite(be),fe=me(53124),pe=me(84321),le=function(be,Fe){var ke={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Fe.indexOf(De)<0&&(ke[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,De=Object.getOwnPropertySymbols(be);Le<De.length;Le++)Fe.indexOf(De[Le])<0&&Object.prototype.propertyIsEnumerable.call(be,De[Le])&&(ke[De[Le]]=be[De[Le]]);return ke};const Se={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},xe=Je.createContext({}),ge=(()=>{let be=0;return function(){let Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return be+=1,`${Fe}${be}`}})();var ye=Je.forwardRef((be,Fe)=>{const{prefixCls:ke,className:De,trigger:Le,children:Ie,defaultCollapsed:Be=!1,theme:Ue="dark",style:_e={},collapsible:We=!1,reverseArrow:Ze=!1,width:et=200,collapsedWidth:it=80,zeroWidthTriggerStyle:pt,breakpoint:Ge,onCollapse:Xe,onBreakpoint:lt}=be,dt=le(be,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:st}=(0,Je.useContext)(pe.Gs),[nt,rt]=(0,Je.useState)("collapsed"in be?be.collapsed:Be),[at,gt]=(0,Je.useState)(!1);(0,Je.useEffect)(()=>{"collapsed"in be&&rt(be.collapsed)},[be.collapsed]);const vt=(de,Ce)=>{"collapsed"in be||rt(de),Xe==null||Xe(de,Ce)},Et=(0,Je.useRef)();Et.current=de=>{gt(de.matches),lt==null||lt(de.matches),nt!==de.matches&&vt(de.matches,"responsive")},(0,Je.useEffect)(()=>{function de(He){return Et.current(He)}let Ce;if(typeof window!="undefined"){const{matchMedia:He}=window;if(He&&Ge&&Ge in Se){Ce=He(`(max-width: ${Se[Ge]})`);try{Ce.addEventListener("change",de)}catch(je){Ce.addListener(de)}de(Ce)}}return()=>{try{Ce==null||Ce.removeEventListener("change",de)}catch(He){Ce==null||Ce.removeListener(de)}}},[Ge]),(0,Je.useEffect)(()=>{const de=ge("ant-sider-");return st.addSider(de),()=>st.removeSider(de)},[]);const At=()=>{vt(!nt,"clickTrigger")},{getPrefixCls:ut}=(0,Je.useContext)(fe.E_),Ye=()=>{const de=ut("layout-sider",ke),Ce=(0,re.Z)(dt,["collapsed"]),He=nt?it:et,je=ce(He)?`${He}px`:String(He),Ae=parseFloat(String(it||0))===0?Je.createElement("span",{onClick:At,className:he()(`${de}-zero-width-trigger`,`${de}-zero-width-trigger-${Ze?"right":"left"}`),style:pt},Le||Je.createElement(te,null)):null,Qe={expanded:Ze?Je.createElement(ne.Z,null):Je.createElement(ae.Z,null),collapsed:Ze?Je.createElement(ae.Z,null):Je.createElement(ne.Z,null)}[nt?"collapsed":"expanded"],ot=Le!==null?Ae||Je.createElement("div",{className:`${de}-trigger`,onClick:At,style:{width:je}},Le||Qe):null,mt=Object.assign(Object.assign({},_e),{flex:`0 0 ${je}`,maxWidth:je,minWidth:je,width:je}),Ot=he()(de,`${de}-${Ue}`,{[`${de}-collapsed`]:!!nt,[`${de}-has-trigger`]:We&&Le!==null&&!Ae,[`${de}-below`]:!!at,[`${de}-zero-width`]:parseFloat(je)===0},De);return Je.createElement("aside",Object.assign({className:Ot},Ce,{style:mt,ref:Fe}),Je.createElement("div",{className:`${de}-children`},Ie),We||at&&Ae?ot:null)},Ve=Je.useMemo(()=>({siderCollapsed:nt}),[nt]);return Je.createElement(xe.Provider,{value:Ve},Ye())})},84321:function(tn,Kt,me){"use strict";me.d(Kt,{VY:function(){return ge},$_:function(){return xe},h4:function(){return Se},Gs:function(){return se},ZP:function(){return Me}});var Oe=me(74902),Je=me(94184),x=me.n(Je),Te=me(10366),ve=me(67294),ie=me(53124),te=me(67968),ne=ye=>{const{componentCls:be,bodyBg:Fe,lightSiderBg:ke,lightTriggerBg:De,lightTriggerColor:Le}=ye;return{[`${be}-sider-light`]:{background:ke,[`${be}-sider-trigger`]:{color:Le,background:De},[`${be}-sider-zero-width-trigger`]:{color:Le,background:De,border:`1px solid ${Fe}`,borderInlineStart:0}}}};const oe=ye=>{const{antCls:be,componentCls:Fe,colorText:ke,triggerColor:De,footerBg:Le,triggerBg:Ie,headerHeight:Be,headerPadding:Ue,headerColor:_e,footerPadding:We,triggerHeight:Ze,zeroTriggerHeight:et,zeroTriggerWidth:it,motionDurationMid:pt,motionDurationSlow:Ge,fontSize:Xe,borderRadius:lt,bodyBg:dt,headerBg:st,siderBg:nt}=ye;return{[Fe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:dt,"&, *":{boxSizing:"border-box"},[`&${Fe}-has-sider`]:{flexDirection:"row",[`> ${Fe}, > ${Fe}-content`]:{width:0}},[`${Fe}-header, &${Fe}-footer`]:{flex:"0 0 auto"},[`${Fe}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${pt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${be}-menu${be}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ze},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ze,color:De,lineHeight:`${Ze}px`,textAlign:"center",background:Ie,cursor:"pointer",transition:`all ${pt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Be,insetInlineEnd:-it,zIndex:1,width:it,height:et,color:De,fontSize:ye.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:lt,borderEndEndRadius:lt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ge} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ge}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-it,borderStartStartRadius:lt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:lt}}}}},ne(ye)),{"&-rtl":{direction:"rtl"}}),[`${Fe}-header`]:{height:Be,padding:Ue,color:_e,lineHeight:`${Be}px`,background:st,[`${be}-menu`]:{lineHeight:"inherit"}},[`${Fe}-footer`]:{padding:We,color:ke,fontSize:Xe,background:Le},[`${Fe}-content`]:{flex:"auto",minHeight:0}}};var he=(0,te.Z)("Layout",ye=>[oe(ye)],ye=>{const{colorBgLayout:be,controlHeight:Fe,controlHeightLG:ke,colorText:De,controlHeightSM:Le,marginXXS:Ie,colorTextLightSolid:Be,colorBgContainer:Ue}=ye,_e=ke*1.25;return{colorBgHeader:"#001529",colorBgBody:be,colorBgTrigger:"#002140",bodyBg:be,headerBg:"#001529",headerHeight:Fe*2,headerPadding:`0 ${_e}px`,headerColor:De,footerPadding:`${Le}px ${_e}px`,footerBg:be,siderBg:"#001529",triggerHeight:ke+Ie*2,triggerBg:"#002140",triggerColor:Be,zeroTriggerWidth:ke,zeroTriggerHeight:ke,lightSiderBg:Ue,lightTriggerBg:Ue,lightTriggerColor:De}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),re=function(ye,be){var Fe={};for(var ke in ye)Object.prototype.hasOwnProperty.call(ye,ke)&&be.indexOf(ke)<0&&(Fe[ke]=ye[ke]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ke=Object.getOwnPropertySymbols(ye);De<ke.length;De++)be.indexOf(ke[De])<0&&Object.prototype.propertyIsEnumerable.call(ye,ke[De])&&(Fe[ke[De]]=ye[ke[De]]);return Fe};const se=ve.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ce(ye){let{suffixCls:be,tagName:Fe,displayName:ke}=ye;return De=>ve.forwardRef((Ie,Be)=>ve.createElement(De,Object.assign({ref:Be,suffixCls:be,tagName:Fe},Ie)))}const fe=ve.forwardRef((ye,be)=>{const{prefixCls:Fe,suffixCls:ke,className:De,tagName:Le}=ye,Ie=re(ye,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Be}=ve.useContext(ie.E_),Ue=Be("layout",Fe),[_e,We]=he(Ue),Ze=ke?`${Ue}-${ke}`:Ue;return _e(ve.createElement(Le,Object.assign({className:x()(Fe||Ze,De,We),ref:be},Ie)))}),pe=ve.forwardRef((ye,be)=>{const{direction:Fe}=ve.useContext(ie.E_),[ke,De]=ve.useState([]),{prefixCls:Le,className:Ie,rootClassName:Be,children:Ue,hasSider:_e,tagName:We,style:Ze}=ye,et=re(ye,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),it=(0,Te.Z)(et,["suffixCls"]),{getPrefixCls:pt,layout:Ge}=ve.useContext(ie.E_),Xe=pt("layout",Le),[lt,dt]=he(Xe),st=x()(Xe,{[`${Xe}-has-sider`]:typeof _e=="boolean"?_e:ke.length>0,[`${Xe}-rtl`]:Fe==="rtl"},Ge==null?void 0:Ge.className,Ie,Be,dt),nt=ve.useMemo(()=>({siderHook:{addSider:rt=>{De(at=>[].concat((0,Oe.Z)(at),[rt]))},removeSider:rt=>{De(at=>at.filter(gt=>gt!==rt))}}}),[]);return lt(ve.createElement(se.Provider,{value:nt},ve.createElement(We,Object.assign({ref:be,className:st,style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),Ze)},it),Ue)))}),le=ce({tagName:"div",displayName:"Layout"})(pe),Se=ce({suffixCls:"header",tagName:"header",displayName:"Header"})(fe),xe=ce({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(fe),ge=ce({suffixCls:"content",tagName:"main",displayName:"Content"})(fe);var Me=le},76529:function(tn,Kt,me){"use strict";me.d(Kt,{J:function(){return ie}});var Oe=me(67294),Je=me(4173),x=me(60276),Te=function(te,ae){var ne={};for(var oe in te)Object.prototype.hasOwnProperty.call(te,oe)&&ae.indexOf(oe)<0&&(ne[oe]=te[oe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,oe=Object.getOwnPropertySymbols(te);he<oe.length;he++)ae.indexOf(oe[he])<0&&Object.prototype.propertyIsEnumerable.call(te,oe[he])&&(ne[oe[he]]=te[oe[he]]);return ne};const ve=Oe.createContext(null),ie=Oe.forwardRef((te,ae)=>{const{children:ne}=te,oe=Te(te,["children"]),he=Oe.useContext(ve),re=Oe.useMemo(()=>Object.assign(Object.assign({},he),oe),[he,oe.prefixCls,oe.mode,oe.selectable]);return Oe.createElement(ve.Provider,{value:re},Oe.createElement(Je.BR,null,(0,x.supportNodeRef)(ne)?Oe.cloneElement(ne,{ref:ae}):ne))});Kt.Z=ve},68508:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return de}});var Oe=me(78595),Je=me(67294),x=me(71322),Te=me(94184),ve=me.n(Te),ie=me(53124),te=function(Ce,He){var je={};for(var Ae in Ce)Object.prototype.hasOwnProperty.call(Ce,Ae)&&He.indexOf(Ae)<0&&(je[Ae]=Ce[Ae]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ae=Object.getOwnPropertySymbols(Ce);Ne<Ae.length;Ne++)He.indexOf(Ae[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ae[Ne])&&(je[Ae[Ne]]=Ce[Ae[Ne]]);return je},ne=Ce=>{const{prefixCls:He,className:je,dashed:Ae}=Ce,Ne=te(Ce,["prefixCls","className","dashed"]),{getPrefixCls:ze}=Je.useContext(ie.E_),Qe=ze("menu",He),ot=ve()({[`${Qe}-item-divider-dashed`]:!!Ae},je);return Je.createElement(Oe.iz,Object.assign({className:ot},Ne))},oe=me(37419),he=me(10366),re=me(83062),se=me(96159),fe=(0,Je.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),le=Ce=>{var He;const{className:je,children:Ae,icon:Ne,title:ze,danger:Qe}=Ce,{prefixCls:ot,firstLevel:mt,direction:Ot,disableMenuItemTitleTooltip:xt,inlineCollapsed:Ut}=Je.useContext(fe),xn=zt=>{const sn=Je.createElement("span",{className:`${ot}-title-content`},Ae);return(!Ne||(0,se.l$)(Ae)&&Ae.type==="span")&&Ae&&zt&&mt&&typeof Ae=="string"?Je.createElement("div",{className:`${ot}-inline-collapsed-noicon`},Ae.charAt(0)):sn},{siderCollapsed:Ft}=Je.useContext(x.D);let Qt=ze;typeof ze=="undefined"?Qt=mt?Ae:"":ze===!1&&(Qt="");const Zt={title:Qt};!Ft&&!Ut&&(Zt.title=null,Zt.open=!1);const bn=(0,oe.Z)(Ae).length;let Pt=Je.createElement(Oe.ck,Object.assign({},(0,he.Z)(Ce,["title","icon","danger"]),{className:ve()({[`${ot}-item-danger`]:Qe,[`${ot}-item-only-child`]:(Ne?bn+1:bn)===1},je),title:typeof ze=="string"?ze:void 0}),(0,se.Tm)(Ne,{className:ve()((0,se.l$)(Ne)?(He=Ne.props)===null||He===void 0?void 0:He.className:"",`${ot}-item-icon`)}),xn(Ut));return xt||(Pt=Je.createElement(re.Z,Object.assign({},Zt,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${ot}-inline-collapsed-tooltip`}),Pt)),Pt},xe=Ce=>{var He;const{popupClassName:je,icon:Ae,title:Ne,theme:ze}=Ce,Qe=Je.useContext(fe),{prefixCls:ot,inlineCollapsed:mt,theme:Ot}=Qe,xt=(0,Oe.Xl)();let Ut;if(!Ae)Ut=mt&&!xt.length&&Ne&&typeof Ne=="string"?Je.createElement("div",{className:`${ot}-inline-collapsed-noicon`},Ne.charAt(0)):Je.createElement("span",{className:`${ot}-title-content`},Ne);else{const Ft=(0,se.l$)(Ne)&&Ne.type==="span";Ut=Je.createElement(Je.Fragment,null,(0,se.Tm)(Ae,{className:ve()((0,se.l$)(Ae)?(He=Ae.props)===null||He===void 0?void 0:He.className:"",`${ot}-item-icon`)}),Ft?Ne:Je.createElement("span",{className:`${ot}-title-content`},Ne))}const xn=Je.useMemo(()=>Object.assign(Object.assign({},Qe),{firstLevel:!1}),[Qe]);return Je.createElement(fe.Provider,{value:xn},Je.createElement(Oe.Wd,Object.assign({},(0,he.Z)(Ce,["icon"]),{title:Ut,popupClassName:ve()(ot,je,`${ot}-${ze||Ot}`)})))},ge=me(25877),Me=me(60276),ye=me(33603),be=me(76529),Fe=function(Ce,He){var je={};for(var Ae in Ce)Object.prototype.hasOwnProperty.call(Ce,Ae)&&He.indexOf(Ae)<0&&(je[Ae]=Ce[Ae]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ae=Object.getOwnPropertySymbols(Ce);Ne<Ae.length;Ne++)He.indexOf(Ae[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ae[Ne])&&(je[Ae[Ne]]=Ce[Ae[Ne]]);return je};function ke(Ce){return(Ce||[]).map((He,je)=>{if(He&&typeof He=="object"){const Ae=He,{label:Ne,children:ze,key:Qe,type:ot}=Ae,mt=Fe(Ae,["label","children","key","type"]),Ot=Qe!=null?Qe:`tmp-${je}`;return ze||ot==="group"?ot==="group"?Je.createElement(Oe.BW,Object.assign({key:Ot},mt,{title:Ne}),ke(ze)):Je.createElement(xe,Object.assign({key:Ot},mt,{title:Ne}),ke(ze)):ot==="divider"?Je.createElement(ne,Object.assign({key:Ot},mt)):Je.createElement(le,Object.assign({key:Ot},mt),Ne)}return null}).filter(He=>He)}function De(Ce){return Je.useMemo(()=>Ce&&ke(Ce),[Ce])}var Le=me(84780),Ie=me(14747),Be=me(33507),Ue=me(67771),_e=me(50438),We=me(67968),Ze=me(45503),it=Ce=>{const{componentCls:He,motionDurationSlow:je,horizontalLineHeight:Ae,colorSplit:Ne,lineWidth:ze,lineType:Qe,itemPaddingInline:ot}=Ce;return{[`${He}-horizontal`]:{lineHeight:Ae,border:0,borderBottom:`${ze}px ${Qe} ${Ne}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${He}-item, ${He}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ot},[`> ${He}-item:hover,
|
|
|
> ${He}-item-active,
|
|
|
> ${He}-submenu ${He}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${He}-item, ${He}-submenu-title`]:{transition:[`border-color ${je}`,`background ${je}`].join(",")},[`${He}-submenu-arrow`]:{display:"none"}}}},Ge=Ce=>{let{componentCls:He,menuArrowOffset:je}=Ce;return{[`${He}-rtl`]:{direction:"rtl"},[`${He}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${He}-rtl${He}-vertical,
|
|
|
${He}-submenu-rtl ${He}-vertical`]:{[`${He}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${je})`},"&::after":{transform:`rotate(45deg) translateY(${je})`}}}}};const Xe=Ce=>Object.assign({},(0,Ie.oN)(Ce));var dt=(Ce,He)=>{const{componentCls:je,itemColor:Ae,itemSelectedColor:Ne,groupTitleColor:ze,itemBg:Qe,subMenuItemBg:ot,itemSelectedBg:mt,activeBarHeight:Ot,activeBarWidth:xt,activeBarBorderWidth:Ut,motionDurationSlow:xn,motionEaseInOut:Ft,motionEaseOut:Qt,itemPaddingInline:Zt,motionDurationMid:bn,itemHoverColor:Pt,lineType:zt,colorSplit:sn,itemDisabledColor:yn,dangerItemColor:kn,dangerItemHoverColor:Gn,dangerItemSelectedColor:dr,dangerItemActiveBg:Or,dangerItemSelectedBg:zr,itemHoverBg:Hr,itemActiveBg:Dr,menuSubMenuBg:Kr,horizontalItemSelectedColor:Ai,horizontalItemSelectedBg:Di,horizontalItemBorderRadius:Zi,horizontalItemHoverBg:di,popupBg:rn}=Ce;return{[`${je}-${He}, ${je}-${He} > ${je}`]:{color:Ae,background:Qe,[`&${je}-root:focus-visible`]:Object.assign({},Xe(Ce)),[`${je}-item-group-title`]:{color:ze},[`${je}-submenu-selected`]:{[`> ${je}-submenu-title`]:{color:Ne}},[`${je}-item-disabled, ${je}-submenu-disabled`]:{color:`${yn} !important`},[`${je}-item:not(${je}-item-selected):not(${je}-submenu-selected)`]:{[`&:hover, > ${je}-submenu-title:hover`]:{color:Pt}},[`&:not(${je}-horizontal)`]:{[`${je}-item:not(${je}-item-selected)`]:{"&:hover":{backgroundColor:Hr},"&:active":{backgroundColor:Dr}},[`${je}-submenu-title`]:{"&:hover":{backgroundColor:Hr},"&:active":{backgroundColor:Dr}}},[`${je}-item-danger`]:{color:kn,[`&${je}-item:hover`]:{[`&:not(${je}-item-selected):not(${je}-submenu-selected)`]:{color:Gn}},[`&${je}-item:active`]:{background:Or}},[`${je}-item a`]:{"&, &:hover":{color:"inherit"}},[`${je}-item-selected`]:{color:Ne,[`&${je}-item-danger`]:{color:dr},"a, a:hover":{color:"inherit"}},[`& ${je}-item-selected`]:{backgroundColor:mt,[`&${je}-item-danger`]:{backgroundColor:zr}},[`${je}-item, ${je}-submenu-title`]:{[`&:not(${je}-item-disabled):focus-visible`]:Object.assign({},Xe(Ce))},[`&${je}-submenu > ${je}`]:{backgroundColor:Kr},[`&${je}-popup > ${je}`]:{backgroundColor:rn},[`&${je}-horizontal`]:Object.assign(Object.assign({},He==="dark"?{borderBottom:0}:{}),{[`> ${je}-item, > ${je}-submenu`]:{top:Ut,marginTop:-Ut,marginBottom:0,borderRadius:Zi,"&::after":{position:"absolute",insetInline:Zt,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${xn} ${Ft}`,content:'""'},"&:hover, &-active, &-open":{background:di,"&::after":{borderBottomWidth:Ot,borderBottomColor:Ai}},"&-selected":{color:Ai,backgroundColor:Di,"&:hover":{backgroundColor:Di},"&::after":{borderBottomWidth:Ot,borderBottomColor:Ai}}}}),[`&${je}-root`]:{[`&${je}-inline, &${je}-vertical`]:{borderInlineEnd:`${Ut}px ${zt} ${sn}`}},[`&${je}-inline`]:{[`${je}-sub${je}-inline`]:{background:ot},[`${je}-item, ${je}-submenu-title`]:Ut&&xt?{width:`calc(100% + ${Ut}px)`}:{},[`${je}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${xt}px solid ${Ne}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${bn} ${Qt}`,`opacity ${bn} ${Qt}`].join(","),content:'""'},[`&${je}-item-danger`]:{"&::after":{borderInlineEndColor:dr}}},[`${je}-selected, ${je}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${bn} ${Ft}`,`opacity ${bn} ${Ft}`].join(",")}}}}}};const st=Ce=>{const{componentCls:He,itemHeight:je,itemMarginInline:Ae,padding:Ne,menuArrowSize:ze,marginXS:Qe,itemMarginBlock:ot}=Ce,mt=Ne+ze+Qe;return{[`${He}-item`]:{position:"relative",overflow:"hidden"},[`${He}-item, ${He}-submenu-title`]:{height:je,lineHeight:`${je}px`,paddingInline:Ne,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ae,marginBlock:ot,width:`calc(100% - ${Ae*2}px)`},[`> ${He}-item,
|
|
|
> ${He}-submenu > ${He}-submenu-title`]:{height:je,lineHeight:`${je}px`},[`${He}-item-group-list ${He}-submenu-title,
|
|
|
${He}-submenu-title`]:{paddingInlineEnd:mt}}};var rt=Ce=>{const{componentCls:He,iconCls:je,itemHeight:Ae,colorTextLightSolid:Ne,dropdownWidth:ze,controlHeightLG:Qe,motionDurationMid:ot,motionEaseOut:mt,paddingXL:Ot,itemMarginInline:xt,fontSizeLG:Ut,motionDurationSlow:xn,paddingXS:Ft,boxShadowSecondary:Qt,collapsedWidth:Zt,collapsedIconSize:bn}=Ce,Pt={height:Ae,lineHeight:`${Ae}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[He]:{"&-inline, &-vertical":Object.assign({[`&${He}-root`]:{boxShadow:"none"}},st(Ce))},[`${He}-submenu-popup`]:{[`${He}-vertical`]:Object.assign(Object.assign({},st(Ce)),{boxShadow:Qt})}},{[`${He}-submenu-popup ${He}-vertical${He}-sub`]:{minWidth:ze,maxHeight:`calc(100vh - ${Qe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${He}-inline`]:{width:"100%",[`&${He}-root`]:{[`${He}-item, ${He}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${xn}`,`background ${xn}`,`padding ${ot} ${mt}`].join(","),[`> ${He}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${He}-sub${He}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${He}-submenu > ${He}-submenu-title`]:Pt,[`& ${He}-item-group-title`]:{paddingInlineStart:Ot}},[`${He}-item`]:Pt}},{[`${He}-inline-collapsed`]:{width:Zt,[`&${He}-root`]:{[`${He}-item, ${He}-submenu ${He}-submenu-title`]:{[`> ${He}-inline-collapsed-noicon`]:{fontSize:Ut,textAlign:"center"}}},[`> ${He}-item,
|
|
|
> ${He}-item-group > ${He}-item-group-list > ${He}-item,
|
|
|
> ${He}-item-group > ${He}-item-group-list > ${He}-submenu > ${He}-submenu-title,
|
|
|
> ${He}-submenu > ${He}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ut/2}px - ${xt}px)`,textOverflow:"clip",[`
|
|
|
${He}-submenu-arrow,
|
|
|
${He}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${He}-item-icon, ${je}`]:{margin:0,fontSize:bn,lineHeight:`${Ae}px`,"+ span":{display:"inline-block",opacity:0}}},[`${He}-item-icon, ${je}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${He}-item-icon, ${je}`]:{display:"none"},"a, a:hover":{color:Ne}},[`${He}-item-group-title`]:Object.assign(Object.assign({},Ie.vS),{paddingInline:Ft})}}]};const at=Ce=>{const{componentCls:He,motionDurationSlow:je,motionDurationMid:Ae,motionEaseInOut:Ne,motionEaseOut:ze,iconCls:Qe,iconSize:ot,iconMarginInlineEnd:mt}=Ce;return{[`${He}-item, ${He}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${je}`,`background ${je}`,`padding ${je} ${Ne}`].join(","),[`${He}-item-icon, ${Qe}`]:{minWidth:ot,fontSize:ot,transition:[`font-size ${Ae} ${ze}`,`margin ${je} ${Ne}`,`color ${je}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${je} ${Ne}`,`margin ${je}`,`color ${je}`].join(",")}},[`${He}-item-icon`]:Object.assign({},(0,Ie.Ro)()),[`&${He}-item-only-child`]:{[`> ${Qe}, > ${He}-item-icon`]:{marginInlineEnd:0}}},[`${He}-item-disabled, ${He}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${He}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},gt=Ce=>{const{componentCls:He,motionDurationSlow:je,motionEaseInOut:Ae,borderRadius:Ne,menuArrowSize:ze,menuArrowOffset:Qe}=Ce;return{[`${He}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ce.margin,width:ze,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${je} ${Ae}, opacity ${je}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ze*.6,height:ze*.15,backgroundColor:"currentcolor",borderRadius:Ne,transition:[`background ${je} ${Ae}`,`transform ${je} ${Ae}`,`top ${je} ${Ae}`,`color ${je} ${Ae}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Qe})`},"&::after":{transform:`rotate(-45deg) translateY(${Qe})`}}}}},vt=Ce=>{const{antCls:He,componentCls:je,fontSize:Ae,motionDurationSlow:Ne,motionDurationMid:ze,motionEaseInOut:Qe,paddingXS:ot,padding:mt,colorSplit:Ot,lineWidth:xt,zIndexPopup:Ut,borderRadiusLG:xn,subMenuItemBorderRadius:Ft,menuArrowSize:Qt,menuArrowOffset:Zt,lineType:bn,menuPanelMaskInset:Pt,groupTitleLineHeight:zt,groupTitleFontSize:sn}=Ce;return[{"":{[`${je}`]:Object.assign(Object.assign({},(0,Ie.dF)()),{"&-hidden":{display:"none"}})},[`${je}-submenu-hidden`]:{display:"none"}},{[je]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ie.Wf)(Ce)),(0,Ie.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ae,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ne} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${je}-item`]:{flex:"none"}},[`${je}-item, ${je}-submenu, ${je}-submenu-title`]:{borderRadius:Ce.itemBorderRadius},[`${je}-item-group-title`]:{padding:`${ot}px ${mt}px`,fontSize:sn,lineHeight:zt,transition:`all ${Ne}`},[`&-horizontal ${je}-submenu`]:{transition:[`border-color ${Ne} ${Qe}`,`background ${Ne} ${Qe}`].join(",")},[`${je}-submenu, ${je}-submenu-inline`]:{transition:[`border-color ${Ne} ${Qe}`,`background ${Ne} ${Qe}`,`padding ${ze} ${Qe}`].join(",")},[`${je}-submenu ${je}-sub`]:{cursor:"initial",transition:[`background ${Ne} ${Qe}`,`padding ${Ne} ${Qe}`].join(",")},[`${je}-title-content`]:{transition:`color ${Ne}`},[`${je}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${je}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:bn,borderWidth:0,borderTopWidth:xt,marginBlock:xt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),at(Ce)),{[`${je}-item-group`]:{[`${je}-item-group-list`]:{margin:0,padding:0,[`${je}-item, ${je}-submenu-title`]:{paddingInline:`${Ae*2}px ${mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ut,borderRadius:xn,boxShadow:"none",transformOrigin:"0 0",[`&${je}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Pt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Pt},"\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:Ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ce.paddingXS},[`> ${je}`]:Object.assign(Object.assign(Object.assign({borderRadius:xn},at(Ce)),gt(Ce)),{[`${je}-item, ${je}-submenu > ${je}-submenu-title`]:{borderRadius:Ft},[`${je}-submenu-title::after`]:{transition:`transform ${Ne} ${Qe}`}})}}),gt(Ce)),{[`&-inline-collapsed ${je}-submenu-arrow,
|
|
|
&-inline ${je}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Zt})`},"&::after":{transform:`rotate(45deg) translateX(-${Zt})`}},[`${je}-submenu-open${je}-submenu-inline > ${je}-submenu-title > ${je}-submenu-arrow`]:{transform:`translateY(-${Qt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Zt})`},"&::before":{transform:`rotate(45deg) translateX(${Zt})`}}})},{[`${He}-layout-header`]:{[je]:{lineHeight:"inherit"}}}]};var Et=(Ce,He)=>(0,We.Z)("Menu",Ae=>{if(He===!1)return[];const{colorBgElevated:Ne,colorPrimary:ze,colorTextLightSolid:Qe,controlHeightLG:ot,fontSize:mt,darkItemColor:Ot,darkDangerItemColor:xt,darkItemBg:Ut,darkSubMenuItemBg:xn,darkItemSelectedColor:Ft,darkItemSelectedBg:Qt,darkDangerItemSelectedBg:Zt,darkItemHoverBg:bn,darkGroupTitleColor:Pt,darkItemHoverColor:zt,darkItemDisabledColor:sn,darkDangerItemHoverColor:yn,darkDangerItemSelectedColor:kn,darkDangerItemActiveBg:Gn}=Ae,dr=mt/7*5,Or=(0,Ze.TS)(Ae,{menuArrowSize:dr,menuHorizontalHeight:ot*1.15,menuArrowOffset:`${dr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ne}),zr=(0,Ze.TS)(Or,{itemColor:Ot,itemHoverColor:zt,groupTitleColor:Pt,itemSelectedColor:Ft,itemBg:Ut,popupBg:Ut,subMenuItemBg:xn,itemActiveBg:"transparent",itemSelectedBg:Qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:bn,itemDisabledColor:sn,dangerItemColor:xt,dangerItemHoverColor:yn,dangerItemSelectedColor:kn,dangerItemActiveBg:Gn,dangerItemSelectedBg:Zt,menuSubMenuBg:xn,horizontalItemSelectedColor:Qe,horizontalItemSelectedBg:ze});return[vt(Or),it(Or),rt(Or),dt(Or,"light"),dt(zr,"dark"),Ge(Or),(0,Be.Z)(Or),(0,Ue.oN)(Or,"slide-up"),(0,Ue.oN)(Or,"slide-down"),(0,_e._y)(Or,"zoom-big")]},Ae=>{const{colorPrimary:Ne,colorError:ze,colorTextDisabled:Qe,colorErrorBg:ot,colorText:mt,colorTextDescription:Ot,colorBgContainer:xt,colorFillAlter:Ut,colorFillContent:xn,lineWidth:Ft,lineWidthBold:Qt,controlItemBgActive:Zt,colorBgTextHover:bn,controlHeightLG:Pt,lineHeight:zt,colorBgElevated:sn,marginXXS:yn,padding:kn,fontSize:Gn,controlHeightSM:dr,fontSizeLG:Or,colorTextLightSolid:zr,colorErrorHover:Hr}=Ae,Dr=new Le.C(zr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ae.zIndexPopupBase+50,radiusItem:Ae.borderRadiusLG,itemBorderRadius:Ae.borderRadiusLG,radiusSubMenuItem:Ae.borderRadiusSM,subMenuItemBorderRadius:Ae.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:Ne,horizontalItemHoverColor:Ne,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Ne,itemSelectedColor:Ne,colorItemTextSelectedHorizontal:Ne,horizontalItemSelectedColor:Ne,colorItemBg:xt,itemBg:xt,colorItemBgHover:bn,itemHoverBg:bn,colorItemBgActive:xn,itemActiveBg:Zt,colorSubItemBg:Ut,subMenuItemBg:Ut,colorItemBgSelected:Zt,itemSelectedBg:Zt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Qt,activeBarHeight:Qt,colorActiveBarBorderSize:Ft,activeBarBorderWidth:Ft,colorItemTextDisabled:Qe,itemDisabledColor:Qe,colorDangerItemText:ze,dangerItemColor:ze,colorDangerItemTextHover:ze,dangerItemHoverColor:ze,colorDangerItemTextSelected:ze,dangerItemSelectedColor:ze,colorDangerItemBgActive:ot,dangerItemActiveBg:ot,colorDangerItemBgSelected:ot,dangerItemSelectedBg:ot,itemMarginInline:Ae.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pt,groupTitleLineHeight:zt,collapsedWidth:Pt*2,popupBg:sn,itemMarginBlock:yn,itemPaddingInline:kn,horizontalLineHeight:`${Pt*1.15}px`,iconSize:Gn,iconMarginInlineEnd:dr-Gn,collapsedIconSize:Or,groupTitleFontSize:Gn,darkItemDisabledColor:new Le.C(zr).setAlpha(.25).toRgbString(),darkItemColor:Dr,darkDangerItemColor:ze,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zr,darkItemSelectedBg:Ne,darkDangerItemSelectedBg:ze,darkItemHoverBg:"transparent",darkGroupTitleColor:Dr,darkItemHoverColor:zr,darkDangerItemHoverColor:Hr,darkDangerItemSelectedColor:zr,darkDangerItemActiveBg:ze}},{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"]]})(Ce),At=function(Ce,He){var je={};for(var Ae in Ce)Object.prototype.hasOwnProperty.call(Ce,Ae)&&He.indexOf(Ae)<0&&(je[Ae]=Ce[Ae]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ae=Object.getOwnPropertySymbols(Ce);Ne<Ae.length;Ne++)He.indexOf(Ae[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ae[Ne])&&(je[Ae[Ne]]=Ce[Ae[Ne]]);return je},Ye=(0,Je.forwardRef)((Ce,He)=>{var je,Ae;const Ne=Je.useContext(be.Z),ze=Ne||{},{getPrefixCls:Qe,getPopupContainer:ot,direction:mt,menu:Ot}=Je.useContext(ie.E_),xt=Qe(),{prefixCls:Ut,className:xn,style:Ft,theme:Qt="light",expandIcon:Zt,_internalDisableMenuItemTitleTooltip:bn,inlineCollapsed:Pt,siderCollapsed:zt,items:sn,children:yn,rootClassName:kn,mode:Gn,selectable:dr,onClick:Or,overflowedIndicatorPopupClassName:zr}=Ce,Hr=At(Ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Dr=(0,he.Z)(Hr,["collapsedWidth"]),Kr=De(sn)||yn;(je=ze.validator)===null||je===void 0||je.call(ze,{mode:Gn});const Ai=(0,Me.useEvent)(function(){var Er;Or==null||Or.apply(void 0,arguments),(Er=ze.onClick)===null||Er===void 0||Er.call(ze)}),Di=ze.mode||Gn,Zi=dr!=null?dr:ze.selectable,di=Je.useMemo(()=>zt!==void 0?zt:Pt,[Pt,zt]),rn={horizontal:{motionName:`${xt}-slide-up`},inline:(0,ye.Z)(xt),other:{motionName:`${xt}-zoom-big`}},zn=Qe("menu",Ut||ze.prefixCls),[fr,lr]=Et(zn,!Ne),Tr=ve()(`${zn}-${Qt}`,Ot==null?void 0:Ot.className,xn);let Pr;if(typeof Zt=="function")Pr=Zt;else if(Zt===null||Zt===!1)Pr=null;else if(ze.expandIcon===null||ze.expandIcon===!1)Pr=null;else{const Er=Zt!=null?Zt:ze.expandIcon;Pr=(0,se.Tm)(Er,{className:ve()(`${zn}-submenu-expand-icon`,(0,se.l$)(Er)?(Ae=Er.props)===null||Ae===void 0?void 0:Ae.className:"")})}const Gr=Je.useMemo(()=>({prefixCls:zn,inlineCollapsed:di||!1,direction:mt,firstLevel:!0,theme:Qt,mode:Di,disableMenuItemTitleTooltip:bn}),[zn,di,mt,bn,Qt]);return fr(Je.createElement(be.Z.Provider,{value:null},Je.createElement(fe.Provider,{value:Gr},Je.createElement(Oe.ZP,Object.assign({getPopupContainer:ot,overflowedIndicator:Je.createElement(ge.Z,null),overflowedIndicatorPopupClassName:ve()(zn,`${zn}-${Qt}`,zr),mode:Di,selectable:Zi,onClick:Ai},Dr,{inlineCollapsed:di,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Ft),className:Tr,prefixCls:zn,direction:mt,defaultMotions:rn,expandIcon:Pr,ref:He,rootClassName:ve()(kn,lr)}),Kr))))});const Ve=(0,Je.forwardRef)((Ce,He)=>{const je=(0,Je.useRef)(null),Ae=Je.useContext(x.D);return(0,Je.useImperativeHandle)(He,()=>({menu:je.current,focus:Ne=>{var ze;(ze=je.current)===null||ze===void 0||ze.focus(Ne)}})),Je.createElement(Ye,Object.assign({ref:je},Ce,Ae))});Ve.Item=le,Ve.SubMenu=xe,Ve.Divider=ne,Ve.ItemGroup=Oe.BW;var de=Ve},86738:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Le}});var Oe=me(87995),Je=me(94184),x=me.n(Je),Te=me(92389),ve=me(5663),ie=me(10366),te=me(67294),ae=me(96159),ne=me(53124),oe=me(55241),he=me(86743),re=me(81643),se=me(71577),ce=me(4026),fe=me(10110),pe=me(24457),le=me(66330),Se=me(67968);const xe=Ie=>{const{componentCls:Be,iconCls:Ue,antCls:_e,zIndexPopup:We,colorText:Ze,colorWarning:et,marginXXS:it,marginXS:pt,fontSize:Ge,fontWeightStrong:Xe,colorTextHeading:lt}=Ie;return{[Be]:{zIndex:We,[`&${_e}-popover`]:{fontSize:Ge},[`${Be}-message`]:{marginBottom:pt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Be}-message-icon ${Ue}`]:{color:et,fontSize:Ge,lineHeight:1,marginInlineEnd:pt},[`${Be}-title`]:{fontWeight:Xe,color:lt,"&:only-child":{fontWeight:"normal"}},[`${Be}-description`]:{marginTop:it,color:Ze}},[`${Be}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:pt}}}}};var ge=(0,Se.Z)("Popconfirm",Ie=>xe(Ie),Ie=>{const{zIndexPopupBase:Be}=Ie;return{zIndexPopup:Be+60}},{resetStyle:!1}),Me=function(Ie,Be){var Ue={};for(var _e in Ie)Object.prototype.hasOwnProperty.call(Ie,_e)&&Be.indexOf(_e)<0&&(Ue[_e]=Ie[_e]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,_e=Object.getOwnPropertySymbols(Ie);We<_e.length;We++)Be.indexOf(_e[We])<0&&Object.prototype.propertyIsEnumerable.call(Ie,_e[We])&&(Ue[_e[We]]=Ie[_e[We]]);return Ue};const ye=Ie=>{const{prefixCls:Be,okButtonProps:Ue,cancelButtonProps:_e,title:We,description:Ze,cancelText:et,okText:it,okType:pt="primary",icon:Ge=te.createElement(Oe.Z,null),showCancel:Xe=!0,close:lt,onConfirm:dt,onCancel:st,onPopupClick:nt}=Ie,{getPrefixCls:rt}=te.useContext(ne.E_),[at]=(0,fe.Z)("Popconfirm",pe.Z.Popconfirm),gt=(0,re.Z)(We),vt=(0,re.Z)(Ze);return te.createElement("div",{className:`${Be}-inner-content`,onClick:nt},te.createElement("div",{className:`${Be}-message`},Ge&&te.createElement("span",{className:`${Be}-message-icon`},Ge),te.createElement("div",{className:`${Be}-message-text`},gt&&te.createElement("div",{className:x()(`${Be}-title`)},gt),vt&&te.createElement("div",{className:`${Be}-description`},vt))),te.createElement("div",{className:`${Be}-buttons`},Xe&&te.createElement(se.ZP,Object.assign({onClick:st,size:"small"},_e),et!=null?et:at==null?void 0:at.cancelText),te.createElement(he.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ce.n)(pt)),Ue),actionFn:dt,close:lt,prefixCls:rt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},it!=null?it:at==null?void 0:at.okText)))};var Fe=Ie=>{const{prefixCls:Be,placement:Ue,className:_e,style:We}=Ie,Ze=Me(Ie,["prefixCls","placement","className","style"]),{getPrefixCls:et}=te.useContext(ne.E_),it=et("popconfirm",Be),[pt]=ge(it);return pt(te.createElement(le.ZP,{placement:Ue,className:x()(it,_e),style:We,content:te.createElement(ye,Object.assign({prefixCls:it},Ze))}))},ke=function(Ie,Be){var Ue={};for(var _e in Ie)Object.prototype.hasOwnProperty.call(Ie,_e)&&Be.indexOf(_e)<0&&(Ue[_e]=Ie[_e]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,_e=Object.getOwnPropertySymbols(Ie);We<_e.length;We++)Be.indexOf(_e[We])<0&&Object.prototype.propertyIsEnumerable.call(Ie,_e[We])&&(Ue[_e[We]]=Ie[_e[We]]);return Ue};const De=te.forwardRef((Ie,Be)=>{const{prefixCls:Ue,placement:_e="top",trigger:We="click",okType:Ze="primary",icon:et=te.createElement(Oe.Z,null),children:it,overlayClassName:pt,onOpenChange:Ge,onVisibleChange:Xe}=Ie,lt=ke(Ie,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:dt}=te.useContext(ne.E_),[st,nt]=(0,ve.Z)(!1,{value:Ie.open,defaultValue:Ie.defaultOpen}),rt=(de,Ce)=>{nt(de,!0),Xe==null||Xe(de),Ge==null||Ge(de,Ce)},at=de=>{rt(!1,de)},gt=de=>{var Ce;return(Ce=Ie.onConfirm)===null||Ce===void 0?void 0:Ce.call(void 0,de)},vt=de=>{var Ce;rt(!1,de),(Ce=Ie.onCancel)===null||Ce===void 0||Ce.call(void 0,de)},Et=de=>{de.keyCode===Te.Z.ESC&&st&&rt(!1,de)},At=de=>{const{disabled:Ce=!1}=Ie;Ce||rt(de)},ut=dt("popconfirm",Ue),Ye=x()(ut,pt),[Ve]=ge(ut);return Ve(te.createElement(oe.Z,Object.assign({},(0,ie.Z)(lt,["title"]),{trigger:We,placement:_e,onOpenChange:At,open:st,ref:Be,overlayClassName:Ye,content:te.createElement(ye,Object.assign({okType:Ze,icon:et},Ie,{prefixCls:ut,close:at,onConfirm:gt,onCancel:vt})),"data-popover-inject":!0}),(0,ae.Tm)(it,{onKeyDown:de=>{var Ce,He;te.isValidElement(it)&&((He=it==null?void 0:(Ce=it.props).onKeyDown)===null||He===void 0||He.call(Ce,de)),Et(de)}})))});De._InternalPanelDoNotUseOrYouWillBeFired=Fe;var Le=De},66330:function(tn,Kt,me){"use strict";me.d(Kt,{t5:function(){return oe}});var Oe=me(94184),Je=me.n(Oe),x=me(92419),Te=me(67294),ve=me(53124),ie=me(81643),te=me(20136),ae=function(re,se){var ce={};for(var fe in re)Object.prototype.hasOwnProperty.call(re,fe)&&se.indexOf(fe)<0&&(ce[fe]=re[fe]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,fe=Object.getOwnPropertySymbols(re);pe<fe.length;pe++)se.indexOf(fe[pe])<0&&Object.prototype.propertyIsEnumerable.call(re,fe[pe])&&(ce[fe[pe]]=re[fe[pe]]);return ce};const ne=(re,se,ce)=>{if(!(!se&&!ce))return Te.createElement(Te.Fragment,null,se&&Te.createElement("div",{className:`${re}-title`},(0,ie.Z)(se)),Te.createElement("div",{className:`${re}-inner-content`},(0,ie.Z)(ce)))},oe=re=>{const{hashId:se,prefixCls:ce,className:fe,style:pe,placement:le="top",title:Se,content:xe,children:ge}=re;return Te.createElement("div",{className:Je()(se,ce,`${ce}-pure`,`${ce}-placement-${le}`,fe),style:pe},Te.createElement("div",{className:`${ce}-arrow`}),Te.createElement(x.G,Object.assign({},re,{className:se,prefixCls:ce}),ge||ne(ce,Se,xe)))},he=re=>{const{prefixCls:se}=re,ce=ae(re,["prefixCls"]),{getPrefixCls:fe}=Te.useContext(ve.E_),pe=fe("popover",se),[le,Se]=(0,te.Z)(pe);return le(Te.createElement(oe,Object.assign({},ce,{prefixCls:pe,hashId:Se})))};Kt.ZP=he},55241:function(tn,Kt,me){"use strict";var Oe=me(94184),Je=me.n(Oe),x=me(67294),Te=me(81643),ve=me(33603),ie=me(53124),te=me(83062),ae=me(66330),ne=me(20136),oe=function(se,ce){var fe={};for(var pe in se)Object.prototype.hasOwnProperty.call(se,pe)&&ce.indexOf(pe)<0&&(fe[pe]=se[pe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,pe=Object.getOwnPropertySymbols(se);le<pe.length;le++)ce.indexOf(pe[le])<0&&Object.prototype.propertyIsEnumerable.call(se,pe[le])&&(fe[pe[le]]=se[pe[le]]);return fe};const he=se=>{let{title:ce,content:fe,prefixCls:pe}=se;return x.createElement(x.Fragment,null,ce&&x.createElement("div",{className:`${pe}-title`},(0,Te.Z)(ce)),x.createElement("div",{className:`${pe}-inner-content`},(0,Te.Z)(fe)))},re=x.forwardRef((se,ce)=>{const{prefixCls:fe,title:pe,content:le,overlayClassName:Se,placement:xe="top",trigger:ge="hover",mouseEnterDelay:Me=.1,mouseLeaveDelay:ye=.1,overlayStyle:be={}}=se,Fe=oe(se,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ke}=x.useContext(ie.E_),De=ke("popover",fe),[Le,Ie]=(0,ne.Z)(De),Be=ke(),Ue=Je()(Se,Ie);return Le(x.createElement(te.Z,Object.assign({placement:xe,trigger:ge,mouseEnterDelay:Me,mouseLeaveDelay:ye,overlayStyle:be},Fe,{prefixCls:De,overlayClassName:Ue,ref:ce,overlay:pe||le?x.createElement(he,{prefixCls:De,title:pe,content:le}):null,transitionName:(0,ve.m)(Be,"zoom-big",Fe.transitionName),"data-popover-inject":!0})))});re._InternalPanelDoNotUseOrYouWillBeFired=ae.ZP,Kt.Z=re},20136:function(tn,Kt,me){"use strict";var Oe=me(14747),Je=me(50438),x=me(97414),Te=me(8796),ve=me(67968),ie=me(45503);const te=oe=>{const{componentCls:he,popoverColor:re,minWidth:se,fontWeightStrong:ce,popoverPadding:fe,boxShadowSecondary:pe,colorTextHeading:le,borderRadiusLG:Se,zIndexPopup:xe,marginXS:ge,colorBgElevated:Me,popoverBg:ye}=oe;return[{[he]:Object.assign(Object.assign({},(0,Oe.Wf)(oe)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:xe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Me,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${he}-content`]:{position:"relative"},[`${he}-inner`]:{backgroundColor:ye,backgroundClip:"padding-box",borderRadius:Se,boxShadow:pe,padding:fe},[`${he}-title`]:{minWidth:se,marginBottom:ge,color:le,fontWeight:ce},[`${he}-inner-content`]:{color:re}})},(0,x.ZP)(oe,{colorBg:"var(--antd-arrow-background-color)"}),{[`${he}-pure`]:{position:"relative",maxWidth:"none",margin:oe.sizePopupArrow,display:"inline-block",[`${he}-content`]:{display:"inline-block"}}}]},ae=oe=>{const{componentCls:he}=oe;return{[he]:Te.i.map(re=>{const se=oe[`${re}6`];return{[`&${he}-${re}`]:{"--antd-arrow-background-color":se,[`${he}-inner`]:{backgroundColor:se},[`${he}-arrow`]:{background:"transparent"}}}})}},ne=oe=>{const{componentCls:he,lineWidth:re,lineType:se,colorSplit:ce,paddingSM:fe,controlHeight:pe,fontSize:le,lineHeight:Se,padding:xe}=oe,ge=pe-Math.round(le*Se),Me=ge/2,ye=ge/2-re,be=xe;return{[he]:{[`${he}-inner`]:{padding:0},[`${he}-title`]:{margin:0,padding:`${Me}px ${be}px ${ye}px`,borderBottom:`${re}px ${se} ${ce}`},[`${he}-inner-content`]:{padding:`${fe}px ${be}px`}}}};Kt.Z=(0,ve.Z)("Popover",oe=>{const{colorBgElevated:he,colorText:re,wireframe:se}=oe,ce=(0,ie.TS)(oe,{popoverPadding:12,popoverBg:he,popoverColor:re});return[te(ce),ae(ce),se&&ne(ce),(0,Je._y)(ce,"zoom-big")]},oe=>({width:177,minWidth:177,zIndexPopup:oe.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return bn}});var Oe=me(67294),Je=me(87725),x=me(18299),Te=me(16646),ve=me(73475),ie=me(94184),te=me.n(ie),ae=me(10366),ne=me(53124),oe=me(87462),he=me(1413),re=me(45987),se={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ce=function(){var zt=(0,Oe.useRef)([]),sn=(0,Oe.useRef)(null);return(0,Oe.useEffect)(function(){var yn=Date.now(),kn=!1;zt.current.forEach(function(Gn){if(Gn){kn=!0;var dr=Gn.style;dr.transitionDuration=".3s, .3s, .3s, .06s",sn.current&&yn-sn.current<100&&(dr.transitionDuration="0s, 0s")}}),kn&&(sn.current=Date.now())}),zt.current},fe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],pe=function(zt){var sn=(0,he.Z)((0,he.Z)({},se),zt),yn=sn.className,kn=sn.percent,Gn=sn.prefixCls,dr=sn.strokeColor,Or=sn.strokeLinecap,zr=sn.strokeWidth,Hr=sn.style,Dr=sn.trailColor,Kr=sn.trailWidth,Ai=sn.transition,Di=(0,re.Z)(sn,fe);delete Di.gapPosition;var Zi=Array.isArray(kn)?kn:[kn],di=Array.isArray(dr)?dr:[dr],rn=ce(),zn=zr/2,fr=100-zr/2,lr="M ".concat(Or==="round"?zn:0,",").concat(zn,`
|
|
|
L `).concat(Or==="round"?fr:100,",").concat(zn),Tr="0 0 100 ".concat(zr),Pr=0;return Oe.createElement("svg",(0,oe.Z)({className:te()("".concat(Gn,"-line"),yn),viewBox:Tr,preserveAspectRatio:"none",style:Hr},Di),Oe.createElement("path",{className:"".concat(Gn,"-line-trail"),d:lr,strokeLinecap:Or,stroke:Dr,strokeWidth:Kr||zr,fillOpacity:"0"}),Zi.map(function(Gr,Er){var Wt=1;switch(Or){case"round":Wt=1-zr/100;break;case"square":Wt=1-zr/2/100;break;default:Wt=1;break}var $t={strokeDasharray:"".concat(Gr*Wt,"px, 100px"),strokeDashoffset:"-".concat(Pr,"px"),transition:Ai||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},cn=di[Er]||di[di.length-1];return Pr+=Gr,Oe.createElement("path",{key:Er,className:"".concat(Gn,"-line-path"),d:lr,strokeLinecap:Or,stroke:cn,strokeWidth:zr,fillOpacity:"0",ref:function(jt){rn[Er]=jt},style:$t})}))},le=pe,Se=me(71002),xe=me(97685),ge=me(98924),Me=0,ye=(0,ge.Z)();function be(){var Pt;return ye?(Pt=Me,Me+=1):Pt="TEST_OR_SSR",Pt}var Fe=function(Pt){var zt=Oe.useState(),sn=(0,xe.Z)(zt,2),yn=sn[0],kn=sn[1];return Oe.useEffect(function(){kn("rc_progress_".concat(be()))},[]),Pt||yn},ke=function(zt){var sn=zt.bg,yn=zt.children;return Oe.createElement("div",{style:{width:"100%",height:"100%",background:sn}},yn)};function De(Pt,zt){return Object.keys(Pt).map(function(sn){var yn=parseFloat(sn),kn="".concat(Math.floor(yn*zt),"%");return"".concat(Pt[sn]," ").concat(kn)})}var Le=Oe.forwardRef(function(Pt,zt){var sn=Pt.prefixCls,yn=Pt.color,kn=Pt.gradientId,Gn=Pt.radius,dr=Pt.style,Or=Pt.ptg,zr=Pt.strokeLinecap,Hr=Pt.strokeWidth,Dr=Pt.size,Kr=Pt.gapDegree,Ai=yn&&(0,Se.Z)(yn)==="object",Di=Ai?"#FFF":void 0,Zi=Dr/2,di=Oe.createElement("circle",{className:"".concat(sn,"-circle-path"),r:Gn,cx:Zi,cy:Zi,stroke:Di,strokeLinecap:zr,strokeWidth:Hr,opacity:Or===0?0:1,style:dr,ref:zt});if(!Ai)return di;var rn="".concat(kn,"-conic"),zn=Kr?"".concat(180+Kr/2,"deg"):"0deg",fr=De(yn,(360-Kr)/360),lr=De(yn,1),Tr="conic-gradient(from ".concat(zn,", ").concat(fr.join(", "),")"),Pr="linear-gradient(to ".concat(Kr?"bottom":"top",", ").concat(lr.join(", "),")");return Oe.createElement(Oe.Fragment,null,Oe.createElement("mask",{id:rn},di),Oe.createElement("foreignObject",{x:0,y:0,width:Dr,height:Dr,mask:"url(#".concat(rn,")")},Oe.createElement(ke,{bg:Pr},Oe.createElement(ke,{bg:Tr}))))}),Ie=Le,Be=100,Ue=function(zt,sn,yn,kn,Gn,dr,Or,zr,Hr,Dr){var Kr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ai=yn/100*360*((360-dr)/360),Di=dr===0?0:{bottom:0,top:180,left:90,right:-90}[Or],Zi=(100-kn)/100*sn;Hr==="round"&&kn!==100&&(Zi+=Dr/2,Zi>=sn&&(Zi=sn-.01));var di=Be/2;return{stroke:typeof zr=="string"?zr:void 0,strokeDasharray:"".concat(sn,"px ").concat(zt),strokeDashoffset:Zi+Kr,transform:"rotate(".concat(Gn+Ai+Di,"deg)"),transformOrigin:"".concat(di,"px ").concat(di,"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}},_e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function We(Pt){var zt=Pt!=null?Pt:[];return Array.isArray(zt)?zt:[zt]}var Ze=function(zt){var sn=(0,he.Z)((0,he.Z)({},se),zt),yn=sn.id,kn=sn.prefixCls,Gn=sn.steps,dr=sn.strokeWidth,Or=sn.trailWidth,zr=sn.gapDegree,Hr=zr===void 0?0:zr,Dr=sn.gapPosition,Kr=sn.trailColor,Ai=sn.strokeLinecap,Di=sn.style,Zi=sn.className,di=sn.strokeColor,rn=sn.percent,zn=(0,re.Z)(sn,_e),fr=Be/2,lr=Fe(yn),Tr="".concat(lr,"-gradient"),Pr=fr-dr/2,Gr=Math.PI*2*Pr,Er=Hr>0?90+Hr/2:-90,Wt=Gr*((360-Hr)/360),$t=(0,Se.Z)(Gn)==="object"?Gn:{count:Gn,space:2},cn=$t.count,Rn=$t.space,jt=We(rn),an=We(di),Tn=an.find(function(Lr){return Lr&&(0,Se.Z)(Lr)==="object"}),vn=Tn&&(0,Se.Z)(Tn)==="object",Bn=vn?"butt":Ai,_n=Ue(Gr,Wt,0,100,Er,Hr,Dr,Kr,Bn,dr),hr=ce(),ei=function(){var Wr=0;return jt.map(function(Vr,nn){var Jt=an[nn]||an[an.length-1],pn=Ue(Gr,Wt,Wr,Vr,Er,Hr,Dr,Jt,Bn,dr);return Wr+=Vr,Oe.createElement(Ie,{key:nn,color:Jt,ptg:Vr,radius:Pr,prefixCls:kn,gradientId:Tr,style:pn,strokeLinecap:Bn,strokeWidth:dr,gapDegree:Hr,ref:function(Ar){hr[nn]=Ar},size:Be})}).reverse()},Ir=function(){var Wr=Math.round(cn*(jt[0]/100)),Vr=100/cn,nn=0;return new Array(cn).fill(null).map(function(Jt,pn){var tr=pn<=Wr-1?an[0]:Kr,Ar=tr&&(0,Se.Z)(tr)==="object"?"url(#".concat(Tr,")"):void 0,jn=Ue(Gr,Wt,nn,Vr,Er,Hr,Dr,tr,"butt",dr,Rn);return nn+=(Wt-jn.strokeDashoffset+Rn)*100/Wt,Oe.createElement("circle",{key:pn,className:"".concat(kn,"-circle-path"),r:Pr,cx:fr,cy:fr,stroke:Ar,strokeWidth:dr,opacity:1,style:jn,ref:function(ir){hr[pn]=ir}})})};return Oe.createElement("svg",(0,oe.Z)({className:te()("".concat(kn,"-circle"),Zi),viewBox:"0 0 ".concat(Be," ").concat(Be),style:Di,id:yn,role:"presentation"},zn),!cn&&Oe.createElement("circle",{className:"".concat(kn,"-circle-trail"),r:Pr,cx:fr,cy:fr,stroke:Kr,strokeLinecap:Bn,strokeWidth:Or||dr,style:_n}),cn?Ir():ei())},et=Ze,it={Line:le,Circle:et},pt=me(83062),Ge=me(16397);function Xe(Pt){return!Pt||Pt<0?0:Pt>100?100:Pt}function lt(Pt){let{success:zt,successPercent:sn}=Pt,yn=sn;return zt&&"progress"in zt&&(yn=zt.progress),zt&&"percent"in zt&&(yn=zt.percent),yn}const dt=Pt=>{let{percent:zt,success:sn,successPercent:yn}=Pt;const kn=Xe(lt({success:sn,successPercent:yn}));return[kn,Xe(Xe(zt)-kn)]},st=Pt=>{let{success:zt={},strokeColor:sn}=Pt;const{strokeColor:yn}=zt;return[yn||Ge.presetPrimaryColors.green,sn||null]},nt=(Pt,zt,sn)=>{var yn,kn,Gn,dr;let Or=-1,zr=-1;if(zt==="step"){const Hr=sn.steps,Dr=sn.strokeWidth;typeof Pt=="string"||typeof Pt=="undefined"?(Or=Pt==="small"?2:14,zr=Dr!=null?Dr:8):typeof Pt=="number"?[Or,zr]=[Pt,Pt]:[Or=14,zr=8]=Pt,Or*=Hr}else if(zt==="line"){const Hr=sn==null?void 0:sn.strokeWidth;typeof Pt=="string"||typeof Pt=="undefined"?zr=Hr||(Pt==="small"?6:8):typeof Pt=="number"?[Or,zr]=[Pt,Pt]:[Or=-1,zr=8]=Pt}else(zt==="circle"||zt==="dashboard")&&(typeof Pt=="string"||typeof Pt=="undefined"?[Or,zr]=Pt==="small"?[60,60]:[120,120]:typeof Pt=="number"?[Or,zr]=[Pt,Pt]:(Or=(kn=(yn=Pt[0])!==null&&yn!==void 0?yn:Pt[1])!==null&&kn!==void 0?kn:120,zr=(dr=(Gn=Pt[0])!==null&&Gn!==void 0?Gn:Pt[1])!==null&&dr!==void 0?dr:120));return[Or,zr]},rt=3,at=Pt=>rt/Pt*100;var vt=Pt=>{const{prefixCls:zt,trailColor:sn=null,strokeLinecap:yn="round",gapPosition:kn,gapDegree:Gn,width:dr=120,type:Or,children:zr,success:Hr,size:Dr=dr}=Pt,[Kr,Ai]=nt(Dr,"circle");let{strokeWidth:Di}=Pt;Di===void 0&&(Di=Math.max(at(Kr),6));const Zi={width:Kr,height:Ai,fontSize:Kr*.15+6},di=Oe.useMemo(()=>{if(Gn||Gn===0)return Gn;if(Or==="dashboard")return 75},[Gn,Or]),rn=kn||Or==="dashboard"&&"bottom"||void 0,zn=Object.prototype.toString.call(Pt.strokeColor)==="[object Object]",fr=st({success:Hr,strokeColor:Pt.strokeColor}),lr=te()(`${zt}-inner`,{[`${zt}-circle-gradient`]:zn}),Tr=Oe.createElement(et,{percent:dt(Pt),strokeWidth:Di,trailWidth:Di,strokeColor:fr,strokeLinecap:yn,trailColor:sn,prefixCls:zt,gapDegree:di,gapPosition:rn});return Oe.createElement("div",{className:lr,style:Zi},Kr<=20?Oe.createElement(pt.Z,{title:zr},Oe.createElement("span",null,Tr)):Oe.createElement(Oe.Fragment,null,Tr,zr))},Et=function(Pt,zt){var sn={};for(var yn in Pt)Object.prototype.hasOwnProperty.call(Pt,yn)&&zt.indexOf(yn)<0&&(sn[yn]=Pt[yn]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,yn=Object.getOwnPropertySymbols(Pt);kn<yn.length;kn++)zt.indexOf(yn[kn])<0&&Object.prototype.propertyIsEnumerable.call(Pt,yn[kn])&&(sn[yn[kn]]=Pt[yn[kn]]);return sn};const At=Pt=>{let zt=[];return Object.keys(Pt).forEach(sn=>{const yn=parseFloat(sn.replace(/%/g,""));isNaN(yn)||zt.push({key:yn,value:Pt[sn]})}),zt=zt.sort((sn,yn)=>sn.key-yn.key),zt.map(sn=>{let{key:yn,value:kn}=sn;return`${kn} ${yn}%`}).join(", ")},ut=(Pt,zt)=>{const{from:sn=Ge.presetPrimaryColors.blue,to:yn=Ge.presetPrimaryColors.blue,direction:kn=zt==="rtl"?"to left":"to right"}=Pt,Gn=Et(Pt,["from","to","direction"]);if(Object.keys(Gn).length!==0){const dr=At(Gn);return{backgroundImage:`linear-gradient(${kn}, ${dr})`}}return{backgroundImage:`linear-gradient(${kn}, ${sn}, ${yn})`}};var Ve=Pt=>{const{prefixCls:zt,direction:sn,percent:yn,size:kn,strokeWidth:Gn,strokeColor:dr,strokeLinecap:Or="round",children:zr,trailColor:Hr=null,success:Dr}=Pt,Kr=dr&&typeof dr!="string"?ut(dr,sn):{backgroundColor:dr},Ai=Or==="square"||Or==="butt"?0:void 0,Di={backgroundColor:Hr||void 0,borderRadius:Ai},Zi=kn!=null?kn:[-1,Gn||(kn==="small"?6:8)],[di,rn]=nt(Zi,"line",{strokeWidth:Gn}),zn=Object.assign({width:`${Xe(yn)}%`,height:rn,borderRadius:Ai},Kr),fr=lt(Pt),lr={width:`${Xe(fr)}%`,height:rn,borderRadius:Ai,backgroundColor:Dr==null?void 0:Dr.strokeColor},Tr={width:di<0?"100%":di,height:rn};return Oe.createElement(Oe.Fragment,null,Oe.createElement("div",{className:`${zt}-outer`,style:Tr},Oe.createElement("div",{className:`${zt}-inner`,style:Di},Oe.createElement("div",{className:`${zt}-bg`,style:zn}),fr!==void 0?Oe.createElement("div",{className:`${zt}-success-bg`,style:lr}):null)),zr)},Ce=Pt=>{const{size:zt,steps:sn,percent:yn=0,strokeWidth:kn=8,strokeColor:Gn,trailColor:dr=null,prefixCls:Or,children:zr}=Pt,Hr=Math.round(sn*(yn/100)),Dr=zt==="small"?2:14,Kr=zt!=null?zt:[Dr,kn],[Ai,Di]=nt(Kr,"step",{steps:sn,strokeWidth:kn}),Zi=Ai/sn,di=new Array(sn);for(let rn=0;rn<sn;rn++){const zn=Array.isArray(Gn)?Gn[rn]:Gn;di[rn]=Oe.createElement("div",{key:rn,className:te()(`${Or}-steps-item`,{[`${Or}-steps-item-active`]:rn<=Hr-1}),style:{backgroundColor:rn<=Hr-1?zn:dr,width:Zi,height:Di}})}return Oe.createElement("div",{className:`${Or}-steps-outer`},di,zr)},He=me(34367),je=me(14747),Ae=me(67968),Ne=me(45503);const ze=Pt=>{const zt=Pt?"100%":"-100%";return new He.Keyframes(`antProgress${Pt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${zt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${zt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Qe=Pt=>{const{componentCls:zt,iconCls:sn}=Pt;return{[zt]:Object.assign(Object.assign({},(0,je.Wf)(Pt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pt.fontSize,marginInlineEnd:Pt.marginXS,marginBottom:Pt.marginXS},[`${zt}-outer`]:{display:"inline-block",width:"100%"},[`&${zt}-show-info`]:{[`${zt}-outer`]:{marginInlineEnd:`calc(-2em - ${Pt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pt.paddingXS}px)`}},[`${zt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pt.remainingColor,borderRadius:Pt.lineBorderRadius},[`${zt}-inner:not(${zt}-circle-gradient)`]:{[`${zt}-circle-path`]:{stroke:Pt.defaultColor}},[`${zt}-success-bg, ${zt}-bg`]:{position:"relative",backgroundColor:Pt.defaultColor,borderRadius:Pt.lineBorderRadius,transition:`all ${Pt.motionDurationSlow} ${Pt.motionEaseInOutCirc}`},[`${zt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pt.colorSuccess},[`${zt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pt.marginXS,color:Pt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[sn]:{fontSize:Pt.fontSize}},[`&${zt}-status-active`]:{[`${zt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pt.colorBgContainer,borderRadius:Pt.lineBorderRadius,opacity:0,animationName:ze(),animationDuration:Pt.progressActiveMotionDuration,animationTimingFunction:Pt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${zt}-rtl${zt}-status-active`]:{[`${zt}-bg::before`]:{animationName:ze(!0)}},[`&${zt}-status-exception`]:{[`${zt}-bg`]:{backgroundColor:Pt.colorError},[`${zt}-text`]:{color:Pt.colorError}},[`&${zt}-status-exception ${zt}-inner:not(${zt}-circle-gradient)`]:{[`${zt}-circle-path`]:{stroke:Pt.colorError}},[`&${zt}-status-success`]:{[`${zt}-bg`]:{backgroundColor:Pt.colorSuccess},[`${zt}-text`]:{color:Pt.colorSuccess}},[`&${zt}-status-success ${zt}-inner:not(${zt}-circle-gradient)`]:{[`${zt}-circle-path`]:{stroke:Pt.colorSuccess}}})}},ot=Pt=>{const{componentCls:zt,iconCls:sn}=Pt;return{[zt]:{[`${zt}-circle-trail`]:{stroke:Pt.remainingColor},[`&${zt}-circle ${zt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${zt}-circle ${zt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pt.circleTextColor,fontSize:Pt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[sn]:{fontSize:`${Pt.fontSize/Pt.fontSizeSM}em`}},[`${zt}-circle&-status-exception`]:{[`${zt}-text`]:{color:Pt.colorError}},[`${zt}-circle&-status-success`]:{[`${zt}-text`]:{color:Pt.colorSuccess}}},[`${zt}-inline-circle`]:{lineHeight:1,[`${zt}-inner`]:{verticalAlign:"bottom"}}}},mt=Pt=>{const{componentCls:zt}=Pt;return{[zt]:{[`${zt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pt.progressStepMinWidth,marginInlineEnd:Pt.progressStepMarginInlineEnd,backgroundColor:Pt.remainingColor,transition:`all ${Pt.motionDurationSlow}`,"&-active":{backgroundColor:Pt.defaultColor}}}}}},Ot=Pt=>{const{componentCls:zt,iconCls:sn}=Pt;return{[zt]:{[`${zt}-small&-line, ${zt}-small&-line ${zt}-text ${sn}`]:{fontSize:Pt.fontSizeSM}}}};var xt=(0,Ae.Z)("Progress",Pt=>{const zt=Pt.marginXXS/2,sn=(0,Ne.TS)(Pt,{progressStepMarginInlineEnd:zt,progressStepMinWidth:zt,progressActiveMotionDuration:"2.4s"});return[Qe(sn),ot(sn),mt(sn),Ot(sn)]},Pt=>({circleTextColor:Pt.colorText,defaultColor:Pt.colorInfo,remainingColor:Pt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ut=function(Pt,zt){var sn={};for(var yn in Pt)Object.prototype.hasOwnProperty.call(Pt,yn)&&zt.indexOf(yn)<0&&(sn[yn]=Pt[yn]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,yn=Object.getOwnPropertySymbols(Pt);kn<yn.length;kn++)zt.indexOf(yn[kn])<0&&Object.prototype.propertyIsEnumerable.call(Pt,yn[kn])&&(sn[yn[kn]]=Pt[yn[kn]]);return sn};const xn=null,Ft=["normal","exception","active","success"];var Zt=Oe.forwardRef((Pt,zt)=>{const{prefixCls:sn,className:yn,rootClassName:kn,steps:Gn,strokeColor:dr,percent:Or=0,size:zr="default",showInfo:Hr=!0,type:Dr="line",status:Kr,format:Ai,style:Di}=Pt,Zi=Ut(Pt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),di=Oe.useMemo(()=>{var jt,an;const Tn=lt(Pt);return parseInt(Tn!==void 0?(jt=Tn!=null?Tn:0)===null||jt===void 0?void 0:jt.toString():(an=Or!=null?Or:0)===null||an===void 0?void 0:an.toString(),10)},[Or,Pt.success,Pt.successPercent]),rn=Oe.useMemo(()=>!Ft.includes(Kr)&&di>=100?"success":Kr||"normal",[Kr,di]),{getPrefixCls:zn,direction:fr,progress:lr}=Oe.useContext(ne.E_),Tr=zn("progress",sn),[Pr,Gr]=xt(Tr),Er=Oe.useMemo(()=>{if(!Hr)return null;const jt=lt(Pt);let an;const Tn=Ai||(Bn=>`${Bn}%`),vn=Dr==="line";return Ai||rn!=="exception"&&rn!=="success"?an=Tn(Xe(Or),Xe(jt)):rn==="exception"?an=vn?Oe.createElement(Te.Z,null):Oe.createElement(ve.Z,null):rn==="success"&&(an=vn?Oe.createElement(Je.Z,null):Oe.createElement(x.Z,null)),Oe.createElement("span",{className:`${Tr}-text`,title:typeof an=="string"?an:void 0},an)},[Hr,Or,di,rn,Dr,Tr,Ai]),Wt=Array.isArray(dr)?dr[0]:dr,$t=typeof dr=="string"||Array.isArray(dr)?dr:void 0;let cn;Dr==="line"?cn=Gn?Oe.createElement(Ce,Object.assign({},Pt,{strokeColor:$t,prefixCls:Tr,steps:Gn}),Er):Oe.createElement(Ve,Object.assign({},Pt,{strokeColor:Wt,prefixCls:Tr,direction:fr}),Er):(Dr==="circle"||Dr==="dashboard")&&(cn=Oe.createElement(vt,Object.assign({},Pt,{strokeColor:Wt,prefixCls:Tr,progressStatus:rn}),Er));const Rn=te()(Tr,`${Tr}-status-${rn}`,`${Tr}-${Dr==="dashboard"&&"circle"||Gn&&"steps"||Dr}`,{[`${Tr}-inline-circle`]:Dr==="circle"&&nt(zr,"circle")[0]<=20,[`${Tr}-show-info`]:Hr,[`${Tr}-${zr}`]:typeof zr=="string",[`${Tr}-rtl`]:fr==="rtl"},lr==null?void 0:lr.className,yn,kn,Gr);return Pr(Oe.createElement("div",Object.assign({ref:zt,style:Object.assign(Object.assign({},lr==null?void 0:lr.style),Di),className:Rn,role:"progressbar","aria-valuenow":di},(0,ae.Z)(Zi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),cn))}),bn=Zt},78045:function(tn,Kt,me){"use strict";me.d(Kt,{ZP:function(){return Ge}});var Oe=me(94184),Je=me.n(Oe),x=me(5663),Te=me(1337),ve=me(67294),ie=me(53124),te=me(98675);const ae=ve.createContext(null),ne=ae.Provider;var oe=ae;const he=ve.createContext(null),re=he.Provider;var se=me(95860),ce=me(17799),fe=me(98866),pe=me(65223),le=me(14747),Se=me(67968),xe=me(45503);const ge=Xe=>{const{componentCls:lt,antCls:dt}=Xe,st=`${lt}-group`;return{[st]:Object.assign(Object.assign({},(0,le.Wf)(Xe)),{display:"inline-block",fontSize:0,[`&${st}-rtl`]:{direction:"rtl"},[`${dt}-badge ${dt}-badge-count`]:{zIndex:1},[`> ${dt}-badge:not(:first-child) > ${dt}-button-wrapper`]:{borderInlineStart:"none"}})}},Me=Xe=>{const{componentCls:lt,wrapperMarginInlineEnd:dt,colorPrimary:st,radioSize:nt,motionDurationSlow:rt,motionDurationMid:at,motionEaseInOutCirc:gt,colorBgContainer:vt,colorBorder:Et,lineWidth:At,dotSize:ut,colorBgContainerDisabled:Ye,colorTextDisabled:Ve,paddingXS:de,dotColorDisabled:Ce,lineType:He,radioDotDisabledSize:je,wireframe:Ae,colorWhite:Ne}=Xe,ze=`${lt}-inner`;return{[`${lt}-wrapper`]:Object.assign(Object.assign({},(0,le.Wf)(Xe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:dt,cursor:"pointer",[`&${lt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Xe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${lt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${At}px ${He} ${st}`,borderRadius:"50%",visibility:"hidden",content:'""'},[lt]:Object.assign(Object.assign({},(0,le.Wf)(Xe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${lt}-wrapper:hover &,
|
|
|
&:hover ${ze}`]:{borderColor:st},[`${lt}-input:focus-visible + ${ze}`]:Object.assign({},(0,le.oN)(Xe)),[`${lt}:hover::after, ${lt}-wrapper:hover &::after`]:{visibility:"visible"},[`${lt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:nt,height:nt,marginBlockStart:nt/-2,marginInlineStart:nt/-2,backgroundColor:Ae?st:Ne,borderBlockStart:0,borderInlineStart:0,borderRadius:nt,transform:"scale(0)",opacity:0,transition:`all ${rt} ${gt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:nt,height:nt,backgroundColor:vt,borderColor:Et,borderStyle:"solid",borderWidth:At,borderRadius:"50%",transition:`all ${at}`},[`${lt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${lt}-checked`]:{[ze]:{borderColor:st,backgroundColor:Ae?vt:st,"&::after":{transform:`scale(${ut/nt})`,opacity:1,transition:`all ${rt} ${gt}`}}},[`${lt}-disabled`]:{cursor:"not-allowed",[ze]:{backgroundColor:Ye,borderColor:Et,cursor:"not-allowed","&::after":{backgroundColor:Ce}},[`${lt}-input`]:{cursor:"not-allowed"},[`${lt}-disabled + span`]:{color:Ve,cursor:"not-allowed"},[`&${lt}-checked`]:{[ze]:{"&::after":{transform:`scale(${je/nt})`}}}},[`span${lt} + *`]:{paddingInlineStart:de,paddingInlineEnd:de}})}},ye=Xe=>{const{buttonColor:lt,controlHeight:dt,componentCls:st,lineWidth:nt,lineType:rt,colorBorder:at,motionDurationSlow:gt,motionDurationMid:vt,buttonPaddingInline:Et,fontSize:At,buttonBg:ut,fontSizeLG:Ye,controlHeightLG:Ve,controlHeightSM:de,paddingXS:Ce,borderRadius:He,borderRadiusSM:je,borderRadiusLG:Ae,buttonCheckedBg:Ne,buttonSolidCheckedColor:ze,colorTextDisabled:Qe,colorBgContainerDisabled:ot,buttonCheckedBgDisabled:mt,buttonCheckedColorDisabled:Ot,colorPrimary:xt,colorPrimaryHover:Ut,colorPrimaryActive:xn,buttonSolidCheckedBg:Ft,buttonSolidCheckedHoverBg:Qt,buttonSolidCheckedActiveBg:Zt}=Xe;return{[`${st}-button-wrapper`]:{position:"relative",display:"inline-block",height:dt,margin:0,paddingInline:Et,paddingBlock:0,color:lt,fontSize:At,lineHeight:`${dt-nt*2}px`,background:ut,border:`${nt}px ${rt} ${at}`,borderBlockStartWidth:nt+.02,borderInlineStartWidth:0,borderInlineEndWidth:nt,cursor:"pointer",transition:[`color ${vt}`,`background ${vt}`,`box-shadow ${vt}`].join(","),a:{color:lt},[`> ${st}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-nt,insetInlineStart:-nt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:nt,paddingInline:0,backgroundColor:at,transition:`background-color ${gt}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt}px ${rt} ${at}`,borderStartStartRadius:He,borderEndStartRadius:He},"&:last-child":{borderStartEndRadius:He,borderEndEndRadius:He},"&:first-child:last-child":{borderRadius:He},[`${st}-group-large &`]:{height:Ve,fontSize:Ye,lineHeight:`${Ve-nt*2}px`,"&:first-child":{borderStartStartRadius:Ae,borderEndStartRadius:Ae},"&:last-child":{borderStartEndRadius:Ae,borderEndEndRadius:Ae}},[`${st}-group-small &`]:{height:de,paddingInline:Ce-nt,paddingBlock:0,lineHeight:`${de-nt*2}px`,"&:first-child":{borderStartStartRadius:je,borderEndStartRadius:je},"&:last-child":{borderStartEndRadius:je,borderEndEndRadius:je}},"&:hover":{position:"relative",color:xt},"&:has(:focus-visible)":Object.assign({},(0,le.oN)(Xe)),[`${st}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${st}-button-wrapper-disabled)`]:{zIndex:1,color:xt,background:Ne,borderColor:xt,"&::before":{backgroundColor:xt},"&:first-child":{borderColor:xt},"&:hover":{color:Ut,borderColor:Ut,"&::before":{backgroundColor:Ut}},"&:active":{color:xn,borderColor:xn,"&::before":{backgroundColor:xn}}},[`${st}-group-solid &-checked:not(${st}-button-wrapper-disabled)`]:{color:ze,background:Ft,borderColor:Ft,"&:hover":{color:ze,background:Qt,borderColor:Qt},"&:active":{color:ze,background:Zt,borderColor:Zt}},"&-disabled":{color:Qe,backgroundColor:ot,borderColor:at,cursor:"not-allowed","&:first-child, &:hover":{color:Qe,backgroundColor:ot,borderColor:at}},[`&-disabled${st}-button-wrapper-checked`]:{color:Ot,backgroundColor:mt,borderColor:at,boxShadow:"none"}}}},be=Xe=>Xe-4*2;var Fe=(0,Se.Z)("Radio",Xe=>{const{controlOutline:lt,controlOutlineWidth:dt,radioSize:st}=Xe,nt=`0 0 0 ${dt}px ${lt}`,rt=nt,at=be(st),gt=(0,xe.TS)(Xe,{radioDotDisabledSize:at,radioFocusShadow:nt,radioButtonFocusShadow:rt});return[ge(gt),Me(gt),ye(gt)]},Xe=>{const{wireframe:lt,padding:dt,marginXS:st,lineWidth:nt,fontSizeLG:rt,colorText:at,colorBgContainer:gt,colorTextDisabled:vt,controlItemBgActiveDisabled:Et,colorTextLightSolid:At,colorPrimary:ut,colorPrimaryHover:Ye,colorPrimaryActive:Ve}=Xe,de=4,Ce=rt,He=lt?be(Ce):Ce-(de+nt)*2;return{radioSize:Ce,dotSize:He,dotColorDisabled:vt,buttonSolidCheckedColor:At,buttonSolidCheckedBg:ut,buttonSolidCheckedHoverBg:Ye,buttonSolidCheckedActiveBg:Ve,buttonBg:gt,buttonCheckedBg:gt,buttonColor:at,buttonCheckedBgDisabled:Et,buttonCheckedColorDisabled:vt,buttonPaddingInline:dt-nt,wrapperMarginInlineEnd:st}}),ke=me(45353),De=me(92429),Le=function(Xe,lt){var dt={};for(var st in Xe)Object.prototype.hasOwnProperty.call(Xe,st)&<.indexOf(st)<0&&(dt[st]=Xe[st]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,st=Object.getOwnPropertySymbols(Xe);nt<st.length;nt++)lt.indexOf(st[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,st[nt])&&(dt[st[nt]]=Xe[st[nt]]);return dt};const Ie=(Xe,lt)=>{var dt,st;const nt=ve.useContext(oe),rt=ve.useContext(he),{getPrefixCls:at,direction:gt,radio:vt}=ve.useContext(ie.E_),Et=ve.useRef(null),At=(0,ce.sQ)(lt,Et),{isFormItemInput:ut}=ve.useContext(pe.aM),Ye=xn=>{var Ft,Qt;(Ft=Xe.onChange)===null||Ft===void 0||Ft.call(Xe,xn),(Qt=nt==null?void 0:nt.onChange)===null||Qt===void 0||Qt.call(nt,xn)},{prefixCls:Ve,className:de,rootClassName:Ce,children:He,style:je}=Xe,Ae=Le(Xe,["prefixCls","className","rootClassName","children","style"]),Ne=at("radio",Ve),ze=((nt==null?void 0:nt.optionType)||rt)==="button",Qe=ze?`${Ne}-button`:Ne,[ot,mt]=Fe(Ne),Ot=Object.assign({},Ae),xt=ve.useContext(fe.Z);nt&&(Ot.name=nt.name,Ot.onChange=Ye,Ot.checked=Xe.value===nt.value,Ot.disabled=(dt=Ot.disabled)!==null&&dt!==void 0?dt:nt.disabled),Ot.disabled=(st=Ot.disabled)!==null&&st!==void 0?st:xt;const Ut=Je()(`${Qe}-wrapper`,{[`${Qe}-wrapper-checked`]:Ot.checked,[`${Qe}-wrapper-disabled`]:Ot.disabled,[`${Qe}-wrapper-rtl`]:gt==="rtl",[`${Qe}-wrapper-in-form-item`]:ut},vt==null?void 0:vt.className,de,Ce,mt);return ot(ve.createElement(ke.Z,{component:"Radio",disabled:Ot.disabled},ve.createElement("label",{className:Ut,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),je),onMouseEnter:Xe.onMouseEnter,onMouseLeave:Xe.onMouseLeave},ve.createElement(se.Z,Object.assign({},Ot,{className:Je()(Ot.className,!ze&&De.A),type:"radio",prefixCls:Qe,ref:At})),He!==void 0?ve.createElement("span",null,He):null)))};var Ue=ve.forwardRef(Ie);const _e=ve.forwardRef((Xe,lt)=>{const{getPrefixCls:dt,direction:st}=ve.useContext(ie.E_),[nt,rt]=(0,x.Z)(Xe.defaultValue,{value:Xe.value}),at=Ft=>{const Qt=nt,Zt=Ft.target.value;"value"in Xe||rt(Zt);const{onChange:bn}=Xe;bn&&Zt!==Qt&&bn(Ft)},{prefixCls:gt,className:vt,rootClassName:Et,options:At,buttonStyle:ut="outline",disabled:Ye,children:Ve,size:de,style:Ce,id:He,onMouseEnter:je,onMouseLeave:Ae,onFocus:Ne,onBlur:ze}=Xe,Qe=dt("radio",gt),ot=`${Qe}-group`,[mt,Ot]=Fe(Qe);let xt=Ve;At&&At.length>0&&(xt=At.map(Ft=>typeof Ft=="string"||typeof Ft=="number"?ve.createElement(Ue,{key:Ft.toString(),prefixCls:Qe,disabled:Ye,value:Ft,checked:nt===Ft},Ft):ve.createElement(Ue,{key:`radio-group-value-options-${Ft.value}`,prefixCls:Qe,disabled:Ft.disabled||Ye,value:Ft.value,checked:nt===Ft.value,title:Ft.title,style:Ft.style},Ft.label)));const Ut=(0,te.Z)(de),xn=Je()(ot,`${ot}-${ut}`,{[`${ot}-${Ut}`]:Ut,[`${ot}-rtl`]:st==="rtl"},vt,Et,Ot);return mt(ve.createElement("div",Object.assign({},(0,Te.Z)(Xe,{aria:!0,data:!0}),{className:xn,style:Ce,onMouseEnter:je,onMouseLeave:Ae,onFocus:Ne,onBlur:ze,id:He,ref:lt}),ve.createElement(ne,{value:{onChange:at,value:nt,disabled:Xe.disabled,name:Xe.name,optionType:Xe.optionType}},xt)))});var We=ve.memo(_e),Ze=function(Xe,lt){var dt={};for(var st in Xe)Object.prototype.hasOwnProperty.call(Xe,st)&<.indexOf(st)<0&&(dt[st]=Xe[st]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,st=Object.getOwnPropertySymbols(Xe);nt<st.length;nt++)lt.indexOf(st[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,st[nt])&&(dt[st[nt]]=Xe[st[nt]]);return dt};const et=(Xe,lt)=>{const{getPrefixCls:dt}=ve.useContext(ie.E_),{prefixCls:st}=Xe,nt=Ze(Xe,["prefixCls"]),rt=dt("radio",st);return ve.createElement(re,{value:"button"},ve.createElement(Ue,Object.assign({prefixCls:rt},nt,{type:"radio",ref:lt})))};var it=ve.forwardRef(et);const pt=Ue;pt.Button=it,pt.Group=We,pt.__ANT_RADIO=!0;var Ge=pt},12604:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Ge}});var Oe=me(87462),Je=me(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Te=x,ve=me(84089),ie=function(lt,dt){return Je.createElement(ve.Z,(0,Oe.Z)({},lt,{ref:dt,icon:Te}))},te=Je.forwardRef(ie),ae=me(94184),ne=me.n(ae),oe=me(4942),he=me(97685),re=me(45987),se=me(21770),ce=me(15105),fe=me(64217);function pe(Xe,lt){var dt=Xe.disabled,st=Xe.prefixCls,nt=Xe.character,rt=Xe.characterRender,at=Xe.index,gt=Xe.count,vt=Xe.value,Et=Xe.allowHalf,At=Xe.focused,ut=Xe.onHover,Ye=Xe.onClick,Ve=function(Qe){ut(Qe,at)},de=function(Qe){Ye(Qe,at)},Ce=function(Qe){Qe.keyCode===ce.Z.ENTER&&Ye(Qe,at)},He=at+1,je=new Set([st]);vt===0&&at===0&&At?je.add("".concat(st,"-focused")):Et&&vt+.5>=He&&vt<He?(je.add("".concat(st,"-half")),je.add("".concat(st,"-active")),At&&je.add("".concat(st,"-focused"))):(He<=vt?je.add("".concat(st,"-full")):je.add("".concat(st,"-zero")),He===vt&&At&&je.add("".concat(st,"-focused")));var Ae=typeof nt=="function"?nt(Xe):nt,Ne=Je.createElement("li",{className:ne()(Array.from(je)),ref:lt},Je.createElement("div",{onClick:dt?null:de,onKeyDown:dt?null:Ce,onMouseMove:dt?null:Ve,role:"radio","aria-checked":vt>at?"true":"false","aria-posinset":at+1,"aria-setsize":gt,tabIndex:dt?-1:0},Je.createElement("div",{className:"".concat(st,"-first")},Ae),Je.createElement("div",{className:"".concat(st,"-second")},Ae)));return rt&&(Ne=rt(Ne,Xe)),Ne}var le=Je.forwardRef(pe);function Se(){var Xe=Je.useRef({});function lt(st){return Xe.current[st]}function dt(st){return function(nt){Xe.current[st]=nt}}return[lt,dt]}function xe(Xe){var lt=Xe.pageXOffset,dt="scrollLeft";if(typeof lt!="number"){var st=Xe.document;lt=st.documentElement[dt],typeof lt!="number"&&(lt=st.body[dt])}return lt}function ge(Xe){var lt,dt,st=Xe.ownerDocument,nt=st.body,rt=st&&st.documentElement,at=Xe.getBoundingClientRect();return lt=at.left,dt=at.top,lt-=rt.clientLeft||nt.clientLeft||0,dt-=rt.clientTop||nt.clientTop||0,{left:lt,top:dt}}function Me(Xe){var lt=ge(Xe),dt=Xe.ownerDocument,st=dt.defaultView||dt.parentWindow;return lt.left+=xe(st),lt.left}var ye=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function be(Xe,lt){var dt,st=Xe.prefixCls,nt=st===void 0?"rc-rate":st,rt=Xe.className,at=Xe.defaultValue,gt=Xe.value,vt=Xe.count,Et=vt===void 0?5:vt,At=Xe.allowHalf,ut=At===void 0?!1:At,Ye=Xe.allowClear,Ve=Ye===void 0?!0:Ye,de=Xe.character,Ce=de===void 0?"\u2605":de,He=Xe.characterRender,je=Xe.disabled,Ae=Xe.direction,Ne=Ae===void 0?"ltr":Ae,ze=Xe.tabIndex,Qe=ze===void 0?0:ze,ot=Xe.autoFocus,mt=Xe.onHoverChange,Ot=Xe.onChange,xt=Xe.onFocus,Ut=Xe.onBlur,xn=Xe.onKeyDown,Ft=Xe.onMouseLeave,Qt=(0,re.Z)(Xe,ye),Zt=Se(),bn=(0,he.Z)(Zt,2),Pt=bn[0],zt=bn[1],sn=Je.useRef(null),yn=function(){if(!je){var vn;(vn=sn.current)===null||vn===void 0||vn.focus()}};Je.useImperativeHandle(lt,function(){return{focus:yn,blur:function(){if(!je){var vn;(vn=sn.current)===null||vn===void 0||vn.blur()}}}});var kn=(0,se.Z)(at||0,{value:gt}),Gn=(0,he.Z)(kn,2),dr=Gn[0],Or=Gn[1],zr=(0,se.Z)(null),Hr=(0,he.Z)(zr,2),Dr=Hr[0],Kr=Hr[1],Ai=function(vn,Bn){var _n=Ne==="rtl",hr=vn+1;if(ut){var ei=Pt(vn),Ir=Me(ei),Lr=ei.clientWidth;(_n&&Bn-Ir>Lr/2||!_n&&Bn-Ir<Lr/2)&&(hr-=.5)}return hr},Di=function(vn){Or(vn),Ot==null||Ot(vn)},Zi=Je.useState(!1),di=(0,he.Z)(Zi,2),rn=di[0],zn=di[1],fr=function(){zn(!0),xt==null||xt()},lr=function(){zn(!1),Ut==null||Ut()},Tr=Je.useState(null),Pr=(0,he.Z)(Tr,2),Gr=Pr[0],Er=Pr[1],Wt=function(vn,Bn){var _n=Ai(Bn,vn.pageX);_n!==Dr&&(Er(_n),Kr(null)),mt==null||mt(_n)},$t=function(vn){je||(Er(null),Kr(null),mt==null||mt(void 0)),vn&&(Ft==null||Ft(vn))},cn=function(vn,Bn){var _n=Ai(Bn,vn.pageX),hr=!1;Ve&&(hr=_n===dr),$t(),Di(hr?0:_n),Kr(hr?_n:null)},Rn=function(vn){var Bn=vn.keyCode,_n=Ne==="rtl",hr=dr;Bn===ce.Z.RIGHT&&hr<Et&&!_n?(ut?hr+=.5:hr+=1,Di(hr),vn.preventDefault()):Bn===ce.Z.LEFT&&hr>0&&!_n||Bn===ce.Z.RIGHT&&hr>0&&_n?(ut?hr-=.5:hr-=1,Di(hr),vn.preventDefault()):Bn===ce.Z.LEFT&&hr<Et&&_n&&(ut?hr+=.5:hr+=1,Di(hr),vn.preventDefault()),xn==null||xn(vn)};Je.useEffect(function(){ot&&!je&&yn()},[]);var jt=new Array(Et).fill(0).map(function(Tn,vn){return Je.createElement(le,{ref:zt(vn),index:vn,count:Et,disabled:je,prefixCls:"".concat(nt,"-star"),allowHalf:ut,value:Gr===null?dr:Gr,onClick:cn,onHover:Wt,key:Tn||vn,character:Ce,characterRender:He,focused:rn})}),an=ne()(nt,rt,(dt={},(0,oe.Z)(dt,"".concat(nt,"-disabled"),je),(0,oe.Z)(dt,"".concat(nt,"-rtl"),Ne==="rtl"),dt));return Je.createElement("ul",(0,Oe.Z)({className:an,onMouseLeave:$t,tabIndex:je?-1:Qe,onFocus:je?null:fr,onBlur:je?null:lr,onKeyDown:je?null:Rn,ref:sn,role:"radiogroup"},(0,fe.Z)(Qt,{aria:!0,data:!0,attr:!0})),jt)}var Fe=Je.forwardRef(be),ke=Fe,De=me(53124),Le=me(83062),Ie=me(14747),Be=me(67968),Ue=me(45503);const _e=Xe=>{const{componentCls:lt}=Xe;return{[`${lt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Xe.marginXS},"> div":{transition:`all ${Xe.motionDurationMid}, outline 0s`,"&:hover":{transform:Xe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Xe.lineWidth}px dashed ${Xe.starColor}`,transform:Xe.starHoverScale}},"&-first, &-second":{color:Xe.starBg,transition:`all ${Xe.motionDurationMid}`,userSelect:"none",[Xe.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${lt}-star-first, &-half ${lt}-star-second`]:{opacity:1},[`&-half ${lt}-star-first, &-full ${lt}-star-second`]:{color:"inherit"}}}},We=Xe=>({[`&-rtl${Xe.componentCls}`]:{direction:"rtl"}}),Ze=Xe=>{const{componentCls:lt}=Xe;return{[lt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ie.Wf)(Xe)),{display:"inline-block",margin:0,padding:0,color:Xe.starColor,fontSize:Xe.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${lt} ${lt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),_e(Xe)),{[`+ ${lt}-text`]:{display:"inline-block",marginInlineStart:Xe.marginXS,fontSize:Xe.fontSize}}),We(Xe))}};var et=(0,Be.Z)("Rate",Xe=>{const lt=(0,Ue.TS)(Xe,{});return[Ze(lt)]},Xe=>({starColor:Xe.yellow6,starSize:Xe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Xe.colorFillContent})),it=function(Xe,lt){var dt={};for(var st in Xe)Object.prototype.hasOwnProperty.call(Xe,st)&<.indexOf(st)<0&&(dt[st]=Xe[st]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,st=Object.getOwnPropertySymbols(Xe);nt<st.length;nt++)lt.indexOf(st[nt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,st[nt])&&(dt[st[nt]]=Xe[st[nt]]);return dt},Ge=Je.forwardRef((Xe,lt)=>{const{prefixCls:dt,className:st,rootClassName:nt,style:rt,tooltips:at,character:gt=Je.createElement(te,null)}=Xe,vt=it(Xe,["prefixCls","className","rootClassName","style","tooltips","character"]),Et=(je,Ae)=>{let{index:Ne}=Ae;return at?Je.createElement(Le.Z,{title:at[Ne]},je):je},{getPrefixCls:At,direction:ut,rate:Ye}=Je.useContext(De.E_),Ve=At("rate",dt),[de,Ce]=et(Ve),He=Object.assign(Object.assign({},Ye==null?void 0:Ye.style),rt);return de(Je.createElement(ke,Object.assign({ref:lt,character:gt,characterRender:Et},vt,{className:ne()(st,nt,Ce,Ye==null?void 0:Ye.className),style:He,prefixCls:Ve,direction:ut})))})},11713:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return wr}});var Oe=me(94184),Je=me.n(Oe),x=me(87462),Te=me(74902),ve=me(4942),ie=me(1413),te=me(97685),ae=me(45987),ne=me(71002),oe=me(67294);function he(kt){var It=oe.useRef();It.current=kt;var qt=oe.useCallback(function(){for(var Yt,En=arguments.length,Hn=new Array(En),Ht=0;Ht<En;Ht++)Hn[Ht]=arguments[Ht];return(Yt=It.current)===null||Yt===void 0?void 0:Yt.call.apply(Yt,[It].concat(Hn))},[]);return qt}function re(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var se=re()?oe.useLayoutEffect:oe.useEffect,ce=se,fe=function(It,qt){var Yt=oe.useRef(!0);se(function(){if(!Yt.current)return It()},qt),se(function(){return Yt.current=!1,function(){Yt.current=!0}},[])};function pe(kt){var It=oe.useRef(!1),qt=oe.useState(kt),Yt=(0,te.Z)(qt,2),En=Yt[0],Hn=Yt[1];oe.useEffect(function(){return It.current=!1,function(){It.current=!0}},[]);function Ht(Vt,Gt){Gt&&It.current||Hn(Vt)}return[En,Ht]}function le(kt){return kt!==void 0}function Se(kt,It){var qt=It||{},Yt=qt.defaultValue,En=qt.value,Hn=qt.onChange,Ht=qt.postState,Vt=pe(function(){return le(En)?En:le(Yt)?typeof Yt=="function"?Yt():Yt:typeof kt=="function"?kt():kt}),Gt=(0,te.Z)(Vt,2),en=Gt[0],Ln=Gt[1],Qn=En!==void 0?En:en,On=Ht?Ht(Qn):Qn,Kn=he(Hn),vr=pe([Qn]),Br=(0,te.Z)(vr,2),Cr=Br[0],sr=Br[1];fe(function(){var Nr=Cr[0];en!==Nr&&Kn(en,Nr)},[Cr]),fe(function(){le(En)||Ln(En)},[En]);var Mr=he(function(Nr,Yr){Ln(Nr,Yr),sr([Qn],Yr)});return[On,Mr]}var xe={};function ge(kt,It){}function Me(kt,It){}function ye(){xe={}}function be(kt,It,qt){!It&&!xe[qt]&&(kt(!1,qt),xe[qt]=!0)}function Fe(kt,It){be(ge,kt,It)}function ke(kt,It){be(Me,kt,It)}var De=Fe,Le=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var kt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(kt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(kt==null?void 0:kt.substr(0,4))},Ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(It){var qt=It.keyCode;if(It.altKey&&!It.ctrlKey||It.metaKey||qt>=Ie.F1&&qt<=Ie.F12)return!1;switch(qt){case Ie.ALT:case Ie.CAPS_LOCK:case Ie.CONTEXT_MENU:case Ie.CTRL:case Ie.DOWN:case Ie.END:case Ie.ESC:case Ie.HOME:case Ie.INSERT:case Ie.LEFT:case Ie.MAC_FF_META:case Ie.META:case Ie.NUMLOCK:case Ie.NUM_CENTER:case Ie.PAGE_DOWN:case Ie.PAGE_UP:case Ie.PAUSE:case Ie.PRINT_SCREEN:case Ie.RIGHT:case Ie.SHIFT:case Ie.UP:case Ie.WIN_KEY:case Ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(It){if(It>=Ie.ZERO&&It<=Ie.NINE||It>=Ie.NUM_ZERO&&It<=Ie.NUM_MULTIPLY||It>=Ie.A&&It<=Ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&It===0)return!0;switch(It){case Ie.SPACE:case Ie.QUESTION_MARK:case Ie.NUM_PLUS:case Ie.NUM_MINUS:case Ie.NUM_PERIOD:case Ie.NUM_DIVISION:case Ie.SEMICOLON:case Ie.DASH:case Ie.EQUALS:case Ie.COMMA:case Ie.PERIOD:case Ie.SLASH:case Ie.APOSTROPHE:case Ie.SINGLE_QUOTE:case Ie.OPEN_SQUARE_BRACKET:case Ie.BACKSLASH:case Ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Be=Ie,Ue=me(47655);function _e(kt,It,qt){var Yt=oe.useRef({});return(!("value"in Yt.current)||qt(Yt.current.condition,It))&&(Yt.current.value=kt(),Yt.current.condition=It),Yt.current.value}function We(kt,It){typeof kt=="function"?kt(It):(0,ne.Z)(kt)==="object"&&kt&&"current"in kt&&(kt.current=It)}function Ze(){for(var kt=arguments.length,It=new Array(kt),qt=0;qt<kt;qt++)It[qt]=arguments[qt];var Yt=It.filter(function(En){return En});return Yt.length<=1?Yt[0]:function(En){It.forEach(function(Hn){We(Hn,En)})}}function et(){for(var kt=arguments.length,It=new Array(kt),qt=0;qt<kt;qt++)It[qt]=arguments[qt];return _e(function(){return Ze.apply(void 0,It)},It,function(Yt,En){return Yt.length===En.length&&Yt.every(function(Hn,Ht){return Hn===En[Ht]})})}function it(kt){var It,qt,Yt=isMemo(kt)?kt.type.type:kt.type;return!(typeof Yt=="function"&&!((It=Yt.prototype)!==null&&It!==void 0&&It.render)||typeof kt=="function"&&!((qt=kt.prototype)!==null&&qt!==void 0&&qt.render))}var pt=function(It){var qt=It.className,Yt=It.customizeIcon,En=It.customizeIconProps,Hn=It.onMouseDown,Ht=It.onClick,Vt=It.children,Gt;return typeof Yt=="function"?Gt=Yt(En):Gt=Yt,oe.createElement("span",{className:qt,onMouseDown:function(Ln){Ln.preventDefault(),Hn&&Hn(Ln)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ht,"aria-hidden":!0},Gt!==void 0?Gt:oe.createElement("span",{className:Je()(qt.split(/\s+/).map(function(en){return"".concat(en,"-icon")}))},Vt))},Ge=pt;function Xe(kt,It,qt,Yt,En){var Hn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ht=arguments.length>6?arguments[6]:void 0,Vt=arguments.length>7?arguments[7]:void 0,Gt=oe.useMemo(function(){if((0,ne.Z)(Yt)==="object")return Yt.clearIcon;if(En)return En},[Yt,En]),en=oe.useMemo(function(){return!!(!Hn&&Yt&&(qt.length||Ht)&&!(Vt==="combobox"&&Ht===""))},[Yt,Hn,qt.length,Ht,Vt]);return{allowClear:en,clearIcon:oe.createElement(Ge,{className:"".concat(kt,"-clear"),onMouseDown:It,customizeIcon:Gt},"\xD7")}}var lt=oe.createContext(null);function dt(){return oe.useContext(lt)}function st(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,It=oe.useState(!1),qt=(0,te.Z)(It,2),Yt=qt[0],En=qt[1],Hn=oe.useRef(null),Ht=function(){window.clearTimeout(Hn.current)};oe.useEffect(function(){return Ht},[]);var Vt=function(en,Ln){Ht(),Hn.current=window.setTimeout(function(){En(en),Ln&&Ln()},kt)};return[Yt,Vt,Ht]}function nt(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,It=oe.useRef(null),qt=oe.useRef(null);oe.useEffect(function(){return function(){window.clearTimeout(qt.current)}},[]);function Yt(En){(En||It.current===null)&&(It.current=En),window.clearTimeout(qt.current),qt.current=window.setTimeout(function(){It.current=null},kt)}return[function(){return It.current},Yt]}function rt(kt,It,qt,Yt){var En=oe.useRef(null);En.current={open:It,triggerOpen:qt,customizedTrigger:Yt},oe.useEffect(function(){function Hn(Ht){var Vt;if(!((Vt=En.current)!==null&&Vt!==void 0&&Vt.customizedTrigger)){var Gt=Ht.target;Gt.shadowRoot&&Ht.composed&&(Gt=Ht.composedPath()[0]||Gt),En.current.open&&kt().filter(function(en){return en}).every(function(en){return!en.contains(Gt)&&en!==Gt})&&En.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Hn),function(){return window.removeEventListener("mousedown",Hn)}},[])}var at=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,gt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,vt="".concat(at," ").concat(gt).split(/[\s\n]+/),Et="aria-",At="data-";function ut(kt,It){return kt.indexOf(It)===0}function Ye(kt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qt;It===!1?qt={aria:!0,data:!0,attr:!0}:It===!0?qt={aria:!0}:qt=(0,ie.Z)({},It);var Yt={};return Object.keys(kt).forEach(function(En){(qt.aria&&(En==="role"||ut(En,Et))||qt.data&&ut(En,At)||qt.attr&&vt.includes(En))&&(Yt[En]=kt[En])}),Yt}var Ve=me(48555),de=me(14075),Ce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],He=void 0;function je(kt,It){var qt=kt.prefixCls,Yt=kt.invalidate,En=kt.item,Hn=kt.renderItem,Ht=kt.responsive,Vt=kt.responsiveDisabled,Gt=kt.registerSize,en=kt.itemKey,Ln=kt.className,Qn=kt.style,On=kt.children,Kn=kt.display,vr=kt.order,Br=kt.component,Cr=Br===void 0?"div":Br,sr=(0,ae.Z)(kt,Ce),Mr=Ht&&!Kn;function Nr(ri){Gt(en,ri)}oe.useEffect(function(){return function(){Nr(null)}},[]);var Yr=Hn&&En!==He?Hn(En):On,Rr;Yt||(Rr={opacity:Mr?0:1,height:Mr?0:He,overflowY:Mr?"hidden":He,order:Ht?vr:He,pointerEvents:Mr?"none":He,position:Mr?"absolute":He});var xr={};Mr&&(xr["aria-hidden"]=!0);var ii=oe.createElement(Cr,(0,x.Z)({className:Je()(!Yt&&qt,Ln),style:(0,ie.Z)((0,ie.Z)({},Rr),Qn)},xr,sr,{ref:It}),Yr);return Ht&&(ii=oe.createElement(Ve.Z,{onResize:function(Fi){var Ui=Fi.offsetWidth;Nr(Ui)},disabled:Vt},ii)),ii}var Ae=oe.forwardRef(je);Ae.displayName="Item";var Ne=Ae,ze=me(77527),Qe=me(73935),ot=me(96523);function mt(kt){if(typeof MessageChannel=="undefined")(0,ot.Z)(kt);else{var It=new MessageChannel;It.port1.onmessage=function(){return kt()},It.port2.postMessage(void 0)}}function Ot(){var kt=oe.useRef(null),It=function(Yt){kt.current||(kt.current=[],mt(function(){(0,Qe.unstable_batchedUpdates)(function(){kt.current.forEach(function(En){En()}),kt.current=null})})),kt.current.push(Yt)};return It}function xt(kt,It){var qt=oe.useState(It),Yt=(0,te.Z)(qt,2),En=Yt[0],Hn=Yt[1],Ht=(0,ze.Z)(function(Vt){kt(function(){Hn(Vt)})});return[En,Ht]}var Ut=oe.createContext(null),xn=["component"],Ft=["className"],Qt=["className"],Zt=function(It,qt){var Yt=oe.useContext(Ut);if(!Yt){var En=It.component,Hn=En===void 0?"div":En,Ht=(0,ae.Z)(It,xn);return oe.createElement(Hn,(0,x.Z)({},Ht,{ref:qt}))}var Vt=Yt.className,Gt=(0,ae.Z)(Yt,Ft),en=It.className,Ln=(0,ae.Z)(It,Qt);return oe.createElement(Ut.Provider,{value:null},oe.createElement(Ne,(0,x.Z)({ref:qt,className:Je()(Vt,en)},Gt,Ln)))},bn=oe.forwardRef(Zt);bn.displayName="RawItem";var Pt=bn,zt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],sn="responsive",yn="invalidate";function kn(kt){return"+ ".concat(kt.length," ...")}function Gn(kt,It){var qt=kt.prefixCls,Yt=qt===void 0?"rc-overflow":qt,En=kt.data,Hn=En===void 0?[]:En,Ht=kt.renderItem,Vt=kt.renderRawItem,Gt=kt.itemKey,en=kt.itemWidth,Ln=en===void 0?10:en,Qn=kt.ssr,On=kt.style,Kn=kt.className,vr=kt.maxCount,Br=kt.renderRest,Cr=kt.renderRawRest,sr=kt.suffix,Mr=kt.component,Nr=Mr===void 0?"div":Mr,Yr=kt.itemComponent,Rr=kt.onVisibleChange,xr=(0,ae.Z)(kt,zt),ii=Qn==="full",ri=Ot(),Fi=xt(ri,null),Ui=(0,te.Z)(Fi,2),aa=Ui[0],ji=Ui[1],zi=aa||0,Mi=xt(ri,new Map),ca=(0,te.Z)(Mi,2),Li=ca[0],li=ca[1],Vi=xt(ri,0),Sa=(0,te.Z)(Vi,2),Ci=Sa[0],Xa=Sa[1],qa=xt(ri,0),Ja=(0,te.Z)(qa,2),Ra=Ja[0],ua=Ja[1],bo=xt(ri,0),Da=(0,te.Z)(bo,2),Ki=Da[0],ja=Da[1],lo=(0,oe.useState)(null),Ka=(0,te.Z)(lo,2),io=Ka[0],pa=Ka[1],po=(0,oe.useState)(null),mo=(0,te.Z)(po,2),fo=mo[0],vo=mo[1],Mo=oe.useMemo(function(){return fo===null&&ii?Number.MAX_SAFE_INTEGER:fo||0},[fo,aa]),Ho=(0,oe.useState)(!1),ho=(0,te.Z)(Ho,2),ko=ho[0],$o=ho[1],Yo="".concat(Yt,"-item"),as=Math.max(Ci,Ra),Bo=vr===sn,wo=Hn.length&&Bo,La=vr===yn,za=wo||typeof vr=="number"&&Hn.length>vr,uo=(0,oe.useMemo)(function(){var Nn=Hn;return wo?aa===null&&ii?Nn=Hn:Nn=Hn.slice(0,Math.min(Hn.length,zi/Ln)):typeof vr=="number"&&(Nn=Hn.slice(0,vr)),Nn},[Hn,Ln,aa,vr,wo]),xo=(0,oe.useMemo)(function(){return wo?Hn.slice(Mo+1):Hn.slice(uo.length)},[Hn,uo,wo,Mo]),Fo=(0,oe.useCallback)(function(Nn,Mn){var nr;return typeof Gt=="function"?Gt(Nn):(nr=Gt&&(Nn==null?void 0:Nn[Gt]))!==null&&nr!==void 0?nr:Mn},[Gt]),es=(0,oe.useCallback)(Ht||function(Nn){return Nn},[Ht]);function ms(Nn,Mn,nr){fo===Nn&&(Mn===void 0||Mn===io)||(vo(Nn),nr||($o(Nn<Hn.length-1),Rr==null||Rr(Nn)),Mn!==void 0&&pa(Mn))}function _s(Nn,Mn){ji(Mn.clientWidth)}function Fs(Nn,Mn){li(function(nr){var rr=new Map(nr);return Mn===null?rr.delete(Nn):rr.set(Nn,Mn),rr})}function os(Nn,Mn){ua(Mn),Xa(Ra)}function Is(Nn,Mn){ja(Mn)}function no(Nn){return Li.get(Fo(uo[Nn],Nn))}(0,de.Z)(function(){if(zi&&typeof as=="number"&&uo){var Nn=Ki,Mn=uo.length,nr=Mn-1;if(!Mn){ms(0,null);return}for(var rr=0;rr<Mn;rr+=1){var gr=no(rr);if(ii&&(gr=gr||0),gr===void 0){ms(rr-1,void 0,!0);break}if(Nn+=gr,nr===0&&Nn<=zi||rr===nr-1&&Nn+no(nr)<=zi){ms(nr,null);break}else if(Nn+as>zi){ms(rr-1,Nn-gr-Ki+Ra);break}}sr&&no(0)+Ki>zi&&pa(null)}},[zi,Li,Ra,Ki,Fo,uo]);var Ea=ko&&!!xo.length,Do={};io!==null&&wo&&(Do={position:"absolute",left:io,top:0});var To={prefixCls:Yo,responsive:wo,component:Yr,invalidate:La},Ct=Vt?function(Nn,Mn){var nr=Fo(Nn,Mn);return oe.createElement(Ut.Provider,{key:nr,value:(0,ie.Z)((0,ie.Z)({},To),{},{order:Mn,item:Nn,itemKey:nr,registerSize:Fs,display:Mn<=Mo})},Vt(Nn,Mn))}:function(Nn,Mn){var nr=Fo(Nn,Mn);return oe.createElement(Ne,(0,x.Z)({},To,{order:Mn,key:nr,item:Nn,renderItem:es,itemKey:nr,registerSize:Fs,display:Mn<=Mo}))},Lt,dn={order:Ea?Mo:Number.MAX_SAFE_INTEGER,className:"".concat(Yo,"-rest"),registerSize:os,display:Ea};if(Cr)Cr&&(Lt=oe.createElement(Ut.Provider,{value:(0,ie.Z)((0,ie.Z)({},To),dn)},Cr(xo)));else{var un=Br||kn;Lt=oe.createElement(Ne,(0,x.Z)({},To,dn),typeof un=="function"?un(xo):un)}var Un=oe.createElement(Nr,(0,x.Z)({className:Je()(!La&&Yt,Kn),style:On,ref:It},xr),uo.map(Ct),za?Lt:null,sr&&oe.createElement(Ne,(0,x.Z)({},To,{responsive:Bo,responsiveDisabled:!wo,order:Mo,className:"".concat(Yo,"-suffix"),registerSize:Is,display:!0,style:Do}),sr));return Bo&&(Un=oe.createElement(Ve.Z,{onResize:_s,disabled:!wo},Un)),Un}var dr=oe.forwardRef(Gn);dr.displayName="Overflow",dr.Item=Pt,dr.RESPONSIVE=sn,dr.INVALIDATE=yn;var Or=dr,zr=Or,Hr=function(It,qt){var Yt,En,Hn=It.prefixCls,Ht=It.id,Vt=It.inputElement,Gt=It.disabled,en=It.tabIndex,Ln=It.autoFocus,Qn=It.autoComplete,On=It.editable,Kn=It.activeDescendantId,vr=It.value,Br=It.maxLength,Cr=It.onKeyDown,sr=It.onMouseDown,Mr=It.onChange,Nr=It.onPaste,Yr=It.onCompositionStart,Rr=It.onCompositionEnd,xr=It.open,ii=It.attrs,ri=Vt||oe.createElement("input",null),Fi=ri,Ui=Fi.ref,aa=Fi.props,ji=aa.onKeyDown,zi=aa.onChange,Mi=aa.onMouseDown,ca=aa.onCompositionStart,Li=aa.onCompositionEnd,li=aa.style;return"maxLength"in ri.props,ri=oe.cloneElement(ri,(0,ie.Z)((0,ie.Z)((0,ie.Z)({type:"search"},aa),{},{id:Ht,ref:Ze(qt,Ui),disabled:Gt,tabIndex:en,autoComplete:Qn||"off",autoFocus:Ln,className:Je()("".concat(Hn,"-selection-search-input"),(Yt=ri)===null||Yt===void 0||(En=Yt.props)===null||En===void 0?void 0:En.className),role:"combobox","aria-label":"Search","aria-expanded":xr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ht,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ht,"_list"),"aria-activedescendant":xr?Kn:void 0},ii),{},{value:On?vr:"",maxLength:Br,readOnly:!On,unselectable:On?null:"on",style:(0,ie.Z)((0,ie.Z)({},li),{},{opacity:On?null:0}),onKeyDown:function(Sa){Cr(Sa),ji&&ji(Sa)},onMouseDown:function(Sa){sr(Sa),Mi&&Mi(Sa)},onChange:function(Sa){Mr(Sa),zi&&zi(Sa)},onCompositionStart:function(Sa){Yr(Sa),ca&&ca(Sa)},onCompositionEnd:function(Sa){Rr(Sa),Li&&Li(Sa)},onPaste:Nr})),ri},Dr=oe.forwardRef(Hr);Dr.displayName="Input";var Kr=Dr;function Ai(kt){return Array.isArray(kt)?kt:kt!==void 0?[kt]:[]}var Di=typeof window!="undefined"&&window.document&&window.document.documentElement,Zi=Di;function di(kt){return kt!=null}function rn(kt){return!kt&&kt!==0}function zn(kt){return["string","number"].includes((0,ne.Z)(kt))}function fr(kt){var It=void 0;return kt&&(zn(kt.title)?It=kt.title.toString():zn(kt.label)&&(It=kt.label.toString())),It}function lr(kt,It){Zi?oe.useLayoutEffect(kt,It):oe.useEffect(kt,It)}function Tr(kt){var It;return(It=kt.key)!==null&&It!==void 0?It:kt.value}var Pr=function(It){It.preventDefault(),It.stopPropagation()},Gr=function(It){var qt=It.id,Yt=It.prefixCls,En=It.values,Hn=It.open,Ht=It.searchValue,Vt=It.autoClearSearchValue,Gt=It.inputRef,en=It.placeholder,Ln=It.disabled,Qn=It.mode,On=It.showSearch,Kn=It.autoFocus,vr=It.autoComplete,Br=It.activeDescendantId,Cr=It.tabIndex,sr=It.removeIcon,Mr=It.maxTagCount,Nr=It.maxTagTextLength,Yr=It.maxTagPlaceholder,Rr=Yr===void 0?function(pa){return"+ ".concat(pa.length," ...")}:Yr,xr=It.tagRender,ii=It.onToggleOpen,ri=It.onRemove,Fi=It.onInputChange,Ui=It.onInputPaste,aa=It.onInputKeyDown,ji=It.onInputMouseDown,zi=It.onInputCompositionStart,Mi=It.onInputCompositionEnd,ca=oe.useRef(null),Li=(0,oe.useState)(0),li=(0,te.Z)(Li,2),Vi=li[0],Sa=li[1],Ci=(0,oe.useState)(!1),Xa=(0,te.Z)(Ci,2),qa=Xa[0],Ja=Xa[1],Ra="".concat(Yt,"-selection"),ua=Hn||Qn==="multiple"&&Vt===!1||Qn==="tags"?Ht:"",bo=Qn==="tags"||Qn==="multiple"&&Vt===!1||On&&(Hn||qa);lr(function(){Sa(ca.current.scrollWidth)},[ua]);function Da(pa,po,mo,fo,vo){return oe.createElement("span",{className:Je()("".concat(Ra,"-item"),(0,ve.Z)({},"".concat(Ra,"-item-disabled"),mo)),title:fr(pa)},oe.createElement("span",{className:"".concat(Ra,"-item-content")},po),fo&&oe.createElement(Ge,{className:"".concat(Ra,"-item-remove"),onMouseDown:Pr,onClick:vo,customizeIcon:sr},"\xD7"))}function Ki(pa,po,mo,fo,vo){var Mo=function(ho){Pr(ho),ii(!Hn)};return oe.createElement("span",{onMouseDown:Mo},xr({label:po,value:pa,disabled:mo,closable:fo,onClose:vo}))}function ja(pa){var po=pa.disabled,mo=pa.label,fo=pa.value,vo=!Ln&&!po,Mo=mo;if(typeof Nr=="number"&&(typeof mo=="string"||typeof mo=="number")){var Ho=String(Mo);Ho.length>Nr&&(Mo="".concat(Ho.slice(0,Nr),"..."))}var ho=function($o){$o&&$o.stopPropagation(),ri(pa)};return typeof xr=="function"?Ki(fo,Mo,po,vo,ho):Da(pa,Mo,po,vo,ho)}function lo(pa){var po=typeof Rr=="function"?Rr(pa):Rr;return Da({title:po},po,!1)}var Ka=oe.createElement("div",{className:"".concat(Ra,"-search"),style:{width:Vi},onFocus:function(){Ja(!0)},onBlur:function(){Ja(!1)}},oe.createElement(Kr,{ref:Gt,open:Hn,prefixCls:Yt,id:qt,inputElement:null,disabled:Ln,autoFocus:Kn,autoComplete:vr,editable:bo,activeDescendantId:Br,value:ua,onKeyDown:aa,onMouseDown:ji,onChange:Fi,onPaste:Ui,onCompositionStart:zi,onCompositionEnd:Mi,tabIndex:Cr,attrs:Ye(It,!0)}),oe.createElement("span",{ref:ca,className:"".concat(Ra,"-search-mirror"),"aria-hidden":!0},ua,"\xA0")),io=oe.createElement(zr,{prefixCls:"".concat(Ra,"-overflow"),data:En,renderItem:ja,renderRest:lo,suffix:Ka,itemKey:Tr,maxCount:Mr});return oe.createElement(oe.Fragment,null,io,!En.length&&!ua&&oe.createElement("span",{className:"".concat(Ra,"-placeholder")},en))},Er=Gr,Wt=function(It){var qt=It.inputElement,Yt=It.prefixCls,En=It.id,Hn=It.inputRef,Ht=It.disabled,Vt=It.autoFocus,Gt=It.autoComplete,en=It.activeDescendantId,Ln=It.mode,Qn=It.open,On=It.values,Kn=It.placeholder,vr=It.tabIndex,Br=It.showSearch,Cr=It.searchValue,sr=It.activeValue,Mr=It.maxLength,Nr=It.onInputKeyDown,Yr=It.onInputMouseDown,Rr=It.onInputChange,xr=It.onInputPaste,ii=It.onInputCompositionStart,ri=It.onInputCompositionEnd,Fi=It.title,Ui=oe.useState(!1),aa=(0,te.Z)(Ui,2),ji=aa[0],zi=aa[1],Mi=Ln==="combobox",ca=Mi||Br,Li=On[0],li=Cr||"";Mi&&sr&&!ji&&(li=sr),oe.useEffect(function(){Mi&&zi(!1)},[Mi,sr]);var Vi=Ln!=="combobox"&&!Qn&&!Br?!1:!!li,Sa=Fi===void 0?fr(Li):Fi,Ci=function(){if(Li)return null;var qa=Vi?{visibility:"hidden"}:void 0;return oe.createElement("span",{className:"".concat(Yt,"-selection-placeholder"),style:qa},Kn)};return oe.createElement(oe.Fragment,null,oe.createElement("span",{className:"".concat(Yt,"-selection-search")},oe.createElement(Kr,{ref:Hn,prefixCls:Yt,id:En,open:Qn,inputElement:qt,disabled:Ht,autoFocus:Vt,autoComplete:Gt,editable:ca,activeDescendantId:en,value:li,onKeyDown:Nr,onMouseDown:Yr,onChange:function(qa){zi(!0),Rr(qa)},onPaste:xr,onCompositionStart:ii,onCompositionEnd:ri,tabIndex:vr,attrs:Ye(It,!0),maxLength:Mi?Mr:void 0})),!Mi&&Li?oe.createElement("span",{className:"".concat(Yt,"-selection-item"),title:Sa,style:Vi?{visibility:"hidden"}:void 0},Li.label):null,Ci())},$t=Wt;function cn(kt){return![Be.ESC,Be.SHIFT,Be.BACKSPACE,Be.TAB,Be.WIN_KEY,Be.ALT,Be.META,Be.WIN_KEY_RIGHT,Be.CTRL,Be.SEMICOLON,Be.EQUALS,Be.CAPS_LOCK,Be.CONTEXT_MENU,Be.F1,Be.F2,Be.F3,Be.F4,Be.F5,Be.F6,Be.F7,Be.F8,Be.F9,Be.F10,Be.F11,Be.F12].includes(kt)}var Rn=function(It,qt){var Yt=(0,oe.useRef)(null),En=(0,oe.useRef)(!1),Hn=It.prefixCls,Ht=It.open,Vt=It.mode,Gt=It.showSearch,en=It.tokenWithEnter,Ln=It.autoClearSearchValue,Qn=It.onSearch,On=It.onSearchSubmit,Kn=It.onToggleOpen,vr=It.onInputKeyDown,Br=It.domRef;oe.useImperativeHandle(qt,function(){return{focus:function(){Yt.current.focus()},blur:function(){Yt.current.blur()}}});var Cr=nt(0),sr=(0,te.Z)(Cr,2),Mr=sr[0],Nr=sr[1],Yr=function(li){var Vi=li.which;(Vi===Be.UP||Vi===Be.DOWN)&&li.preventDefault(),vr&&vr(li),Vi===Be.ENTER&&Vt==="tags"&&!En.current&&!Ht&&(On==null||On(li.target.value)),cn(Vi)&&Kn(!0)},Rr=function(){Nr(!0)},xr=(0,oe.useRef)(null),ii=function(li){Qn(li,!0,En.current)!==!1&&Kn(!0)},ri=function(){En.current=!0},Fi=function(li){En.current=!1,Vt!=="combobox"&&ii(li.target.value)},Ui=function(li){var Vi=li.target.value;if(en&&xr.current&&/[\r\n]/.test(xr.current)){var Sa=xr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Vi=Vi.replace(Sa,xr.current)}xr.current=null,ii(Vi)},aa=function(li){var Vi=li.clipboardData,Sa=Vi.getData("text");xr.current=Sa},ji=function(li){var Vi=li.target;if(Vi!==Yt.current){var Sa=document.body.style.msTouchAction!==void 0;Sa?setTimeout(function(){Yt.current.focus()}):Yt.current.focus()}},zi=function(li){var Vi=Mr();li.target!==Yt.current&&!Vi&&Vt!=="combobox"&&li.preventDefault(),(Vt!=="combobox"&&(!Gt||!Vi)||!Ht)&&(Ht&&Ln!==!1&&Qn("",!0,!1),Kn())},Mi={inputRef:Yt,onInputKeyDown:Yr,onInputMouseDown:Rr,onInputChange:Ui,onInputPaste:aa,onInputCompositionStart:ri,onInputCompositionEnd:Fi},ca=Vt==="multiple"||Vt==="tags"?oe.createElement(Er,(0,x.Z)({},It,Mi)):oe.createElement($t,(0,x.Z)({},It,Mi));return oe.createElement("div",{ref:Br,className:"".concat(Hn,"-selector"),onClick:ji,onMouseDown:zi},ca)},jt=oe.forwardRef(Rn);jt.displayName="Selector";var an=jt,Tn=me(62709),vn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Bn=function(It){var qt=It===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:qt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:qt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:qt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:qt,adjustY:1},htmlRegion:"scroll"}}},_n=function(It,qt){var Yt=It.prefixCls,En=It.disabled,Hn=It.visible,Ht=It.children,Vt=It.popupElement,Gt=It.animation,en=It.transitionName,Ln=It.dropdownStyle,Qn=It.dropdownClassName,On=It.direction,Kn=On===void 0?"ltr":On,vr=It.placement,Br=It.builtinPlacements,Cr=It.dropdownMatchSelectWidth,sr=It.dropdownRender,Mr=It.dropdownAlign,Nr=It.getPopupContainer,Yr=It.empty,Rr=It.getTriggerDOMNode,xr=It.onPopupVisibleChange,ii=It.onPopupMouseEnter,ri=(0,ae.Z)(It,vn),Fi="".concat(Yt,"-dropdown"),Ui=Vt;sr&&(Ui=sr(Vt));var aa=oe.useMemo(function(){return Br||Bn(Cr)},[Br,Cr]),ji=Gt?"".concat(Fi,"-").concat(Gt):en,zi=typeof Cr=="number",Mi=oe.useMemo(function(){return zi?null:Cr===!1?"minWidth":"width"},[Cr,zi]),ca=Ln;zi&&(ca=(0,ie.Z)((0,ie.Z)({},ca),{},{width:Cr}));var Li=oe.useRef(null);return oe.useImperativeHandle(qt,function(){return{getPopupElement:function(){return Li.current}}}),oe.createElement(Tn.Z,(0,x.Z)({},ri,{showAction:xr?["click"]:[],hideAction:xr?["click"]:[],popupPlacement:vr||(Kn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:aa,prefixCls:Fi,popupTransitionName:ji,popup:oe.createElement("div",{ref:Li,onMouseEnter:ii},Ui),stretch:Mi,popupAlign:Mr,popupVisible:Hn,getPopupContainer:Nr,popupClassName:Je()(Qn,(0,ve.Z)({},"".concat(Fi,"-empty"),Yr)),popupStyle:ca,getTriggerDOMNode:Rr,onPopupVisibleChange:xr}),Ht)},hr=oe.forwardRef(_n);hr.displayName="SelectTrigger";var ei=hr,Ir=me(84506);function Lr(kt,It){var qt=kt.key,Yt;return"value"in kt&&(Yt=kt.value),qt!=null?qt:Yt!==void 0?Yt:"rc-index-key-".concat(It)}function Wr(kt,It){var qt=kt||{},Yt=qt.label,En=qt.value,Hn=qt.options,Ht=qt.groupLabel,Vt=Yt||(It?"children":"label");return{label:Vt,value:En||"value",options:Hn||"options",groupLabel:Ht||Vt}}function Vr(kt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qt=It.fieldNames,Yt=It.childrenAsData,En=[],Hn=Wr(qt,!1),Ht=Hn.label,Vt=Hn.value,Gt=Hn.options,en=Hn.groupLabel;function Ln(Qn,On){Qn.forEach(function(Kn){if(On||!(Gt in Kn)){var vr=Kn[Vt];En.push({key:Lr(Kn,En.length),groupOption:On,data:Kn,label:Kn[Ht],value:vr})}else{var Br=Kn[en];Br===void 0&&Yt&&(Br=Kn.label),En.push({key:Lr(Kn,En.length),group:!0,data:Kn,label:Br}),Ln(Kn[Gt],!0)}})}return Ln(kt,!1),En}function nn(kt){var It=(0,ie.Z)({},kt);return"props"in It||Object.defineProperty(It,"props",{get:function(){return De(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),It}}),It}function Jt(kt,It){if(!It||!It.length)return null;var qt=!1;function Yt(Hn,Ht){var Vt=(0,Ir.Z)(Ht),Gt=Vt[0],en=Vt.slice(1);if(!Gt)return[Hn];var Ln=Hn.split(Gt);return qt=qt||Ln.length>1,Ln.reduce(function(Qn,On){return[].concat((0,Te.Z)(Qn),(0,Te.Z)(Yt(On,en)))},[]).filter(function(Qn){return Qn})}var En=Yt(kt,It);return qt?En:null}var pn=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],tr=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ar(kt){return kt==="tags"||kt==="multiple"}var jn=oe.forwardRef(function(kt,It){var qt,Yt,En=kt.id,Hn=kt.prefixCls,Ht=kt.className,Vt=kt.showSearch,Gt=kt.tagRender,en=kt.direction,Ln=kt.omitDomProps,Qn=kt.displayValues,On=kt.onDisplayValuesChange,Kn=kt.emptyOptions,vr=kt.notFoundContent,Br=vr===void 0?"Not Found":vr,Cr=kt.onClear,sr=kt.mode,Mr=kt.disabled,Nr=kt.loading,Yr=kt.getInputElement,Rr=kt.getRawInputElement,xr=kt.open,ii=kt.defaultOpen,ri=kt.onDropdownVisibleChange,Fi=kt.activeValue,Ui=kt.onActiveValueChange,aa=kt.activeDescendantId,ji=kt.searchValue,zi=kt.autoClearSearchValue,Mi=kt.onSearch,ca=kt.onSearchSplit,Li=kt.tokenSeparators,li=kt.allowClear,Vi=kt.suffixIcon,Sa=kt.clearIcon,Ci=kt.OptionList,Xa=kt.animation,qa=kt.transitionName,Ja=kt.dropdownStyle,Ra=kt.dropdownClassName,ua=kt.dropdownMatchSelectWidth,bo=kt.dropdownRender,Da=kt.dropdownAlign,Ki=kt.placement,ja=kt.builtinPlacements,lo=kt.getPopupContainer,Ka=kt.showAction,io=Ka===void 0?[]:Ka,pa=kt.onFocus,po=kt.onBlur,mo=kt.onKeyUp,fo=kt.onKeyDown,vo=kt.onMouseDown,Mo=(0,ae.Z)(kt,pn),Ho=Ar(sr),ho=(Vt!==void 0?Vt:Ho)||sr==="combobox",ko=(0,ie.Z)({},Mo);tr.forEach(function(ea){delete ko[ea]}),Ln==null||Ln.forEach(function(ea){delete ko[ea]});var $o=oe.useState(!1),Yo=(0,te.Z)($o,2),as=Yo[0],Bo=Yo[1];oe.useEffect(function(){Bo(Le())},[]);var wo=oe.useRef(null),La=oe.useRef(null),za=oe.useRef(null),uo=oe.useRef(null),xo=oe.useRef(null),Fo=st(),es=(0,te.Z)(Fo,3),ms=es[0],_s=es[1],Fs=es[2];oe.useImperativeHandle(It,function(){var ea,ta;return{focus:(ea=uo.current)===null||ea===void 0?void 0:ea.focus,blur:(ta=uo.current)===null||ta===void 0?void 0:ta.blur,scrollTo:function(Gi){var gi;return(gi=xo.current)===null||gi===void 0?void 0:gi.scrollTo(Gi)}}});var os=oe.useMemo(function(){var ea;if(sr!=="combobox")return ji;var ta=(ea=Qn[0])===null||ea===void 0?void 0:ea.value;return typeof ta=="string"||typeof ta=="number"?String(ta):""},[ji,sr,Qn]),Is=sr==="combobox"&&typeof Yr=="function"&&Yr()||null,no=typeof Rr=="function"&&Rr(),Ea=et(La,no==null||(qt=no.props)===null||qt===void 0?void 0:qt.ref),Do=oe.useState(!1),To=(0,te.Z)(Do,2),Ct=To[0],Lt=To[1];ce(function(){Lt(!0)},[]);var dn=Se(!1,{defaultValue:ii,value:xr}),un=(0,te.Z)(dn,2),Un=un[0],Nn=un[1],Mn=Ct?Un:!1,nr=!Br&&Kn;(Mr||nr&&Mn&&sr==="combobox")&&(Mn=!1);var rr=nr?!1:Mn,gr=oe.useCallback(function(ea){var ta=ea!==void 0?ea:!Mn;Mr||(Nn(ta),Mn!==ta&&(ri==null||ri(ta)))},[Mr,Mn,Nn,ri]),Jr=oe.useMemo(function(){return(Li||[]).some(function(ea){return[`
|
|
|
`,`\r
|
|
|
`].includes(ea)})},[Li]),jr=function(ta,ba,Gi){var gi=!0,na=ta;Ui==null||Ui(null);var Xi=Gi?null:Jt(ta,Li);return sr!=="combobox"&&Xi&&(na="",ca==null||ca(Xi),gr(!1),gi=!1),Mi&&os!==na&&Mi(na,{source:ba?"typing":"effect"}),gi},xi=function(ta){!ta||!ta.trim()||Mi(ta,{source:"submit"})};oe.useEffect(function(){!Mn&&!Ho&&sr!=="combobox"&&jr("",!1,!1)},[Mn]),oe.useEffect(function(){Un&&Mr&&Nn(!1),Mr&&_s(!1)},[Mr]);var Qr=nt(),ci=(0,te.Z)(Qr,2),qr=ci[0],wi=ci[1],Hi=function(ta){var ba=qr(),Gi=ta.which;if(Gi===Be.ENTER&&(sr!=="combobox"&&ta.preventDefault(),Mn||gr(!0)),wi(!!os),Gi===Be.BACKSPACE&&!ba&&Ho&&!os&&Qn.length){for(var gi=(0,Te.Z)(Qn),na=null,Xi=gi.length-1;Xi>=0;Xi-=1){var Pa=gi[Xi];if(!Pa.disabled){gi.splice(Xi,1),na=Pa;break}}na&&On(gi,{type:"remove",values:[na]})}for(var Ua=arguments.length,Ya=new Array(Ua>1?Ua-1:0),Ma=1;Ma<Ua;Ma++)Ya[Ma-1]=arguments[Ma];if(Mn&&xo.current){var oo;(oo=xo.current).onKeyDown.apply(oo,[ta].concat(Ya))}fo==null||fo.apply(void 0,[ta].concat(Ya))},oa=function(ta){for(var ba=arguments.length,Gi=new Array(ba>1?ba-1:0),gi=1;gi<ba;gi++)Gi[gi-1]=arguments[gi];if(Mn&&xo.current){var na;(na=xo.current).onKeyUp.apply(na,[ta].concat(Gi))}mo==null||mo.apply(void 0,[ta].concat(Gi))},fa=function(ta){var ba=Qn.filter(function(Gi){return Gi!==ta});On(ba,{type:"remove",values:[ta]})},qi=oe.useRef(!1),va=function(){_s(!0),Mr||(pa&&!qi.current&&pa.apply(void 0,arguments),io.includes("focus")&&gr(!0)),qi.current=!0},Bi=function(){_s(!1,function(){qi.current=!1,gr(!1)}),!Mr&&(os&&(sr==="tags"?Mi(os,{source:"submit"}):sr==="multiple"&&Mi("",{source:"blur"})),po&&po.apply(void 0,arguments))},ga=[];oe.useEffect(function(){return function(){ga.forEach(function(ea){return clearTimeout(ea)}),ga.splice(0,ga.length)}},[]);var Aa=function(ta){var ba,Gi=ta.target,gi=(ba=za.current)===null||ba===void 0?void 0:ba.getPopupElement();if(gi&&gi.contains(Gi)){var na=setTimeout(function(){var Ya=ga.indexOf(na);if(Ya!==-1&&ga.splice(Ya,1),Fs(),!as&&!gi.contains(document.activeElement)){var Ma;(Ma=uo.current)===null||Ma===void 0||Ma.focus()}});ga.push(na)}for(var Xi=arguments.length,Pa=new Array(Xi>1?Xi-1:0),Ua=1;Ua<Xi;Ua++)Pa[Ua-1]=arguments[Ua];vo==null||vo.apply(void 0,[ta].concat(Pa))},si=oe.useState({}),fi=(0,te.Z)(si,2),ki=fi[1];function Ia(){ki({})}var ma;no&&(ma=function(ta){gr(ta)}),rt(function(){var ea;return[wo.current,(ea=za.current)===null||ea===void 0?void 0:ea.getPopupElement()]},rr,gr,!!no);var Ca=oe.useMemo(function(){return(0,ie.Z)((0,ie.Z)({},kt),{},{notFoundContent:Br,open:Mn,triggerOpen:rr,id:En,showSearch:ho,multiple:Ho,toggleOpen:gr})},[kt,Br,rr,Mn,En,ho,Ho,gr]),ya=!!Vi||Nr,Na;ya&&(Na=oe.createElement(Ge,{className:Je()("".concat(Hn,"-arrow"),(0,ve.Z)({},"".concat(Hn,"-arrow-loading"),Nr)),customizeIcon:Vi,customizeIconProps:{loading:Nr,searchValue:os,open:Mn,focused:ms,showSearch:ho}}));var Ba=function(){var ta;Cr==null||Cr(),(ta=uo.current)===null||ta===void 0||ta.focus(),On([],{type:"clear",values:Qn}),jr("",!1,!1)},Za=Xe(Hn,Ba,Qn,li,Sa,Mr,os,sr),eo=Za.allowClear,Wo=Za.clearIcon,ro=oe.createElement(Ci,{ref:xo}),Io=Je()(Hn,Ht,(Yt={},(0,ve.Z)(Yt,"".concat(Hn,"-focused"),ms),(0,ve.Z)(Yt,"".concat(Hn,"-multiple"),Ho),(0,ve.Z)(Yt,"".concat(Hn,"-single"),!Ho),(0,ve.Z)(Yt,"".concat(Hn,"-allow-clear"),li),(0,ve.Z)(Yt,"".concat(Hn,"-show-arrow"),ya),(0,ve.Z)(Yt,"".concat(Hn,"-disabled"),Mr),(0,ve.Z)(Yt,"".concat(Hn,"-loading"),Nr),(0,ve.Z)(Yt,"".concat(Hn,"-open"),Mn),(0,ve.Z)(Yt,"".concat(Hn,"-customize-input"),Is),(0,ve.Z)(Yt,"".concat(Hn,"-show-search"),ho),Yt)),vs=oe.createElement(ei,{ref:za,disabled:Mr,prefixCls:Hn,visible:rr,popupElement:ro,animation:Xa,transitionName:qa,dropdownStyle:Ja,dropdownClassName:Ra,direction:en,dropdownMatchSelectWidth:ua,dropdownRender:bo,dropdownAlign:Da,placement:Ki,builtinPlacements:ja,getPopupContainer:lo,empty:Kn,getTriggerDOMNode:function(){return La.current},onPopupVisibleChange:ma,onPopupMouseEnter:Ia},no?oe.cloneElement(no,{ref:Ea}):oe.createElement(an,(0,x.Z)({},kt,{domRef:La,prefixCls:Hn,inputElement:Is,ref:uo,id:En,showSearch:ho,autoClearSearchValue:zi,mode:sr,activeDescendantId:aa,tagRender:Gt,values:Qn,open:Mn,onToggleOpen:gr,activeValue:Fi,searchValue:os,onSearch:jr,onSearchSubmit:xi,onRemove:fa,tokenWithEnter:Jr}))),$a;return no?$a=vs:$a=oe.createElement("div",(0,x.Z)({className:Io},ko,{ref:wo,onMouseDown:Aa,onKeyDown:Hi,onKeyUp:oa,onFocus:va,onBlur:Bi}),ms&&!Mn&&oe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Qn.map(function(ea){var ta=ea.label,ba=ea.value;return["number","string"].includes((0,ne.Z)(ta))?ta:ba}).join(", "))),vs,Na,eo&&Wo),oe.createElement(lt.Provider,{value:Ca},$a)}),Jn=jn,ir=function(kt,It){var qt=oe.useRef({values:new Map,options:new Map}),Yt=oe.useMemo(function(){var Hn=qt.current,Ht=Hn.values,Vt=Hn.options,Gt=kt.map(function(Qn){if(Qn.label===void 0){var On;return(0,ie.Z)((0,ie.Z)({},Qn),{},{label:(On=Ht.get(Qn.value))===null||On===void 0?void 0:On.label})}return Qn}),en=new Map,Ln=new Map;return Gt.forEach(function(Qn){en.set(Qn.value,Qn),Ln.set(Qn.value,It.get(Qn.value)||Vt.get(Qn.value))}),qt.current.values=en,qt.current.options=Ln,Gt},[kt,It]),En=oe.useCallback(function(Hn){return It.get(Hn)||qt.current.options.get(Hn)},[It]);return[Yt,En]};function kr(kt,It){return Ai(kt).join("").toUpperCase().includes(It)}var Ur=function(kt,It,qt,Yt,En){return oe.useMemo(function(){if(!qt||Yt===!1)return kt;var Hn=It.options,Ht=It.label,Vt=It.value,Gt=[],en=typeof Yt=="function",Ln=qt.toUpperCase(),Qn=en?Yt:function(Kn,vr){return En?kr(vr[En],Ln):vr[Hn]?kr(vr[Ht!=="children"?Ht:"label"],Ln):kr(vr[Vt],Ln)},On=en?function(Kn){return nn(Kn)}:function(Kn){return Kn};return kt.forEach(function(Kn){if(Kn[Hn]){var vr=Qn(qt,On(Kn));if(vr)Gt.push(Kn);else{var Br=Kn[Hn].filter(function(Cr){return Qn(qt,On(Cr))});Br.length&&Gt.push((0,ie.Z)((0,ie.Z)({},Kn),{},(0,ve.Z)({},Hn,Br)))}return}Qn(qt,On(Kn))&&Gt.push(Kn)}),Gt},[kt,Yt,En,qt,It])},Wn=0,Oi=re();function bi(){var kt;return Oi?(kt=Wn,Wn+=1):kt="TEST_OR_SSR",kt}function xa(kt){var It=oe.useState(),qt=(0,te.Z)(It,2),Yt=qt[0],En=qt[1];return oe.useEffect(function(){En("rc_select_".concat(bi()))},[]),kt||Yt}function ha(kt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qt=[];return oe.Children.forEach(kt,function(Yt){Yt==null&&!It.keepEmpty||(Array.isArray(Yt)?qt=qt.concat(ha(Yt)):(0,Ue.isFragment)(Yt)&&Yt.props?qt=qt.concat(ha(Yt.props.children,It)):qt.push(Yt))}),qt}var ia=["children","value"],Ha=["children"];function Ji(kt){var It=kt,qt=It.key,Yt=It.props,En=Yt.children,Hn=Yt.value,Ht=(0,ae.Z)(Yt,ia);return(0,ie.Z)({key:qt,value:Hn!==void 0?Hn:qt,children:En},Ht)}function Wi(kt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ha(kt).map(function(qt,Yt){if(!oe.isValidElement(qt)||!qt.type)return null;var En=qt,Hn=En.type.isSelectOptGroup,Ht=En.key,Vt=En.props,Gt=Vt.children,en=(0,ae.Z)(Vt,Ha);return It||!Hn?Ji(qt):(0,ie.Z)((0,ie.Z)({key:"__RC_SELECT_GRP__".concat(Ht===null?Yt:Ht,"__"),label:Ht},en),{},{options:Wi(Gt)})}).filter(function(qt){return qt})}function wa(kt,It,qt,Yt,En){return oe.useMemo(function(){var Hn=kt,Ht=!kt;Ht&&(Hn=Wi(It));var Vt=new Map,Gt=new Map,en=function(On,Kn,vr){vr&&typeof vr=="string"&&On.set(Kn[vr],Kn)};function Ln(Qn){for(var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kn=0;Kn<Qn.length;Kn+=1){var vr=Qn[Kn];!vr[qt.options]||On?(Vt.set(vr[qt.value],vr),en(Gt,vr,qt.label),en(Gt,vr,Yt),en(Gt,vr,En)):Ln(vr[qt.options],!0)}}return Ln(Hn),{options:Hn,valueOptions:Vt,labelOptions:Gt}},[kt,It,qt,Yt,En])}function Fa(kt){var It=oe.useRef();It.current=kt;var qt=oe.useCallback(function(){return It.current.apply(It,arguments)},[]);return qt}var Ii=function(){return null};Ii.isSelectOptGroup=!0;var la=Ii,Oa=function(){return null};Oa.isSelectOption=!0;var ao=Oa;function Qa(kt,It){var qt=(0,ie.Z)({},kt);return Array.isArray(It)&&It.forEach(function(Yt){delete qt[Yt]}),qt}var Ni=me(73299),mn=oe.createContext(null),ln=mn;function Fn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var or=["disabled","title","children","style","className"];function br(kt){return typeof kt=="string"||typeof kt=="number"}var Xr=function(It,qt){var Yt=dt(),En=Yt.prefixCls,Hn=Yt.id,Ht=Yt.open,Vt=Yt.multiple,Gt=Yt.mode,en=Yt.searchValue,Ln=Yt.toggleOpen,Qn=Yt.notFoundContent,On=Yt.onPopupScroll,Kn=oe.useContext(ln),vr=Kn.flattenOptions,Br=Kn.onActiveValue,Cr=Kn.defaultActiveFirstOption,sr=Kn.onSelect,Mr=Kn.menuItemSelectedIcon,Nr=Kn.rawValues,Yr=Kn.fieldNames,Rr=Kn.virtual,xr=Kn.direction,ii=Kn.listHeight,ri=Kn.listItemHeight,Fi="".concat(En,"-item"),Ui=_e(function(){return vr},[Ht,vr],function(Da,Ki){return Ki[0]&&Da[1]!==Ki[1]}),aa=oe.useRef(null),ji=function(Ki){Ki.preventDefault()},zi=function(Ki){aa.current&&aa.current.scrollTo(typeof Ki=="number"?{index:Ki}:Ki)},Mi=function(Ki){for(var ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,lo=Ui.length,Ka=0;Ka<lo;Ka+=1){var io=(Ki+Ka*ja+lo)%lo,pa=Ui[io],po=pa.group,mo=pa.data;if(!po&&!mo.disabled)return io}return-1},ca=oe.useState(function(){return Mi(0)}),Li=(0,te.Z)(ca,2),li=Li[0],Vi=Li[1],Sa=function(Ki){var ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Vi(Ki);var lo={source:ja?"keyboard":"mouse"},Ka=Ui[Ki];if(!Ka){Br(null,-1,lo);return}Br(Ka.value,Ki,lo)};(0,oe.useEffect)(function(){Sa(Cr!==!1?Mi(0):-1)},[Ui.length,en]);var Ci=oe.useCallback(function(Da){return Nr.has(Da)&&Gt!=="combobox"},[Gt,(0,Te.Z)(Nr).toString(),Nr.size]);(0,oe.useEffect)(function(){var Da=setTimeout(function(){if(!Vt&&Ht&&Nr.size===1){var ja=Array.from(Nr)[0],lo=Ui.findIndex(function(Ka){var io=Ka.data;return io.value===ja});lo!==-1&&(Sa(lo),zi(lo))}});if(Ht){var Ki;(Ki=aa.current)===null||Ki===void 0||Ki.scrollTo(void 0)}return function(){return clearTimeout(Da)}},[Ht,en,vr.length]);var Xa=function(Ki){Ki!==void 0&&sr(Ki,{selected:!Nr.has(Ki)}),Vt||Ln(!1)};if(oe.useImperativeHandle(qt,function(){return{onKeyDown:function(Ki){var ja=Ki.which,lo=Ki.ctrlKey;switch(ja){case Be.N:case Be.P:case Be.UP:case Be.DOWN:{var Ka=0;if(ja===Be.UP?Ka=-1:ja===Be.DOWN?Ka=1:Fn()&&lo&&(ja===Be.N?Ka=1:ja===Be.P&&(Ka=-1)),Ka!==0){var io=Mi(li+Ka,Ka);zi(io),Sa(io,!0)}break}case Be.ENTER:{var pa=Ui[li];pa&&!pa.data.disabled?Xa(pa.value):Xa(void 0),Ht&&Ki.preventDefault();break}case Be.ESC:Ln(!1),Ht&&Ki.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ki){zi(Ki)}}}),Ui.length===0)return oe.createElement("div",{role:"listbox",id:"".concat(Hn,"_list"),className:"".concat(Fi,"-empty"),onMouseDown:ji},Qn);var qa=Object.keys(Yr).map(function(Da){return Yr[Da]}),Ja=function(Ki){return Ki.label};function Ra(Da,Ki){var ja=Da.group;return{role:ja?"presentation":"option",id:"".concat(Hn,"_list_").concat(Ki)}}var ua=function(Ki){var ja=Ui[Ki];if(!ja)return null;var lo=ja.data||{},Ka=lo.value,io=ja.group,pa=Ye(lo,!0),po=Ja(ja);return ja?oe.createElement("div",(0,x.Z)({"aria-label":typeof po=="string"&&!io?po:null},pa,{key:Ki},Ra(ja,Ki),{"aria-selected":Ci(Ka)}),Ka):null},bo={role:"listbox",id:"".concat(Hn,"_list")};return oe.createElement(oe.Fragment,null,Rr&&oe.createElement("div",(0,x.Z)({},bo,{style:{height:0,width:0,overflow:"hidden"}}),ua(li-1),ua(li),ua(li+1)),oe.createElement(Ni.Z,{itemKey:"key",ref:aa,data:Ui,height:ii,itemHeight:ri,fullHeight:!1,onMouseDown:ji,onScroll:On,virtual:Rr,direction:xr,innerProps:Rr?null:bo},function(Da,Ki){var ja,lo=Da.group,Ka=Da.groupOption,io=Da.data,pa=Da.label,po=Da.value,mo=io.key;if(lo){var fo,vo=(fo=io.title)!==null&&fo!==void 0?fo:br(pa)?pa.toString():void 0;return oe.createElement("div",{className:Je()(Fi,"".concat(Fi,"-group")),title:vo},pa!==void 0?pa:mo)}var Mo=io.disabled,Ho=io.title,ho=io.children,ko=io.style,$o=io.className,Yo=(0,ae.Z)(io,or),as=Qa(Yo,qa),Bo=Ci(po),wo="".concat(Fi,"-option"),La=Je()(Fi,wo,$o,(ja={},(0,ve.Z)(ja,"".concat(wo,"-grouped"),Ka),(0,ve.Z)(ja,"".concat(wo,"-active"),li===Ki&&!Mo),(0,ve.Z)(ja,"".concat(wo,"-disabled"),Mo),(0,ve.Z)(ja,"".concat(wo,"-selected"),Bo),ja)),za=Ja(Da),uo=!Mr||typeof Mr=="function"||Bo,xo=typeof za=="number"?za:za||po,Fo=br(xo)?xo.toString():void 0;return Ho!==void 0&&(Fo=Ho),oe.createElement("div",(0,x.Z)({},Ye(as),Rr?{}:Ra(Da,Ki),{"aria-selected":Bo,className:La,title:Fo,onMouseMove:function(){li===Ki||Mo||Sa(Ki)},onClick:function(){Mo||Xa(po)},style:ko}),oe.createElement("div",{className:"".concat(wo,"-content")},xo),oe.isValidElement(Mr)||Bo,uo&&oe.createElement(Ge,{className:"".concat(Fi,"-option-state"),customizeIcon:Mr,customizeIconProps:{isSelected:Bo}},Bo?"\u2713":null))}))},oi=oe.forwardRef(Xr);oi.displayName="OptionList";var pi=oi;function Ti(kt){var It=kt.mode,qt=kt.options,Yt=kt.children,En=kt.backfill,Hn=kt.allowClear,Ht=kt.placeholder,Vt=kt.getInputElement,Gt=kt.showSearch,en=kt.onSearch,Ln=kt.defaultOpen,Qn=kt.autoFocus,On=kt.labelInValue,Kn=kt.value,vr=kt.inputValue,Br=kt.optionLabelProp,Cr=isMultiple(It),sr=Gt!==void 0?Gt:Cr||It==="combobox",Mr=qt||convertChildrenToData(Yt);if(warning(It!=="tags"||Mr.every(function(xr){return!xr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),It==="tags"||It==="combobox"){var Nr=Mr.some(function(xr){return xr.options?xr.options.some(function(ii){return typeof("value"in ii?ii.value:ii.key)=="number"}):typeof("value"in xr?xr.value:xr.key)=="number"});warning(!Nr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(It!=="combobox"||!Br,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(It==="combobox"||!En,"`backfill` only works with `combobox` mode."),warning(It==="combobox"||!Vt,"`getInputElement` only work with `combobox` mode."),noteOnce(It!=="combobox"||!Vt||!Hn||!Ht,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),en&&!sr&&It!=="combobox"&&It!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ln||Qn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Kn!=null){var Yr=toArray(Kn);warning(!On||Yr.every(function(xr){return _typeof(xr)==="object"&&("key"in xr||"value"in xr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Cr||Array.isArray(Kn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Yt){var Rr=null;toNodeArray(Yt).some(function(xr){if(!React.isValidElement(xr)||!xr.type)return!1;var ii=xr,ri=ii.type;if(ri.isSelectOption)return!1;if(ri.isSelectOptGroup){var Fi=toNodeArray(xr.props.children).every(function(Ui){return!React.isValidElement(Ui)||!xr.type||Ui.type.isSelectOption?!0:(Rr=Ui.type,!1)});return!Fi}return Rr=ri,!0}),Rr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Rr.displayName||Rr.name||Rr,"`.")),warning(vr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function vi(kt,It){if(kt){var qt=function Yt(En){for(var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=0;Ht<En.length;Ht++){var Vt=En[Ht];if(Vt[It==null?void 0:It.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Hn&&Array.isArray(Vt[It==null?void 0:It.options])&&Yt(Vt[It==null?void 0:It.options],!0))break}};qt(kt)}}var Ri=null,$i=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ni=["inputValue"];function Sn(kt){return!kt||(0,ne.Z)(kt)!=="object"}var Pn=oe.forwardRef(function(kt,It){var qt=kt.id,Yt=kt.mode,En=kt.prefixCls,Hn=En===void 0?"rc-select":En,Ht=kt.backfill,Vt=kt.fieldNames,Gt=kt.inputValue,en=kt.searchValue,Ln=kt.onSearch,Qn=kt.autoClearSearchValue,On=Qn===void 0?!0:Qn,Kn=kt.onSelect,vr=kt.onDeselect,Br=kt.dropdownMatchSelectWidth,Cr=Br===void 0?!0:Br,sr=kt.filterOption,Mr=kt.filterSort,Nr=kt.optionFilterProp,Yr=kt.optionLabelProp,Rr=kt.options,xr=kt.children,ii=kt.defaultActiveFirstOption,ri=kt.menuItemSelectedIcon,Fi=kt.virtual,Ui=kt.direction,aa=kt.listHeight,ji=aa===void 0?200:aa,zi=kt.listItemHeight,Mi=zi===void 0?20:zi,ca=kt.value,Li=kt.defaultValue,li=kt.labelInValue,Vi=kt.onChange,Sa=(0,ae.Z)(kt,$i),Ci=xa(qt),Xa=Ar(Yt),qa=!!(!Rr&&xr),Ja=oe.useMemo(function(){return sr===void 0&&Yt==="combobox"?!1:sr},[sr,Yt]),Ra=oe.useMemo(function(){return Wr(Vt,qa)},[JSON.stringify(Vt),qa]),ua=Se("",{value:en!==void 0?en:Gt,postState:function(nr){return nr||""}}),bo=(0,te.Z)(ua,2),Da=bo[0],Ki=bo[1],ja=wa(Rr,xr,Ra,Nr,Yr),lo=ja.valueOptions,Ka=ja.labelOptions,io=ja.options,pa=oe.useCallback(function(Mn){var nr=Ai(Mn);return nr.map(function(rr){var gr,Jr,jr,xi,Qr;if(Sn(rr))gr=rr;else{var ci;jr=rr.key,Jr=rr.label,gr=(ci=rr.value)!==null&&ci!==void 0?ci:jr}var qr=lo.get(gr);if(qr){var wi;if(Jr===void 0&&(Jr=qr==null?void 0:qr[Yr||Ra.label]),jr===void 0&&(jr=(wi=qr==null?void 0:qr.key)!==null&&wi!==void 0?wi:gr),xi=qr==null?void 0:qr.disabled,Qr=qr==null?void 0:qr.title,0)var Hi}return{label:Jr,value:gr,key:jr,disabled:xi,title:Qr}})},[Ra,Yr,lo]),po=Se(Li,{value:ca}),mo=(0,te.Z)(po,2),fo=mo[0],vo=mo[1],Mo=oe.useMemo(function(){var Mn,nr=pa(fo);return Yt==="combobox"&&rn((Mn=nr[0])===null||Mn===void 0?void 0:Mn.value)?[]:nr},[fo,pa,Yt]),Ho=ir(Mo,lo),ho=(0,te.Z)(Ho,2),ko=ho[0],$o=ho[1],Yo=oe.useMemo(function(){if(!Yt&&ko.length===1){var Mn=ko[0];if(Mn.value===null&&(Mn.label===null||Mn.label===void 0))return[]}return ko.map(function(nr){var rr;return(0,ie.Z)((0,ie.Z)({},nr),{},{label:(rr=nr.label)!==null&&rr!==void 0?rr:nr.value})})},[Yt,ko]),as=oe.useMemo(function(){return new Set(ko.map(function(Mn){return Mn.value}))},[ko]);oe.useEffect(function(){if(Yt==="combobox"){var Mn,nr=(Mn=ko[0])===null||Mn===void 0?void 0:Mn.value;Ki(di(nr)?String(nr):"")}},[ko]);var Bo=Fa(function(Mn,nr){var rr,gr=nr!=null?nr:Mn;return rr={},(0,ve.Z)(rr,Ra.value,Mn),(0,ve.Z)(rr,Ra.label,gr),rr}),wo=oe.useMemo(function(){if(Yt!=="tags")return io;var Mn=(0,Te.Z)(io),nr=function(gr){return lo.has(gr)};return(0,Te.Z)(ko).sort(function(rr,gr){return rr.value<gr.value?-1:1}).forEach(function(rr){var gr=rr.value;nr(gr)||Mn.push(Bo(gr,rr.label))}),Mn},[Bo,io,lo,ko,Yt]),La=Ur(wo,Ra,Da,Ja,Nr),za=oe.useMemo(function(){return Yt!=="tags"||!Da||La.some(function(Mn){return Mn[Nr||"value"]===Da})||La.some(function(Mn){return Mn[Ra.value]===Da})?La:[Bo(Da)].concat((0,Te.Z)(La))},[Bo,Nr,Yt,La,Da,Ra]),uo=oe.useMemo(function(){return Mr?(0,Te.Z)(za).sort(function(Mn,nr){return Mr(Mn,nr)}):za},[za,Mr]),xo=oe.useMemo(function(){return Vr(uo,{fieldNames:Ra,childrenAsData:qa})},[uo,Ra,qa]),Fo=function(nr){var rr=pa(nr);if(vo(rr),Vi&&(rr.length!==ko.length||rr.some(function(jr,xi){var Qr;return((Qr=ko[xi])===null||Qr===void 0?void 0:Qr.value)!==(jr==null?void 0:jr.value)}))){var gr=li?rr:rr.map(function(jr){return jr.value}),Jr=rr.map(function(jr){return nn($o(jr.value))});Vi(Xa?gr:gr[0],Xa?Jr:Jr[0])}},es=oe.useState(null),ms=(0,te.Z)(es,2),_s=ms[0],Fs=ms[1],os=oe.useState(0),Is=(0,te.Z)(os,2),no=Is[0],Ea=Is[1],Do=ii!==void 0?ii:Yt!=="combobox",To=oe.useCallback(function(Mn,nr){var rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},gr=rr.source,Jr=gr===void 0?"keyboard":gr;Ea(nr),Ht&&Yt==="combobox"&&Mn!==null&&Jr==="keyboard"&&Fs(String(Mn))},[Ht,Yt]),Ct=function(nr,rr,gr){var Jr=function(){var qi,va=$o(nr);return[li?{label:va==null?void 0:va[Ra.label],value:nr,key:(qi=va==null?void 0:va.key)!==null&&qi!==void 0?qi:nr}:nr,nn(va)]};if(rr&&Kn){var jr=Jr(),xi=(0,te.Z)(jr,2),Qr=xi[0],ci=xi[1];Kn(Qr,ci)}else if(!rr&&vr&&gr!=="clear"){var qr=Jr(),wi=(0,te.Z)(qr,2),Hi=wi[0],oa=wi[1];vr(Hi,oa)}},Lt=Fa(function(Mn,nr){var rr,gr=Xa?nr.selected:!0;gr?rr=Xa?[].concat((0,Te.Z)(ko),[Mn]):[Mn]:rr=ko.filter(function(Jr){return Jr.value!==Mn}),Fo(rr),Ct(Mn,gr),Yt==="combobox"?Fs(""):(!Ar||On)&&(Ki(""),Fs(""))}),dn=function(nr,rr){Fo(nr);var gr=rr.type,Jr=rr.values;(gr==="remove"||gr==="clear")&&Jr.forEach(function(jr){Ct(jr.value,!1,gr)})},un=function(nr,rr){if(Ki(nr),Fs(null),rr.source==="submit"){var gr=(nr||"").trim();if(gr){var Jr=Array.from(new Set([].concat((0,Te.Z)(as),[gr])));Fo(Jr),Ct(gr,!0),Ki("")}return}rr.source!=="blur"&&(Yt==="combobox"&&Fo(nr),Ln==null||Ln(nr))},Un=function(nr){var rr=nr;Yt!=="tags"&&(rr=nr.map(function(Jr){var jr=Ka.get(Jr);return jr==null?void 0:jr.value}).filter(function(Jr){return Jr!==void 0}));var gr=Array.from(new Set([].concat((0,Te.Z)(as),(0,Te.Z)(rr))));Fo(gr),gr.forEach(function(Jr){Ct(Jr,!0)})},Nn=oe.useMemo(function(){var Mn=Fi!==!1&&Cr!==!1;return(0,ie.Z)((0,ie.Z)({},ja),{},{flattenOptions:xo,onActiveValue:To,defaultActiveFirstOption:Do,onSelect:Lt,menuItemSelectedIcon:ri,rawValues:as,fieldNames:Ra,virtual:Mn,direction:Ui,listHeight:ji,listItemHeight:Mi,childrenAsData:qa})},[ja,xo,To,Do,Lt,ri,as,Ra,Fi,Cr,ji,Mi,qa]);return oe.createElement(ln.Provider,{value:Nn},oe.createElement(Jn,(0,x.Z)({},Sa,{id:Ci,prefixCls:Hn,ref:It,omitDomProps:ni,mode:Yt,displayValues:Yo,onDisplayValuesChange:dn,direction:Ui,searchValue:Da,onSearch:un,autoClearSearchValue:On,onSearchSplit:Un,dropdownMatchSelectWidth:Cr,OptionList:pi,emptyOptions:!xo.length,activeValue:_s,activeDescendantId:"".concat(Ci,"_list_").concat(no)})))}),Yn=Pn;Yn.Option=ao,Yn.OptGroup=la;var qe=Yn,yt=qe,St=me(10366),Dt=me(8745),Tt=me(33603),Nt=me(9708),_t=me(53124),on=me(98866),gn=me(88258),Vn=me(98675),qn=me(65223),Xn=me(4173),Dn=me(87244),In=me(13458),Cn=me(78642),Zn=me(46163),pr=function(kt,It){var qt={};for(var Yt in kt)Object.prototype.hasOwnProperty.call(kt,Yt)&&It.indexOf(Yt)<0&&(qt[Yt]=kt[Yt]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,Yt=Object.getOwnPropertySymbols(kt);En<Yt.length;En++)It.indexOf(Yt[En])<0&&Object.prototype.propertyIsEnumerable.call(kt,Yt[En])&&(qt[Yt[En]]=kt[Yt[En]]);return qt};const $n="SECRET_COMBOBOX_MODE_DO_NOT_USE",ar=(kt,It)=>{var qt,{prefixCls:Yt,bordered:En=!0,className:Hn,rootClassName:Ht,getPopupContainer:Vt,popupClassName:Gt,dropdownClassName:en,listHeight:Ln=256,placement:Qn,listItemHeight:On=24,size:Kn,disabled:vr,notFoundContent:Br,status:Cr,builtinPlacements:sr,dropdownMatchSelectWidth:Mr,popupMatchSelectWidth:Nr,direction:Yr,style:Rr,allowClear:xr}=kt,ii=pr(kt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:ri,getPrefixCls:Fi,renderEmpty:Ui,direction:aa,virtual:ji,popupMatchSelectWidth:zi,popupOverflow:Mi,select:ca}=oe.useContext(_t.E_),Li=Fi("select",Yt),li=Fi(),Vi=Yr!=null?Yr:aa,{compactSize:Sa,compactItemClassnames:Ci}=(0,Xn.ri)(Li,Vi),[Xa,qa]=(0,Dn.Z)(Li),Ja=oe.useMemo(()=>{const{mode:wo}=ii;if(wo!=="combobox")return wo===$n?"combobox":wo},[ii.mode]),Ra=Ja==="multiple"||Ja==="tags",ua=(0,Cn.Z)(ii.suffixIcon,ii.showArrow),bo=(qt=Nr!=null?Nr:Mr)!==null&&qt!==void 0?qt:zi,{status:Da,hasFeedback:Ki,isFormItemInput:ja,feedbackIcon:lo}=oe.useContext(qn.aM),Ka=(0,Nt.F)(Da,Cr);let io;Br!==void 0?io=Br:Ja==="combobox"?io=null:io=(Ui==null?void 0:Ui("Select"))||oe.createElement(gn.Z,{componentName:"Select"});const{suffixIcon:pa,itemIcon:po,removeIcon:mo,clearIcon:fo}=(0,Zn.Z)(Object.assign(Object.assign({},ii),{multiple:Ra,hasFeedback:Ki,feedbackIcon:lo,showSuffixIcon:ua,prefixCls:Li,showArrow:ii.showArrow,componentName:"Select"})),vo=xr===!0?{clearIcon:fo}:xr,Mo=(0,St.Z)(ii,["suffixIcon","itemIcon"]),Ho=Je()(Gt||en,{[`${Li}-dropdown-${Vi}`]:Vi==="rtl"},Ht,qa),ho=(0,Vn.Z)(wo=>{var La;return(La=Kn!=null?Kn:Sa)!==null&&La!==void 0?La:wo}),ko=oe.useContext(on.Z),$o=vr!=null?vr:ko,Yo=Je()({[`${Li}-lg`]:ho==="large",[`${Li}-sm`]:ho==="small",[`${Li}-rtl`]:Vi==="rtl",[`${Li}-borderless`]:!En,[`${Li}-in-form-item`]:ja},(0,Nt.Z)(Li,Ka,Ki),Ci,ca==null?void 0:ca.className,Hn,Ht,qa),as=oe.useMemo(()=>Qn!==void 0?Qn:Vi==="rtl"?"bottomRight":"bottomLeft",[Qn,Vi]),Bo=(0,In.Z)(sr,Mi);return Xa(oe.createElement(yt,Object.assign({ref:It,virtual:ji,showSearch:ca==null?void 0:ca.showSearch},Mo,{style:Object.assign(Object.assign({},ca==null?void 0:ca.style),Rr),dropdownMatchSelectWidth:bo,builtinPlacements:Bo,transitionName:(0,Tt.m)(li,"slide-up",ii.transitionName),listHeight:Ln,listItemHeight:On,mode:Ja,prefixCls:Li,placement:as,direction:Vi,suffixIcon:pa,menuItemSelectedIcon:po,removeIcon:mo,allowClear:vo,notFoundContent:io,className:Yo,getPopupContainer:Vt||ri,dropdownClassName:Ho,disabled:$o})))},ur=oe.forwardRef(ar),mr=(0,Dt.Z)(ur);ur.SECRET_COMBOBOX_MODE_DO_NOT_USE=$n,ur.Option=ao,ur.OptGroup=la,ur._InternalPanelDoNotUseOrYouWillBeFired=mr;var wr=ur},87244:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ye}});var Oe=me(14747),Je=me(80110),x=me(45503),Te=me(67968),ve=me(67771),ie=me(33297);const te=be=>{const{optionHeight:Fe,optionFontSize:ke,optionLineHeight:De,optionPadding:Le}=be;return{position:"relative",display:"block",minHeight:Fe,padding:Le,color:be.colorText,fontWeight:"normal",fontSize:ke,lineHeight:De,boxSizing:"border-box"}};var ne=be=>{const{antCls:Fe,componentCls:ke}=be,De=`${ke}-item`,Le=`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active`,Ie=`&${Fe}-slide-up-appear${Fe}-slide-up-appear-active`,Be=`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active`,Ue=`${ke}-dropdown-placement-`;return[{[`${ke}-dropdown`]:Object.assign(Object.assign({},(0,Oe.Wf)(be)),{position:"absolute",top:-9999,zIndex:be.zIndexPopup,boxSizing:"border-box",padding:be.paddingXXS,overflow:"hidden",fontSize:be.fontSize,fontVariant:"initial",backgroundColor:be.colorBgElevated,borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,[`
|
|
|
${Le}${Ue}bottomLeft,
|
|
|
${Ie}${Ue}bottomLeft
|
|
|
`]:{animationName:ve.fJ},[`
|
|
|
${Le}${Ue}topLeft,
|
|
|
${Ie}${Ue}topLeft,
|
|
|
${Le}${Ue}topRight,
|
|
|
${Ie}${Ue}topRight
|
|
|
`]:{animationName:ve.Qt},[`${Be}${Ue}bottomLeft`]:{animationName:ve.Uw},[`
|
|
|
${Be}${Ue}topLeft,
|
|
|
${Be}${Ue}topRight
|
|
|
`]:{animationName:ve.ly},"&-hidden":{display:"none"},[`${De}`]:Object.assign(Object.assign({},te(be)),{cursor:"pointer",transition:`background ${be.motionDurationSlow} ease`,borderRadius:be.borderRadiusSM,"&-group":{color:be.colorTextDescription,fontSize:be.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Oe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${De}-option-disabled)`]:{backgroundColor:be.optionActiveBg},[`&-selected:not(${De}-option-disabled)`]:{color:be.optionSelectedColor,fontWeight:be.optionSelectedFontWeight,backgroundColor:be.optionSelectedBg,[`${De}-option-state`]:{color:be.colorPrimary}},"&-disabled":{[`&${De}-option-selected`]:{backgroundColor:be.colorBgContainerDisabled},color:be.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:be.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ve.oN)(be,"slide-up"),(0,ve.oN)(be,"slide-down"),(0,ie.Fm)(be,"move-up"),(0,ie.Fm)(be,"move-down")]};const oe=2,he=be=>{let{controlHeightSM:Fe,controlHeight:ke,lineWidth:De}=be;const Le=(ke-Fe)/2-De,Ie=Math.ceil(Le/2);return[Le,Ie]};function re(be,Fe){const{componentCls:ke,iconCls:De}=be,Le=`${ke}-selection-overflow`,Ie=be.multipleSelectItemHeight,[Be]=he(be),Ue=Fe?`${ke}-${Fe}`:"";return{[`${ke}-multiple${Ue}`]:{fontSize:be.fontSize,[Le]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ke}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Be-oe}px ${oe*2}px`,borderRadius:be.borderRadius,[`${ke}-show-search&`]:{cursor:"text"},[`${ke}-disabled&`]:{background:be.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe}px 0`,lineHeight:`${Ie}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${ke}-show-arrow ${ke}-selector,
|
|
|
&${ke}-allow-clear ${ke}-selector
|
|
|
`]:{paddingInlineEnd:be.fontSizeIcon+be.controlPaddingHorizontal},[`${ke}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ie,marginTop:oe,marginBottom:oe,lineHeight:`${Ie-be.lineWidth*2}px`,background:be.multipleItemBg,border:`${be.lineWidth}px ${be.lineType} ${be.multipleItemBorderColor}`,borderRadius:be.borderRadiusSM,cursor:"default",transition:`font-size ${be.motionDurationSlow}, line-height ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,userSelect:"none",marginInlineEnd:oe*2,paddingInlineStart:be.paddingXS,paddingInlineEnd:be.paddingXS/2,[`${ke}-disabled&`]:{color:be.multipleItemColorDisabled,borderColor:be.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:be.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Oe.Ro)()),{display:"inline-flex",alignItems:"center",color:be.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${De}`]:{verticalAlign:"-0.2em"},"&:hover":{color:be.colorIconHover}})},[`${Le}-item + ${Le}-item`]:{[`${ke}-selection-search`]:{marginInlineStart:0}},[`${ke}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:be.inputPaddingHorizontalBase-Be,"\n &-input,\n &-mirror\n ":{height:Ie,fontFamily:be.fontFamily,lineHeight:`${Ie}px`,transition:`all ${be.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ke}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:be.inputPaddingHorizontalBase,insetInlineEnd:be.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${be.motionDurationSlow}`}}}}var ce=be=>{const{componentCls:Fe}=be,ke=(0,x.TS)(be,{controlHeight:be.controlHeightSM,multipleSelectItemHeight:be.controlHeightXS,borderRadius:be.borderRadiusSM,borderRadiusSM:be.borderRadiusXS}),De=(0,x.TS)(be,{fontSize:be.fontSizeLG,controlHeight:be.controlHeightLG,multipleSelectItemHeight:be.multipleItemHeightLG,borderRadius:be.borderRadiusLG,borderRadiusSM:be.borderRadius}),[,Le]=he(be);return[re(be),re(ke,"sm"),{[`${Fe}-multiple${Fe}-sm`]:{[`${Fe}-selection-placeholder`]:{insetInline:be.controlPaddingHorizontalSM-be.lineWidth},[`${Fe}-selection-search`]:{marginInlineStart:Le}}},re(De,"lg")]};function fe(be,Fe){const{componentCls:ke,inputPaddingHorizontalBase:De,borderRadius:Le}=be,Ie=be.controlHeight-be.lineWidth*2,Be=Math.ceil(be.fontSize*1.25),Ue=Fe?`${ke}-${Fe}`:"";return{[`${ke}-single${Ue}`]:{fontSize:be.fontSize,[`${ke}-selector`]:Object.assign(Object.assign({},(0,Oe.Wf)(be)),{display:"flex",borderRadius:Le,[`${ke}-selection-search`]:{position:"absolute",top:0,insetInlineStart:De,insetInlineEnd:De,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${ke}-selection-item,
|
|
|
${ke}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Ie}px`,transition:`all ${be.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ie}px`}},[`${ke}-selection-item`]:{position:"relative",userSelect:"none"},[`${ke}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ke}-selection-item:after`,`${ke}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${ke}-show-arrow ${ke}-selection-item,
|
|
|
&${ke}-show-arrow ${ke}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Be},[`&${ke}-open ${ke}-selection-item`]:{color:be.colorTextPlaceholder},[`&:not(${ke}-customize-input)`]:{[`${ke}-selector`]:{width:"100%",height:be.controlHeight,padding:`0 ${De}px`,[`${ke}-selection-search-input`]:{height:Ie},"&:after":{lineHeight:`${Ie}px`}}},[`&${ke}-customize-input`]:{[`${ke}-selector`]:{"&:after":{display:"none"},[`${ke}-selection-search`]:{position:"static",width:"100%"},[`${ke}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${De}px`,"&:after":{display:"none"}}}}}}}function pe(be){const{componentCls:Fe}=be,ke=be.controlPaddingHorizontalSM-be.lineWidth;return[fe(be),fe((0,x.TS)(be,{controlHeight:be.controlHeightSM,borderRadius:be.borderRadiusSM}),"sm"),{[`${Fe}-single${Fe}-sm`]:{[`&:not(${Fe}-customize-input)`]:{[`${Fe}-selection-search`]:{insetInlineStart:ke,insetInlineEnd:ke},[`${Fe}-selector`]:{padding:`0 ${ke}px`},[`&${Fe}-show-arrow ${Fe}-selection-search`]:{insetInlineEnd:ke+be.fontSize*1.5},[`
|
|
|
&${Fe}-show-arrow ${Fe}-selection-item,
|
|
|
&${Fe}-show-arrow ${Fe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:be.fontSize*1.5}}}},fe((0,x.TS)(be,{controlHeight:be.singleItemHeightLG,fontSize:be.fontSizeLG,borderRadius:be.borderRadiusLG}),"lg")]}const le=be=>{const{componentCls:Fe,selectorBg:ke}=be;return{position:"relative",backgroundColor:ke,border:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`,transition:`all ${be.motionDurationMid} ${be.motionEaseInOut}`,input:{cursor:"pointer"},[`${Fe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Fe}-disabled&`]:{color:be.colorTextDisabled,background:be.colorBgContainerDisabled,cursor:"not-allowed",[`${Fe}-multiple&`]:{background:be.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Se=function(be,Fe){let ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:De,borderHoverColor:Le,outlineColor:Ie,antCls:Be}=Fe,Ue=ke?{[`${De}-selector`]:{borderColor:Le}}:{};return{[be]:{[`&:not(${De}-disabled):not(${De}-customize-input):not(${Be}-pagination-size-changer)`]:Object.assign(Object.assign({},Ue),{[`${De}-focused& ${De}-selector`]:{borderColor:Le,boxShadow:`0 0 0 ${Fe.controlOutlineWidth}px ${Ie}`,outline:0},[`&:hover ${De}-selector`]:{borderColor:Le}})}}},xe=be=>{const{componentCls:Fe}=be;return{[`${Fe}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ge=be=>{const{componentCls:Fe,inputPaddingHorizontalBase:ke,iconCls:De}=be;return{[Fe]:Object.assign(Object.assign({},(0,Oe.Wf)(be)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Fe}-customize-input) ${Fe}-selector`]:Object.assign(Object.assign({},le(be)),xe(be)),[`${Fe}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Oe.vS),[`${Fe}-selection-placeholder`]:Object.assign(Object.assign({},Oe.vS),{flex:1,color:be.colorTextPlaceholder,pointerEvents:"none"}),[`${Fe}-arrow`]:Object.assign(Object.assign({},(0,Oe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ke,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[De]:{verticalAlign:"top",transition:`transform ${be.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Fe}-suffix)`]:{pointerEvents:"auto"}},[`${Fe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Fe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ke,zIndex:1,display:"inline-block",width:be.fontSizeIcon,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:be.clearBg,cursor:"pointer",opacity:0,transition:`color ${be.motionDurationMid} ease, opacity ${be.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:be.colorTextTertiary}},"&:hover":{[`${Fe}-clear`]:{opacity:1}}}),[`${Fe}-has-feedback`]:{[`${Fe}-clear`]:{insetInlineEnd:ke+be.fontSize+be.paddingXS}}}},Me=be=>{const{componentCls:Fe}=be;return[{[Fe]:{[`&-borderless ${Fe}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Fe}-in-form-item`]:{width:"100%"}}},ge(be),pe(be),ce(be),ne(be),{[`${Fe}-rtl`]:{direction:"rtl"}},Se(Fe,(0,x.TS)(be,{borderHoverColor:be.colorPrimaryHover,outlineColor:be.controlOutline})),Se(`${Fe}-status-error`,(0,x.TS)(be,{borderHoverColor:be.colorErrorHover,outlineColor:be.colorErrorOutline}),!0),Se(`${Fe}-status-warning`,(0,x.TS)(be,{borderHoverColor:be.colorWarningHover,outlineColor:be.colorWarningOutline}),!0),(0,Je.c)(be,{borderElCls:`${Fe}-selector`,focusElCls:`${Fe}-focused`})]};var ye=(0,Te.Z)("Select",(be,Fe)=>{let{rootPrefixCls:ke}=Fe;const De=(0,x.TS)(be,{rootPrefixCls:ke,inputPaddingHorizontalBase:be.paddingSM-1,multipleSelectItemHeight:be.multipleItemHeight});return[Me(De)]},be=>{const{fontSize:Fe,lineHeight:ke,controlHeight:De,controlPaddingHorizontal:Le,zIndexPopupBase:Ie,colorText:Be,fontWeightStrong:Ue,controlItemBgActive:_e,controlItemBgHover:We,colorBgContainer:Ze,colorFillSecondary:et,controlHeightLG:it,controlHeightSM:pt,colorBgContainerDisabled:Ge,colorTextDisabled:Xe}=be;return{zIndexPopup:Ie+50,optionSelectedColor:Be,optionSelectedFontWeight:Ue,optionSelectedBg:_e,optionActiveBg:We,optionPadding:`${(De-Fe*ke)/2}px ${Le}px`,optionFontSize:Fe,optionLineHeight:ke,optionHeight:De,selectorBg:Ze,clearBg:Ze,singleItemHeightLG:it,multipleItemBg:et,multipleItemBorderColor:"transparent",multipleItemHeight:pt,multipleItemHeightLG:De,multipleSelectorBgDisabled:Ge,multipleItemColorDisabled:Xe,multipleItemBorderColorDisabled:"transparent"}})},13458:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Je}});const Oe=x=>{const ve={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:x==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ve),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ve),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ve),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ve),{points:["br","tr"],offset:[0,-4]})}};function Je(x,Te){return x||Oe(Te)}},78642:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Oe}});function Oe(Je,x){return x!==void 0?x:Je!==null}},46163:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ae}});var Oe=me(18299),Je=me(16646),x=me(73475),Te=me(42922),ve=me(3407),ie=me(72395),te=me(67294);function ae(ne){let{suffixIcon:oe,clearIcon:he,menuItemSelectedIcon:re,removeIcon:se,loading:ce,multiple:fe,hasFeedback:pe,prefixCls:le,showSuffixIcon:Se,feedbackIcon:xe,showArrow:ge,componentName:Me}=ne;const ye=he!=null?he:te.createElement(Je.Z,null),be=Le=>oe===null&&!pe&&!ge?null:te.createElement(te.Fragment,null,Se!==!1&&Le,pe&&xe);let Fe=null;if(oe!==void 0)Fe=be(oe);else if(ce)Fe=be(te.createElement(ve.Z,{spin:!0}));else{const Le=`${le}-suffix`;Fe=Ie=>{let{open:Be,showSearch:Ue}=Ie;return be(Be&&Ue?te.createElement(ie.Z,{className:Le}):te.createElement(Te.Z,{className:Le}))}}let ke=null;re!==void 0?ke=re:fe?ke=te.createElement(Oe.Z,null):ke=null;let De=null;return se!==void 0?De=se:De=te.createElement(x.Z,null),{clearIcon:ye,suffixIcon:Fe,itemIcon:ke,removeIcon:De}}},46303:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Ce}});var Oe=me(94184),Je=me.n(Oe),x=me(67294),Te=me(53124),ve=me(10366),te=He=>{const{prefixCls:je,className:Ae,style:Ne,size:ze,shape:Qe}=He,ot=Je()({[`${je}-lg`]:ze==="large",[`${je}-sm`]:ze==="small"}),mt=Je()({[`${je}-circle`]:Qe==="circle",[`${je}-square`]:Qe==="square",[`${je}-round`]:Qe==="round"}),Ot=x.useMemo(()=>typeof ze=="number"?{width:ze,height:ze,lineHeight:`${ze}px`}:{},[ze]);return x.createElement("span",{className:Je()(je,ot,mt,Ae),style:Object.assign(Object.assign({},Ot),Ne)})},ae=me(34367),ne=me(67968),oe=me(45503);const he=new ae.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),re=He=>({height:He,lineHeight:`${He}px`}),se=He=>Object.assign({width:He},re(He)),ce=He=>({background:He.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:he,animationDuration:He.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),fe=He=>Object.assign({width:He*5,minWidth:He*5},re(He)),pe=He=>{const{skeletonAvatarCls:je,gradientFromColor:Ae,controlHeight:Ne,controlHeightLG:ze,controlHeightSM:Qe}=He;return{[`${je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ae},se(Ne)),[`${je}${je}-circle`]:{borderRadius:"50%"},[`${je}${je}-lg`]:Object.assign({},se(ze)),[`${je}${je}-sm`]:Object.assign({},se(Qe))}},le=He=>{const{controlHeight:je,borderRadiusSM:Ae,skeletonInputCls:Ne,controlHeightLG:ze,controlHeightSM:Qe,gradientFromColor:ot}=He;return{[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ot,borderRadius:Ae},fe(je)),[`${Ne}-lg`]:Object.assign({},fe(ze)),[`${Ne}-sm`]:Object.assign({},fe(Qe))}},Se=He=>Object.assign({width:He},re(He)),xe=He=>{const{skeletonImageCls:je,imageSizeBase:Ae,gradientFromColor:Ne,borderRadiusSM:ze}=He;return{[`${je}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ne,borderRadius:ze},Se(Ae*2)),{[`${je}-path`]:{fill:"#bfbfbf"},[`${je}-svg`]:Object.assign(Object.assign({},Se(Ae)),{maxWidth:Ae*4,maxHeight:Ae*4}),[`${je}-svg${je}-svg-circle`]:{borderRadius:"50%"}}),[`${je}${je}-circle`]:{borderRadius:"50%"}}},ge=(He,je,Ae)=>{const{skeletonButtonCls:Ne}=He;return{[`${Ae}${Ne}-circle`]:{width:je,minWidth:je,borderRadius:"50%"},[`${Ae}${Ne}-round`]:{borderRadius:je}}},Me=He=>Object.assign({width:He*2,minWidth:He*2},re(He)),ye=He=>{const{borderRadiusSM:je,skeletonButtonCls:Ae,controlHeight:Ne,controlHeightLG:ze,controlHeightSM:Qe,gradientFromColor:ot}=He;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ot,borderRadius:je,width:Ne*2,minWidth:Ne*2},Me(Ne))},ge(He,Ne,Ae)),{[`${Ae}-lg`]:Object.assign({},Me(ze))}),ge(He,ze,`${Ae}-lg`)),{[`${Ae}-sm`]:Object.assign({},Me(Qe))}),ge(He,Qe,`${Ae}-sm`))},be=He=>{const{componentCls:je,skeletonAvatarCls:Ae,skeletonTitleCls:Ne,skeletonParagraphCls:ze,skeletonButtonCls:Qe,skeletonInputCls:ot,skeletonImageCls:mt,controlHeight:Ot,controlHeightLG:xt,controlHeightSM:Ut,gradientFromColor:xn,padding:Ft,marginSM:Qt,borderRadius:Zt,titleHeight:bn,blockRadius:Pt,paragraphLiHeight:zt,controlHeightXS:sn,paragraphMarginTop:yn}=He;return{[`${je}`]:{display:"table",width:"100%",[`${je}-header`]:{display:"table-cell",paddingInlineEnd:Ft,verticalAlign:"top",[`${Ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:xn},se(Ot)),[`${Ae}-circle`]:{borderRadius:"50%"},[`${Ae}-lg`]:Object.assign({},se(xt)),[`${Ae}-sm`]:Object.assign({},se(Ut))},[`${je}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ne}`]:{width:"100%",height:bn,background:xn,borderRadius:Pt,[`+ ${ze}`]:{marginBlockStart:Ut}},[`${ze}`]:{padding:0,"> li":{width:"100%",height:zt,listStyle:"none",background:xn,borderRadius:Pt,"+ li":{marginBlockStart:sn}}},[`${ze}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${je}-content`]:{[`${Ne}, ${ze} > li`]:{borderRadius:Zt}}},[`${je}-with-avatar ${je}-content`]:{[`${Ne}`]:{marginBlockStart:Qt,[`+ ${ze}`]:{marginBlockStart:yn}}},[`${je}${je}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ye(He)),pe(He)),le(He)),xe(He)),[`${je}${je}-block`]:{width:"100%",[`${Qe}`]:{width:"100%"},[`${ot}`]:{width:"100%"}},[`${je}${je}-active`]:{[`
|
|
|
${Ne},
|
|
|
${ze} > li,
|
|
|
${Ae},
|
|
|
${Qe},
|
|
|
${ot},
|
|
|
${mt}
|
|
|
`]:Object.assign({},ce(He))}}};var Fe=(0,ne.Z)("Skeleton",He=>{const{componentCls:je}=He,Ae=(0,oe.TS)(He,{skeletonAvatarCls:`${je}-avatar`,skeletonTitleCls:`${je}-title`,skeletonParagraphCls:`${je}-paragraph`,skeletonButtonCls:`${je}-button`,skeletonInputCls:`${je}-input`,skeletonImageCls:`${je}-image`,imageSizeBase:He.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${He.gradientFromColor} 25%, ${He.gradientToColor} 37%, ${He.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[be(Ae)]},He=>{const{colorFillContent:je,colorFill:Ae}=He,Ne=je,ze=Ae;return{color:Ne,colorGradientEnd:ze,gradientFromColor:Ne,gradientToColor:ze,titleHeight:He.controlHeight/2,blockRadius:He.borderRadiusSM,paragraphMarginTop:He.marginLG+He.marginXXS,paragraphLiHeight:He.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),De=He=>{const{prefixCls:je,className:Ae,rootClassName:Ne,active:ze,shape:Qe="circle",size:ot="default"}=He,{getPrefixCls:mt}=x.useContext(Te.E_),Ot=mt("skeleton",je),[xt,Ut]=Fe(Ot),xn=(0,ve.Z)(He,["prefixCls","className"]),Ft=Je()(Ot,`${Ot}-element`,{[`${Ot}-active`]:ze},Ae,Ne,Ut);return xt(x.createElement("div",{className:Ft},x.createElement(te,Object.assign({prefixCls:`${Ot}-avatar`,shape:Qe,size:ot},xn))))},Ie=He=>{const{prefixCls:je,className:Ae,rootClassName:Ne,active:ze,block:Qe=!1,size:ot="default"}=He,{getPrefixCls:mt}=x.useContext(Te.E_),Ot=mt("skeleton",je),[xt,Ut]=Fe(Ot),xn=(0,ve.Z)(He,["prefixCls"]),Ft=Je()(Ot,`${Ot}-element`,{[`${Ot}-active`]:ze,[`${Ot}-block`]:Qe},Ae,Ne,Ut);return xt(x.createElement("div",{className:Ft},x.createElement(te,Object.assign({prefixCls:`${Ot}-button`,size:ot},xn))))};const Be="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var _e=He=>{const{prefixCls:je,className:Ae,rootClassName:Ne,style:ze,active:Qe}=He,{getPrefixCls:ot}=x.useContext(Te.E_),mt=ot("skeleton",je),[Ot,xt]=Fe(mt),Ut=Je()(mt,`${mt}-element`,{[`${mt}-active`]:Qe},Ae,Ne,xt);return Ot(x.createElement("div",{className:Ut},x.createElement("div",{className:Je()(`${mt}-image`,Ae),style:ze},x.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${mt}-image-svg`},x.createElement("path",{d:Be,className:`${mt}-image-path`})))))},Ze=He=>{const{prefixCls:je,className:Ae,rootClassName:Ne,active:ze,block:Qe,size:ot="default"}=He,{getPrefixCls:mt}=x.useContext(Te.E_),Ot=mt("skeleton",je),[xt,Ut]=Fe(Ot),xn=(0,ve.Z)(He,["prefixCls"]),Ft=Je()(Ot,`${Ot}-element`,{[`${Ot}-active`]:ze,[`${Ot}-block`]:Qe},Ae,Ne,Ut);return xt(x.createElement("div",{className:Ft},x.createElement(te,Object.assign({prefixCls:`${Ot}-input`,size:ot},xn))))},et=me(87462),it={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},pt=it,Ge=me(84089),Xe=function(je,Ae){return x.createElement(Ge.Z,(0,et.Z)({},je,{ref:Ae,icon:pt}))},lt=x.forwardRef(Xe),st=He=>{const{prefixCls:je,className:Ae,rootClassName:Ne,style:ze,active:Qe,children:ot}=He,{getPrefixCls:mt}=x.useContext(Te.E_),Ot=mt("skeleton",je),[xt,Ut]=Fe(Ot),xn=Je()(Ot,`${Ot}-element`,{[`${Ot}-active`]:Qe},Ut,Ae,Ne),Ft=ot!=null?ot:x.createElement(lt,null);return xt(x.createElement("div",{className:xn},x.createElement("div",{className:Je()(`${Ot}-image`,Ae),style:ze},Ft)))},nt=me(74902),at=He=>{const je=mt=>{const{width:Ot,rows:xt=2}=He;if(Array.isArray(Ot))return Ot[mt];if(xt-1===mt)return Ot},{prefixCls:Ae,className:Ne,style:ze,rows:Qe}=He,ot=(0,nt.Z)(Array(Qe)).map((mt,Ot)=>x.createElement("li",{key:Ot,style:{width:je(Ot)}}));return x.createElement("ul",{className:Je()(Ae,Ne),style:ze},ot)},vt=He=>{let{prefixCls:je,className:Ae,width:Ne,style:ze}=He;return x.createElement("h3",{className:Je()(je,Ae),style:Object.assign({width:Ne},ze)})};function Et(He){return He&&typeof He=="object"?He:{}}function At(He,je){return He&&!je?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ut(He,je){return!He&&je?{width:"38%"}:He&&je?{width:"50%"}:{}}function Ye(He,je){const Ae={};return(!He||!je)&&(Ae.width="61%"),!He&&je?Ae.rows=3:Ae.rows=2,Ae}const Ve=He=>{const{prefixCls:je,loading:Ae,className:Ne,rootClassName:ze,style:Qe,children:ot,avatar:mt=!1,title:Ot=!0,paragraph:xt=!0,active:Ut,round:xn}=He,{getPrefixCls:Ft,direction:Qt,skeleton:Zt}=x.useContext(Te.E_),bn=Ft("skeleton",je),[Pt,zt]=Fe(bn);if(Ae||!("loading"in He)){const sn=!!mt,yn=!!Ot,kn=!!xt;let Gn;if(sn){const zr=Object.assign(Object.assign({prefixCls:`${bn}-avatar`},At(yn,kn)),Et(mt));Gn=x.createElement("div",{className:`${bn}-header`},x.createElement(te,Object.assign({},zr)))}let dr;if(yn||kn){let zr;if(yn){const Dr=Object.assign(Object.assign({prefixCls:`${bn}-title`},ut(sn,kn)),Et(Ot));zr=x.createElement(vt,Object.assign({},Dr))}let Hr;if(kn){const Dr=Object.assign(Object.assign({prefixCls:`${bn}-paragraph`},Ye(sn,yn)),Et(xt));Hr=x.createElement(at,Object.assign({},Dr))}dr=x.createElement("div",{className:`${bn}-content`},zr,Hr)}const Or=Je()(bn,{[`${bn}-with-avatar`]:sn,[`${bn}-active`]:Ut,[`${bn}-rtl`]:Qt==="rtl",[`${bn}-round`]:xn},Zt==null?void 0:Zt.className,Ne,ze,zt);return Pt(x.createElement("div",{className:Or,style:Object.assign(Object.assign({},Zt==null?void 0:Zt.style),Qe)},Gn,dr))}return typeof ot!="undefined"?ot:null};Ve.Button=Ie,Ve.Avatar=De,Ve.Input=Ze,Ve.Image=_e,Ve.Node=st;var de=Ve,Ce=de},55054:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return Fe}});var Oe=me(67294),Je=me(57838),x=me(96159),Te=me(94184),ve=me.n(Te),ie=me(53124),te=me(46303),ne=ke=>{const{value:De,formatter:Le,precision:Ie,decimalSeparator:Be,groupSeparator:Ue="",prefixCls:_e}=ke;let We;if(typeof Le=="function")We=Le(De);else{const Ze=String(De),et=Ze.match(/^(-?)(\d*)(\.(\d+))?$/);if(!et||Ze==="-")We=Ze;else{const it=et[1];let pt=et[2]||"0",Ge=et[4]||"";pt=pt.replace(/\B(?=(\d{3})+(?!\d))/g,Ue),typeof Ie=="number"&&(Ge=Ge.padEnd(Ie,"0").slice(0,Ie>0?Ie:0)),Ge&&(Ge=`${Be}${Ge}`),We=[Oe.createElement("span",{key:"int",className:`${_e}-content-value-int`},it,pt),Ge&&Oe.createElement("span",{key:"decimal",className:`${_e}-content-value-decimal`},Ge)]}}return Oe.createElement("span",{className:`${_e}-content-value`},We)},oe=me(14747),he=me(67968),re=me(45503);const se=ke=>{const{componentCls:De,marginXXS:Le,padding:Ie,colorTextDescription:Be,titleFontSize:Ue,colorTextHeading:_e,contentFontSize:We,fontFamily:Ze}=ke;return{[`${De}`]:Object.assign(Object.assign({},(0,oe.Wf)(ke)),{[`${De}-title`]:{marginBottom:Le,color:Be,fontSize:Ue},[`${De}-skeleton`]:{paddingTop:Ie},[`${De}-content`]:{color:_e,fontSize:We,fontFamily:Ze,[`${De}-content-value`]:{display:"inline-block",direction:"ltr"},[`${De}-content-prefix, ${De}-content-suffix`]:{display:"inline-block"},[`${De}-content-prefix`]:{marginInlineEnd:Le},[`${De}-content-suffix`]:{marginInlineStart:Le}}})}};var ce=(0,he.Z)("Statistic",ke=>{const De=(0,re.TS)(ke,{});return[se(De)]},ke=>{const{fontSizeHeading3:De,fontSize:Le}=ke;return{titleFontSize:Le,contentFontSize:De}}),pe=ke=>{const{prefixCls:De,className:Le,rootClassName:Ie,style:Be,valueStyle:Ue,value:_e=0,title:We,valueRender:Ze,prefix:et,suffix:it,loading:pt=!1,onMouseEnter:Ge,onMouseLeave:Xe,decimalSeparator:lt=".",groupSeparator:dt=","}=ke,{getPrefixCls:st,direction:nt,statistic:rt}=Oe.useContext(ie.E_),at=st("statistic",De),[gt,vt]=ce(at),Et=Oe.createElement(ne,Object.assign({decimalSeparator:lt,groupSeparator:dt,prefixCls:at},ke,{value:_e})),At=ve()(at,{[`${at}-rtl`]:nt==="rtl"},rt==null?void 0:rt.className,Le,Ie,vt);return gt(Oe.createElement("div",{className:At,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Be),onMouseEnter:Ge,onMouseLeave:Xe},We&&Oe.createElement("div",{className:`${at}-title`},We),Oe.createElement(te.Z,{paragraph:!1,loading:pt,className:`${at}-skeleton`},Oe.createElement("div",{style:Ue,className:`${at}-content`},et&&Oe.createElement("span",{className:`${at}-content-prefix`},et),Ze?Ze(Et):Et,it&&Oe.createElement("span",{className:`${at}-content-suffix`},it)))))};const le=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Se(ke,De){let Le=ke;const Ie=/\[[^\]]*]/g,Be=(De.match(Ie)||[]).map(Ze=>Ze.slice(1,-1)),Ue=De.replace(Ie,"[]"),_e=le.reduce((Ze,et)=>{let[it,pt]=et;if(Ze.includes(it)){const Ge=Math.floor(Le/pt);return Le-=Ge*pt,Ze.replace(new RegExp(`${it}+`,"g"),Xe=>{const lt=Xe.length;return Ge.toString().padStart(lt,"0")})}return Ze},Ue);let We=0;return _e.replace(Ie,()=>{const Ze=Be[We];return We+=1,Ze})}function xe(ke,De){const{format:Le=""}=De,Ie=new Date(ke).getTime(),Be=Date.now(),Ue=Math.max(Ie-Be,0);return Se(Ue,Le)}const ge=1e3/30;function Me(ke){return new Date(ke).getTime()}const ye=ke=>{const{value:De,format:Le="HH:mm:ss",onChange:Ie,onFinish:Be}=ke,Ue=(0,Je.Z)(),_e=Oe.useRef(null),We=()=>{Be==null||Be(),_e.current&&(clearInterval(_e.current),_e.current=null)},Ze=()=>{const pt=Me(De);pt>=Date.now()&&(_e.current=setInterval(()=>{Ue(),Ie==null||Ie(pt-Date.now()),pt<Date.now()&&We()},ge))};Oe.useEffect(()=>(Ze(),()=>{_e.current&&(clearInterval(_e.current),_e.current=null)}),[De]);const et=(pt,Ge)=>xe(pt,Object.assign(Object.assign({},Ge),{format:Le})),it=pt=>(0,x.Tm)(pt,{title:void 0});return Oe.createElement(pe,Object.assign({},ke,{valueRender:it,formatter:et}))};var be=Oe.memo(ye);pe.Countdown=be;var Fe=pe},33507:function(tn,Kt){"use strict";const me=Oe=>({[Oe.componentCls]:{[`${Oe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${Oe.motionDurationMid} ${Oe.motionEaseInOut},
|
|
|
opacity ${Oe.motionDurationMid} ${Oe.motionEaseInOut} !important`}},[`${Oe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${Oe.motionDurationMid} ${Oe.motionEaseInOut},
|
|
|
opacity ${Oe.motionDurationMid} ${Oe.motionEaseInOut} !important`}}});Kt.Z=me},33297:function(tn,Kt,me){"use strict";me.d(Kt,{Fm:function(){return re}});var Oe=me(34367),Je=me(93590);const x=new Oe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Te=new Oe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ve=new Oe.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ie=new Oe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),te=new Oe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ae=new Oe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ne=new Oe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oe=new Oe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),he={"move-up":{inKeyframes:ne,outKeyframes:oe},"move-down":{inKeyframes:x,outKeyframes:Te},"move-left":{inKeyframes:ve,outKeyframes:ie},"move-right":{inKeyframes:te,outKeyframes:ae}},re=(se,ce)=>{const{antCls:fe}=se,pe=`${fe}-${ce}`,{inKeyframes:le,outKeyframes:Se}=he[ce];return[(0,Je.R)(pe,le,Se,se.motionDurationMid),{[`
|
|
|
${pe}-enter,
|
|
|
${pe}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:se.motionEaseOutCirc},[`${pe}-leave`]:{animationTimingFunction:se.motionEaseInOutCirc}}]}},67771:function(tn,Kt,me){"use strict";me.d(Kt,{Qt:function(){return ve},Uw:function(){return Te},fJ:function(){return x},ly:function(){return ie},oN:function(){return re}});var Oe=me(34367),Je=me(93590);const x=new Oe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Te=new Oe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ve=new Oe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ie=new Oe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),te=new Oe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ae=new Oe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ne=new Oe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),oe=new Oe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),he={"slide-up":{inKeyframes:x,outKeyframes:Te},"slide-down":{inKeyframes:ve,outKeyframes:ie},"slide-left":{inKeyframes:te,outKeyframes:ae},"slide-right":{inKeyframes:ne,outKeyframes:oe}},re=(se,ce)=>{const{antCls:fe}=se,pe=`${fe}-${ce}`,{inKeyframes:le,outKeyframes:Se}=he[ce];return[(0,Je.R)(pe,le,Se,se.motionDurationMid),{[`
|
|
|
${pe}-enter,
|
|
|
${pe}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:se.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${pe}-leave`]:{animationTimingFunction:se.motionEaseInQuint}}]}},47897:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return He}});var Oe=me(3407),Je=me(94184),x=me.n(Je);function Te(){return Te=Object.assign?Object.assign.bind():function(je){for(var Ae=1;Ae<arguments.length;Ae++){var Ne=arguments[Ae];for(var ze in Ne)Object.prototype.hasOwnProperty.call(Ne,ze)&&(je[ze]=Ne[ze])}return je},Te.apply(this,arguments)}function ve(je){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},ve(je)}function ie(je,Ae){if(ve(je)!=="object"||je===null)return je;var Ne=je[Symbol.toPrimitive];if(Ne!==void 0){var ze=Ne.call(je,Ae||"default");if(ve(ze)!=="object")return ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ae==="string"?String:Number)(je)}function te(je){var Ae=ie(je,"string");return ve(Ae)==="symbol"?Ae:String(Ae)}function ae(je,Ae,Ne){return Ae=te(Ae),Ae in je?Object.defineProperty(je,Ae,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):je[Ae]=Ne,je}function ne(je){if(Array.isArray(je))return je}function oe(je,Ae){var Ne=je==null?null:typeof Symbol!="undefined"&&je[Symbol.iterator]||je["@@iterator"];if(Ne!=null){var ze,Qe,ot,mt,Ot=[],xt=!0,Ut=!1;try{if(ot=(Ne=Ne.call(je)).next,Ae===0){if(Object(Ne)!==Ne)return;xt=!1}else for(;!(xt=(ze=ot.call(Ne)).done)&&(Ot.push(ze.value),Ot.length!==Ae);xt=!0);}catch(xn){Ut=!0,Qe=xn}finally{try{if(!xt&&Ne.return!=null&&(mt=Ne.return(),Object(mt)!==mt))return}finally{if(Ut)throw Qe}}return Ot}}function he(je,Ae){(Ae==null||Ae>je.length)&&(Ae=je.length);for(var Ne=0,ze=new Array(Ae);Ne<Ae;Ne++)ze[Ne]=je[Ne];return ze}function re(je,Ae){if(je){if(typeof je=="string")return he(je,Ae);var Ne=Object.prototype.toString.call(je).slice(8,-1);if(Ne==="Object"&&je.constructor&&(Ne=je.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(je);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return he(je,Ae)}}function se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(je,Ae){return ne(je)||oe(je,Ae)||re(je,Ae)||se()}function fe(je,Ae){if(je==null)return{};var Ne={},ze=Object.keys(je),Qe,ot;for(ot=0;ot<ze.length;ot++)Qe=ze[ot],!(Ae.indexOf(Qe)>=0)&&(Ne[Qe]=je[Qe]);return Ne}function pe(je,Ae){if(je==null)return{};var Ne=fe(je,Ae),ze,Qe;if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(je);for(Qe=0;Qe<ot.length;Qe++)ze=ot[Qe],!(Ae.indexOf(ze)>=0)&&Object.prototype.propertyIsEnumerable.call(je,ze)&&(Ne[ze]=je[ze])}return Ne}var le=me(67294);function Se(je){if(Array.isArray(je))return je}function xe(je,Ae){var Ne=je==null?null:typeof Symbol!="undefined"&&je[Symbol.iterator]||je["@@iterator"];if(Ne!=null){var ze,Qe,ot,mt,Ot=[],xt=!0,Ut=!1;try{if(ot=(Ne=Ne.call(je)).next,Ae===0){if(Object(Ne)!==Ne)return;xt=!1}else for(;!(xt=(ze=ot.call(Ne)).done)&&(Ot.push(ze.value),Ot.length!==Ae);xt=!0);}catch(xn){Ut=!0,Qe=xn}finally{try{if(!xt&&Ne.return!=null&&(mt=Ne.return(),Object(mt)!==mt))return}finally{if(Ut)throw Qe}}return Ot}}function ge(je,Ae){(Ae==null||Ae>je.length)&&(Ae=je.length);for(var Ne=0,ze=new Array(Ae);Ne<Ae;Ne++)ze[Ne]=je[Ne];return ze}function Me(je,Ae){if(je){if(typeof je=="string")return ge(je,Ae);var Ne=Object.prototype.toString.call(je).slice(8,-1);if(Ne==="Object"&&je.constructor&&(Ne=je.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(je);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return ge(je,Ae)}}function ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(je,Ae){return Se(je)||xe(je,Ae)||Me(je,Ae)||ye()}function Fe(je){var Ae=le.useRef();Ae.current=je;var Ne=le.useCallback(function(){for(var ze,Qe=arguments.length,ot=new Array(Qe),mt=0;mt<Qe;mt++)ot[mt]=arguments[mt];return(ze=Ae.current)===null||ze===void 0?void 0:ze.call.apply(ze,[Ae].concat(ot))},[]);return Ne}function ke(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var De=ke()?le.useLayoutEffect:le.useEffect,Le=function(Ae,Ne){var ze=le.useRef(!0);De(function(){return Ae(ze.current)},Ne),De(function(){return ze.current=!1,function(){ze.current=!0}},[])},Ie=function(Ae,Ne){Le(function(ze){if(!ze)return Ae()},Ne)},Be=null;function Ue(je){var Ae=le.useRef(!1),Ne=le.useState(je),ze=be(Ne,2),Qe=ze[0],ot=ze[1];le.useEffect(function(){return Ae.current=!1,function(){Ae.current=!0}},[]);function mt(Ot,xt){xt&&Ae.current||ot(Ot)}return[Qe,mt]}function _e(je){return je!==void 0}function We(je,Ae){var Ne=Ae||{},ze=Ne.defaultValue,Qe=Ne.value,ot=Ne.onChange,mt=Ne.postState,Ot=Ue(function(){return _e(Qe)?Qe:_e(ze)?typeof ze=="function"?ze():ze:typeof je=="function"?je():je}),xt=be(Ot,2),Ut=xt[0],xn=xt[1],Ft=Qe!==void 0?Qe:Ut,Qt=mt?mt(Ft):Ft,Zt=Fe(ot),bn=Ue([Ft]),Pt=be(bn,2),zt=Pt[0],sn=Pt[1];Ie(function(){var kn=zt[0];Ut!==kn&&Zt(Ut,kn)},[zt]),Ie(function(){_e(Qe)||xn(Qe)},[Qe]);var yn=Fe(function(kn,Gn){xn(kn,Gn),sn([Ft],Gn)});return[Qt,yn]}var Ze={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ae){var Ne=Ae.keyCode;if(Ae.altKey&&!Ae.ctrlKey||Ae.metaKey||Ne>=Ze.F1&&Ne<=Ze.F12)return!1;switch(Ne){case Ze.ALT:case Ze.CAPS_LOCK:case Ze.CONTEXT_MENU:case Ze.CTRL:case Ze.DOWN:case Ze.END:case Ze.ESC:case Ze.HOME:case Ze.INSERT:case Ze.LEFT:case Ze.MAC_FF_META:case Ze.META:case Ze.NUMLOCK:case Ze.NUM_CENTER:case Ze.PAGE_DOWN:case Ze.PAGE_UP:case Ze.PAUSE:case Ze.PRINT_SCREEN:case Ze.RIGHT:case Ze.SHIFT:case Ze.UP:case Ze.WIN_KEY:case Ze.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ae){if(Ae>=Ze.ZERO&&Ae<=Ze.NINE||Ae>=Ze.NUM_ZERO&&Ae<=Ze.NUM_MULTIPLY||Ae>=Ze.A&&Ae<=Ze.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ae===0)return!0;switch(Ae){case Ze.SPACE:case Ze.QUESTION_MARK:case Ze.NUM_PLUS:case Ze.NUM_MINUS:case Ze.NUM_PERIOD:case Ze.NUM_DIVISION:case Ze.SEMICOLON:case Ze.DASH:case Ze.EQUALS:case Ze.COMMA:case Ze.PERIOD:case Ze.SLASH:case Ze.APOSTROPHE:case Ze.SINGLE_QUOTE:case Ze.OPEN_SQUARE_BRACKET:case Ze.BACKSLASH:case Ze.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},et=Ze,it=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],pt=le.forwardRef(function(je,Ae){var Ne,ze=je.prefixCls,Qe=ze===void 0?"rc-switch":ze,ot=je.className,mt=je.checked,Ot=je.defaultChecked,xt=je.disabled,Ut=je.loadingIcon,xn=je.checkedChildren,Ft=je.unCheckedChildren,Qt=je.onClick,Zt=je.onChange,bn=je.onKeyDown,Pt=pe(je,it),zt=We(!1,{value:mt,defaultValue:Ot}),sn=ce(zt,2),yn=sn[0],kn=sn[1];function Gn(Hr,Dr){var Kr=yn;return xt||(Kr=Hr,kn(Kr),Zt==null||Zt(Kr,Dr)),Kr}function dr(Hr){Hr.which===et.LEFT?Gn(!1,Hr):Hr.which===et.RIGHT&&Gn(!0,Hr),bn==null||bn(Hr)}function Or(Hr){var Dr=Gn(!yn,Hr);Qt==null||Qt(Dr,Hr)}var zr=x()(Qe,ot,(Ne={},ae(Ne,"".concat(Qe,"-checked"),yn),ae(Ne,"".concat(Qe,"-disabled"),xt),Ne));return le.createElement("button",Te({},Pt,{type:"button",role:"switch","aria-checked":yn,disabled:xt,className:zr,ref:Ae,onKeyDown:dr,onClick:Or}),Ut,le.createElement("span",{className:"".concat(Qe,"-inner")},le.createElement("span",{className:"".concat(Qe,"-inner-checked")},xn),le.createElement("span",{className:"".concat(Qe,"-inner-unchecked")},Ft)))});pt.displayName="Switch";var Ge=pt,Xe=me(45353),lt=me(53124),dt=me(98866),st=me(98675),nt=me(84780),rt=me(14747),at=me(67968),gt=me(45503);const vt=je=>{const{componentCls:Ae,trackHeightSM:Ne,trackPadding:ze,trackMinWidthSM:Qe,innerMinMarginSM:ot,innerMaxMarginSM:mt,handleSizeSM:Ot}=je,xt=`${Ae}-inner`;return{[Ae]:{[`&${Ae}-small`]:{minWidth:Qe,height:Ne,lineHeight:`${Ne}px`,[`${Ae}-inner`]:{paddingInlineStart:mt,paddingInlineEnd:ot,[`${xt}-checked`]:{marginInlineStart:`calc(-100% + ${Ot+ze*2}px - ${mt*2}px)`,marginInlineEnd:`calc(100% - ${Ot+ze*2}px + ${mt*2}px)`},[`${xt}-unchecked`]:{marginTop:-Ne,marginInlineStart:0,marginInlineEnd:0}},[`${Ae}-handle`]:{width:Ot,height:Ot},[`${Ae}-loading-icon`]:{top:(Ot-je.switchLoadingIconSize)/2,fontSize:je.switchLoadingIconSize},[`&${Ae}-checked`]:{[`${Ae}-inner`]:{paddingInlineStart:ot,paddingInlineEnd:mt,[`${xt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${xt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ot+ze*2}px + ${mt*2}px)`,marginInlineEnd:`calc(-100% + ${Ot+ze*2}px - ${mt*2}px)`}},[`${Ae}-handle`]:{insetInlineStart:`calc(100% - ${Ot+ze}px)`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${xt}`]:{[`${xt}-unchecked`]:{marginInlineStart:je.marginXXS/2,marginInlineEnd:-je.marginXXS/2}},[`&${Ae}-checked ${xt}`]:{[`${xt}-checked`]:{marginInlineStart:-je.marginXXS/2,marginInlineEnd:je.marginXXS/2}}}}}}},Et=je=>{const{componentCls:Ae,handleSize:Ne}=je;return{[Ae]:{[`${Ae}-loading-icon${je.iconCls}`]:{position:"relative",top:(Ne-je.fontSize)/2,color:je.switchLoadingIconColor,verticalAlign:"top"},[`&${Ae}-checked ${Ae}-loading-icon`]:{color:je.switchColor}}}},At=je=>{const{componentCls:Ae,motion:Ne,trackPadding:ze,handleBg:Qe,handleShadow:ot,handleSize:mt}=je,Ot=`${Ae}-handle`;return{[Ae]:{[Ot]:{position:"absolute",top:ze,insetInlineStart:ze,width:mt,height:mt,transition:`all ${je.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Qe,borderRadius:mt/2,boxShadow:ot,transition:`all ${je.switchDuration} ease-in-out`,content:'""'}},[`&${Ae}-checked ${Ot}`]:{insetInlineStart:`calc(100% - ${mt+ze}px)`},[`&:not(${Ae}-disabled):active`]:Ne?{[`${Ot}::before`]:{insetInlineEnd:je.switchHandleActiveInset,insetInlineStart:0},[`&${Ae}-checked ${Ot}::before`]:{insetInlineEnd:0,insetInlineStart:je.switchHandleActiveInset}}:{}}}},ut=je=>{const{componentCls:Ae,trackHeight:Ne,trackPadding:ze,innerMinMargin:Qe,innerMaxMargin:ot,handleSize:mt}=je,Ot=`${Ae}-inner`;return{[Ae]:{[Ot]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ot,paddingInlineEnd:Qe,transition:`padding-inline-start ${je.switchDuration} ease-in-out, padding-inline-end ${je.switchDuration} ease-in-out`,[`${Ot}-checked, ${Ot}-unchecked`]:{display:"block",color:je.colorTextLightSolid,fontSize:je.fontSizeSM,transition:`margin-inline-start ${je.switchDuration} ease-in-out, margin-inline-end ${je.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ot}-checked`]:{marginInlineStart:`calc(-100% + ${mt+ze*2}px - ${ot*2}px)`,marginInlineEnd:`calc(100% - ${mt+ze*2}px + ${ot*2}px)`},[`${Ot}-unchecked`]:{marginTop:-Ne,marginInlineStart:0,marginInlineEnd:0}},[`&${Ae}-checked ${Ot}`]:{paddingInlineStart:Qe,paddingInlineEnd:ot,[`${Ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ot}-unchecked`]:{marginInlineStart:`calc(100% - ${mt+ze*2}px + ${ot*2}px)`,marginInlineEnd:`calc(-100% + ${mt+ze*2}px - ${ot*2}px)`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${Ot}`]:{[`${Ot}-unchecked`]:{marginInlineStart:ze*2,marginInlineEnd:-ze*2}},[`&${Ae}-checked ${Ot}`]:{[`${Ot}-checked`]:{marginInlineStart:-ze*2,marginInlineEnd:ze*2}}}}}},Ye=je=>{const{componentCls:Ae,trackHeight:Ne,trackMinWidth:ze}=je;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,rt.Wf)(je)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ze,height:Ne,lineHeight:`${Ne}px`,verticalAlign:"middle",background:je.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${je.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ae}-disabled)`]:{background:je.colorTextTertiary}}),(0,rt.Qy)(je)),{[`&${Ae}-checked`]:{background:je.switchColor,[`&:hover:not(${Ae}-disabled)`]:{background:je.colorPrimaryHover}},[`&${Ae}-loading, &${Ae}-disabled`]:{cursor:"not-allowed",opacity:je.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ae}-rtl`]:{direction:"rtl"}})}};var Ve=(0,at.Z)("Switch",je=>{const Ae=(0,gt.TS)(je,{switchDuration:je.motionDurationMid,switchColor:je.colorPrimary,switchDisabledOpacity:je.opacityLoading,switchLoadingIconSize:je.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${je.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ye(Ae),ut(Ae),At(Ae),Et(Ae),vt(Ae)]},je=>{const{fontSize:Ae,lineHeight:Ne,controlHeight:ze,colorWhite:Qe}=je,ot=Ae*Ne,mt=ze/2,Ot=2,xt=ot-Ot*2,Ut=mt-Ot*2;return{trackHeight:ot,trackHeightSM:mt,trackMinWidth:xt*2+Ot*4,trackMinWidthSM:Ut*2+Ot*2,trackPadding:Ot,handleBg:Qe,handleSize:xt,handleSizeSM:Ut,handleShadow:`0 2px 4px 0 ${new nt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:xt/2,innerMaxMargin:xt+Ot+Ot*2,innerMinMarginSM:Ut/2,innerMaxMarginSM:Ut+Ot+Ot*2}}),de=function(je,Ae){var Ne={};for(var ze in je)Object.prototype.hasOwnProperty.call(je,ze)&&Ae.indexOf(ze)<0&&(Ne[ze]=je[ze]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ze=Object.getOwnPropertySymbols(je);Qe<ze.length;Qe++)Ae.indexOf(ze[Qe])<0&&Object.prototype.propertyIsEnumerable.call(je,ze[Qe])&&(Ne[ze[Qe]]=je[ze[Qe]]);return Ne};const Ce=le.forwardRef((je,Ae)=>{const{prefixCls:Ne,size:ze,disabled:Qe,loading:ot,className:mt,rootClassName:Ot,style:xt}=je,Ut=de(je,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:xn,direction:Ft,switch:Qt}=le.useContext(lt.E_),Zt=le.useContext(dt.Z),bn=(Qe!=null?Qe:Zt)||ot,Pt=xn("switch",Ne),zt=le.createElement("div",{className:`${Pt}-handle`},ot&&le.createElement(Oe.Z,{className:`${Pt}-loading-icon`})),[sn,yn]=Ve(Pt),kn=(0,st.Z)(ze),Gn=x()(Qt==null?void 0:Qt.className,{[`${Pt}-small`]:kn==="small",[`${Pt}-loading`]:ot,[`${Pt}-rtl`]:Ft==="rtl"},mt,Ot,yn),dr=Object.assign(Object.assign({},Qt==null?void 0:Qt.style),xt);return sn(le.createElement(Xe.Z,{component:"Switch"},le.createElement(Ge,Object.assign({},Ut,{prefixCls:Pt,className:Gn,style:dr,disabled:bn,ref:Ae,loadingIcon:zt}))))});Ce.__ANT_SWITCH=!0;var He=Ce},66368:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return Yn}});var Oe=me(73475),Je=me(25877),x=me(38308),Te=me(94184),ve=me.n(Te),ie=me(87462),te=me(4942),ae=me(1413),ne=me(97685),oe=me(71002),he=me(45987),re=me(67294),se=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var qe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(qe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(qe==null?void 0:qe.substr(0,4))};function ce(qe){var yt=re.useRef();yt.current=qe;var St=re.useCallback(function(){for(var Dt,Tt=arguments.length,Nt=new Array(Tt),_t=0;_t<Tt;_t++)Nt[_t]=arguments[_t];return(Dt=yt.current)===null||Dt===void 0?void 0:Dt.call.apply(Dt,[yt].concat(Nt))},[]);return St}function fe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var pe=fe()?re.useLayoutEffect:re.useEffect,le=function(yt,St){var Dt=re.useRef(!0);pe(function(){return yt(Dt.current)},St),pe(function(){return Dt.current=!1,function(){Dt.current=!0}},[])},Se=function(yt,St){le(function(Dt){if(!Dt)return yt()},St)},xe=null;function ge(qe){var yt=re.useRef(!1),St=re.useState(qe),Dt=(0,ne.Z)(St,2),Tt=Dt[0],Nt=Dt[1];re.useEffect(function(){return yt.current=!1,function(){yt.current=!0}},[]);function _t(on,gn){gn&&yt.current||Nt(on)}return[Tt,_t]}function Me(qe){return qe!==void 0}function ye(qe,yt){var St=yt||{},Dt=St.defaultValue,Tt=St.value,Nt=St.onChange,_t=St.postState,on=ge(function(){return Me(Tt)?Tt:Me(Dt)?typeof Dt=="function"?Dt():Dt:typeof qe=="function"?qe():qe}),gn=(0,ne.Z)(on,2),Vn=gn[0],qn=gn[1],Xn=Tt!==void 0?Tt:Vn,Dn=_t?_t(Xn):Xn,In=ce(Nt),Cn=ge([Xn]),Zn=(0,ne.Z)(Cn,2),pr=Zn[0],$n=Zn[1];Se(function(){var ur=pr[0];Vn!==ur&&In(Vn,ur)},[pr]),Se(function(){Me(Tt)||qn(Tt)},[Tt]);var ar=ce(function(ur,mr){qn(ur,mr),$n([Xn],mr)});return[Dn,ar]}var be=me(62874),Fe=(0,re.createContext)(null),ke=re.forwardRef(function(qe,yt){var St=qe.prefixCls,Dt=qe.className,Tt=qe.style,Nt=qe.id,_t=qe.active,on=qe.tabKey,gn=qe.children;return re.createElement("div",{id:Nt&&"".concat(Nt,"-panel-").concat(on),role:"tabpanel",tabIndex:_t?0:-1,"aria-labelledby":Nt&&"".concat(Nt,"-tab-").concat(on),"aria-hidden":!_t,style:Tt,className:ve()(St,_t&&"".concat(St,"-active"),Dt),ref:yt},gn)}),De=ke,Le=["key","forceRender","style","className"];function Ie(qe){var yt=qe.id,St=qe.activeKey,Dt=qe.animated,Tt=qe.tabPosition,Nt=qe.destroyInactiveTabPane,_t=re.useContext(Fe),on=_t.prefixCls,gn=_t.tabs,Vn=Dt.tabPane,qn="".concat(on,"-tabpane");return re.createElement("div",{className:ve()("".concat(on,"-content-holder"))},re.createElement("div",{className:ve()("".concat(on,"-content"),"".concat(on,"-content-").concat(Tt),(0,te.Z)({},"".concat(on,"-content-animated"),Vn))},gn.map(function(Xn){var Dn=Xn.key,In=Xn.forceRender,Cn=Xn.style,Zn=Xn.className,pr=(0,he.Z)(Xn,Le),$n=Dn===St;return re.createElement(be.Z,(0,ie.Z)({key:Dn,visible:$n,forceRender:In,removeOnLeave:!!Nt,leavedClassName:"".concat(qn,"-hidden")},Dt.tabPaneMotion),function(ar,ur){var mr=ar.style,wr=ar.className;return re.createElement(De,(0,ie.Z)({},pr,{prefixCls:qn,id:yt,tabKey:Dn,animated:Vn,active:$n,style:(0,ae.Z)((0,ae.Z)({},Cn),mr),className:ve()(Zn,wr),ref:ur}))})})))}var Be=me(74902),Ue=me(48555),_e=me(59864);function We(qe,yt,St){var Dt=re.useRef({});return(!("value"in Dt.current)||St(Dt.current.condition,yt))&&(Dt.current.value=qe(),Dt.current.condition=yt),Dt.current.value}function Ze(qe,yt){typeof qe=="function"?qe(yt):(0,oe.Z)(qe)==="object"&&qe&&"current"in qe&&(qe.current=yt)}function et(){for(var qe=arguments.length,yt=new Array(qe),St=0;St<qe;St++)yt[St]=arguments[St];var Dt=yt.filter(function(Tt){return Tt});return Dt.length<=1?Dt[0]:function(Tt){yt.forEach(function(Nt){Ze(Nt,Tt)})}}function it(){for(var qe=arguments.length,yt=new Array(qe),St=0;St<qe;St++)yt[St]=arguments[St];return We(function(){return et.apply(void 0,yt)},yt,function(Dt,Tt){return Dt.length===Tt.length&&Dt.every(function(Nt,_t){return Nt===Tt[_t]})})}function pt(qe){var yt,St,Dt=isMemo(qe)?qe.type.type:qe.type;return!(typeof Dt=="function"&&!((yt=Dt.prototype)!==null&&yt!==void 0&&yt.render)||typeof qe=="function"&&!((St=qe.prototype)!==null&&St!==void 0&&St.render))}var Ge={width:0,height:0,left:0,top:0};function Xe(qe,yt,St){return(0,re.useMemo)(function(){for(var Dt,Tt=new Map,Nt=yt.get((Dt=qe[0])===null||Dt===void 0?void 0:Dt.key)||Ge,_t=Nt.left+Nt.width,on=0;on<qe.length;on+=1){var gn=qe[on].key,Vn=yt.get(gn);if(!Vn){var qn;Vn=yt.get((qn=qe[on-1])===null||qn===void 0?void 0:qn.key)||Ge}var Xn=Tt.get(gn)||(0,ae.Z)({},Vn);Xn.right=_t-Xn.left-Xn.width,Tt.set(gn,Xn)}return Tt},[qe.map(function(Dt){return Dt.key}).join("_"),yt,St])}function lt(qe,yt){var St=re.useRef(qe),Dt=re.useState({}),Tt=(0,ne.Z)(Dt,2),Nt=Tt[1];function _t(on){var gn=typeof on=="function"?on(St.current):on;gn!==St.current&&yt(gn,St.current),St.current=gn,Nt({})}return[St.current,_t]}var dt=.1,st=.01,nt=20,rt=Math.pow(.995,nt);function at(qe,yt){var St=(0,re.useState)(),Dt=(0,ne.Z)(St,2),Tt=Dt[0],Nt=Dt[1],_t=(0,re.useState)(0),on=(0,ne.Z)(_t,2),gn=on[0],Vn=on[1],qn=(0,re.useState)(0),Xn=(0,ne.Z)(qn,2),Dn=Xn[0],In=Xn[1],Cn=(0,re.useState)(),Zn=(0,ne.Z)(Cn,2),pr=Zn[0],$n=Zn[1],ar=(0,re.useRef)();function ur(Yt){var En=Yt.touches[0],Hn=En.screenX,Ht=En.screenY;Nt({x:Hn,y:Ht}),window.clearInterval(ar.current)}function mr(Yt){if(Tt){Yt.preventDefault();var En=Yt.touches[0],Hn=En.screenX,Ht=En.screenY;Nt({x:Hn,y:Ht});var Vt=Hn-Tt.x,Gt=Ht-Tt.y;yt(Vt,Gt);var en=Date.now();Vn(en),In(en-gn),$n({x:Vt,y:Gt})}}function wr(){if(Tt&&(Nt(null),$n(null),pr)){var Yt=pr.x/Dn,En=pr.y/Dn,Hn=Math.abs(Yt),Ht=Math.abs(En);if(Math.max(Hn,Ht)<dt)return;var Vt=Yt,Gt=En;ar.current=window.setInterval(function(){if(Math.abs(Vt)<st&&Math.abs(Gt)<st){window.clearInterval(ar.current);return}Vt*=rt,Gt*=rt,yt(Vt*nt,Gt*nt)},nt)}}var kt=(0,re.useRef)();function It(Yt){var En=Yt.deltaX,Hn=Yt.deltaY,Ht=0,Vt=Math.abs(En),Gt=Math.abs(Hn);Vt===Gt?Ht=kt.current==="x"?En:Hn:Vt>Gt?(Ht=En,kt.current="x"):(Ht=Hn,kt.current="y"),yt(-Ht,-Ht)&&Yt.preventDefault()}var qt=(0,re.useRef)(null);qt.current={onTouchStart:ur,onTouchMove:mr,onTouchEnd:wr,onWheel:It},re.useEffect(function(){function Yt(Vt){qt.current.onTouchStart(Vt)}function En(Vt){qt.current.onTouchMove(Vt)}function Hn(Vt){qt.current.onTouchEnd(Vt)}function Ht(Vt){qt.current.onWheel(Vt)}return document.addEventListener("touchmove",En,{passive:!1}),document.addEventListener("touchend",Hn,{passive:!1}),qe.current.addEventListener("touchstart",Yt,{passive:!1}),qe.current.addEventListener("wheel",Ht),function(){document.removeEventListener("touchmove",En),document.removeEventListener("touchend",Hn)}},[])}function gt(qe){var yt=(0,re.useState)(0),St=(0,ne.Z)(yt,2),Dt=St[0],Tt=St[1],Nt=(0,re.useRef)(0),_t=(0,re.useRef)();return _t.current=qe,Se(function(){var on;(on=_t.current)===null||on===void 0||on.call(_t)},[Dt]),function(){Nt.current===Dt&&(Nt.current+=1,Tt(Nt.current))}}function vt(qe){var yt=(0,re.useRef)([]),St=(0,re.useState)({}),Dt=(0,ne.Z)(St,2),Tt=Dt[1],Nt=(0,re.useRef)(typeof qe=="function"?qe():qe),_t=gt(function(){var gn=Nt.current;yt.current.forEach(function(Vn){gn=Vn(gn)}),yt.current=[],Nt.current=gn,Tt({})});function on(gn){yt.current.push(gn),_t()}return[Nt.current,on]}var Et={width:0,height:0,left:0,top:0,right:0};function At(qe,yt,St,Dt,Tt,Nt,_t){var on=_t.tabs,gn=_t.tabPosition,Vn=_t.rtl,qn,Xn,Dn;return["top","bottom"].includes(gn)?(qn="width",Xn=Vn?"right":"left",Dn=Math.abs(St)):(qn="height",Xn="top",Dn=-St),(0,re.useMemo)(function(){if(!on.length)return[0,0];for(var In=on.length,Cn=In,Zn=0;Zn<In;Zn+=1){var pr=qe.get(on[Zn].key)||Et;if(pr[Xn]+pr[qn]>Dn+yt){Cn=Zn-1;break}}for(var $n=0,ar=In-1;ar>=0;ar-=1){var ur=qe.get(on[ar].key)||Et;if(ur[Xn]<Dn){$n=ar+1;break}}return $n>=Cn?[0,0]:[$n,Cn]},[qe,yt,Dt,Tt,Nt,Dn,gn,on.map(function(In){return In.key}).join("_"),Vn])}function ut(qe){var yt;return qe instanceof Map?(yt={},qe.forEach(function(St,Dt){yt[Dt]=St})):yt=qe,JSON.stringify(yt)}var Ye="TABS_DQ";function Ve(qe){return String(qe).replace(/"/g,Ye)}function de(qe,yt,St,Dt){return!(!St||Dt||qe===!1||qe===void 0&&(yt===!1||yt===null))}function Ce(qe,yt){var St=qe.prefixCls,Dt=qe.editable,Tt=qe.locale,Nt=qe.style;return!Dt||Dt.showAdd===!1?null:re.createElement("button",{ref:yt,type:"button",className:"".concat(St,"-nav-add"),style:Nt,"aria-label":(Tt==null?void 0:Tt.addAriaLabel)||"Add tab",onClick:function(on){Dt.onEdit("add",{event:on})}},Dt.addIcon||"+")}var He=re.forwardRef(Ce),je=re.forwardRef(function(qe,yt){var St=qe.position,Dt=qe.prefixCls,Tt=qe.extra;if(!Tt)return null;var Nt,_t={};return(0,oe.Z)(Tt)==="object"&&!re.isValidElement(Tt)?_t=Tt:_t.right=Tt,St==="right"&&(Nt=_t.right),St==="left"&&(Nt=_t.left),Nt?re.createElement("div",{className:"".concat(Dt,"-extra-content"),ref:yt},Nt):null}),Ae=je,Ne=me(62709);function ze(qe,yt,St){var Dt=React.useRef({});return(!("value"in Dt.current)||St(Dt.current.condition,yt))&&(Dt.current.value=qe(),Dt.current.condition=yt),Dt.current.value}function Qe(qe,yt){typeof qe=="function"?qe(yt):(0,oe.Z)(qe)==="object"&&qe&&"current"in qe&&(qe.current=yt)}function ot(){for(var qe=arguments.length,yt=new Array(qe),St=0;St<qe;St++)yt[St]=arguments[St];var Dt=yt.filter(function(Tt){return Tt});return Dt.length<=1?Dt[0]:function(Tt){yt.forEach(function(Nt){Qe(Nt,Tt)})}}function mt(){for(var qe=arguments.length,yt=new Array(qe),St=0;St<qe;St++)yt[St]=arguments[St];return useMemo(function(){return ot.apply(void 0,yt)},yt,function(Dt,Tt){return Dt.length===Tt.length&&Dt.every(function(Nt,_t){return Nt===Tt[_t]})})}function Ot(qe){var yt,St,Dt=(0,_e.isMemo)(qe)?qe.type.type:qe.type;return!(typeof Dt=="function"&&!((yt=Dt.prototype)!==null&&yt!==void 0&&yt.render)||typeof qe=="function"&&!((St=qe.prototype)!==null&&St!==void 0&&St.render))}var xt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(yt){var St=yt.keyCode;if(yt.altKey&&!yt.ctrlKey||yt.metaKey||St>=xt.F1&&St<=xt.F12)return!1;switch(St){case xt.ALT:case xt.CAPS_LOCK:case xt.CONTEXT_MENU:case xt.CTRL:case xt.DOWN:case xt.END:case xt.ESC:case xt.HOME:case xt.INSERT:case xt.LEFT:case xt.MAC_FF_META:case xt.META:case xt.NUMLOCK:case xt.NUM_CENTER:case xt.PAGE_DOWN:case xt.PAGE_UP:case xt.PAUSE:case xt.PRINT_SCREEN:case xt.RIGHT:case xt.SHIFT:case xt.UP:case xt.WIN_KEY:case xt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(yt){if(yt>=xt.ZERO&&yt<=xt.NINE||yt>=xt.NUM_ZERO&&yt<=xt.NUM_MULTIPLY||yt>=xt.A&&yt<=xt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&yt===0)return!0;switch(yt){case xt.SPACE:case xt.QUESTION_MARK:case xt.NUM_PLUS:case xt.NUM_MINUS:case xt.NUM_PERIOD:case xt.NUM_DIVISION:case xt.SEMICOLON:case xt.DASH:case xt.EQUALS:case xt.COMMA:case xt.PERIOD:case xt.SLASH:case xt.APOSTROPHE:case xt.SINGLE_QUOTE:case xt.OPEN_SQUARE_BRACKET:case xt.BACKSLASH:case xt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ut=xt,xn=function(yt){return+setTimeout(yt,16)},Ft=function(yt){return clearTimeout(yt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(xn=function(yt){return window.requestAnimationFrame(yt)},Ft=function(yt){return window.cancelAnimationFrame(yt)});var Qt=0,Zt=new Map;function bn(qe){Zt.delete(qe)}var Pt=function(yt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Qt+=1;var Dt=Qt;function Tt(Nt){if(Nt===0)bn(Dt),yt();else{var _t=xn(function(){Tt(Nt-1)});Zt.set(Dt,_t)}}return Tt(St),Dt};Pt.cancel=function(qe){var yt=Zt.get(qe);return bn(yt),Ft(yt)};var zt=Pt,sn=Ut.ESC,yn=Ut.TAB;function kn(qe){var yt=qe.visible,St=qe.triggerRef,Dt=qe.onVisibleChange,Tt=qe.autoFocus,Nt=qe.overlayRef,_t=re.useRef(!1),on=function(){if(yt){var Xn,Dn;(Xn=St.current)===null||Xn===void 0||(Dn=Xn.focus)===null||Dn===void 0||Dn.call(Xn),Dt==null||Dt(!1)}},gn=function(){var Xn;return(Xn=Nt.current)!==null&&Xn!==void 0&&Xn.focus?(Nt.current.focus(),_t.current=!0,!0):!1},Vn=function(Xn){switch(Xn.keyCode){case sn:on();break;case yn:{var Dn=!1;_t.current||(Dn=gn()),Dn?Xn.preventDefault():on();break}}};re.useEffect(function(){return yt?(window.addEventListener("keydown",Vn),Tt&&zt(gn,3),function(){window.removeEventListener("keydown",Vn),_t.current=!1}):function(){_t.current=!1}},[yt])}var Gn=(0,re.forwardRef)(function(qe,yt){var St=qe.overlay,Dt=qe.arrow,Tt=qe.prefixCls,Nt=(0,re.useMemo)(function(){var on;return typeof St=="function"?on=St():on=St,on},[St]),_t=ot(yt,Nt==null?void 0:Nt.ref);return re.createElement(re.Fragment,null,Dt&&re.createElement("div",{className:"".concat(Tt,"-arrow")}),re.cloneElement(Nt,{ref:Ot(Nt)?_t:void 0}))}),dr=Gn,Or={adjustX:1,adjustY:1},zr=[0,0],Hr={topLeft:{points:["bl","tl"],overflow:Or,offset:[0,-4],targetOffset:zr},top:{points:["bc","tc"],overflow:Or,offset:[0,-4],targetOffset:zr},topRight:{points:["br","tr"],overflow:Or,offset:[0,-4],targetOffset:zr},bottomLeft:{points:["tl","bl"],overflow:Or,offset:[0,4],targetOffset:zr},bottom:{points:["tc","bc"],overflow:Or,offset:[0,4],targetOffset:zr},bottomRight:{points:["tr","br"],overflow:Or,offset:[0,4],targetOffset:zr}},Dr=Hr,Kr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ai(qe,yt){var St,Dt=qe.arrow,Tt=Dt===void 0?!1:Dt,Nt=qe.prefixCls,_t=Nt===void 0?"rc-dropdown":Nt,on=qe.transitionName,gn=qe.animation,Vn=qe.align,qn=qe.placement,Xn=qn===void 0?"bottomLeft":qn,Dn=qe.placements,In=Dn===void 0?Dr:Dn,Cn=qe.getPopupContainer,Zn=qe.showAction,pr=qe.hideAction,$n=qe.overlayClassName,ar=qe.overlayStyle,ur=qe.visible,mr=qe.trigger,wr=mr===void 0?["hover"]:mr,kt=qe.autoFocus,It=qe.overlay,qt=qe.children,Yt=qe.onVisibleChange,En=(0,he.Z)(qe,Kr),Hn=re.useState(),Ht=(0,ne.Z)(Hn,2),Vt=Ht[0],Gt=Ht[1],en="visible"in qe?ur:Vt,Ln=re.useRef(null),Qn=re.useRef(null),On=re.useRef(null);re.useImperativeHandle(yt,function(){return Ln.current});var Kn=function(xr){Gt(xr),Yt==null||Yt(xr)};kn({visible:en,triggerRef:On,onVisibleChange:Kn,autoFocus:kt,overlayRef:Qn});var vr=function(xr){var ii=qe.onOverlayClick;Gt(!1),ii&&ii(xr)},Br=function(){return re.createElement(dr,{ref:Qn,overlay:It,prefixCls:_t,arrow:Tt})},Cr=function(){return typeof It=="function"?Br:Br()},sr=function(){var xr=qe.minOverlayWidthMatchTrigger,ii=qe.alignPoint;return"minOverlayWidthMatchTrigger"in qe?xr:!ii},Mr=function(){var xr=qe.openClassName;return xr!==void 0?xr:"".concat(_t,"-open")},Nr=re.cloneElement(qt,{className:ve()((St=qt.props)===null||St===void 0?void 0:St.className,en&&Mr()),ref:Ot(qt)?ot(On,qt.ref):void 0}),Yr=pr;return!Yr&&wr.indexOf("contextMenu")!==-1&&(Yr=["click"]),re.createElement(Ne.Z,(0,ie.Z)({builtinPlacements:In},En,{prefixCls:_t,ref:Ln,popupClassName:ve()($n,(0,te.Z)({},"".concat(_t,"-show-arrow"),Tt)),popupStyle:ar,action:wr,showAction:Zn,hideAction:Yr,popupPlacement:Xn,popupAlign:Vn,popupTransitionName:on,popupAnimation:gn,popupVisible:en,stretch:sr()?"minWidth":"",popup:Cr(),onPopupVisibleChange:Kn,onPopupClick:vr,getPopupContainer:Cn}),Nr)}var Di=re.forwardRef(Ai),Zi=Di,di=me(78595),rn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(yt){var St=yt.keyCode;if(yt.altKey&&!yt.ctrlKey||yt.metaKey||St>=rn.F1&&St<=rn.F12)return!1;switch(St){case rn.ALT:case rn.CAPS_LOCK:case rn.CONTEXT_MENU:case rn.CTRL:case rn.DOWN:case rn.END:case rn.ESC:case rn.HOME:case rn.INSERT:case rn.LEFT:case rn.MAC_FF_META:case rn.META:case rn.NUMLOCK:case rn.NUM_CENTER:case rn.PAGE_DOWN:case rn.PAGE_UP:case rn.PAUSE:case rn.PRINT_SCREEN:case rn.RIGHT:case rn.SHIFT:case rn.UP:case rn.WIN_KEY:case rn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(yt){if(yt>=rn.ZERO&&yt<=rn.NINE||yt>=rn.NUM_ZERO&&yt<=rn.NUM_MULTIPLY||yt>=rn.A&&yt<=rn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&yt===0)return!0;switch(yt){case rn.SPACE:case rn.QUESTION_MARK:case rn.NUM_PLUS:case rn.NUM_MINUS:case rn.NUM_PERIOD:case rn.NUM_DIVISION:case rn.SEMICOLON:case rn.DASH:case rn.EQUALS:case rn.COMMA:case rn.PERIOD:case rn.SLASH:case rn.APOSTROPHE:case rn.SINGLE_QUOTE:case rn.OPEN_SQUARE_BRACKET:case rn.BACKSLASH:case rn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},zn=rn;function fr(qe,yt){var St=qe.prefixCls,Dt=qe.id,Tt=qe.tabs,Nt=qe.locale,_t=qe.mobile,on=qe.moreIcon,gn=on===void 0?"More":on,Vn=qe.moreTransitionName,qn=qe.style,Xn=qe.className,Dn=qe.editable,In=qe.tabBarGutter,Cn=qe.rtl,Zn=qe.removeAriaLabel,pr=qe.onTabClick,$n=qe.getPopupContainer,ar=qe.popupClassName,ur=(0,re.useState)(!1),mr=(0,ne.Z)(ur,2),wr=mr[0],kt=mr[1],It=(0,re.useState)(null),qt=(0,ne.Z)(It,2),Yt=qt[0],En=qt[1],Hn="".concat(Dt,"-more-popup"),Ht="".concat(St,"-dropdown"),Vt=Yt!==null?"".concat(Hn,"-").concat(Yt):null,Gt=Nt==null?void 0:Nt.dropdownAriaLabel;function en(Cr,sr){Cr.preventDefault(),Cr.stopPropagation(),Dn.onEdit("remove",{key:sr,event:Cr})}var Ln=re.createElement(di.ZP,{onClick:function(sr){var Mr=sr.key,Nr=sr.domEvent;pr(Mr,Nr),kt(!1)},prefixCls:"".concat(Ht,"-menu"),id:Hn,tabIndex:-1,role:"listbox","aria-activedescendant":Vt,selectedKeys:[Yt],"aria-label":Gt!==void 0?Gt:"expanded dropdown"},Tt.map(function(Cr){var sr=Cr.closable,Mr=Cr.disabled,Nr=Cr.closeIcon,Yr=Cr.key,Rr=Cr.label,xr=de(sr,Nr,Dn,Mr);return re.createElement(di.sN,{key:Yr,id:"".concat(Hn,"-").concat(Yr),role:"option","aria-controls":Dt&&"".concat(Dt,"-panel-").concat(Yr),disabled:Mr},re.createElement("span",null,Rr),xr&&re.createElement("button",{type:"button","aria-label":Zn||"remove",tabIndex:0,className:"".concat(Ht,"-menu-item-remove"),onClick:function(ri){ri.stopPropagation(),en(ri,Yr)}},Nr||Dn.removeIcon||"\xD7"))}));function Qn(Cr){for(var sr=Tt.filter(function(xr){return!xr.disabled}),Mr=sr.findIndex(function(xr){return xr.key===Yt})||0,Nr=sr.length,Yr=0;Yr<Nr;Yr+=1){Mr=(Mr+Cr+Nr)%Nr;var Rr=sr[Mr];if(!Rr.disabled){En(Rr.key);return}}}function On(Cr){var sr=Cr.which;if(!wr){[zn.DOWN,zn.SPACE,zn.ENTER].includes(sr)&&(kt(!0),Cr.preventDefault());return}switch(sr){case zn.UP:Qn(-1),Cr.preventDefault();break;case zn.DOWN:Qn(1),Cr.preventDefault();break;case zn.ESC:kt(!1);break;case zn.SPACE:case zn.ENTER:Yt!==null&&pr(Yt,Cr);break}}(0,re.useEffect)(function(){var Cr=document.getElementById(Vt);Cr&&Cr.scrollIntoView&&Cr.scrollIntoView(!1)},[Yt]),(0,re.useEffect)(function(){wr||En(null)},[wr]);var Kn=(0,te.Z)({},Cn?"marginRight":"marginLeft",In);Tt.length||(Kn.visibility="hidden",Kn.order=1);var vr=ve()((0,te.Z)({},"".concat(Ht,"-rtl"),Cn)),Br=_t?null:re.createElement(Zi,{prefixCls:Ht,overlay:Ln,trigger:["hover"],visible:Tt.length?wr:!1,transitionName:Vn,onVisibleChange:kt,overlayClassName:ve()(vr,ar),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:$n},re.createElement("button",{type:"button",className:"".concat(St,"-nav-more"),style:Kn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Hn,id:"".concat(Dt,"-more"),"aria-expanded":wr,onKeyDown:On},gn));return re.createElement("div",{className:ve()("".concat(St,"-nav-operations"),Xn),style:qn,ref:yt},Br,re.createElement(He,{prefixCls:St,locale:Nt,editable:Dn}))}var lr=re.memo(re.forwardRef(fr),function(qe,yt){return yt.tabMoving});function Tr(qe){var yt,St=qe.prefixCls,Dt=qe.id,Tt=qe.active,Nt=qe.tab,_t=Nt.key,on=Nt.label,gn=Nt.disabled,Vn=Nt.closeIcon,qn=qe.closable,Xn=qe.renderWrapper,Dn=qe.removeAriaLabel,In=qe.editable,Cn=qe.onClick,Zn=qe.onFocus,pr=qe.style,$n="".concat(St,"-tab"),ar=de(qn,Vn,In,gn);function ur(kt){gn||Cn(kt)}function mr(kt){kt.preventDefault(),kt.stopPropagation(),In.onEdit("remove",{key:_t,event:kt})}var wr=re.createElement("div",{key:_t,"data-node-key":Ve(_t),className:ve()($n,(yt={},(0,te.Z)(yt,"".concat($n,"-with-remove"),ar),(0,te.Z)(yt,"".concat($n,"-active"),Tt),(0,te.Z)(yt,"".concat($n,"-disabled"),gn),yt)),style:pr,onClick:ur},re.createElement("div",{role:"tab","aria-selected":Tt,id:Dt&&"".concat(Dt,"-tab-").concat(_t),className:"".concat($n,"-btn"),"aria-controls":Dt&&"".concat(Dt,"-panel-").concat(_t),"aria-disabled":gn,tabIndex:gn?null:0,onClick:function(It){It.stopPropagation(),ur(It)},onKeyDown:function(It){[zn.SPACE,zn.ENTER].includes(It.which)&&(It.preventDefault(),ur(It))},onFocus:Zn},on),ar&&re.createElement("button",{type:"button","aria-label":Dn||"remove",tabIndex:0,className:"".concat($n,"-remove"),onClick:function(It){It.stopPropagation(),mr(It)}},Vn||In.removeIcon||"\xD7"));return Xn?Xn(wr):wr}var Pr=Tr,Gr=function(yt){return+setTimeout(yt,16)},Er=function(yt){return clearTimeout(yt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Gr=function(yt){return window.requestAnimationFrame(yt)},Er=function(yt){return window.cancelAnimationFrame(yt)});var Wt=0,$t=new Map;function cn(qe){$t.delete(qe)}var Rn=function(yt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Wt+=1;var Dt=Wt;function Tt(Nt){if(Nt===0)cn(Dt),yt();else{var _t=Gr(function(){Tt(Nt-1)});$t.set(Dt,_t)}}return Tt(St),Dt};Rn.cancel=function(qe){var yt=$t.get(qe);return cn(yt),Er(yt)};var jt=Rn,an=function(yt){var St=yt.activeTabOffset,Dt=yt.horizontal,Tt=yt.rtl,Nt=yt.indicatorSize,_t=(0,re.useState)(),on=(0,ne.Z)(_t,2),gn=on[0],Vn=on[1],qn=(0,re.useRef)(),Xn=function(Cn){return typeof Nt=="function"?Nt(Cn):typeof Nt=="number"?Nt:Cn};function Dn(){jt.cancel(qn.current)}return(0,re.useEffect)(function(){var In={};return St&&(Dt?(Tt?(In.right=St.right+St.width/2,In.transform="translateX(50%)"):(In.left=St.left+St.width/2,In.transform="translateX(-50%)"),In.width=Xn(St.width)):(In.top=St.top+St.height/2,In.transform="translateY(-50%)",In.height=Xn(St.height))),Dn(),qn.current=jt(function(){Vn(In)}),Dn},[St,Dt,Tt,Nt]),{style:gn}},Tn=an,vn=function(yt){var St=yt.current||{},Dt=St.offsetWidth,Tt=Dt===void 0?0:Dt,Nt=St.offsetHeight,_t=Nt===void 0?0:Nt;return[Tt,_t]},Bn=function(yt,St){return yt[St?0:1]};function _n(qe,yt){var St,Dt=re.useContext(Fe),Tt=Dt.prefixCls,Nt=Dt.tabs,_t=qe.className,on=qe.style,gn=qe.id,Vn=qe.animated,qn=qe.activeKey,Xn=qe.rtl,Dn=qe.extra,In=qe.editable,Cn=qe.locale,Zn=qe.tabPosition,pr=qe.tabBarGutter,$n=qe.children,ar=qe.onTabClick,ur=qe.onTabScroll,mr=qe.indicatorSize,wr=(0,re.useRef)(),kt=(0,re.useRef)(),It=(0,re.useRef)(),qt=(0,re.useRef)(),Yt=(0,re.useRef)(),En=(0,re.useRef)(),Hn=(0,re.useRef)(),Ht=Zn==="top"||Zn==="bottom",Vt=lt(0,function(no,Ea){Ht&&ur&&ur({direction:no>Ea?"left":"right"})}),Gt=(0,ne.Z)(Vt,2),en=Gt[0],Ln=Gt[1],Qn=lt(0,function(no,Ea){!Ht&&ur&&ur({direction:no>Ea?"top":"bottom"})}),On=(0,ne.Z)(Qn,2),Kn=On[0],vr=On[1],Br=(0,re.useState)([0,0]),Cr=(0,ne.Z)(Br,2),sr=Cr[0],Mr=Cr[1],Nr=(0,re.useState)([0,0]),Yr=(0,ne.Z)(Nr,2),Rr=Yr[0],xr=Yr[1],ii=(0,re.useState)([0,0]),ri=(0,ne.Z)(ii,2),Fi=ri[0],Ui=ri[1],aa=(0,re.useState)([0,0]),ji=(0,ne.Z)(aa,2),zi=ji[0],Mi=ji[1],ca=vt(new Map),Li=(0,ne.Z)(ca,2),li=Li[0],Vi=Li[1],Sa=Xe(Nt,li,Rr[0]),Ci=Bn(sr,Ht),Xa=Bn(Rr,Ht),qa=Bn(Fi,Ht),Ja=Bn(zi,Ht),Ra=Ci<Xa+qa,ua=Ra?Ci-Ja:Ci-qa,bo="".concat(Tt,"-nav-operations-hidden"),Da=0,Ki=0;Ht&&Xn?(Da=0,Ki=Math.max(0,Xa-ua)):(Da=Math.min(0,ua-Xa),Ki=0);function ja(no){return no<Da?Da:no>Ki?Ki:no}var lo=(0,re.useRef)(),Ka=(0,re.useState)(),io=(0,ne.Z)(Ka,2),pa=io[0],po=io[1];function mo(){po(Date.now())}function fo(){window.clearTimeout(lo.current)}at(qt,function(no,Ea){function Do(To,Ct){To(function(Lt){var dn=ja(Lt+Ct);return dn})}return Ra?(Ht?Do(Ln,no):Do(vr,Ea),fo(),mo(),!0):!1}),(0,re.useEffect)(function(){return fo(),pa&&(lo.current=window.setTimeout(function(){po(0)},100)),fo},[pa]);var vo=At(Sa,ua,Ht?en:Kn,Xa,qa,Ja,(0,ae.Z)((0,ae.Z)({},qe),{},{tabs:Nt})),Mo=(0,ne.Z)(vo,2),Ho=Mo[0],ho=Mo[1],ko=ce(function(){var no=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qn,Ea=Sa.get(no)||{width:0,height:0,left:0,right:0,top:0};if(Ht){var Do=en;Xn?Ea.right<en?Do=Ea.right:Ea.right+Ea.width>en+ua&&(Do=Ea.right+Ea.width-ua):Ea.left<-en?Do=-Ea.left:Ea.left+Ea.width>-en+ua&&(Do=-(Ea.left+Ea.width-ua)),vr(0),Ln(ja(Do))}else{var To=Kn;Ea.top<-Kn?To=-Ea.top:Ea.top+Ea.height>-Kn+ua&&(To=-(Ea.top+Ea.height-ua)),Ln(0),vr(ja(To))}}),$o={};Zn==="top"||Zn==="bottom"?$o[Xn?"marginRight":"marginLeft"]=pr:$o.marginTop=pr;var Yo=Nt.map(function(no,Ea){var Do=no.key;return re.createElement(Pr,{id:gn,prefixCls:Tt,key:Do,tab:no,style:Ea===0?void 0:$o,closable:no.closable,editable:In,active:Do===qn,renderWrapper:$n,removeAriaLabel:Cn==null?void 0:Cn.removeAriaLabel,onClick:function(Ct){ar(Do,Ct)},onFocus:function(){ko(Do),mo(),qt.current&&(Xn||(qt.current.scrollLeft=0),qt.current.scrollTop=0)}})}),as=function(){return Vi(function(){var Ea=new Map;return Nt.forEach(function(Do){var To,Ct=Do.key,Lt=(To=Yt.current)===null||To===void 0?void 0:To.querySelector('[data-node-key="'.concat(Ve(Ct),'"]'));Lt&&Ea.set(Ct,{width:Lt.offsetWidth,height:Lt.offsetHeight,left:Lt.offsetLeft,top:Lt.offsetTop})}),Ea})};(0,re.useEffect)(function(){as()},[Nt.map(function(no){return no.key}).join("_")]);var Bo=gt(function(){var no=vn(wr),Ea=vn(kt),Do=vn(It);Mr([no[0]-Ea[0]-Do[0],no[1]-Ea[1]-Do[1]]);var To=vn(Hn);Ui(To);var Ct=vn(En);Mi(Ct);var Lt=vn(Yt);xr([Lt[0]-To[0],Lt[1]-To[1]]),as()}),wo=Nt.slice(0,Ho),La=Nt.slice(ho+1),za=[].concat((0,Be.Z)(wo),(0,Be.Z)(La)),uo=Sa.get(qn),xo=Tn({activeTabOffset:uo,horizontal:Ht,rtl:Xn,indicatorSize:mr}),Fo=xo.style;(0,re.useEffect)(function(){ko()},[qn,Da,Ki,ut(uo),ut(Sa),Ht]),(0,re.useEffect)(function(){Bo()},[Xn]);var es=!!za.length,ms="".concat(Tt,"-nav-wrap"),_s,Fs,os,Is;return Ht?Xn?(Fs=en>0,_s=en!==Ki):(_s=en<0,Fs=en!==Da):(os=Kn<0,Is=Kn!==Da),re.createElement(Ue.Z,{onResize:Bo},re.createElement("div",{ref:it(yt,wr),role:"tablist",className:ve()("".concat(Tt,"-nav"),_t),style:on,onKeyDown:function(){mo()}},re.createElement(Ae,{ref:kt,position:"left",extra:Dn,prefixCls:Tt}),re.createElement(Ue.Z,{onResize:Bo},re.createElement("div",{className:ve()(ms,(St={},(0,te.Z)(St,"".concat(ms,"-ping-left"),_s),(0,te.Z)(St,"".concat(ms,"-ping-right"),Fs),(0,te.Z)(St,"".concat(ms,"-ping-top"),os),(0,te.Z)(St,"".concat(ms,"-ping-bottom"),Is),St)),ref:qt},re.createElement(Ue.Z,{onResize:Bo},re.createElement("div",{ref:Yt,className:"".concat(Tt,"-nav-list"),style:{transform:"translate(".concat(en,"px, ").concat(Kn,"px)"),transition:pa?"none":void 0}},Yo,re.createElement(He,{ref:Hn,prefixCls:Tt,locale:Cn,editable:In,style:(0,ae.Z)((0,ae.Z)({},Yo.length===0?void 0:$o),{},{visibility:es?"hidden":null})}),re.createElement("div",{className:ve()("".concat(Tt,"-ink-bar"),(0,te.Z)({},"".concat(Tt,"-ink-bar-animated"),Vn.inkBar)),style:Fo}))))),re.createElement(lr,(0,ie.Z)({},qe,{removeAriaLabel:Cn==null?void 0:Cn.removeAriaLabel,ref:En,prefixCls:Tt,tabs:za,className:!es&&bo,tabMoving:!!pa})),re.createElement(Ae,{ref:It,position:"right",extra:Dn,prefixCls:Tt})))}var hr=re.forwardRef(_n),ei=["renderTabBar"],Ir=["label","key"];function Lr(qe){var yt=qe.renderTabBar,St=(0,he.Z)(qe,ei),Dt=re.useContext(Fe),Tt=Dt.tabs;if(yt){var Nt=(0,ae.Z)((0,ae.Z)({},St),{},{panes:Tt.map(function(_t){var on=_t.label,gn=_t.key,Vn=(0,he.Z)(_t,Ir);return re.createElement(De,(0,ie.Z)({tab:on,key:gn,tabKey:gn},Vn))})});return yt(Nt,hr)}return re.createElement(hr,St)}var Wr={},Vr=[],nn=function(yt){Vr.push(yt)};function Jt(qe,yt){if(0)var St}function pn(qe,yt){if(0)var St}function tr(){Wr={}}function Ar(qe,yt,St){!yt&&!Wr[St]&&(qe(!1,St),Wr[St]=!0)}function jn(qe,yt){Ar(Jt,qe,yt)}function Jn(qe,yt){Ar(pn,qe,yt)}jn.preMessage=nn,jn.resetWarned=tr,jn.noteOnce=Jn;var ir=null;function kr(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},yt;return qe===!1?yt={inkBar:!1,tabPane:!1}:qe===!0?yt={inkBar:!0,tabPane:!1}:yt=(0,ae.Z)({inkBar:!0},(0,oe.Z)(qe)==="object"?qe:{}),yt.tabPaneMotion&&yt.tabPane===void 0&&(yt.tabPane=!0),!yt.tabPaneMotion&&yt.tabPane&&(yt.tabPane=!1),yt}var Ur=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Wn=0;function Oi(qe,yt){var St,Dt=qe.id,Tt=qe.prefixCls,Nt=Tt===void 0?"rc-tabs":Tt,_t=qe.className,on=qe.items,gn=qe.direction,Vn=qe.activeKey,qn=qe.defaultActiveKey,Xn=qe.editable,Dn=qe.animated,In=qe.tabPosition,Cn=In===void 0?"top":In,Zn=qe.tabBarGutter,pr=qe.tabBarStyle,$n=qe.tabBarExtraContent,ar=qe.locale,ur=qe.moreIcon,mr=qe.moreTransitionName,wr=qe.destroyInactiveTabPane,kt=qe.renderTabBar,It=qe.onChange,qt=qe.onTabClick,Yt=qe.onTabScroll,En=qe.getPopupContainer,Hn=qe.popupClassName,Ht=qe.indicatorSize,Vt=(0,he.Z)(qe,Ur),Gt=re.useMemo(function(){return(on||[]).filter(function(Mi){return Mi&&(0,oe.Z)(Mi)==="object"&&"key"in Mi})},[on]),en=gn==="rtl",Ln=kr(Dn),Qn=(0,re.useState)(!1),On=(0,ne.Z)(Qn,2),Kn=On[0],vr=On[1];(0,re.useEffect)(function(){vr(se())},[]);var Br=ye(function(){var Mi;return(Mi=Gt[0])===null||Mi===void 0?void 0:Mi.key},{value:Vn,defaultValue:qn}),Cr=(0,ne.Z)(Br,2),sr=Cr[0],Mr=Cr[1],Nr=(0,re.useState)(function(){return Gt.findIndex(function(Mi){return Mi.key===sr})}),Yr=(0,ne.Z)(Nr,2),Rr=Yr[0],xr=Yr[1];(0,re.useEffect)(function(){var Mi=Gt.findIndex(function(Li){return Li.key===sr});if(Mi===-1){var ca;Mi=Math.max(0,Math.min(Rr,Gt.length-1)),Mr((ca=Gt[Mi])===null||ca===void 0?void 0:ca.key)}xr(Mi)},[Gt.map(function(Mi){return Mi.key}).join("_"),sr,Rr]);var ii=ye(null,{value:Dt}),ri=(0,ne.Z)(ii,2),Fi=ri[0],Ui=ri[1];(0,re.useEffect)(function(){Dt||(Ui("rc-tabs-".concat(Wn)),Wn+=1)},[]);function aa(Mi,ca){qt==null||qt(Mi,ca);var Li=Mi!==sr;Mr(Mi),Li&&(It==null||It(Mi))}var ji={id:Fi,activeKey:sr,animated:Ln,tabPosition:Cn,rtl:en,mobile:Kn},zi=(0,ae.Z)((0,ae.Z)({},ji),{},{editable:Xn,locale:ar,moreIcon:ur,moreTransitionName:mr,tabBarGutter:Zn,onTabClick:aa,onTabScroll:Yt,extra:$n,style:pr,panes:null,getPopupContainer:En,popupClassName:Hn,indicatorSize:Ht});return re.createElement(Fe.Provider,{value:{tabs:Gt,prefixCls:Nt}},re.createElement("div",(0,ie.Z)({ref:yt,id:Dt,className:ve()(Nt,"".concat(Nt,"-").concat(Cn),(St={},(0,te.Z)(St,"".concat(Nt,"-mobile"),Kn),(0,te.Z)(St,"".concat(Nt,"-editable"),Xn),(0,te.Z)(St,"".concat(Nt,"-rtl"),en),St),_t)},Vt),re.createElement(Lr,(0,ie.Z)({},zi,{renderTabBar:kt})),re.createElement(Ie,(0,ie.Z)({destroyInactiveTabPane:wr},ji,{animated:Ln}))))}var bi=re.forwardRef(Oi),xa=bi,ha=xa,ia=me(53124),Ha=me(98675),Wi=()=>null,wa=me(33603);const Fa={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Ii(qe){let yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},St;return yt===!1?St={inkBar:!1,tabPane:!1}:yt===!0?St={inkBar:!0,tabPane:!0}:St=Object.assign({inkBar:!0},typeof yt=="object"?yt:{}),St.tabPane&&(St.tabPaneMotion=Object.assign(Object.assign({},Fa),{motionName:(0,wa.m)(qe,"switch")})),St}var la=me(37419),Oa=function(qe,yt){var St={};for(var Dt in qe)Object.prototype.hasOwnProperty.call(qe,Dt)&&yt.indexOf(Dt)<0&&(St[Dt]=qe[Dt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Dt=Object.getOwnPropertySymbols(qe);Tt<Dt.length;Tt++)yt.indexOf(Dt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(qe,Dt[Tt])&&(St[Dt[Tt]]=qe[Dt[Tt]]);return St};function ao(qe){return qe.filter(yt=>yt)}function Qa(qe,yt){if(qe)return qe;const St=(0,la.Z)(yt).map(Dt=>{if(re.isValidElement(Dt)){const{key:Tt,props:Nt}=Dt,_t=Nt||{},{tab:on}=_t,gn=Oa(_t,["tab"]);return Object.assign(Object.assign({key:String(Tt)},gn),{label:on})}return null});return ao(St)}var Ni=me(14747),mn=me(67968),ln=me(45503),Fn=me(67771),br=qe=>{const{componentCls:yt,motionDurationSlow:St}=qe;return[{[yt]:{[`${yt}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${St}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${St}`}}}}},[(0,Fn.oN)(qe,"slide-up"),(0,Fn.oN)(qe,"slide-down")]]};const Xr=qe=>{const{componentCls:yt,tabsCardPadding:St,cardBg:Dt,cardGutter:Tt,colorBorderSecondary:Nt,itemSelectedColor:_t}=qe;return{[`${yt}-card`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{margin:0,padding:St,background:Dt,border:`${qe.lineWidth}px ${qe.lineType} ${Nt}`,transition:`all ${qe.motionDurationSlow} ${qe.motionEaseInOut}`},[`${yt}-tab-active`]:{color:_t,background:qe.colorBgContainer},[`${yt}-ink-bar`]:{visibility:"hidden"}},[`&${yt}-top, &${yt}-bottom`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab + ${yt}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Tt}px`}}}},[`&${yt}-top`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{borderRadius:`${qe.borderRadiusLG}px ${qe.borderRadiusLG}px 0 0`},[`${yt}-tab-active`]:{borderBottomColor:qe.colorBgContainer}}},[`&${yt}-bottom`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{borderRadius:`0 0 ${qe.borderRadiusLG}px ${qe.borderRadiusLG}px`},[`${yt}-tab-active`]:{borderTopColor:qe.colorBgContainer}}},[`&${yt}-left, &${yt}-right`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab + ${yt}-tab`]:{marginTop:`${Tt}px`}}},[`&${yt}-left`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${qe.borderRadiusLG}px 0 0 ${qe.borderRadiusLG}px`}},[`${yt}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:qe.colorBgContainer}}}},[`&${yt}-right`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${qe.borderRadiusLG}px ${qe.borderRadiusLG}px 0`}},[`${yt}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:qe.colorBgContainer}}}}}}},oi=qe=>{const{componentCls:yt,itemHoverColor:St,dropdownEdgeChildVerticalPadding:Dt}=qe;return{[`${yt}-dropdown`]:Object.assign(Object.assign({},(0,Ni.Wf)(qe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:qe.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${yt}-dropdown-menu`]:{maxHeight:qe.tabsDropdownHeight,margin:0,padding:`${Dt}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:qe.colorBgContainer,backgroundClip:"padding-box",borderRadius:qe.borderRadiusLG,outline:"none",boxShadow:qe.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ni.vS),{display:"flex",alignItems:"center",minWidth:qe.tabsDropdownWidth,margin:0,padding:`${qe.paddingXXS}px ${qe.paddingSM}px`,color:qe.colorText,fontWeight:"normal",fontSize:qe.fontSize,lineHeight:qe.lineHeight,cursor:"pointer",transition:`all ${qe.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:qe.marginSM},color:qe.colorTextDescription,fontSize:qe.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:St}},"&:hover":{background:qe.controlItemBgHover},"&-disabled":{"&, &:hover":{color:qe.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},pi=qe=>{const{componentCls:yt,margin:St,colorBorderSecondary:Dt,horizontalMargin:Tt,verticalItemPadding:Nt,verticalItemMargin:_t}=qe;return{[`${yt}-top, ${yt}-bottom`]:{flexDirection:"column",[`> ${yt}-nav, > div > ${yt}-nav`]:{margin:Tt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${qe.lineWidth}px ${qe.lineType} ${Dt}`,content:"''"},[`${yt}-ink-bar`]:{height:qe.lineWidthBold,"&-animated":{transition:`width ${qe.motionDurationSlow}, left ${qe.motionDurationSlow},
|
|
|
right ${qe.motionDurationSlow}`}},[`${yt}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:qe.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:qe.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:qe.boxShadowTabsOverflowRight},[`&${yt}-nav-wrap-ping-left::before`]:{opacity:1},[`&${yt}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${yt}-top`]:{[`> ${yt}-nav,
|
|
|
> div > ${yt}-nav`]:{"&::before":{bottom:0},[`${yt}-ink-bar`]:{bottom:0}}},[`${yt}-bottom`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{order:1,marginTop:`${St}px`,marginBottom:0,"&::before":{top:0},[`${yt}-ink-bar`]:{top:0}},[`> ${yt}-content-holder, > div > ${yt}-content-holder`]:{order:0}},[`${yt}-left, ${yt}-right`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{flexDirection:"column",minWidth:qe.controlHeight*1.25,[`${yt}-tab`]:{padding:Nt,textAlign:"center"},[`${yt}-tab + ${yt}-tab`]:{margin:_t},[`${yt}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:qe.controlHeight},"&::before":{top:0,boxShadow:qe.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:qe.boxShadowTabsOverflowBottom},[`&${yt}-nav-wrap-ping-top::before`]:{opacity:1},[`&${yt}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${yt}-ink-bar`]:{width:qe.lineWidthBold,"&-animated":{transition:`height ${qe.motionDurationSlow}, top ${qe.motionDurationSlow}`}},[`${yt}-nav-list, ${yt}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${yt}-left`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${yt}-content-holder, > div > ${yt}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${qe.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${qe.lineWidth}px ${qe.lineType} ${qe.colorBorder}`},[`> ${yt}-content > ${yt}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:qe.paddingLG}}}},[`${yt}-right`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{order:1,[`${yt}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${yt}-content-holder, > div > ${yt}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-qe.lineWidth},borderRight:{_skip_check_:!0,value:`${qe.lineWidth}px ${qe.lineType} ${qe.colorBorder}`},[`> ${yt}-content > ${yt}-tabpane`]:{paddingRight:{_skip_check_:!0,value:qe.paddingLG}}}}}},Ti=qe=>{const{componentCls:yt,cardPaddingSM:St,cardPaddingLG:Dt,horizontalItemPaddingSM:Tt,horizontalItemPaddingLG:Nt}=qe;return{[yt]:{"&-small":{[`> ${yt}-nav`]:{[`${yt}-tab`]:{padding:Tt,fontSize:qe.titleFontSizeSM}}},"&-large":{[`> ${yt}-nav`]:{[`${yt}-tab`]:{padding:Nt,fontSize:qe.titleFontSizeLG}}}},[`${yt}-card`]:{[`&${yt}-small`]:{[`> ${yt}-nav`]:{[`${yt}-tab`]:{padding:St}},[`&${yt}-bottom`]:{[`> ${yt}-nav ${yt}-tab`]:{borderRadius:`0 0 ${qe.borderRadius}px ${qe.borderRadius}px`}},[`&${yt}-top`]:{[`> ${yt}-nav ${yt}-tab`]:{borderRadius:`${qe.borderRadius}px ${qe.borderRadius}px 0 0`}},[`&${yt}-right`]:{[`> ${yt}-nav ${yt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${qe.borderRadius}px ${qe.borderRadius}px 0`}}},[`&${yt}-left`]:{[`> ${yt}-nav ${yt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${qe.borderRadius}px 0 0 ${qe.borderRadius}px`}}}},[`&${yt}-large`]:{[`> ${yt}-nav`]:{[`${yt}-tab`]:{padding:Dt}}}}}},vi=qe=>{const{componentCls:yt,itemActiveColor:St,itemHoverColor:Dt,iconCls:Tt,tabsHorizontalItemMargin:Nt,horizontalItemPadding:_t,itemSelectedColor:on,itemColor:gn}=qe,Vn=`${yt}-tab`;return{[Vn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:_t,fontSize:qe.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:gn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:St}},(0,Ni.Qy)(qe)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-qe.marginXXS},marginLeft:{_skip_check_:!0,value:qe.marginXS},color:qe.colorTextDescription,fontSize:qe.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${qe.motionDurationSlow}`,"&:hover":{color:qe.colorTextHeading}},"&:hover":{color:Dt},[`&${Vn}-active ${Vn}-btn`]:{color:on,textShadow:qe.tabsActiveTextShadow},[`&${Vn}-disabled`]:{color:qe.colorTextDisabled,cursor:"not-allowed"},[`&${Vn}-disabled ${Vn}-btn, &${Vn}-disabled ${yt}-remove`]:{"&:focus, &:active":{color:qe.colorTextDisabled}},[`& ${Vn}-remove ${Tt}`]:{margin:0},[Tt]:{marginRight:{_skip_check_:!0,value:qe.marginSM}}},[`${Vn} + ${Vn}`]:{margin:{_skip_check_:!0,value:Nt}}}},Ri=qe=>{const{componentCls:yt,tabsHorizontalItemMarginRTL:St,iconCls:Dt,cardGutter:Tt}=qe;return{[`${yt}-rtl`]:{direction:"rtl",[`${yt}-nav`]:{[`${yt}-tab`]:{margin:{_skip_check_:!0,value:St},[`${yt}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Dt]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${qe.marginSM}px`}},[`${yt}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${qe.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${qe.marginXXS}px`},[Dt]:{margin:0}}}},[`&${yt}-left`]:{[`> ${yt}-nav`]:{order:1},[`> ${yt}-content-holder`]:{order:0}},[`&${yt}-right`]:{[`> ${yt}-nav`]:{order:0},[`> ${yt}-content-holder`]:{order:1}},[`&${yt}-card${yt}-top, &${yt}-card${yt}-bottom`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-tab + ${yt}-tab`]:{marginRight:{_skip_check_:!0,value:Tt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${yt}-dropdown-rtl`]:{direction:"rtl"},[`${yt}-menu-item`]:{[`${yt}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},$i=qe=>{const{componentCls:yt,tabsCardPadding:St,cardHeight:Dt,cardGutter:Tt,itemHoverColor:Nt,itemActiveColor:_t,colorBorderSecondary:on}=qe;return{[yt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ni.Wf)(qe)),{display:"flex",[`> ${yt}-nav, > div > ${yt}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${yt}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${qe.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${yt}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${qe.motionDurationSlow}`},[`${yt}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${yt}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${yt}-nav-more`]:{position:"relative",padding:St,background:"transparent",border:0,color:qe.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:qe.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${yt}-nav-add`]:Object.assign({minWidth:Dt,marginLeft:{_skip_check_:!0,value:Tt},padding:`0 ${qe.paddingXS}px`,background:"transparent",border:`${qe.lineWidth}px ${qe.lineType} ${on}`,borderRadius:`${qe.borderRadiusLG}px ${qe.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:qe.colorText,transition:`all ${qe.motionDurationSlow} ${qe.motionEaseInOut}`,"&:hover":{color:Nt},"&:active, &:focus:not(:focus-visible)":{color:_t}},(0,Ni.Qy)(qe))},[`${yt}-extra-content`]:{flex:"none"},[`${yt}-ink-bar`]:{position:"absolute",background:qe.inkBarColor,pointerEvents:"none"}}),vi(qe)),{[`${yt}-content`]:{position:"relative",width:"100%"},[`${yt}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${yt}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${yt}-centered`]:{[`> ${yt}-nav, > div > ${yt}-nav`]:{[`${yt}-nav-wrap`]:{[`&:not([class*='${yt}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var ni=(0,mn.Z)("Tabs",qe=>{const yt=(0,ln.TS)(qe,{tabsCardPadding:qe.cardPadding||`${(qe.cardHeight-Math.round(qe.fontSize*qe.lineHeight))/2-qe.lineWidth}px ${qe.padding}px`,dropdownEdgeChildVerticalPadding:qe.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${qe.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${qe.horizontalItemGutter}px`});return[Ti(yt),Ri(yt),pi(yt),oi(yt),Xr(yt),$i(yt),br(yt)]},qe=>{const yt=qe.controlHeightLG;return{zIndexPopup:qe.zIndexPopupBase+50,cardBg:qe.colorFillAlter,cardHeight:yt,cardPadding:"",cardPaddingSM:`${qe.paddingXXS*1.5}px ${qe.padding}px`,cardPaddingLG:`${qe.paddingXS}px ${qe.padding}px ${qe.paddingXXS*1.5}px`,titleFontSize:qe.fontSize,titleFontSizeLG:qe.fontSizeLG,titleFontSizeSM:qe.fontSize,inkBarColor:qe.colorPrimary,horizontalMargin:`0 0 ${qe.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${qe.paddingSM}px 0`,horizontalItemPaddingSM:`${qe.paddingXS}px 0`,horizontalItemPaddingLG:`${qe.padding}px 0`,verticalItemPadding:`${qe.paddingXS}px ${qe.paddingLG}px`,verticalItemMargin:`${qe.margin}px 0 0 0`,itemColor:qe.colorText,itemSelectedColor:qe.colorPrimary,itemHoverColor:qe.colorPrimaryHover,itemActiveColor:qe.colorPrimaryActive,cardGutter:qe.marginXXS/2}}),Sn=function(qe,yt){var St={};for(var Dt in qe)Object.prototype.hasOwnProperty.call(qe,Dt)&&yt.indexOf(Dt)<0&&(St[Dt]=qe[Dt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Dt=Object.getOwnPropertySymbols(qe);Tt<Dt.length;Tt++)yt.indexOf(Dt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(qe,Dt[Tt])&&(St[Dt[Tt]]=qe[Dt[Tt]]);return St};const Pn=qe=>{const{type:yt,className:St,rootClassName:Dt,size:Tt,onEdit:Nt,hideAdd:_t,centered:on,addIcon:gn,popupClassName:Vn,children:qn,items:Xn,animated:Dn,style:In,indicatorSize:Cn}=qe,Zn=Sn(qe,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:pr,moreIcon:$n=re.createElement(Je.Z,null)}=Zn,{direction:ar,tabs:ur,getPrefixCls:mr,getPopupContainer:wr}=re.useContext(ia.E_),kt=mr("tabs",pr),[It,qt]=ni(kt);let Yt;yt==="editable-card"&&(Yt={onEdit:(en,Ln)=>{let{key:Qn,event:On}=Ln;Nt==null||Nt(en==="add"?On:Qn,en)},removeIcon:re.createElement(Oe.Z,null),addIcon:gn||re.createElement(x.Z,null),showAdd:_t!==!0});const En=mr(),Hn=Qa(Xn,qn),Ht=Ii(kt,Dn),Vt=(0,Ha.Z)(Tt),Gt=Object.assign(Object.assign({},ur==null?void 0:ur.style),In);return It(re.createElement(ha,Object.assign({direction:ar,getPopupContainer:wr,moreTransitionName:`${En}-slide-up`},Zn,{items:Hn,className:ve()({[`${kt}-${Vt}`]:Vt,[`${kt}-card`]:["card","editable-card"].includes(yt),[`${kt}-editable-card`]:yt==="editable-card",[`${kt}-centered`]:on},ur==null?void 0:ur.className,St,Dt,qt),popupClassName:ve()(Vn,qt),style:Gt,editable:Yt,moreIcon:$n,prefixCls:kt,animated:Ht,indicatorSize:Cn!=null?Cn:ur==null?void 0:ur.indicatorSize})))};Pn.TabPane=Wi;var Yn=Pn},79870:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return ni}});var Oe=me(87462),Je=me(4942),x=me(71002),Te=me(1413),ve=me(74902),ie=me(15671),te=me(43144),ae=me(97326),ne=me(60136),oe=me(51630),he=me(94184),re=me.n(he),se={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Pn){var Yn=Pn.keyCode;if(Pn.altKey&&!Pn.ctrlKey||Pn.metaKey||Yn>=se.F1&&Yn<=se.F12)return!1;switch(Yn){case se.ALT:case se.CAPS_LOCK:case se.CONTEXT_MENU:case se.CTRL:case se.DOWN:case se.END:case se.ESC:case se.HOME:case se.INSERT:case se.LEFT:case se.MAC_FF_META:case se.META:case se.NUMLOCK:case se.NUM_CENTER:case se.PAGE_DOWN:case se.PAGE_UP:case se.PAUSE:case se.PRINT_SCREEN:case se.RIGHT:case se.SHIFT:case se.UP:case se.WIN_KEY:case se.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Pn){if(Pn>=se.ZERO&&Pn<=se.NINE||Pn>=se.NUM_ZERO&&Pn<=se.NUM_MULTIPLY||Pn>=se.A&&Pn<=se.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Pn===0)return!0;switch(Pn){case se.SPACE:case se.QUESTION_MARK:case se.NUM_PLUS:case se.NUM_MINUS:case se.NUM_PERIOD:case se.NUM_DIVISION:case se.SEMICOLON:case se.DASH:case se.EQUALS:case se.COMMA:case se.PERIOD:case se.SLASH:case se.APOSTROPHE:case se.SINGLE_QUOTE:case se.OPEN_SQUARE_BRACKET:case se.BACKSLASH:case se.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ce=se,fe=me(34952),pe=me(72978),le=me(67294),Se=me(69610);function xe(Sn){var Pn=Sn.dropPosition,Yn=Sn.dropLevelOffset,qe=Sn.indent,yt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Pn){case-1:yt.top=0,yt.left=-Yn*qe;break;case 1:yt.bottom=0,yt.left=-Yn*qe;break;case 0:yt.bottom=0,yt.left=qe;break}return le.createElement("div",{style:yt})}var ge=me(36459),Me=me(97685),ye=me(45987);function be(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Fe=be()?le.useLayoutEffect:le.useEffect,ke=Fe,De=function(Pn,Yn){var qe=React.useRef(!0);Fe(function(){if(!qe.current)return Pn()},Yn),Fe(function(){return qe.current=!1,function(){qe.current=!0}},[])},Le=me(73299),Ie=me(73935);function Be(Sn){return Sn instanceof HTMLElement||Sn instanceof SVGElement}function Ue(Sn){return Be(Sn)?Sn:Sn instanceof le.Component?Ie.findDOMNode(Sn):null}var _e=me(28580);function We(Sn,Pn,Yn){var qe=React.useRef({});return(!("value"in qe.current)||Yn(qe.current.condition,Pn))&&(qe.current.value=Sn(),qe.current.condition=Pn),qe.current.value}function Ze(Sn,Pn){typeof Sn=="function"?Sn(Pn):(0,x.Z)(Sn)==="object"&&Sn&&"current"in Sn&&(Sn.current=Pn)}function et(){for(var Sn=arguments.length,Pn=new Array(Sn),Yn=0;Yn<Sn;Yn++)Pn[Yn]=arguments[Yn];var qe=Pn.filter(function(yt){return yt});return qe.length<=1?qe[0]:function(yt){Pn.forEach(function(St){Ze(St,yt)})}}function it(){for(var Sn=arguments.length,Pn=new Array(Sn),Yn=0;Yn<Sn;Yn++)Pn[Yn]=arguments[Yn];return useMemo(function(){return et.apply(void 0,Pn)},Pn,function(qe,yt){return qe.length===yt.length&&qe.every(function(St,Dt){return St===yt[Dt]})})}function pt(Sn){var Pn,Yn,qe=(0,_e.isMemo)(Sn)?Sn.type.type:Sn.type;return!(typeof qe=="function"&&!((Pn=qe.prototype)!==null&&Pn!==void 0&&Pn.render)||typeof Sn=="function"&&!((Yn=Sn.prototype)!==null&&Yn!==void 0&&Yn.render))}function Ge(Sn,Pn){var Yn={};return Yn[Sn.toLowerCase()]=Pn.toLowerCase(),Yn["Webkit".concat(Sn)]="webkit".concat(Pn),Yn["Moz".concat(Sn)]="moz".concat(Pn),Yn["ms".concat(Sn)]="MS".concat(Pn),Yn["O".concat(Sn)]="o".concat(Pn.toLowerCase()),Yn}function Xe(Sn,Pn){var Yn={animationend:Ge("Animation","AnimationEnd"),transitionend:Ge("Transition","TransitionEnd")};return Sn&&("AnimationEvent"in Pn||delete Yn.animationend.animation,"TransitionEvent"in Pn||delete Yn.transitionend.transition),Yn}var lt=Xe(be(),typeof window!="undefined"?window:{}),dt={};if(be()){var st=document.createElement("div");dt=st.style}var nt={};function rt(Sn){if(nt[Sn])return nt[Sn];var Pn=lt[Sn];if(Pn)for(var Yn=Object.keys(Pn),qe=Yn.length,yt=0;yt<qe;yt+=1){var St=Yn[yt];if(Object.prototype.hasOwnProperty.call(Pn,St)&&St in dt)return nt[Sn]=Pn[St],nt[Sn]}return""}var at=rt("animationend"),gt=rt("transitionend"),vt=!!(at&>),Et=at||"animationend",At=gt||"transitionend";function ut(Sn,Pn){if(!Sn)return null;if((0,x.Z)(Sn)==="object"){var Yn=Pn.replace(/-\w/g,function(qe){return qe[1].toUpperCase()});return Sn[Yn]}return"".concat(Sn,"-").concat(Pn)}var Ye="none",Ve="appear",de="enter",Ce="leave",He="none",je="prepare",Ae="start",Ne="active",ze="end";function Qe(Sn){var Pn=le.useRef(!1),Yn=le.useState(Sn),qe=(0,Me.Z)(Yn,2),yt=qe[0],St=qe[1];le.useEffect(function(){return Pn.current=!1,function(){Pn.current=!0}},[]);function Dt(Tt,Nt){Nt&&Pn.current||St(Tt)}return[yt,Dt]}var ot=function(Pn){return+setTimeout(Pn,16)},mt=function(Pn){return clearTimeout(Pn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ot=function(Pn){return window.requestAnimationFrame(Pn)},mt=function(Pn){return window.cancelAnimationFrame(Pn)});var Ot=0,xt=new Map;function Ut(Sn){xt.delete(Sn)}var xn=function(Pn){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ot+=1;var qe=Ot;function yt(St){if(St===0)Ut(qe),Pn();else{var Dt=ot(function(){yt(St-1)});xt.set(qe,Dt)}}return yt(Yn),qe};xn.cancel=function(Sn){var Pn=xt.get(Sn);return Ut(Pn),mt(Pn)};var Ft=xn,Qt=function(){var Sn=le.useRef(null);function Pn(){Ft.cancel(Sn.current)}function Yn(qe){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Pn();var St=Ft(function(){yt<=1?qe({isCanceled:function(){return St!==Sn.current}}):Yn(qe,yt-1)});Sn.current=St}return le.useEffect(function(){return function(){Pn()}},[]),[Yn,Pn]},Zt=be()?le.useLayoutEffect:le.useEffect,bn=Zt,Pt=[je,Ae,Ne,ze],zt=!1,sn=!0;function yn(Sn){return Sn===Ne||Sn===ze}var kn=function(Sn,Pn){var Yn=Qe(He),qe=(0,Me.Z)(Yn,2),yt=qe[0],St=qe[1],Dt=Qt(),Tt=(0,Me.Z)(Dt,2),Nt=Tt[0],_t=Tt[1];function on(){St(je,!0)}return bn(function(){if(yt!==He&&yt!==ze){var gn=Pt.indexOf(yt),Vn=Pt[gn+1],qn=Pn(yt);qn===zt?St(Vn,!0):Nt(function(Xn){function Dn(){Xn.isCanceled()||St(Vn,!0)}qn===!0?Dn():Promise.resolve(qn).then(Dn)})}},[Sn,yt]),le.useEffect(function(){return function(){_t()}},[]),[on,yt]},Gn=function(Sn){var Pn=(0,le.useRef)(),Yn=(0,le.useRef)(Sn);Yn.current=Sn;var qe=le.useCallback(function(Dt){Yn.current(Dt)},[]);function yt(Dt){Dt&&(Dt.removeEventListener(At,qe),Dt.removeEventListener(Et,qe))}function St(Dt){Pn.current&&Pn.current!==Dt&&yt(Pn.current),Dt&&Dt!==Pn.current&&(Dt.addEventListener(At,qe),Dt.addEventListener(Et,qe),Pn.current=Dt)}return le.useEffect(function(){return function(){yt(Pn.current)}},[]),[St,yt]};function dr(Sn,Pn,Yn,qe){var yt=qe.motionEnter,St=yt===void 0?!0:yt,Dt=qe.motionAppear,Tt=Dt===void 0?!0:Dt,Nt=qe.motionLeave,_t=Nt===void 0?!0:Nt,on=qe.motionDeadline,gn=qe.motionLeaveImmediately,Vn=qe.onAppearPrepare,qn=qe.onEnterPrepare,Xn=qe.onLeavePrepare,Dn=qe.onAppearStart,In=qe.onEnterStart,Cn=qe.onLeaveStart,Zn=qe.onAppearActive,pr=qe.onEnterActive,$n=qe.onLeaveActive,ar=qe.onAppearEnd,ur=qe.onEnterEnd,mr=qe.onLeaveEnd,wr=qe.onVisibleChanged,kt=Qe(),It=(0,Me.Z)(kt,2),qt=It[0],Yt=It[1],En=Qe(Ye),Hn=(0,Me.Z)(En,2),Ht=Hn[0],Vt=Hn[1],Gt=Qe(null),en=(0,Me.Z)(Gt,2),Ln=en[0],Qn=en[1],On=(0,le.useRef)(!1),Kn=(0,le.useRef)(null);function vr(){return Yn()}var Br=(0,le.useRef)(!1);function Cr(ji){var zi=vr();if(!(ji&&!ji.deadline&&ji.target!==zi)){var Mi=Br.current,ca;Ht===Ve&&Mi?ca=ar==null?void 0:ar(zi,ji):Ht===de&&Mi?ca=ur==null?void 0:ur(zi,ji):Ht===Ce&&Mi&&(ca=mr==null?void 0:mr(zi,ji)),Ht!==Ye&&Mi&&ca!==!1&&(Vt(Ye,!0),Qn(null,!0))}}var sr=Gn(Cr),Mr=(0,Me.Z)(sr,1),Nr=Mr[0],Yr=le.useMemo(function(){var ji,zi,Mi;switch(Ht){case Ve:return ji={},(0,Je.Z)(ji,je,Vn),(0,Je.Z)(ji,Ae,Dn),(0,Je.Z)(ji,Ne,Zn),ji;case de:return zi={},(0,Je.Z)(zi,je,qn),(0,Je.Z)(zi,Ae,In),(0,Je.Z)(zi,Ne,pr),zi;case Ce:return Mi={},(0,Je.Z)(Mi,je,Xn),(0,Je.Z)(Mi,Ae,Cn),(0,Je.Z)(Mi,Ne,$n),Mi;default:return{}}},[Ht]),Rr=kn(Ht,function(ji){if(ji===je){var zi=Yr[je];return zi?zi(vr()):zt}if(ri in Yr){var Mi;Qn(((Mi=Yr[ri])===null||Mi===void 0?void 0:Mi.call(Yr,vr(),null))||null)}return ri===Ne&&(Nr(vr()),on>0&&(clearTimeout(Kn.current),Kn.current=setTimeout(function(){Cr({deadline:!0})},on))),sn}),xr=(0,Me.Z)(Rr,2),ii=xr[0],ri=xr[1],Fi=yn(ri);Br.current=Fi,bn(function(){Yt(Pn);var ji=On.current;if(On.current=!0,!!Sn){var zi;!ji&&Pn&&Tt&&(zi=Ve),ji&&Pn&&St&&(zi=de),(ji&&!Pn&&_t||!ji&&gn&&!Pn&&_t)&&(zi=Ce),zi&&(Vt(zi),ii())}},[Pn]),(0,le.useEffect)(function(){(Ht===Ve&&!Tt||Ht===de&&!St||Ht===Ce&&!_t)&&Vt(Ye)},[Tt,St,_t]),(0,le.useEffect)(function(){return function(){On.current=!1,clearTimeout(Kn.current)}},[]);var Ui=le.useRef(!1);(0,le.useEffect)(function(){qt&&(Ui.current=!0),qt!==void 0&&Ht===Ye&&((Ui.current||qt)&&(wr==null||wr(qt)),Ui.current=!0)},[qt,Ht]);var aa=Ln;return Yr[je]&&ri===Ae&&(aa=(0,Te.Z)({transition:"none"},aa)),[Ht,ri,aa,qt!=null?qt:Pn]}var Or=function(Sn){(0,ne.Z)(Yn,Sn);var Pn=(0,oe.Z)(Yn);function Yn(){return(0,ie.Z)(this,Yn),Pn.apply(this,arguments)}return(0,te.Z)(Yn,[{key:"render",value:function(){return this.props.children}}]),Yn}(le.Component),zr=Or;function Hr(Sn){var Pn=Sn;(0,x.Z)(Sn)==="object"&&(Pn=Sn.transitionSupport);function Yn(yt){return!!(yt.motionName&&Pn)}var qe=le.forwardRef(function(yt,St){var Dt=yt.visible,Tt=Dt===void 0?!0:Dt,Nt=yt.removeOnLeave,_t=Nt===void 0?!0:Nt,on=yt.forceRender,gn=yt.children,Vn=yt.motionName,qn=yt.leavedClassName,Xn=yt.eventProps,Dn=Yn(yt),In=(0,le.useRef)(),Cn=(0,le.useRef)();function Zn(){try{return In.current instanceof HTMLElement?In.current:Ue(Cn.current)}catch(Gt){return null}}var pr=dr(Dn,Tt,Zn,yt),$n=(0,Me.Z)(pr,4),ar=$n[0],ur=$n[1],mr=$n[2],wr=$n[3],kt=le.useRef(wr);wr&&(kt.current=!0);var It=le.useCallback(function(Gt){In.current=Gt,Ze(St,Gt)},[St]),qt,Yt=(0,Te.Z)((0,Te.Z)({},Xn),{},{visible:Tt});if(!gn)qt=null;else if(ar===Ye||!Yn(yt))wr?qt=gn((0,Te.Z)({},Yt),It):!_t&&kt.current&&qn?qt=gn((0,Te.Z)((0,Te.Z)({},Yt),{},{className:qn}),It):on||!_t&&!qn?qt=gn((0,Te.Z)((0,Te.Z)({},Yt),{},{style:{display:"none"}}),It):qt=null;else{var En,Hn;ur===je?Hn="prepare":yn(ur)?Hn="active":ur===Ae&&(Hn="start"),qt=gn((0,Te.Z)((0,Te.Z)({},Yt),{},{className:re()(ut(Vn,ar),(En={},(0,Je.Z)(En,ut(Vn,"".concat(ar,"-").concat(Hn)),Hn),(0,Je.Z)(En,Vn,typeof Vn=="string"),En)),style:mr}),It)}if(le.isValidElement(qt)&&pt(qt)){var Ht=qt,Vt=Ht.ref;Vt||(qt=le.cloneElement(qt,{ref:It}))}return le.createElement(zr,{ref:Cn},qt)});return qe.displayName="CSSMotion",qe}var Dr=Hr(vt),Kr="add",Ai="keep",Di="remove",Zi="removed";function di(Sn){var Pn;return Sn&&(0,x.Z)(Sn)==="object"&&"key"in Sn?Pn=Sn:Pn={key:Sn},(0,Te.Z)((0,Te.Z)({},Pn),{},{key:String(Pn.key)})}function rn(){var Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Sn.map(di)}function zn(){var Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Yn=[],qe=0,yt=Pn.length,St=rn(Sn),Dt=rn(Pn);St.forEach(function(_t){for(var on=!1,gn=qe;gn<yt;gn+=1){var Vn=Dt[gn];if(Vn.key===_t.key){qe<gn&&(Yn=Yn.concat(Dt.slice(qe,gn).map(function(qn){return(0,Te.Z)((0,Te.Z)({},qn),{},{status:Kr})})),qe=gn),Yn.push((0,Te.Z)((0,Te.Z)({},Vn),{},{status:Ai})),qe+=1,on=!0;break}}on||Yn.push((0,Te.Z)((0,Te.Z)({},_t),{},{status:Di}))}),qe<yt&&(Yn=Yn.concat(Dt.slice(qe).map(function(_t){return(0,Te.Z)((0,Te.Z)({},_t),{},{status:Kr})})));var Tt={};Yn.forEach(function(_t){var on=_t.key;Tt[on]=(Tt[on]||0)+1});var Nt=Object.keys(Tt).filter(function(_t){return Tt[_t]>1});return Nt.forEach(function(_t){Yn=Yn.filter(function(on){var gn=on.key,Vn=on.status;return gn!==_t||Vn!==Di}),Yn.forEach(function(on){on.key===_t&&(on.status=Ai)})}),Yn}var fr=["component","children","onVisibleChanged","onAllRemoved"],lr=["status"],Tr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Pr(Sn){var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dr,Yn=function(qe){(0,ne.Z)(St,qe);var yt=(0,oe.Z)(St);function St(){var Dt;(0,ie.Z)(this,St);for(var Tt=arguments.length,Nt=new Array(Tt),_t=0;_t<Tt;_t++)Nt[_t]=arguments[_t];return Dt=yt.call.apply(yt,[this].concat(Nt)),(0,Je.Z)((0,ae.Z)(Dt),"state",{keyEntities:[]}),(0,Je.Z)((0,ae.Z)(Dt),"removeKey",function(on){var gn=Dt.state.keyEntities,Vn=gn.map(function(qn){return qn.key!==on?qn:(0,Te.Z)((0,Te.Z)({},qn),{},{status:Zi})});return Dt.setState({keyEntities:Vn}),Vn.filter(function(qn){var Xn=qn.status;return Xn!==Zi}).length}),Dt}return(0,te.Z)(St,[{key:"render",value:function(){var Tt=this,Nt=this.state.keyEntities,_t=this.props,on=_t.component,gn=_t.children,Vn=_t.onVisibleChanged,qn=_t.onAllRemoved,Xn=(0,ye.Z)(_t,fr),Dn=on||le.Fragment,In={};return Tr.forEach(function(Cn){In[Cn]=Xn[Cn],delete Xn[Cn]}),delete Xn.keys,le.createElement(Dn,Xn,Nt.map(function(Cn){var Zn=Cn.status,pr=(0,ye.Z)(Cn,lr),$n=Zn===Kr||Zn===Ai;return le.createElement(Pn,(0,Oe.Z)({},In,{key:pr.key,visible:$n,eventProps:pr,onVisibleChanged:function(ur){if(Vn==null||Vn(ur,{key:pr.key}),!ur){var mr=Tt.removeKey(pr.key);mr===0&&qn&&qn()}}}),gn)}))}}],[{key:"getDerivedStateFromProps",value:function(Tt,Nt){var _t=Tt.keys,on=Nt.keyEntities,gn=rn(_t),Vn=zn(on,gn);return{keyEntities:Vn.filter(function(qn){var Xn=on.find(function(Dn){var In=Dn.key;return qn.key===In});return!(Xn&&Xn.status===Zi&&qn.status===Di)})}}}]),St}(le.Component);return(0,Je.Z)(Yn,"defaultProps",{component:"div"}),Yn}var Gr=Pr(vt),Er=Dr,Wt=me(56261);function $t(Sn,Pn){var Yn=le.useState(!1),qe=(0,Me.Z)(Yn,2),yt=qe[0],St=qe[1];le.useLayoutEffect(function(){if(yt)return Sn(),function(){Pn()}},[yt]),le.useLayoutEffect(function(){return St(!0),function(){St(!1)}},[])}var cn=me(83898),Rn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],jt=function(Pn,Yn){var qe=Pn.className,yt=Pn.style,St=Pn.motion,Dt=Pn.motionNodes,Tt=Pn.motionType,Nt=Pn.onMotionStart,_t=Pn.onMotionEnd,on=Pn.active,gn=Pn.treeNodeRequiredProps,Vn=(0,ye.Z)(Pn,Rn),qn=le.useState(!0),Xn=(0,Me.Z)(qn,2),Dn=Xn[0],In=Xn[1],Cn=le.useContext(Se.k),Zn=Cn.prefixCls,pr=Dt&&Tt!=="hide";ke(function(){Dt&&pr!==Dn&&In(pr)},[Dt]);var $n=function(){Dt&&Nt()},ar=le.useRef(!1),ur=function(){Dt&&!ar.current&&(ar.current=!0,_t())};$t($n,ur);var mr=function(kt){pr===kt&&ur()};return Dt?le.createElement(Er,(0,Oe.Z)({ref:Yn,visible:Dn},St,{motionAppear:Tt==="show",onVisibleChanged:mr}),function(wr,kt){var It=wr.className,qt=wr.style;return le.createElement("div",{ref:kt,className:re()("".concat(Zn,"-treenode-motion"),It),style:qt},Dt.map(function(Yt){var En=(0,Oe.Z)({},((0,ge.Z)(Yt.data),Yt.data)),Hn=Yt.title,Ht=Yt.key,Vt=Yt.isStart,Gt=Yt.isEnd;delete En.children;var en=(0,cn.H8)(Ht,gn);return le.createElement(Wt.Z,(0,Oe.Z)({},En,en,{title:Hn,active:on,data:Yt.data,key:Ht,isStart:Vt,isEnd:Gt}))}))}):le.createElement(Wt.Z,(0,Oe.Z)({domRef:Yn,className:qe,style:yt},Vn,{active:on}))};jt.displayName="MotionTreeNode";var an=le.forwardRef(jt),Tn=an;function vn(){var Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Yn=Sn.length,qe=Pn.length;if(Math.abs(Yn-qe)!==1)return{add:!1,key:null};function yt(St,Dt){var Tt=new Map;St.forEach(function(_t){Tt.set(_t,!0)});var Nt=Dt.filter(function(_t){return!Tt.has(_t)});return Nt.length===1?Nt[0]:null}return Yn<qe?{add:!0,key:yt(Sn,Pn)}:{add:!1,key:yt(Pn,Sn)}}function Bn(Sn,Pn,Yn){var qe=Sn.findIndex(function(Tt){return Tt.key===Yn}),yt=Sn[qe+1],St=Pn.findIndex(function(Tt){return Tt.key===Yn});if(yt){var Dt=Pn.findIndex(function(Tt){return Tt.key===yt.key});return Pn.slice(St+1,Dt)}return Pn.slice(St+1)}var _n=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],hr={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ei=function(){},Ir="RC_TREE_MOTION_".concat(Math.random()),Lr={key:Ir},Wr={key:Ir,level:0,index:0,pos:"0",node:Lr,nodes:[Lr]},Vr={parent:null,children:[],pos:Wr.pos,data:Lr,title:null,key:Ir,isStart:[],isEnd:[]};function nn(Sn,Pn,Yn,qe){return Pn===!1||!Yn?Sn:Sn.slice(0,Math.ceil(Yn/qe)+1)}function Jt(Sn){var Pn=Sn.key,Yn=Sn.pos;return(0,cn.km)(Pn,Yn)}function pn(Sn){for(var Pn=String(Sn.data.key),Yn=Sn;Yn.parent;)Yn=Yn.parent,Pn="".concat(Yn.data.key," > ").concat(Pn);return Pn}var tr=le.forwardRef(function(Sn,Pn){var Yn=Sn.prefixCls,qe=Sn.data,yt=Sn.selectable,St=Sn.checkable,Dt=Sn.expandedKeys,Tt=Sn.selectedKeys,Nt=Sn.checkedKeys,_t=Sn.loadedKeys,on=Sn.loadingKeys,gn=Sn.halfCheckedKeys,Vn=Sn.keyEntities,qn=Sn.disabled,Xn=Sn.dragging,Dn=Sn.dragOverNodeKey,In=Sn.dropPosition,Cn=Sn.motion,Zn=Sn.height,pr=Sn.itemHeight,$n=Sn.virtual,ar=Sn.focusable,ur=Sn.activeItem,mr=Sn.focused,wr=Sn.tabIndex,kt=Sn.onKeyDown,It=Sn.onFocus,qt=Sn.onBlur,Yt=Sn.onActiveChange,En=Sn.onListChangeStart,Hn=Sn.onListChangeEnd,Ht=(0,ye.Z)(Sn,_n),Vt=le.useRef(null),Gt=le.useRef(null);le.useImperativeHandle(Pn,function(){return{scrollTo:function(Vi){Vt.current.scrollTo(Vi)},getIndentWidth:function(){return Gt.current.offsetWidth}}});var en=le.useState(Dt),Ln=(0,Me.Z)(en,2),Qn=Ln[0],On=Ln[1],Kn=le.useState(qe),vr=(0,Me.Z)(Kn,2),Br=vr[0],Cr=vr[1],sr=le.useState(qe),Mr=(0,Me.Z)(sr,2),Nr=Mr[0],Yr=Mr[1],Rr=le.useState([]),xr=(0,Me.Z)(Rr,2),ii=xr[0],ri=xr[1],Fi=le.useState(null),Ui=(0,Me.Z)(Fi,2),aa=Ui[0],ji=Ui[1],zi=le.useRef(qe);zi.current=qe;function Mi(){var li=zi.current;Cr(li),Yr(li),ri([]),ji(null),Hn()}ke(function(){On(Dt);var li=vn(Qn,Dt);if(li.key!==null)if(li.add){var Vi=Br.findIndex(function(Ra){var ua=Ra.key;return ua===li.key}),Sa=nn(Bn(Br,qe,li.key),$n,Zn,pr),Ci=Br.slice();Ci.splice(Vi+1,0,Vr),Yr(Ci),ri(Sa),ji("show")}else{var Xa=qe.findIndex(function(Ra){var ua=Ra.key;return ua===li.key}),qa=nn(Bn(qe,Br,li.key),$n,Zn,pr),Ja=qe.slice();Ja.splice(Xa+1,0,Vr),Yr(Ja),ri(qa),ji("hide")}else Br!==qe&&(Cr(qe),Yr(qe))},[Dt,qe]),le.useEffect(function(){Xn||Mi()},[Xn]);var ca=Cn?Nr:qe,Li={expandedKeys:Dt,selectedKeys:Tt,loadedKeys:_t,loadingKeys:on,checkedKeys:Nt,halfCheckedKeys:gn,dragOverNodeKey:Dn,dropPosition:In,keyEntities:Vn};return le.createElement(le.Fragment,null,mr&&ur&&le.createElement("span",{style:hr,"aria-live":"assertive"},pn(ur)),le.createElement("div",null,le.createElement("input",{style:hr,disabled:ar===!1||qn,tabIndex:ar!==!1?wr:null,onKeyDown:kt,onFocus:It,onBlur:qt,value:"",onChange:ei,"aria-label":"for screen reader"})),le.createElement("div",{className:"".concat(Yn,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},le.createElement("div",{className:"".concat(Yn,"-indent")},le.createElement("div",{ref:Gt,className:"".concat(Yn,"-indent-unit")}))),le.createElement(Le.Z,(0,Oe.Z)({},Ht,{data:ca,itemKey:Jt,height:Zn,fullHeight:!1,virtual:$n,itemHeight:pr,prefixCls:"".concat(Yn,"-list"),ref:Vt,onVisibleChange:function(Vi,Sa){var Ci=new Set(Vi),Xa=Sa.filter(function(qa){return!Ci.has(qa)});Xa.some(function(qa){return Jt(qa)===Ir})&&Mi()}}),function(li){var Vi=li.pos,Sa=(0,Oe.Z)({},((0,ge.Z)(li.data),li.data)),Ci=li.title,Xa=li.key,qa=li.isStart,Ja=li.isEnd,Ra=(0,cn.km)(Xa,Vi);delete Sa.key,delete Sa.children;var ua=(0,cn.H8)(Ra,Li);return le.createElement(Tn,(0,Oe.Z)({},Sa,ua,{title:Ci,active:!!ur&&Xa===ur.key,pos:Vi,data:li.data,isStart:qa,isEnd:Ja,motion:Cn,motionNodes:Xa===Ir?ii:null,motionType:aa,onMotionStart:En,onMotionEnd:Mi,treeNodeRequiredProps:Li,onMouseMove:function(){Yt(null)}}))}))});tr.displayName="NodeList";var Ar=tr,jn=me(29873),Jn=me(97153),ir=me(3596),kr=10,Ur=function(Sn){(0,ne.Z)(Yn,Sn);var Pn=(0,oe.Z)(Yn);function Yn(){var qe;(0,ie.Z)(this,Yn);for(var yt=arguments.length,St=new Array(yt),Dt=0;Dt<yt;Dt++)St[Dt]=arguments[Dt];return qe=Pn.call.apply(Pn,[this].concat(St)),qe.destroyed=!1,qe.delayedDragEnterLogic=void 0,qe.loadingRetryTimes={},qe.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,cn.w$)()},qe.dragStartMousePosition=null,qe.dragNode=void 0,qe.currentMouseOverDroppableNodeKey=null,qe.listRef=le.createRef(),qe.onNodeDragStart=function(Tt,Nt){var _t=qe.state,on=_t.expandedKeys,gn=_t.keyEntities,Vn=qe.props.onDragStart,qn=Nt.props.eventKey;qe.dragNode=Nt,qe.dragStartMousePosition={x:Tt.clientX,y:Tt.clientY};var Xn=(0,jn._5)(on,qn);qe.setState({draggingNodeKey:qn,dragChildrenKeys:(0,jn.wA)(qn,gn),indent:qe.listRef.current.getIndentWidth()}),qe.setExpandedKeys(Xn),window.addEventListener("dragend",qe.onWindowDragEnd),Vn==null||Vn({event:Tt,node:(0,cn.F)(Nt.props)})},qe.onNodeDragEnter=function(Tt,Nt){var _t=qe.state,on=_t.expandedKeys,gn=_t.keyEntities,Vn=_t.dragChildrenKeys,qn=_t.flattenNodes,Xn=_t.indent,Dn=qe.props,In=Dn.onDragEnter,Cn=Dn.onExpand,Zn=Dn.allowDrop,pr=Dn.direction,$n=Nt.props,ar=$n.pos,ur=$n.eventKey,mr=(0,ae.Z)(qe),wr=mr.dragNode;if(qe.currentMouseOverDroppableNodeKey!==ur&&(qe.currentMouseOverDroppableNodeKey=ur),!wr){qe.resetDragState();return}var kt=(0,jn.OM)(Tt,wr,Nt,Xn,qe.dragStartMousePosition,Zn,qn,gn,on,pr),It=kt.dropPosition,qt=kt.dropLevelOffset,Yt=kt.dropTargetKey,En=kt.dropContainerKey,Hn=kt.dropTargetPos,Ht=kt.dropAllowed,Vt=kt.dragOverNodeKey;if(Vn.indexOf(Yt)!==-1||!Ht){qe.resetDragState();return}if(qe.delayedDragEnterLogic||(qe.delayedDragEnterLogic={}),Object.keys(qe.delayedDragEnterLogic).forEach(function(Gt){clearTimeout(qe.delayedDragEnterLogic[Gt])}),wr.props.eventKey!==Nt.props.eventKey&&(Tt.persist(),qe.delayedDragEnterLogic[ar]=window.setTimeout(function(){if(qe.state.draggingNodeKey!==null){var Gt=(0,ve.Z)(on),en=(0,ir.Z)(gn,Nt.props.eventKey);en&&(en.children||[]).length&&(Gt=(0,jn.L0)(on,Nt.props.eventKey)),"expandedKeys"in qe.props||qe.setExpandedKeys(Gt),Cn==null||Cn(Gt,{node:(0,cn.F)(Nt.props),expanded:!0,nativeEvent:Tt.nativeEvent})}},800)),wr.props.eventKey===Yt&&qt===0){qe.resetDragState();return}qe.setState({dragOverNodeKey:Vt,dropPosition:It,dropLevelOffset:qt,dropTargetKey:Yt,dropContainerKey:En,dropTargetPos:Hn,dropAllowed:Ht}),In==null||In({event:Tt,node:(0,cn.F)(Nt.props),expandedKeys:on})},qe.onNodeDragOver=function(Tt,Nt){var _t=qe.state,on=_t.dragChildrenKeys,gn=_t.flattenNodes,Vn=_t.keyEntities,qn=_t.expandedKeys,Xn=_t.indent,Dn=qe.props,In=Dn.onDragOver,Cn=Dn.allowDrop,Zn=Dn.direction,pr=(0,ae.Z)(qe),$n=pr.dragNode;if($n){var ar=(0,jn.OM)(Tt,$n,Nt,Xn,qe.dragStartMousePosition,Cn,gn,Vn,qn,Zn),ur=ar.dropPosition,mr=ar.dropLevelOffset,wr=ar.dropTargetKey,kt=ar.dropContainerKey,It=ar.dropAllowed,qt=ar.dropTargetPos,Yt=ar.dragOverNodeKey;on.indexOf(wr)!==-1||!It||($n.props.eventKey===wr&&mr===0?qe.state.dropPosition===null&&qe.state.dropLevelOffset===null&&qe.state.dropTargetKey===null&&qe.state.dropContainerKey===null&&qe.state.dropTargetPos===null&&qe.state.dropAllowed===!1&&qe.state.dragOverNodeKey===null||qe.resetDragState():ur===qe.state.dropPosition&&mr===qe.state.dropLevelOffset&&wr===qe.state.dropTargetKey&&kt===qe.state.dropContainerKey&&qt===qe.state.dropTargetPos&&It===qe.state.dropAllowed&&Yt===qe.state.dragOverNodeKey||qe.setState({dropPosition:ur,dropLevelOffset:mr,dropTargetKey:wr,dropContainerKey:kt,dropTargetPos:qt,dropAllowed:It,dragOverNodeKey:Yt}),In==null||In({event:Tt,node:(0,cn.F)(Nt.props)}))}},qe.onNodeDragLeave=function(Tt,Nt){qe.currentMouseOverDroppableNodeKey===Nt.props.eventKey&&!Tt.currentTarget.contains(Tt.relatedTarget)&&(qe.resetDragState(),qe.currentMouseOverDroppableNodeKey=null);var _t=qe.props.onDragLeave;_t==null||_t({event:Tt,node:(0,cn.F)(Nt.props)})},qe.onWindowDragEnd=function(Tt){qe.onNodeDragEnd(Tt,null,!0),window.removeEventListener("dragend",qe.onWindowDragEnd)},qe.onNodeDragEnd=function(Tt,Nt){var _t=qe.props.onDragEnd;qe.setState({dragOverNodeKey:null}),qe.cleanDragState(),_t==null||_t({event:Tt,node:(0,cn.F)(Nt.props)}),qe.dragNode=null,window.removeEventListener("dragend",qe.onWindowDragEnd)},qe.onNodeDrop=function(Tt,Nt){var _t,on=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,gn=qe.state,Vn=gn.dragChildrenKeys,qn=gn.dropPosition,Xn=gn.dropTargetKey,Dn=gn.dropTargetPos,In=gn.dropAllowed;if(In){var Cn=qe.props.onDrop;if(qe.setState({dragOverNodeKey:null}),qe.cleanDragState(),Xn!==null){var Zn=(0,Te.Z)((0,Te.Z)({},(0,cn.H8)(Xn,qe.getTreeNodeRequiredProps())),{},{active:((_t=qe.getActiveItem())===null||_t===void 0?void 0:_t.key)===Xn,data:(0,ir.Z)(qe.state.keyEntities,Xn).node}),pr=Vn.indexOf(Xn)!==-1;(0,pe.ZP)(!pr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $n=(0,jn.yx)(Dn),ar={event:Tt,node:(0,cn.F)(Zn),dragNode:qe.dragNode?(0,cn.F)(qe.dragNode.props):null,dragNodesKeys:[qe.dragNode.props.eventKey].concat(Vn),dropToGap:qn!==0,dropPosition:qn+Number($n[$n.length-1])};on||Cn==null||Cn(ar),qe.dragNode=null}}},qe.cleanDragState=function(){var Tt=qe.state.draggingNodeKey;Tt!==null&&qe.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),qe.dragStartMousePosition=null,qe.currentMouseOverDroppableNodeKey=null},qe.triggerExpandActionExpand=function(Tt,Nt){var _t=qe.state,on=_t.expandedKeys,gn=_t.flattenNodes,Vn=Nt.expanded,qn=Nt.key,Xn=Nt.isLeaf;if(!(Xn||Tt.shiftKey||Tt.metaKey||Tt.ctrlKey)){var Dn=gn.filter(function(Cn){return Cn.key===qn})[0],In=(0,cn.F)((0,Te.Z)((0,Te.Z)({},(0,cn.H8)(qn,qe.getTreeNodeRequiredProps())),{},{data:Dn.data}));qe.setExpandedKeys(Vn?(0,jn._5)(on,qn):(0,jn.L0)(on,qn)),qe.onNodeExpand(Tt,In)}},qe.onNodeClick=function(Tt,Nt){var _t=qe.props,on=_t.onClick,gn=_t.expandAction;gn==="click"&&qe.triggerExpandActionExpand(Tt,Nt),on==null||on(Tt,Nt)},qe.onNodeDoubleClick=function(Tt,Nt){var _t=qe.props,on=_t.onDoubleClick,gn=_t.expandAction;gn==="doubleClick"&&qe.triggerExpandActionExpand(Tt,Nt),on==null||on(Tt,Nt)},qe.onNodeSelect=function(Tt,Nt){var _t=qe.state.selectedKeys,on=qe.state,gn=on.keyEntities,Vn=on.fieldNames,qn=qe.props,Xn=qn.onSelect,Dn=qn.multiple,In=Nt.selected,Cn=Nt[Vn.key],Zn=!In;Zn?Dn?_t=(0,jn.L0)(_t,Cn):_t=[Cn]:_t=(0,jn._5)(_t,Cn);var pr=_t.map(function($n){var ar=(0,ir.Z)(gn,$n);return ar?ar.node:null}).filter(function($n){return $n});qe.setUncontrolledState({selectedKeys:_t}),Xn==null||Xn(_t,{event:"select",selected:Zn,node:Nt,selectedNodes:pr,nativeEvent:Tt.nativeEvent})},qe.onNodeCheck=function(Tt,Nt,_t){var on=qe.state,gn=on.keyEntities,Vn=on.checkedKeys,qn=on.halfCheckedKeys,Xn=qe.props,Dn=Xn.checkStrictly,In=Xn.onCheck,Cn=Nt.key,Zn,pr={event:"check",node:Nt,checked:_t,nativeEvent:Tt.nativeEvent};if(Dn){var $n=_t?(0,jn.L0)(Vn,Cn):(0,jn._5)(Vn,Cn),ar=(0,jn._5)(qn,Cn);Zn={checked:$n,halfChecked:ar},pr.checkedNodes=$n.map(function(qt){return(0,ir.Z)(gn,qt)}).filter(function(qt){return qt}).map(function(qt){return qt.node}),qe.setUncontrolledState({checkedKeys:$n})}else{var ur=(0,Jn.S)([].concat((0,ve.Z)(Vn),[Cn]),!0,gn),mr=ur.checkedKeys,wr=ur.halfCheckedKeys;if(!_t){var kt=new Set(mr);kt.delete(Cn);var It=(0,Jn.S)(Array.from(kt),{checked:!1,halfCheckedKeys:wr},gn);mr=It.checkedKeys,wr=It.halfCheckedKeys}Zn=mr,pr.checkedNodes=[],pr.checkedNodesPositions=[],pr.halfCheckedKeys=wr,mr.forEach(function(qt){var Yt=(0,ir.Z)(gn,qt);if(Yt){var En=Yt.node,Hn=Yt.pos;pr.checkedNodes.push(En),pr.checkedNodesPositions.push({node:En,pos:Hn})}}),qe.setUncontrolledState({checkedKeys:mr},!1,{halfCheckedKeys:wr})}In==null||In(Zn,pr)},qe.onNodeLoad=function(Tt){var Nt=Tt.key,_t=new Promise(function(on,gn){qe.setState(function(Vn){var qn=Vn.loadedKeys,Xn=qn===void 0?[]:qn,Dn=Vn.loadingKeys,In=Dn===void 0?[]:Dn,Cn=qe.props,Zn=Cn.loadData,pr=Cn.onLoad;if(!Zn||Xn.indexOf(Nt)!==-1||In.indexOf(Nt)!==-1)return null;var $n=Zn(Tt);return $n.then(function(){var ar=qe.state.loadedKeys,ur=(0,jn.L0)(ar,Nt);pr==null||pr(ur,{event:"load",node:Tt}),qe.setUncontrolledState({loadedKeys:ur}),qe.setState(function(mr){return{loadingKeys:(0,jn._5)(mr.loadingKeys,Nt)}}),on()}).catch(function(ar){if(qe.setState(function(mr){return{loadingKeys:(0,jn._5)(mr.loadingKeys,Nt)}}),qe.loadingRetryTimes[Nt]=(qe.loadingRetryTimes[Nt]||0)+1,qe.loadingRetryTimes[Nt]>=kr){var ur=qe.state.loadedKeys;(0,pe.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),qe.setUncontrolledState({loadedKeys:(0,jn.L0)(ur,Nt)}),on()}gn(ar)}),{loadingKeys:(0,jn.L0)(In,Nt)}})});return _t.catch(function(){}),_t},qe.onNodeMouseEnter=function(Tt,Nt){var _t=qe.props.onMouseEnter;_t==null||_t({event:Tt,node:Nt})},qe.onNodeMouseLeave=function(Tt,Nt){var _t=qe.props.onMouseLeave;_t==null||_t({event:Tt,node:Nt})},qe.onNodeContextMenu=function(Tt,Nt){var _t=qe.props.onRightClick;_t&&(Tt.preventDefault(),_t({event:Tt,node:Nt}))},qe.onFocus=function(){var Tt=qe.props.onFocus;qe.setState({focused:!0});for(var Nt=arguments.length,_t=new Array(Nt),on=0;on<Nt;on++)_t[on]=arguments[on];Tt==null||Tt.apply(void 0,_t)},qe.onBlur=function(){var Tt=qe.props.onBlur;qe.setState({focused:!1}),qe.onActiveChange(null);for(var Nt=arguments.length,_t=new Array(Nt),on=0;on<Nt;on++)_t[on]=arguments[on];Tt==null||Tt.apply(void 0,_t)},qe.getTreeNodeRequiredProps=function(){var Tt=qe.state,Nt=Tt.expandedKeys,_t=Tt.selectedKeys,on=Tt.loadedKeys,gn=Tt.loadingKeys,Vn=Tt.checkedKeys,qn=Tt.halfCheckedKeys,Xn=Tt.dragOverNodeKey,Dn=Tt.dropPosition,In=Tt.keyEntities;return{expandedKeys:Nt||[],selectedKeys:_t||[],loadedKeys:on||[],loadingKeys:gn||[],checkedKeys:Vn||[],halfCheckedKeys:qn||[],dragOverNodeKey:Xn,dropPosition:Dn,keyEntities:In}},qe.setExpandedKeys=function(Tt){var Nt=qe.state,_t=Nt.treeData,on=Nt.fieldNames,gn=(0,cn.oH)(_t,Tt,on);qe.setUncontrolledState({expandedKeys:Tt,flattenNodes:gn},!0)},qe.onNodeExpand=function(Tt,Nt){var _t=qe.state.expandedKeys,on=qe.state,gn=on.listChanging,Vn=on.fieldNames,qn=qe.props,Xn=qn.onExpand,Dn=qn.loadData,In=Nt.expanded,Cn=Nt[Vn.key];if(!gn){var Zn=_t.indexOf(Cn),pr=!In;if((0,pe.ZP)(In&&Zn!==-1||!In&&Zn===-1,"Expand state not sync with index check"),pr?_t=(0,jn.L0)(_t,Cn):_t=(0,jn._5)(_t,Cn),qe.setExpandedKeys(_t),Xn==null||Xn(_t,{node:Nt,expanded:pr,nativeEvent:Tt.nativeEvent}),pr&&Dn){var $n=qe.onNodeLoad(Nt);$n&&$n.then(function(){var ar=(0,cn.oH)(qe.state.treeData,_t,Vn);qe.setUncontrolledState({flattenNodes:ar})}).catch(function(){var ar=qe.state.expandedKeys,ur=(0,jn._5)(ar,Cn);qe.setExpandedKeys(ur)})}}},qe.onListChangeStart=function(){qe.setUncontrolledState({listChanging:!0})},qe.onListChangeEnd=function(){setTimeout(function(){qe.setUncontrolledState({listChanging:!1})})},qe.onActiveChange=function(Tt){var Nt=qe.state.activeKey,_t=qe.props.onActiveChange;Nt!==Tt&&(qe.setState({activeKey:Tt}),Tt!==null&&qe.scrollTo({key:Tt}),_t==null||_t(Tt))},qe.getActiveItem=function(){var Tt=qe.state,Nt=Tt.activeKey,_t=Tt.flattenNodes;return Nt===null?null:_t.find(function(on){var gn=on.key;return gn===Nt})||null},qe.offsetActiveKey=function(Tt){var Nt=qe.state,_t=Nt.flattenNodes,on=Nt.activeKey,gn=_t.findIndex(function(Xn){var Dn=Xn.key;return Dn===on});gn===-1&&Tt<0&&(gn=_t.length),gn=(gn+Tt+_t.length)%_t.length;var Vn=_t[gn];if(Vn){var qn=Vn.key;qe.onActiveChange(qn)}else qe.onActiveChange(null)},qe.onKeyDown=function(Tt){var Nt=qe.state,_t=Nt.activeKey,on=Nt.expandedKeys,gn=Nt.checkedKeys,Vn=Nt.fieldNames,qn=qe.props,Xn=qn.onKeyDown,Dn=qn.checkable,In=qn.selectable;switch(Tt.which){case ce.UP:{qe.offsetActiveKey(-1),Tt.preventDefault();break}case ce.DOWN:{qe.offsetActiveKey(1),Tt.preventDefault();break}}var Cn=qe.getActiveItem();if(Cn&&Cn.data){var Zn=qe.getTreeNodeRequiredProps(),pr=Cn.data.isLeaf===!1||!!(Cn.data[Vn.children]||[]).length,$n=(0,cn.F)((0,Te.Z)((0,Te.Z)({},(0,cn.H8)(_t,Zn)),{},{data:Cn.data,active:!0}));switch(Tt.which){case ce.LEFT:{pr&&on.includes(_t)?qe.onNodeExpand({},$n):Cn.parent&&qe.onActiveChange(Cn.parent.key),Tt.preventDefault();break}case ce.RIGHT:{pr&&!on.includes(_t)?qe.onNodeExpand({},$n):Cn.children&&Cn.children.length&&qe.onActiveChange(Cn.children[0].key),Tt.preventDefault();break}case ce.ENTER:case ce.SPACE:{Dn&&!$n.disabled&&$n.checkable!==!1&&!$n.disableCheckbox?qe.onNodeCheck({},$n,!gn.includes(_t)):!Dn&&In&&!$n.disabled&&$n.selectable!==!1&&qe.onNodeSelect({},$n);break}}}Xn==null||Xn(Tt)},qe.setUncontrolledState=function(Tt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!qe.destroyed){var on=!1,gn=!0,Vn={};Object.keys(Tt).forEach(function(qn){if(qn in qe.props){gn=!1;return}on=!0,Vn[qn]=Tt[qn]}),on&&(!Nt||gn)&&qe.setState((0,Te.Z)((0,Te.Z)({},Vn),_t))}},qe.scrollTo=function(Tt){qe.listRef.current.scrollTo(Tt)},qe}return(0,te.Z)(Yn,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var yt=this.props.activeKey;yt!==void 0&&yt!==this.state.activeKey&&(this.setState({activeKey:yt}),yt!==null&&this.scrollTo({key:yt}))}},{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 yt,St=this.state,Dt=St.focused,Tt=St.flattenNodes,Nt=St.keyEntities,_t=St.draggingNodeKey,on=St.activeKey,gn=St.dropLevelOffset,Vn=St.dropContainerKey,qn=St.dropTargetKey,Xn=St.dropPosition,Dn=St.dragOverNodeKey,In=St.indent,Cn=this.props,Zn=Cn.prefixCls,pr=Cn.className,$n=Cn.style,ar=Cn.showLine,ur=Cn.focusable,mr=Cn.tabIndex,wr=mr===void 0?0:mr,kt=Cn.selectable,It=Cn.showIcon,qt=Cn.icon,Yt=Cn.switcherIcon,En=Cn.draggable,Hn=Cn.checkable,Ht=Cn.checkStrictly,Vt=Cn.disabled,Gt=Cn.motion,en=Cn.loadData,Ln=Cn.filterTreeNode,Qn=Cn.height,On=Cn.itemHeight,Kn=Cn.virtual,vr=Cn.titleRender,Br=Cn.dropIndicatorRender,Cr=Cn.onContextMenu,sr=Cn.onScroll,Mr=Cn.direction,Nr=Cn.rootClassName,Yr=Cn.rootStyle,Rr=(0,fe.Z)(this.props,{aria:!0,data:!0}),xr;return En&&((0,x.Z)(En)==="object"?xr=En:typeof En=="function"?xr={nodeDraggable:En}:xr={}),le.createElement(Se.k.Provider,{value:{prefixCls:Zn,selectable:kt,showIcon:It,icon:qt,switcherIcon:Yt,draggable:xr,draggingNodeKey:_t,checkable:Hn,checkStrictly:Ht,disabled:Vt,keyEntities:Nt,dropLevelOffset:gn,dropContainerKey:Vn,dropTargetKey:qn,dropPosition:Xn,dragOverNodeKey:Dn,indent:In,direction:Mr,dropIndicatorRender:Br,loadData:en,filterTreeNode:Ln,titleRender:vr,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}},le.createElement("div",{role:"tree",className:re()(Zn,pr,Nr,(yt={},(0,Je.Z)(yt,"".concat(Zn,"-show-line"),ar),(0,Je.Z)(yt,"".concat(Zn,"-focused"),Dt),(0,Je.Z)(yt,"".concat(Zn,"-active-focused"),on!==null),yt)),style:Yr},le.createElement(Ar,(0,Oe.Z)({ref:this.listRef,prefixCls:Zn,style:$n,data:Tt,disabled:Vt,selectable:kt,checkable:!!Hn,motion:Gt,dragging:_t!==null,height:Qn,itemHeight:On,virtual:Kn,focusable:ur,focused:Dt,tabIndex:wr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Cr,onScroll:sr},this.getTreeNodeRequiredProps(),Rr))))}}],[{key:"getDerivedStateFromProps",value:function(yt,St){var Dt=St.prevProps,Tt={prevProps:yt};function Nt(ur){return!Dt&&ur in yt||Dt&&Dt[ur]!==yt[ur]}var _t,on=St.fieldNames;if(Nt("fieldNames")&&(on=(0,cn.w$)(yt.fieldNames),Tt.fieldNames=on),Nt("treeData")?_t=yt.treeData:Nt("children")&&((0,pe.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),_t=(0,cn.zn)(yt.children)),_t){Tt.treeData=_t;var gn=(0,cn.I8)(_t,{fieldNames:on});Tt.keyEntities=(0,Te.Z)((0,Je.Z)({},Ir,Wr),gn.keyEntities)}var Vn=Tt.keyEntities||St.keyEntities;if(Nt("expandedKeys")||Dt&&Nt("autoExpandParent"))Tt.expandedKeys=yt.autoExpandParent||!Dt&&yt.defaultExpandParent?(0,jn.r7)(yt.expandedKeys,Vn):yt.expandedKeys;else if(!Dt&&yt.defaultExpandAll){var qn=(0,Te.Z)({},Vn);delete qn[Ir],Tt.expandedKeys=Object.keys(qn).map(function(ur){return qn[ur].key})}else!Dt&&yt.defaultExpandedKeys&&(Tt.expandedKeys=yt.autoExpandParent||yt.defaultExpandParent?(0,jn.r7)(yt.defaultExpandedKeys,Vn):yt.defaultExpandedKeys);if(Tt.expandedKeys||delete Tt.expandedKeys,_t||Tt.expandedKeys){var Xn=(0,cn.oH)(_t||St.treeData,Tt.expandedKeys||St.expandedKeys,on);Tt.flattenNodes=Xn}if(yt.selectable&&(Nt("selectedKeys")?Tt.selectedKeys=(0,jn.BT)(yt.selectedKeys,yt):!Dt&&yt.defaultSelectedKeys&&(Tt.selectedKeys=(0,jn.BT)(yt.defaultSelectedKeys,yt))),yt.checkable){var Dn;if(Nt("checkedKeys")?Dn=(0,jn.E6)(yt.checkedKeys)||{}:!Dt&&yt.defaultCheckedKeys?Dn=(0,jn.E6)(yt.defaultCheckedKeys)||{}:_t&&(Dn=(0,jn.E6)(yt.checkedKeys)||{checkedKeys:St.checkedKeys,halfCheckedKeys:St.halfCheckedKeys}),Dn){var In=Dn,Cn=In.checkedKeys,Zn=Cn===void 0?[]:Cn,pr=In.halfCheckedKeys,$n=pr===void 0?[]:pr;if(!yt.checkStrictly){var ar=(0,Jn.S)(Zn,!0,Vn);Zn=ar.checkedKeys,$n=ar.halfCheckedKeys}Tt.checkedKeys=Zn,Tt.halfCheckedKeys=$n}}return Nt("loadedKeys")&&(Tt.loadedKeys=yt.loadedKeys),Tt}}]),Yn}(le.Component);Ur.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:xe,allowDrop:function(){return!0},expandAction:!1},Ur.TreeNode=Wt.Z;var Wn=Ur,Oi=Wn,bi=me(73148),xa=me(56747),ha={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"},ia=ha,Ha=me(84089),Ji=function(Pn,Yn){return le.createElement(Ha.Z,(0,Oe.Z)({},Pn,{ref:Yn,icon:ia}))},Wi=le.forwardRef(Ji),wa=me(53124),Fa=me(50881),Ii=me(33603),la=me(32157);const Oa=4;function ao(Sn){const{dropPosition:Pn,dropLevelOffset:Yn,prefixCls:qe,indent:yt,direction:St="ltr"}=Sn,Dt=St==="ltr"?"left":"right",Tt=St==="ltr"?"right":"left",Nt={[Dt]:-Yn*yt+Oa,[Tt]:0};switch(Pn){case-1:Nt.top=-3;break;case 1:Nt.bottom=-3;break;default:Nt.bottom=-3,Nt[Dt]=yt+Oa;break}return le.createElement("div",{style:Nt,className:`${qe}-drop-indicator`})}var Qa=me(99184),mn=le.forwardRef((Sn,Pn)=>{const{getPrefixCls:Yn,direction:qe,virtual:yt,tree:St}=le.useContext(wa.E_),{prefixCls:Dt,className:Tt,showIcon:Nt=!1,showLine:_t,switcherIcon:on,blockNode:gn=!1,children:Vn,checkable:qn=!1,selectable:Xn=!0,draggable:Dn,motion:In,style:Cn}=Sn,Zn=Yn("tree",Dt),pr=Yn(),$n=In!=null?In:Object.assign(Object.assign({},(0,Ii.Z)(pr)),{motionAppear:!1}),ar=Object.assign(Object.assign({},Sn),{checkable:qn,selectable:Xn,showIcon:Nt,motion:$n,blockNode:gn,showLine:!!_t,dropIndicatorRender:ao}),[ur,mr]=(0,la.ZP)(Zn),wr=le.useMemo(()=>{if(!Dn)return!1;let It={};switch(typeof Dn){case"function":It.nodeDraggable=Dn;break;case"object":It=Object.assign({},Dn);break;default:break}return It.icon!==!1&&(It.icon=It.icon||le.createElement(Fa.Z,null)),It},[Dn]),kt=It=>le.createElement(Qa.Z,{prefixCls:Zn,switcherIcon:on,treeNodeProps:It,showLine:_t});return ur(le.createElement(Oi,Object.assign({itemHeight:20,ref:Pn,virtual:yt},ar,{style:Object.assign(Object.assign({},St==null?void 0:St.style),Cn),prefixCls:Zn,className:re()({[`${Zn}-icon-hide`]:!Nt,[`${Zn}-block-node`]:gn,[`${Zn}-unselectable`]:!Xn,[`${Zn}-rtl`]:qe==="rtl"},St==null?void 0:St.className,Tt,mr),direction:qe,checkable:qn&&le.createElement("span",{className:`${Zn}-checkbox-inner`}),selectable:Xn,switcherIcon:kt,draggable:wr}),Vn))}),ln;(function(Sn){Sn[Sn.None=0]="None",Sn[Sn.Start=1]="Start",Sn[Sn.End=2]="End"})(ln||(ln={}));function Fn(Sn,Pn){function Yn(qe){const{key:yt,children:St}=qe;Pn(yt,qe)!==!1&&Fn(St||[],Pn)}Sn.forEach(Yn)}function or(Sn){let{treeData:Pn,expandedKeys:Yn,startKey:qe,endKey:yt}=Sn;const St=[];let Dt=ln.None;if(qe&&qe===yt)return[qe];if(!qe||!yt)return[];function Tt(Nt){return Nt===qe||Nt===yt}return Fn(Pn,Nt=>{if(Dt===ln.End)return!1;if(Tt(Nt)){if(St.push(Nt),Dt===ln.None)Dt=ln.Start;else if(Dt===ln.Start)return Dt=ln.End,!1}else Dt===ln.Start&&St.push(Nt);return Yn.includes(Nt)}),St}function br(Sn,Pn){const Yn=(0,ve.Z)(Pn),qe=[];return Fn(Sn,(yt,St)=>{const Dt=Yn.indexOf(yt);return Dt!==-1&&(qe.push(St),Yn.splice(Dt,1)),!!Yn.length}),qe}var Xr=function(Sn,Pn){var Yn={};for(var qe in Sn)Object.prototype.hasOwnProperty.call(Sn,qe)&&Pn.indexOf(qe)<0&&(Yn[qe]=Sn[qe]);if(Sn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,qe=Object.getOwnPropertySymbols(Sn);yt<qe.length;yt++)Pn.indexOf(qe[yt])<0&&Object.prototype.propertyIsEnumerable.call(Sn,qe[yt])&&(Yn[qe[yt]]=Sn[qe[yt]]);return Yn};function oi(Sn){const{isLeaf:Pn,expanded:Yn}=Sn;return Pn?le.createElement(bi.Z,null):Yn?le.createElement(xa.Z,null):le.createElement(Wi,null)}function pi(Sn){let{treeData:Pn,children:Yn}=Sn;return Pn||(0,cn.zn)(Yn)}const Ti=(Sn,Pn)=>{var{defaultExpandAll:Yn,defaultExpandParent:qe,defaultExpandedKeys:yt}=Sn,St=Xr(Sn,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Dt=le.useRef(),Tt=le.useRef(),Nt=()=>{const{keyEntities:wr}=(0,cn.I8)(pi(St));let kt;return Yn?kt=Object.keys(wr):qe?kt=(0,jn.r7)(St.expandedKeys||yt||[],wr):kt=St.expandedKeys||yt,kt},[_t,on]=le.useState(St.selectedKeys||St.defaultSelectedKeys||[]),[gn,Vn]=le.useState(()=>Nt());le.useEffect(()=>{"selectedKeys"in St&&on(St.selectedKeys)},[St.selectedKeys]),le.useEffect(()=>{"expandedKeys"in St&&Vn(St.expandedKeys)},[St.expandedKeys]);const qn=(wr,kt)=>{var It;return"expandedKeys"in St||Vn(wr),(It=St.onExpand)===null||It===void 0?void 0:It.call(St,wr,kt)},Xn=(wr,kt)=>{var It;const{multiple:qt}=St,{node:Yt,nativeEvent:En}=kt,{key:Hn=""}=Yt,Ht=pi(St),Vt=Object.assign(Object.assign({},kt),{selected:!0}),Gt=(En==null?void 0:En.ctrlKey)||(En==null?void 0:En.metaKey),en=En==null?void 0:En.shiftKey;let Ln;qt&&Gt?(Ln=wr,Dt.current=Hn,Tt.current=Ln,Vt.selectedNodes=br(Ht,Ln)):qt&&en?(Ln=Array.from(new Set([].concat((0,ve.Z)(Tt.current||[]),(0,ve.Z)(or({treeData:Ht,expandedKeys:gn,startKey:Hn,endKey:Dt.current}))))),Vt.selectedNodes=br(Ht,Ln)):(Ln=[Hn],Dt.current=Hn,Tt.current=Ln,Vt.selectedNodes=br(Ht,Ln)),(It=St.onSelect)===null||It===void 0||It.call(St,Ln,Vt),"selectedKeys"in St||on(Ln)},{getPrefixCls:Dn,direction:In}=le.useContext(wa.E_),{prefixCls:Cn,className:Zn,showIcon:pr=!0,expandAction:$n="click"}=St,ar=Xr(St,["prefixCls","className","showIcon","expandAction"]),ur=Dn("tree",Cn),mr=re()(`${ur}-directory`,{[`${ur}-directory-rtl`]:In==="rtl"},Zn);return le.createElement(mn,Object.assign({icon:oi,ref:Pn,blockNode:!0},ar,{showIcon:pr,expandAction:$n,prefixCls:ur,className:mr,expandedKeys:gn,selectedKeys:_t,onSelect:Xn,onExpand:qn}))};var Ri=le.forwardRef(Ti);const $i=mn;$i.DirectoryTree=Ri,$i.TreeNode=Wt.Z;var ni=$i},32157:function(tn,Kt,me){"use strict";me.d(Kt,{TM:function(){return se},Yk:function(){return re}});var Oe=me(34367),Je=me(63185),x=me(14747),Te=me(33507),ve=me(45503),ie=me(67968);const te=new Oe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ae=(ce,fe)=>({[`.${ce}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${fe.motionDurationSlow}`}}}),ne=(ce,fe)=>({[`.${ce}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:fe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${fe.lineWidthBold}px solid ${fe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),oe=(ce,fe)=>{const{treeCls:pe,treeNodeCls:le,treeNodePadding:Se,titleHeight:xe,nodeSelectedBg:ge,nodeHoverBg:Me}=fe,ye=fe.paddingXS;return{[pe]:Object.assign(Object.assign({},(0,x.Wf)(fe)),{background:fe.colorBgContainer,borderRadius:fe.borderRadius,transition:`background-color ${fe.motionDurationSlow}`,[`&${pe}-rtl`]:{[`${pe}-switcher`]:{"&_close":{[`${pe}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${pe}-active-focused)`]:Object.assign({},(0,x.oN)(fe)),[`${pe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${pe}-block-node`]:{[`${pe}-list-holder-inner`]:{alignItems:"stretch",[`${pe}-node-content-wrapper`]:{flex:"auto"},[`${le}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Se,insetInlineStart:0,border:`1px solid ${fe.colorPrimary}`,opacity:0,animationName:te,animationDuration:fe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${le}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${pe}-node-content-wrapper`]:{color:fe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${pe}-node-content-wrapper`]:Object.assign({},(0,x.oN)(fe)),[`&:not(${le}-disabled).filter-node ${pe}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${pe}-draggable-icon`]:{flexShrink:0,width:xe,lineHeight:`${xe}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${fe.motionDurationSlow}`,[`${le}:hover &`]:{opacity:.45}},[`&${le}-disabled`]:{[`${pe}-draggable-icon`]:{visibility:"hidden"}}}},[`${pe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:xe}},[`${pe}-draggable-icon`]:{visibility:"hidden"},[`${pe}-switcher`]:Object.assign(Object.assign({},ae(ce,fe)),{position:"relative",flex:"none",alignSelf:"stretch",width:xe,margin:0,lineHeight:`${xe}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${pe}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:fe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:xe/2,bottom:-Se,marginInlineStart:-1,borderInlineEnd:`1px solid ${fe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:xe/2*.8,height:xe/2,borderBottom:`1px solid ${fe.colorBorder}`,content:'""'}}}),[`${pe}-checkbox`]:{top:"initial",marginInlineEnd:ye},[`${pe}-node-content-wrapper, ${pe}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:xe,margin:0,padding:`0 ${fe.paddingXS/2}px`,color:"inherit",lineHeight:`${xe}px`,background:"transparent",borderRadius:fe.borderRadius,cursor:"pointer",transition:`all ${fe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Me},[`&${pe}-node-selected`]:{backgroundColor:ge},[`${pe}-iconEle`]:{display:"inline-block",width:xe,height:xe,lineHeight:`${xe}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${pe}-unselectable ${pe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${pe}-node-content-wrapper`]:Object.assign({lineHeight:`${xe}px`,userSelect:"none"},ne(ce,fe)),[`${le}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${fe.colorPrimary}`}},"&-show-line":{[`${pe}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:xe/2,bottom:-Se,borderInlineEnd:`1px solid ${fe.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${pe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${le}-leaf-last`]:{[`${pe}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${xe/2}px !important`}}}}})}},he=ce=>{const{treeCls:fe,treeNodeCls:pe,treeNodePadding:le,directoryNodeSelectedBg:Se,directoryNodeSelectedColor:xe}=ce;return{[`${fe}${fe}-directory`]:{[pe]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:le,insetInlineStart:0,transition:`background-color ${ce.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ce.controlItemBgHover}},"> *":{zIndex:1},[`${fe}-switcher`]:{transition:`color ${ce.motionDurationMid}`},[`${fe}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${fe}-node-selected`]:{color:xe,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Se},[`${fe}-switcher`]:{color:xe},[`${fe}-node-content-wrapper`]:{color:xe,background:"transparent"}}}}}},re=(ce,fe)=>{const pe=`.${ce}`,le=`${pe}-treenode`,Se=fe.paddingXS/2,xe=(0,ve.TS)(fe,{treeCls:pe,treeNodeCls:le,treeNodePadding:Se});return[oe(ce,xe),he(xe)]},se=ce=>{const{controlHeightSM:fe}=ce;return{titleHeight:fe,nodeHoverBg:ce.controlItemBgHover,nodeSelectedBg:ce.controlItemBgActive}};Kt.ZP=(0,ie.Z)("Tree",(ce,fe)=>{let{prefixCls:pe}=fe;return[{[ce.componentCls]:(0,Je.C2)(`${pe}-checkbox`,ce)},re(pe,ce),(0,Te.Z)(ce)]},ce=>{const{colorTextLightSolid:fe,colorPrimary:pe}=ce;return Object.assign(Object.assign({},se(ce)),{directoryNodeSelectedColor:fe,directoryNodeSelectedBg:pe})})},99184:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return pe}});var Oe=me(87462),Je=me(67294),x={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=x,ve=me(84089),ie=function(Se,xe){return Je.createElement(ve.Z,(0,Oe.Z)({},Se,{ref:xe,icon:Te}))},te=Je.forwardRef(ie),ae=me(73148),ne=me(3407),oe=me(34182),he=me(74664),re=me(94184),se=me.n(re),ce=me(96159),pe=le=>{const{prefixCls:Se,switcherIcon:xe,treeNodeProps:ge,showLine:Me}=le,{isLeaf:ye,expanded:be,loading:Fe}=ge;if(Fe)return Je.createElement(ne.Z,{className:`${Se}-switcher-loading-icon`});let ke;if(Me&&typeof Me=="object"&&(ke=Me.showLeafIcon),ye){if(!Me)return null;if(typeof ke!="boolean"&&ke){const Ie=typeof ke=="function"?ke(ge):ke,Be=`${Se}-switcher-line-custom-icon`;return(0,ce.l$)(Ie)?(0,ce.Tm)(Ie,{className:se()(Ie.props.className||"",Be)}):Ie}return ke?Je.createElement(ae.Z,{className:`${Se}-switcher-line-icon`}):Je.createElement("span",{className:`${Se}-switcher-leaf-line`})}const De=`${Se}-switcher-icon`,Le=typeof xe=="function"?xe(ge):xe;return(0,ce.l$)(Le)?(0,ce.Tm)(Le,{className:se()(Le.props.className||"",De)}):Le!==void 0?Le:Me?be?Je.createElement(oe.Z,{className:`${Se}-switcher-line-icon`}):Je.createElement(he.Z,{className:`${Se}-switcher-line-icon`}):Je.createElement(te,{className:De})}},59810:function(tn,Kt,me){"use strict";me.d(Kt,{default:function(){return Vr}});var Oe=me(67294),Je=me(74902),x=me(94184),Te=me.n(x),ve=me(87462),ie=me(15671),te=me(43144),ae=me(60136),ne=me(51630),oe=me(4942),he=me(45987),re=me(74165),se=me(71002),ce=me(15861),fe=me(64217);function pe(nn,Jt){var pn="cannot ".concat(nn.method," ").concat(nn.action," ").concat(Jt.status,"'"),tr=new Error(pn);return tr.status=Jt.status,tr.method=nn.method,tr.url=nn.action,tr}function le(nn){var Jt=nn.responseText||nn.response;if(!Jt)return Jt;try{return JSON.parse(Jt)}catch(pn){return Jt}}function Se(nn){var Jt=new XMLHttpRequest;nn.onProgress&&Jt.upload&&(Jt.upload.onprogress=function(jn){jn.total>0&&(jn.percent=jn.loaded/jn.total*100),nn.onProgress(jn)});var pn=new FormData;nn.data&&Object.keys(nn.data).forEach(function(Ar){var jn=nn.data[Ar];if(Array.isArray(jn)){jn.forEach(function(Jn){pn.append("".concat(Ar,"[]"),Jn)});return}pn.append(Ar,jn)}),nn.file instanceof Blob?pn.append(nn.filename,nn.file,nn.file.name):pn.append(nn.filename,nn.file),Jt.onerror=function(jn){nn.onError(jn)},Jt.onload=function(){return Jt.status<200||Jt.status>=300?nn.onError(pe(nn,Jt),le(Jt)):nn.onSuccess(le(Jt),Jt)},Jt.open(nn.method,nn.action,!0),nn.withCredentials&&"withCredentials"in Jt&&(Jt.withCredentials=!0);var tr=nn.headers||{};return tr["X-Requested-With"]!==null&&Jt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(tr).forEach(function(Ar){tr[Ar]!==null&&Jt.setRequestHeader(Ar,tr[Ar])}),Jt.send(pn),{abort:function(){Jt.abort()}}}var xe=+new Date,ge=0;function Me(){return"rc-upload-".concat(xe,"-").concat(++ge)}var ye=me(80334),be=function(nn,Jt){if(nn&&Jt){var pn=Array.isArray(Jt)?Jt:Jt.split(","),tr=nn.name||"",Ar=nn.type||"",jn=Ar.replace(/\/.*$/,"");return pn.some(function(Jn){var ir=Jn.trim();if(/^\*(\/\*)?$/.test(Jn))return!0;if(ir.charAt(0)==="."){var kr=tr.toLowerCase(),Ur=ir.toLowerCase(),Wn=[Ur];return(Ur===".jpg"||Ur===".jpeg")&&(Wn=[".jpg",".jpeg"]),Wn.some(function(Oi){return kr.endsWith(Oi)})}return/\/\*$/.test(ir)?jn===ir.replace(/\/.*$/,""):Ar===ir?!0:/^\w+$/.test(ir)?((0,ye.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ir,"'.Skip for check.")),!0):!1})}return!0};function Fe(nn,Jt){var pn=nn.createReader(),tr=[];function Ar(){pn.readEntries(function(jn){var Jn=Array.prototype.slice.apply(jn);tr=tr.concat(Jn);var ir=!Jn.length;ir?Jt(tr):Ar()})}Ar()}var ke=function(Jt,pn,tr){var Ar=function jn(Jn,ir){Jn&&(Jn.path=ir||"",Jn.isFile?Jn.file(function(kr){tr(kr)&&(Jn.fullPath&&!kr.webkitRelativePath&&(Object.defineProperties(kr,{webkitRelativePath:{writable:!0}}),kr.webkitRelativePath=Jn.fullPath.replace(/^\//,""),Object.defineProperties(kr,{webkitRelativePath:{writable:!1}})),pn([kr]))}):Jn.isDirectory&&Fe(Jn,function(kr){kr.forEach(function(Ur){jn(Ur,"".concat(ir).concat(Jn.name,"/"))})}))};Jt.forEach(function(jn){Ar(jn.webkitGetAsEntry())})},De=ke,Le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ie=function(nn){(0,ae.Z)(pn,nn);var Jt=(0,ne.Z)(pn);function pn(){var tr;(0,ie.Z)(this,pn);for(var Ar=arguments.length,jn=new Array(Ar),Jn=0;Jn<Ar;Jn++)jn[Jn]=arguments[Jn];return tr=Jt.call.apply(Jt,[this].concat(jn)),tr.state={uid:Me()},tr.reqs={},tr.fileInput=void 0,tr._isMounted=void 0,tr.onChange=function(ir){var kr=tr.props,Ur=kr.accept,Wn=kr.directory,Oi=ir.target.files,bi=(0,Je.Z)(Oi).filter(function(xa){return!Wn||be(xa,Ur)});tr.uploadFiles(bi),tr.reset()},tr.onClick=function(ir){var kr=tr.fileInput;if(kr){var Ur=tr.props,Wn=Ur.children,Oi=Ur.onClick;if(Wn&&Wn.type==="button"){var bi=kr.parentNode;bi.focus(),bi.querySelector("button").blur()}kr.click(),Oi&&Oi(ir)}},tr.onKeyDown=function(ir){ir.key==="Enter"&&tr.onClick(ir)},tr.onFileDrop=function(ir){var kr=tr.props.multiple;if(ir.preventDefault(),ir.type!=="dragover")if(tr.props.directory)De(Array.prototype.slice.call(ir.dataTransfer.items),tr.uploadFiles,function(Wn){return be(Wn,tr.props.accept)});else{var Ur=(0,Je.Z)(ir.dataTransfer.files).filter(function(Wn){return be(Wn,tr.props.accept)});kr===!1&&(Ur=Ur.slice(0,1)),tr.uploadFiles(Ur)}},tr.uploadFiles=function(ir){var kr=(0,Je.Z)(ir),Ur=kr.map(function(Wn){return Wn.uid=Me(),tr.processFile(Wn,kr)});Promise.all(Ur).then(function(Wn){var Oi=tr.props.onBatchStart;Oi==null||Oi(Wn.map(function(bi){var xa=bi.origin,ha=bi.parsedFile;return{file:xa,parsedFile:ha}})),Wn.filter(function(bi){return bi.parsedFile!==null}).forEach(function(bi){tr.post(bi)})})},tr.processFile=function(){var ir=(0,ce.Z)((0,re.Z)().mark(function kr(Ur,Wn){var Oi,bi,xa,ha,ia,Ha,Ji,Wi,wa;return(0,re.Z)().wrap(function(Ii){for(;;)switch(Ii.prev=Ii.next){case 0:if(Oi=tr.props.beforeUpload,bi=Ur,!Oi){Ii.next=14;break}return Ii.prev=3,Ii.next=6,Oi(Ur,Wn);case 6:bi=Ii.sent,Ii.next=12;break;case 9:Ii.prev=9,Ii.t0=Ii.catch(3),bi=!1;case 12:if(bi!==!1){Ii.next=14;break}return Ii.abrupt("return",{origin:Ur,parsedFile:null,action:null,data:null});case 14:if(xa=tr.props.action,typeof xa!="function"){Ii.next=21;break}return Ii.next=18,xa(Ur);case 18:ha=Ii.sent,Ii.next=22;break;case 21:ha=xa;case 22:if(ia=tr.props.data,typeof ia!="function"){Ii.next=29;break}return Ii.next=26,ia(Ur);case 26:Ha=Ii.sent,Ii.next=30;break;case 29:Ha=ia;case 30:return Ji=((0,se.Z)(bi)==="object"||typeof bi=="string")&&bi?bi:Ur,Ji instanceof File?Wi=Ji:Wi=new File([Ji],Ur.name,{type:Ur.type}),wa=Wi,wa.uid=Ur.uid,Ii.abrupt("return",{origin:Ur,data:Ha,parsedFile:wa,action:ha});case 35:case"end":return Ii.stop()}},kr,null,[[3,9]])}));return function(kr,Ur){return ir.apply(this,arguments)}}(),tr.saveFileInput=function(ir){tr.fileInput=ir},tr}return(0,te.Z)(pn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ar){var jn=this,Jn=Ar.data,ir=Ar.origin,kr=Ar.action,Ur=Ar.parsedFile;if(this._isMounted){var Wn=this.props,Oi=Wn.onStart,bi=Wn.customRequest,xa=Wn.name,ha=Wn.headers,ia=Wn.withCredentials,Ha=Wn.method,Ji=ir.uid,Wi=bi||Se,wa={action:kr,filename:xa,data:Jn,file:Ur,headers:ha,withCredentials:ia,method:Ha||"post",onProgress:function(Ii){var la=jn.props.onProgress;la==null||la(Ii,Ur)},onSuccess:function(Ii,la){var Oa=jn.props.onSuccess;Oa==null||Oa(Ii,Ur,la),delete jn.reqs[Ji]},onError:function(Ii,la){var Oa=jn.props.onError;Oa==null||Oa(Ii,la,Ur),delete jn.reqs[Ji]}};Oi(ir),this.reqs[Ji]=Wi(wa)}}},{key:"reset",value:function(){this.setState({uid:Me()})}},{key:"abort",value:function(Ar){var jn=this.reqs;if(Ar){var Jn=Ar.uid?Ar.uid:Ar;jn[Jn]&&jn[Jn].abort&&jn[Jn].abort(),delete jn[Jn]}else Object.keys(jn).forEach(function(ir){jn[ir]&&jn[ir].abort&&jn[ir].abort(),delete jn[ir]})}},{key:"render",value:function(){var Ar,jn=this.props,Jn=jn.component,ir=jn.prefixCls,kr=jn.className,Ur=jn.disabled,Wn=jn.id,Oi=jn.style,bi=jn.multiple,xa=jn.accept,ha=jn.capture,ia=jn.children,Ha=jn.directory,Ji=jn.openFileDialogOnClick,Wi=jn.onMouseEnter,wa=jn.onMouseLeave,Fa=(0,he.Z)(jn,Le),Ii=Te()((Ar={},(0,oe.Z)(Ar,ir,!0),(0,oe.Z)(Ar,"".concat(ir,"-disabled"),Ur),(0,oe.Z)(Ar,kr,kr),Ar)),la=Ha?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Oa=Ur?{}:{onClick:Ji?this.onClick:function(){},onKeyDown:Ji?this.onKeyDown:function(){},onMouseEnter:Wi,onMouseLeave:wa,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Oe.createElement(Jn,(0,ve.Z)({},Oa,{className:Ii,role:"button",style:Oi}),Oe.createElement("input",(0,ve.Z)({},(0,fe.Z)(Fa,{aria:!0,data:!0}),{id:Wn,disabled:Ur,type:"file",ref:this.saveFileInput,onClick:function(Qa){return Qa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:xa},la,{multiple:bi,onChange:this.onChange},ha!=null?{capture:ha}:{})),ia)}}]),pn}(Oe.Component),Be=Ie;function Ue(){}var _e=function(nn){(0,ae.Z)(pn,nn);var Jt=(0,ne.Z)(pn);function pn(){var tr;(0,ie.Z)(this,pn);for(var Ar=arguments.length,jn=new Array(Ar),Jn=0;Jn<Ar;Jn++)jn[Jn]=arguments[Jn];return tr=Jt.call.apply(Jt,[this].concat(jn)),tr.uploader=void 0,tr.saveUploader=function(ir){tr.uploader=ir},tr}return(0,te.Z)(pn,[{key:"abort",value:function(Ar){this.uploader.abort(Ar)}},{key:"render",value:function(){return Oe.createElement(Be,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),pn}(Oe.Component);_e.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ue,onError:Ue,onSuccess:Ue,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var We=_e,Ze=We,et=me(5663),it=me(73935),pt=me(53124),Ge=me(98866),Xe=me(10110),lt=me(24457),dt={icon:function(Jt,pn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:pn}},{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:Jt}}]}},name:"file",theme:"twotone"},st=dt,nt=me(84089),rt=function(Jt,pn){return Oe.createElement(nt.Z,(0,ve.Z)({},Jt,{ref:pn,icon:st}))},at=Oe.forwardRef(rt),gt=me(3407),vt={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"},Et=vt,At=function(Jt,pn){return Oe.createElement(nt.Z,(0,ve.Z)({},Jt,{ref:pn,icon:Et}))},ut=Oe.forwardRef(At),Ye={icon:function(Jt,pn){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:Jt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:pn}},{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:pn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:pn}},{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:Jt}}]}},name:"picture",theme:"twotone"},Ve=Ye,de=function(Jt,pn){return Oe.createElement(nt.Z,(0,ve.Z)({},Jt,{ref:pn,icon:Ve}))},Ce=Oe.forwardRef(de),He=me(38379),je=me(57838),Ae=me(33603),Ne=me(96159),ze=me(71577);function Qe(nn){return Object.assign(Object.assign({},nn),{lastModified:nn.lastModified,lastModifiedDate:nn.lastModifiedDate,name:nn.name,size:nn.size,type:nn.type,uid:nn.uid,percent:0,originFileObj:nn})}function ot(nn,Jt){const pn=(0,Je.Z)(Jt),tr=pn.findIndex(Ar=>{let{uid:jn}=Ar;return jn===nn.uid});return tr===-1?pn.push(nn):pn[tr]=nn,pn}function mt(nn,Jt){const pn=nn.uid!==void 0?"uid":"name";return Jt.filter(tr=>tr[pn]===nn[pn])[0]}function Ot(nn,Jt){const pn=nn.uid!==void 0?"uid":"name",tr=Jt.filter(Ar=>Ar[pn]!==nn[pn]);return tr.length===Jt.length?null:tr}const xt=function(){const Jt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),tr=Jt[Jt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(tr)||[""])[0]},Ut=nn=>nn.indexOf("image/")===0,xn=nn=>{if(nn.type&&!nn.thumbUrl)return Ut(nn.type);const Jt=nn.thumbUrl||nn.url||"",pn=xt(Jt);return/^data:image\//.test(Jt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(pn)?!0:!(/^data:/.test(Jt)||pn)},Ft=200;function Qt(nn){return new Promise(Jt=>{if(!nn.type||!Ut(nn.type)){Jt("");return}const pn=document.createElement("canvas");pn.width=Ft,pn.height=Ft,pn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ft}px; height: ${Ft}px; z-index: 9999; display: none;`,document.body.appendChild(pn);const tr=pn.getContext("2d"),Ar=new Image;if(Ar.onload=()=>{const{width:jn,height:Jn}=Ar;let ir=Ft,kr=Ft,Ur=0,Wn=0;jn>Jn?(kr=Jn*(Ft/jn),Wn=-(kr-ir)/2):(ir=jn*(Ft/Jn),Ur=-(ir-kr)/2),tr.drawImage(Ar,Ur,Wn,ir,kr);const Oi=pn.toDataURL();document.body.removeChild(pn),window.URL.revokeObjectURL(Ar.src),Jt(Oi)},Ar.crossOrigin="anonymous",nn.type.startsWith("image/svg+xml")){const jn=new FileReader;jn.onload=()=>{jn.result&&(Ar.src=jn.result)},jn.readAsDataURL(nn)}else if(nn.type.startsWith("image/gif")){const jn=new FileReader;jn.onload=()=>{jn.result&&Jt(jn.result)},jn.readAsDataURL(nn)}else Ar.src=window.URL.createObjectURL(nn)})}var Zt=me(84249),bn=me(90674),Pt=me(99569),zt=me(38703),sn=me(83062),kn=Oe.forwardRef((nn,Jt)=>{let{prefixCls:pn,className:tr,style:Ar,locale:jn,listType:Jn,file:ir,items:kr,progress:Ur,iconRender:Wn,actionIconRender:Oi,itemRender:bi,isImgUrl:xa,showPreviewIcon:ha,showRemoveIcon:ia,showDownloadIcon:Ha,previewIcon:Ji,removeIcon:Wi,downloadIcon:wa,onPreview:Fa,onDownload:Ii,onClose:la}=nn;var Oa,ao;const{status:Qa}=ir,[Ni,mn]=Oe.useState(Qa);Oe.useEffect(()=>{Qa!=="removed"&&mn(Qa)},[Qa]);const[ln,Fn]=Oe.useState(!1);Oe.useEffect(()=>{const Tt=setTimeout(()=>{Fn(!0)},300);return()=>{clearTimeout(Tt)}},[]);const or=Wn(ir);let br=Oe.createElement("div",{className:`${pn}-icon`},or);if(Jn==="picture"||Jn==="picture-card"||Jn==="picture-circle")if(Ni==="uploading"||!ir.thumbUrl&&!ir.url){const Tt=Te()(`${pn}-list-item-thumbnail`,{[`${pn}-list-item-file`]:Ni!=="uploading"});br=Oe.createElement("div",{className:Tt},or)}else{const Tt=xa!=null&&xa(ir)?Oe.createElement("img",{src:ir.thumbUrl||ir.url,alt:ir.name,className:`${pn}-list-item-image`,crossOrigin:ir.crossOrigin}):or,Nt=Te()(`${pn}-list-item-thumbnail`,{[`${pn}-list-item-file`]:xa&&!xa(ir)});br=Oe.createElement("a",{className:Nt,onClick:_t=>Fa(ir,_t),href:ir.url||ir.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Tt)}const Xr=Te()(`${pn}-list-item`,`${pn}-list-item-${Ni}`),oi=typeof ir.linkProps=="string"?JSON.parse(ir.linkProps):ir.linkProps,pi=ia?Oi((typeof Wi=="function"?Wi(ir):Wi)||Oe.createElement(Zt.Z,null),()=>la(ir),pn,jn.removeFile):null,Ti=Ha&&Ni==="done"?Oi((typeof wa=="function"?wa(ir):wa)||Oe.createElement(bn.Z,null),()=>Ii(ir),pn,jn.downloadFile):null,vi=Jn!=="picture-card"&&Jn!=="picture-circle"&&Oe.createElement("span",{key:"download-delete",className:Te()(`${pn}-list-item-actions`,{picture:Jn==="picture"})},Ti,pi),Ri=Te()(`${pn}-list-item-name`),$i=ir.url?[Oe.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ri,title:ir.name},oi,{href:ir.url,onClick:Tt=>Fa(ir,Tt)}),ir.name),vi]:[Oe.createElement("span",{key:"view",className:Ri,onClick:Tt=>Fa(ir,Tt),title:ir.name},ir.name),vi],ni={pointerEvents:"none",opacity:.5},Sn=ha?Oe.createElement("a",{href:ir.url||ir.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ir.url||ir.thumbUrl?void 0:ni,onClick:Tt=>Fa(ir,Tt),title:jn.previewFile},typeof Ji=="function"?Ji(ir):Ji||Oe.createElement(Pt.Z,null)):null,Pn=(Jn==="picture-card"||Jn==="picture-circle")&&Ni!=="uploading"&&Oe.createElement("span",{className:`${pn}-list-item-actions`},Sn,Ni==="done"&&Ti,pi),{getPrefixCls:Yn}=Oe.useContext(pt.E_),qe=Yn(),yt=Oe.createElement("div",{className:Xr},br,$i,Pn,ln&&Oe.createElement(He.default,{motionName:`${qe}-fade`,visible:Ni==="uploading",motionDeadline:2e3},Tt=>{let{className:Nt}=Tt;const _t="percent"in ir?Oe.createElement(zt.Z,Object.assign({},Ur,{type:"line",percent:ir.percent,"aria-label":ir["aria-label"],"aria-labelledby":ir["aria-labelledby"]})):null;return Oe.createElement("div",{className:Te()(`${pn}-list-item-progress`,Nt)},_t)})),St=ir.response&&typeof ir.response=="string"?ir.response:((Oa=ir.error)===null||Oa===void 0?void 0:Oa.statusText)||((ao=ir.error)===null||ao===void 0?void 0:ao.message)||jn.uploadError,Dt=Ni==="error"?Oe.createElement(sn.Z,{title:St,getPopupContainer:Tt=>Tt.parentNode},yt):yt;return Oe.createElement("div",{className:Te()(`${pn}-list-item-container`,tr),style:Ar,ref:Jt},bi?bi(Dt,ir,kr,{download:Ii.bind(null,ir),preview:Fa.bind(null,ir),remove:la.bind(null,ir)}):Dt)});const Gn=(nn,Jt)=>{const{listType:pn="text",previewFile:tr=Qt,onPreview:Ar,onDownload:jn,onRemove:Jn,locale:ir,iconRender:kr,isImageUrl:Ur=xn,prefixCls:Wn,items:Oi=[],showPreviewIcon:bi=!0,showRemoveIcon:xa=!0,showDownloadIcon:ha=!1,removeIcon:ia,previewIcon:Ha,downloadIcon:Ji,progress:Wi={size:[-1,2],showInfo:!1},appendAction:wa,appendActionVisible:Fa=!0,itemRender:Ii,disabled:la}=nn,Oa=(0,je.Z)(),[ao,Qa]=Oe.useState(!1);Oe.useEffect(()=>{pn!=="picture"&&pn!=="picture-card"&&pn!=="picture-circle"||(Oi||[]).forEach(ni=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ni.originFileObj instanceof File||ni.originFileObj instanceof Blob)||ni.thumbUrl!==void 0||(ni.thumbUrl="",tr&&tr(ni.originFileObj).then(Sn=>{ni.thumbUrl=Sn||"",Oa()}))})},[pn,Oi,tr]),Oe.useEffect(()=>{Qa(!0)},[]);const Ni=(ni,Sn)=>{if(Ar)return Sn==null||Sn.preventDefault(),Ar(ni)},mn=ni=>{typeof jn=="function"?jn(ni):ni.url&&window.open(ni.url)},ln=ni=>{Jn==null||Jn(ni)},Fn=ni=>{if(kr)return kr(ni,pn);const Sn=ni.status==="uploading",Pn=Ur&&Ur(ni)?Oe.createElement(Ce,null):Oe.createElement(at,null);let Yn=Sn?Oe.createElement(gt.Z,null):Oe.createElement(ut,null);return pn==="picture"?Yn=Sn?Oe.createElement(gt.Z,null):Pn:(pn==="picture-card"||pn==="picture-circle")&&(Yn=Sn?ir.uploading:Pn),Yn},or=(ni,Sn,Pn,Yn)=>{const qe={type:"text",size:"small",title:Yn,onClick:yt=>{Sn(),(0,Ne.l$)(ni)&&ni.props.onClick&&ni.props.onClick(yt)},className:`${Pn}-list-item-action`,disabled:la};if((0,Ne.l$)(ni)){const yt=(0,Ne.Tm)(ni,Object.assign(Object.assign({},ni.props),{onClick:()=>{}}));return Oe.createElement(ze.ZP,Object.assign({},qe,{icon:yt}))}return Oe.createElement(ze.ZP,Object.assign({},qe),Oe.createElement("span",null,ni))};Oe.useImperativeHandle(Jt,()=>({handlePreview:Ni,handleDownload:mn}));const{getPrefixCls:br}=Oe.useContext(pt.E_),Xr=br("upload",Wn),oi=br(),pi=Te()(`${Xr}-list`,`${Xr}-list-${pn}`),Ti=(0,Je.Z)(Oi.map(ni=>({key:ni.uid,file:ni})));let Ri={motionDeadline:2e3,motionName:`${Xr}-${pn==="picture-card"||pn==="picture-circle"?"animate-inline":"animate"}`,keys:Ti,motionAppear:ao};const $i=Oe.useMemo(()=>{const ni=Object.assign({},(0,Ae.Z)(oi));return delete ni.onAppearEnd,delete ni.onEnterEnd,delete ni.onLeaveEnd,ni},[oi]);return pn!=="picture-card"&&pn!=="picture-circle"&&(Ri=Object.assign(Object.assign({},$i),Ri)),Oe.createElement("div",{className:pi},Oe.createElement(He.CSSMotionList,Object.assign({},Ri,{component:!1}),ni=>{let{key:Sn,file:Pn,className:Yn,style:qe}=ni;return Oe.createElement(kn,{key:Sn,locale:ir,prefixCls:Xr,className:Yn,style:qe,file:Pn,items:Oi,progress:Wi,listType:pn,isImgUrl:Ur,showPreviewIcon:bi,showRemoveIcon:xa,showDownloadIcon:ha,removeIcon:ia,previewIcon:Ha,downloadIcon:Ji,iconRender:Fn,actionIconRender:or,itemRender:Ii,onPreview:Ni,onDownload:mn,onClose:ln})}),wa&&Oe.createElement(He.default,Object.assign({},Ri,{visible:Fa,forceRender:!0}),ni=>{let{className:Sn,style:Pn}=ni;return(0,Ne.Tm)(wa,Yn=>({className:Te()(Yn.className,Sn),style:Object.assign(Object.assign(Object.assign({},Pn),{pointerEvents:Sn?"none":void 0}),Yn.style)}))}))};var Or=Oe.forwardRef(Gn),zr=me(14747),Hr=me(33507),Dr=me(67968),Kr=me(45503),Di=nn=>{const{componentCls:Jt,iconCls:pn}=nn;return{[`${Jt}-wrapper`]:{[`${Jt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:nn.colorFillAlter,border:`${nn.lineWidth}px dashed ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,cursor:"pointer",transition:`border-color ${nn.motionDurationSlow}`,[Jt]:{padding:`${nn.padding}px 0`},[`${Jt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Jt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Jt}-disabled):hover`]:{borderColor:nn.colorPrimaryHover},[`p${Jt}-drag-icon`]:{marginBottom:nn.margin,[pn]:{color:nn.colorPrimary,fontSize:nn.uploadThumbnailSize}},[`p${Jt}-text`]:{margin:`0 0 ${nn.marginXXS}px`,color:nn.colorTextHeading,fontSize:nn.fontSizeLG},[`p${Jt}-hint`]:{color:nn.colorTextDescription,fontSize:nn.fontSize},[`&${Jt}-disabled`]:{cursor:"not-allowed",[`p${Jt}-drag-icon ${pn},
|
|
|
p${Jt}-text,
|
|
|
p${Jt}-hint
|
|
|
`]:{color:nn.colorTextDisabled}}}}}},di=nn=>{const{componentCls:Jt,antCls:pn,iconCls:tr,fontSize:Ar,lineHeight:jn}=nn,Jn=`${Jt}-list-item`,ir=`${Jn}-actions`,kr=`${Jn}-action`,Ur=Math.round(Ar*jn);return{[`${Jt}-wrapper`]:{[`${Jt}-list`]:Object.assign(Object.assign({},(0,zr.dF)()),{lineHeight:nn.lineHeight,[Jn]:{position:"relative",height:nn.lineHeight*Ar,marginTop:nn.marginXS,fontSize:Ar,display:"flex",alignItems:"center",transition:`background-color ${nn.motionDurationSlow}`,"&:hover":{backgroundColor:nn.controlItemBgHover},[`${Jn}-name`]:Object.assign(Object.assign({},zr.vS),{padding:`0 ${nn.paddingXS}px`,lineHeight:jn,flex:"auto",transition:`all ${nn.motionDurationSlow}`}),[ir]:{[kr]:{opacity:0},[`${kr}${pn}-btn-sm`]:{height:Ur,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${kr}:focus-visible,
|
|
|
&.picture ${kr}
|
|
|
`]:{opacity:1},[tr]:{color:nn.actionsColor,transition:`all ${nn.motionDurationSlow}`},[`&:hover ${tr}`]:{color:nn.colorText}},[`${Jt}-icon ${tr}`]:{color:nn.colorTextDescription,fontSize:Ar},[`${Jn}-progress`]:{position:"absolute",bottom:-nn.uploadProgressOffset,width:"100%",paddingInlineStart:Ar+nn.paddingXS,fontSize:Ar,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Jn}:hover ${kr}`]:{opacity:1,color:nn.colorText},[`${Jn}-error`]:{color:nn.colorError,[`${Jn}-name, ${Jt}-icon ${tr}`]:{color:nn.colorError},[ir]:{[`${tr}, ${tr}:hover`]:{color:nn.colorError},[kr]:{opacity:1}}},[`${Jt}-list-item-container`]:{transition:`opacity ${nn.motionDurationSlow}, height ${nn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},rn=me(34367),zn=me(16932);const fr=new rn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),lr=new rn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pr=nn=>{const{componentCls:Jt}=nn,pn=`${Jt}-animate-inline`;return[{[`${Jt}-wrapper`]:{[`${pn}-appear, ${pn}-enter, ${pn}-leave`]:{animationDuration:nn.motionDurationSlow,animationTimingFunction:nn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pn}-appear, ${pn}-enter`]:{animationName:fr},[`${pn}-leave`]:{animationName:lr}}},{[`${Jt}-wrapper`]:(0,zn.J$)(nn)},fr,lr]},Gr=me(16397),Er=me(84780);const Wt=nn=>{const{componentCls:Jt,iconCls:pn,uploadThumbnailSize:tr,uploadProgressOffset:Ar}=nn,jn=`${Jt}-list`,Jn=`${jn}-item`;return{[`${Jt}-wrapper`]:{[`
|
|
|
${jn}${jn}-picture,
|
|
|
${jn}${jn}-picture-card,
|
|
|
${jn}${jn}-picture-circle
|
|
|
`]:{[Jn]:{position:"relative",height:tr+nn.lineWidth*2+nn.paddingXS*2,padding:nn.paddingXS,border:`${nn.lineWidth}px ${nn.lineType} ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,"&:hover":{background:"transparent"},[`${Jn}-thumbnail`]:Object.assign(Object.assign({},zr.vS),{width:tr,height:tr,lineHeight:`${tr+nn.paddingSM}px`,textAlign:"center",flex:"none",[pn]:{fontSize:nn.fontSizeHeading2,color:nn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Jn}-progress`]:{bottom:Ar,width:`calc(100% - ${nn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:tr+nn.paddingXS}},[`${Jn}-error`]:{borderColor:nn.colorError,[`${Jn}-thumbnail ${pn}`]:{[`svg path[fill='${Gr.blue[0]}']`]:{fill:nn.colorErrorBg},[`svg path[fill='${Gr.blue.primary}']`]:{fill:nn.colorError}}},[`${Jn}-uploading`]:{borderStyle:"dashed",[`${Jn}-name`]:{marginBottom:Ar}}},[`${jn}${jn}-picture-circle ${Jn}`]:{[`&, &::before, ${Jn}-thumbnail`]:{borderRadius:"50%"}}}}},$t=nn=>{const{componentCls:Jt,iconCls:pn,fontSizeLG:tr,colorTextLightSolid:Ar}=nn,jn=`${Jt}-list`,Jn=`${jn}-item`,ir=nn.uploadPicCardSize;return{[`
|
|
|
${Jt}-wrapper${Jt}-picture-card-wrapper,
|
|
|
${Jt}-wrapper${Jt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,zr.dF)()),{display:"inline-block",width:"100%",[`${Jt}${Jt}-select`]:{width:ir,height:ir,marginInlineEnd:nn.marginXS,marginBottom:nn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:nn.colorFillAlter,border:`${nn.lineWidth}px dashed ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,cursor:"pointer",transition:`border-color ${nn.motionDurationSlow}`,[`> ${Jt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Jt}-disabled):hover`]:{borderColor:nn.colorPrimary}},[`${jn}${jn}-picture-card, ${jn}${jn}-picture-circle`]:{[`${jn}-item-container`]:{display:"inline-block",width:ir,height:ir,marginBlock:`0 ${nn.marginXS}px`,marginInline:`0 ${nn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Jn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${nn.paddingXS*2}px)`,height:`calc(100% - ${nn.paddingXS*2}px)`,backgroundColor:nn.colorBgMask,opacity:0,transition:`all ${nn.motionDurationSlow}`,content:'" "'}},[`${Jn}:hover`]:{[`&::before, ${Jn}-actions`]:{opacity:1}},[`${Jn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${nn.motionDurationSlow}`,[`${pn}-eye, ${pn}-download, ${pn}-delete`]:{zIndex:10,width:tr,margin:`0 ${nn.marginXXS}px`,fontSize:tr,cursor:"pointer",transition:`all ${nn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Jn}-actions, ${Jn}-actions:hover`]:{[`${pn}-eye, ${pn}-download, ${pn}-delete`]:{color:new Er.C(Ar).setAlpha(.65).toRgbString(),"&:hover":{color:Ar}}},[`${Jn}-thumbnail, ${Jn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Jn}-name`]:{display:"none",textAlign:"center"},[`${Jn}-file + ${Jn}-name`]:{position:"absolute",bottom:nn.margin,display:"block",width:`calc(100% - ${nn.paddingXS*2}px)`},[`${Jn}-uploading`]:{[`&${Jn}`]:{backgroundColor:nn.colorFillAlter},[`&::before, ${pn}-eye, ${pn}-download, ${pn}-delete`]:{display:"none"}},[`${Jn}-progress`]:{bottom:nn.marginXL,width:`calc(100% - ${nn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Jt}-wrapper${Jt}-picture-circle-wrapper`]:{[`${Jt}${Jt}-select`]:{borderRadius:"50%"}}}};var Rn=nn=>{const{componentCls:Jt}=nn;return{[`${Jt}-rtl`]:{direction:"rtl"}}};const jt=nn=>{const{componentCls:Jt,colorTextDisabled:pn}=nn;return{[`${Jt}-wrapper`]:Object.assign(Object.assign({},(0,zr.Wf)(nn)),{[Jt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Jt}-select`]:{display:"inline-block"},[`${Jt}-disabled`]:{color:pn,cursor:"not-allowed"}})}};var an=(0,Dr.Z)("Upload",nn=>{const{fontSizeHeading3:Jt,fontSize:pn,lineHeight:tr,lineWidth:Ar,controlHeightLG:jn}=nn,Jn=Math.round(pn*tr),ir=(0,Kr.TS)(nn,{uploadThumbnailSize:Jt*2,uploadProgressOffset:Jn/2+Ar,uploadPicCardSize:jn*2.55});return[jt(ir),Di(ir),Wt(ir),$t(ir),di(ir),Pr(ir),Rn(ir),(0,Hr.Z)(ir)]},nn=>({actionsColor:nn.colorTextDescription})),Tn=function(nn,Jt,pn,tr){function Ar(jn){return jn instanceof pn?jn:new pn(function(Jn){Jn(jn)})}return new(pn||(pn=Promise))(function(jn,Jn){function ir(Wn){try{Ur(tr.next(Wn))}catch(Oi){Jn(Oi)}}function kr(Wn){try{Ur(tr.throw(Wn))}catch(Oi){Jn(Oi)}}function Ur(Wn){Wn.done?jn(Wn.value):Ar(Wn.value).then(ir,kr)}Ur((tr=tr.apply(nn,Jt||[])).next())})};const vn=`__LIST_IGNORE_${Date.now()}__`,Bn=(nn,Jt)=>{const{fileList:pn,defaultFileList:tr,onRemove:Ar,showUploadList:jn=!0,listType:Jn="text",onPreview:ir,onDownload:kr,onChange:Ur,onDrop:Wn,previewFile:Oi,disabled:bi,locale:xa,iconRender:ha,isImageUrl:ia,progress:Ha,prefixCls:Ji,className:Wi,type:wa="select",children:Fa,style:Ii,itemRender:la,maxCount:Oa,data:ao={},multiple:Qa=!1,action:Ni="",accept:mn="",supportServerRender:ln=!0,rootClassName:Fn}=nn,or=Oe.useContext(Ge.Z),br=bi!=null?bi:or,[Xr,oi]=(0,et.Z)(tr||[],{value:pn,postState:kt=>kt!=null?kt:[]}),[pi,Ti]=Oe.useState("drop"),vi=Oe.useRef(null);Oe.useMemo(()=>{const kt=Date.now();(pn||[]).forEach((It,qt)=>{!It.uid&&!Object.isFrozen(It)&&(It.uid=`__AUTO__${kt}_${qt}__`)})},[pn]);const Ri=(kt,It,qt)=>{let Yt=(0,Je.Z)(It),En=!1;Oa===1?Yt=Yt.slice(-1):Oa&&(En=Yt.length>Oa,Yt=Yt.slice(0,Oa)),(0,it.flushSync)(()=>{oi(Yt)});const Hn={file:kt,fileList:Yt};qt&&(Hn.event=qt),(!En||Yt.some(Ht=>Ht.uid===kt.uid))&&(0,it.flushSync)(()=>{Ur==null||Ur(Hn)})},$i=(kt,It)=>Tn(void 0,void 0,void 0,function*(){const{beforeUpload:qt,transformFile:Yt}=nn;let En=kt;if(qt){const Hn=yield qt(kt,It);if(Hn===!1)return!1;if(delete kt[vn],Hn===vn)return Object.defineProperty(kt,vn,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(En=Hn)}return Yt&&(En=yield Yt(En)),En}),ni=kt=>{const It=kt.filter(En=>!En.file[vn]);if(!It.length)return;const qt=It.map(En=>Qe(En.file));let Yt=(0,Je.Z)(Xr);qt.forEach(En=>{Yt=ot(En,Yt)}),qt.forEach((En,Hn)=>{let Ht=En;if(It[Hn].parsedFile)En.status="uploading";else{const{originFileObj:Vt}=En;let Gt;try{Gt=new File([Vt],Vt.name,{type:Vt.type})}catch(en){Gt=new Blob([Vt],{type:Vt.type}),Gt.name=Vt.name,Gt.lastModifiedDate=new Date,Gt.lastModified=new Date().getTime()}Gt.uid=En.uid,Ht=Gt}Ri(Ht,Yt)})},Sn=(kt,It,qt)=>{try{typeof kt=="string"&&(kt=JSON.parse(kt))}catch(Hn){}if(!mt(It,Xr))return;const Yt=Qe(It);Yt.status="done",Yt.percent=100,Yt.response=kt,Yt.xhr=qt;const En=ot(Yt,Xr);Ri(Yt,En)},Pn=(kt,It)=>{if(!mt(It,Xr))return;const qt=Qe(It);qt.status="uploading",qt.percent=kt.percent;const Yt=ot(qt,Xr);Ri(qt,Yt,kt)},Yn=(kt,It,qt)=>{if(!mt(qt,Xr))return;const Yt=Qe(qt);Yt.error=kt,Yt.response=It,Yt.status="error";const En=ot(Yt,Xr);Ri(Yt,En)},qe=kt=>{let It;Promise.resolve(typeof Ar=="function"?Ar(kt):Ar).then(qt=>{var Yt;if(qt===!1)return;const En=Ot(kt,Xr);En&&(It=Object.assign(Object.assign({},kt),{status:"removed"}),Xr==null||Xr.forEach(Hn=>{const Ht=It.uid!==void 0?"uid":"name";Hn[Ht]===It[Ht]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(Yt=vi.current)===null||Yt===void 0||Yt.abort(It),Ri(It,En))})},yt=kt=>{Ti(kt.type),kt.type==="drop"&&(Wn==null||Wn(kt))};Oe.useImperativeHandle(Jt,()=>({onBatchStart:ni,onSuccess:Sn,onProgress:Pn,onError:Yn,fileList:Xr,upload:vi.current}));const{getPrefixCls:St,direction:Dt,upload:Tt}=Oe.useContext(pt.E_),Nt=St("upload",Ji),_t=Object.assign(Object.assign({onBatchStart:ni,onError:Yn,onProgress:Pn,onSuccess:Sn},nn),{data:ao,multiple:Qa,action:Ni,accept:mn,supportServerRender:ln,prefixCls:Nt,disabled:br,beforeUpload:$i,onChange:void 0});delete _t.className,delete _t.style,(!Fa||br)&&delete _t.id;const[on,gn]=an(Nt),[Vn]=(0,Xe.Z)("Upload",lt.Z.Upload),{showRemoveIcon:qn,showPreviewIcon:Xn,showDownloadIcon:Dn,removeIcon:In,previewIcon:Cn,downloadIcon:Zn}=typeof jn=="boolean"?{}:jn,pr=(kt,It)=>jn?Oe.createElement(Or,{prefixCls:Nt,listType:Jn,items:Xr,previewFile:Oi,onPreview:ir,onDownload:kr,onRemove:qe,showRemoveIcon:!br&&qn,showPreviewIcon:Xn,showDownloadIcon:Dn,removeIcon:In,previewIcon:Cn,downloadIcon:Zn,iconRender:ha,locale:Object.assign(Object.assign({},Vn),xa),isImageUrl:ia,progress:Ha,appendAction:kt,appendActionVisible:It,itemRender:la,disabled:br}):kt,$n=Te()(`${Nt}-wrapper`,Wi,Fn,gn,Tt==null?void 0:Tt.className,{[`${Nt}-rtl`]:Dt==="rtl",[`${Nt}-picture-card-wrapper`]:Jn==="picture-card",[`${Nt}-picture-circle-wrapper`]:Jn==="picture-circle"}),ar=Object.assign(Object.assign({},Tt==null?void 0:Tt.style),Ii);if(wa==="drag"){const kt=Te()(gn,Nt,`${Nt}-drag`,{[`${Nt}-drag-uploading`]:Xr.some(It=>It.status==="uploading"),[`${Nt}-drag-hover`]:pi==="dragover",[`${Nt}-disabled`]:br,[`${Nt}-rtl`]:Dt==="rtl"});return on(Oe.createElement("span",{className:$n},Oe.createElement("div",{className:kt,style:ar,onDrop:yt,onDragOver:yt,onDragLeave:yt},Oe.createElement(Ze,Object.assign({},_t,{ref:vi,className:`${Nt}-btn`}),Oe.createElement("div",{className:`${Nt}-drag-container`},Fa))),pr()))}const ur=Te()(Nt,`${Nt}-select`,{[`${Nt}-disabled`]:br}),wr=(kt=>Oe.createElement("div",{className:ur,style:kt},Oe.createElement(Ze,Object.assign({},_t,{ref:vi}))))(Fa?void 0:{display:"none"});return on(Jn==="picture-card"||Jn==="picture-circle"?Oe.createElement("span",{className:$n},pr(wr,!!Fa)):Oe.createElement("span",{className:$n},wr,pr()))};var hr=Oe.forwardRef(Bn),ei=function(nn,Jt){var pn={};for(var tr in nn)Object.prototype.hasOwnProperty.call(nn,tr)&&Jt.indexOf(tr)<0&&(pn[tr]=nn[tr]);if(nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ar=0,tr=Object.getOwnPropertySymbols(nn);Ar<tr.length;Ar++)Jt.indexOf(tr[Ar])<0&&Object.prototype.propertyIsEnumerable.call(nn,tr[Ar])&&(pn[tr[Ar]]=nn[tr[Ar]]);return pn},Lr=Oe.forwardRef((nn,Jt)=>{var{style:pn,height:tr}=nn,Ar=ei(nn,["style","height"]);return Oe.createElement(hr,Object.assign({ref:Jt},Ar,{type:"drag",style:Object.assign(Object.assign({},pn),{height:tr})}))});const Wr=hr;Wr.Dragger=Lr,Wr.LIST_IGNORE=vn;var Vr=Wr},72665:function(tn,Kt){"use strict";var me;var Oe=typeof Symbol=="function"&&Symbol.for,Je=Oe?Symbol.for("react.element"):60103,x=Oe?Symbol.for("react.portal"):60106,Te=Oe?Symbol.for("react.fragment"):60107,ve=Oe?Symbol.for("react.strict_mode"):60108,ie=Oe?Symbol.for("react.profiler"):60114,te=Oe?Symbol.for("react.provider"):60109,ae=Oe?Symbol.for("react.context"):60110,ne=Oe?Symbol.for("react.async_mode"):60111,oe=Oe?Symbol.for("react.concurrent_mode"):60111,he=Oe?Symbol.for("react.forward_ref"):60112,re=Oe?Symbol.for("react.suspense"):60113,se=Oe?Symbol.for("react.suspense_list"):60120,ce=Oe?Symbol.for("react.memo"):60115,fe=Oe?Symbol.for("react.lazy"):60116,pe=Oe?Symbol.for("react.block"):60121,le=Oe?Symbol.for("react.fundamental"):60117,Se=Oe?Symbol.for("react.responder"):60118,xe=Oe?Symbol.for("react.scope"):60119;function ge(ye){if(typeof ye=="object"&&ye!==null){var be=ye.$$typeof;switch(be){case Je:switch(ye=ye.type,ye){case ne:case oe:case Te:case ie:case ve:case re:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case ae:case he:case fe:case ce:case te:return ye;default:return be}}case x:return be}}}function Me(ye){return ge(ye)===oe}me=ne,me=oe,me=ae,me=te,me=Je,me=he,me=Te,me=fe,me=ce,me=x,me=ie,me=ve,me=re,me=function(ye){return Me(ye)||ge(ye)===ne},me=Me,me=function(ye){return ge(ye)===ae},me=function(ye){return ge(ye)===te},me=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===Je},me=function(ye){return ge(ye)===he},me=function(ye){return ge(ye)===Te},me=function(ye){return ge(ye)===fe},Kt.isMemo=function(ye){return ge(ye)===ce},me=function(ye){return ge(ye)===x},me=function(ye){return ge(ye)===ie},me=function(ye){return ge(ye)===ve},me=function(ye){return ge(ye)===re},me=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===oe||ye===ie||ye===ve||ye===re||ye===se||typeof ye=="object"&&ye!==null&&(ye.$$typeof===fe||ye.$$typeof===ce||ye.$$typeof===te||ye.$$typeof===ae||ye.$$typeof===he||ye.$$typeof===le||ye.$$typeof===Se||ye.$$typeof===xe||ye.$$typeof===pe)},me=ge},12060:function(tn,Kt,me){"use strict";tn.exports=me(72665)},41771:function(tn,Kt){"use strict";var me;var Oe=typeof Symbol=="function"&&Symbol.for,Je=Oe?Symbol.for("react.element"):60103,x=Oe?Symbol.for("react.portal"):60106,Te=Oe?Symbol.for("react.fragment"):60107,ve=Oe?Symbol.for("react.strict_mode"):60108,ie=Oe?Symbol.for("react.profiler"):60114,te=Oe?Symbol.for("react.provider"):60109,ae=Oe?Symbol.for("react.context"):60110,ne=Oe?Symbol.for("react.async_mode"):60111,oe=Oe?Symbol.for("react.concurrent_mode"):60111,he=Oe?Symbol.for("react.forward_ref"):60112,re=Oe?Symbol.for("react.suspense"):60113,se=Oe?Symbol.for("react.suspense_list"):60120,ce=Oe?Symbol.for("react.memo"):60115,fe=Oe?Symbol.for("react.lazy"):60116,pe=Oe?Symbol.for("react.block"):60121,le=Oe?Symbol.for("react.fundamental"):60117,Se=Oe?Symbol.for("react.responder"):60118,xe=Oe?Symbol.for("react.scope"):60119;function ge(ye){if(typeof ye=="object"&&ye!==null){var be=ye.$$typeof;switch(be){case Je:switch(ye=ye.type,ye){case ne:case oe:case Te:case ie:case ve:case re:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case ae:case he:case fe:case ce:case te:return ye;default:return be}}case x:return be}}}function Me(ye){return ge(ye)===oe}me=ne,me=oe,me=ae,me=te,me=Je,me=he,me=Te,me=fe,me=ce,me=x,me=ie,me=ve,me=re,me=function(ye){return Me(ye)||ge(ye)===ne},me=Me,me=function(ye){return ge(ye)===ae},me=function(ye){return ge(ye)===te},me=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===Je},me=function(ye){return ge(ye)===he},Kt.isFragment=function(ye){return ge(ye)===Te},me=function(ye){return ge(ye)===fe},me=function(ye){return ge(ye)===ce},me=function(ye){return ge(ye)===x},me=function(ye){return ge(ye)===ie},me=function(ye){return ge(ye)===ve},me=function(ye){return ge(ye)===re},me=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===oe||ye===ie||ye===ve||ye===re||ye===se||typeof ye=="object"&&ye!==null&&(ye.$$typeof===fe||ye.$$typeof===ce||ye.$$typeof===te||ye.$$typeof===ae||ye.$$typeof===he||ye.$$typeof===le||ye.$$typeof===Se||ye.$$typeof===xe||ye.$$typeof===pe)},me=ge},47655:function(tn,Kt,me){"use strict";tn.exports=me(41771)},64701:function(tn,Kt,me){"use strict";me.r(Kt),me.d(Kt,{ResizableTextArea:function(){return dt},default:function(){return vt}});var Oe=me(87462),Je=me(1413),x=me(4942),Te=me(71002),ve=me(97685),ie=me(45987),te=me(74902),ae=me(94184),ne=me.n(ae),oe=me(67656),he=me(87887),re=me(67294);function se(Et){var At=re.useRef();At.current=Et;var ut=re.useCallback(function(){for(var Ye,Ve=arguments.length,de=new Array(Ve),Ce=0;Ce<Ve;Ce++)de[Ce]=arguments[Ce];return(Ye=At.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[At].concat(de))},[]);return ut}function ce(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var fe=ce()?re.useLayoutEffect:re.useEffect,pe=fe,le=function(At,ut){var Ye=re.useRef(!0);fe(function(){if(!Ye.current)return At()},ut),fe(function(){return Ye.current=!1,function(){Ye.current=!0}},[])};function Se(Et){var At=re.useRef(!1),ut=re.useState(Et),Ye=(0,ve.Z)(ut,2),Ve=Ye[0],de=Ye[1];re.useEffect(function(){return At.current=!1,function(){At.current=!0}},[]);function Ce(He,je){je&&At.current||de(He)}return[Ve,Ce]}function xe(Et){return Et!==void 0}function ge(Et,At){var ut=At||{},Ye=ut.defaultValue,Ve=ut.value,de=ut.onChange,Ce=ut.postState,He=Se(function(){return xe(Ve)?Ve:xe(Ye)?typeof Ye=="function"?Ye():Ye:typeof Et=="function"?Et():Et}),je=(0,ve.Z)(He,2),Ae=je[0],Ne=je[1],ze=Ve!==void 0?Ve:Ae,Qe=Ce?Ce(ze):ze,ot=se(de),mt=Se([ze]),Ot=(0,ve.Z)(mt,2),xt=Ot[0],Ut=Ot[1];le(function(){var Ft=xt[0];Ae!==Ft&&ot(Ae,Ft)},[xt]),le(function(){xe(Ve)||Ne(Ve)},[Ve]);var xn=se(function(Ft,Qt){Ne(Ft,Qt),Ut([ze],Qt)});return[Qe,xn]}var Me=me(48555),ye=function(At){return+setTimeout(At,16)},be=function(At){return clearTimeout(At)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ye=function(At){return window.requestAnimationFrame(At)},be=function(At){return window.cancelAnimationFrame(At)});var Fe=0,ke=new Map;function De(Et){ke.delete(Et)}var Le=function(At){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Fe+=1;var Ye=Fe;function Ve(de){if(de===0)De(Ye),At();else{var Ce=ye(function(){Ve(de-1)});ke.set(Ye,Ce)}}return Ve(ut),Ye};Le.cancel=function(Et){var At=ke.get(Et);return De(At),be(At)};var Ie=Le,Be=`
|
|
|
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;
|
|
|
`,Ue=["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"],_e={},We;function Ze(Et){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=Et.getAttribute("id")||Et.getAttribute("data-reactid")||Et.getAttribute("name");if(At&&_e[ut])return _e[ut];var Ye=window.getComputedStyle(Et),Ve=Ye.getPropertyValue("box-sizing")||Ye.getPropertyValue("-moz-box-sizing")||Ye.getPropertyValue("-webkit-box-sizing"),de=parseFloat(Ye.getPropertyValue("padding-bottom"))+parseFloat(Ye.getPropertyValue("padding-top")),Ce=parseFloat(Ye.getPropertyValue("border-bottom-width"))+parseFloat(Ye.getPropertyValue("border-top-width")),He=Ue.map(function(Ae){return"".concat(Ae,":").concat(Ye.getPropertyValue(Ae))}).join(";"),je={sizingStyle:He,paddingSize:de,borderSize:Ce,boxSizing:Ve};return At&&ut&&(_e[ut]=je),je}function et(Et){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;We||(We=document.createElement("textarea"),We.setAttribute("tab-index","-1"),We.setAttribute("aria-hidden","true"),document.body.appendChild(We)),Et.getAttribute("wrap")?We.setAttribute("wrap",Et.getAttribute("wrap")):We.removeAttribute("wrap");var Ve=Ze(Et,At),de=Ve.paddingSize,Ce=Ve.borderSize,He=Ve.boxSizing,je=Ve.sizingStyle;We.setAttribute("style","".concat(je,";").concat(Be)),We.value=Et.value||Et.placeholder||"";var Ae=void 0,Ne=void 0,ze,Qe=We.scrollHeight;if(He==="border-box"?Qe+=Ce:He==="content-box"&&(Qe-=de),ut!==null||Ye!==null){We.value=" ";var ot=We.scrollHeight-de;ut!==null&&(Ae=ot*ut,He==="border-box"&&(Ae=Ae+de+Ce),Qe=Math.max(Ae,Qe)),Ye!==null&&(Ne=ot*Ye,He==="border-box"&&(Ne=Ne+de+Ce),ze=Qe>Ne?"":"hidden",Qe=Math.min(Ne,Qe))}var mt={height:Qe,overflowY:ze,resize:"none"};return Ae&&(mt.minHeight=Ae),Ne&&(mt.maxHeight=Ne),mt}var it=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pt=0,Ge=1,Xe=2,lt=re.forwardRef(function(Et,At){var ut=Et,Ye=ut.prefixCls,Ve=ut.onPressEnter,de=ut.defaultValue,Ce=ut.value,He=ut.autoSize,je=ut.onResize,Ae=ut.className,Ne=ut.style,ze=ut.disabled,Qe=ut.onChange,ot=ut.onInternalAutoSize,mt=(0,ie.Z)(ut,it),Ot=ge(de,{value:Ce,postState:function(lr){return lr!=null?lr:""}}),xt=(0,ve.Z)(Ot,2),Ut=xt[0],xn=xt[1],Ft=function(lr){xn(lr.target.value),Qe==null||Qe(lr)},Qt=re.useRef();re.useImperativeHandle(At,function(){return{textArea:Qt.current}});var Zt=re.useMemo(function(){return He&&(0,Te.Z)(He)==="object"?[He.minRows,He.maxRows]:[]},[He]),bn=(0,ve.Z)(Zt,2),Pt=bn[0],zt=bn[1],sn=!!He,yn=function(){try{if(document.activeElement===Qt.current){var lr=Qt.current,Tr=lr.selectionStart,Pr=lr.selectionEnd,Gr=lr.scrollTop;Qt.current.setSelectionRange(Tr,Pr),Qt.current.scrollTop=Gr}}catch(Er){}},kn=re.useState(Xe),Gn=(0,ve.Z)(kn,2),dr=Gn[0],Or=Gn[1],zr=re.useState(),Hr=(0,ve.Z)(zr,2),Dr=Hr[0],Kr=Hr[1],Ai=function(){Or(pt)};pe(function(){sn&&Ai()},[Ce,Pt,zt,sn]),pe(function(){if(dr===pt)Or(Ge);else if(dr===Ge){var fr=et(Qt.current,!1,Pt,zt);Or(Xe),Kr(fr)}else yn()},[dr]);var Di=re.useRef(),Zi=function(){Ie.cancel(Di.current)},di=function(lr){dr===Xe&&(je==null||je(lr),He&&(Zi(),Di.current=Ie(function(){Ai()})))};re.useEffect(function(){return Zi},[]);var rn=sn?Dr:null,zn=(0,Je.Z)((0,Je.Z)({},Ne),rn);return(dr===pt||dr===Ge)&&(zn.overflowY="hidden",zn.overflowX="hidden"),re.createElement(Me.Z,{onResize:di,disabled:!(He||je)},re.createElement("textarea",(0,Oe.Z)({},mt,{ref:Qt,style:zn,className:ne()(Ye,Ae,(0,x.Z)({},"".concat(Ye,"-disabled"),ze)),disabled:ze,value:Ut,onChange:Ft})))}),dt=lt,st=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function nt(Et,At){return(0,te.Z)(Et||"").slice(0,At).join("")}function rt(Et,At,ut,Ye){var Ve=ut;return Et?Ve=nt(ut,Ye):(0,te.Z)(At||"").length<ut.length&&(0,te.Z)(ut||"").length>Ye&&(Ve=At),Ve}var at=re.forwardRef(function(Et,At){var ut,Ye=Et.defaultValue,Ve=Et.value,de=Et.onFocus,Ce=Et.onBlur,He=Et.onChange,je=Et.allowClear,Ae=Et.maxLength,Ne=Et.onCompositionStart,ze=Et.onCompositionEnd,Qe=Et.suffix,ot=Et.prefixCls,mt=ot===void 0?"rc-textarea":ot,Ot=Et.classes,xt=Et.showCount,Ut=Et.className,xn=Et.style,Ft=Et.disabled,Qt=Et.hidden,Zt=Et.classNames,bn=Et.styles,Pt=Et.onResize,zt=(0,ie.Z)(Et,st),sn=ge(Ye,{value:Ve,defaultValue:Ye}),yn=(0,ve.Z)(sn,2),kn=yn[0],Gn=yn[1],dr=(0,re.useRef)(null),Or=re.useState(!1),zr=(0,ve.Z)(Or,2),Hr=zr[0],Dr=zr[1],Kr=re.useState(!1),Ai=(0,ve.Z)(Kr,2),Di=Ai[0],Zi=Ai[1],di=re.useRef(),rn=re.useRef(0),zn=re.useState(null),fr=(0,ve.Z)(zn,2),lr=fr[0],Tr=fr[1],Pr=function(){var Wr;(Wr=dr.current)===null||Wr===void 0||Wr.textArea.focus()};(0,re.useImperativeHandle)(At,function(){return{resizableTextArea:dr.current,focus:Pr,blur:function(){var Wr;(Wr=dr.current)===null||Wr===void 0||Wr.textArea.blur()}}}),(0,re.useEffect)(function(){Dr(function(Lr){return!Ft&&Lr})},[Ft]);var Gr=Number(Ae)>0,Er=function(Wr){Zi(!0),di.current=kn,rn.current=Wr.currentTarget.selectionStart,Ne==null||Ne(Wr)},Wt=function(Wr){Zi(!1);var Vr=Wr.currentTarget.value;if(Gr){var nn,Jt=rn.current>=Ae+1||rn.current===((nn=di.current)===null||nn===void 0?void 0:nn.length);Vr=rt(Jt,di.current,Vr,Ae)}Vr!==kn&&(Gn(Vr),(0,he.rJ)(Wr.currentTarget,Wr,He,Vr)),ze==null||ze(Wr)},$t=function(Wr){var Vr=Wr.target.value;if(!Di&&Gr){var nn=Wr.target.selectionStart>=Ae+1||Wr.target.selectionStart===Vr.length||!Wr.target.selectionStart;Vr=rt(nn,kn,Vr,Ae)}Gn(Vr),(0,he.rJ)(Wr.currentTarget,Wr,He,Vr)},cn=function(Wr){var Vr=zt.onPressEnter,nn=zt.onKeyDown;Wr.key==="Enter"&&Vr&&Vr(Wr),nn==null||nn(Wr)},Rn=function(Wr){Dr(!0),de==null||de(Wr)},jt=function(Wr){Dr(!1),Ce==null||Ce(Wr)},an=function(Wr){var Vr;Gn(""),Pr(),(0,he.rJ)((Vr=dr.current)===null||Vr===void 0?void 0:Vr.textArea,Wr,He)},Tn=(0,he.D7)(kn);!Di&&Gr&&Ve==null&&(Tn=nt(Tn,Ae));var vn=Qe,Bn;if(xt){var _n=(0,te.Z)(Tn).length;(0,Te.Z)(xt)==="object"?Bn=xt.formatter({value:Tn,count:_n,maxLength:Ae}):Bn="".concat(_n).concat(Gr?" / ".concat(Ae):""),vn=re.createElement(re.Fragment,null,vn,re.createElement("span",{className:ne()("".concat(mt,"-data-count"),Zt==null?void 0:Zt.count),style:bn==null?void 0:bn.count},Bn))}var hr=function(Wr){var Vr;Pt==null||Pt(Wr),(Vr=dr.current)!==null&&Vr!==void 0&&Vr.textArea.style.height&&Tr(!0)},ei=!zt.autoSize&&!xt&&!je,Ir=re.createElement(oe.BaseInput,{value:Tn,allowClear:je,handleReset:an,suffix:vn,prefixCls:mt,classes:{affixWrapper:ne()(Ot==null?void 0:Ot.affixWrapper,(ut={},(0,x.Z)(ut,"".concat(mt,"-show-count"),xt),(0,x.Z)(ut,"".concat(mt,"-textarea-allow-clear"),je),ut))},disabled:Ft,focused:Hr,className:Ut,style:(0,Je.Z)((0,Je.Z)({},xn),lr&&!ei?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Bn=="string"?Bn:void 0}},hidden:Qt,inputElement:re.createElement(dt,(0,Oe.Z)({},zt,{onKeyDown:cn,onChange:$t,onFocus:Rn,onBlur:jt,onCompositionStart:Er,onCompositionEnd:Wt,className:Zt==null?void 0:Zt.textarea,style:(0,Je.Z)((0,Je.Z)({},bn==null?void 0:bn.textarea),{},{resize:xn==null?void 0:xn.resize}),disabled:Ft,prefixCls:mt,onResize:hr,ref:dr}))});return Ir}),gt=at,vt=gt},56261:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ke}});var Oe=me(87462),Je=me(4942),x=me(45987),Te=me(1413),ve=me(15671),ie=me(43144),te=me(97326),ae=me(60136),ne=me(51630),oe=me(94184),he=me.n(oe),re=me(34952),se=me(67294),ce=me(69610),fe=function(Le){for(var Ie=Le.prefixCls,Be=Le.level,Ue=Le.isStart,_e=Le.isEnd,We="".concat(Ie,"-indent-unit"),Ze=[],et=0;et<Be;et+=1){var it;Ze.push(se.createElement("span",{key:et,className:he()(We,(it={},(0,Je.Z)(it,"".concat(We,"-start"),Ue[et]),(0,Je.Z)(it,"".concat(We,"-end"),_e[et]),it))}))}return se.createElement("span",{"aria-hidden":"true",className:"".concat(Ie,"-indent")},Ze)},pe=se.memo(fe),le=me(3596),Se=me(83898),xe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ge="open",Me="close",ye="---",be=function(De){(0,ae.Z)(Ie,De);var Le=(0,ne.Z)(Ie);function Ie(){var Be;(0,ve.Z)(this,Ie);for(var Ue=arguments.length,_e=new Array(Ue),We=0;We<Ue;We++)_e[We]=arguments[We];return Be=Le.call.apply(Le,[this].concat(_e)),Be.state={dragNodeHighlight:!1},Be.selectHandle=void 0,Be.cacheIndent=void 0,Be.onSelectorClick=function(Ze){var et=Be.props.context.onNodeClick;et(Ze,(0,Se.F)(Be.props)),Be.isSelectable()?Be.onSelect(Ze):Be.onCheck(Ze)},Be.onSelectorDoubleClick=function(Ze){var et=Be.props.context.onNodeDoubleClick;et(Ze,(0,Se.F)(Be.props))},Be.onSelect=function(Ze){if(!Be.isDisabled()){var et=Be.props.context.onNodeSelect;et(Ze,(0,Se.F)(Be.props))}},Be.onCheck=function(Ze){if(!Be.isDisabled()){var et=Be.props,it=et.disableCheckbox,pt=et.checked,Ge=Be.props.context.onNodeCheck;if(!(!Be.isCheckable()||it)){var Xe=!pt;Ge(Ze,(0,Se.F)(Be.props),Xe)}}},Be.onMouseEnter=function(Ze){var et=Be.props.context.onNodeMouseEnter;et(Ze,(0,Se.F)(Be.props))},Be.onMouseLeave=function(Ze){var et=Be.props.context.onNodeMouseLeave;et(Ze,(0,Se.F)(Be.props))},Be.onContextMenu=function(Ze){var et=Be.props.context.onNodeContextMenu;et(Ze,(0,Se.F)(Be.props))},Be.onDragStart=function(Ze){var et=Be.props.context.onNodeDragStart;Ze.stopPropagation(),Be.setState({dragNodeHighlight:!0}),et(Ze,(0,te.Z)(Be));try{Ze.dataTransfer.setData("text/plain","")}catch(it){}},Be.onDragEnter=function(Ze){var et=Be.props.context.onNodeDragEnter;Ze.preventDefault(),Ze.stopPropagation(),et(Ze,(0,te.Z)(Be))},Be.onDragOver=function(Ze){var et=Be.props.context.onNodeDragOver;Ze.preventDefault(),Ze.stopPropagation(),et(Ze,(0,te.Z)(Be))},Be.onDragLeave=function(Ze){var et=Be.props.context.onNodeDragLeave;Ze.stopPropagation(),et(Ze,(0,te.Z)(Be))},Be.onDragEnd=function(Ze){var et=Be.props.context.onNodeDragEnd;Ze.stopPropagation(),Be.setState({dragNodeHighlight:!1}),et(Ze,(0,te.Z)(Be))},Be.onDrop=function(Ze){var et=Be.props.context.onNodeDrop;Ze.preventDefault(),Ze.stopPropagation(),Be.setState({dragNodeHighlight:!1}),et(Ze,(0,te.Z)(Be))},Be.onExpand=function(Ze){var et=Be.props,it=et.loading,pt=et.context.onNodeExpand;it||pt(Ze,(0,Se.F)(Be.props))},Be.setSelectHandle=function(Ze){Be.selectHandle=Ze},Be.getNodeState=function(){var Ze=Be.props.expanded;return Be.isLeaf()?null:Ze?ge:Me},Be.hasChildren=function(){var Ze=Be.props.eventKey,et=Be.props.context.keyEntities,it=(0,le.Z)(et,Ze)||{},pt=it.children;return!!(pt||[]).length},Be.isLeaf=function(){var Ze=Be.props,et=Ze.isLeaf,it=Ze.loaded,pt=Be.props.context.loadData,Ge=Be.hasChildren();return et===!1?!1:et||!pt&&!Ge||pt&&it&&!Ge},Be.isDisabled=function(){var Ze=Be.props.disabled,et=Be.props.context.disabled;return!!(et||Ze)},Be.isCheckable=function(){var Ze=Be.props.checkable,et=Be.props.context.checkable;return!et||Ze===!1?!1:et},Be.syncLoadData=function(Ze){var et=Ze.expanded,it=Ze.loading,pt=Ze.loaded,Ge=Be.props.context,Xe=Ge.loadData,lt=Ge.onNodeLoad;it||Xe&&et&&!Be.isLeaf()&&!Be.hasChildren()&&!pt&<((0,Se.F)(Be.props))},Be.isDraggable=function(){var Ze=Be.props,et=Ze.data,it=Ze.context.draggable;return!!(it&&(!it.nodeDraggable||it.nodeDraggable(et)))},Be.renderDragHandler=function(){var Ze=Be.props.context,et=Ze.draggable,it=Ze.prefixCls;return et!=null&&et.icon?se.createElement("span",{className:"".concat(it,"-draggable-icon")},et.icon):null},Be.renderSwitcherIconDom=function(Ze){var et=Be.props.switcherIcon,it=Be.props.context.switcherIcon,pt=et||it;return typeof pt=="function"?pt((0,Te.Z)((0,Te.Z)({},Be.props),{},{isLeaf:Ze})):pt},Be.renderSwitcher=function(){var Ze=Be.props.expanded,et=Be.props.context.prefixCls;if(Be.isLeaf()){var it=Be.renderSwitcherIconDom(!0);return it!==!1?se.createElement("span",{className:he()("".concat(et,"-switcher"),"".concat(et,"-switcher-noop"))},it):null}var pt=he()("".concat(et,"-switcher"),"".concat(et,"-switcher_").concat(Ze?ge:Me)),Ge=Be.renderSwitcherIconDom(!1);return Ge!==!1?se.createElement("span",{onClick:Be.onExpand,className:pt},Ge):null},Be.renderCheckbox=function(){var Ze=Be.props,et=Ze.checked,it=Ze.halfChecked,pt=Ze.disableCheckbox,Ge=Be.props.context.prefixCls,Xe=Be.isDisabled(),lt=Be.isCheckable();if(!lt)return null;var dt=typeof lt!="boolean"?lt:null;return se.createElement("span",{className:he()("".concat(Ge,"-checkbox"),et&&"".concat(Ge,"-checkbox-checked"),!et&&it&&"".concat(Ge,"-checkbox-indeterminate"),(Xe||pt)&&"".concat(Ge,"-checkbox-disabled")),onClick:Be.onCheck},dt)},Be.renderIcon=function(){var Ze=Be.props.loading,et=Be.props.context.prefixCls;return se.createElement("span",{className:he()("".concat(et,"-iconEle"),"".concat(et,"-icon__").concat(Be.getNodeState()||"docu"),Ze&&"".concat(et,"-icon_loading"))})},Be.renderSelector=function(){var Ze=Be.state.dragNodeHighlight,et=Be.props,it=et.title,pt=it===void 0?ye:it,Ge=et.selected,Xe=et.icon,lt=et.loading,dt=et.data,st=Be.props.context,nt=st.prefixCls,rt=st.showIcon,at=st.icon,gt=st.loadData,vt=st.titleRender,Et=Be.isDisabled(),At="".concat(nt,"-node-content-wrapper"),ut;if(rt){var Ye=Xe||at;ut=Ye?se.createElement("span",{className:he()("".concat(nt,"-iconEle"),"".concat(nt,"-icon__customize"))},typeof Ye=="function"?Ye(Be.props):Ye):Be.renderIcon()}else gt&<&&(ut=Be.renderIcon());var Ve;typeof pt=="function"?Ve=pt(dt):vt?Ve=vt(dt):Ve=pt;var de=se.createElement("span",{className:"".concat(nt,"-title")},Ve);return se.createElement("span",{ref:Be.setSelectHandle,title:typeof pt=="string"?pt:"",className:he()("".concat(At),"".concat(At,"-").concat(Be.getNodeState()||"normal"),!Et&&(Ge||Ze)&&"".concat(nt,"-node-selected")),onMouseEnter:Be.onMouseEnter,onMouseLeave:Be.onMouseLeave,onContextMenu:Be.onContextMenu,onClick:Be.onSelectorClick,onDoubleClick:Be.onSelectorDoubleClick},ut,de,Be.renderDropIndicator())},Be.renderDropIndicator=function(){var Ze=Be.props,et=Ze.disabled,it=Ze.eventKey,pt=Be.props.context,Ge=pt.draggable,Xe=pt.dropLevelOffset,lt=pt.dropPosition,dt=pt.prefixCls,st=pt.indent,nt=pt.dropIndicatorRender,rt=pt.dragOverNodeKey,at=pt.direction,gt=!!Ge,vt=!et&>&&rt===it,Et=st!=null?st:Be.cacheIndent;return Be.cacheIndent=st,vt?nt({dropPosition:lt,dropLevelOffset:Xe,indent:Et,prefixCls:dt,direction:at}):null},Be}return(0,ie.Z)(Ie,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ue=this.props.selectable,_e=this.props.context.selectable;return typeof Ue=="boolean"?Ue:_e}},{key:"render",value:function(){var Ue,_e=this.props,We=_e.eventKey,Ze=_e.className,et=_e.style,it=_e.dragOver,pt=_e.dragOverGapTop,Ge=_e.dragOverGapBottom,Xe=_e.isLeaf,lt=_e.isStart,dt=_e.isEnd,st=_e.expanded,nt=_e.selected,rt=_e.checked,at=_e.halfChecked,gt=_e.loading,vt=_e.domRef,Et=_e.active,At=_e.data,ut=_e.onMouseMove,Ye=_e.selectable,Ve=(0,x.Z)(_e,xe),de=this.props.context,Ce=de.prefixCls,He=de.filterTreeNode,je=de.keyEntities,Ae=de.dropContainerKey,Ne=de.dropTargetKey,ze=de.draggingNodeKey,Qe=this.isDisabled(),ot=(0,re.Z)(Ve,{aria:!0,data:!0}),mt=(0,le.Z)(je,We)||{},Ot=mt.level,xt=dt[dt.length-1],Ut=this.isDraggable(),xn=!Qe&&Ut,Ft=ze===We,Qt=Ye!==void 0?{"aria-selected":!!Ye}:void 0;return se.createElement("div",(0,Oe.Z)({ref:vt,className:he()(Ze,"".concat(Ce,"-treenode"),(Ue={},(0,Je.Z)(Ue,"".concat(Ce,"-treenode-disabled"),Qe),(0,Je.Z)(Ue,"".concat(Ce,"-treenode-switcher-").concat(st?"open":"close"),!Xe),(0,Je.Z)(Ue,"".concat(Ce,"-treenode-checkbox-checked"),rt),(0,Je.Z)(Ue,"".concat(Ce,"-treenode-checkbox-indeterminate"),at),(0,Je.Z)(Ue,"".concat(Ce,"-treenode-selected"),nt),(0,Je.Z)(Ue,"".concat(Ce,"-treenode-loading"),gt),(0,Je.Z)(Ue,"".concat(Ce,"-treenode-active"),Et),(0,Je.Z)(Ue,"".concat(Ce,"-treenode-leaf-last"),xt),(0,Je.Z)(Ue,"".concat(Ce,"-treenode-draggable"),Ut),(0,Je.Z)(Ue,"dragging",Ft),(0,Je.Z)(Ue,"drop-target",Ne===We),(0,Je.Z)(Ue,"drop-container",Ae===We),(0,Je.Z)(Ue,"drag-over",!Qe&&it),(0,Je.Z)(Ue,"drag-over-gap-top",!Qe&&pt),(0,Je.Z)(Ue,"drag-over-gap-bottom",!Qe&&Ge),(0,Je.Z)(Ue,"filter-node",He&&He((0,Se.F)(this.props))),Ue)),style:et,draggable:xn,"aria-grabbed":Ft,onDragStart:xn?this.onDragStart:void 0,onDragEnter:Ut?this.onDragEnter:void 0,onDragOver:Ut?this.onDragOver:void 0,onDragLeave:Ut?this.onDragLeave:void 0,onDrop:Ut?this.onDrop:void 0,onDragEnd:Ut?this.onDragEnd:void 0,onMouseMove:ut},Qt,ot),se.createElement(pe,{prefixCls:Ce,level:Ot,isStart:lt,isEnd:dt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ie}(se.Component),Fe=function(Le){return se.createElement(ce.k.Consumer,null,function(Ie){return se.createElement(be,(0,Oe.Z)({},Le,{context:Ie}))})};Fe.displayName="TreeNode",Fe.isTreeNode=1;var ke=Fe},69610:function(tn,Kt,me){"use strict";me.d(Kt,{k:function(){return Je}});var Oe=me(67294),Je=Oe.createContext(null)},29873:function(tn,Kt,me){"use strict";me.d(Kt,{BT:function(){return pe},E6:function(){return xe},L0:function(){return oe},OM:function(){return fe},_5:function(){return ne},r7:function(){return ge},wA:function(){return re},yx:function(){return he}});var Oe=me(74902),Je=me(71002),x=me(72978),Te=me(67294),ve=me(56261),ie=me(3596),te=me(83898),ae=null;function ne(Me,ye){if(!Me)return[];var be=Me.slice(),Fe=be.indexOf(ye);return Fe>=0&&be.splice(Fe,1),be}function oe(Me,ye){var be=(Me||[]).slice();return be.indexOf(ye)===-1&&be.push(ye),be}function he(Me){return Me.split("-")}function re(Me,ye){var be=[],Fe=(0,ie.Z)(ye,Me);function ke(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];De.forEach(function(Le){var Ie=Le.key,Be=Le.children;be.push(Ie),ke(Be)})}return ke(Fe.children),be}function se(Me){if(Me.parent){var ye=he(Me.pos);return Number(ye[ye.length-1])===Me.parent.children.length-1}return!1}function ce(Me){var ye=he(Me.pos);return Number(ye[ye.length-1])===0}function fe(Me,ye,be,Fe,ke,De,Le,Ie,Be,Ue){var _e,We=Me.clientX,Ze=Me.clientY,et=Me.target.getBoundingClientRect(),it=et.top,pt=et.height,Ge=(Ue==="rtl"?-1:1)*(((ke==null?void 0:ke.x)||0)-We),Xe=(Ge-12)/Fe,lt=(0,ie.Z)(Ie,be.props.eventKey);if(Ze<it+pt/2){var dt=Le.findIndex(function(de){return de.key===lt.key}),st=dt<=0?0:dt-1,nt=Le[st].key;lt=(0,ie.Z)(Ie,nt)}var rt=lt.key,at=lt,gt=lt.key,vt=0,Et=0;if(!Be.includes(rt))for(var At=0;At<Xe&&se(lt);At+=1)lt=lt.parent,Et+=1;var ut=ye.props.data,Ye=lt.node,Ve=!0;return ce(lt)&<.level===0&&Ze<it+pt/2&&De({dragNode:ut,dropNode:Ye,dropPosition:-1})&<.key===be.props.eventKey?vt=-1:(at.children||[]).length&&Be.includes(gt)?De({dragNode:ut,dropNode:Ye,dropPosition:0})?vt=0:Ve=!1:Et===0?Xe>-1.5?De({dragNode:ut,dropNode:Ye,dropPosition:1})?vt=1:Ve=!1:De({dragNode:ut,dropNode:Ye,dropPosition:0})?vt=0:De({dragNode:ut,dropNode:Ye,dropPosition:1})?vt=1:Ve=!1:De({dragNode:ut,dropNode:Ye,dropPosition:1})?vt=1:Ve=!1,{dropPosition:vt,dropLevelOffset:Et,dropTargetKey:lt.key,dropTargetPos:lt.pos,dragOverNodeKey:gt,dropContainerKey:vt===0?null:((_e=lt.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:Ve}}function pe(Me,ye){if(Me){var be=ye.multiple;return be?Me.slice():Me.length?[Me[0]]:Me}}var le=function(ye){return ye};function Se(Me,ye){if(!Me)return[];var be=ye||{},Fe=be.processProps,ke=Fe===void 0?le:Fe,De=Array.isArray(Me)?Me:[Me];return De.map(function(Le){var Ie=Le.children,Be=_objectWithoutProperties(Le,ae),Ue=Se(Ie,ye);return React.createElement(TreeNode,_extends({key:Be.key},ke(Be)),Ue)})}function xe(Me){if(!Me)return null;var ye;if(Array.isArray(Me))ye={checkedKeys:Me,halfCheckedKeys:void 0};else if((0,Je.Z)(Me)==="object")ye={checkedKeys:Me.checked||void 0,halfCheckedKeys:Me.halfChecked||void 0};else return(0,x.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ye}function ge(Me,ye){var be=new Set;function Fe(ke){if(!be.has(ke)){var De=(0,ie.Z)(ye,ke);if(De){be.add(ke);var Le=De.parent,Ie=De.node;Ie.disabled||Le&&Fe(Le.key)}}}return(Me||[]).forEach(function(ke){Fe(ke)}),(0,Oe.Z)(be)}},97153:function(tn,Kt,me){"use strict";me.d(Kt,{S:function(){return te}});var Oe=me(72978),Je=me(3596);function x(ae,ne){var oe=new Set;return ae.forEach(function(he){ne.has(he)||oe.add(he)}),oe}function Te(ae){var ne=ae||{},oe=ne.disabled,he=ne.disableCheckbox,re=ne.checkable;return!!(oe||he)||re===!1}function ve(ae,ne,oe,he){for(var re=new Set(ae),se=new Set,ce=0;ce<=oe;ce+=1){var fe=ne.get(ce)||new Set;fe.forEach(function(xe){var ge=xe.key,Me=xe.node,ye=xe.children,be=ye===void 0?[]:ye;re.has(ge)&&!he(Me)&&be.filter(function(Fe){return!he(Fe.node)}).forEach(function(Fe){re.add(Fe.key)})})}for(var pe=new Set,le=oe;le>=0;le-=1){var Se=ne.get(le)||new Set;Se.forEach(function(xe){var ge=xe.parent,Me=xe.node;if(!(he(Me)||!xe.parent||pe.has(xe.parent.key))){if(he(xe.parent.node)){pe.add(ge.key);return}var ye=!0,be=!1;(ge.children||[]).filter(function(Fe){return!he(Fe.node)}).forEach(function(Fe){var ke=Fe.key,De=re.has(ke);ye&&!De&&(ye=!1),!be&&(De||se.has(ke))&&(be=!0)}),ye&&re.add(ge.key),be&&se.add(ge.key),pe.add(ge.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(x(se,re))}}function ie(ae,ne,oe,he,re){for(var se=new Set(ae),ce=new Set(ne),fe=0;fe<=he;fe+=1){var pe=oe.get(fe)||new Set;pe.forEach(function(ge){var Me=ge.key,ye=ge.node,be=ge.children,Fe=be===void 0?[]:be;!se.has(Me)&&!ce.has(Me)&&!re(ye)&&Fe.filter(function(ke){return!re(ke.node)}).forEach(function(ke){se.delete(ke.key)})})}ce=new Set;for(var le=new Set,Se=he;Se>=0;Se-=1){var xe=oe.get(Se)||new Set;xe.forEach(function(ge){var Me=ge.parent,ye=ge.node;if(!(re(ye)||!ge.parent||le.has(ge.parent.key))){if(re(ge.parent.node)){le.add(Me.key);return}var be=!0,Fe=!1;(Me.children||[]).filter(function(ke){return!re(ke.node)}).forEach(function(ke){var De=ke.key,Le=se.has(De);be&&!Le&&(be=!1),!Fe&&(Le||ce.has(De))&&(Fe=!0)}),be||se.delete(Me.key),Fe&&ce.add(Me.key),le.add(Me.key)}})}return{checkedKeys:Array.from(se),halfCheckedKeys:Array.from(x(ce,se))}}function te(ae,ne,oe,he){var re=[],se;he?se=he:se=Te;var ce=new Set(ae.filter(function(Se){var xe=!!(0,Je.Z)(oe,Se);return xe||re.push(Se),xe})),fe=new Map,pe=0;Object.keys(oe).forEach(function(Se){var xe=oe[Se],ge=xe.level,Me=fe.get(ge);Me||(Me=new Set,fe.set(ge,Me)),Me.add(xe),pe=Math.max(pe,ge)}),(0,Oe.ZP)(!re.length,"Tree missing follow keys: ".concat(re.slice(0,100).map(function(Se){return"'".concat(Se,"'")}).join(", ")));var le;return ne===!0?le=ve(ce,fe,pe,se):le=ie(ce,ne.halfCheckedKeys,fe,pe,se),le}},3596:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Oe}});function Oe(Je,x){return Je[x]}},83898:function(tn,Kt,me){"use strict";me.d(Kt,{I8:function(){return ge},F:function(){return ye},zn:function(){return le},w$:function(){return fe},oH:function(){return Se},km:function(){return ce},H8:function(){return Me}});var Oe=me(71002),Je=me(74902),x=me(1413),Te=me(45987),ve=me(67294),ie=me(28580);function te(be){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=[];return ve.Children.forEach(be,function(De){De==null&&!Fe.keepEmpty||(Array.isArray(De)?ke=ke.concat(te(De)):(0,ie.isFragment)(De)&&De.props?ke=ke.concat(te(De.props.children,Fe)):ke.push(De))}),ke}function ae(be,Fe){var ke=(0,x.Z)({},be);return Array.isArray(Fe)&&Fe.forEach(function(De){delete ke[De]}),ke}var ne=me(72978),oe=me(3596),he=["children"];function re(be,Fe){return"".concat(be,"-").concat(Fe)}function se(be){return be&&be.type&&be.type.isTreeNode}function ce(be,Fe){return be!=null?be:Fe}function fe(be){var Fe=be||{},ke=Fe.title,De=Fe._title,Le=Fe.key,Ie=Fe.children,Be=ke||"title";return{title:Be,_title:De||[Be],key:Le||"key",children:Ie||"children"}}function pe(be,Fe){var ke=new Map;function De(Le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Le||[]).forEach(function(Be){var Ue=Be[Fe.key],_e=Be[Fe.children];warning(Ue!=null,"Tree node must have a certain key: [".concat(Ie).concat(Ue,"]"));var We=String(Ue);warning(!ke.has(We)||Ue===null||Ue===void 0,"Same 'key' exist in the Tree: ".concat(We)),ke.set(We,!0),De(_e,"".concat(Ie).concat(We," > "))})}De(be)}function le(be){function Fe(ke){var De=te(ke);return De.map(function(Le){if(!se(Le))return(0,ne.ZP)(!Le,"Tree/TreeNode can only accept TreeNode as children."),null;var Ie=Le.key,Be=Le.props,Ue=Be.children,_e=(0,Te.Z)(Be,he),We=(0,x.Z)({key:Ie},_e),Ze=Fe(Ue);return Ze.length&&(We.children=Ze),We}).filter(function(Le){return Le})}return Fe(be)}function Se(be,Fe,ke){var De=fe(ke),Le=De._title,Ie=De.key,Be=De.children,Ue=new Set(Fe===!0?[]:Fe),_e=[];function We(Ze){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ze.map(function(it,pt){for(var Ge=re(et?et.pos:"0",pt),Xe=ce(it[Ie],Ge),lt,dt=0;dt<Le.length;dt+=1){var st=Le[dt];if(it[st]!==void 0){lt=it[st];break}}var nt=(0,x.Z)((0,x.Z)({},ae(it,[].concat((0,Je.Z)(Le),[Ie,Be]))),{},{title:lt,key:Xe,parent:et,pos:Ge,children:null,data:it,isStart:[].concat((0,Je.Z)(et?et.isStart:[]),[pt===0]),isEnd:[].concat((0,Je.Z)(et?et.isEnd:[]),[pt===Ze.length-1])});return _e.push(nt),Fe===!0||Ue.has(Xe)?nt.children=We(it[Be]||[],nt):nt.children=[],nt})}return We(be),_e}function xe(be,Fe,ke){var De={};(0,Oe.Z)(ke)==="object"?De=ke:De={externalGetKey:ke},De=De||{};var Le=De,Ie=Le.childrenPropName,Be=Le.externalGetKey,Ue=Le.fieldNames,_e=fe(Ue),We=_e.key,Ze=_e.children,et=Ie||Ze,it;Be?typeof Be=="string"?it=function(Xe){return Xe[Be]}:typeof Be=="function"&&(it=function(Xe){return Be(Xe)}):it=function(Xe,lt){return ce(Xe[We],lt)};function pt(Ge,Xe,lt,dt){var st=Ge?Ge[et]:be,nt=Ge?re(lt.pos,Xe):"0",rt=Ge?[].concat((0,Je.Z)(dt),[Ge]):[];if(Ge){var at=it(Ge,nt),gt={node:Ge,index:Xe,pos:nt,key:at,parentPos:lt.node?lt.pos:null,level:lt.level+1,nodes:rt};Fe(gt)}st&&st.forEach(function(vt,Et){pt(vt,Et,{node:Ge,pos:nt,level:lt?lt.level+1:-1},rt)})}pt(null)}function ge(be){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=Fe.initWrapper,De=Fe.processEntity,Le=Fe.onProcessFinished,Ie=Fe.externalGetKey,Be=Fe.childrenPropName,Ue=Fe.fieldNames,_e=arguments.length>2?arguments[2]:void 0,We=Ie||_e,Ze={},et={},it={posEntities:Ze,keyEntities:et};return ke&&(it=ke(it)||it),xe(be,function(pt){var Ge=pt.node,Xe=pt.index,lt=pt.pos,dt=pt.key,st=pt.parentPos,nt=pt.level,rt=pt.nodes,at={node:Ge,nodes:rt,index:Xe,key:dt,pos:lt,level:nt},gt=ce(dt,lt);Ze[lt]=at,et[gt]=at,at.parent=Ze[st],at.parent&&(at.parent.children=at.parent.children||[],at.parent.children.push(at)),De&&De(at,it)},{externalGetKey:We,childrenPropName:Be,fieldNames:Ue}),Le&&Le(it),it}function Me(be,Fe){var ke=Fe.expandedKeys,De=Fe.selectedKeys,Le=Fe.loadedKeys,Ie=Fe.loadingKeys,Be=Fe.checkedKeys,Ue=Fe.halfCheckedKeys,_e=Fe.dragOverNodeKey,We=Fe.dropPosition,Ze=Fe.keyEntities,et=(0,oe.Z)(Ze,be),it={eventKey:be,expanded:ke.indexOf(be)!==-1,selected:De.indexOf(be)!==-1,loaded:Le.indexOf(be)!==-1,loading:Ie.indexOf(be)!==-1,checked:Be.indexOf(be)!==-1,halfChecked:Ue.indexOf(be)!==-1,pos:String(et?et.pos:""),dragOver:_e===be&&We===0,dragOverGapTop:_e===be&&We===-1,dragOverGapBottom:_e===be&&We===1};return it}function ye(be){var Fe=be.data,ke=be.expanded,De=be.selected,Le=be.checked,Ie=be.loaded,Be=be.loading,Ue=be.halfChecked,_e=be.dragOver,We=be.dragOverGapTop,Ze=be.dragOverGapBottom,et=be.pos,it=be.active,pt=be.eventKey,Ge=(0,x.Z)((0,x.Z)({},Fe),{},{expanded:ke,selected:De,checked:Le,loaded:Ie,loading:Be,halfChecked:Ue,dragOver:_e,dragOverGapTop:We,dragOverGapBottom:Ze,pos:et,active:it,key:pt});return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,ne.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),Ge}},34952:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ae}});var Oe=me(1413),Je=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Te="".concat(Je," ").concat(x).split(/[\s\n]+/),ve="aria-",ie="data-";function te(ne,oe){return ne.indexOf(oe)===0}function ae(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he;oe===!1?he={aria:!0,data:!0,attr:!0}:oe===!0?he={aria:!0}:he=(0,Oe.Z)({},oe);var re={};return Object.keys(ne).forEach(function(se){(he.aria&&(se==="role"||te(se,ve))||he.data&&te(se,ie)||he.attr&&Te.includes(se))&&(re[se]=ne[se])}),re}},72978:function(tn,Kt,me){"use strict";var Oe={};function Je(ae,ne){}function x(ae,ne){}function Te(){Oe={}}function ve(ae,ne,oe){!ne&&!Oe[oe]&&(ae(!1,oe),Oe[oe]=!0)}function ie(ae,ne){ve(Je,ae,ne)}function te(ae,ne){ve(x,ae,ne)}Kt.ZP=ie},81533:function(tn,Kt){"use strict";var me;var Oe=typeof Symbol=="function"&&Symbol.for,Je=Oe?Symbol.for("react.element"):60103,x=Oe?Symbol.for("react.portal"):60106,Te=Oe?Symbol.for("react.fragment"):60107,ve=Oe?Symbol.for("react.strict_mode"):60108,ie=Oe?Symbol.for("react.profiler"):60114,te=Oe?Symbol.for("react.provider"):60109,ae=Oe?Symbol.for("react.context"):60110,ne=Oe?Symbol.for("react.async_mode"):60111,oe=Oe?Symbol.for("react.concurrent_mode"):60111,he=Oe?Symbol.for("react.forward_ref"):60112,re=Oe?Symbol.for("react.suspense"):60113,se=Oe?Symbol.for("react.suspense_list"):60120,ce=Oe?Symbol.for("react.memo"):60115,fe=Oe?Symbol.for("react.lazy"):60116,pe=Oe?Symbol.for("react.block"):60121,le=Oe?Symbol.for("react.fundamental"):60117,Se=Oe?Symbol.for("react.responder"):60118,xe=Oe?Symbol.for("react.scope"):60119;function ge(ye){if(typeof ye=="object"&&ye!==null){var be=ye.$$typeof;switch(be){case Je:switch(ye=ye.type,ye){case ne:case oe:case Te:case ie:case ve:case re:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case ae:case he:case fe:case ce:case te:return ye;default:return be}}case x:return be}}}function Me(ye){return ge(ye)===oe}me=ne,me=oe,me=ae,me=te,me=Je,me=he,me=Te,me=fe,me=ce,me=x,me=ie,me=ve,me=re,me=function(ye){return Me(ye)||ge(ye)===ne},me=Me,me=function(ye){return ge(ye)===ae},me=function(ye){return ge(ye)===te},me=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===Je},me=function(ye){return ge(ye)===he},Kt.isFragment=function(ye){return ge(ye)===Te},me=function(ye){return ge(ye)===fe},Kt.isMemo=function(ye){return ge(ye)===ce},me=function(ye){return ge(ye)===x},me=function(ye){return ge(ye)===ie},me=function(ye){return ge(ye)===ve},me=function(ye){return ge(ye)===re},me=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===oe||ye===ie||ye===ve||ye===re||ye===se||typeof ye=="object"&&ye!==null&&(ye.$$typeof===fe||ye.$$typeof===ce||ye.$$typeof===te||ye.$$typeof===ae||ye.$$typeof===he||ye.$$typeof===le||ye.$$typeof===Se||ye.$$typeof===xe||ye.$$typeof===pe)},me=ge},28580:function(tn,Kt,me){"use strict";tn.exports=me(81533)},92389:function(tn,Kt){"use strict";var me={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Je){var x=Je.keyCode;if(Je.altKey&&!Je.ctrlKey||Je.metaKey||x>=me.F1&&x<=me.F12)return!1;switch(x){case me.ALT:case me.CAPS_LOCK:case me.CONTEXT_MENU:case me.CTRL:case me.DOWN:case me.END:case me.ESC:case me.HOME:case me.INSERT:case me.LEFT:case me.MAC_FF_META:case me.META:case me.NUMLOCK:case me.NUM_CENTER:case me.PAGE_DOWN:case me.PAGE_UP:case me.PAUSE:case me.PRINT_SCREEN:case me.RIGHT:case me.SHIFT:case me.UP:case me.WIN_KEY:case me.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Je){if(Je>=me.ZERO&&Je<=me.NINE||Je>=me.NUM_ZERO&&Je<=me.NUM_MULTIPLY||Je>=me.A&&Je<=me.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Je===0)return!0;switch(Je){case me.SPACE:case me.QUESTION_MARK:case me.NUM_PLUS:case me.NUM_MINUS:case me.NUM_PERIOD:case me.NUM_DIVISION:case me.SEMICOLON:case me.DASH:case me.EQUALS:case me.COMMA:case me.PERIOD:case me.SLASH:case me.APOSTROPHE:case me.SINGLE_QUOTE:case me.OPEN_SQUARE_BRACKET:case me.BACKSLASH:case me.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Kt.Z=me},1337:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ae}});var Oe=me(1413),Je=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Te="".concat(Je," ").concat(x).split(/[\s\n]+/),ve="aria-",ie="data-";function te(ne,oe){return ne.indexOf(oe)===0}function ae(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he;oe===!1?he={aria:!0,data:!0,attr:!0}:oe===!0?he={aria:!0}:he=(0,Oe.Z)({},oe);var re={};return Object.keys(ne).forEach(function(se){(he.aria&&(se==="role"||te(se,ve))||he.data&&te(se,ie)||he.attr&&Te.includes(se))&&(re[se]=ne[se])}),re}},88386:function(tn,Kt,me){(function(Oe){Oe(me(4631))})(function(Oe){Oe.defineOption("placeholder","",function(ae,ne,oe){var he=oe&&oe!=Oe.Init;if(ne&&!he)ae.on("blur",ve),ae.on("change",ie),ae.on("swapDoc",ie),Oe.on(ae.getInputField(),"compositionupdate",ae.state.placeholderCompose=function(){Te(ae)}),ie(ae);else if(!ne&&he){ae.off("blur",ve),ae.off("change",ie),ae.off("swapDoc",ie),Oe.off(ae.getInputField(),"compositionupdate",ae.state.placeholderCompose),Je(ae);var re=ae.getWrapperElement();re.className=re.className.replace(" CodeMirror-empty","")}ne&&!ae.hasFocus()&&ve(ae)});function Je(ae){ae.state.placeholder&&(ae.state.placeholder.parentNode.removeChild(ae.state.placeholder),ae.state.placeholder=null)}function x(ae){Je(ae);var ne=ae.state.placeholder=document.createElement("pre");ne.style.cssText="height: 0; overflow: visible",ne.style.direction=ae.getOption("direction"),ne.className="CodeMirror-placeholder CodeMirror-line-like";var oe=ae.getOption("placeholder");typeof oe=="string"&&(oe=document.createTextNode(oe)),ne.appendChild(oe),ae.display.lineSpace.insertBefore(ne,ae.display.lineSpace.firstChild)}function Te(ae){setTimeout(function(){var ne=!1,oe=ae.getInputField();oe.nodeName=="TEXTAREA"?ne=!oe.value:ae.lineCount()==1&&(ne=!/[^\u200b]/.test(oe.querySelector(".CodeMirror-line").textContent)),ne?x(ae):Je(ae)},20)}function ve(ae){te(ae)&&x(ae)}function ie(ae){var ne=ae.getWrapperElement(),oe=te(ae);ne.className=ne.className.replace(" CodeMirror-empty","")+(oe?" CodeMirror-empty":""),oe?x(ae):Je(ae)}function te(ae){return ae.lineCount()===1&&ae.getLine(0)===""}})},82801:function(tn,Kt,me){(function(Oe){Oe(me(4631))})(function(Oe){var Je={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=Oe.Pos;Oe.defineOption("autoCloseBrackets",!1,function(fe,pe,le){le&&le!=Oe.Init&&(fe.removeKeyMap(ve),fe.state.closeBrackets=null),pe&&(ie(Te(pe,"pairs")),fe.state.closeBrackets=pe,fe.addKeyMap(ve))});function Te(fe,pe){return pe=="pairs"&&typeof fe=="string"?fe:typeof fe=="object"&&fe[pe]!=null?fe[pe]:Je[pe]}var ve={Backspace:ne,Enter:oe};function ie(fe){for(var pe=0;pe<fe.length;pe++){var le=fe.charAt(pe),Se="'"+le+"'";ve[Se]||(ve[Se]=te(le))}}ie(Je.pairs+"`");function te(fe){return function(pe){return re(pe,fe)}}function ae(fe){var pe=fe.state.closeBrackets;if(!pe||pe.override)return pe;var le=fe.getModeAt(fe.getCursor());return le.closeBrackets||pe}function ne(fe){var pe=ae(fe);if(!pe||fe.getOption("disableInput"))return Oe.Pass;for(var le=Te(pe,"pairs"),Se=fe.listSelections(),xe=0;xe<Se.length;xe++){if(!Se[xe].empty())return Oe.Pass;var ge=se(fe,Se[xe].head);if(!ge||le.indexOf(ge)%2!=0)return Oe.Pass}for(var xe=Se.length-1;xe>=0;xe--){var Me=Se[xe].head;fe.replaceRange("",x(Me.line,Me.ch-1),x(Me.line,Me.ch+1),"+delete")}}function oe(fe){var pe=ae(fe),le=pe&&Te(pe,"explode");if(!le||fe.getOption("disableInput"))return Oe.Pass;for(var Se=fe.listSelections(),xe=0;xe<Se.length;xe++){if(!Se[xe].empty())return Oe.Pass;var ge=se(fe,Se[xe].head);if(!ge||le.indexOf(ge)%2!=0)return Oe.Pass}fe.operation(function(){var Me=fe.lineSeparator()||`
|
|
|
`;fe.replaceSelection(Me+Me,null),fe.execCommand("goCharLeft"),Se=fe.listSelections();for(var ye=0;ye<Se.length;ye++){var be=Se[ye].head.line;fe.indentLine(be,null,!0),fe.indentLine(be+1,null,!0)}})}function he(fe){var pe=Oe.cmpPos(fe.anchor,fe.head)>0;return{anchor:new x(fe.anchor.line,fe.anchor.ch+(pe?-1:1)),head:new x(fe.head.line,fe.head.ch+(pe?1:-1))}}function re(fe,pe){var le=ae(fe);if(!le||fe.getOption("disableInput"))return Oe.Pass;var Se=Te(le,"pairs"),xe=Se.indexOf(pe);if(xe==-1)return Oe.Pass;for(var ge=Te(le,"closeBefore"),Me=Te(le,"triples"),ye=Se.charAt(xe+1)==pe,be=fe.listSelections(),Fe=xe%2==0,ke,De=0;De<be.length;De++){var Le=be[De],Ie=Le.head,Be,Ue=fe.getRange(Ie,x(Ie.line,Ie.ch+1));if(Fe&&!Le.empty())Be="surround";else if((ye||!Fe)&&Ue==pe)ye&&ce(fe,Ie)?Be="both":Me.indexOf(pe)>=0&&fe.getRange(Ie,x(Ie.line,Ie.ch+3))==pe+pe+pe?Be="skipThree":Be="skip";else if(ye&&Ie.ch>1&&Me.indexOf(pe)>=0&&fe.getRange(x(Ie.line,Ie.ch-2),Ie)==pe+pe){if(Ie.ch>2&&/\bstring/.test(fe.getTokenTypeAt(x(Ie.line,Ie.ch-2))))return Oe.Pass;Be="addFour"}else if(ye){var _e=Ie.ch==0?" ":fe.getRange(x(Ie.line,Ie.ch-1),Ie);if(!Oe.isWordChar(Ue)&&_e!=pe&&!Oe.isWordChar(_e))Be="both";else return Oe.Pass}else if(Fe&&(Ue.length===0||/\s/.test(Ue)||ge.indexOf(Ue)>-1))Be="both";else return Oe.Pass;if(!ke)ke=Be;else if(ke!=Be)return Oe.Pass}var We=xe%2?Se.charAt(xe-1):pe,Ze=xe%2?pe:Se.charAt(xe+1);fe.operation(function(){if(ke=="skip")fe.execCommand("goCharRight");else if(ke=="skipThree")for(var et=0;et<3;et++)fe.execCommand("goCharRight");else if(ke=="surround"){for(var it=fe.getSelections(),et=0;et<it.length;et++)it[et]=We+it[et]+Ze;fe.replaceSelections(it,"around"),it=fe.listSelections().slice();for(var et=0;et<it.length;et++)it[et]=he(it[et]);fe.setSelections(it)}else ke=="both"?(fe.replaceSelection(We+Ze,null),fe.triggerElectric(We+Ze),fe.execCommand("goCharLeft")):ke=="addFour"&&(fe.replaceSelection(We+We+We+We,"before"),fe.execCommand("goCharRight"))})}function se(fe,pe){var le=fe.getRange(x(pe.line,pe.ch-1),x(pe.line,pe.ch+1));return le.length==2?le:null}function ce(fe,pe){var le=fe.getTokenAt(x(pe.line,pe.ch+1));return/\bstring/.test(le.type)&&le.start==pe.ch&&(pe.ch==0||!/\bstring/.test(fe.getTokenTypeAt(pe)))}})},57341:function(tn,Kt,me){(function(Oe){Oe(me(4631),me(4786))})(function(Oe){Oe.defineOption("autoCloseTags",!1,function(ne,oe,he){if(he!=Oe.Init&&he&&ne.removeKeyMap("autoCloseTags"),!!oe){var re={name:"autoCloseTags"};(typeof oe!="object"||oe.whenClosing!==!1)&&(re["'/'"]=function(se){return ie(se)}),(typeof oe!="object"||oe.whenOpening!==!1)&&(re["'>'"]=function(se){return Te(se)}),ne.addKeyMap(re)}});var Je=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["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(ne){if(ne.getOption("disableInput"))return Oe.Pass;for(var oe=ne.listSelections(),he=[],re=ne.getOption("autoCloseTags"),se=0;se<oe.length;se++){if(!oe[se].empty())return Oe.Pass;var ce=oe[se].head,fe=ne.getTokenAt(ce),pe=Oe.innerMode(ne.getMode(),fe.state),le=pe.state,Se=pe.mode.xmlCurrentTag&&pe.mode.xmlCurrentTag(le),xe=Se&&Se.name;if(!xe)return Oe.Pass;var ge=pe.mode.configuration=="html",Me=typeof re=="object"&&re.dontCloseTags||ge&&Je,ye=typeof re=="object"&&re.indentTags||ge&&x;fe.end>ce.ch&&(xe=xe.slice(0,xe.length-fe.end+ce.ch));var be=xe.toLowerCase();if(!xe||fe.type=="string"&&(fe.end!=ce.ch||!/[\"\']/.test(fe.string.charAt(fe.string.length-1))||fe.string.length==1)||fe.type=="tag"&&Se.close||fe.string.indexOf("/")==ce.ch-fe.start-1||Me&&te(Me,be)>-1||ae(ne,pe.mode.xmlCurrentContext&&pe.mode.xmlCurrentContext(le)||[],xe,ce,!0))return Oe.Pass;var Fe=typeof re=="object"&&re.emptyTags;if(Fe&&te(Fe,xe)>-1){he[se]={text:"/>",newPos:Oe.Pos(ce.line,ce.ch+2)};continue}var ke=ye&&te(ye,be)>-1;he[se]={indent:ke,text:">"+(ke?`
|
|
|
|
|
|
`:"")+"</"+xe+">",newPos:ke?Oe.Pos(ce.line+1,0):Oe.Pos(ce.line,ce.ch+1)}}for(var De=typeof re=="object"&&re.dontIndentOnAutoClose,se=oe.length-1;se>=0;se--){var Le=he[se];ne.replaceRange(Le.text,oe[se].head,oe[se].anchor,"+insert");var Ie=ne.listSelections().slice(0);Ie[se]={head:Le.newPos,anchor:Le.newPos},ne.setSelections(Ie),!De&&Le.indent&&(ne.indentLine(Le.newPos.line,null,!0),ne.indentLine(Le.newPos.line+1,null,!0))}}function ve(ne,oe){for(var he=ne.listSelections(),re=[],se=oe?"/":"</",ce=ne.getOption("autoCloseTags"),fe=typeof ce=="object"&&ce.dontIndentOnSlash,pe=0;pe<he.length;pe++){if(!he[pe].empty())return Oe.Pass;var le=he[pe].head,Se=ne.getTokenAt(le),xe=Oe.innerMode(ne.getMode(),Se.state),ge=xe.state;if(oe&&(Se.type=="string"||Se.string.charAt(0)!="<"||Se.start!=le.ch-1))return Oe.Pass;var Me,ye=xe.mode.name!="xml"&&ne.getMode().name=="htmlmixed";if(ye&&xe.mode.name=="javascript")Me=se+"script";else if(ye&&xe.mode.name=="css")Me=se+"style";else{var be=xe.mode.xmlCurrentContext&&xe.mode.xmlCurrentContext(ge);if(!be||be.length&&ae(ne,be,be[be.length-1],le))return Oe.Pass;Me=se+be[be.length-1]}ne.getLine(le.line).charAt(Se.end)!=">"&&(Me+=">"),re[pe]=Me}if(ne.replaceSelections(re),he=ne.listSelections(),!fe)for(var pe=0;pe<he.length;pe++)(pe==he.length-1||he[pe].head.line<he[pe+1].head.line)&&ne.indentLine(he[pe].head.line)}function ie(ne){return ne.getOption("disableInput")?Oe.Pass:ve(ne,!0)}Oe.commands.closeTag=function(ne){return ve(ne)};function te(ne,oe){if(ne.indexOf)return ne.indexOf(oe);for(var he=0,re=ne.length;he<re;++he)if(ne[he]==oe)return he;return-1}function ae(ne,oe,he,re,se){if(!Oe.scanForClosingTag)return!1;var ce=Math.min(ne.lastLine()+1,re.line+500),fe=Oe.scanForClosingTag(ne,re,null,ce);if(!fe||fe.tag!=he)return!1;for(var pe=se?1:0,le=oe.length-1;le>=0&&oe[le]==he;le--)++pe;re=fe.to;for(var le=1;le<pe;le++){var Se=Oe.scanForClosingTag(ne,re,null,ce);if(!Se||Se.tag!=he)return!1;re=Se.to}return!0}})},4786:function(tn,Kt,me){(function(Oe){Oe(me(4631))})(function(Oe){"use strict";var Je=Oe.Pos;function x(le,Se){return le.line-Se.line||le.ch-Se.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",ve=Te+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ie=new RegExp("<(/?)(["+Te+"]["+ve+"]*)","g");function te(le,Se,xe,ge){this.line=Se,this.ch=xe,this.cm=le,this.text=le.getLine(Se),this.min=ge?Math.max(ge.from,le.firstLine()):le.firstLine(),this.max=ge?Math.min(ge.to-1,le.lastLine()):le.lastLine()}function ae(le,Se){var xe=le.cm.getTokenTypeAt(Je(le.line,Se));return xe&&/\btag\b/.test(xe)}function ne(le){if(!(le.line>=le.max))return le.ch=0,le.text=le.cm.getLine(++le.line),!0}function oe(le){if(!(le.line<=le.min))return le.text=le.cm.getLine(--le.line),le.ch=le.text.length,!0}function he(le){for(;;){var Se=le.text.indexOf(">",le.ch);if(Se==-1){if(ne(le))continue;return}if(!ae(le,Se+1)){le.ch=Se+1;continue}var xe=le.text.lastIndexOf("/",Se),ge=xe>-1&&!/\S/.test(le.text.slice(xe+1,Se));return le.ch=Se+1,ge?"selfClose":"regular"}}function re(le){for(;;){var Se=le.ch?le.text.lastIndexOf("<",le.ch-1):-1;if(Se==-1){if(oe(le))continue;return}if(!ae(le,Se+1)){le.ch=Se;continue}ie.lastIndex=Se,le.ch=Se;var xe=ie.exec(le.text);if(xe&&xe.index==Se)return xe}}function se(le){for(;;){ie.lastIndex=le.ch;var Se=ie.exec(le.text);if(!Se){if(ne(le))continue;return}if(!ae(le,Se.index+1)){le.ch=Se.index+1;continue}return le.ch=Se.index+Se[0].length,Se}}function ce(le){for(;;){var Se=le.ch?le.text.lastIndexOf(">",le.ch-1):-1;if(Se==-1){if(oe(le))continue;return}if(!ae(le,Se+1)){le.ch=Se;continue}var xe=le.text.lastIndexOf("/",Se),ge=xe>-1&&!/\S/.test(le.text.slice(xe+1,Se));return le.ch=Se+1,ge?"selfClose":"regular"}}function fe(le,Se){for(var xe=[];;){var ge=se(le),Me,ye=le.line,be=le.ch-(ge?ge[0].length:0);if(!ge||!(Me=he(le)))return;if(Me!="selfClose")if(ge[1]){for(var Fe=xe.length-1;Fe>=0;--Fe)if(xe[Fe]==ge[2]){xe.length=Fe;break}if(Fe<0&&(!Se||Se==ge[2]))return{tag:ge[2],from:Je(ye,be),to:Je(le.line,le.ch)}}else xe.push(ge[2])}}function pe(le,Se){for(var xe=[];;){var ge=ce(le);if(!ge)return;if(ge=="selfClose"){re(le);continue}var Me=le.line,ye=le.ch,be=re(le);if(!be)return;if(be[1])xe.push(be[2]);else{for(var Fe=xe.length-1;Fe>=0;--Fe)if(xe[Fe]==be[2]){xe.length=Fe;break}if(Fe<0&&(!Se||Se==be[2]))return{tag:be[2],from:Je(le.line,le.ch),to:Je(Me,ye)}}}}Oe.registerHelper("fold","xml",function(le,Se){for(var xe=new te(le,Se.line,0);;){var ge=se(xe);if(!ge||xe.line!=Se.line)return;var Me=he(xe);if(!Me)return;if(!ge[1]&&Me!="selfClose"){var ye=Je(xe.line,xe.ch),be=fe(xe,ge[2]);return be&&x(be.from,ye)>0?{from:ye,to:be.from}:null}}}),Oe.findMatchingTag=function(le,Se,xe){var ge=new te(le,Se.line,Se.ch,xe);if(!(ge.text.indexOf(">")==-1&&ge.text.indexOf("<")==-1)){var Me=he(ge),ye=Me&&Je(ge.line,ge.ch),be=Me&&re(ge);if(!(!Me||!be||x(ge,Se)>0)){var Fe={from:Je(ge.line,ge.ch),to:ye,tag:be[2]};return Me=="selfClose"?{open:Fe,close:null,at:"open"}:be[1]?{open:pe(ge,be[2]),close:Fe,at:"close"}:(ge=new te(le,ye.line,ye.ch,xe),{open:Fe,close:fe(ge,be[2]),at:"open"})}}},Oe.findEnclosingTag=function(le,Se,xe,ge){for(var Me=new te(le,Se.line,Se.ch,xe);;){var ye=pe(Me,ge);if(!ye)break;var be=new te(le,Se.line,Se.ch,xe),Fe=fe(be,ye.tag);if(Fe)return{open:ye,close:Fe}}},Oe.scanForClosingTag=function(le,Se,xe,ge){var Me=new te(le,Se.line,Se.ch,ge?{from:0,to:ge}:null);return fe(Me,xe)}})},4631:function(tn){(function(Kt,me){tn.exports=me()})(this,function(){"use strict";var Kt=navigator.userAgent,me=navigator.platform,Oe=/gecko\/\d/i.test(Kt),Je=/MSIE \d/.test(Kt),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kt),Te=/Edge\/(\d+)/.exec(Kt),ve=Je||x||Te,ie=ve&&(Je?document.documentMode||6:+(Te||x)[1]),te=!Te&&/WebKit\//.test(Kt),ae=te&&/Qt\/\d+\.\d+/.test(Kt),ne=!Te&&/Chrome\//.test(Kt),oe=/Opera\//.test(Kt),he=/Apple Computer/.test(navigator.vendor),re=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Kt),se=/PhantomJS/.test(Kt),ce=!Te&&/AppleWebKit/.test(Kt)&&/Mobile\/\w+/.test(Kt),fe=/Android/.test(Kt),pe=ce||fe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Kt),le=ce||/Mac/.test(me),Se=/\bCrOS\b/.test(Kt),xe=/win/i.test(me),ge=oe&&Kt.match(/Version\/(\d*\.\d*)/);ge&&(ge=Number(ge[1])),ge&&ge>=15&&(oe=!1,te=!0);var Me=le&&(ae||oe&&(ge==null||ge<12.11)),ye=Oe||ve&&ie>=9;function be(E){return new RegExp("(^|\\s)"+E+"(?:$|\\s)\\s*")}var Fe=function(E,ee){var Ee=E.className,we=be(ee).exec(Ee);if(we){var Re=Ee.slice(we.index+we[0].length);E.className=Ee.slice(0,we.index)+(Re?we[1]+Re:"")}};function ke(E){for(var ee=E.childNodes.length;ee>0;--ee)E.removeChild(E.firstChild);return E}function De(E,ee){return ke(E).appendChild(ee)}function Le(E,ee,Ee,we){var Re=document.createElement(E);if(Ee&&(Re.className=Ee),we&&(Re.style.cssText=we),typeof ee=="string")Re.appendChild(document.createTextNode(ee));else if(ee)for(var $e=0;$e<ee.length;++$e)Re.appendChild(ee[$e]);return Re}function Ie(E,ee,Ee,we){var Re=Le(E,ee,Ee,we);return Re.setAttribute("role","presentation"),Re}var Be;document.createRange?Be=function(E,ee,Ee,we){var Re=document.createRange();return Re.setEnd(we||E,Ee),Re.setStart(E,ee),Re}:Be=function(E,ee,Ee){var we=document.body.createTextRange();try{we.moveToElementText(E.parentNode)}catch(Re){return we}return we.collapse(!0),we.moveEnd("character",Ee),we.moveStart("character",ee),we};function Ue(E,ee){if(ee.nodeType==3&&(ee=ee.parentNode),E.contains)return E.contains(ee);do if(ee.nodeType==11&&(ee=ee.host),ee==E)return!0;while(ee=ee.parentNode)}function _e(){var E;try{E=document.activeElement}catch(ee){E=document.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function We(E,ee){var Ee=E.className;be(ee).test(Ee)||(E.className+=(Ee?" ":"")+ee)}function Ze(E,ee){for(var Ee=E.split(" "),we=0;we<Ee.length;we++)Ee[we]&&!be(Ee[we]).test(ee)&&(ee+=" "+Ee[we]);return ee}var et=function(E){E.select()};ce?et=function(E){E.selectionStart=0,E.selectionEnd=E.value.length}:ve&&(et=function(E){try{E.select()}catch(ee){}});function it(E){var ee=Array.prototype.slice.call(arguments,1);return function(){return E.apply(null,ee)}}function pt(E,ee,Ee){ee||(ee={});for(var we in E)E.hasOwnProperty(we)&&(Ee!==!1||!ee.hasOwnProperty(we))&&(ee[we]=E[we]);return ee}function Ge(E,ee,Ee,we,Re){ee==null&&(ee=E.search(/[^\s\u00a0]/),ee==-1&&(ee=E.length));for(var $e=we||0,ft=Re||0;;){var wt=E.indexOf(" ",$e);if(wt<0||wt>=ee)return ft+(ee-$e);ft+=wt-$e,ft+=Ee-ft%Ee,$e=wt+1}}var Xe=function(){this.id=null,this.f=null,this.time=0,this.handler=it(this.onTimeout,this)};Xe.prototype.onTimeout=function(E){E.id=0,E.time<=+new Date?E.f():setTimeout(E.handler,E.time-+new Date)},Xe.prototype.set=function(E,ee){this.f=ee;var Ee=+new Date+E;(!this.id||Ee<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,E),this.time=Ee)};function lt(E,ee){for(var Ee=0;Ee<E.length;++Ee)if(E[Ee]==ee)return Ee;return-1}var dt=50,st={toString:function(){return"CodeMirror.Pass"}},nt={scroll:!1},rt={origin:"*mouse"},at={origin:"+move"};function gt(E,ee,Ee){for(var we=0,Re=0;;){var $e=E.indexOf(" ",we);$e==-1&&($e=E.length);var ft=$e-we;if($e==E.length||Re+ft>=ee)return we+Math.min(ft,ee-Re);if(Re+=$e-we,Re+=Ee-Re%Ee,we=$e+1,Re>=ee)return we}}var vt=[""];function Et(E){for(;vt.length<=E;)vt.push(At(vt)+" ");return vt[E]}function At(E){return E[E.length-1]}function ut(E,ee){for(var Ee=[],we=0;we<E.length;we++)Ee[we]=ee(E[we],we);return Ee}function Ye(E,ee,Ee){for(var we=0,Re=Ee(ee);we<E.length&&Ee(E[we])<=Re;)we++;E.splice(we,0,ee)}function Ve(){}function de(E,ee){var Ee;return Object.create?Ee=Object.create(E):(Ve.prototype=E,Ee=new Ve),ee&&pt(ee,Ee),Ee}var Ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function He(E){return/\w/.test(E)||E>"\x80"&&(E.toUpperCase()!=E.toLowerCase()||Ce.test(E))}function je(E,ee){return ee?ee.source.indexOf("\\w")>-1&&He(E)?!0:ee.test(E):He(E)}function Ae(E){for(var ee in E)if(E.hasOwnProperty(ee)&&E[ee])return!1;return!0}var Ne=/[\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 ze(E){return E.charCodeAt(0)>=768&&Ne.test(E)}function Qe(E,ee,Ee){for(;(Ee<0?ee>0:ee<E.length)&&ze(E.charAt(ee));)ee+=Ee;return ee}function ot(E,ee,Ee){for(var we=ee>Ee?-1:1;;){if(ee==Ee)return ee;var Re=(ee+Ee)/2,$e=we<0?Math.ceil(Re):Math.floor(Re);if($e==ee)return E($e)?ee:Ee;E($e)?Ee=$e:ee=$e+we}}function mt(E,ee,Ee,we){if(!E)return we(ee,Ee,"ltr",0);for(var Re=!1,$e=0;$e<E.length;++$e){var ft=E[$e];(ft.from<Ee&&ft.to>ee||ee==Ee&&ft.to==ee)&&(we(Math.max(ft.from,ee),Math.min(ft.to,Ee),ft.level==1?"rtl":"ltr",$e),Re=!0)}Re||we(ee,Ee,"ltr")}var Ot=null;function xt(E,ee,Ee){var we;Ot=null;for(var Re=0;Re<E.length;++Re){var $e=E[Re];if($e.from<ee&&$e.to>ee)return Re;$e.to==ee&&($e.from!=$e.to&&Ee=="before"?we=Re:Ot=Re),$e.from==ee&&($e.from!=$e.to&&Ee!="before"?we=Re:Ot=Re)}return we!=null?we:Ot}var Ut=function(){var E="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ee="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function Ee(Rt){return Rt<=247?E.charAt(Rt):1424<=Rt&&Rt<=1524?"R":1536<=Rt&&Rt<=1785?ee.charAt(Rt-1536):1774<=Rt&&Rt<=2220?"r":8192<=Rt&&Rt<=8203?"w":Rt==8204?"b":"L"}var we=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Re=/[stwN]/,$e=/[LRr]/,ft=/[Lb1n]/,wt=/[1n]/;function Mt(Rt,fn,An){this.level=Rt,this.from=fn,this.to=An}return function(Rt,fn){var An=fn=="ltr"?"L":"R";if(Rt.length==0||fn=="ltr"&&!we.test(Rt))return!1;for(var cr=Rt.length,er=[],Fr=0;Fr<cr;++Fr)er.push(Ee(Rt.charCodeAt(Fr)));for(var ti=0,Si=An;ti<cr;++ti){var _i=er[ti];_i=="m"?er[ti]=Si:Si=_i}for(var Qi=0,Pi=An;Qi<cr;++Qi){var sa=er[Qi];sa=="1"&&Pi=="r"?er[Qi]="n":$e.test(sa)&&(Pi=sa,sa=="r"&&(er[Qi]="R"))}for(var Wa=1,Ga=er[0];Wa<cr-1;++Wa){var Ao=er[Wa];Ao=="+"&&Ga=="1"&&er[Wa+1]=="1"?er[Wa]="1":Ao==","&&Ga==er[Wa+1]&&(Ga=="1"||Ga=="n")&&(er[Wa]=Ga),Ga=Ao}for(var fs=0;fs<cr;++fs){var rl=er[fs];if(rl==",")er[fs]="N";else if(rl=="%"){var Os=void 0;for(Os=fs+1;Os<cr&&er[Os]=="%";++Os);for(var Sl=fs&&er[fs-1]=="!"||Os<cr&&er[Os]=="1"?"1":"N",Cl=fs;Cl<Os;++Cl)er[Cl]=Sl;fs=Os-1}}for(var Ys=0,El=An;Ys<cr;++Ys){var co=er[Ys];El=="L"&&co=="1"?er[Ys]="L":$e.test(co)&&(El=co)}for(var Ns=0;Ns<cr;++Ns)if(Re.test(er[Ns])){var Ds=void 0;for(Ds=Ns+1;Ds<cr&&Re.test(er[Ds]);++Ds);for(var Rs=(Ns?er[Ns-1]:An)=="L",Ws=(Ds<cr?er[Ds]:An)=="L",Uc=Rs==Ws?Rs?"L":"R":An,kl=Ns;kl<Ds;++kl)er[kl]=Uc;Ns=Ds-1}for(var cl=[],Uo,$s=0;$s<cr;)if(ft.test(er[$s])){var Yu=$s;for(++$s;$s<cr&&ft.test(er[$s]);++$s);cl.push(new Mt(0,Yu,$s))}else{var pc=$s,kc=cl.length,ec=fn=="rtl"?1:0;for(++$s;$s<cr&&er[$s]!="L";++$s);for(var Qs=pc;Qs<$s;)if(wt.test(er[Qs])){pc<Qs&&(cl.splice(kc,0,new Mt(1,pc,Qs)),kc+=ec);var Vc=Qs;for(++Qs;Qs<$s&&wt.test(er[Qs]);++Qs);cl.splice(kc,0,new Mt(2,Vc,Qs)),kc+=ec,pc=Qs}else++Qs;pc<$s&&cl.splice(kc,0,new Mt(1,pc,$s))}return fn=="ltr"&&(cl[0].level==1&&(Uo=Rt.match(/^\s+/))&&(cl[0].from=Uo[0].length,cl.unshift(new Mt(0,0,Uo[0].length))),At(cl).level==1&&(Uo=Rt.match(/\s+$/))&&(At(cl).to-=Uo[0].length,cl.push(new Mt(0,cr-Uo[0].length,cr)))),fn=="rtl"?cl.reverse():cl}}();function xn(E,ee){var Ee=E.order;return Ee==null&&(Ee=E.order=Ut(E.text,ee)),Ee}var Ft=[],Qt=function(E,ee,Ee){if(E.addEventListener)E.addEventListener(ee,Ee,!1);else if(E.attachEvent)E.attachEvent("on"+ee,Ee);else{var we=E._handlers||(E._handlers={});we[ee]=(we[ee]||Ft).concat(Ee)}};function Zt(E,ee){return E._handlers&&E._handlers[ee]||Ft}function bn(E,ee,Ee){if(E.removeEventListener)E.removeEventListener(ee,Ee,!1);else if(E.detachEvent)E.detachEvent("on"+ee,Ee);else{var we=E._handlers,Re=we&&we[ee];if(Re){var $e=lt(Re,Ee);$e>-1&&(we[ee]=Re.slice(0,$e).concat(Re.slice($e+1)))}}}function Pt(E,ee){var Ee=Zt(E,ee);if(Ee.length)for(var we=Array.prototype.slice.call(arguments,2),Re=0;Re<Ee.length;++Re)Ee[Re].apply(null,we)}function zt(E,ee,Ee){return typeof ee=="string"&&(ee={type:ee,preventDefault:function(){this.defaultPrevented=!0}}),Pt(E,Ee||ee.type,E,ee),Or(ee)||ee.codemirrorIgnore}function sn(E){var ee=E._handlers&&E._handlers.cursorActivity;if(ee)for(var Ee=E.curOp.cursorActivityHandlers||(E.curOp.cursorActivityHandlers=[]),we=0;we<ee.length;++we)lt(Ee,ee[we])==-1&&Ee.push(ee[we])}function yn(E,ee){return Zt(E,ee).length>0}function kn(E){E.prototype.on=function(ee,Ee){Qt(this,ee,Ee)},E.prototype.off=function(ee,Ee){bn(this,ee,Ee)}}function Gn(E){E.preventDefault?E.preventDefault():E.returnValue=!1}function dr(E){E.stopPropagation?E.stopPropagation():E.cancelBubble=!0}function Or(E){return E.defaultPrevented!=null?E.defaultPrevented:E.returnValue==!1}function zr(E){Gn(E),dr(E)}function Hr(E){return E.target||E.srcElement}function Dr(E){var ee=E.which;return ee==null&&(E.button&1?ee=1:E.button&2?ee=3:E.button&4&&(ee=2)),le&&E.ctrlKey&&ee==1&&(ee=3),ee}var Kr=function(){if(ve&&ie<9)return!1;var E=Le("div");return"draggable"in E||"dragDrop"in E}(),Ai;function Di(E){if(Ai==null){var ee=Le("span","\u200B");De(E,Le("span",[ee,document.createTextNode("x")])),E.firstChild.offsetHeight!=0&&(Ai=ee.offsetWidth<=1&&ee.offsetHeight>2&&!(ve&&ie<8))}var Ee=Ai?Le("span","\u200B"):Le("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return Ee.setAttribute("cm-text",""),Ee}var Zi;function di(E){if(Zi!=null)return Zi;var ee=De(E,document.createTextNode("A\u062EA")),Ee=Be(ee,0,1).getBoundingClientRect(),we=Be(ee,1,2).getBoundingClientRect();return ke(E),!Ee||Ee.left==Ee.right?!1:Zi=we.right-Ee.right<3}var rn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(E){for(var ee=0,Ee=[],we=E.length;ee<=we;){var Re=E.indexOf(`
|
|
|
`,ee);Re==-1&&(Re=E.length);var $e=E.slice(ee,E.charAt(Re-1)=="\r"?Re-1:Re),ft=$e.indexOf("\r");ft!=-1?(Ee.push($e.slice(0,ft)),ee+=ft+1):(Ee.push($e),ee=Re+1)}return Ee}:function(E){return E.split(/\r\n?|\n/)},zn=window.getSelection?function(E){try{return E.selectionStart!=E.selectionEnd}catch(ee){return!1}}:function(E){var ee;try{ee=E.ownerDocument.selection.createRange()}catch(Ee){}return!ee||ee.parentElement()!=E?!1:ee.compareEndPoints("StartToEnd",ee)!=0},fr=function(){var E=Le("div");return"oncopy"in E?!0:(E.setAttribute("oncopy","return;"),typeof E.oncopy=="function")}(),lr=null;function Tr(E){if(lr!=null)return lr;var ee=De(E,Le("span","x")),Ee=ee.getBoundingClientRect(),we=Be(ee,0,1).getBoundingClientRect();return lr=Math.abs(Ee.left-we.left)>1}var Pr={},Gr={};function Er(E,ee){arguments.length>2&&(ee.dependencies=Array.prototype.slice.call(arguments,2)),Pr[E]=ee}function Wt(E,ee){Gr[E]=ee}function $t(E){if(typeof E=="string"&&Gr.hasOwnProperty(E))E=Gr[E];else if(E&&typeof E.name=="string"&&Gr.hasOwnProperty(E.name)){var ee=Gr[E.name];typeof ee=="string"&&(ee={name:ee}),E=de(ee,E),E.name=ee.name}else{if(typeof E=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(E))return $t("application/xml");if(typeof E=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(E))return $t("application/json")}return typeof E=="string"?{name:E}:E||{name:"null"}}function cn(E,ee){ee=$t(ee);var Ee=Pr[ee.name];if(!Ee)return cn(E,"text/plain");var we=Ee(E,ee);if(Rn.hasOwnProperty(ee.name)){var Re=Rn[ee.name];for(var $e in Re)Re.hasOwnProperty($e)&&(we.hasOwnProperty($e)&&(we["_"+$e]=we[$e]),we[$e]=Re[$e])}if(we.name=ee.name,ee.helperType&&(we.helperType=ee.helperType),ee.modeProps)for(var ft in ee.modeProps)we[ft]=ee.modeProps[ft];return we}var Rn={};function jt(E,ee){var Ee=Rn.hasOwnProperty(E)?Rn[E]:Rn[E]={};pt(ee,Ee)}function an(E,ee){if(ee===!0)return ee;if(E.copyState)return E.copyState(ee);var Ee={};for(var we in ee){var Re=ee[we];Re instanceof Array&&(Re=Re.concat([])),Ee[we]=Re}return Ee}function Tn(E,ee){for(var Ee;E.innerMode&&(Ee=E.innerMode(ee),!(!Ee||Ee.mode==E));)ee=Ee.state,E=Ee.mode;return Ee||{mode:E,state:ee}}function vn(E,ee,Ee){return E.startState?E.startState(ee,Ee):!0}var Bn=function(E,ee,Ee){this.pos=this.start=0,this.string=E,this.tabSize=ee||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Ee};Bn.prototype.eol=function(){return this.pos>=this.string.length},Bn.prototype.sol=function(){return this.pos==this.lineStart},Bn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bn.prototype.eat=function(E){var ee=this.string.charAt(this.pos),Ee;if(typeof E=="string"?Ee=ee==E:Ee=ee&&(E.test?E.test(ee):E(ee)),Ee)return++this.pos,ee},Bn.prototype.eatWhile=function(E){for(var ee=this.pos;this.eat(E););return this.pos>ee},Bn.prototype.eatSpace=function(){for(var E=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>E},Bn.prototype.skipToEnd=function(){this.pos=this.string.length},Bn.prototype.skipTo=function(E){var ee=this.string.indexOf(E,this.pos);if(ee>-1)return this.pos=ee,!0},Bn.prototype.backUp=function(E){this.pos-=E},Bn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},Bn.prototype.indentation=function(){return Ge(this.string,null,this.tabSize)-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},Bn.prototype.match=function(E,ee,Ee){if(typeof E=="string"){var we=function(ft){return Ee?ft.toLowerCase():ft},Re=this.string.substr(this.pos,E.length);if(we(Re)==we(E))return ee!==!1&&(this.pos+=E.length),!0}else{var $e=this.string.slice(this.pos).match(E);return $e&&$e.index>0?null:($e&&ee!==!1&&(this.pos+=$e[0].length),$e)}},Bn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bn.prototype.hideFirstChars=function(E,ee){this.lineStart+=E;try{return ee()}finally{this.lineStart-=E}},Bn.prototype.lookAhead=function(E){var ee=this.lineOracle;return ee&&ee.lookAhead(E)},Bn.prototype.baseToken=function(){var E=this.lineOracle;return E&&E.baseToken(this.pos)};function _n(E,ee){if(ee-=E.first,ee<0||ee>=E.size)throw new Error("There is no line "+(ee+E.first)+" in the document.");for(var Ee=E;!Ee.lines;)for(var we=0;;++we){var Re=Ee.children[we],$e=Re.chunkSize();if(ee<$e){Ee=Re;break}ee-=$e}return Ee.lines[ee]}function hr(E,ee,Ee){var we=[],Re=ee.line;return E.iter(ee.line,Ee.line+1,function($e){var ft=$e.text;Re==Ee.line&&(ft=ft.slice(0,Ee.ch)),Re==ee.line&&(ft=ft.slice(ee.ch)),we.push(ft),++Re}),we}function ei(E,ee,Ee){var we=[];return E.iter(ee,Ee,function(Re){we.push(Re.text)}),we}function Ir(E,ee){var Ee=ee-E.height;if(Ee)for(var we=E;we;we=we.parent)we.height+=Ee}function Lr(E){if(E.parent==null)return null;for(var ee=E.parent,Ee=lt(ee.lines,E),we=ee.parent;we;ee=we,we=we.parent)for(var Re=0;we.children[Re]!=ee;++Re)Ee+=we.children[Re].chunkSize();return Ee+ee.first}function Wr(E,ee){var Ee=E.first;e:do{for(var we=0;we<E.children.length;++we){var Re=E.children[we],$e=Re.height;if(ee<$e){E=Re;continue e}ee-=$e,Ee+=Re.chunkSize()}return Ee}while(!E.lines);for(var ft=0;ft<E.lines.length;++ft){var wt=E.lines[ft],Mt=wt.height;if(ee<Mt)break;ee-=Mt}return Ee+ft}function Vr(E,ee){return ee>=E.first&&ee<E.first+E.size}function nn(E,ee){return String(E.lineNumberFormatter(ee+E.firstLineNumber))}function Jt(E,ee,Ee){if(Ee===void 0&&(Ee=null),!(this instanceof Jt))return new Jt(E,ee,Ee);this.line=E,this.ch=ee,this.sticky=Ee}function pn(E,ee){return E.line-ee.line||E.ch-ee.ch}function tr(E,ee){return E.sticky==ee.sticky&&pn(E,ee)==0}function Ar(E){return Jt(E.line,E.ch)}function jn(E,ee){return pn(E,ee)<0?ee:E}function Jn(E,ee){return pn(E,ee)<0?E:ee}function ir(E,ee){return Math.max(E.first,Math.min(ee,E.first+E.size-1))}function kr(E,ee){if(ee.line<E.first)return Jt(E.first,0);var Ee=E.first+E.size-1;return ee.line>Ee?Jt(Ee,_n(E,Ee).text.length):Ur(ee,_n(E,ee.line).text.length)}function Ur(E,ee){var Ee=E.ch;return Ee==null||Ee>ee?Jt(E.line,ee):Ee<0?Jt(E.line,0):E}function Wn(E,ee){for(var Ee=[],we=0;we<ee.length;we++)Ee[we]=kr(E,ee[we]);return Ee}var Oi=function(E,ee){this.state=E,this.lookAhead=ee},bi=function(E,ee,Ee,we){this.state=ee,this.doc=E,this.line=Ee,this.maxLookAhead=we||0,this.baseTokens=null,this.baseTokenPos=1};bi.prototype.lookAhead=function(E){var ee=this.doc.getLine(this.line+E);return ee!=null&&E>this.maxLookAhead&&(this.maxLookAhead=E),ee},bi.prototype.baseToken=function(E){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=E;)this.baseTokenPos+=2;var ee=this.baseTokens[this.baseTokenPos+1];return{type:ee&&ee.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-E}},bi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bi.fromSaved=function(E,ee,Ee){return ee instanceof Oi?new bi(E,an(E.mode,ee.state),Ee,ee.lookAhead):new bi(E,an(E.mode,ee),Ee)},bi.prototype.save=function(E){var ee=E!==!1?an(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Oi(ee,this.maxLookAhead):ee};function xa(E,ee,Ee,we){var Re=[E.state.modeGen],$e={};la(E,ee.text,E.doc.mode,Ee,function(Rt,fn){return Re.push(Rt,fn)},$e,we);for(var ft=Ee.state,wt=function(Rt){Ee.baseTokens=Re;var fn=E.state.overlays[Rt],An=1,cr=0;Ee.state=!0,la(E,ee.text,fn.mode,Ee,function(er,Fr){for(var ti=An;cr<er;){var Si=Re[An];Si>er&&Re.splice(An,1,er,Re[An+1],Si),An+=2,cr=Math.min(er,Si)}if(Fr)if(fn.opaque)Re.splice(ti,An-ti,er,"overlay "+Fr),An=ti+2;else for(;ti<An;ti+=2){var _i=Re[ti+1];Re[ti+1]=(_i?_i+" ":"")+"overlay "+Fr}},$e),Ee.state=ft,Ee.baseTokens=null,Ee.baseTokenPos=1},Mt=0;Mt<E.state.overlays.length;++Mt)wt(Mt);return{styles:Re,classes:$e.bgClass||$e.textClass?$e:null}}function ha(E,ee,Ee){if(!ee.styles||ee.styles[0]!=E.state.modeGen){var we=ia(E,Lr(ee)),Re=ee.text.length>E.options.maxHighlightLength&&an(E.doc.mode,we.state),$e=xa(E,ee,we);Re&&(we.state=Re),ee.stateAfter=we.save(!Re),ee.styles=$e.styles,$e.classes?ee.styleClasses=$e.classes:ee.styleClasses&&(ee.styleClasses=null),Ee===E.doc.highlightFrontier&&(E.doc.modeFrontier=Math.max(E.doc.modeFrontier,++E.doc.highlightFrontier))}return ee.styles}function ia(E,ee,Ee){var we=E.doc,Re=E.display;if(!we.mode.startState)return new bi(we,!0,ee);var $e=Oa(E,ee,Ee),ft=$e>we.first&&_n(we,$e-1).stateAfter,wt=ft?bi.fromSaved(we,ft,$e):new bi(we,vn(we.mode),$e);return we.iter($e,ee,function(Mt){Ha(E,Mt.text,wt);var Rt=wt.line;Mt.stateAfter=Rt==ee-1||Rt%5==0||Rt>=Re.viewFrom&&Rt<Re.viewTo?wt.save():null,wt.nextLine()}),Ee&&(we.modeFrontier=wt.line),wt}function Ha(E,ee,Ee,we){var Re=E.doc.mode,$e=new Bn(ee,E.options.tabSize,Ee);for($e.start=$e.pos=we||0,ee==""&&Ji(Re,Ee.state);!$e.eol();)Wi(Re,$e,Ee.state),$e.start=$e.pos}function Ji(E,ee){if(E.blankLine)return E.blankLine(ee);if(E.innerMode){var Ee=Tn(E,ee);if(Ee.mode.blankLine)return Ee.mode.blankLine(Ee.state)}}function Wi(E,ee,Ee,we){for(var Re=0;Re<10;Re++){we&&(we[0]=Tn(E,Ee).mode);var $e=E.token(ee,Ee);if(ee.pos>ee.start)return $e}throw new Error("Mode "+E.name+" failed to advance stream.")}var wa=function(E,ee,Ee){this.start=E.start,this.end=E.pos,this.string=E.current(),this.type=ee||null,this.state=Ee};function Fa(E,ee,Ee,we){var Re=E.doc,$e=Re.mode,ft;ee=kr(Re,ee);var wt=_n(Re,ee.line),Mt=ia(E,ee.line,Ee),Rt=new Bn(wt.text,E.options.tabSize,Mt),fn;for(we&&(fn=[]);(we||Rt.pos<ee.ch)&&!Rt.eol();)Rt.start=Rt.pos,ft=Wi($e,Rt,Mt.state),we&&fn.push(new wa(Rt,ft,an(Re.mode,Mt.state)));return we?fn:new wa(Rt,ft,Mt.state)}function Ii(E,ee){if(E)for(;;){var Ee=E.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!Ee)break;E=E.slice(0,Ee.index)+E.slice(Ee.index+Ee[0].length);var we=Ee[1]?"bgClass":"textClass";ee[we]==null?ee[we]=Ee[2]:new RegExp("(?:^|\\s)"+Ee[2]+"(?:$|\\s)").test(ee[we])||(ee[we]+=" "+Ee[2])}return E}function la(E,ee,Ee,we,Re,$e,ft){var wt=Ee.flattenSpans;wt==null&&(wt=E.options.flattenSpans);var Mt=0,Rt=null,fn=new Bn(ee,E.options.tabSize,we),An,cr=E.options.addModeClass&&[null];for(ee==""&&Ii(Ji(Ee,we.state),$e);!fn.eol();){if(fn.pos>E.options.maxHighlightLength?(wt=!1,ft&&Ha(E,ee,we,fn.pos),fn.pos=ee.length,An=null):An=Ii(Wi(Ee,fn,we.state,cr),$e),cr){var er=cr[0].name;er&&(An="m-"+(An?er+" "+An:er))}if(!wt||Rt!=An){for(;Mt<fn.start;)Mt=Math.min(fn.start,Mt+5e3),Re(Mt,Rt);Rt=An}fn.start=fn.pos}for(;Mt<fn.pos;){var Fr=Math.min(fn.pos,Mt+5e3);Re(Fr,Rt),Mt=Fr}}function Oa(E,ee,Ee){for(var we,Re,$e=E.doc,ft=Ee?-1:ee-(E.doc.mode.innerMode?1e3:100),wt=ee;wt>ft;--wt){if(wt<=$e.first)return $e.first;var Mt=_n($e,wt-1),Rt=Mt.stateAfter;if(Rt&&(!Ee||wt+(Rt instanceof Oi?Rt.lookAhead:0)<=$e.modeFrontier))return wt;var fn=Ge(Mt.text,null,E.options.tabSize);(Re==null||we>fn)&&(Re=wt-1,we=fn)}return Re}function ao(E,ee){if(E.modeFrontier=Math.min(E.modeFrontier,ee),!(E.highlightFrontier<ee-10)){for(var Ee=E.first,we=ee-1;we>Ee;we--){var Re=_n(E,we).stateAfter;if(Re&&(!(Re instanceof Oi)||we+Re.lookAhead<ee)){Ee=we+1;break}}E.highlightFrontier=Math.min(E.highlightFrontier,Ee)}}var Qa=!1,Ni=!1;function mn(){Qa=!0}function ln(){Ni=!0}function Fn(E,ee,Ee){this.marker=E,this.from=ee,this.to=Ee}function or(E,ee){if(E)for(var Ee=0;Ee<E.length;++Ee){var we=E[Ee];if(we.marker==ee)return we}}function br(E,ee){for(var Ee,we=0;we<E.length;++we)E[we]!=ee&&(Ee||(Ee=[])).push(E[we]);return Ee}function Xr(E,ee){E.markedSpans=E.markedSpans?E.markedSpans.concat([ee]):[ee],ee.marker.attachLine(E)}function oi(E,ee,Ee){var we;if(E)for(var Re=0;Re<E.length;++Re){var $e=E[Re],ft=$e.marker,wt=$e.from==null||(ft.inclusiveLeft?$e.from<=ee:$e.from<ee);if(wt||$e.from==ee&&ft.type=="bookmark"&&(!Ee||!$e.marker.insertLeft)){var Mt=$e.to==null||(ft.inclusiveRight?$e.to>=ee:$e.to>ee);(we||(we=[])).push(new Fn(ft,$e.from,Mt?null:$e.to))}}return we}function pi(E,ee,Ee){var we;if(E)for(var Re=0;Re<E.length;++Re){var $e=E[Re],ft=$e.marker,wt=$e.to==null||(ft.inclusiveRight?$e.to>=ee:$e.to>ee);if(wt||$e.from==ee&&ft.type=="bookmark"&&(!Ee||$e.marker.insertLeft)){var Mt=$e.from==null||(ft.inclusiveLeft?$e.from<=ee:$e.from<ee);(we||(we=[])).push(new Fn(ft,Mt?null:$e.from-ee,$e.to==null?null:$e.to-ee))}}return we}function Ti(E,ee){if(ee.full)return null;var Ee=Vr(E,ee.from.line)&&_n(E,ee.from.line).markedSpans,we=Vr(E,ee.to.line)&&_n(E,ee.to.line).markedSpans;if(!Ee&&!we)return null;var Re=ee.from.ch,$e=ee.to.ch,ft=pn(ee.from,ee.to)==0,wt=oi(Ee,Re,ft),Mt=pi(we,$e,ft),Rt=ee.text.length==1,fn=At(ee.text).length+(Rt?Re:0);if(wt)for(var An=0;An<wt.length;++An){var cr=wt[An];if(cr.to==null){var er=or(Mt,cr.marker);er?Rt&&(cr.to=er.to==null?null:er.to+fn):cr.to=Re}}if(Mt)for(var Fr=0;Fr<Mt.length;++Fr){var ti=Mt[Fr];if(ti.to!=null&&(ti.to+=fn),ti.from==null){var Si=or(wt,ti.marker);Si||(ti.from=fn,Rt&&(wt||(wt=[])).push(ti))}else ti.from+=fn,Rt&&(wt||(wt=[])).push(ti)}wt&&(wt=vi(wt)),Mt&&Mt!=wt&&(Mt=vi(Mt));var _i=[wt];if(!Rt){var Qi=ee.text.length-2,Pi;if(Qi>0&&wt)for(var sa=0;sa<wt.length;++sa)wt[sa].to==null&&(Pi||(Pi=[])).push(new Fn(wt[sa].marker,null,null));for(var Wa=0;Wa<Qi;++Wa)_i.push(Pi);_i.push(Mt)}return _i}function vi(E){for(var ee=0;ee<E.length;++ee){var Ee=E[ee];Ee.from!=null&&Ee.from==Ee.to&&Ee.marker.clearWhenEmpty!==!1&&E.splice(ee--,1)}return E.length?E:null}function Ri(E,ee,Ee){var we=null;if(E.iter(ee.line,Ee.line+1,function(er){if(er.markedSpans)for(var Fr=0;Fr<er.markedSpans.length;++Fr){var ti=er.markedSpans[Fr].marker;ti.readOnly&&(!we||lt(we,ti)==-1)&&(we||(we=[])).push(ti)}}),!we)return null;for(var Re=[{from:ee,to:Ee}],$e=0;$e<we.length;++$e)for(var ft=we[$e],wt=ft.find(0),Mt=0;Mt<Re.length;++Mt){var Rt=Re[Mt];if(!(pn(Rt.to,wt.from)<0||pn(Rt.from,wt.to)>0)){var fn=[Mt,1],An=pn(Rt.from,wt.from),cr=pn(Rt.to,wt.to);(An<0||!ft.inclusiveLeft&&!An)&&fn.push({from:Rt.from,to:wt.from}),(cr>0||!ft.inclusiveRight&&!cr)&&fn.push({from:wt.to,to:Rt.to}),Re.splice.apply(Re,fn),Mt+=fn.length-3}}return Re}function $i(E){var ee=E.markedSpans;if(ee){for(var Ee=0;Ee<ee.length;++Ee)ee[Ee].marker.detachLine(E);E.markedSpans=null}}function ni(E,ee){if(ee){for(var Ee=0;Ee<ee.length;++Ee)ee[Ee].marker.attachLine(E);E.markedSpans=ee}}function Sn(E){return E.inclusiveLeft?-1:0}function Pn(E){return E.inclusiveRight?1:0}function Yn(E,ee){var Ee=E.lines.length-ee.lines.length;if(Ee!=0)return Ee;var we=E.find(),Re=ee.find(),$e=pn(we.from,Re.from)||Sn(E)-Sn(ee);if($e)return-$e;var ft=pn(we.to,Re.to)||Pn(E)-Pn(ee);return ft||ee.id-E.id}function qe(E,ee){var Ee=Ni&&E.markedSpans,we;if(Ee)for(var Re=void 0,$e=0;$e<Ee.length;++$e)Re=Ee[$e],Re.marker.collapsed&&(ee?Re.from:Re.to)==null&&(!we||Yn(we,Re.marker)<0)&&(we=Re.marker);return we}function yt(E){return qe(E,!0)}function St(E){return qe(E,!1)}function Dt(E,ee){var Ee=Ni&&E.markedSpans,we;if(Ee)for(var Re=0;Re<Ee.length;++Re){var $e=Ee[Re];$e.marker.collapsed&&($e.from==null||$e.from<ee)&&($e.to==null||$e.to>ee)&&(!we||Yn(we,$e.marker)<0)&&(we=$e.marker)}return we}function Tt(E,ee,Ee,we,Re){var $e=_n(E,ee),ft=Ni&&$e.markedSpans;if(ft)for(var wt=0;wt<ft.length;++wt){var Mt=ft[wt];if(Mt.marker.collapsed){var Rt=Mt.marker.find(0),fn=pn(Rt.from,Ee)||Sn(Mt.marker)-Sn(Re),An=pn(Rt.to,we)||Pn(Mt.marker)-Pn(Re);if(!(fn>=0&&An<=0||fn<=0&&An>=0)&&(fn<=0&&(Mt.marker.inclusiveRight&&Re.inclusiveLeft?pn(Rt.to,Ee)>=0:pn(Rt.to,Ee)>0)||fn>=0&&(Mt.marker.inclusiveRight&&Re.inclusiveLeft?pn(Rt.from,we)<=0:pn(Rt.from,we)<0)))return!0}}}function Nt(E){for(var ee;ee=yt(E);)E=ee.find(-1,!0).line;return E}function _t(E){for(var ee;ee=St(E);)E=ee.find(1,!0).line;return E}function on(E){for(var ee,Ee;ee=St(E);)E=ee.find(1,!0).line,(Ee||(Ee=[])).push(E);return Ee}function gn(E,ee){var Ee=_n(E,ee),we=Nt(Ee);return Ee==we?ee:Lr(we)}function Vn(E,ee){if(ee>E.lastLine())return ee;var Ee=_n(E,ee),we;if(!qn(E,Ee))return ee;for(;we=St(Ee);)Ee=we.find(1,!0).line;return Lr(Ee)+1}function qn(E,ee){var Ee=Ni&&ee.markedSpans;if(Ee){for(var we=void 0,Re=0;Re<Ee.length;++Re)if(we=Ee[Re],!!we.marker.collapsed){if(we.from==null)return!0;if(!we.marker.widgetNode&&we.from==0&&we.marker.inclusiveLeft&&Xn(E,ee,we))return!0}}}function Xn(E,ee,Ee){if(Ee.to==null){var we=Ee.marker.find(1,!0);return Xn(E,we.line,or(we.line.markedSpans,Ee.marker))}if(Ee.marker.inclusiveRight&&Ee.to==ee.text.length)return!0;for(var Re=void 0,$e=0;$e<ee.markedSpans.length;++$e)if(Re=ee.markedSpans[$e],Re.marker.collapsed&&!Re.marker.widgetNode&&Re.from==Ee.to&&(Re.to==null||Re.to!=Ee.from)&&(Re.marker.inclusiveLeft||Ee.marker.inclusiveRight)&&Xn(E,ee,Re))return!0}function Dn(E){E=Nt(E);for(var ee=0,Ee=E.parent,we=0;we<Ee.lines.length;++we){var Re=Ee.lines[we];if(Re==E)break;ee+=Re.height}for(var $e=Ee.parent;$e;Ee=$e,$e=Ee.parent)for(var ft=0;ft<$e.children.length;++ft){var wt=$e.children[ft];if(wt==Ee)break;ee+=wt.height}return ee}function In(E){if(E.height==0)return 0;for(var ee=E.text.length,Ee,we=E;Ee=yt(we);){var Re=Ee.find(0,!0);we=Re.from.line,ee+=Re.from.ch-Re.to.ch}for(we=E;Ee=St(we);){var $e=Ee.find(0,!0);ee-=we.text.length-$e.from.ch,we=$e.to.line,ee+=we.text.length-$e.to.ch}return ee}function Cn(E){var ee=E.display,Ee=E.doc;ee.maxLine=_n(Ee,Ee.first),ee.maxLineLength=In(ee.maxLine),ee.maxLineChanged=!0,Ee.iter(function(we){var Re=In(we);Re>ee.maxLineLength&&(ee.maxLineLength=Re,ee.maxLine=we)})}var Zn=function(E,ee,Ee){this.text=E,ni(this,ee),this.height=Ee?Ee(this):1};Zn.prototype.lineNo=function(){return Lr(this)},kn(Zn);function pr(E,ee,Ee,we){E.text=ee,E.stateAfter&&(E.stateAfter=null),E.styles&&(E.styles=null),E.order!=null&&(E.order=null),$i(E),ni(E,Ee);var Re=we?we(E):1;Re!=E.height&&Ir(E,Re)}function $n(E){E.parent=null,$i(E)}var ar={},ur={};function mr(E,ee){if(!E||/^\s*$/.test(E))return null;var Ee=ee.addModeClass?ur:ar;return Ee[E]||(Ee[E]=E.replace(/\S+/g,"cm-$&"))}function wr(E,ee){var Ee=Ie("span",null,null,te?"padding-right: .1px":null),we={pre:Ie("pre",[Ee],"CodeMirror-line"),content:Ee,col:0,pos:0,cm:E,trailingSpace:!1,splitSpaces:E.getOption("lineWrapping")};ee.measure={};for(var Re=0;Re<=(ee.rest?ee.rest.length:0);Re++){var $e=Re?ee.rest[Re-1]:ee.line,ft=void 0;we.pos=0,we.addToken=It,di(E.display.measure)&&(ft=xn($e,E.doc.direction))&&(we.addToken=Yt(we.addToken,ft)),we.map=[];var wt=ee!=E.display.externalMeasured&&Lr($e);Hn($e,we,ha(E,$e,wt)),$e.styleClasses&&($e.styleClasses.bgClass&&(we.bgClass=Ze($e.styleClasses.bgClass,we.bgClass||"")),$e.styleClasses.textClass&&(we.textClass=Ze($e.styleClasses.textClass,we.textClass||""))),we.map.length==0&&we.map.push(0,0,we.content.appendChild(Di(E.display.measure))),Re==0?(ee.measure.map=we.map,ee.measure.cache={}):((ee.measure.maps||(ee.measure.maps=[])).push(we.map),(ee.measure.caches||(ee.measure.caches=[])).push({}))}if(te){var Mt=we.content.lastChild;(/\bcm-tab\b/.test(Mt.className)||Mt.querySelector&&Mt.querySelector(".cm-tab"))&&(we.content.className="cm-tab-wrap-hack")}return Pt(E,"renderLine",E,ee.line,we.pre),we.pre.className&&(we.textClass=Ze(we.pre.className,we.textClass||"")),we}function kt(E){var ee=Le("span","\u2022","cm-invalidchar");return ee.title="\\u"+E.charCodeAt(0).toString(16),ee.setAttribute("aria-label",ee.title),ee}function It(E,ee,Ee,we,Re,$e,ft){if(ee){var wt=E.splitSpaces?qt(ee,E.trailingSpace):ee,Mt=E.cm.state.specialChars,Rt=!1,fn;if(!Mt.test(ee))E.col+=ee.length,fn=document.createTextNode(wt),E.map.push(E.pos,E.pos+ee.length,fn),ve&&ie<9&&(Rt=!0),E.pos+=ee.length;else{fn=document.createDocumentFragment();for(var An=0;;){Mt.lastIndex=An;var cr=Mt.exec(ee),er=cr?cr.index-An:ee.length-An;if(er){var Fr=document.createTextNode(wt.slice(An,An+er));ve&&ie<9?fn.appendChild(Le("span",[Fr])):fn.appendChild(Fr),E.map.push(E.pos,E.pos+er,Fr),E.col+=er,E.pos+=er}if(!cr)break;An+=er+1;var ti=void 0;if(cr[0]==" "){var Si=E.cm.options.tabSize,_i=Si-E.col%Si;ti=fn.appendChild(Le("span",Et(_i),"cm-tab")),ti.setAttribute("role","presentation"),ti.setAttribute("cm-text"," "),E.col+=_i}else cr[0]=="\r"||cr[0]==`
|
|
|
`?(ti=fn.appendChild(Le("span",cr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ti.setAttribute("cm-text",cr[0]),E.col+=1):(ti=E.cm.options.specialCharPlaceholder(cr[0]),ti.setAttribute("cm-text",cr[0]),ve&&ie<9?fn.appendChild(Le("span",[ti])):fn.appendChild(ti),E.col+=1);E.map.push(E.pos,E.pos+1,ti),E.pos++}}if(E.trailingSpace=wt.charCodeAt(ee.length-1)==32,Ee||we||Re||Rt||$e||ft){var Qi=Ee||"";we&&(Qi+=we),Re&&(Qi+=Re);var Pi=Le("span",[fn],Qi,$e);if(ft)for(var sa in ft)ft.hasOwnProperty(sa)&&sa!="style"&&sa!="class"&&Pi.setAttribute(sa,ft[sa]);return E.content.appendChild(Pi)}E.content.appendChild(fn)}}function qt(E,ee){if(E.length>1&&!/ /.test(E))return E;for(var Ee=ee,we="",Re=0;Re<E.length;Re++){var $e=E.charAt(Re);$e==" "&&Ee&&(Re==E.length-1||E.charCodeAt(Re+1)==32)&&($e="\xA0"),we+=$e,Ee=$e==" "}return we}function Yt(E,ee){return function(Ee,we,Re,$e,ft,wt,Mt){Re=Re?Re+" cm-force-border":"cm-force-border";for(var Rt=Ee.pos,fn=Rt+we.length;;){for(var An=void 0,cr=0;cr<ee.length&&(An=ee[cr],!(An.to>Rt&&An.from<=Rt));cr++);if(An.to>=fn)return E(Ee,we,Re,$e,ft,wt,Mt);E(Ee,we.slice(0,An.to-Rt),Re,$e,null,wt,Mt),$e=null,we=we.slice(An.to-Rt),Rt=An.to}}}function En(E,ee,Ee,we){var Re=!we&&Ee.widgetNode;Re&&E.map.push(E.pos,E.pos+ee,Re),!we&&E.cm.display.input.needsContentAttribute&&(Re||(Re=E.content.appendChild(document.createElement("span"))),Re.setAttribute("cm-marker",Ee.id)),Re&&(E.cm.display.input.setUneditable(Re),E.content.appendChild(Re)),E.pos+=ee,E.trailingSpace=!1}function Hn(E,ee,Ee){var we=E.markedSpans,Re=E.text,$e=0;if(!we){for(var ft=1;ft<Ee.length;ft+=2)ee.addToken(ee,Re.slice($e,$e=Ee[ft]),mr(Ee[ft+1],ee.cm.options));return}for(var wt=Re.length,Mt=0,Rt=1,fn="",An,cr,er=0,Fr,ti,Si,_i,Qi;;){if(er==Mt){Fr=ti=Si=cr="",Qi=null,_i=null,er=1/0;for(var Pi=[],sa=void 0,Wa=0;Wa<we.length;++Wa){var Ga=we[Wa],Ao=Ga.marker;if(Ao.type=="bookmark"&&Ga.from==Mt&&Ao.widgetNode)Pi.push(Ao);else if(Ga.from<=Mt&&(Ga.to==null||Ga.to>Mt||Ao.collapsed&&Ga.to==Mt&&Ga.from==Mt)){if(Ga.to!=null&&Ga.to!=Mt&&er>Ga.to&&(er=Ga.to,ti=""),Ao.className&&(Fr+=" "+Ao.className),Ao.css&&(cr=(cr?cr+";":"")+Ao.css),Ao.startStyle&&Ga.from==Mt&&(Si+=" "+Ao.startStyle),Ao.endStyle&&Ga.to==er&&(sa||(sa=[])).push(Ao.endStyle,Ga.to),Ao.title&&((Qi||(Qi={})).title=Ao.title),Ao.attributes)for(var fs in Ao.attributes)(Qi||(Qi={}))[fs]=Ao.attributes[fs];Ao.collapsed&&(!_i||Yn(_i.marker,Ao)<0)&&(_i=Ga)}else Ga.from>Mt&&er>Ga.from&&(er=Ga.from)}if(sa)for(var rl=0;rl<sa.length;rl+=2)sa[rl+1]==er&&(ti+=" "+sa[rl]);if(!_i||_i.from==Mt)for(var Os=0;Os<Pi.length;++Os)En(ee,0,Pi[Os]);if(_i&&(_i.from||0)==Mt){if(En(ee,(_i.to==null?wt+1:_i.to)-Mt,_i.marker,_i.from==null),_i.to==null)return;_i.to==Mt&&(_i=!1)}}if(Mt>=wt)break;for(var Sl=Math.min(wt,er);;){if(fn){var Cl=Mt+fn.length;if(!_i){var Ys=Cl>Sl?fn.slice(0,Sl-Mt):fn;ee.addToken(ee,Ys,An?An+Fr:Fr,Si,Mt+Ys.length==er?ti:"",cr,Qi)}if(Cl>=Sl){fn=fn.slice(Sl-Mt),Mt=Sl;break}Mt=Cl,Si=""}fn=Re.slice($e,$e=Ee[Rt++]),An=mr(Ee[Rt++],ee.cm.options)}}}function Ht(E,ee,Ee){this.line=ee,this.rest=on(ee),this.size=this.rest?Lr(At(this.rest))-Ee+1:1,this.node=this.text=null,this.hidden=qn(E,ee)}function Vt(E,ee,Ee){for(var we=[],Re,$e=ee;$e<Ee;$e=Re){var ft=new Ht(E.doc,_n(E.doc,$e),$e);Re=$e+ft.size,we.push(ft)}return we}var Gt=null;function en(E){Gt?Gt.ops.push(E):E.ownsGroup=Gt={ops:[E],delayedCallbacks:[]}}function Ln(E){var ee=E.delayedCallbacks,Ee=0;do{for(;Ee<ee.length;Ee++)ee[Ee].call(null);for(var we=0;we<E.ops.length;we++){var Re=E.ops[we];if(Re.cursorActivityHandlers)for(;Re.cursorActivityCalled<Re.cursorActivityHandlers.length;)Re.cursorActivityHandlers[Re.cursorActivityCalled++].call(null,Re.cm)}}while(Ee<ee.length)}function Qn(E,ee){var Ee=E.ownsGroup;if(Ee)try{Ln(Ee)}finally{Gt=null,ee(Ee)}}var On=null;function Kn(E,ee){var Ee=Zt(E,ee);if(Ee.length){var we=Array.prototype.slice.call(arguments,2),Re;Gt?Re=Gt.delayedCallbacks:On?Re=On:(Re=On=[],setTimeout(vr,0));for(var $e=function(wt){Re.push(function(){return Ee[wt].apply(null,we)})},ft=0;ft<Ee.length;++ft)$e(ft)}}function vr(){var E=On;On=null;for(var ee=0;ee<E.length;++ee)E[ee]()}function Br(E,ee,Ee,we){for(var Re=0;Re<ee.changes.length;Re++){var $e=ee.changes[Re];$e=="text"?Nr(E,ee):$e=="gutter"?Rr(E,ee,Ee,we):$e=="class"?Yr(E,ee):$e=="widget"&&xr(E,ee,we)}ee.changes=null}function Cr(E){return E.node==E.text&&(E.node=Le("div",null,null,"position: relative"),E.text.parentNode&&E.text.parentNode.replaceChild(E.node,E.text),E.node.appendChild(E.text),ve&&ie<8&&(E.node.style.zIndex=2)),E.node}function sr(E,ee){var Ee=ee.bgClass?ee.bgClass+" "+(ee.line.bgClass||""):ee.line.bgClass;if(Ee&&(Ee+=" CodeMirror-linebackground"),ee.background)Ee?ee.background.className=Ee:(ee.background.parentNode.removeChild(ee.background),ee.background=null);else if(Ee){var we=Cr(ee);ee.background=we.insertBefore(Le("div",null,Ee),we.firstChild),E.display.input.setUneditable(ee.background)}}function Mr(E,ee){var Ee=E.display.externalMeasured;return Ee&&Ee.line==ee.line?(E.display.externalMeasured=null,ee.measure=Ee.measure,Ee.built):wr(E,ee)}function Nr(E,ee){var Ee=ee.text.className,we=Mr(E,ee);ee.text==ee.node&&(ee.node=we.pre),ee.text.parentNode.replaceChild(we.pre,ee.text),ee.text=we.pre,we.bgClass!=ee.bgClass||we.textClass!=ee.textClass?(ee.bgClass=we.bgClass,ee.textClass=we.textClass,Yr(E,ee)):Ee&&(ee.text.className=Ee)}function Yr(E,ee){sr(E,ee),ee.line.wrapClass?Cr(ee).className=ee.line.wrapClass:ee.node!=ee.text&&(ee.node.className="");var Ee=ee.textClass?ee.textClass+" "+(ee.line.textClass||""):ee.line.textClass;ee.text.className=Ee||""}function Rr(E,ee,Ee,we){if(ee.gutter&&(ee.node.removeChild(ee.gutter),ee.gutter=null),ee.gutterBackground&&(ee.node.removeChild(ee.gutterBackground),ee.gutterBackground=null),ee.line.gutterClass){var Re=Cr(ee);ee.gutterBackground=Le("div",null,"CodeMirror-gutter-background "+ee.line.gutterClass,"left: "+(E.options.fixedGutter?we.fixedPos:-we.gutterTotalWidth)+"px; width: "+we.gutterTotalWidth+"px"),E.display.input.setUneditable(ee.gutterBackground),Re.insertBefore(ee.gutterBackground,ee.text)}var $e=ee.line.gutterMarkers;if(E.options.lineNumbers||$e){var ft=Cr(ee),wt=ee.gutter=Le("div",null,"CodeMirror-gutter-wrapper","left: "+(E.options.fixedGutter?we.fixedPos:-we.gutterTotalWidth)+"px");if(E.display.input.setUneditable(wt),ft.insertBefore(wt,ee.text),ee.line.gutterClass&&(wt.className+=" "+ee.line.gutterClass),E.options.lineNumbers&&(!$e||!$e["CodeMirror-linenumbers"])&&(ee.lineNumber=wt.appendChild(Le("div",nn(E.options,Ee),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+we.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+E.display.lineNumInnerWidth+"px"))),$e)for(var Mt=0;Mt<E.display.gutterSpecs.length;++Mt){var Rt=E.display.gutterSpecs[Mt].className,fn=$e.hasOwnProperty(Rt)&&$e[Rt];fn&&wt.appendChild(Le("div",[fn],"CodeMirror-gutter-elt","left: "+we.gutterLeft[Rt]+"px; width: "+we.gutterWidth[Rt]+"px"))}}}function xr(E,ee,Ee){ee.alignable&&(ee.alignable=null);for(var we=be("CodeMirror-linewidget"),Re=ee.node.firstChild,$e=void 0;Re;Re=$e)$e=Re.nextSibling,we.test(Re.className)&&ee.node.removeChild(Re);ri(E,ee,Ee)}function ii(E,ee,Ee,we){var Re=Mr(E,ee);return ee.text=ee.node=Re.pre,Re.bgClass&&(ee.bgClass=Re.bgClass),Re.textClass&&(ee.textClass=Re.textClass),Yr(E,ee),Rr(E,ee,Ee,we),ri(E,ee,we),ee.node}function ri(E,ee,Ee){if(Fi(E,ee.line,ee,Ee,!0),ee.rest)for(var we=0;we<ee.rest.length;we++)Fi(E,ee.rest[we],ee,Ee,!1)}function Fi(E,ee,Ee,we,Re){if(ee.widgets)for(var $e=Cr(Ee),ft=0,wt=ee.widgets;ft<wt.length;++ft){var Mt=wt[ft],Rt=Le("div",[Mt.node],"CodeMirror-linewidget"+(Mt.className?" "+Mt.className:""));Mt.handleMouseEvents||Rt.setAttribute("cm-ignore-events","true"),Ui(Mt,Rt,Ee,we),E.display.input.setUneditable(Rt),Re&&Mt.above?$e.insertBefore(Rt,Ee.gutter||Ee.text):$e.appendChild(Rt),Kn(Mt,"redraw")}}function Ui(E,ee,Ee,we){if(E.noHScroll){(Ee.alignable||(Ee.alignable=[])).push(ee);var Re=we.wrapperWidth;ee.style.left=we.fixedPos+"px",E.coverGutter||(Re-=we.gutterTotalWidth,ee.style.paddingLeft=we.gutterTotalWidth+"px"),ee.style.width=Re+"px"}E.coverGutter&&(ee.style.zIndex=5,ee.style.position="relative",E.noHScroll||(ee.style.marginLeft=-we.gutterTotalWidth+"px"))}function aa(E){if(E.height!=null)return E.height;var ee=E.doc.cm;if(!ee)return 0;if(!Ue(document.body,E.node)){var Ee="position: relative;";E.coverGutter&&(Ee+="margin-left: -"+ee.display.gutters.offsetWidth+"px;"),E.noHScroll&&(Ee+="width: "+ee.display.wrapper.clientWidth+"px;"),De(ee.display.measure,Le("div",[E.node],null,Ee))}return E.height=E.node.parentNode.offsetHeight}function ji(E,ee){for(var Ee=Hr(ee);Ee!=E.wrapper;Ee=Ee.parentNode)if(!Ee||Ee.nodeType==1&&Ee.getAttribute("cm-ignore-events")=="true"||Ee.parentNode==E.sizer&&Ee!=E.mover)return!0}function zi(E){return E.lineSpace.offsetTop}function Mi(E){return E.mover.offsetHeight-E.lineSpace.offsetHeight}function ca(E){if(E.cachedPaddingH)return E.cachedPaddingH;var ee=De(E.measure,Le("pre","x","CodeMirror-line-like")),Ee=window.getComputedStyle?window.getComputedStyle(ee):ee.currentStyle,we={left:parseInt(Ee.paddingLeft),right:parseInt(Ee.paddingRight)};return!isNaN(we.left)&&!isNaN(we.right)&&(E.cachedPaddingH=we),we}function Li(E){return dt-E.display.nativeBarWidth}function li(E){return E.display.scroller.clientWidth-Li(E)-E.display.barWidth}function Vi(E){return E.display.scroller.clientHeight-Li(E)-E.display.barHeight}function Sa(E,ee,Ee){var we=E.options.lineWrapping,Re=we&&li(E);if(!ee.measure.heights||we&&ee.measure.width!=Re){var $e=ee.measure.heights=[];if(we){ee.measure.width=Re;for(var ft=ee.text.firstChild.getClientRects(),wt=0;wt<ft.length-1;wt++){var Mt=ft[wt],Rt=ft[wt+1];Math.abs(Mt.bottom-Rt.bottom)>2&&$e.push((Mt.bottom+Rt.top)/2-Ee.top)}}$e.push(Ee.bottom-Ee.top)}}function Ci(E,ee,Ee){if(E.line==ee)return{map:E.measure.map,cache:E.measure.cache};for(var we=0;we<E.rest.length;we++)if(E.rest[we]==ee)return{map:E.measure.maps[we],cache:E.measure.caches[we]};for(var Re=0;Re<E.rest.length;Re++)if(Lr(E.rest[Re])>Ee)return{map:E.measure.maps[Re],cache:E.measure.caches[Re],before:!0}}function Xa(E,ee){ee=Nt(ee);var Ee=Lr(ee),we=E.display.externalMeasured=new Ht(E.doc,ee,Ee);we.lineN=Ee;var Re=we.built=wr(E,we);return we.text=Re.pre,De(E.display.lineMeasure,Re.pre),we}function qa(E,ee,Ee,we){return ua(E,Ra(E,ee),Ee,we)}function Ja(E,ee){if(ee>=E.display.viewFrom&&ee<E.display.viewTo)return E.display.view[no(E,ee)];var Ee=E.display.externalMeasured;if(Ee&&ee>=Ee.lineN&&ee<Ee.lineN+Ee.size)return Ee}function Ra(E,ee){var Ee=Lr(ee),we=Ja(E,Ee);we&&!we.text?we=null:we&&we.changes&&(Br(E,we,Ee,ms(E)),E.curOp.forceUpdate=!0),we||(we=Xa(E,ee));var Re=Ci(we,ee,Ee);return{line:ee,view:we,rect:null,map:Re.map,cache:Re.cache,before:Re.before,hasHeights:!1}}function ua(E,ee,Ee,we,Re){ee.before&&(Ee=-1);var $e=Ee+(we||""),ft;return ee.cache.hasOwnProperty($e)?ft=ee.cache[$e]:(ee.rect||(ee.rect=ee.view.text.getBoundingClientRect()),ee.hasHeights||(Sa(E,ee.view,ee.rect),ee.hasHeights=!0),ft=ja(E,ee,Ee,we),ft.bogus||(ee.cache[$e]=ft)),{left:ft.left,right:ft.right,top:Re?ft.rtop:ft.top,bottom:Re?ft.rbottom:ft.bottom}}var bo={left:0,right:0,top:0,bottom:0};function Da(E,ee,Ee){for(var we,Re,$e,ft,wt,Mt,Rt=0;Rt<E.length;Rt+=3)if(wt=E[Rt],Mt=E[Rt+1],ee<wt?(Re=0,$e=1,ft="left"):ee<Mt?(Re=ee-wt,$e=Re+1):(Rt==E.length-3||ee==Mt&&E[Rt+3]>ee)&&($e=Mt-wt,Re=$e-1,ee>=Mt&&(ft="right")),Re!=null){if(we=E[Rt+2],wt==Mt&&Ee==(we.insertLeft?"left":"right")&&(ft=Ee),Ee=="left"&&Re==0)for(;Rt&&E[Rt-2]==E[Rt-3]&&E[Rt-1].insertLeft;)we=E[(Rt-=3)+2],ft="left";if(Ee=="right"&&Re==Mt-wt)for(;Rt<E.length-3&&E[Rt+3]==E[Rt+4]&&!E[Rt+5].insertLeft;)we=E[(Rt+=3)+2],ft="right";break}return{node:we,start:Re,end:$e,collapse:ft,coverStart:wt,coverEnd:Mt}}function Ki(E,ee){var Ee=bo;if(ee=="left")for(var we=0;we<E.length&&(Ee=E[we]).left==Ee.right;we++);else for(var Re=E.length-1;Re>=0&&(Ee=E[Re]).left==Ee.right;Re--);return Ee}function ja(E,ee,Ee,we){var Re=Da(ee.map,Ee,we),$e=Re.node,ft=Re.start,wt=Re.end,Mt=Re.collapse,Rt;if($e.nodeType==3){for(var fn=0;fn<4;fn++){for(;ft&&ze(ee.line.text.charAt(Re.coverStart+ft));)--ft;for(;Re.coverStart+wt<Re.coverEnd&&ze(ee.line.text.charAt(Re.coverStart+wt));)++wt;if(ve&&ie<9&&ft==0&&wt==Re.coverEnd-Re.coverStart?Rt=$e.parentNode.getBoundingClientRect():Rt=Ki(Be($e,ft,wt).getClientRects(),we),Rt.left||Rt.right||ft==0)break;wt=ft,ft=ft-1,Mt="right"}ve&&ie<11&&(Rt=lo(E.display.measure,Rt))}else{ft>0&&(Mt=we="right");var An;E.options.lineWrapping&&(An=$e.getClientRects()).length>1?Rt=An[we=="right"?An.length-1:0]:Rt=$e.getBoundingClientRect()}if(ve&&ie<9&&!ft&&(!Rt||!Rt.left&&!Rt.right)){var cr=$e.parentNode.getClientRects()[0];cr?Rt={left:cr.left,right:cr.left+es(E.display),top:cr.top,bottom:cr.bottom}:Rt=bo}for(var er=Rt.top-ee.rect.top,Fr=Rt.bottom-ee.rect.top,ti=(er+Fr)/2,Si=ee.view.measure.heights,_i=0;_i<Si.length-1&&!(ti<Si[_i]);_i++);var Qi=_i?Si[_i-1]:0,Pi=Si[_i],sa={left:(Mt=="right"?Rt.right:Rt.left)-ee.rect.left,right:(Mt=="left"?Rt.left:Rt.right)-ee.rect.left,top:Qi,bottom:Pi};return!Rt.left&&!Rt.right&&(sa.bogus=!0),E.options.singleCursorHeightPerLine||(sa.rtop=er,sa.rbottom=Fr),sa}function lo(E,ee){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Tr(E))return ee;var Ee=screen.logicalXDPI/screen.deviceXDPI,we=screen.logicalYDPI/screen.deviceYDPI;return{left:ee.left*Ee,right:ee.right*Ee,top:ee.top*we,bottom:ee.bottom*we}}function Ka(E){if(E.measure&&(E.measure.cache={},E.measure.heights=null,E.rest))for(var ee=0;ee<E.rest.length;ee++)E.measure.caches[ee]={}}function io(E){E.display.externalMeasure=null,ke(E.display.lineMeasure);for(var ee=0;ee<E.display.view.length;ee++)Ka(E.display.view[ee])}function pa(E){io(E),E.display.cachedCharWidth=E.display.cachedTextHeight=E.display.cachedPaddingH=null,E.options.lineWrapping||(E.display.maxLineChanged=!0),E.display.lineNumChars=null}function po(){return ne&&fe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function mo(){return ne&&fe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fo(E){var ee=0;if(E.widgets)for(var Ee=0;Ee<E.widgets.length;++Ee)E.widgets[Ee].above&&(ee+=aa(E.widgets[Ee]));return ee}function vo(E,ee,Ee,we,Re){if(!Re){var $e=fo(ee);Ee.top+=$e,Ee.bottom+=$e}if(we=="line")return Ee;we||(we="local");var ft=Dn(ee);if(we=="local"?ft+=zi(E.display):ft-=E.display.viewOffset,we=="page"||we=="window"){var wt=E.display.lineSpace.getBoundingClientRect();ft+=wt.top+(we=="window"?0:mo());var Mt=wt.left+(we=="window"?0:po());Ee.left+=Mt,Ee.right+=Mt}return Ee.top+=ft,Ee.bottom+=ft,Ee}function Mo(E,ee,Ee){if(Ee=="div")return ee;var we=ee.left,Re=ee.top;if(Ee=="page")we-=po(),Re-=mo();else if(Ee=="local"||!Ee){var $e=E.display.sizer.getBoundingClientRect();we+=$e.left,Re+=$e.top}var ft=E.display.lineSpace.getBoundingClientRect();return{left:we-ft.left,top:Re-ft.top}}function Ho(E,ee,Ee,we,Re){return we||(we=_n(E.doc,ee.line)),vo(E,we,qa(E,we,ee.ch,Re),Ee)}function ho(E,ee,Ee,we,Re,$e){we=we||_n(E.doc,ee.line),Re||(Re=Ra(E,we));function ft(Fr,ti){var Si=ua(E,Re,Fr,ti?"right":"left",$e);return ti?Si.left=Si.right:Si.right=Si.left,vo(E,we,Si,Ee)}var wt=xn(we,E.doc.direction),Mt=ee.ch,Rt=ee.sticky;if(Mt>=we.text.length?(Mt=we.text.length,Rt="before"):Mt<=0&&(Mt=0,Rt="after"),!wt)return ft(Rt=="before"?Mt-1:Mt,Rt=="before");function fn(Fr,ti,Si){var _i=wt[ti],Qi=_i.level==1;return ft(Si?Fr-1:Fr,Qi!=Si)}var An=xt(wt,Mt,Rt),cr=Ot,er=fn(Mt,An,Rt=="before");return cr!=null&&(er.other=fn(Mt,cr,Rt!="before")),er}function ko(E,ee){var Ee=0;ee=kr(E.doc,ee),E.options.lineWrapping||(Ee=es(E.display)*ee.ch);var we=_n(E.doc,ee.line),Re=Dn(we)+zi(E.display);return{left:Ee,right:Ee,top:Re,bottom:Re+we.height}}function $o(E,ee,Ee,we,Re){var $e=Jt(E,ee,Ee);return $e.xRel=Re,we&&($e.outside=we),$e}function Yo(E,ee,Ee){var we=E.doc;if(Ee+=E.display.viewOffset,Ee<0)return $o(we.first,0,null,-1,-1);var Re=Wr(we,Ee),$e=we.first+we.size-1;if(Re>$e)return $o(we.first+we.size-1,_n(we,$e).text.length,null,1,1);ee<0&&(ee=0);for(var ft=_n(we,Re);;){var wt=La(E,ft,Re,ee,Ee),Mt=Dt(ft,wt.ch+(wt.xRel>0||wt.outside>0?1:0));if(!Mt)return wt;var Rt=Mt.find(1);if(Rt.line==Re)return Rt;ft=_n(we,Re=Rt.line)}}function as(E,ee,Ee,we){we-=fo(ee);var Re=ee.text.length,$e=ot(function(ft){return ua(E,Ee,ft-1).bottom<=we},Re,0);return Re=ot(function(ft){return ua(E,Ee,ft).top>we},$e,Re),{begin:$e,end:Re}}function Bo(E,ee,Ee,we){Ee||(Ee=Ra(E,ee));var Re=vo(E,ee,ua(E,Ee,we),"line").top;return as(E,ee,Ee,Re)}function wo(E,ee,Ee,we){return E.bottom<=Ee?!1:E.top>Ee?!0:(we?E.left:E.right)>ee}function La(E,ee,Ee,we,Re){Re-=Dn(ee);var $e=Ra(E,ee),ft=fo(ee),wt=0,Mt=ee.text.length,Rt=!0,fn=xn(ee,E.doc.direction);if(fn){var An=(E.options.lineWrapping?uo:za)(E,ee,Ee,$e,fn,we,Re);Rt=An.level!=1,wt=Rt?An.from:An.to-1,Mt=Rt?An.to:An.from-1}var cr=null,er=null,Fr=ot(function(Wa){var Ga=ua(E,$e,Wa);return Ga.top+=ft,Ga.bottom+=ft,wo(Ga,we,Re,!1)?(Ga.top<=Re&&Ga.left<=we&&(cr=Wa,er=Ga),!0):!1},wt,Mt),ti,Si,_i=!1;if(er){var Qi=we-er.left<er.right-we,Pi=Qi==Rt;Fr=cr+(Pi?0:1),Si=Pi?"after":"before",ti=Qi?er.left:er.right}else{!Rt&&(Fr==Mt||Fr==wt)&&Fr++,Si=Fr==0?"after":Fr==ee.text.length?"before":ua(E,$e,Fr-(Rt?1:0)).bottom+ft<=Re==Rt?"after":"before";var sa=ho(E,Jt(Ee,Fr,Si),"line",ee,$e);ti=sa.left,_i=Re<sa.top?-1:Re>=sa.bottom?1:0}return Fr=Qe(ee.text,Fr,1),$o(Ee,Fr,Si,_i,we-ti)}function za(E,ee,Ee,we,Re,$e,ft){var wt=ot(function(An){var cr=Re[An],er=cr.level!=1;return wo(ho(E,Jt(Ee,er?cr.to:cr.from,er?"before":"after"),"line",ee,we),$e,ft,!0)},0,Re.length-1),Mt=Re[wt];if(wt>0){var Rt=Mt.level!=1,fn=ho(E,Jt(Ee,Rt?Mt.from:Mt.to,Rt?"after":"before"),"line",ee,we);wo(fn,$e,ft,!0)&&fn.top>ft&&(Mt=Re[wt-1])}return Mt}function uo(E,ee,Ee,we,Re,$e,ft){var wt=as(E,ee,we,ft),Mt=wt.begin,Rt=wt.end;/\s/.test(ee.text.charAt(Rt-1))&&Rt--;for(var fn=null,An=null,cr=0;cr<Re.length;cr++){var er=Re[cr];if(!(er.from>=Rt||er.to<=Mt)){var Fr=er.level!=1,ti=ua(E,we,Fr?Math.min(Rt,er.to)-1:Math.max(Mt,er.from)).right,Si=ti<$e?$e-ti+1e9:ti-$e;(!fn||An>Si)&&(fn=er,An=Si)}}return fn||(fn=Re[Re.length-1]),fn.from<Mt&&(fn={from:Mt,to:fn.to,level:fn.level}),fn.to>Rt&&(fn={from:fn.from,to:Rt,level:fn.level}),fn}var xo;function Fo(E){if(E.cachedTextHeight!=null)return E.cachedTextHeight;if(xo==null){xo=Le("pre",null,"CodeMirror-line-like");for(var ee=0;ee<49;++ee)xo.appendChild(document.createTextNode("x")),xo.appendChild(Le("br"));xo.appendChild(document.createTextNode("x"))}De(E.measure,xo);var Ee=xo.offsetHeight/50;return Ee>3&&(E.cachedTextHeight=Ee),ke(E.measure),Ee||1}function es(E){if(E.cachedCharWidth!=null)return E.cachedCharWidth;var ee=Le("span","xxxxxxxxxx"),Ee=Le("pre",[ee],"CodeMirror-line-like");De(E.measure,Ee);var we=ee.getBoundingClientRect(),Re=(we.right-we.left)/10;return Re>2&&(E.cachedCharWidth=Re),Re||10}function ms(E){for(var ee=E.display,Ee={},we={},Re=ee.gutters.clientLeft,$e=ee.gutters.firstChild,ft=0;$e;$e=$e.nextSibling,++ft){var wt=E.display.gutterSpecs[ft].className;Ee[wt]=$e.offsetLeft+$e.clientLeft+Re,we[wt]=$e.clientWidth}return{fixedPos:_s(ee),gutterTotalWidth:ee.gutters.offsetWidth,gutterLeft:Ee,gutterWidth:we,wrapperWidth:ee.wrapper.clientWidth}}function _s(E){return E.scroller.getBoundingClientRect().left-E.sizer.getBoundingClientRect().left}function Fs(E){var ee=Fo(E.display),Ee=E.options.lineWrapping,we=Ee&&Math.max(5,E.display.scroller.clientWidth/es(E.display)-3);return function(Re){if(qn(E.doc,Re))return 0;var $e=0;if(Re.widgets)for(var ft=0;ft<Re.widgets.length;ft++)Re.widgets[ft].height&&($e+=Re.widgets[ft].height);return Ee?$e+(Math.ceil(Re.text.length/we)||1)*ee:$e+ee}}function os(E){var ee=E.doc,Ee=Fs(E);ee.iter(function(we){var Re=Ee(we);Re!=we.height&&Ir(we,Re)})}function Is(E,ee,Ee,we){var Re=E.display;if(!Ee&&Hr(ee).getAttribute("cm-not-content")=="true")return null;var $e,ft,wt=Re.lineSpace.getBoundingClientRect();try{$e=ee.clientX-wt.left,ft=ee.clientY-wt.top}catch(An){return null}var Mt=Yo(E,$e,ft),Rt;if(we&&Mt.xRel>0&&(Rt=_n(E.doc,Mt.line).text).length==Mt.ch){var fn=Ge(Rt,Rt.length,E.options.tabSize)-Rt.length;Mt=Jt(Mt.line,Math.max(0,Math.round(($e-ca(E.display).left)/es(E.display))-fn))}return Mt}function no(E,ee){if(ee>=E.display.viewTo||(ee-=E.display.viewFrom,ee<0))return null;for(var Ee=E.display.view,we=0;we<Ee.length;we++)if(ee-=Ee[we].size,ee<0)return we}function Ea(E,ee,Ee,we){ee==null&&(ee=E.doc.first),Ee==null&&(Ee=E.doc.first+E.doc.size),we||(we=0);var Re=E.display;if(we&&Ee<Re.viewTo&&(Re.updateLineNumbers==null||Re.updateLineNumbers>ee)&&(Re.updateLineNumbers=ee),E.curOp.viewChanged=!0,ee>=Re.viewTo)Ni&&gn(E.doc,ee)<Re.viewTo&&To(E);else if(Ee<=Re.viewFrom)Ni&&Vn(E.doc,Ee+we)>Re.viewFrom?To(E):(Re.viewFrom+=we,Re.viewTo+=we);else if(ee<=Re.viewFrom&&Ee>=Re.viewTo)To(E);else if(ee<=Re.viewFrom){var $e=Ct(E,Ee,Ee+we,1);$e?(Re.view=Re.view.slice($e.index),Re.viewFrom=$e.lineN,Re.viewTo+=we):To(E)}else if(Ee>=Re.viewTo){var ft=Ct(E,ee,ee,-1);ft?(Re.view=Re.view.slice(0,ft.index),Re.viewTo=ft.lineN):To(E)}else{var wt=Ct(E,ee,ee,-1),Mt=Ct(E,Ee,Ee+we,1);wt&&Mt?(Re.view=Re.view.slice(0,wt.index).concat(Vt(E,wt.lineN,Mt.lineN)).concat(Re.view.slice(Mt.index)),Re.viewTo+=we):To(E)}var Rt=Re.externalMeasured;Rt&&(Ee<Rt.lineN?Rt.lineN+=we:ee<Rt.lineN+Rt.size&&(Re.externalMeasured=null))}function Do(E,ee,Ee){E.curOp.viewChanged=!0;var we=E.display,Re=E.display.externalMeasured;if(Re&&ee>=Re.lineN&&ee<Re.lineN+Re.size&&(we.externalMeasured=null),!(ee<we.viewFrom||ee>=we.viewTo)){var $e=we.view[no(E,ee)];if($e.node!=null){var ft=$e.changes||($e.changes=[]);lt(ft,Ee)==-1&&ft.push(Ee)}}}function To(E){E.display.viewFrom=E.display.viewTo=E.doc.first,E.display.view=[],E.display.viewOffset=0}function Ct(E,ee,Ee,we){var Re=no(E,ee),$e,ft=E.display.view;if(!Ni||Ee==E.doc.first+E.doc.size)return{index:Re,lineN:Ee};for(var wt=E.display.viewFrom,Mt=0;Mt<Re;Mt++)wt+=ft[Mt].size;if(wt!=ee){if(we>0){if(Re==ft.length-1)return null;$e=wt+ft[Re].size-ee,Re++}else $e=wt-ee;ee+=$e,Ee+=$e}for(;gn(E.doc,Ee)!=Ee;){if(Re==(we<0?0:ft.length-1))return null;Ee+=we*ft[Re-(we<0?1:0)].size,Re+=we}return{index:Re,lineN:Ee}}function Lt(E,ee,Ee){var we=E.display,Re=we.view;Re.length==0||ee>=we.viewTo||Ee<=we.viewFrom?(we.view=Vt(E,ee,Ee),we.viewFrom=ee):(we.viewFrom>ee?we.view=Vt(E,ee,we.viewFrom).concat(we.view):we.viewFrom<ee&&(we.view=we.view.slice(no(E,ee))),we.viewFrom=ee,we.viewTo<Ee?we.view=we.view.concat(Vt(E,we.viewTo,Ee)):we.viewTo>Ee&&(we.view=we.view.slice(0,no(E,Ee)))),we.viewTo=Ee}function dn(E){for(var ee=E.display.view,Ee=0,we=0;we<ee.length;we++){var Re=ee[we];!Re.hidden&&(!Re.node||Re.changes)&&++Ee}return Ee}function un(E){E.display.input.showSelection(E.display.input.prepareSelection())}function Un(E,ee){ee===void 0&&(ee=!0);for(var Ee=E.doc,we={},Re=we.cursors=document.createDocumentFragment(),$e=we.selection=document.createDocumentFragment(),ft=0;ft<Ee.sel.ranges.length;ft++)if(!(!ee&&ft==Ee.sel.primIndex)){var wt=Ee.sel.ranges[ft];if(!(wt.from().line>=E.display.viewTo||wt.to().line<E.display.viewFrom)){var Mt=wt.empty();(Mt||E.options.showCursorWhenSelecting)&&Nn(E,wt.head,Re),Mt||nr(E,wt,$e)}}return we}function Nn(E,ee,Ee){var we=ho(E,ee,"div",null,null,!E.options.singleCursorHeightPerLine),Re=Ee.appendChild(Le("div","\xA0","CodeMirror-cursor"));if(Re.style.left=we.left+"px",Re.style.top=we.top+"px",Re.style.height=Math.max(0,we.bottom-we.top)*E.options.cursorHeight+"px",we.other){var $e=Ee.appendChild(Le("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));$e.style.display="",$e.style.left=we.other.left+"px",$e.style.top=we.other.top+"px",$e.style.height=(we.other.bottom-we.other.top)*.85+"px"}}function Mn(E,ee){return E.top-ee.top||E.left-ee.left}function nr(E,ee,Ee){var we=E.display,Re=E.doc,$e=document.createDocumentFragment(),ft=ca(E.display),wt=ft.left,Mt=Math.max(we.sizerWidth,li(E)-we.sizer.offsetLeft)-ft.right,Rt=Re.direction=="ltr";function fn(Pi,sa,Wa,Ga){sa<0&&(sa=0),sa=Math.round(sa),Ga=Math.round(Ga),$e.appendChild(Le("div",null,"CodeMirror-selected","position: absolute; left: "+Pi+`px;
|
|
|
top: `+sa+"px; width: "+(Wa==null?Mt-Pi:Wa)+`px;
|
|
|
height: `+(Ga-sa)+"px"))}function An(Pi,sa,Wa){var Ga=_n(Re,Pi),Ao=Ga.text.length,fs,rl;function Os(Ys,El){return Ho(E,Jt(Pi,Ys),"div",Ga,El)}function Sl(Ys,El,co){var Ns=Bo(E,Ga,null,Ys),Ds=El=="ltr"==(co=="after")?"left":"right",Rs=co=="after"?Ns.begin:Ns.end-(/\s/.test(Ga.text.charAt(Ns.end-1))?2:1);return Os(Rs,Ds)[Ds]}var Cl=xn(Ga,Re.direction);return mt(Cl,sa||0,Wa==null?Ao:Wa,function(Ys,El,co,Ns){var Ds=co=="ltr",Rs=Os(Ys,Ds?"left":"right"),Ws=Os(El-1,Ds?"right":"left"),Uc=sa==null&&Ys==0,kl=Wa==null&&El==Ao,cl=Ns==0,Uo=!Cl||Ns==Cl.length-1;if(Ws.top-Rs.top<=3){var $s=(Rt?Uc:kl)&&cl,Yu=(Rt?kl:Uc)&&Uo,pc=$s?wt:(Ds?Rs:Ws).left,kc=Yu?Mt:(Ds?Ws:Rs).right;fn(pc,Rs.top,kc-pc,Rs.bottom)}else{var ec,Qs,Vc,ul;Ds?(ec=Rt&&Uc&&cl?wt:Rs.left,Qs=Rt?Mt:Sl(Ys,co,"before"),Vc=Rt?wt:Sl(El,co,"after"),ul=Rt&&kl&&Uo?Mt:Ws.right):(ec=Rt?Sl(Ys,co,"before"):wt,Qs=!Rt&&Uc&&cl?Mt:Rs.right,Vc=!Rt&&kl&&Uo?wt:Ws.left,ul=Rt?Sl(El,co,"after"):Mt),fn(ec,Rs.top,Qs-ec,Rs.bottom),Rs.bottom<Ws.top&&fn(wt,Rs.bottom,null,Ws.top),fn(Vc,Ws.top,ul-Vc,Ws.bottom)}(!fs||Mn(Rs,fs)<0)&&(fs=Rs),Mn(Ws,fs)<0&&(fs=Ws),(!rl||Mn(Rs,rl)<0)&&(rl=Rs),Mn(Ws,rl)<0&&(rl=Ws)}),{start:fs,end:rl}}var cr=ee.from(),er=ee.to();if(cr.line==er.line)An(cr.line,cr.ch,er.ch);else{var Fr=_n(Re,cr.line),ti=_n(Re,er.line),Si=Nt(Fr)==Nt(ti),_i=An(cr.line,cr.ch,Si?Fr.text.length+1:null).end,Qi=An(er.line,Si?0:null,er.ch).start;Si&&(_i.top<Qi.top-2?(fn(_i.right,_i.top,null,_i.bottom),fn(wt,Qi.top,Qi.left,Qi.bottom)):fn(_i.right,_i.top,Qi.left-_i.right,_i.bottom)),_i.bottom<Qi.top&&fn(wt,_i.bottom,null,Qi.top)}Ee.appendChild($e)}function rr(E){if(E.state.focused){var ee=E.display;clearInterval(ee.blinker);var Ee=!0;ee.cursorDiv.style.visibility="",E.options.cursorBlinkRate>0?ee.blinker=setInterval(function(){E.hasFocus()||xi(E),ee.cursorDiv.style.visibility=(Ee=!Ee)?"":"hidden"},E.options.cursorBlinkRate):E.options.cursorBlinkRate<0&&(ee.cursorDiv.style.visibility="hidden")}}function gr(E){E.state.focused||(E.display.input.focus(),jr(E))}function Jr(E){E.state.delayingBlurEvent=!0,setTimeout(function(){E.state.delayingBlurEvent&&(E.state.delayingBlurEvent=!1,xi(E))},100)}function jr(E,ee){E.state.delayingBlurEvent&&(E.state.delayingBlurEvent=!1),E.options.readOnly!="nocursor"&&(E.state.focused||(Pt(E,"focus",E,ee),E.state.focused=!0,We(E.display.wrapper,"CodeMirror-focused"),!E.curOp&&E.display.selForContextMenu!=E.doc.sel&&(E.display.input.reset(),te&&setTimeout(function(){return E.display.input.reset(!0)},20)),E.display.input.receivedFocus()),rr(E))}function xi(E,ee){E.state.delayingBlurEvent||(E.state.focused&&(Pt(E,"blur",E,ee),E.state.focused=!1,Fe(E.display.wrapper,"CodeMirror-focused")),clearInterval(E.display.blinker),setTimeout(function(){E.state.focused||(E.display.shift=!1)},150))}function Qr(E){for(var ee=E.display,Ee=ee.lineDiv.offsetTop,we=0;we<ee.view.length;we++){var Re=ee.view[we],$e=E.options.lineWrapping,ft=void 0,wt=0;if(!Re.hidden){if(ve&&ie<8){var Mt=Re.node.offsetTop+Re.node.offsetHeight;ft=Mt-Ee,Ee=Mt}else{var Rt=Re.node.getBoundingClientRect();ft=Rt.bottom-Rt.top,!$e&&Re.text.firstChild&&(wt=Re.text.firstChild.getBoundingClientRect().right-Rt.left-1)}var fn=Re.line.height-ft;if((fn>.005||fn<-.005)&&(Ir(Re.line,ft),ci(Re.line),Re.rest))for(var An=0;An<Re.rest.length;An++)ci(Re.rest[An]);if(wt>E.display.sizerWidth){var cr=Math.ceil(wt/es(E.display));cr>E.display.maxLineLength&&(E.display.maxLineLength=cr,E.display.maxLine=Re.line,E.display.maxLineChanged=!0)}}}}function ci(E){if(E.widgets)for(var ee=0;ee<E.widgets.length;++ee){var Ee=E.widgets[ee],we=Ee.node.parentNode;we&&(Ee.height=we.offsetHeight)}}function qr(E,ee,Ee){var we=Ee&&Ee.top!=null?Math.max(0,Ee.top):E.scroller.scrollTop;we=Math.floor(we-zi(E));var Re=Ee&&Ee.bottom!=null?Ee.bottom:we+E.wrapper.clientHeight,$e=Wr(ee,we),ft=Wr(ee,Re);if(Ee&&Ee.ensure){var wt=Ee.ensure.from.line,Mt=Ee.ensure.to.line;wt<$e?($e=wt,ft=Wr(ee,Dn(_n(ee,wt))+E.wrapper.clientHeight)):Math.min(Mt,ee.lastLine())>=ft&&($e=Wr(ee,Dn(_n(ee,Mt))-E.wrapper.clientHeight),ft=Mt)}return{from:$e,to:Math.max(ft,$e+1)}}function wi(E,ee){if(!zt(E,"scrollCursorIntoView")){var Ee=E.display,we=Ee.sizer.getBoundingClientRect(),Re=null;if(ee.top+we.top<0?Re=!0:ee.bottom+we.top>(window.innerHeight||document.documentElement.clientHeight)&&(Re=!1),Re!=null&&!se){var $e=Le("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ee.top-Ee.viewOffset-zi(E.display))+`px;
|
|
|
height: `+(ee.bottom-ee.top+Li(E)+Ee.barHeight)+`px;
|
|
|
left: `+ee.left+"px; width: "+Math.max(2,ee.right-ee.left)+"px;");E.display.lineSpace.appendChild($e),$e.scrollIntoView(Re),E.display.lineSpace.removeChild($e)}}}function Hi(E,ee,Ee,we){we==null&&(we=0);var Re;!E.options.lineWrapping&&ee==Ee&&(ee=ee.ch?Jt(ee.line,ee.sticky=="before"?ee.ch-1:ee.ch,"after"):ee,Ee=ee.sticky=="before"?Jt(ee.line,ee.ch+1,"before"):ee);for(var $e=0;$e<5;$e++){var ft=!1,wt=ho(E,ee),Mt=!Ee||Ee==ee?wt:ho(E,Ee);Re={left:Math.min(wt.left,Mt.left),top:Math.min(wt.top,Mt.top)-we,right:Math.max(wt.left,Mt.left),bottom:Math.max(wt.bottom,Mt.bottom)+we};var Rt=fa(E,Re),fn=E.doc.scrollTop,An=E.doc.scrollLeft;if(Rt.scrollTop!=null&&(fi(E,Rt.scrollTop),Math.abs(E.doc.scrollTop-fn)>1&&(ft=!0)),Rt.scrollLeft!=null&&(Ia(E,Rt.scrollLeft),Math.abs(E.doc.scrollLeft-An)>1&&(ft=!0)),!ft)break}return Re}function oa(E,ee){var Ee=fa(E,ee);Ee.scrollTop!=null&&fi(E,Ee.scrollTop),Ee.scrollLeft!=null&&Ia(E,Ee.scrollLeft)}function fa(E,ee){var Ee=E.display,we=Fo(E.display);ee.top<0&&(ee.top=0);var Re=E.curOp&&E.curOp.scrollTop!=null?E.curOp.scrollTop:Ee.scroller.scrollTop,$e=Vi(E),ft={};ee.bottom-ee.top>$e&&(ee.bottom=ee.top+$e);var wt=E.doc.height+Mi(Ee),Mt=ee.top<we,Rt=ee.bottom>wt-we;if(ee.top<Re)ft.scrollTop=Mt?0:ee.top;else if(ee.bottom>Re+$e){var fn=Math.min(ee.top,(Rt?wt:ee.bottom)-$e);fn!=Re&&(ft.scrollTop=fn)}var An=E.options.fixedGutter?0:Ee.gutters.offsetWidth,cr=E.curOp&&E.curOp.scrollLeft!=null?E.curOp.scrollLeft:Ee.scroller.scrollLeft-An,er=li(E)-Ee.gutters.offsetWidth,Fr=ee.right-ee.left>er;return Fr&&(ee.right=ee.left+er),ee.left<10?ft.scrollLeft=0:ee.left<cr?ft.scrollLeft=Math.max(0,ee.left+An-(Fr?0:10)):ee.right>er+cr-3&&(ft.scrollLeft=ee.right+(Fr?0:10)-er),ft}function qi(E,ee){ee!=null&&(Aa(E),E.curOp.scrollTop=(E.curOp.scrollTop==null?E.doc.scrollTop:E.curOp.scrollTop)+ee)}function va(E){Aa(E);var ee=E.getCursor();E.curOp.scrollToPos={from:ee,to:ee,margin:E.options.cursorScrollMargin}}function Bi(E,ee,Ee){(ee!=null||Ee!=null)&&Aa(E),ee!=null&&(E.curOp.scrollLeft=ee),Ee!=null&&(E.curOp.scrollTop=Ee)}function ga(E,ee){Aa(E),E.curOp.scrollToPos=ee}function Aa(E){var ee=E.curOp.scrollToPos;if(ee){E.curOp.scrollToPos=null;var Ee=ko(E,ee.from),we=ko(E,ee.to);si(E,Ee,we,ee.margin)}}function si(E,ee,Ee,we){var Re=fa(E,{left:Math.min(ee.left,Ee.left),top:Math.min(ee.top,Ee.top)-we,right:Math.max(ee.right,Ee.right),bottom:Math.max(ee.bottom,Ee.bottom)+we});Bi(E,Re.scrollLeft,Re.scrollTop)}function fi(E,ee){Math.abs(E.doc.scrollTop-ee)<2||(Oe||_o(E,{top:ee}),ki(E,ee,!0),Oe&&_o(E),Ua(E,100))}function ki(E,ee,Ee){ee=Math.max(0,Math.min(E.display.scroller.scrollHeight-E.display.scroller.clientHeight,ee)),!(E.display.scroller.scrollTop==ee&&!Ee)&&(E.doc.scrollTop=ee,E.display.scrollbars.setScrollTop(ee),E.display.scroller.scrollTop!=ee&&(E.display.scroller.scrollTop=ee))}function Ia(E,ee,Ee,we){ee=Math.max(0,Math.min(ee,E.display.scroller.scrollWidth-E.display.scroller.clientWidth)),!((Ee?ee==E.doc.scrollLeft:Math.abs(E.doc.scrollLeft-ee)<2)&&!we)&&(E.doc.scrollLeft=ee,ns(E),E.display.scroller.scrollLeft!=ee&&(E.display.scroller.scrollLeft=ee),E.display.scrollbars.setScrollLeft(ee))}function ma(E){var ee=E.display,Ee=ee.gutters.offsetWidth,we=Math.round(E.doc.height+Mi(E.display));return{clientHeight:ee.scroller.clientHeight,viewHeight:ee.wrapper.clientHeight,scrollWidth:ee.scroller.scrollWidth,clientWidth:ee.scroller.clientWidth,viewWidth:ee.wrapper.clientWidth,barLeft:E.options.fixedGutter?Ee:0,docHeight:we,scrollHeight:we+Li(E)+ee.barHeight,nativeBarWidth:ee.nativeBarWidth,gutterWidth:Ee}}var Ca=function(E,ee,Ee){this.cm=Ee;var we=this.vert=Le("div",[Le("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Re=this.horiz=Le("div",[Le("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");we.tabIndex=Re.tabIndex=-1,E(we),E(Re),Qt(we,"scroll",function(){we.clientHeight&&ee(we.scrollTop,"vertical")}),Qt(Re,"scroll",function(){Re.clientWidth&&ee(Re.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&ie<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ca.prototype.update=function(E){var ee=E.scrollWidth>E.clientWidth+1,Ee=E.scrollHeight>E.clientHeight+1,we=E.nativeBarWidth;if(Ee){this.vert.style.display="block",this.vert.style.bottom=ee?we+"px":"0";var Re=E.viewHeight-(ee?we:0);this.vert.firstChild.style.height=Math.max(0,E.scrollHeight-E.clientHeight+Re)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ee){this.horiz.style.display="block",this.horiz.style.right=Ee?we+"px":"0",this.horiz.style.left=E.barLeft+"px";var $e=E.viewWidth-E.barLeft-(Ee?we:0);this.horiz.firstChild.style.width=Math.max(0,E.scrollWidth-E.clientWidth+$e)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&E.clientHeight>0&&(we==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:Ee?we:0,bottom:ee?we:0}},Ca.prototype.setScrollLeft=function(E){this.horiz.scrollLeft!=E&&(this.horiz.scrollLeft=E),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ca.prototype.setScrollTop=function(E){this.vert.scrollTop!=E&&(this.vert.scrollTop=E),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ca.prototype.zeroWidthHack=function(){var E=le&&!re?"12px":"18px";this.horiz.style.height=this.vert.style.width=E,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Xe,this.disableVert=new Xe},Ca.prototype.enableZeroWidthBar=function(E,ee,Ee){E.style.pointerEvents="auto";function we(){var Re=E.getBoundingClientRect(),$e=Ee=="vert"?document.elementFromPoint(Re.right-1,(Re.top+Re.bottom)/2):document.elementFromPoint((Re.right+Re.left)/2,Re.bottom-1);$e!=E?E.style.pointerEvents="none":ee.set(1e3,we)}ee.set(1e3,we)},Ca.prototype.clear=function(){var E=this.horiz.parentNode;E.removeChild(this.horiz),E.removeChild(this.vert)};var ya=function(){};ya.prototype.update=function(){return{bottom:0,right:0}},ya.prototype.setScrollLeft=function(){},ya.prototype.setScrollTop=function(){},ya.prototype.clear=function(){};function Na(E,ee){ee||(ee=ma(E));var Ee=E.display.barWidth,we=E.display.barHeight;Ba(E,ee);for(var Re=0;Re<4&&Ee!=E.display.barWidth||we!=E.display.barHeight;Re++)Ee!=E.display.barWidth&&E.options.lineWrapping&&Qr(E),Ba(E,ma(E)),Ee=E.display.barWidth,we=E.display.barHeight}function Ba(E,ee){var Ee=E.display,we=Ee.scrollbars.update(ee);Ee.sizer.style.paddingRight=(Ee.barWidth=we.right)+"px",Ee.sizer.style.paddingBottom=(Ee.barHeight=we.bottom)+"px",Ee.heightForcer.style.borderBottom=we.bottom+"px solid transparent",we.right&&we.bottom?(Ee.scrollbarFiller.style.display="block",Ee.scrollbarFiller.style.height=we.bottom+"px",Ee.scrollbarFiller.style.width=we.right+"px"):Ee.scrollbarFiller.style.display="",we.bottom&&E.options.coverGutterNextToScrollbar&&E.options.fixedGutter?(Ee.gutterFiller.style.display="block",Ee.gutterFiller.style.height=we.bottom+"px",Ee.gutterFiller.style.width=ee.gutterWidth+"px"):Ee.gutterFiller.style.display=""}var Za={native:Ca,null:ya};function eo(E){E.display.scrollbars&&(E.display.scrollbars.clear(),E.display.scrollbars.addClass&&Fe(E.display.wrapper,E.display.scrollbars.addClass)),E.display.scrollbars=new Za[E.options.scrollbarStyle](function(ee){E.display.wrapper.insertBefore(ee,E.display.scrollbarFiller),Qt(ee,"mousedown",function(){E.state.focused&&setTimeout(function(){return E.display.input.focus()},0)}),ee.setAttribute("cm-not-content","true")},function(ee,Ee){Ee=="horizontal"?Ia(E,ee):fi(E,ee)},E),E.display.scrollbars.addClass&&We(E.display.wrapper,E.display.scrollbars.addClass)}var Wo=0;function ro(E){E.curOp={cm:E,viewChanged:!1,startHeight:E.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:++Wo},en(E.curOp)}function Io(E){var ee=E.curOp;ee&&Qn(ee,function(Ee){for(var we=0;we<Ee.ops.length;we++)Ee.ops[we].cm.curOp=null;vs(Ee)})}function vs(E){for(var ee=E.ops,Ee=0;Ee<ee.length;Ee++)$a(ee[Ee]);for(var we=0;we<ee.length;we++)ea(ee[we]);for(var Re=0;Re<ee.length;Re++)ta(ee[Re]);for(var $e=0;$e<ee.length;$e++)ba(ee[$e]);for(var ft=0;ft<ee.length;ft++)Gi(ee[ft])}function $a(E){var ee=E.cm,Ee=ee.display;oo(ee),E.updateMaxLine&&Cn(ee),E.mustUpdate=E.viewChanged||E.forceUpdate||E.scrollTop!=null||E.scrollToPos&&(E.scrollToPos.from.line<Ee.viewFrom||E.scrollToPos.to.line>=Ee.viewTo)||Ee.maxLineChanged&&ee.options.lineWrapping,E.update=E.mustUpdate&&new Ma(ee,E.mustUpdate&&{top:E.scrollTop,ensure:E.scrollToPos},E.forceUpdate)}function ea(E){E.updatedDisplay=E.mustUpdate&&jo(E.cm,E.update)}function ta(E){var ee=E.cm,Ee=ee.display;E.updatedDisplay&&Qr(ee),E.barMeasure=ma(ee),Ee.maxLineChanged&&!ee.options.lineWrapping&&(E.adjustWidthTo=qa(ee,Ee.maxLine,Ee.maxLine.text.length).left+3,ee.display.sizerWidth=E.adjustWidthTo,E.barMeasure.scrollWidth=Math.max(Ee.scroller.clientWidth,Ee.sizer.offsetLeft+E.adjustWidthTo+Li(ee)+ee.display.barWidth),E.maxScrollLeft=Math.max(0,Ee.sizer.offsetLeft+E.adjustWidthTo-li(ee))),(E.updatedDisplay||E.selectionChanged)&&(E.preparedSelection=Ee.input.prepareSelection())}function ba(E){var ee=E.cm;E.adjustWidthTo!=null&&(ee.display.sizer.style.minWidth=E.adjustWidthTo+"px",E.maxScrollLeft<ee.doc.scrollLeft&&Ia(ee,Math.min(ee.display.scroller.scrollLeft,E.maxScrollLeft),!0),ee.display.maxLineChanged=!1);var Ee=E.focus&&E.focus==_e();E.preparedSelection&&ee.display.input.showSelection(E.preparedSelection,Ee),(E.updatedDisplay||E.startHeight!=ee.doc.height)&&Na(ee,E.barMeasure),E.updatedDisplay&&js(ee,E.barMeasure),E.selectionChanged&&rr(ee),ee.state.focused&&E.updateInput&&ee.display.input.reset(E.typing),Ee&&gr(E.cm)}function Gi(E){var ee=E.cm,Ee=ee.display,we=ee.doc;if(E.updatedDisplay&&ts(ee,E.update),Ee.wheelStartX!=null&&(E.scrollTop!=null||E.scrollLeft!=null||E.scrollToPos)&&(Ee.wheelStartX=Ee.wheelStartY=null),E.scrollTop!=null&&ki(ee,E.scrollTop,E.forceScroll),E.scrollLeft!=null&&Ia(ee,E.scrollLeft,!0,!0),E.scrollToPos){var Re=Hi(ee,kr(we,E.scrollToPos.from),kr(we,E.scrollToPos.to),E.scrollToPos.margin);wi(ee,Re)}var $e=E.maybeHiddenMarkers,ft=E.maybeUnhiddenMarkers;if($e)for(var wt=0;wt<$e.length;++wt)$e[wt].lines.length||Pt($e[wt],"hide");if(ft)for(var Mt=0;Mt<ft.length;++Mt)ft[Mt].lines.length&&Pt(ft[Mt],"unhide");Ee.wrapper.offsetHeight&&(we.scrollTop=ee.display.scroller.scrollTop),E.changeObjs&&Pt(ee,"changes",ee,E.changeObjs),E.update&&E.update.finish()}function gi(E,ee){if(E.curOp)return ee();ro(E);try{return ee()}finally{Io(E)}}function na(E,ee){return function(){if(E.curOp)return ee.apply(E,arguments);ro(E);try{return ee.apply(E,arguments)}finally{Io(E)}}}function Xi(E){return function(){if(this.curOp)return E.apply(this,arguments);ro(this);try{return E.apply(this,arguments)}finally{Io(this)}}}function Pa(E){return function(){var ee=this.cm;if(!ee||ee.curOp)return E.apply(this,arguments);ro(ee);try{return E.apply(this,arguments)}finally{Io(ee)}}}function Ua(E,ee){E.doc.highlightFrontier<E.display.viewTo&&E.state.highlight.set(ee,it(Ya,E))}function Ya(E){var ee=E.doc;if(!(ee.highlightFrontier>=E.display.viewTo)){var Ee=+new Date+E.options.workTime,we=ia(E,ee.highlightFrontier),Re=[];ee.iter(we.line,Math.min(ee.first+ee.size,E.display.viewTo+500),function($e){if(we.line>=E.display.viewFrom){var ft=$e.styles,wt=$e.text.length>E.options.maxHighlightLength?an(ee.mode,we.state):null,Mt=xa(E,$e,we,!0);wt&&(we.state=wt),$e.styles=Mt.styles;var Rt=$e.styleClasses,fn=Mt.classes;fn?$e.styleClasses=fn:Rt&&($e.styleClasses=null);for(var An=!ft||ft.length!=$e.styles.length||Rt!=fn&&(!Rt||!fn||Rt.bgClass!=fn.bgClass||Rt.textClass!=fn.textClass),cr=0;!An&&cr<ft.length;++cr)An=ft[cr]!=$e.styles[cr];An&&Re.push(we.line),$e.stateAfter=we.save(),we.nextLine()}else $e.text.length<=E.options.maxHighlightLength&&Ha(E,$e.text,we),$e.stateAfter=we.line%5==0?we.save():null,we.nextLine();if(+new Date>Ee)return Ua(E,E.options.workDelay),!0}),ee.highlightFrontier=we.line,ee.modeFrontier=Math.max(ee.modeFrontier,we.line),Re.length&&gi(E,function(){for(var $e=0;$e<Re.length;$e++)Do(E,Re[$e],"text")})}}var Ma=function(E,ee,Ee){var we=E.display;this.viewport=ee,this.visible=qr(we,E.doc,ee),this.editorIsHidden=!we.wrapper.offsetWidth,this.wrapperHeight=we.wrapper.clientHeight,this.wrapperWidth=we.wrapper.clientWidth,this.oldDisplayWidth=li(E),this.force=Ee,this.dims=ms(E),this.events=[]};Ma.prototype.signal=function(E,ee){yn(E,ee)&&this.events.push(arguments)},Ma.prototype.finish=function(){for(var E=0;E<this.events.length;E++)Pt.apply(null,this.events[E])};function oo(E){var ee=E.display;!ee.scrollbarsClipped&&ee.scroller.offsetWidth&&(ee.nativeBarWidth=ee.scroller.offsetWidth-ee.scroller.clientWidth,ee.heightForcer.style.height=Li(E)+"px",ee.sizer.style.marginBottom=-ee.nativeBarWidth+"px",ee.sizer.style.borderRightWidth=Li(E)+"px",ee.scrollbarsClipped=!0)}function Oo(E){if(E.hasFocus())return null;var ee=_e();if(!ee||!Ue(E.display.lineDiv,ee))return null;var Ee={activeElt:ee};if(window.getSelection){var we=window.getSelection();we.anchorNode&&we.extend&&Ue(E.display.lineDiv,we.anchorNode)&&(Ee.anchorNode=we.anchorNode,Ee.anchorOffset=we.anchorOffset,Ee.focusNode=we.focusNode,Ee.focusOffset=we.focusOffset)}return Ee}function So(E){if(!(!E||!E.activeElt||E.activeElt==_e())&&(E.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(E.activeElt.nodeName)&&E.anchorNode&&Ue(document.body,E.anchorNode)&&Ue(document.body,E.focusNode))){var ee=window.getSelection(),Ee=document.createRange();Ee.setEnd(E.anchorNode,E.anchorOffset),Ee.collapse(!1),ee.removeAllRanges(),ee.addRange(Ee),ee.extend(E.focusNode,E.focusOffset)}}function jo(E,ee){var Ee=E.display,we=E.doc;if(ee.editorIsHidden)return To(E),!1;if(!ee.force&&ee.visible.from>=Ee.viewFrom&&ee.visible.to<=Ee.viewTo&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>=Ee.viewTo)&&Ee.renderedView==Ee.view&&dn(E)==0)return!1;Ko(E)&&(To(E),ee.dims=ms(E));var Re=we.first+we.size,$e=Math.max(ee.visible.from-E.options.viewportMargin,we.first),ft=Math.min(Re,ee.visible.to+E.options.viewportMargin);Ee.viewFrom<$e&&$e-Ee.viewFrom<20&&($e=Math.max(we.first,Ee.viewFrom)),Ee.viewTo>ft&&Ee.viewTo-ft<20&&(ft=Math.min(Re,Ee.viewTo)),Ni&&($e=gn(E.doc,$e),ft=Vn(E.doc,ft));var wt=$e!=Ee.viewFrom||ft!=Ee.viewTo||Ee.lastWrapHeight!=ee.wrapperHeight||Ee.lastWrapWidth!=ee.wrapperWidth;Lt(E,$e,ft),Ee.viewOffset=Dn(_n(E.doc,Ee.viewFrom)),E.display.mover.style.top=Ee.viewOffset+"px";var Mt=dn(E);if(!wt&&Mt==0&&!ee.force&&Ee.renderedView==Ee.view&&(Ee.updateLineNumbers==null||Ee.updateLineNumbers>=Ee.viewTo))return!1;var Rt=Oo(E);return Mt>4&&(Ee.lineDiv.style.display="none"),ks(E,Ee.updateLineNumbers,ee.dims),Mt>4&&(Ee.lineDiv.style.display=""),Ee.renderedView=Ee.view,So(Rt),ke(Ee.cursorDiv),ke(Ee.selectionDiv),Ee.gutters.style.height=Ee.sizer.style.minHeight=0,wt&&(Ee.lastWrapHeight=ee.wrapperHeight,Ee.lastWrapWidth=ee.wrapperWidth,Ua(E,400)),Ee.updateLineNumbers=null,!0}function ts(E,ee){for(var Ee=ee.viewport,we=!0;;we=!1){if(!we||!E.options.lineWrapping||ee.oldDisplayWidth==li(E)){if(Ee&&Ee.top!=null&&(Ee={top:Math.min(E.doc.height+Mi(E.display)-Vi(E),Ee.top)}),ee.visible=qr(E.display,E.doc,Ee),ee.visible.from>=E.display.viewFrom&&ee.visible.to<=E.display.viewTo)break}else we&&(ee.visible=qr(E.display,E.doc,Ee));if(!jo(E,ee))break;Qr(E);var Re=ma(E);un(E),Na(E,Re),js(E,Re),ee.force=!1}ee.signal(E,"update",E),(E.display.viewFrom!=E.display.reportedViewFrom||E.display.viewTo!=E.display.reportedViewTo)&&(ee.signal(E,"viewportChange",E,E.display.viewFrom,E.display.viewTo),E.display.reportedViewFrom=E.display.viewFrom,E.display.reportedViewTo=E.display.viewTo)}function _o(E,ee){var Ee=new Ma(E,ee);if(jo(E,Ee)){Qr(E),ts(E,Ee);var we=ma(E);un(E),Na(E,we),js(E,we),Ee.finish()}}function ks(E,ee,Ee){var we=E.display,Re=E.options.lineNumbers,$e=we.lineDiv,ft=$e.firstChild;function wt(Fr){var ti=Fr.nextSibling;return te&&le&&E.display.currentWheelTarget==Fr?Fr.style.display="none":Fr.parentNode.removeChild(Fr),ti}for(var Mt=we.view,Rt=we.viewFrom,fn=0;fn<Mt.length;fn++){var An=Mt[fn];if(!An.hidden)if(!An.node||An.node.parentNode!=$e){var cr=ii(E,An,Rt,Ee);$e.insertBefore(cr,ft)}else{for(;ft!=An.node;)ft=wt(ft);var er=Re&&ee!=null&&ee<=Rt&&An.lineNumber;An.changes&&(lt(An.changes,"gutter")>-1&&(er=!1),Br(E,An,Rt,Ee)),er&&(ke(An.lineNumber),An.lineNumber.appendChild(document.createTextNode(nn(E.options,Rt)))),ft=An.node.nextSibling}Rt+=An.size}for(;ft;)ft=wt(ft)}function xs(E){var ee=E.gutters.offsetWidth;E.sizer.style.marginLeft=ee+"px"}function js(E,ee){E.display.sizer.style.minHeight=ee.docHeight+"px",E.display.heightForcer.style.top=ee.docHeight+"px",E.display.gutters.style.height=ee.docHeight+E.display.barHeight+Li(E)+"px"}function ns(E){var ee=E.display,Ee=ee.view;if(!(!ee.alignWidgets&&(!ee.gutters.firstChild||!E.options.fixedGutter))){for(var we=_s(ee)-ee.scroller.scrollLeft+E.doc.scrollLeft,Re=ee.gutters.offsetWidth,$e=we+"px",ft=0;ft<Ee.length;ft++)if(!Ee[ft].hidden){E.options.fixedGutter&&(Ee[ft].gutter&&(Ee[ft].gutter.style.left=$e),Ee[ft].gutterBackground&&(Ee[ft].gutterBackground.style.left=$e));var wt=Ee[ft].alignable;if(wt)for(var Mt=0;Mt<wt.length;Mt++)wt[Mt].style.left=$e}E.options.fixedGutter&&(ee.gutters.style.left=we+Re+"px")}}function Ko(E){if(!E.options.lineNumbers)return!1;var ee=E.doc,Ee=nn(E.options,ee.first+ee.size-1),we=E.display;if(Ee.length!=we.lineNumChars){var Re=we.measure.appendChild(Le("div",[Le("div",Ee)],"CodeMirror-linenumber CodeMirror-gutter-elt")),$e=Re.firstChild.offsetWidth,ft=Re.offsetWidth-$e;return we.lineGutter.style.width="",we.lineNumInnerWidth=Math.max($e,we.lineGutter.offsetWidth-ft)+1,we.lineNumWidth=we.lineNumInnerWidth+ft,we.lineNumChars=we.lineNumInnerWidth?Ee.length:-1,we.lineGutter.style.width=we.lineNumWidth+"px",xs(E.display),!0}return!1}function ws(E,ee){for(var Ee=[],we=!1,Re=0;Re<E.length;Re++){var $e=E[Re],ft=null;if(typeof $e!="string"&&(ft=$e.style,$e=$e.className),$e=="CodeMirror-linenumbers")if(ee)we=!0;else continue;Ee.push({className:$e,style:ft})}return ee&&!we&&Ee.push({className:"CodeMirror-linenumbers",style:null}),Ee}function ss(E){var ee=E.gutters,Ee=E.gutterSpecs;ke(ee),E.lineGutter=null;for(var we=0;we<Ee.length;++we){var Re=Ee[we],$e=Re.className,ft=Re.style,wt=ee.appendChild(Le("div",null,"CodeMirror-gutter "+$e));ft&&(wt.style.cssText=ft),$e=="CodeMirror-linenumbers"&&(E.lineGutter=wt,wt.style.width=(E.lineNumWidth||1)+"px")}ee.style.display=Ee.length?"":"none",xs(E)}function qo(E){ss(E.display),Ea(E),ns(E)}function Ls(E,ee,Ee,we){var Re=this;this.input=Ee,Re.scrollbarFiller=Le("div",null,"CodeMirror-scrollbar-filler"),Re.scrollbarFiller.setAttribute("cm-not-content","true"),Re.gutterFiller=Le("div",null,"CodeMirror-gutter-filler"),Re.gutterFiller.setAttribute("cm-not-content","true"),Re.lineDiv=Ie("div",null,"CodeMirror-code"),Re.selectionDiv=Le("div",null,null,"position: relative; z-index: 1"),Re.cursorDiv=Le("div",null,"CodeMirror-cursors"),Re.measure=Le("div",null,"CodeMirror-measure"),Re.lineMeasure=Le("div",null,"CodeMirror-measure"),Re.lineSpace=Ie("div",[Re.measure,Re.lineMeasure,Re.selectionDiv,Re.cursorDiv,Re.lineDiv],null,"position: relative; outline: none");var $e=Ie("div",[Re.lineSpace],"CodeMirror-lines");Re.mover=Le("div",[$e],null,"position: relative"),Re.sizer=Le("div",[Re.mover],"CodeMirror-sizer"),Re.sizerWidth=null,Re.heightForcer=Le("div",null,null,"position: absolute; height: "+dt+"px; width: 1px;"),Re.gutters=Le("div",null,"CodeMirror-gutters"),Re.lineGutter=null,Re.scroller=Le("div",[Re.sizer,Re.heightForcer,Re.gutters],"CodeMirror-scroll"),Re.scroller.setAttribute("tabIndex","-1"),Re.wrapper=Le("div",[Re.scrollbarFiller,Re.gutterFiller,Re.scroller],"CodeMirror"),ve&&ie<8&&(Re.gutters.style.zIndex=-1,Re.scroller.style.paddingRight=0),!te&&!(Oe&&pe)&&(Re.scroller.draggable=!0),E&&(E.appendChild?E.appendChild(Re.wrapper):E(Re.wrapper)),Re.viewFrom=Re.viewTo=ee.first,Re.reportedViewFrom=Re.reportedViewTo=ee.first,Re.view=[],Re.renderedView=null,Re.externalMeasured=null,Re.viewOffset=0,Re.lastWrapHeight=Re.lastWrapWidth=0,Re.updateLineNumbers=null,Re.nativeBarWidth=Re.barHeight=Re.barWidth=0,Re.scrollbarsClipped=!1,Re.lineNumWidth=Re.lineNumInnerWidth=Re.lineNumChars=null,Re.alignWidgets=!1,Re.cachedCharWidth=Re.cachedTextHeight=Re.cachedPaddingH=null,Re.maxLine=null,Re.maxLineLength=0,Re.maxLineChanged=!1,Re.wheelDX=Re.wheelDY=Re.wheelStartX=Re.wheelStartY=null,Re.shift=!1,Re.selForContextMenu=null,Re.activeTouch=null,Re.gutterSpecs=ws(we.gutters,we.lineNumbers),ss(Re),Ee.init(Re)}var Es=0,Qo=null;ve?Qo=-.53:Oe?Qo=15:ne?Qo=-.7:he&&(Qo=-1/3);function Zs(E){var ee=E.wheelDeltaX,Ee=E.wheelDeltaY;return ee==null&&E.detail&&E.axis==E.HORIZONTAL_AXIS&&(ee=E.detail),Ee==null&&E.detail&&E.axis==E.VERTICAL_AXIS?Ee=E.detail:Ee==null&&(Ee=E.wheelDelta),{x:ee,y:Ee}}function Ol(E){var ee=Zs(E);return ee.x*=Qo,ee.y*=Qo,ee}function xl(E,ee){var Ee=Zs(ee),we=Ee.x,Re=Ee.y,$e=E.display,ft=$e.scroller,wt=ft.scrollWidth>ft.clientWidth,Mt=ft.scrollHeight>ft.clientHeight;if(we&&wt||Re&&Mt){if(Re&&le&&te){e:for(var Rt=ee.target,fn=$e.view;Rt!=ft;Rt=Rt.parentNode)for(var An=0;An<fn.length;An++)if(fn[An].node==Rt){E.display.currentWheelTarget=Rt;break e}}if(we&&!Oe&&!oe&&Qo!=null){Re&&Mt&&fi(E,Math.max(0,ft.scrollTop+Re*Qo)),Ia(E,Math.max(0,ft.scrollLeft+we*Qo)),(!Re||Re&&Mt)&&Gn(ee),$e.wheelStartX=null;return}if(Re&&Qo!=null){var cr=Re*Qo,er=E.doc.scrollTop,Fr=er+$e.wrapper.clientHeight;cr<0?er=Math.max(0,er+cr-50):Fr=Math.min(E.doc.height,Fr+cr+50),_o(E,{top:er,bottom:Fr})}Es<20&&($e.wheelStartX==null?($e.wheelStartX=ft.scrollLeft,$e.wheelStartY=ft.scrollTop,$e.wheelDX=we,$e.wheelDY=Re,setTimeout(function(){if($e.wheelStartX!=null){var ti=ft.scrollLeft-$e.wheelStartX,Si=ft.scrollTop-$e.wheelStartY,_i=Si&&$e.wheelDY&&Si/$e.wheelDY||ti&&$e.wheelDX&&ti/$e.wheelDX;$e.wheelStartX=$e.wheelStartY=null,_i&&(Qo=(Qo*Es+_i)/(Es+1),++Es)}},200)):($e.wheelDX+=we,$e.wheelDY+=Re))}}var ls=function(E,ee){this.ranges=E,this.primIndex=ee};ls.prototype.primary=function(){return this.ranges[this.primIndex]},ls.prototype.equals=function(E){if(E==this)return!0;if(E.primIndex!=this.primIndex||E.ranges.length!=this.ranges.length)return!1;for(var ee=0;ee<this.ranges.length;ee++){var Ee=this.ranges[ee],we=E.ranges[ee];if(!tr(Ee.anchor,we.anchor)||!tr(Ee.head,we.head))return!1}return!0},ls.prototype.deepCopy=function(){for(var E=[],ee=0;ee<this.ranges.length;ee++)E[ee]=new Co(Ar(this.ranges[ee].anchor),Ar(this.ranges[ee].head));return new ls(E,this.primIndex)},ls.prototype.somethingSelected=function(){for(var E=0;E<this.ranges.length;E++)if(!this.ranges[E].empty())return!0;return!1},ls.prototype.contains=function(E,ee){ee||(ee=E);for(var Ee=0;Ee<this.ranges.length;Ee++){var we=this.ranges[Ee];if(pn(ee,we.from())>=0&&pn(E,we.to())<=0)return Ee}return-1};var Co=function(E,ee){this.anchor=E,this.head=ee};Co.prototype.from=function(){return Jn(this.anchor,this.head)},Co.prototype.to=function(){return jn(this.anchor,this.head)},Co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function cs(E,ee,Ee){var we=E&&E.options.selectionsMayTouch,Re=ee[Ee];ee.sort(function(cr,er){return pn(cr.from(),er.from())}),Ee=lt(ee,Re);for(var $e=1;$e<ee.length;$e++){var ft=ee[$e],wt=ee[$e-1],Mt=pn(wt.to(),ft.from());if(we&&!ft.empty()?Mt>0:Mt>=0){var Rt=Jn(wt.from(),ft.from()),fn=jn(wt.to(),ft.to()),An=wt.empty()?ft.from()==ft.head:wt.from()==wt.head;$e<=Ee&&--Ee,ee.splice(--$e,2,new Co(An?fn:Rt,An?Rt:fn))}}return new ls(ee,Ee)}function Gs(E,ee){return new ls([new Co(E,ee||E)],0)}function tl(E){return E.text?Jt(E.from.line+E.text.length-1,At(E.text).length+(E.text.length==1?E.from.ch:0)):E.to}function Jo(E,ee){if(pn(E,ee.from)<0)return E;if(pn(E,ee.to)<=0)return tl(ee);var Ee=E.line+ee.text.length-(ee.to.line-ee.from.line)-1,we=E.ch;return E.line==ee.to.line&&(we+=tl(ee).ch-ee.to.ch),Jt(Ee,we)}function No(E,ee){for(var Ee=[],we=0;we<E.sel.ranges.length;we++){var Re=E.sel.ranges[we];Ee.push(new Co(Jo(Re.anchor,ee),Jo(Re.head,ee)))}return cs(E.cm,Ee,E.sel.primIndex)}function Zo(E,ee,Ee){return E.line==ee.line?Jt(Ee.line,E.ch-ee.ch+Ee.ch):Jt(Ee.line+(E.line-ee.line),E.ch)}function Ks(E,ee,Ee){for(var we=[],Re=Jt(E.first,0),$e=Re,ft=0;ft<ee.length;ft++){var wt=ee[ft],Mt=Zo(wt.from,Re,$e),Rt=Zo(tl(wt),Re,$e);if(Re=wt.to,$e=Rt,Ee=="around"){var fn=E.sel.ranges[ft],An=pn(fn.head,fn.anchor)<0;we[ft]=new Co(An?Rt:Mt,An?Mt:Rt)}else we[ft]=new Co(Mt,Mt)}return new ls(we,E.sel.primIndex)}function As(E){E.doc.mode=cn(E.options,E.doc.modeOption),zs(E)}function zs(E){E.doc.iter(function(ee){ee.stateAfter&&(ee.stateAfter=null),ee.styles&&(ee.styles=null)}),E.doc.modeFrontier=E.doc.highlightFrontier=E.doc.first,Ua(E,100),E.state.modeGen++,E.curOp&&Ea(E)}function to(E,ee){return ee.from.ch==0&&ee.to.ch==0&&At(ee.text)==""&&(!E.cm||E.cm.options.wholeLineUpdateBefore)}function yi(E,ee,Ee,we){function Re(Qi){return Ee?Ee[Qi]:null}function $e(Qi,Pi,sa){pr(Qi,Pi,sa,we),Kn(Qi,"change",Qi,ee)}function ft(Qi,Pi){for(var sa=[],Wa=Qi;Wa<Pi;++Wa)sa.push(new Zn(Rt[Wa],Re(Wa),we));return sa}var wt=ee.from,Mt=ee.to,Rt=ee.text,fn=_n(E,wt.line),An=_n(E,Mt.line),cr=At(Rt),er=Re(Rt.length-1),Fr=Mt.line-wt.line;if(ee.full)E.insert(0,ft(0,Rt.length)),E.remove(Rt.length,E.size-Rt.length);else if(to(E,ee)){var ti=ft(0,Rt.length-1);$e(An,An.text,er),Fr&&E.remove(wt.line,Fr),ti.length&&E.insert(wt.line,ti)}else if(fn==An)if(Rt.length==1)$e(fn,fn.text.slice(0,wt.ch)+cr+fn.text.slice(Mt.ch),er);else{var Si=ft(1,Rt.length-1);Si.push(new Zn(cr+fn.text.slice(Mt.ch),er,we)),$e(fn,fn.text.slice(0,wt.ch)+Rt[0],Re(0)),E.insert(wt.line+1,Si)}else if(Rt.length==1)$e(fn,fn.text.slice(0,wt.ch)+Rt[0]+An.text.slice(Mt.ch),Re(0)),E.remove(wt.line+1,Fr);else{$e(fn,fn.text.slice(0,wt.ch)+Rt[0],Re(0)),$e(An,cr+An.text.slice(Mt.ch),er);var _i=ft(1,Rt.length-1);Fr>1&&E.remove(wt.line+1,Fr-1),E.insert(wt.line+1,_i)}Kn(E,"change",E,ee)}function Yi(E,ee,Ee){function we(Re,$e,ft){if(Re.linked)for(var wt=0;wt<Re.linked.length;++wt){var Mt=Re.linked[wt];if(Mt.doc!=$e){var Rt=ft&&Mt.sharedHist;Ee&&!Rt||(ee(Mt.doc,Rt),we(Mt.doc,Re,Rt))}}}we(E,null,!0)}function ka(E,ee){if(ee.cm)throw new Error("This document is already in use.");E.doc=ee,ee.cm=E,os(E),As(E),Va(E),E.options.lineWrapping||Cn(E),E.options.mode=ee.modeOption,Ea(E)}function Va(E){(E.doc.direction=="rtl"?We:Fe)(E.display.lineDiv,"CodeMirror-rtl")}function Go(E){gi(E,function(){Va(E),Ea(E)})}function Xo(E){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=E||1}function gl(E,ee){var Ee={from:Ar(ee.from),to:tl(ee),text:hr(E,ee.from,ee.to)};return Kc(E,Ee,ee.from.line,ee.to.line+1),Yi(E,function(we){return Kc(we,Ee,ee.from.line,ee.to.line+1)},!0),Ee}function Js(E){for(;E.length;){var ee=At(E);if(ee.ranges)E.pop();else break}}function Dl(E,ee){if(ee)return Js(E.done),At(E.done);if(E.done.length&&!At(E.done).ranges)return At(E.done);if(E.done.length>1&&!E.done[E.done.length-2].ranges)return E.done.pop(),At(E.done)}function Ps(E,ee,Ee,we){var Re=E.history;Re.undone.length=0;var $e=+new Date,ft,wt;if((Re.lastOp==we||Re.lastOrigin==ee.origin&&ee.origin&&(ee.origin.charAt(0)=="+"&&Re.lastModTime>$e-(E.cm?E.cm.options.historyEventDelay:500)||ee.origin.charAt(0)=="*"))&&(ft=Dl(Re,Re.lastOp==we)))wt=At(ft.changes),pn(ee.from,ee.to)==0&&pn(ee.from,wt.to)==0?wt.to=tl(ee):ft.changes.push(gl(E,ee));else{var Mt=At(Re.done);for((!Mt||!Mt.ranges)&&oc(E.sel,Re.done),ft={changes:[gl(E,ee)],generation:Re.generation},Re.done.push(ft);Re.done.length>Re.undoDepth;)Re.done.shift(),Re.done[0].ranges||Re.done.shift()}Re.done.push(Ee),Re.generation=++Re.maxGeneration,Re.lastModTime=Re.lastSelTime=$e,Re.lastOp=Re.lastSelOp=we,Re.lastOrigin=Re.lastSelOrigin=ee.origin,wt||Pt(E,"historyAdded")}function Il(E,ee,Ee,we){var Re=ee.charAt(0);return Re=="*"||Re=="+"&&Ee.ranges.length==we.ranges.length&&Ee.somethingSelected()==we.somethingSelected()&&new Date-E.history.lastSelTime<=(E.cm?E.cm.options.historyEventDelay:500)}function ac(E,ee,Ee,we){var Re=E.history,$e=we&&we.origin;Ee==Re.lastSelOp||$e&&Re.lastSelOrigin==$e&&(Re.lastModTime==Re.lastSelTime&&Re.lastOrigin==$e||Il(E,$e,At(Re.done),ee))?Re.done[Re.done.length-1]=ee:oc(ee,Re.done),Re.lastSelTime=+new Date,Re.lastSelOrigin=$e,Re.lastSelOp=Ee,we&&we.clearRedo!==!1&&Js(Re.undone)}function oc(E,ee){var Ee=At(ee);Ee&&Ee.ranges&&Ee.equals(E)||ee.push(E)}function Kc(E,ee,Ee,we){var Re=ee["spans_"+E.id],$e=0;E.iter(Math.max(E.first,Ee),Math.min(E.first+E.size,we),function(ft){ft.markedSpans&&((Re||(Re=ee["spans_"+E.id]={}))[$e]=ft.markedSpans),++$e})}function Rl(E){if(!E)return null;for(var ee,Ee=0;Ee<E.length;++Ee)E[Ee].marker.explicitlyCleared?ee||(ee=E.slice(0,Ee)):ee&&ee.push(E[Ee]);return ee?ee.length?ee:null:E}function Bl(E,ee){var Ee=ee["spans_"+E.id];if(!Ee)return null;for(var we=[],Re=0;Re<ee.text.length;++Re)we.push(Rl(Ee[Re]));return we}function mu(E,ee){var Ee=Bl(E,ee),we=Ti(E,ee);if(!Ee)return we;if(!we)return Ee;for(var Re=0;Re<Ee.length;++Re){var $e=Ee[Re],ft=we[Re];if($e&&ft)e:for(var wt=0;wt<ft.length;++wt){for(var Mt=ft[wt],Rt=0;Rt<$e.length;++Rt)if($e[Rt].marker==Mt.marker)continue e;$e.push(Mt)}else ft&&(Ee[Re]=ft)}return Ee}function Al(E,ee,Ee){for(var we=[],Re=0;Re<E.length;++Re){var $e=E[Re];if($e.ranges){we.push(Ee?ls.prototype.deepCopy.call($e):$e);continue}var ft=$e.changes,wt=[];we.push({changes:wt});for(var Mt=0;Mt<ft.length;++Mt){var Rt=ft[Mt],fn=void 0;if(wt.push({from:Rt.from,to:Rt.to,text:Rt.text}),ee)for(var An in Rt)(fn=An.match(/^spans_(\d+)$/))&<(ee,Number(fn[1]))>-1&&(At(wt)[An]=Rt[An],delete Rt[An])}}return we}function Qc(E,ee,Ee,we){if(we){var Re=E.anchor;if(Ee){var $e=pn(ee,Re)<0;$e!=pn(Ee,Re)<0?(Re=ee,ee=Ee):$e!=pn(ee,Ee)<0&&(ee=Ee)}return new Co(Re,ee)}else return new Co(Ee||ee,ee)}function sc(E,ee,Ee,we,Re){Re==null&&(Re=E.cm&&(E.cm.display.shift||E.extend)),Ts(E,new ls([Qc(E.sel.primary(),ee,Ee,Re)],0),we)}function ra(E,ee,Ee){for(var we=[],Re=E.cm&&(E.cm.display.shift||E.extend),$e=0;$e<E.sel.ranges.length;$e++)we[$e]=Qc(E.sel.ranges[$e],ee[$e],null,Re);var ft=cs(E.cm,we,E.sel.primIndex);Ts(E,ft,Ee)}function wl(E,ee,Ee,we){var Re=E.sel.ranges.slice(0);Re[ee]=Ee,Ts(E,cs(E.cm,Re,E.sel.primIndex),we)}function vu(E,ee,Ee,we){Ts(E,Gs(ee,Ee),we)}function gu(E,ee,Ee){var we={ranges:ee.ranges,update:function(Re){this.ranges=[];for(var $e=0;$e<Re.length;$e++)this.ranges[$e]=new Co(kr(E,Re[$e].anchor),kr(E,Re[$e].head))},origin:Ee&&Ee.origin};return Pt(E,"beforeSelectionChange",E,we),E.cm&&Pt(E.cm,"beforeSelectionChange",E.cm,we),we.ranges!=ee.ranges?cs(E.cm,we.ranges,we.ranges.length-1):ee}function il(E,ee,Ee){var we=E.history.done,Re=At(we);Re&&Re.ranges?(we[we.length-1]=ee,gc(E,ee,Ee)):Ts(E,ee,Ee)}function Ts(E,ee,Ee){gc(E,ee,Ee),ac(E,E.sel,E.cm?E.cm.curOp.id:NaN,Ee)}function gc(E,ee,Ee){(yn(E,"beforeSelectionChange")||E.cm&&yn(E.cm,"beforeSelectionChange"))&&(ee=gu(E,ee,Ee));var we=Ee&&Ee.bias||(pn(ee.primary().head,E.sel.primary().head)<0?-1:1);ju(E,lc(E,ee,we,!0)),!(Ee&&Ee.scroll===!1)&&E.cm&&va(E.cm)}function ju(E,ee){ee.equals(E.sel)||(E.sel=ee,E.cm&&(E.cm.curOp.updateInput=1,E.cm.curOp.selectionChanged=!0,sn(E.cm)),Kn(E,"cursorActivity",E))}function yu(E){ju(E,lc(E,E.sel,null,!1))}function lc(E,ee,Ee,we){for(var Re,$e=0;$e<ee.ranges.length;$e++){var ft=ee.ranges[$e],wt=ee.ranges.length==E.sel.ranges.length&&E.sel.ranges[$e],Mt=Jc(E,ft.anchor,wt&&wt.anchor,Ee,we),Rt=Jc(E,ft.head,wt&&wt.head,Ee,we);(Re||Mt!=ft.anchor||Rt!=ft.head)&&(Re||(Re=ee.ranges.slice(0,$e)),Re[$e]=new Co(Mt,Rt))}return Re?cs(E.cm,Re,ee.primIndex):ee}function al(E,ee,Ee,we,Re){var $e=_n(E,ee.line);if($e.markedSpans)for(var ft=0;ft<$e.markedSpans.length;++ft){var wt=$e.markedSpans[ft],Mt=wt.marker,Rt="selectLeft"in Mt?!Mt.selectLeft:Mt.inclusiveLeft,fn="selectRight"in Mt?!Mt.selectRight:Mt.inclusiveRight;if((wt.from==null||(Rt?wt.from<=ee.ch:wt.from<ee.ch))&&(wt.to==null||(fn?wt.to>=ee.ch:wt.to>ee.ch))){if(Re&&(Pt(Mt,"beforeCursorEnter"),Mt.explicitlyCleared))if($e.markedSpans){--ft;continue}else break;if(!Mt.atomic)continue;if(Ee){var An=Mt.find(we<0?1:-1),cr=void 0;if((we<0?fn:Rt)&&(An=zl(E,An,-we,An&&An.line==ee.line?$e:null)),An&&An.line==ee.line&&(cr=pn(An,Ee))&&(we<0?cr<0:cr>0))return al(E,An,ee,we,Re)}var er=Mt.find(we<0?-1:1);return(we<0?Rt:fn)&&(er=zl(E,er,we,er.line==ee.line?$e:null)),er?al(E,er,ee,we,Re):null}}return ee}function Jc(E,ee,Ee,we,Re){var $e=we||1,ft=al(E,ee,Ee,$e,Re)||!Re&&al(E,ee,Ee,$e,!0)||al(E,ee,Ee,-$e,Re)||!Re&&al(E,ee,Ee,-$e,!0);return ft||(E.cantEdit=!0,Jt(E.first,0))}function zl(E,ee,Ee,we){return Ee<0&&ee.ch==0?ee.line>E.first?kr(E,Jt(ee.line-1)):null:Ee>0&&ee.ch==(we||_n(E,ee.line)).text.length?ee.line<E.first+E.size-1?Jt(ee.line+1,0):null:new Jt(ee.line,ee.ch+Ee)}function $c(E){E.setSelection(Jt(E.firstLine(),0),Jt(E.lastLine()),nt)}function yc(E,ee,Ee){var we={canceled:!1,from:ee.from,to:ee.to,text:ee.text,origin:ee.origin,cancel:function(){return we.canceled=!0}};return Ee&&(we.update=function(Re,$e,ft,wt){Re&&(we.from=kr(E,Re)),$e&&(we.to=kr(E,$e)),ft&&(we.text=ft),wt!==void 0&&(we.origin=wt)}),Pt(E,"beforeChange",E,we),E.cm&&Pt(E.cm,"beforeChange",E.cm,we),we.canceled?(E.cm&&(E.cm.curOp.updateInput=2),null):{from:we.from,to:we.to,text:we.text,origin:we.origin}}function go(E,ee,Ee){if(E.cm){if(!E.cm.curOp)return na(E.cm,go)(E,ee,Ee);if(E.cm.state.suppressEdits)return}if(!((yn(E,"beforeChange")||E.cm&&yn(E.cm,"beforeChange"))&&(ee=yc(E,ee,!0),!ee))){var we=Qa&&!Ee&&Ri(E,ee.from,ee.to);if(we)for(var Re=we.length-1;Re>=0;--Re)yo(E,{from:we[Re].from,to:we[Re].to,text:Re?[""]:ee.text,origin:ee.origin});else yo(E,ee)}}function yo(E,ee){if(!(ee.text.length==1&&ee.text[0]==""&&pn(ee.from,ee.to)==0)){var Ee=No(E,ee);Ps(E,ee,Ee,E.cm?E.cm.curOp.id:NaN),gs(E,ee,Ee,Ti(E,ee));var we=[];Yi(E,function(Re,$e){!$e&<(we,Re.history)==-1&&(_l(Re.history,ee),we.push(Re.history)),gs(Re,ee,null,Ti(Re,ee))})}}function Ss(E,ee,Ee){var we=E.cm&&E.cm.state.suppressEdits;if(!(we&&!Ee)){for(var Re=E.history,$e,ft=E.sel,wt=ee=="undo"?Re.done:Re.undone,Mt=ee=="undo"?Re.undone:Re.done,Rt=0;Rt<wt.length&&($e=wt[Rt],!(Ee?$e.ranges&&!$e.equals(E.sel):!$e.ranges));Rt++);if(Rt!=wt.length){for(Re.lastOrigin=Re.lastSelOrigin=null;;)if($e=wt.pop(),$e.ranges){if(oc($e,Mt),Ee&&!$e.equals(E.sel)){Ts(E,$e,{clearRedo:!1});return}ft=$e}else if(we){wt.push($e);return}else break;var fn=[];oc(ft,Mt),Mt.push({changes:fn,generation:Re.generation}),Re.generation=$e.generation||++Re.maxGeneration;for(var An=yn(E,"beforeChange")||E.cm&&yn(E.cm,"beforeChange"),cr=function(ti){var Si=$e.changes[ti];if(Si.origin=ee,An&&!yc(E,Si,!1))return wt.length=0,{};fn.push(gl(E,Si));var _i=ti?No(E,Si):At(wt);gs(E,Si,_i,mu(E,Si)),!ti&&E.cm&&E.cm.scrollIntoView({from:Si.from,to:tl(Si)});var Qi=[];Yi(E,function(Pi,sa){!sa&<(Qi,Pi.history)==-1&&(_l(Pi.history,Si),Qi.push(Pi.history)),gs(Pi,Si,null,mu(Pi,Si))})},er=$e.changes.length-1;er>=0;--er){var Fr=cr(er);if(Fr)return Fr.v}}}}function nl(E,ee){if(ee!=0&&(E.first+=ee,E.sel=new ls(ut(E.sel.ranges,function(Re){return new Co(Jt(Re.anchor.line+ee,Re.anchor.ch),Jt(Re.head.line+ee,Re.head.ch))}),E.sel.primIndex),E.cm)){Ea(E.cm,E.first,E.first-ee,ee);for(var Ee=E.cm.display,we=Ee.viewFrom;we<Ee.viewTo;we++)Do(E.cm,we,"gutter")}}function gs(E,ee,Ee,we){if(E.cm&&!E.cm.curOp)return na(E.cm,gs)(E,ee,Ee,we);if(ee.to.line<E.first){nl(E,ee.text.length-1-(ee.to.line-ee.from.line));return}if(!(ee.from.line>E.lastLine())){if(ee.from.line<E.first){var Re=ee.text.length-1-(E.first-ee.from.line);nl(E,Re),ee={from:Jt(E.first,0),to:Jt(ee.to.line+Re,ee.to.ch),text:[At(ee.text)],origin:ee.origin}}var $e=E.lastLine();ee.to.line>$e&&(ee={from:ee.from,to:Jt($e,_n(E,$e).text.length),text:[ee.text[0]],origin:ee.origin}),ee.removed=hr(E,ee.from,ee.to),Ee||(Ee=No(E,ee)),E.cm?yl(E.cm,ee,we):yi(E,ee,we),gc(E,Ee,nt),E.cantEdit&&Jc(E,Jt(E.firstLine(),0))&&(E.cantEdit=!1)}}function yl(E,ee,Ee){var we=E.doc,Re=E.display,$e=ee.from,ft=ee.to,wt=!1,Mt=$e.line;E.options.lineWrapping||(Mt=Lr(Nt(_n(we,$e.line))),we.iter(Mt,ft.line+1,function(er){if(er==Re.maxLine)return wt=!0,!0})),we.sel.contains(ee.from,ee.to)>-1&&sn(E),yi(we,ee,Ee,Fs(E)),E.options.lineWrapping||(we.iter(Mt,$e.line+ee.text.length,function(er){var Fr=In(er);Fr>Re.maxLineLength&&(Re.maxLine=er,Re.maxLineLength=Fr,Re.maxLineChanged=!0,wt=!1)}),wt&&(E.curOp.updateMaxLine=!0)),ao(we,$e.line),Ua(E,400);var Rt=ee.text.length-(ft.line-$e.line)-1;ee.full?Ea(E):$e.line==ft.line&&ee.text.length==1&&!to(E.doc,ee)?Do(E,$e.line,"text"):Ea(E,$e.line,ft.line+1,Rt);var fn=yn(E,"changes"),An=yn(E,"change");if(An||fn){var cr={from:$e,to:ft,text:ee.text,removed:ee.removed,origin:ee.origin};An&&Kn(E,"change",E,cr),fn&&(E.curOp.changeObjs||(E.curOp.changeObjs=[])).push(cr)}E.display.selForContextMenu=null}function ol(E,ee,Ee,we,Re){var $e;we||(we=Ee),pn(we,Ee)<0&&($e=[we,Ee],Ee=$e[0],we=$e[1]),typeof ee=="string"&&(ee=E.splitLines(ee)),go(E,{from:Ee,to:we,text:ee,origin:Re})}function bc(E,ee,Ee,we){Ee<E.line?E.line+=we:ee<E.line&&(E.line=ee,E.ch=0)}function Hl(E,ee,Ee,we){for(var Re=0;Re<E.length;++Re){var $e=E[Re],ft=!0;if($e.ranges){$e.copied||($e=E[Re]=$e.deepCopy(),$e.copied=!0);for(var wt=0;wt<$e.ranges.length;wt++)bc($e.ranges[wt].anchor,ee,Ee,we),bc($e.ranges[wt].head,ee,Ee,we);continue}for(var Mt=0;Mt<$e.changes.length;++Mt){var Rt=$e.changes[Mt];if(Ee<Rt.from.line)Rt.from=Jt(Rt.from.line+we,Rt.from.ch),Rt.to=Jt(Rt.to.line+we,Rt.to.ch);else if(ee<=Rt.to.line){ft=!1;break}}ft||(E.splice(0,Re+1),Re=0)}}function _l(E,ee){var Ee=ee.from.line,we=ee.to.line,Re=ee.text.length-(we-Ee)-1;Hl(E.done,Ee,we,Re),Hl(E.undone,Ee,we,Re)}function Ml(E,ee,Ee,we){var Re=ee,$e=ee;return typeof ee=="number"?$e=_n(E,ir(E,ee)):Re=Lr(ee),Re==null?null:(we($e,Re)&&E.cm&&Do(E.cm,Re,Ee),$e)}function Wl(E){this.lines=E,this.parent=null;for(var ee=0,Ee=0;Ee<E.length;++Ee)E[Ee].parent=this,ee+=E[Ee].height;this.height=ee}Wl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(E,ee){for(var Ee=E,we=E+ee;Ee<we;++Ee){var Re=this.lines[Ee];this.height-=Re.height,$n(Re),Kn(Re,"delete")}this.lines.splice(E,ee)},collapse:function(E){E.push.apply(E,this.lines)},insertInner:function(E,ee,Ee){this.height+=Ee,this.lines=this.lines.slice(0,E).concat(ee).concat(this.lines.slice(E));for(var we=0;we<ee.length;++we)ee[we].parent=this},iterN:function(E,ee,Ee){for(var we=E+ee;E<we;++E)if(Ee(this.lines[E]))return!0}};function qc(E){this.children=E;for(var ee=0,Ee=0,we=0;we<E.length;++we){var Re=E[we];ee+=Re.chunkSize(),Ee+=Re.height,Re.parent=this}this.size=ee,this.height=Ee,this.parent=null}qc.prototype={chunkSize:function(){return this.size},removeInner:function(E,ee){this.size-=ee;for(var Ee=0;Ee<this.children.length;++Ee){var we=this.children[Ee],Re=we.chunkSize();if(E<Re){var $e=Math.min(ee,Re-E),ft=we.height;if(we.removeInner(E,$e),this.height-=ft-we.height,Re==$e&&(this.children.splice(Ee--,1),we.parent=null),(ee-=$e)==0)break;E=0}else E-=Re}if(this.size-ee<25&&(this.children.length>1||!(this.children[0]instanceof Wl))){var wt=[];this.collapse(wt),this.children=[new Wl(wt)],this.children[0].parent=this}},collapse:function(E){for(var ee=0;ee<this.children.length;++ee)this.children[ee].collapse(E)},insertInner:function(E,ee,Ee){this.size+=ee.length,this.height+=Ee;for(var we=0;we<this.children.length;++we){var Re=this.children[we],$e=Re.chunkSize();if(E<=$e){if(Re.insertInner(E,ee,Ee),Re.lines&&Re.lines.length>50){for(var ft=Re.lines.length%25+25,wt=ft;wt<Re.lines.length;){var Mt=new Wl(Re.lines.slice(wt,wt+=25));Re.height-=Mt.height,this.children.splice(++we,0,Mt),Mt.parent=this}Re.lines=Re.lines.slice(0,ft),this.maybeSpill()}break}E-=$e}},maybeSpill:function(){if(!(this.children.length<=10)){var E=this;do{var ee=E.children.splice(E.children.length-5,5),Ee=new qc(ee);if(E.parent){E.size-=Ee.size,E.height-=Ee.height;var Re=lt(E.parent.children,E);E.parent.children.splice(Re+1,0,Ee)}else{var we=new qc(E.children);we.parent=E,E.children=[we,Ee],E=we}Ee.parent=E.parent}while(E.children.length>10);E.parent.maybeSpill()}},iterN:function(E,ee,Ee){for(var we=0;we<this.children.length;++we){var Re=this.children[we],$e=Re.chunkSize();if(E<$e){var ft=Math.min(ee,$e-E);if(Re.iterN(E,ft,Ee))return!0;if((ee-=ft)==0)break;E=0}else E-=$e}}};var eu=function(E,ee,Ee){if(Ee)for(var we in Ee)Ee.hasOwnProperty(we)&&(this[we]=Ee[we]);this.doc=E,this.node=ee};eu.prototype.clear=function(){var E=this.doc.cm,ee=this.line.widgets,Ee=this.line,we=Lr(Ee);if(!(we==null||!ee)){for(var Re=0;Re<ee.length;++Re)ee[Re]==this&&ee.splice(Re--,1);ee.length||(Ee.widgets=null);var $e=aa(this);Ir(Ee,Math.max(0,Ee.height-$e)),E&&(gi(E,function(){rf(E,Ee,-$e),Do(E,we,"widget")}),Kn(E,"lineWidgetCleared",E,this,we))}},eu.prototype.changed=function(){var E=this,ee=this.height,Ee=this.doc.cm,we=this.line;this.height=null;var Re=aa(this)-ee;Re&&(qn(this.doc,we)||Ir(we,we.height+Re),Ee&&gi(Ee,function(){Ee.curOp.forceUpdate=!0,rf(Ee,we,Re),Kn(Ee,"lineWidgetChanged",Ee,E,Lr(we))}))},kn(eu);function rf(E,ee,Ee){Dn(ee)<(E.curOp&&E.curOp.scrollTop||E.doc.scrollTop)&&qi(E,Ee)}function af(E,ee,Ee,we){var Re=new eu(E,Ee,we),$e=E.cm;return $e&&Re.noHScroll&&($e.display.alignWidgets=!0),Ml(E,ee,"widget",function(ft){var wt=ft.widgets||(ft.widgets=[]);if(Re.insertAt==null?wt.push(Re):wt.splice(Math.min(wt.length-1,Math.max(0,Re.insertAt)),0,Re),Re.line=ft,$e&&!qn(E,ft)){var Mt=Dn(ft)<E.scrollTop;Ir(ft,ft.height+aa(Re)),Mt&&qi($e,Re.height),$e.curOp.forceUpdate=!0}return!0}),$e&&Kn($e,"lineWidgetAdded",$e,Re,typeof ee=="number"?ee:Lr(ee)),Re}var of=0,xc=function(E,ee){this.lines=[],this.type=ee,this.doc=E,this.id=++of};xc.prototype.clear=function(){if(!this.explicitlyCleared){var E=this.doc.cm,ee=E&&!E.curOp;if(ee&&ro(E),yn(this,"clear")){var Ee=this.find();Ee&&Kn(this,"clear",Ee.from,Ee.to)}for(var we=null,Re=null,$e=0;$e<this.lines.length;++$e){var ft=this.lines[$e],wt=or(ft.markedSpans,this);E&&!this.collapsed?Do(E,Lr(ft),"text"):E&&(wt.to!=null&&(Re=Lr(ft)),wt.from!=null&&(we=Lr(ft))),ft.markedSpans=br(ft.markedSpans,wt),wt.from==null&&this.collapsed&&!qn(this.doc,ft)&&E&&Ir(ft,Fo(E.display))}if(E&&this.collapsed&&!E.options.lineWrapping)for(var Mt=0;Mt<this.lines.length;++Mt){var Rt=Nt(this.lines[Mt]),fn=In(Rt);fn>E.display.maxLineLength&&(E.display.maxLine=Rt,E.display.maxLineLength=fn,E.display.maxLineChanged=!0)}we!=null&&E&&this.collapsed&&Ea(E,we,Re+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,E&&yu(E.doc)),E&&Kn(E,"markerCleared",E,this,we,Re),ee&&Io(E),this.parent&&this.parent.clear()}},xc.prototype.find=function(E,ee){E==null&&this.type=="bookmark"&&(E=1);for(var Ee,we,Re=0;Re<this.lines.length;++Re){var $e=this.lines[Re],ft=or($e.markedSpans,this);if(ft.from!=null&&(Ee=Jt(ee?$e:Lr($e),ft.from),E==-1))return Ee;if(ft.to!=null&&(we=Jt(ee?$e:Lr($e),ft.to),E==1))return we}return Ee&&{from:Ee,to:we}},xc.prototype.changed=function(){var E=this,ee=this.find(-1,!0),Ee=this,we=this.doc.cm;!ee||!we||gi(we,function(){var Re=ee.line,$e=Lr(ee.line),ft=Ja(we,$e);if(ft&&(Ka(ft),we.curOp.selectionChanged=we.curOp.forceUpdate=!0),we.curOp.updateMaxLine=!0,!qn(Ee.doc,Re)&&Ee.height!=null){var wt=Ee.height;Ee.height=null;var Mt=aa(Ee)-wt;Mt&&Ir(Re,Re.height+Mt)}Kn(we,"markerChanged",we,E)})},xc.prototype.attachLine=function(E){if(!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(!ee.maybeHiddenMarkers||lt(ee.maybeHiddenMarkers,this)==-1)&&(ee.maybeUnhiddenMarkers||(ee.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(E)},xc.prototype.detachLine=function(E){if(this.lines.splice(lt(this.lines,E),1),!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(ee.maybeHiddenMarkers||(ee.maybeHiddenMarkers=[])).push(this)}},kn(xc);function cc(E,ee,Ee,we,Re){if(we&&we.shared)return ys(E,ee,Ee,we,Re);if(E.cm&&!E.cm.curOp)return na(E.cm,cc)(E,ee,Ee,we,Re);var $e=new xc(E,Re),ft=pn(ee,Ee);if(we&&pt(we,$e,!1),ft>0||ft==0&&$e.clearWhenEmpty!==!1)return $e;if($e.replacedWith&&($e.collapsed=!0,$e.widgetNode=Ie("span",[$e.replacedWith],"CodeMirror-widget"),we.handleMouseEvents||$e.widgetNode.setAttribute("cm-ignore-events","true"),we.insertLeft&&($e.widgetNode.insertLeft=!0)),$e.collapsed){if(Tt(E,ee.line,ee,Ee,$e)||ee.line!=Ee.line&&Tt(E,Ee.line,ee,Ee,$e))throw new Error("Inserting collapsed marker partially overlapping an existing one");ln()}$e.addToHistory&&Ps(E,{from:ee,to:Ee,origin:"markText"},E.sel,NaN);var wt=ee.line,Mt=E.cm,Rt;if(E.iter(wt,Ee.line+1,function(An){Mt&&$e.collapsed&&!Mt.options.lineWrapping&&Nt(An)==Mt.display.maxLine&&(Rt=!0),$e.collapsed&&wt!=ee.line&&Ir(An,0),Xr(An,new Fn($e,wt==ee.line?ee.ch:null,wt==Ee.line?Ee.ch:null)),++wt}),$e.collapsed&&E.iter(ee.line,Ee.line+1,function(An){qn(E,An)&&Ir(An,0)}),$e.clearOnEnter&&Qt($e,"beforeCursorEnter",function(){return $e.clear()}),$e.readOnly&&(mn(),(E.history.done.length||E.history.undone.length)&&E.clearHistory()),$e.collapsed&&($e.id=++of,$e.atomic=!0),Mt){if(Rt&&(Mt.curOp.updateMaxLine=!0),$e.collapsed)Ea(Mt,ee.line,Ee.line+1);else if($e.className||$e.startStyle||$e.endStyle||$e.css||$e.attributes||$e.title)for(var fn=ee.line;fn<=Ee.line;fn++)Do(Mt,fn,"text");$e.atomic&&yu(Mt.doc),Kn(Mt,"markerAdded",Mt,$e)}return $e}var Eo=function(E,ee){this.markers=E,this.primary=ee;for(var Ee=0;Ee<E.length;++Ee)E[Ee].parent=this};Eo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var E=0;E<this.markers.length;++E)this.markers[E].clear();Kn(this,"clear")}},Eo.prototype.find=function(E,ee){return this.primary.find(E,ee)},kn(Eo);function ys(E,ee,Ee,we,Re){we=pt(we),we.shared=!1;var $e=[cc(E,ee,Ee,we,Re)],ft=$e[0],wt=we.widgetNode;return Yi(E,function(Mt){wt&&(we.widgetNode=wt.cloneNode(!0)),$e.push(cc(Mt,kr(Mt,ee),kr(Mt,Ee),we,Re));for(var Rt=0;Rt<Mt.linked.length;++Rt)if(Mt.linked[Rt].isParent)return;ft=At($e)}),new Eo($e,ft)}function wc(E){return E.findMarks(Jt(E.first,0),E.clipPos(Jt(E.lastLine())),function(ee){return ee.parent})}function sf(E,ee){for(var Ee=0;Ee<ee.length;Ee++){var we=ee[Ee],Re=we.find(),$e=E.clipPos(Re.from),ft=E.clipPos(Re.to);if(pn($e,ft)){var wt=cc(E,$e,ft,we.primary,we.primary.type);we.markers.push(wt),wt.parent=we}}}function Ll(E){for(var ee=function(we){var Re=E[we],$e=[Re.primary.doc];Yi(Re.primary.doc,function(Mt){return $e.push(Mt)});for(var ft=0;ft<Re.markers.length;ft++){var wt=Re.markers[ft];lt($e,wt.doc)==-1&&(wt.parent=null,Re.markers.splice(ft--,1))}},Ee=0;Ee<E.length;Ee++)ee(Ee)}var lf=0,Hs=function(E,ee,Ee,we,Re){if(!(this instanceof Hs))return new Hs(E,ee,Ee,we,Re);Ee==null&&(Ee=0),qc.call(this,[new Wl([new Zn("",null)])]),this.first=Ee,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=Ee;var $e=Jt(Ee,0);this.sel=Gs($e),this.history=new Xo(null),this.id=++lf,this.modeOption=ee,this.lineSep=we,this.direction=Re=="rtl"?"rtl":"ltr",this.extend=!1,typeof E=="string"&&(E=this.splitLines(E)),yi(this,{from:$e,to:$e,text:E}),Ts(this,Gs($e),nt)};Hs.prototype=de(qc.prototype,{constructor:Hs,iter:function(E,ee,Ee){Ee?this.iterN(E-this.first,ee-E,Ee):this.iterN(this.first,this.first+this.size,E)},insert:function(E,ee){for(var Ee=0,we=0;we<ee.length;++we)Ee+=ee[we].height;this.insertInner(E-this.first,ee,Ee)},remove:function(E,ee){this.removeInner(E-this.first,ee)},getValue:function(E){var ee=ei(this,this.first,this.first+this.size);return E===!1?ee:ee.join(E||this.lineSeparator())},setValue:Pa(function(E){var ee=Jt(this.first,0),Ee=this.first+this.size-1;go(this,{from:ee,to:Jt(Ee,_n(this,Ee).text.length),text:this.splitLines(E),origin:"setValue",full:!0},!0),this.cm&&Bi(this.cm,0,0),Ts(this,Gs(ee),nt)}),replaceRange:function(E,ee,Ee,we){ee=kr(this,ee),Ee=Ee?kr(this,Ee):ee,ol(this,E,ee,Ee,we)},getRange:function(E,ee,Ee){var we=hr(this,kr(this,E),kr(this,ee));return Ee===!1?we:we.join(Ee||this.lineSeparator())},getLine:function(E){var ee=this.getLineHandle(E);return ee&&ee.text},getLineHandle:function(E){if(Vr(this,E))return _n(this,E)},getLineNumber:function(E){return Lr(E)},getLineHandleVisualStart:function(E){return typeof E=="number"&&(E=_n(this,E)),Nt(E)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(E){return kr(this,E)},getCursor:function(E){var ee=this.sel.primary(),Ee;return E==null||E=="head"?Ee=ee.head:E=="anchor"?Ee=ee.anchor:E=="end"||E=="to"||E===!1?Ee=ee.to():Ee=ee.from(),Ee},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Pa(function(E,ee,Ee){vu(this,kr(this,typeof E=="number"?Jt(E,ee||0):E),null,Ee)}),setSelection:Pa(function(E,ee,Ee){vu(this,kr(this,E),kr(this,ee||E),Ee)}),extendSelection:Pa(function(E,ee,Ee){sc(this,kr(this,E),ee&&kr(this,ee),Ee)}),extendSelections:Pa(function(E,ee){ra(this,Wn(this,E),ee)}),extendSelectionsBy:Pa(function(E,ee){var Ee=ut(this.sel.ranges,E);ra(this,Wn(this,Ee),ee)}),setSelections:Pa(function(E,ee,Ee){if(E.length){for(var we=[],Re=0;Re<E.length;Re++)we[Re]=new Co(kr(this,E[Re].anchor),kr(this,E[Re].head));ee==null&&(ee=Math.min(E.length-1,this.sel.primIndex)),Ts(this,cs(this.cm,we,ee),Ee)}}),addSelection:Pa(function(E,ee,Ee){var we=this.sel.ranges.slice(0);we.push(new Co(kr(this,E),kr(this,ee||E))),Ts(this,cs(this.cm,we,we.length-1),Ee)}),getSelection:function(E){for(var ee=this.sel.ranges,Ee,we=0;we<ee.length;we++){var Re=hr(this,ee[we].from(),ee[we].to());Ee=Ee?Ee.concat(Re):Re}return E===!1?Ee:Ee.join(E||this.lineSeparator())},getSelections:function(E){for(var ee=[],Ee=this.sel.ranges,we=0;we<Ee.length;we++){var Re=hr(this,Ee[we].from(),Ee[we].to());E!==!1&&(Re=Re.join(E||this.lineSeparator())),ee[we]=Re}return ee},replaceSelection:function(E,ee,Ee){for(var we=[],Re=0;Re<this.sel.ranges.length;Re++)we[Re]=E;this.replaceSelections(we,ee,Ee||"+input")},replaceSelections:Pa(function(E,ee,Ee){for(var we=[],Re=this.sel,$e=0;$e<Re.ranges.length;$e++){var ft=Re.ranges[$e];we[$e]={from:ft.from(),to:ft.to(),text:this.splitLines(E[$e]),origin:Ee}}for(var wt=ee&&ee!="end"&&Ks(this,we,ee),Mt=we.length-1;Mt>=0;Mt--)go(this,we[Mt]);wt?il(this,wt):this.cm&&va(this.cm)}),undo:Pa(function(){Ss(this,"undo")}),redo:Pa(function(){Ss(this,"redo")}),undoSelection:Pa(function(){Ss(this,"undo",!0)}),redoSelection:Pa(function(){Ss(this,"redo",!0)}),setExtending:function(E){this.extend=E},getExtending:function(){return this.extend},historySize:function(){for(var E=this.history,ee=0,Ee=0,we=0;we<E.done.length;we++)E.done[we].ranges||++ee;for(var Re=0;Re<E.undone.length;Re++)E.undone[Re].ranges||++Ee;return{undo:ee,redo:Ee}},clearHistory:function(){var E=this;this.history=new Xo(this.history.maxGeneration),Yi(this,function(ee){return ee.history=E.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(E){return E&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(E){return this.history.generation==(E||this.cleanGeneration)},getHistory:function(){return{done:Al(this.history.done),undone:Al(this.history.undone)}},setHistory:function(E){var ee=this.history=new Xo(this.history.maxGeneration);ee.done=Al(E.done.slice(0),null,!0),ee.undone=Al(E.undone.slice(0),null,!0)},setGutterMarker:Pa(function(E,ee,Ee){return Ml(this,E,"gutter",function(we){var Re=we.gutterMarkers||(we.gutterMarkers={});return Re[ee]=Ee,!Ee&&Ae(Re)&&(we.gutterMarkers=null),!0})}),clearGutter:Pa(function(E){var ee=this;this.iter(function(Ee){Ee.gutterMarkers&&Ee.gutterMarkers[E]&&Ml(ee,Ee,"gutter",function(){return Ee.gutterMarkers[E]=null,Ae(Ee.gutterMarkers)&&(Ee.gutterMarkers=null),!0})})}),lineInfo:function(E){var ee;if(typeof E=="number"){if(!Vr(this,E)||(ee=E,E=_n(this,E),!E))return null}else if(ee=Lr(E),ee==null)return null;return{line:ee,handle:E,text:E.text,gutterMarkers:E.gutterMarkers,textClass:E.textClass,bgClass:E.bgClass,wrapClass:E.wrapClass,widgets:E.widgets}},addLineClass:Pa(function(E,ee,Ee){return Ml(this,E,ee=="gutter"?"gutter":"class",function(we){var Re=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass";if(!we[Re])we[Re]=Ee;else{if(be(Ee).test(we[Re]))return!1;we[Re]+=" "+Ee}return!0})}),removeLineClass:Pa(function(E,ee,Ee){return Ml(this,E,ee=="gutter"?"gutter":"class",function(we){var Re=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass",$e=we[Re];if($e)if(Ee==null)we[Re]=null;else{var ft=$e.match(be(Ee));if(!ft)return!1;var wt=ft.index+ft[0].length;we[Re]=$e.slice(0,ft.index)+(!ft.index||wt==$e.length?"":" ")+$e.slice(wt)||null}else return!1;return!0})}),addLineWidget:Pa(function(E,ee,Ee){return af(this,E,ee,Ee)}),removeLineWidget:function(E){E.clear()},markText:function(E,ee,Ee){return cc(this,kr(this,E),kr(this,ee),Ee,Ee&&Ee.type||"range")},setBookmark:function(E,ee){var Ee={replacedWith:ee&&(ee.nodeType==null?ee.widget:ee),insertLeft:ee&&ee.insertLeft,clearWhenEmpty:!1,shared:ee&&ee.shared,handleMouseEvents:ee&&ee.handleMouseEvents};return E=kr(this,E),cc(this,E,E,Ee,"bookmark")},findMarksAt:function(E){E=kr(this,E);var ee=[],Ee=_n(this,E.line).markedSpans;if(Ee)for(var we=0;we<Ee.length;++we){var Re=Ee[we];(Re.from==null||Re.from<=E.ch)&&(Re.to==null||Re.to>=E.ch)&&ee.push(Re.marker.parent||Re.marker)}return ee},findMarks:function(E,ee,Ee){E=kr(this,E),ee=kr(this,ee);var we=[],Re=E.line;return this.iter(E.line,ee.line+1,function($e){var ft=$e.markedSpans;if(ft)for(var wt=0;wt<ft.length;wt++){var Mt=ft[wt];!(Mt.to!=null&&Re==E.line&&E.ch>=Mt.to||Mt.from==null&&Re!=E.line||Mt.from!=null&&Re==ee.line&&Mt.from>=ee.ch)&&(!Ee||Ee(Mt.marker))&&we.push(Mt.marker.parent||Mt.marker)}++Re}),we},getAllMarks:function(){var E=[];return this.iter(function(ee){var Ee=ee.markedSpans;if(Ee)for(var we=0;we<Ee.length;++we)Ee[we].from!=null&&E.push(Ee[we].marker)}),E},posFromIndex:function(E){var ee,Ee=this.first,we=this.lineSeparator().length;return this.iter(function(Re){var $e=Re.text.length+we;if($e>E)return ee=E,!0;E-=$e,++Ee}),kr(this,Jt(Ee,ee))},indexFromPos:function(E){E=kr(this,E);var ee=E.ch;if(E.line<this.first||E.ch<0)return 0;var Ee=this.lineSeparator().length;return this.iter(this.first,E.line,function(we){ee+=we.text.length+Ee}),ee},copy:function(E){var ee=new Hs(ei(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ee.scrollTop=this.scrollTop,ee.scrollLeft=this.scrollLeft,ee.sel=this.sel,ee.extend=!1,E&&(ee.history.undoDepth=this.history.undoDepth,ee.setHistory(this.getHistory())),ee},linkedDoc:function(E){E||(E={});var ee=this.first,Ee=this.first+this.size;E.from!=null&&E.from>ee&&(ee=E.from),E.to!=null&&E.to<Ee&&(Ee=E.to);var we=new Hs(ei(this,ee,Ee),E.mode||this.modeOption,ee,this.lineSep,this.direction);return E.sharedHist&&(we.history=this.history),(this.linked||(this.linked=[])).push({doc:we,sharedHist:E.sharedHist}),we.linked=[{doc:this,isParent:!0,sharedHist:E.sharedHist}],sf(we,wc(this)),we},unlinkDoc:function(E){if(E instanceof so&&(E=E.doc),this.linked)for(var ee=0;ee<this.linked.length;++ee){var Ee=this.linked[ee];if(Ee.doc==E){this.linked.splice(ee,1),E.unlinkDoc(this),Ll(wc(this));break}}if(E.history==this.history){var we=[E.id];Yi(E,function(Re){return we.push(Re.id)},!0),E.history=new Xo(null),E.history.done=Al(this.history.done,we),E.history.undone=Al(this.history.undone,we)}},iterLinkedDocs:function(E){Yi(this,E)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(E){return this.lineSep?E.split(this.lineSep):rn(E)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Pa(function(E){E!="rtl"&&(E="ltr"),E!=this.direction&&(this.direction=E,this.iter(function(ee){return ee.order=null}),this.cm&&Go(this.cm))})}),Hs.prototype.eachLine=Hs.prototype.iter;var md=0;function th(E){var ee=this;if(tu(ee),!(zt(ee,E)||ji(ee.display,E))){Gn(E),ve&&(md=+new Date);var Ee=Is(ee,E,!0),we=E.dataTransfer.files;if(!(!Ee||ee.isReadOnly()))if(we&&we.length&&window.FileReader&&window.File)for(var Re=we.length,$e=Array(Re),ft=0,wt=function(){++ft==Re&&na(ee,function(){Ee=kr(ee.doc,Ee);var er={from:Ee,to:Ee,text:ee.doc.splitLines($e.filter(function(Fr){return Fr!=null}).join(ee.doc.lineSeparator())),origin:"paste"};go(ee.doc,er),il(ee.doc,Gs(kr(ee.doc,Ee),kr(ee.doc,tl(er))))})()},Mt=function(er,Fr){if(ee.options.allowDropFileTypes&<(ee.options.allowDropFileTypes,er.type)==-1){wt();return}var ti=new FileReader;ti.onerror=function(){return wt()},ti.onload=function(){var Si=ti.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Si)){wt();return}$e[Fr]=Si,wt()},ti.readAsText(er)},Rt=0;Rt<we.length;Rt++)Mt(we[Rt],Rt);else{if(ee.state.draggingText&&ee.doc.sel.contains(Ee)>-1){ee.state.draggingText(E),setTimeout(function(){return ee.display.input.focus()},20);return}try{var fn=E.dataTransfer.getData("Text");if(fn){var An;if(ee.state.draggingText&&!ee.state.draggingText.copy&&(An=ee.listSelections()),gc(ee.doc,Gs(Ee,Ee)),An)for(var cr=0;cr<An.length;++cr)ol(ee.doc,"",An[cr].anchor,An[cr].head,"drag");ee.replaceSelection(fn,"around","paste"),ee.display.input.focus()}}catch(er){}}}}function nh(E,ee){if(ve&&(!E.state.draggingText||+new Date-md<100)){zr(ee);return}if(!(zt(E,ee)||ji(E.display,ee))&&(ee.dataTransfer.setData("Text",E.getSelection()),ee.dataTransfer.effectAllowed="copyMove",ee.dataTransfer.setDragImage&&!he)){var Ee=Le("img",null,null,"position: fixed; left: 0; top: 0;");Ee.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",oe&&(Ee.width=Ee.height=1,E.display.wrapper.appendChild(Ee),Ee._top=Ee.offsetTop),ee.dataTransfer.setDragImage(Ee,0,0),oe&&Ee.parentNode.removeChild(Ee)}}function vd(E,ee){var Ee=Is(E,ee);if(Ee){var we=document.createDocumentFragment();Nn(E,Ee,we),E.display.dragCursor||(E.display.dragCursor=Le("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),E.display.lineSpace.insertBefore(E.display.dragCursor,E.display.cursorDiv)),De(E.display.dragCursor,we)}}function tu(E){E.display.dragCursor&&(E.display.lineSpace.removeChild(E.display.dragCursor),E.display.dragCursor=null)}function nu(E){if(document.getElementsByClassName){for(var ee=document.getElementsByClassName("CodeMirror"),Ee=[],we=0;we<ee.length;we++){var Re=ee[we].CodeMirror;Re&&Ee.push(Re)}Ee.length&&Ee[0].operation(function(){for(var $e=0;$e<Ee.length;$e++)E(Ee[$e])})}}var hi=!1;function gd(){hi||(Ku(),hi=!0)}function Ku(){var E;Qt(window,"resize",function(){E==null&&(E=setTimeout(function(){E=null,nu(zu)},100))}),Qt(window,"blur",function(){return nu(xi)})}function zu(E){var ee=E.display;ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.scrollbarsClipped=!1,E.setSize()}for(var Ul={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"},bu=0;bu<10;bu++)Ul[bu+48]=Ul[bu+96]=String(bu);for(var Hu=65;Hu<=90;Hu++)Ul[Hu]=String.fromCharCode(Hu);for(var xu=1;xu<=12;xu++)Ul[xu+111]=Ul[xu+63235]="F"+xu;var us={};us.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"},us.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"},us.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"},us.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"]},us.default=le?us.macDefault:us.pcDefault;function rh(E){var ee=E.split(/-(?!$)/);E=ee[ee.length-1];for(var Ee,we,Re,$e,ft=0;ft<ee.length-1;ft++){var wt=ee[ft];if(/^(cmd|meta|m)$/i.test(wt))$e=!0;else if(/^a(lt)?$/i.test(wt))Ee=!0;else if(/^(c|ctrl|control)$/i.test(wt))we=!0;else if(/^s(hift)?$/i.test(wt))Re=!0;else throw new Error("Unrecognized modifier name: "+wt)}return Ee&&(E="Alt-"+E),we&&(E="Ctrl-"+E),$e&&(E="Cmd-"+E),Re&&(E="Shift-"+E),E}function yd(E){var ee={};for(var Ee in E)if(E.hasOwnProperty(Ee)){var we=E[Ee];if(/^(name|fallthrough|(de|at)tach)$/.test(Ee))continue;if(we=="..."){delete E[Ee];continue}for(var Re=ut(Ee.split(" "),rh),$e=0;$e<Re.length;$e++){var ft=void 0,wt=void 0;$e==Re.length-1?(wt=Re.join(" "),ft=we):(wt=Re.slice(0,$e+1).join(" "),ft="...");var Mt=ee[wt];if(!Mt)ee[wt]=ft;else if(Mt!=ft)throw new Error("Inconsistent bindings for "+wt)}delete E[Ee]}for(var Rt in ee)E[Rt]=ee[Rt];return E}function uc(E,ee,Ee,we){ee=bl(ee);var Re=ee.call?ee.call(E,we):ee[E];if(Re===!1)return"nothing";if(Re==="...")return"multi";if(Re!=null&&Ee(Re))return"handled";if(ee.fallthrough){if(Object.prototype.toString.call(ee.fallthrough)!="[object Array]")return uc(E,ee.fallthrough,Ee,we);for(var $e=0;$e<ee.fallthrough.length;$e++){var ft=uc(E,ee.fallthrough[$e],Ee,we);if(ft)return ft}}}function wu(E){var ee=typeof E=="string"?E:Ul[E.keyCode];return ee=="Ctrl"||ee=="Alt"||ee=="Shift"||ee=="Mod"}function Sc(E,ee,Ee){var we=E;return ee.altKey&&we!="Alt"&&(E="Alt-"+E),(Me?ee.metaKey:ee.ctrlKey)&&we!="Ctrl"&&(E="Ctrl-"+E),(Me?ee.ctrlKey:ee.metaKey)&&we!="Mod"&&(E="Cmd-"+E),!Ee&&ee.shiftKey&&we!="Shift"&&(E="Shift-"+E),E}function zc(E,ee){if(oe&&E.keyCode==34&&E.char)return!1;var Ee=Ul[E.keyCode];return Ee==null||E.altGraphKey?!1:(E.keyCode==3&&E.code&&(Ee=E.code),Sc(Ee,E,ee))}function bl(E){return typeof E=="string"?us[E]:E}function Fl(E,ee){for(var Ee=E.doc.sel.ranges,we=[],Re=0;Re<Ee.length;Re++){for(var $e=ee(Ee[Re]);we.length&&pn($e.from,At(we).to)<=0;){var ft=we.pop();if(pn(ft.from,$e.from)<0){$e.from=ft.from;break}}we.push($e)}gi(E,function(){for(var wt=we.length-1;wt>=0;wt--)ol(E.doc,"",we[wt].from,we[wt].to,"+delete");va(E)})}function sl(E,ee,Ee){var we=Qe(E.text,ee+Ee,Ee);return we<0||we>E.text.length?null:we}function Jl(E,ee,Ee){var we=sl(E,ee.ch,Ee);return we==null?null:new Jt(ee.line,we,Ee<0?"after":"before")}function Hc(E,ee,Ee,we,Re){if(E){ee.doc.direction=="rtl"&&(Re=-Re);var $e=xn(Ee,ee.doc.direction);if($e){var ft=Re<0?At($e):$e[0],wt=Re<0==(ft.level==1),Mt=wt?"after":"before",Rt;if(ft.level>0||ee.doc.direction=="rtl"){var fn=Ra(ee,Ee);Rt=Re<0?Ee.text.length-1:0;var An=ua(ee,fn,Rt).top;Rt=ot(function(cr){return ua(ee,fn,cr).top==An},Re<0==(ft.level==1)?ft.from:ft.to-1,Rt),Mt=="before"&&(Rt=sl(Ee,Rt,1))}else Rt=Re<0?ft.to:ft.from;return new Jt(we,Rt,Mt)}}return new Jt(we,Re<0?Ee.text.length:0,Re<0?"before":"after")}function $l(E,ee,Ee,we){var Re=xn(ee,E.doc.direction);if(!Re)return Jl(ee,Ee,we);Ee.ch>=ee.text.length?(Ee.ch=ee.text.length,Ee.sticky="before"):Ee.ch<=0&&(Ee.ch=0,Ee.sticky="after");var $e=xt(Re,Ee.ch,Ee.sticky),ft=Re[$e];if(E.doc.direction=="ltr"&&ft.level%2==0&&(we>0?ft.to>Ee.ch:ft.from<Ee.ch))return Jl(ee,Ee,we);var wt=function(_i,Qi){return sl(ee,_i instanceof Jt?_i.ch:_i,Qi)},Mt,Rt=function(_i){return E.options.lineWrapping?(Mt=Mt||Ra(E,ee),Bo(E,ee,Mt,_i)):{begin:0,end:ee.text.length}},fn=Rt(Ee.sticky=="before"?wt(Ee,-1):Ee.ch);if(E.doc.direction=="rtl"||ft.level==1){var An=ft.level==1==we<0,cr=wt(Ee,An?1:-1);if(cr!=null&&(An?cr<=ft.to&&cr<=fn.end:cr>=ft.from&&cr>=fn.begin)){var er=An?"before":"after";return new Jt(Ee.line,cr,er)}}var Fr=function(_i,Qi,Pi){for(var sa=function(fs,rl){return rl?new Jt(Ee.line,wt(fs,1),"before"):new Jt(Ee.line,fs,"after")};_i>=0&&_i<Re.length;_i+=Qi){var Wa=Re[_i],Ga=Qi>0==(Wa.level!=1),Ao=Ga?Pi.begin:wt(Pi.end,-1);if(Wa.from<=Ao&&Ao<Wa.to||(Ao=Ga?Wa.from:wt(Wa.to,-1),Pi.begin<=Ao&&Ao<Pi.end))return sa(Ao,Ga)}},ti=Fr($e+we,we,fn);if(ti)return ti;var Si=we>0?fn.end:wt(fn.begin,-1);return Si!=null&&!(we>0&&Si==ee.text.length)&&(ti=Fr(we>0?0:Re.length-1,we,Rt(Si)),ti)?ti:null}var ru={selectAll:$c,singleSelection:function(E){return E.setSelection(E.getCursor("anchor"),E.getCursor("head"),nt)},killLine:function(E){return Fl(E,function(ee){if(ee.empty()){var Ee=_n(E.doc,ee.head.line).text.length;return ee.head.ch==Ee&&ee.head.line<E.lastLine()?{from:ee.head,to:Jt(ee.head.line+1,0)}:{from:ee.head,to:Jt(ee.head.line,Ee)}}else return{from:ee.from(),to:ee.to()}})},deleteLine:function(E){return Fl(E,function(ee){return{from:Jt(ee.from().line,0),to:kr(E.doc,Jt(ee.to().line+1,0))}})},delLineLeft:function(E){return Fl(E,function(ee){return{from:Jt(ee.from().line,0),to:ee.from()}})},delWrappedLineLeft:function(E){return Fl(E,function(ee){var Ee=E.charCoords(ee.head,"div").top+5,we=E.coordsChar({left:0,top:Ee},"div");return{from:we,to:ee.from()}})},delWrappedLineRight:function(E){return Fl(E,function(ee){var Ee=E.charCoords(ee.head,"div").top+5,we=E.coordsChar({left:E.display.lineDiv.offsetWidth+100,top:Ee},"div");return{from:ee.from(),to:we}})},undo:function(E){return E.undo()},redo:function(E){return E.redo()},undoSelection:function(E){return E.undoSelection()},redoSelection:function(E){return E.redoSelection()},goDocStart:function(E){return E.extendSelection(Jt(E.firstLine(),0))},goDocEnd:function(E){return E.extendSelection(Jt(E.lastLine()))},goLineStart:function(E){return E.extendSelectionsBy(function(ee){return bd(E,ee.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(E){return E.extendSelectionsBy(function(ee){return cf(E,ee.head)},{origin:"+move",bias:1})},goLineEnd:function(E){return E.extendSelectionsBy(function(ee){return xd(E,ee.head.line)},{origin:"+move",bias:-1})},goLineRight:function(E){return E.extendSelectionsBy(function(ee){var Ee=E.cursorCoords(ee.head,"div").top+5;return E.coordsChar({left:E.display.lineDiv.offsetWidth+100,top:Ee},"div")},at)},goLineLeft:function(E){return E.extendSelectionsBy(function(ee){var Ee=E.cursorCoords(ee.head,"div").top+5;return E.coordsChar({left:0,top:Ee},"div")},at)},goLineLeftSmart:function(E){return E.extendSelectionsBy(function(ee){var Ee=E.cursorCoords(ee.head,"div").top+5,we=E.coordsChar({left:0,top:Ee},"div");return we.ch<E.getLine(we.line).search(/\S/)?cf(E,ee.head):we},at)},goLineUp:function(E){return E.moveV(-1,"line")},goLineDown:function(E){return E.moveV(1,"line")},goPageUp:function(E){return E.moveV(-1,"page")},goPageDown:function(E){return E.moveV(1,"page")},goCharLeft:function(E){return E.moveH(-1,"char")},goCharRight:function(E){return E.moveH(1,"char")},goColumnLeft:function(E){return E.moveH(-1,"column")},goColumnRight:function(E){return E.moveH(1,"column")},goWordLeft:function(E){return E.moveH(-1,"word")},goGroupRight:function(E){return E.moveH(1,"group")},goGroupLeft:function(E){return E.moveH(-1,"group")},goWordRight:function(E){return E.moveH(1,"word")},delCharBefore:function(E){return E.deleteH(-1,"codepoint")},delCharAfter:function(E){return E.deleteH(1,"char")},delWordBefore:function(E){return E.deleteH(-1,"word")},delWordAfter:function(E){return E.deleteH(1,"word")},delGroupBefore:function(E){return E.deleteH(-1,"group")},delGroupAfter:function(E){return E.deleteH(1,"group")},indentAuto:function(E){return E.indentSelection("smart")},indentMore:function(E){return E.indentSelection("add")},indentLess:function(E){return E.indentSelection("subtract")},insertTab:function(E){return E.replaceSelection(" ")},insertSoftTab:function(E){for(var ee=[],Ee=E.listSelections(),we=E.options.tabSize,Re=0;Re<Ee.length;Re++){var $e=Ee[Re].from(),ft=Ge(E.getLine($e.line),$e.ch,we);ee.push(Et(we-ft%we))}E.replaceSelections(ee)},defaultTab:function(E){E.somethingSelected()?E.indentSelection("add"):E.execCommand("insertTab")},transposeChars:function(E){return gi(E,function(){for(var ee=E.listSelections(),Ee=[],we=0;we<ee.length;we++)if(ee[we].empty()){var Re=ee[we].head,$e=_n(E.doc,Re.line).text;if($e){if(Re.ch==$e.length&&(Re=new Jt(Re.line,Re.ch-1)),Re.ch>0)Re=new Jt(Re.line,Re.ch+1),E.replaceRange($e.charAt(Re.ch-1)+$e.charAt(Re.ch-2),Jt(Re.line,Re.ch-2),Re,"+transpose");else if(Re.line>E.doc.first){var ft=_n(E.doc,Re.line-1).text;ft&&(Re=new Jt(Re.line,1),E.replaceRange($e.charAt(0)+E.doc.lineSeparator()+ft.charAt(ft.length-1),Jt(Re.line-1,ft.length-1),Re,"+transpose"))}}Ee.push(new Co(Re,Re))}E.setSelections(Ee)})},newlineAndIndent:function(E){return gi(E,function(){for(var ee=E.listSelections(),Ee=ee.length-1;Ee>=0;Ee--)E.replaceRange(E.doc.lineSeparator(),ee[Ee].anchor,ee[Ee].head,"+input");ee=E.listSelections();for(var we=0;we<ee.length;we++)E.indentLine(ee[we].from().line,null,!0);va(E)})},openLine:function(E){return E.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(E){return E.toggleOverwrite()}};function bd(E,ee){var Ee=_n(E.doc,ee),we=Nt(Ee);return we!=Ee&&(ee=Lr(we)),Hc(!0,E,we,ee,1)}function xd(E,ee){var Ee=_n(E.doc,ee),we=_t(Ee);return we!=Ee&&(ee=Lr(we)),Hc(!0,E,Ee,ee,-1)}function cf(E,ee){var Ee=bd(E,ee.line),we=_n(E.doc,Ee.line),Re=xn(we,E.doc.direction);if(!Re||Re[0].level==0){var $e=Math.max(Ee.ch,we.text.search(/\S/)),ft=ee.line==Ee.line&&ee.ch<=$e&&ee.ch;return Jt(Ee.line,ft?0:$e,Ee.sticky)}return Ee}function Xs(E,ee,Ee){if(typeof ee=="string"&&(ee=ru[ee],!ee))return!1;E.display.input.ensurePolled();var we=E.display.shift,Re=!1;try{E.isReadOnly()&&(E.state.suppressEdits=!0),Ee&&(E.display.shift=!1),Re=ee(E)!=st}finally{E.display.shift=we,E.state.suppressEdits=!1}return Re}function ql(E,ee,Ee){for(var we=0;we<E.state.keyMaps.length;we++){var Re=uc(ee,E.state.keyMaps[we],Ee,E);if(Re)return Re}return E.options.extraKeys&&uc(ee,E.options.extraKeys,Ee,E)||uc(ee,E.options.keyMap,Ee,E)}var ih=new Xe;function iu(E,ee,Ee,we){var Re=E.state.keySeq;if(Re){if(wu(ee))return"handled";if(/\'$/.test(ee)?E.state.keySeq=null:ih.set(50,function(){E.state.keySeq==Re&&(E.state.keySeq=null,E.display.input.reset())}),Wu(E,Re+" "+ee,Ee,we))return!0}return Wu(E,ee,Ee,we)}function Wu(E,ee,Ee,we){var Re=ql(E,ee,we);return Re=="multi"&&(E.state.keySeq=ee),Re=="handled"&&Kn(E,"keyHandled",E,ee,Ee),(Re=="handled"||Re=="multi")&&(Gn(Ee),rr(E)),!!Re}function Po(E,ee){var Ee=zc(ee,!0);return Ee?ee.shiftKey&&!E.state.keySeq?iu(E,"Shift-"+Ee,ee,function(we){return Xs(E,we,!0)})||iu(E,Ee,ee,function(we){if(typeof we=="string"?/^go[A-Z]/.test(we):we.motion)return Xs(E,we)}):iu(E,Ee,ee,function(we){return Xs(E,we)}):!1}function au(E,ee,Ee){return iu(E,"'"+Ee+"'",ee,function(we){return Xs(E,we,!0)})}var dc=null;function Su(E){var ee=this;if(!(E.target&&E.target!=ee.display.input.getField())&&(ee.curOp.focus=_e(),!zt(ee,E))){ve&&ie<11&&E.keyCode==27&&(E.returnValue=!1);var Ee=E.keyCode;ee.display.shift=Ee==16||E.shiftKey;var we=Po(ee,E);oe&&(dc=we?Ee:null,!we&&Ee==88&&!fr&&(le?E.metaKey:E.ctrlKey)&&ee.replaceSelection("",null,"cut")),Oe&&!le&&!we&&Ee==46&&E.shiftKey&&!E.ctrlKey&&document.execCommand&&document.execCommand("cut"),Ee==18&&!/\bCodeMirror-crosshair\b/.test(ee.display.lineDiv.className)&&_r(ee)}}function _r(E){var ee=E.display.lineDiv;We(ee,"CodeMirror-crosshair");function Ee(we){(we.keyCode==18||!we.altKey)&&(Fe(ee,"CodeMirror-crosshair"),bn(document,"keyup",Ee),bn(document,"mouseover",Ee))}Qt(document,"keyup",Ee),Qt(document,"mouseover",Ee)}function uf(E){E.keyCode==16&&(this.doc.sel.shift=!1),zt(this,E)}function df(E){var ee=this;if(!(E.target&&E.target!=ee.display.input.getField())&&!(ji(ee.display,E)||zt(ee,E)||E.ctrlKey&&!E.altKey||le&&E.metaKey)){var Ee=E.keyCode,we=E.charCode;if(oe&&Ee==dc){dc=null,Gn(E);return}if(!(oe&&(!E.which||E.which<10)&&Po(ee,E))){var Re=String.fromCharCode(we==null?Ee:we);Re!="\b"&&(au(ee,E,Re)||ee.display.input.onKeyPress(E))}}}var wd=400,Sd=function(E,ee,Ee){this.time=E,this.pos=ee,this.button=Ee};Sd.prototype.compare=function(E,ee,Ee){return this.time+wd>E&&pn(ee,this.pos)==0&&Ee==this.button};var fc,Cu;function ah(E,ee){var Ee=+new Date;return Cu&&Cu.compare(Ee,E,ee)?(fc=Cu=null,"triple"):fc&&fc.compare(Ee,E,ee)?(Cu=new Sd(Ee,E,ee),fc=null,"double"):(fc=new Sd(Ee,E,ee),Cu=null,"single")}function ll(E){var ee=this,Ee=ee.display;if(!(zt(ee,E)||Ee.activeTouch&&Ee.input.supportsTouch())){if(Ee.input.ensurePolled(),Ee.shift=E.shiftKey,ji(Ee,E)){te||(Ee.scroller.draggable=!1,setTimeout(function(){return Ee.scroller.draggable=!0},100));return}if(!pl(ee,E)){var we=Is(ee,E),Re=Dr(E),$e=we?ah(we,Re):"single";window.focus(),Re==1&&ee.state.selectingText&&ee.state.selectingText(E),!(we&&Cc(ee,Re,we,$e,E))&&(Re==1?we?Vu(ee,we,$e,E):Hr(E)==Ee.scroller&&Gn(E):Re==2?(we&&sc(ee.doc,we),setTimeout(function(){return Ee.input.focus()},20)):Re==3&&(ye?ee.display.input.onContextMenu(E):Jr(ee)))}}}function Cc(E,ee,Ee,we,Re){var $e="Click";return we=="double"?$e="Double"+$e:we=="triple"&&($e="Triple"+$e),$e=(ee==1?"Left":ee==2?"Middle":"Right")+$e,iu(E,Sc($e,Re),Re,function(ft){if(typeof ft=="string"&&(ft=ru[ft]),!ft)return!1;var wt=!1;try{E.isReadOnly()&&(E.state.suppressEdits=!0),wt=ft(E,Ee)!=st}finally{E.state.suppressEdits=!1}return wt})}function Uu(E,ee,Ee){var we=E.getOption("configureMouse"),Re=we?we(E,ee,Ee):{};if(Re.unit==null){var $e=Se?Ee.shiftKey&&Ee.metaKey:Ee.altKey;Re.unit=$e?"rectangle":ee=="single"?"char":ee=="double"?"word":"line"}return(Re.extend==null||E.doc.extend)&&(Re.extend=E.doc.extend||Ee.shiftKey),Re.addNew==null&&(Re.addNew=le?Ee.metaKey:Ee.ctrlKey),Re.moveOnDrag==null&&(Re.moveOnDrag=!(le?Ee.altKey:Ee.ctrlKey)),Re}function Vu(E,ee,Ee,we){ve?setTimeout(it(gr,E),0):E.curOp.focus=_e();var Re=Uu(E,Ee,we),$e=E.doc.sel,ft;E.options.dragDrop&&Kr&&!E.isReadOnly()&&Ee=="single"&&(ft=$e.contains(ee))>-1&&(pn((ft=$e.ranges[ft]).from(),ee)<0||ee.xRel>0)&&(pn(ft.to(),ee)>0||ee.xRel<0)?oh(E,we,ee,Re):Cd(E,we,ee,Re)}function oh(E,ee,Ee,we){var Re=E.display,$e=!1,ft=na(E,function(Rt){te&&(Re.scroller.draggable=!1),E.state.draggingText=!1,bn(Re.wrapper.ownerDocument,"mouseup",ft),bn(Re.wrapper.ownerDocument,"mousemove",wt),bn(Re.scroller,"dragstart",Mt),bn(Re.scroller,"drop",ft),$e||(Gn(Rt),we.addNew||sc(E.doc,Ee,null,null,we.extend),te&&!he||ve&&ie==9?setTimeout(function(){Re.wrapper.ownerDocument.body.focus({preventScroll:!0}),Re.input.focus()},20):Re.input.focus())}),wt=function(Rt){$e=$e||Math.abs(ee.clientX-Rt.clientX)+Math.abs(ee.clientY-Rt.clientY)>=10},Mt=function(){return $e=!0};te&&(Re.scroller.draggable=!0),E.state.draggingText=ft,ft.copy=!we.moveOnDrag,Re.scroller.dragDrop&&Re.scroller.dragDrop(),Qt(Re.wrapper.ownerDocument,"mouseup",ft),Qt(Re.wrapper.ownerDocument,"mousemove",wt),Qt(Re.scroller,"dragstart",Mt),Qt(Re.scroller,"drop",ft),Jr(E),setTimeout(function(){return Re.input.focus()},20)}function ff(E,ee,Ee){if(Ee=="char")return new Co(ee,ee);if(Ee=="word")return E.findWordAt(ee);if(Ee=="line")return new Co(Jt(ee.line,0),kr(E.doc,Jt(ee.line+1,0)));var we=Ee(E,ee);return new Co(we.from,we.to)}function Cd(E,ee,Ee,we){var Re=E.display,$e=E.doc;Gn(ee);var ft,wt,Mt=$e.sel,Rt=Mt.ranges;if(we.addNew&&!we.extend?(wt=$e.sel.contains(Ee),wt>-1?ft=Rt[wt]:ft=new Co(Ee,Ee)):(ft=$e.sel.primary(),wt=$e.sel.primIndex),we.unit=="rectangle")we.addNew||(ft=new Co(Ee,Ee)),Ee=Is(E,ee,!0,!0),wt=-1;else{var fn=ff(E,Ee,we.unit);we.extend?ft=Qc(ft,fn.anchor,fn.head,we.extend):ft=fn}we.addNew?wt==-1?(wt=Rt.length,Ts($e,cs(E,Rt.concat([ft]),wt),{scroll:!1,origin:"*mouse"})):Rt.length>1&&Rt[wt].empty()&&we.unit=="char"&&!we.extend?(Ts($e,cs(E,Rt.slice(0,wt).concat(Rt.slice(wt+1)),0),{scroll:!1,origin:"*mouse"}),Mt=$e.sel):wl($e,wt,ft,rt):(wt=0,Ts($e,new ls([ft],0),rt),Mt=$e.sel);var An=Ee;function cr(Pi){if(pn(An,Pi)!=0)if(An=Pi,we.unit=="rectangle"){for(var sa=[],Wa=E.options.tabSize,Ga=Ge(_n($e,Ee.line).text,Ee.ch,Wa),Ao=Ge(_n($e,Pi.line).text,Pi.ch,Wa),fs=Math.min(Ga,Ao),rl=Math.max(Ga,Ao),Os=Math.min(Ee.line,Pi.line),Sl=Math.min(E.lastLine(),Math.max(Ee.line,Pi.line));Os<=Sl;Os++){var Cl=_n($e,Os).text,Ys=gt(Cl,fs,Wa);fs==rl?sa.push(new Co(Jt(Os,Ys),Jt(Os,Ys))):Cl.length>Ys&&sa.push(new Co(Jt(Os,Ys),Jt(Os,gt(Cl,rl,Wa))))}sa.length||sa.push(new Co(Ee,Ee)),Ts($e,cs(E,Mt.ranges.slice(0,wt).concat(sa),wt),{origin:"*mouse",scroll:!1}),E.scrollIntoView(Pi)}else{var El=ft,co=ff(E,Pi,we.unit),Ns=El.anchor,Ds;pn(co.anchor,Ns)>0?(Ds=co.head,Ns=Jn(El.from(),co.anchor)):(Ds=co.anchor,Ns=jn(El.to(),co.head));var Rs=Mt.ranges.slice(0);Rs[wt]=hf(E,new Co(kr($e,Ns),Ds)),Ts($e,cs(E,Rs,wt),rt)}}var er=Re.wrapper.getBoundingClientRect(),Fr=0;function ti(Pi){var sa=++Fr,Wa=Is(E,Pi,!0,we.unit=="rectangle");if(Wa)if(pn(Wa,An)!=0){E.curOp.focus=_e(),cr(Wa);var Ga=qr(Re,$e);(Wa.line>=Ga.to||Wa.line<Ga.from)&&setTimeout(na(E,function(){Fr==sa&&ti(Pi)}),150)}else{var Ao=Pi.clientY<er.top?-20:Pi.clientY>er.bottom?20:0;Ao&&setTimeout(na(E,function(){Fr==sa&&(Re.scroller.scrollTop+=Ao,ti(Pi))}),50)}}function Si(Pi){E.state.selectingText=!1,Fr=1/0,Pi&&(Gn(Pi),Re.input.focus()),bn(Re.wrapper.ownerDocument,"mousemove",_i),bn(Re.wrapper.ownerDocument,"mouseup",Qi),$e.history.lastSelOrigin=null}var _i=na(E,function(Pi){Pi.buttons===0||!Dr(Pi)?Si(Pi):ti(Pi)}),Qi=na(E,Si);E.state.selectingText=Qi,Qt(Re.wrapper.ownerDocument,"mousemove",_i),Qt(Re.wrapper.ownerDocument,"mouseup",Qi)}function hf(E,ee){var Ee=ee.anchor,we=ee.head,Re=_n(E.doc,Ee.line);if(pn(Ee,we)==0&&Ee.sticky==we.sticky)return ee;var $e=xn(Re);if(!$e)return ee;var ft=xt($e,Ee.ch,Ee.sticky),wt=$e[ft];if(wt.from!=Ee.ch&&wt.to!=Ee.ch)return ee;var Mt=ft+(wt.from==Ee.ch==(wt.level!=1)?0:1);if(Mt==0||Mt==$e.length)return ee;var Rt;if(we.line!=Ee.line)Rt=(we.line-Ee.line)*(E.doc.direction=="ltr"?1:-1)>0;else{var fn=xt($e,we.ch,we.sticky),An=fn-ft||(we.ch-Ee.ch)*(wt.level==1?-1:1);fn==Mt-1||fn==Mt?Rt=An<0:Rt=An>0}var cr=$e[Mt+(Rt?-1:0)],er=Rt==(cr.level==1),Fr=er?cr.from:cr.to,ti=er?"after":"before";return Ee.ch==Fr&&Ee.sticky==ti?ee:new Co(new Jt(Ee.line,Fr,ti),we)}function Eu(E,ee,Ee,we){var Re,$e;if(ee.touches)Re=ee.touches[0].clientX,$e=ee.touches[0].clientY;else try{Re=ee.clientX,$e=ee.clientY}catch(cr){return!1}if(Re>=Math.floor(E.display.gutters.getBoundingClientRect().right))return!1;we&&Gn(ee);var ft=E.display,wt=ft.lineDiv.getBoundingClientRect();if($e>wt.bottom||!yn(E,Ee))return Or(ee);$e-=wt.top-ft.viewOffset;for(var Mt=0;Mt<E.display.gutterSpecs.length;++Mt){var Rt=ft.gutters.childNodes[Mt];if(Rt&&Rt.getBoundingClientRect().right>=Re){var fn=Wr(E.doc,$e),An=E.display.gutterSpecs[Mt];return Pt(E,Ee,E,fn,An.className,ee),Or(ee)}}}function pl(E,ee){return Eu(E,ee,"gutterClick",!0)}function Ec(E,ee){ji(E.display,ee)||pf(E,ee)||zt(E,ee,"contextmenu")||ye||E.display.input.onContextMenu(ee)}function pf(E,ee){return yn(E,"gutterContextMenu")?Eu(E,ee,"gutterContextMenu",!1):!1}function Ed(E){E.display.wrapper.className=E.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+E.options.theme.replace(/(^|\s)\s*/g," cm-s-"),pa(E)}var Ac={toString:function(){return"CodeMirror.Init"}},mf={},Zu={};function sh(E){var ee=E.optionHandlers;function Ee(we,Re,$e,ft){E.defaults[we]=Re,$e&&(ee[we]=ft?function(wt,Mt,Rt){Rt!=Ac&&$e(wt,Mt,Rt)}:$e)}E.defineOption=Ee,E.Init=Ac,Ee("value","",function(we,Re){return we.setValue(Re)},!0),Ee("mode",null,function(we,Re){we.doc.modeOption=Re,As(we)},!0),Ee("indentUnit",2,As,!0),Ee("indentWithTabs",!1),Ee("smartIndent",!0),Ee("tabSize",4,function(we){zs(we),pa(we),Ea(we)},!0),Ee("lineSeparator",null,function(we,Re){if(we.doc.lineSep=Re,!!Re){var $e=[],ft=we.doc.first;we.doc.iter(function(Mt){for(var Rt=0;;){var fn=Mt.text.indexOf(Re,Rt);if(fn==-1)break;Rt=fn+Re.length,$e.push(Jt(ft,fn))}ft++});for(var wt=$e.length-1;wt>=0;wt--)ol(we.doc,Re,$e[wt],Jt($e[wt].line,$e[wt].ch+Re.length))}}),Ee("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(we,Re,$e){we.state.specialChars=new RegExp(Re.source+(Re.test(" ")?"":"| "),"g"),$e!=Ac&&we.refresh()}),Ee("specialCharPlaceholder",kt,function(we){return we.refresh()},!0),Ee("electricChars",!0),Ee("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),Ee("spellcheck",!1,function(we,Re){return we.getInputField().spellcheck=Re},!0),Ee("autocorrect",!1,function(we,Re){return we.getInputField().autocorrect=Re},!0),Ee("autocapitalize",!1,function(we,Re){return we.getInputField().autocapitalize=Re},!0),Ee("rtlMoveVisually",!xe),Ee("wholeLineUpdateBefore",!0),Ee("theme","default",function(we){Ed(we),qo(we)},!0),Ee("keyMap","default",function(we,Re,$e){var ft=bl(Re),wt=$e!=Ac&&bl($e);wt&&wt.detach&&wt.detach(we,ft),ft.attach&&ft.attach(we,wt||null)}),Ee("extraKeys",null),Ee("configureMouse",null),Ee("lineWrapping",!1,vf,!0),Ee("gutters",[],function(we,Re){we.display.gutterSpecs=ws(Re,we.options.lineNumbers),qo(we)},!0),Ee("fixedGutter",!0,function(we,Re){we.display.gutters.style.left=Re?_s(we.display)+"px":"0",we.refresh()},!0),Ee("coverGutterNextToScrollbar",!1,function(we){return Na(we)},!0),Ee("scrollbarStyle","native",function(we){eo(we),Na(we),we.display.scrollbars.setScrollTop(we.doc.scrollTop),we.display.scrollbars.setScrollLeft(we.doc.scrollLeft)},!0),Ee("lineNumbers",!1,function(we,Re){we.display.gutterSpecs=ws(we.options.gutters,Re),qo(we)},!0),Ee("firstLineNumber",1,qo,!0),Ee("lineNumberFormatter",function(we){return we},qo,!0),Ee("showCursorWhenSelecting",!1,un,!0),Ee("resetSelectionOnContextMenu",!0),Ee("lineWiseCopyCut",!0),Ee("pasteLinesPerSelection",!0),Ee("selectionsMayTouch",!1),Ee("readOnly",!1,function(we,Re){Re=="nocursor"&&(xi(we),we.display.input.blur()),we.display.input.readOnlyChanged(Re)}),Ee("screenReaderLabel",null,function(we,Re){Re=Re===""?null:Re,we.display.input.screenReaderLabelChanged(Re)}),Ee("disableInput",!1,function(we,Re){Re||we.display.input.reset()},!0),Ee("dragDrop",!0,lh),Ee("allowDropFileTypes",null),Ee("cursorBlinkRate",530),Ee("cursorScrollMargin",0),Ee("cursorHeight",1,un,!0),Ee("singleCursorHeightPerLine",!0,un,!0),Ee("workTime",100),Ee("workDelay",100),Ee("flattenSpans",!0,zs,!0),Ee("addModeClass",!1,zs,!0),Ee("pollInterval",100),Ee("undoDepth",200,function(we,Re){return we.doc.history.undoDepth=Re}),Ee("historyEventDelay",1250),Ee("viewportMargin",10,function(we){return we.refresh()},!0),Ee("maxHighlightLength",1e4,zs,!0),Ee("moveInputWithCursor",!0,function(we,Re){Re||we.display.input.resetPosition()}),Ee("tabindex",null,function(we,Re){return we.display.input.getField().tabIndex=Re||""}),Ee("autofocus",null),Ee("direction","ltr",function(we,Re){return we.doc.setDirection(Re)},!0),Ee("phrases",null)}function lh(E,ee,Ee){var we=Ee&&Ee!=Ac;if(!ee!=!we){var Re=E.display.dragFunctions,$e=ee?Qt:bn;$e(E.display.scroller,"dragstart",Re.start),$e(E.display.scroller,"dragenter",Re.enter),$e(E.display.scroller,"dragover",Re.over),$e(E.display.scroller,"dragleave",Re.leave),$e(E.display.scroller,"drop",Re.drop)}}function vf(E){E.options.lineWrapping?(We(E.display.wrapper,"CodeMirror-wrap"),E.display.sizer.style.minWidth="",E.display.sizerWidth=null):(Fe(E.display.wrapper,"CodeMirror-wrap"),Cn(E)),os(E),Ea(E),pa(E),setTimeout(function(){return Na(E)},100)}function so(E,ee){var Ee=this;if(!(this instanceof so))return new so(E,ee);this.options=ee=ee?pt(ee):{},pt(mf,ee,!1);var we=ee.value;typeof we=="string"?we=new Hs(we,ee.mode,null,ee.lineSeparator,ee.direction):ee.mode&&(we.modeOption=ee.mode),this.doc=we;var Re=new so.inputStyles[ee.inputStyle](this),$e=this.display=new Ls(E,we,Re,ee);$e.wrapper.CodeMirror=this,Ed(this),ee.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),eo(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 Xe,keySeq:null,specialChars:null},ee.autofocus&&!pe&&$e.input.focus(),ve&&ie<11&&setTimeout(function(){return Ee.display.input.reset(!0)},20),ch(this),gd(),ro(this),this.curOp.forceUpdate=!0,ka(this,we),ee.autofocus&&!pe||this.hasFocus()?setTimeout(function(){Ee.hasFocus()&&!Ee.state.focused&&jr(Ee)},20):xi(this);for(var ft in Zu)Zu.hasOwnProperty(ft)&&Zu[ft](this,ee[ft],Ac);Ko(this),ee.finishInit&&ee.finishInit(this);for(var wt=0;wt<Ad.length;++wt)Ad[wt](this);Io(this),te&&ee.lineWrapping&&getComputedStyle($e.lineDiv).textRendering=="optimizelegibility"&&($e.lineDiv.style.textRendering="auto")}so.defaults=mf,so.optionHandlers=Zu;function ch(E){var ee=E.display;Qt(ee.scroller,"mousedown",na(E,ll)),ve&&ie<11?Qt(ee.scroller,"dblclick",na(E,function(Mt){if(!zt(E,Mt)){var Rt=Is(E,Mt);if(!(!Rt||pl(E,Mt)||ji(E.display,Mt))){Gn(Mt);var fn=E.findWordAt(Rt);sc(E.doc,fn.anchor,fn.head)}}})):Qt(ee.scroller,"dblclick",function(Mt){return zt(E,Mt)||Gn(Mt)}),Qt(ee.scroller,"contextmenu",function(Mt){return Ec(E,Mt)}),Qt(ee.input.getField(),"contextmenu",function(Mt){ee.scroller.contains(Mt.target)||Ec(E,Mt)});var Ee,we={end:0};function Re(){ee.activeTouch&&(Ee=setTimeout(function(){return ee.activeTouch=null},1e3),we=ee.activeTouch,we.end=+new Date)}function $e(Mt){if(Mt.touches.length!=1)return!1;var Rt=Mt.touches[0];return Rt.radiusX<=1&&Rt.radiusY<=1}function ft(Mt,Rt){if(Rt.left==null)return!0;var fn=Rt.left-Mt.left,An=Rt.top-Mt.top;return fn*fn+An*An>20*20}Qt(ee.scroller,"touchstart",function(Mt){if(!zt(E,Mt)&&!$e(Mt)&&!pl(E,Mt)){ee.input.ensurePolled(),clearTimeout(Ee);var Rt=+new Date;ee.activeTouch={start:Rt,moved:!1,prev:Rt-we.end<=300?we:null},Mt.touches.length==1&&(ee.activeTouch.left=Mt.touches[0].pageX,ee.activeTouch.top=Mt.touches[0].pageY)}}),Qt(ee.scroller,"touchmove",function(){ee.activeTouch&&(ee.activeTouch.moved=!0)}),Qt(ee.scroller,"touchend",function(Mt){var Rt=ee.activeTouch;if(Rt&&!ji(ee,Mt)&&Rt.left!=null&&!Rt.moved&&new Date-Rt.start<300){var fn=E.coordsChar(ee.activeTouch,"page"),An;!Rt.prev||ft(Rt,Rt.prev)?An=new Co(fn,fn):!Rt.prev.prev||ft(Rt,Rt.prev.prev)?An=E.findWordAt(fn):An=new Co(Jt(fn.line,0),kr(E.doc,Jt(fn.line+1,0))),E.setSelection(An.anchor,An.head),E.focus(),Gn(Mt)}Re()}),Qt(ee.scroller,"touchcancel",Re),Qt(ee.scroller,"scroll",function(){ee.scroller.clientHeight&&(fi(E,ee.scroller.scrollTop),Ia(E,ee.scroller.scrollLeft,!0),Pt(E,"scroll",E))}),Qt(ee.scroller,"mousewheel",function(Mt){return xl(E,Mt)}),Qt(ee.scroller,"DOMMouseScroll",function(Mt){return xl(E,Mt)}),Qt(ee.wrapper,"scroll",function(){return ee.wrapper.scrollTop=ee.wrapper.scrollLeft=0}),ee.dragFunctions={enter:function(Mt){zt(E,Mt)||zr(Mt)},over:function(Mt){zt(E,Mt)||(vd(E,Mt),zr(Mt))},start:function(Mt){return nh(E,Mt)},drop:na(E,th),leave:function(Mt){zt(E,Mt)||tu(E)}};var wt=ee.input.getField();Qt(wt,"keyup",function(Mt){return uf.call(E,Mt)}),Qt(wt,"keydown",na(E,Su)),Qt(wt,"keypress",na(E,df)),Qt(wt,"focus",function(Mt){return jr(E,Mt)}),Qt(wt,"blur",function(Mt){return xi(E,Mt)})}var Ad=[];so.defineInitHook=function(E){return Ad.push(E)};function Vl(E,ee,Ee,we){var Re=E.doc,$e;Ee==null&&(Ee="add"),Ee=="smart"&&(Re.mode.indent?$e=ia(E,ee).state:Ee="prev");var ft=E.options.tabSize,wt=_n(Re,ee),Mt=Ge(wt.text,null,ft);wt.stateAfter&&(wt.stateAfter=null);var Rt=wt.text.match(/^\s*/)[0],fn;if(!we&&!/\S/.test(wt.text))fn=0,Ee="not";else if(Ee=="smart"&&(fn=Re.mode.indent($e,wt.text.slice(Rt.length),wt.text),fn==st||fn>150)){if(!we)return;Ee="prev"}Ee=="prev"?ee>Re.first?fn=Ge(_n(Re,ee-1).text,null,ft):fn=0:Ee=="add"?fn=Mt+E.options.indentUnit:Ee=="subtract"?fn=Mt-E.options.indentUnit:typeof Ee=="number"&&(fn=Mt+Ee),fn=Math.max(0,fn);var An="",cr=0;if(E.options.indentWithTabs)for(var er=Math.floor(fn/ft);er;--er)cr+=ft,An+=" ";if(cr<fn&&(An+=Et(fn-cr)),An!=Rt)return ol(Re,An,Jt(ee,0),Jt(ee,Rt.length),"+input"),wt.stateAfter=null,!0;for(var Fr=0;Fr<Re.sel.ranges.length;Fr++){var ti=Re.sel.ranges[Fr];if(ti.head.line==ee&&ti.head.ch<Rt.length){var Si=Jt(ee,Rt.length);wl(Re,Fr,new Co(Si,Si));break}}}var Zl=null;function Mc(E){Zl=E}function Md(E,ee,Ee,we,Re){var $e=E.doc;E.display.shift=!1,we||(we=$e.sel);var ft=+new Date-200,wt=Re=="paste"||E.state.pasteIncoming>ft,Mt=rn(ee),Rt=null;if(wt&&we.ranges.length>1)if(Zl&&Zl.text.join(`
|
|
|
`)==ee){if(we.ranges.length%Zl.text.length==0){Rt=[];for(var fn=0;fn<Zl.text.length;fn++)Rt.push($e.splitLines(Zl.text[fn]))}}else Mt.length==we.ranges.length&&E.options.pasteLinesPerSelection&&(Rt=ut(Mt,function(_i){return[_i]}));for(var An=E.curOp.updateInput,cr=we.ranges.length-1;cr>=0;cr--){var er=we.ranges[cr],Fr=er.from(),ti=er.to();er.empty()&&(Ee&&Ee>0?Fr=Jt(Fr.line,Fr.ch-Ee):E.state.overwrite&&!wt?ti=Jt(ti.line,Math.min(_n($e,ti.line).text.length,ti.ch+At(Mt).length)):wt&&Zl&&Zl.lineWise&&Zl.text.join(`
|
|
|
`)==Mt.join(`
|
|
|
`)&&(Fr=ti=Jt(Fr.line,0)));var Si={from:Fr,to:ti,text:Rt?Rt[cr%Rt.length]:Mt,origin:Re||(wt?"paste":E.state.cutIncoming>ft?"cut":"+input")};go(E.doc,Si),Kn(E,"inputRead",E,Si)}ee&&!wt&&Td(E,ee),va(E),E.curOp.updateInput<2&&(E.curOp.updateInput=An),E.curOp.typing=!0,E.state.pasteIncoming=E.state.cutIncoming=-1}function kd(E,ee){var Ee=E.clipboardData&&E.clipboardData.getData("Text");if(Ee)return E.preventDefault(),!ee.isReadOnly()&&!ee.options.disableInput&&gi(ee,function(){return Md(ee,Ee,0,null,"paste")}),!0}function Td(E,ee){if(!(!E.options.electricChars||!E.options.smartIndent))for(var Ee=E.doc.sel,we=Ee.ranges.length-1;we>=0;we--){var Re=Ee.ranges[we];if(!(Re.head.ch>100||we&&Ee.ranges[we-1].head.line==Re.head.line)){var $e=E.getModeAt(Re.head),ft=!1;if($e.electricChars){for(var wt=0;wt<$e.electricChars.length;wt++)if(ee.indexOf($e.electricChars.charAt(wt))>-1){ft=Vl(E,Re.head.line,"smart");break}}else $e.electricInput&&$e.electricInput.test(_n(E.doc,Re.head.line).text.slice(0,Re.head.ch))&&(ft=Vl(E,Re.head.line,"smart"));ft&&Kn(E,"electricInput",E,Re.head.line)}}}function ou(E){for(var ee=[],Ee=[],we=0;we<E.doc.sel.ranges.length;we++){var Re=E.doc.sel.ranges[we].head.line,$e={anchor:Jt(Re,0),head:Jt(Re+1,0)};Ee.push($e),ee.push(E.getRange($e.anchor,$e.head))}return{text:ee,ranges:Ee}}function gf(E,ee,Ee,we){E.setAttribute("autocorrect",Ee?"":"off"),E.setAttribute("autocapitalize",we?"":"off"),E.setAttribute("spellcheck",!!ee)}function Od(){var E=Le("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ee=Le("div",[E],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return te?E.style.width="1000px":E.setAttribute("wrap","off"),ce&&(E.style.border="1px solid black"),gf(E),ee}function Dd(E){var ee=E.optionHandlers,Ee=E.helpers={};E.prototype={constructor:E,focus:function(){window.focus(),this.display.input.focus()},setOption:function(we,Re){var $e=this.options,ft=$e[we];$e[we]==Re&&we!="mode"||($e[we]=Re,ee.hasOwnProperty(we)&&na(this,ee[we])(this,Re,ft),Pt(this,"optionChange",this,we))},getOption:function(we){return this.options[we]},getDoc:function(){return this.doc},addKeyMap:function(we,Re){this.state.keyMaps[Re?"push":"unshift"](bl(we))},removeKeyMap:function(we){for(var Re=this.state.keyMaps,$e=0;$e<Re.length;++$e)if(Re[$e]==we||Re[$e].name==we)return Re.splice($e,1),!0},addOverlay:Xi(function(we,Re){var $e=we.token?we:E.getMode(this.options,we);if($e.startState)throw new Error("Overlays may not be stateful.");Ye(this.state.overlays,{mode:$e,modeSpec:we,opaque:Re&&Re.opaque,priority:Re&&Re.priority||0},function(ft){return ft.priority}),this.state.modeGen++,Ea(this)}),removeOverlay:Xi(function(we){for(var Re=this.state.overlays,$e=0;$e<Re.length;++$e){var ft=Re[$e].modeSpec;if(ft==we||typeof we=="string"&&ft.name==we){Re.splice($e,1),this.state.modeGen++,Ea(this);return}}}),indentLine:Xi(function(we,Re,$e){typeof Re!="string"&&typeof Re!="number"&&(Re==null?Re=this.options.smartIndent?"smart":"prev":Re=Re?"add":"subtract"),Vr(this.doc,we)&&Vl(this,we,Re,$e)}),indentSelection:Xi(function(we){for(var Re=this.doc.sel.ranges,$e=-1,ft=0;ft<Re.length;ft++){var wt=Re[ft];if(wt.empty())wt.head.line>$e&&(Vl(this,wt.head.line,we,!0),$e=wt.head.line,ft==this.doc.sel.primIndex&&va(this));else{var Mt=wt.from(),Rt=wt.to(),fn=Math.max($e,Mt.line);$e=Math.min(this.lastLine(),Rt.line-(Rt.ch?0:1))+1;for(var An=fn;An<$e;++An)Vl(this,An,we);var cr=this.doc.sel.ranges;Mt.ch==0&&Re.length==cr.length&&cr[ft].from().ch>0&&wl(this.doc,ft,new Co(Mt,cr[ft].to()),nt)}}}),getTokenAt:function(we,Re){return Fa(this,we,Re)},getLineTokens:function(we,Re){return Fa(this,Jt(we),Re,!0)},getTokenTypeAt:function(we){we=kr(this.doc,we);var Re=ha(this,_n(this.doc,we.line)),$e=0,ft=(Re.length-1)/2,wt=we.ch,Mt;if(wt==0)Mt=Re[2];else for(;;){var Rt=$e+ft>>1;if((Rt?Re[Rt*2-1]:0)>=wt)ft=Rt;else if(Re[Rt*2+1]<wt)$e=Rt+1;else{Mt=Re[Rt*2+2];break}}var fn=Mt?Mt.indexOf("overlay "):-1;return fn<0?Mt:fn==0?null:Mt.slice(0,fn-1)},getModeAt:function(we){var Re=this.doc.mode;return Re.innerMode?E.innerMode(Re,this.getTokenAt(we).state).mode:Re},getHelper:function(we,Re){return this.getHelpers(we,Re)[0]},getHelpers:function(we,Re){var $e=[];if(!Ee.hasOwnProperty(Re))return $e;var ft=Ee[Re],wt=this.getModeAt(we);if(typeof wt[Re]=="string")ft[wt[Re]]&&$e.push(ft[wt[Re]]);else if(wt[Re])for(var Mt=0;Mt<wt[Re].length;Mt++){var Rt=ft[wt[Re][Mt]];Rt&&$e.push(Rt)}else wt.helperType&&ft[wt.helperType]?$e.push(ft[wt.helperType]):ft[wt.name]&&$e.push(ft[wt.name]);for(var fn=0;fn<ft._global.length;fn++){var An=ft._global[fn];An.pred(wt,this)&<($e,An.val)==-1&&$e.push(An.val)}return $e},getStateAfter:function(we,Re){var $e=this.doc;return we=ir($e,we==null?$e.first+$e.size-1:we),ia(this,we+1,Re).state},cursorCoords:function(we,Re){var $e,ft=this.doc.sel.primary();return we==null?$e=ft.head:typeof we=="object"?$e=kr(this.doc,we):$e=we?ft.from():ft.to(),ho(this,$e,Re||"page")},charCoords:function(we,Re){return Ho(this,kr(this.doc,we),Re||"page")},coordsChar:function(we,Re){return we=Mo(this,we,Re||"page"),Yo(this,we.left,we.top)},lineAtHeight:function(we,Re){return we=Mo(this,{top:we,left:0},Re||"page").top,Wr(this.doc,we+this.display.viewOffset)},heightAtLine:function(we,Re,$e){var ft=!1,wt;if(typeof we=="number"){var Mt=this.doc.first+this.doc.size-1;we<this.doc.first?we=this.doc.first:we>Mt&&(we=Mt,ft=!0),wt=_n(this.doc,we)}else wt=we;return vo(this,wt,{top:0,left:0},Re||"page",$e||ft).top+(ft?this.doc.height-Dn(wt):0)},defaultTextHeight:function(){return Fo(this.display)},defaultCharWidth:function(){return es(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(we,Re,$e,ft,wt){var Mt=this.display;we=ho(this,kr(this.doc,we));var Rt=we.bottom,fn=we.left;if(Re.style.position="absolute",Re.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Re),Mt.sizer.appendChild(Re),ft=="over")Rt=we.top;else if(ft=="above"||ft=="near"){var An=Math.max(Mt.wrapper.clientHeight,this.doc.height),cr=Math.max(Mt.sizer.clientWidth,Mt.lineSpace.clientWidth);(ft=="above"||we.bottom+Re.offsetHeight>An)&&we.top>Re.offsetHeight?Rt=we.top-Re.offsetHeight:we.bottom+Re.offsetHeight<=An&&(Rt=we.bottom),fn+Re.offsetWidth>cr&&(fn=cr-Re.offsetWidth)}Re.style.top=Rt+"px",Re.style.left=Re.style.right="",wt=="right"?(fn=Mt.sizer.clientWidth-Re.offsetWidth,Re.style.right="0px"):(wt=="left"?fn=0:wt=="middle"&&(fn=(Mt.sizer.clientWidth-Re.offsetWidth)/2),Re.style.left=fn+"px"),$e&&oa(this,{left:fn,top:Rt,right:fn+Re.offsetWidth,bottom:Rt+Re.offsetHeight})},triggerOnKeyDown:Xi(Su),triggerOnKeyPress:Xi(df),triggerOnKeyUp:uf,triggerOnMouseDown:Xi(ll),execCommand:function(we){if(ru.hasOwnProperty(we))return ru[we].call(null,this)},triggerElectric:Xi(function(we){Td(this,we)}),findPosH:function(we,Re,$e,ft){var wt=1;Re<0&&(wt=-1,Re=-Re);for(var Mt=kr(this.doc,we),Rt=0;Rt<Re&&(Mt=Gu(this.doc,Mt,wt,$e,ft),!Mt.hitSide);++Rt);return Mt},moveH:Xi(function(we,Re){var $e=this;this.extendSelectionsBy(function(ft){return $e.display.shift||$e.doc.extend||ft.empty()?Gu($e.doc,ft.head,we,Re,$e.options.rtlMoveVisually):we<0?ft.from():ft.to()},at)}),deleteH:Xi(function(we,Re){var $e=this.doc.sel,ft=this.doc;$e.somethingSelected()?ft.replaceSelection("",null,"+delete"):Fl(this,function(wt){var Mt=Gu(ft,wt.head,we,Re,!1);return we<0?{from:Mt,to:wt.head}:{from:wt.head,to:Mt}})}),findPosV:function(we,Re,$e,ft){var wt=1,Mt=ft;Re<0&&(wt=-1,Re=-Re);for(var Rt=kr(this.doc,we),fn=0;fn<Re;++fn){var An=ho(this,Rt,"div");if(Mt==null?Mt=An.left:An.left=Mt,Rt=yf(this,An,wt,$e),Rt.hitSide)break}return Rt},moveV:Xi(function(we,Re){var $e=this,ft=this.doc,wt=[],Mt=!this.display.shift&&!ft.extend&&ft.sel.somethingSelected();if(ft.extendSelectionsBy(function(fn){if(Mt)return we<0?fn.from():fn.to();var An=ho($e,fn.head,"div");fn.goalColumn!=null&&(An.left=fn.goalColumn),wt.push(An.left);var cr=yf($e,An,we,Re);return Re=="page"&&fn==ft.sel.primary()&&qi($e,Ho($e,cr,"div").top-An.top),cr},at),wt.length)for(var Rt=0;Rt<ft.sel.ranges.length;Rt++)ft.sel.ranges[Rt].goalColumn=wt[Rt]}),findWordAt:function(we){var Re=this.doc,$e=_n(Re,we.line).text,ft=we.ch,wt=we.ch;if($e){var Mt=this.getHelper(we,"wordChars");(we.sticky=="before"||wt==$e.length)&&ft?--ft:++wt;for(var Rt=$e.charAt(ft),fn=je(Rt,Mt)?function(An){return je(An,Mt)}:/\s/.test(Rt)?function(An){return/\s/.test(An)}:function(An){return!/\s/.test(An)&&!je(An)};ft>0&&fn($e.charAt(ft-1));)--ft;for(;wt<$e.length&&fn($e.charAt(wt));)++wt}return new Co(Jt(we.line,ft),Jt(we.line,wt))},toggleOverwrite:function(we){we!=null&&we==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?We(this.display.cursorDiv,"CodeMirror-overwrite"):Fe(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Xi(function(we,Re){Bi(this,we,Re)}),getScrollInfo:function(){var we=this.display.scroller;return{left:we.scrollLeft,top:we.scrollTop,height:we.scrollHeight-Li(this)-this.display.barHeight,width:we.scrollWidth-Li(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:li(this)}},scrollIntoView:Xi(function(we,Re){we==null?(we={from:this.doc.sel.primary().head,to:null},Re==null&&(Re=this.options.cursorScrollMargin)):typeof we=="number"?we={from:Jt(we,0),to:null}:we.from==null&&(we={from:we,to:null}),we.to||(we.to=we.from),we.margin=Re||0,we.from.line!=null?ga(this,we):si(this,we.from,we.to,we.margin)}),setSize:Xi(function(we,Re){var $e=this,ft=function(Mt){return typeof Mt=="number"||/^\d+$/.test(String(Mt))?Mt+"px":Mt};we!=null&&(this.display.wrapper.style.width=ft(we)),Re!=null&&(this.display.wrapper.style.height=ft(Re)),this.options.lineWrapping&&io(this);var wt=this.display.viewFrom;this.doc.iter(wt,this.display.viewTo,function(Mt){if(Mt.widgets){for(var Rt=0;Rt<Mt.widgets.length;Rt++)if(Mt.widgets[Rt].noHScroll){Do($e,wt,"widget");break}}++wt}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(we){return gi(this,we)},startOperation:function(){return ro(this)},endOperation:function(){return Io(this)},refresh:Xi(function(){var we=this.display.cachedTextHeight;Ea(this),this.curOp.forceUpdate=!0,pa(this),Bi(this,this.doc.scrollLeft,this.doc.scrollTop),xs(this.display),(we==null||Math.abs(we-Fo(this.display))>.5||this.options.lineWrapping)&&os(this),Pt(this,"refresh",this)}),swapDoc:Xi(function(we){var Re=this.doc;return Re.cm=null,this.state.selectingText&&this.state.selectingText(),ka(this,we),pa(this),this.display.input.reset(),Bi(this,we.scrollLeft,we.scrollTop),this.curOp.forceScroll=!0,Kn(this,"swapDoc",this,Re),Re}),phrase:function(we){var Re=this.options.phrases;return Re&&Object.prototype.hasOwnProperty.call(Re,we)?Re[we]:we},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}},kn(E),E.registerHelper=function(we,Re,$e){Ee.hasOwnProperty(we)||(Ee[we]=E[we]={_global:[]}),Ee[we][Re]=$e},E.registerGlobalHelper=function(we,Re,$e,ft){E.registerHelper(we,Re,ft),Ee[we]._global.push({pred:$e,val:ft})}}function Gu(E,ee,Ee,we,Re){var $e=ee,ft=Ee,wt=_n(E,ee.line),Mt=Re&&E.direction=="rtl"?-Ee:Ee;function Rt(){var Qi=ee.line+Mt;return Qi<E.first||Qi>=E.first+E.size?!1:(ee=new Jt(Qi,ee.ch,ee.sticky),wt=_n(E,Qi))}function fn(Qi){var Pi;if(we=="codepoint"){var sa=wt.text.charCodeAt(ee.ch+(we>0?0:-1));isNaN(sa)?Pi=null:Pi=new Jt(ee.line,Math.max(0,Math.min(wt.text.length,ee.ch+Ee*(sa>=55296&&sa<56320?2:1))),-Ee)}else Re?Pi=$l(E.cm,wt,ee,Ee):Pi=Jl(wt,ee,Ee);if(Pi==null)if(!Qi&&Rt())ee=Hc(Re,E.cm,wt,ee.line,Mt);else return!1;else ee=Pi;return!0}if(we=="char"||we=="codepoint")fn();else if(we=="column")fn(!0);else if(we=="word"||we=="group")for(var An=null,cr=we=="group",er=E.cm&&E.cm.getHelper(ee,"wordChars"),Fr=!0;!(Ee<0&&!fn(!Fr));Fr=!1){var ti=wt.text.charAt(ee.ch)||`
|
|
|
`,Si=je(ti,er)?"w":cr&&ti==`
|
|
|
`?"n":!cr||/\s/.test(ti)?null:"p";if(cr&&!Fr&&!Si&&(Si="s"),An&&An!=Si){Ee<0&&(Ee=1,fn(),ee.sticky="after");break}if(Si&&(An=Si),Ee>0&&!fn(!Fr))break}var _i=Jc(E,ee,$e,ft,!0);return tr($e,_i)&&(_i.hitSide=!0),_i}function yf(E,ee,Ee,we){var Re=E.doc,$e=ee.left,ft;if(we=="page"){var wt=Math.min(E.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Mt=Math.max(wt-.5*Fo(E.display),3);ft=(Ee>0?ee.bottom:ee.top)+Ee*Mt}else we=="line"&&(ft=Ee>0?ee.bottom+3:ee.top-3);for(var Rt;Rt=Yo(E,$e,ft),!!Rt.outside;){if(Ee<0?ft<=0:ft>=Re.height){Rt.hitSide=!0;break}ft+=Ee*5}return Rt}var rs=function(E){this.cm=E,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};rs.prototype.init=function(E){var ee=this,Ee=this,we=Ee.cm,Re=Ee.div=E.lineDiv;gf(Re,we.options.spellcheck,we.options.autocorrect,we.options.autocapitalize);function $e(wt){for(var Mt=wt.target;Mt;Mt=Mt.parentNode){if(Mt==Re)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Mt.className))break}return!1}Qt(Re,"paste",function(wt){!$e(wt)||zt(we,wt)||kd(wt,we)||ie<=11&&setTimeout(na(we,function(){return ee.updateFromDOM()}),20)}),Qt(Re,"compositionstart",function(wt){ee.composing={data:wt.data,done:!1}}),Qt(Re,"compositionupdate",function(wt){ee.composing||(ee.composing={data:wt.data,done:!1})}),Qt(Re,"compositionend",function(wt){ee.composing&&(wt.data!=ee.composing.data&&ee.readFromDOMSoon(),ee.composing.done=!0)}),Qt(Re,"touchstart",function(){return Ee.forceCompositionEnd()}),Qt(Re,"input",function(){ee.composing||ee.readFromDOMSoon()});function ft(wt){if(!(!$e(wt)||zt(we,wt))){if(we.somethingSelected())Mc({lineWise:!1,text:we.getSelections()}),wt.type=="cut"&&we.replaceSelection("",null,"cut");else if(we.options.lineWiseCopyCut){var Mt=ou(we);Mc({lineWise:!0,text:Mt.text}),wt.type=="cut"&&we.operation(function(){we.setSelections(Mt.ranges,0,nt),we.replaceSelection("",null,"cut")})}else return;if(wt.clipboardData){wt.clipboardData.clearData();var Rt=Zl.text.join(`
|
|
|
`);if(wt.clipboardData.setData("Text",Rt),wt.clipboardData.getData("Text")==Rt){wt.preventDefault();return}}var fn=Od(),An=fn.firstChild;we.display.lineSpace.insertBefore(fn,we.display.lineSpace.firstChild),An.value=Zl.text.join(`
|
|
|
`);var cr=document.activeElement;et(An),setTimeout(function(){we.display.lineSpace.removeChild(fn),cr.focus(),cr==Re&&Ee.showPrimarySelection()},50)}}Qt(Re,"copy",ft),Qt(Re,"cut",ft)},rs.prototype.screenReaderLabelChanged=function(E){E?this.div.setAttribute("aria-label",E):this.div.removeAttribute("aria-label")},rs.prototype.prepareSelection=function(){var E=Un(this.cm,!1);return E.focus=document.activeElement==this.div,E},rs.prototype.showSelection=function(E,ee){!E||!this.cm.display.view.length||((E.focus||ee)&&this.showPrimarySelection(),this.showMultipleSelections(E))},rs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},rs.prototype.showPrimarySelection=function(){var E=this.getSelection(),ee=this.cm,Ee=ee.doc.sel.primary(),we=Ee.from(),Re=Ee.to();if(ee.display.viewTo==ee.display.viewFrom||we.line>=ee.display.viewTo||Re.line<ee.display.viewFrom){E.removeAllRanges();return}var $e=Xu(ee,E.anchorNode,E.anchorOffset),ft=Xu(ee,E.focusNode,E.focusOffset);if(!($e&&!$e.bad&&ft&&!ft.bad&&pn(Jn($e,ft),we)==0&&pn(jn($e,ft),Re)==0)){var wt=ee.display.view,Mt=we.line>=ee.display.viewFrom&&bf(ee,we)||{node:wt[0].measure.map[2],offset:0},Rt=Re.line<ee.display.viewTo&&bf(ee,Re);if(!Rt){var fn=wt[wt.length-1].measure,An=fn.maps?fn.maps[fn.maps.length-1]:fn.map;Rt={node:An[An.length-1],offset:An[An.length-2]-An[An.length-3]}}if(!Mt||!Rt){E.removeAllRanges();return}var cr=E.rangeCount&&E.getRangeAt(0),er;try{er=Be(Mt.node,Mt.offset,Rt.offset,Rt.node)}catch(Fr){}er&&(!Oe&&ee.state.focused?(E.collapse(Mt.node,Mt.offset),er.collapsed||(E.removeAllRanges(),E.addRange(er))):(E.removeAllRanges(),E.addRange(er)),cr&&E.anchorNode==null?E.addRange(cr):Oe&&this.startGracePeriod()),this.rememberSelection()}},rs.prototype.startGracePeriod=function(){var E=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){E.gracePeriod=!1,E.selectionChanged()&&E.cm.operation(function(){return E.cm.curOp.selectionChanged=!0})},20)},rs.prototype.showMultipleSelections=function(E){De(this.cm.display.cursorDiv,E.cursors),De(this.cm.display.selectionDiv,E.selection)},rs.prototype.rememberSelection=function(){var E=this.getSelection();this.lastAnchorNode=E.anchorNode,this.lastAnchorOffset=E.anchorOffset,this.lastFocusNode=E.focusNode,this.lastFocusOffset=E.focusOffset},rs.prototype.selectionInEditor=function(){var E=this.getSelection();if(!E.rangeCount)return!1;var ee=E.getRangeAt(0).commonAncestorContainer;return Ue(this.div,ee)},rs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},rs.prototype.blur=function(){this.div.blur()},rs.prototype.getField=function(){return this.div},rs.prototype.supportsTouch=function(){return!0},rs.prototype.receivedFocus=function(){var E=this;this.selectionInEditor()?this.pollSelection():gi(this.cm,function(){return E.cm.curOp.selectionChanged=!0});function ee(){E.cm.state.focused&&(E.pollSelection(),E.polling.set(E.cm.options.pollInterval,ee))}this.polling.set(this.cm.options.pollInterval,ee)},rs.prototype.selectionChanged=function(){var E=this.getSelection();return E.anchorNode!=this.lastAnchorNode||E.anchorOffset!=this.lastAnchorOffset||E.focusNode!=this.lastFocusNode||E.focusOffset!=this.lastFocusOffset},rs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var E=this.getSelection(),ee=this.cm;if(fe&&ne&&this.cm.display.gutterSpecs.length&&uh(E.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Ee=Xu(ee,E.anchorNode,E.anchorOffset),we=Xu(ee,E.focusNode,E.focusOffset);Ee&&we&&gi(ee,function(){Ts(ee.doc,Gs(Ee,we),nt),(Ee.bad||we.bad)&&(ee.curOp.selectionChanged=!0)})}}},rs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var E=this.cm,ee=E.display,Ee=E.doc.sel.primary(),we=Ee.from(),Re=Ee.to();if(we.ch==0&&we.line>E.firstLine()&&(we=Jt(we.line-1,_n(E.doc,we.line-1).length)),Re.ch==_n(E.doc,Re.line).text.length&&Re.line<E.lastLine()&&(Re=Jt(Re.line+1,0)),we.line<ee.viewFrom||Re.line>ee.viewTo-1)return!1;var $e,ft,wt;we.line==ee.viewFrom||($e=no(E,we.line))==0?(ft=Lr(ee.view[0].line),wt=ee.view[0].node):(ft=Lr(ee.view[$e].line),wt=ee.view[$e-1].node.nextSibling);var Mt=no(E,Re.line),Rt,fn;if(Mt==ee.view.length-1?(Rt=ee.viewTo-1,fn=ee.lineDiv.lastChild):(Rt=Lr(ee.view[Mt+1].line)-1,fn=ee.view[Mt+1].node.previousSibling),!wt)return!1;for(var An=E.doc.splitLines(dh(E,wt,fn,ft,Rt)),cr=hr(E.doc,Jt(ft,0),Jt(Rt,_n(E.doc,Rt).text.length));An.length>1&&cr.length>1;)if(At(An)==At(cr))An.pop(),cr.pop(),Rt--;else if(An[0]==cr[0])An.shift(),cr.shift(),ft++;else break;for(var er=0,Fr=0,ti=An[0],Si=cr[0],_i=Math.min(ti.length,Si.length);er<_i&&ti.charCodeAt(er)==Si.charCodeAt(er);)++er;for(var Qi=At(An),Pi=At(cr),sa=Math.min(Qi.length-(An.length==1?er:0),Pi.length-(cr.length==1?er:0));Fr<sa&&Qi.charCodeAt(Qi.length-Fr-1)==Pi.charCodeAt(Pi.length-Fr-1);)++Fr;if(An.length==1&&cr.length==1&&ft==we.line)for(;er&&er>we.ch&&Qi.charCodeAt(Qi.length-Fr-1)==Pi.charCodeAt(Pi.length-Fr-1);)er--,Fr++;An[An.length-1]=Qi.slice(0,Qi.length-Fr).replace(/^\u200b+/,""),An[0]=An[0].slice(er).replace(/\u200b+$/,"");var Wa=Jt(ft,er),Ga=Jt(Rt,cr.length?At(cr).length-Fr:0);if(An.length>1||An[0]||pn(Wa,Ga))return ol(E.doc,An,Wa,Ga,"+input"),!0},rs.prototype.ensurePolled=function(){this.forceCompositionEnd()},rs.prototype.reset=function(){this.forceCompositionEnd()},rs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},rs.prototype.readFromDOMSoon=function(){var E=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(E.readDOMTimeout=null,E.composing)if(E.composing.done)E.composing=null;else return;E.updateFromDOM()},80))},rs.prototype.updateFromDOM=function(){var E=this;(this.cm.isReadOnly()||!this.pollContent())&&gi(this.cm,function(){return Ea(E.cm)})},rs.prototype.setUneditable=function(E){E.contentEditable="false"},rs.prototype.onKeyPress=function(E){E.charCode==0||this.composing||(E.preventDefault(),this.cm.isReadOnly()||na(this.cm,Md)(this.cm,String.fromCharCode(E.charCode==null?E.keyCode:E.charCode),0))},rs.prototype.readOnlyChanged=function(E){this.div.contentEditable=String(E!="nocursor")},rs.prototype.onContextMenu=function(){},rs.prototype.resetPosition=function(){},rs.prototype.needsContentAttribute=!0;function bf(E,ee){var Ee=Ja(E,ee.line);if(!Ee||Ee.hidden)return null;var we=_n(E.doc,ee.line),Re=Ci(Ee,we,ee.line),$e=xn(we,E.doc.direction),ft="left";if($e){var wt=xt($e,ee.ch);ft=wt%2?"right":"left"}var Mt=Da(Re.map,ee.ch,ft);return Mt.offset=Mt.collapse=="right"?Mt.end:Mt.start,Mt}function uh(E){for(var ee=E;ee;ee=ee.parentNode)if(/CodeMirror-gutter-wrapper/.test(ee.className))return!0;return!1}function su(E,ee){return ee&&(E.bad=!0),E}function dh(E,ee,Ee,we,Re){var $e="",ft=!1,wt=E.doc.lineSeparator(),Mt=!1;function Rt(er){return function(Fr){return Fr.id==er}}function fn(){ft&&($e+=wt,Mt&&($e+=wt),ft=Mt=!1)}function An(er){er&&(fn(),$e+=er)}function cr(er){if(er.nodeType==1){var Fr=er.getAttribute("cm-text");if(Fr){An(Fr);return}var ti=er.getAttribute("cm-marker"),Si;if(ti){var _i=E.findMarks(Jt(we,0),Jt(Re+1,0),Rt(+ti));_i.length&&(Si=_i[0].find(0))&&An(hr(E.doc,Si.from,Si.to).join(wt));return}if(er.getAttribute("contenteditable")=="false")return;var Qi=/^(pre|div|p|li|table|br)$/i.test(er.nodeName);if(!/^br$/i.test(er.nodeName)&&er.textContent.length==0)return;Qi&&fn();for(var Pi=0;Pi<er.childNodes.length;Pi++)cr(er.childNodes[Pi]);/^(pre|p)$/i.test(er.nodeName)&&(Mt=!0),Qi&&(ft=!0)}else er.nodeType==3&&An(er.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;cr(ee),ee!=Ee;)ee=ee.nextSibling,Mt=!1;return $e}function Xu(E,ee,Ee){var we;if(ee==E.display.lineDiv){if(we=E.display.lineDiv.childNodes[Ee],!we)return su(E.clipPos(Jt(E.display.viewTo-1)),!0);ee=null,Ee=0}else for(we=ee;;we=we.parentNode){if(!we||we==E.display.lineDiv)return null;if(we.parentNode&&we.parentNode==E.display.lineDiv)break}for(var Re=0;Re<E.display.view.length;Re++){var $e=E.display.view[Re];if($e.node==we)return fh($e,ee,Ee)}}function fh(E,ee,Ee){var we=E.text.firstChild,Re=!1;if(!ee||!Ue(we,ee))return su(Jt(Lr(E.line),0),!0);if(ee==we&&(Re=!0,ee=we.childNodes[Ee],Ee=0,!ee)){var $e=E.rest?At(E.rest):E.line;return su(Jt(Lr($e),$e.text.length),Re)}var ft=ee.nodeType==3?ee:null,wt=ee;for(!ft&&ee.childNodes.length==1&&ee.firstChild.nodeType==3&&(ft=ee.firstChild,Ee&&(Ee=ft.nodeValue.length));wt.parentNode!=we;)wt=wt.parentNode;var Mt=E.measure,Rt=Mt.maps;function fn(Si,_i,Qi){for(var Pi=-1;Pi<(Rt?Rt.length:0);Pi++)for(var sa=Pi<0?Mt.map:Rt[Pi],Wa=0;Wa<sa.length;Wa+=3){var Ga=sa[Wa+2];if(Ga==Si||Ga==_i){var Ao=Lr(Pi<0?E.line:E.rest[Pi]),fs=sa[Wa]+Qi;return(Qi<0||Ga!=Si)&&(fs=sa[Wa+(Qi?1:0)]),Jt(Ao,fs)}}}var An=fn(ft,wt,Ee);if(An)return su(An,Re);for(var cr=wt.nextSibling,er=ft?ft.nodeValue.length-Ee:0;cr;cr=cr.nextSibling){if(An=fn(cr,cr.firstChild,0),An)return su(Jt(An.line,An.ch-er),Re);er+=cr.textContent.length}for(var Fr=wt.previousSibling,ti=Ee;Fr;Fr=Fr.previousSibling){if(An=fn(Fr,Fr.firstChild,-1),An)return su(Jt(An.line,An.ch+ti),Re);ti+=Fr.textContent.length}}var ds=function(E){this.cm=E,this.prevInput="",this.pollingFast=!1,this.polling=new Xe,this.hasSelection=!1,this.composing=null};ds.prototype.init=function(E){var ee=this,Ee=this,we=this.cm;this.createField(E);var Re=this.textarea;E.wrapper.insertBefore(this.wrapper,E.wrapper.firstChild),ce&&(Re.style.width="0px"),Qt(Re,"input",function(){ve&&ie>=9&&ee.hasSelection&&(ee.hasSelection=null),Ee.poll()}),Qt(Re,"paste",function(ft){zt(we,ft)||kd(ft,we)||(we.state.pasteIncoming=+new Date,Ee.fastPoll())});function $e(ft){if(!zt(we,ft)){if(we.somethingSelected())Mc({lineWise:!1,text:we.getSelections()});else if(we.options.lineWiseCopyCut){var wt=ou(we);Mc({lineWise:!0,text:wt.text}),ft.type=="cut"?we.setSelections(wt.ranges,null,nt):(Ee.prevInput="",Re.value=wt.text.join(`
|
|
|
`),et(Re))}else return;ft.type=="cut"&&(we.state.cutIncoming=+new Date)}}Qt(Re,"cut",$e),Qt(Re,"copy",$e),Qt(E.scroller,"paste",function(ft){if(!(ji(E,ft)||zt(we,ft))){if(!Re.dispatchEvent){we.state.pasteIncoming=+new Date,Ee.focus();return}var wt=new Event("paste");wt.clipboardData=ft.clipboardData,Re.dispatchEvent(wt)}}),Qt(E.lineSpace,"selectstart",function(ft){ji(E,ft)||Gn(ft)}),Qt(Re,"compositionstart",function(){var ft=we.getCursor("from");Ee.composing&&Ee.composing.range.clear(),Ee.composing={start:ft,range:we.markText(ft,we.getCursor("to"),{className:"CodeMirror-composing"})}}),Qt(Re,"compositionend",function(){Ee.composing&&(Ee.poll(),Ee.composing.range.clear(),Ee.composing=null)})},ds.prototype.createField=function(E){this.wrapper=Od(),this.textarea=this.wrapper.firstChild},ds.prototype.screenReaderLabelChanged=function(E){E?this.textarea.setAttribute("aria-label",E):this.textarea.removeAttribute("aria-label")},ds.prototype.prepareSelection=function(){var E=this.cm,ee=E.display,Ee=E.doc,we=Un(E);if(E.options.moveInputWithCursor){var Re=ho(E,Ee.sel.primary().head,"div"),$e=ee.wrapper.getBoundingClientRect(),ft=ee.lineDiv.getBoundingClientRect();we.teTop=Math.max(0,Math.min(ee.wrapper.clientHeight-10,Re.top+ft.top-$e.top)),we.teLeft=Math.max(0,Math.min(ee.wrapper.clientWidth-10,Re.left+ft.left-$e.left))}return we},ds.prototype.showSelection=function(E){var ee=this.cm,Ee=ee.display;De(Ee.cursorDiv,E.cursors),De(Ee.selectionDiv,E.selection),E.teTop!=null&&(this.wrapper.style.top=E.teTop+"px",this.wrapper.style.left=E.teLeft+"px")},ds.prototype.reset=function(E){if(!(this.contextMenuPending||this.composing)){var ee=this.cm;if(ee.somethingSelected()){this.prevInput="";var Ee=ee.getSelection();this.textarea.value=Ee,ee.state.focused&&et(this.textarea),ve&&ie>=9&&(this.hasSelection=Ee)}else E||(this.prevInput=this.textarea.value="",ve&&ie>=9&&(this.hasSelection=null))}},ds.prototype.getField=function(){return this.textarea},ds.prototype.supportsTouch=function(){return!1},ds.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!pe||_e()!=this.textarea))try{this.textarea.focus()}catch(E){}},ds.prototype.blur=function(){this.textarea.blur()},ds.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ds.prototype.receivedFocus=function(){this.slowPoll()},ds.prototype.slowPoll=function(){var E=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){E.poll(),E.cm.state.focused&&E.slowPoll()})},ds.prototype.fastPoll=function(){var E=!1,ee=this;ee.pollingFast=!0;function Ee(){var we=ee.poll();!we&&!E?(E=!0,ee.polling.set(60,Ee)):(ee.pollingFast=!1,ee.slowPoll())}ee.polling.set(20,Ee)},ds.prototype.poll=function(){var E=this,ee=this.cm,Ee=this.textarea,we=this.prevInput;if(this.contextMenuPending||!ee.state.focused||zn(Ee)&&!we&&!this.composing||ee.isReadOnly()||ee.options.disableInput||ee.state.keySeq)return!1;var Re=Ee.value;if(Re==we&&!ee.somethingSelected())return!1;if(ve&&ie>=9&&this.hasSelection===Re||le&&/[\uf700-\uf7ff]/.test(Re))return ee.display.input.reset(),!1;if(ee.doc.sel==ee.display.selForContextMenu){var $e=Re.charCodeAt(0);if($e==8203&&!we&&(we="\u200B"),$e==8666)return this.reset(),this.cm.execCommand("undo")}for(var ft=0,wt=Math.min(we.length,Re.length);ft<wt&&we.charCodeAt(ft)==Re.charCodeAt(ft);)++ft;return gi(ee,function(){Md(ee,Re.slice(ft),we.length-ft,null,E.composing?"*compose":null),Re.length>1e3||Re.indexOf(`
|
|
|
`)>-1?Ee.value=E.prevInput="":E.prevInput=Re,E.composing&&(E.composing.range.clear(),E.composing.range=ee.markText(E.composing.start,ee.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ds.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ds.prototype.onKeyPress=function(){ve&&ie>=9&&(this.hasSelection=null),this.fastPoll()},ds.prototype.onContextMenu=function(E){var ee=this,Ee=ee.cm,we=Ee.display,Re=ee.textarea;ee.contextMenuPending&&ee.contextMenuPending();var $e=Is(Ee,E),ft=we.scroller.scrollTop;if(!$e||oe)return;var wt=Ee.options.resetSelectionOnContextMenu;wt&&Ee.doc.sel.contains($e)==-1&&na(Ee,Ts)(Ee.doc,Gs($e),nt);var Mt=Re.style.cssText,Rt=ee.wrapper.style.cssText,fn=ee.wrapper.offsetParent.getBoundingClientRect();ee.wrapper.style.cssText="position: static",Re.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(E.clientY-fn.top-5)+"px; left: "+(E.clientX-fn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ve?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var An;te&&(An=window.scrollY),we.input.focus(),te&&window.scrollTo(null,An),we.input.reset(),Ee.somethingSelected()||(Re.value=ee.prevInput=" "),ee.contextMenuPending=er,we.selForContextMenu=Ee.doc.sel,clearTimeout(we.detectingSelectAll);function cr(){if(Re.selectionStart!=null){var ti=Ee.somethingSelected(),Si="\u200B"+(ti?Re.value:"");Re.value="\u21DA",Re.value=Si,ee.prevInput=ti?"":"\u200B",Re.selectionStart=1,Re.selectionEnd=Si.length,we.selForContextMenu=Ee.doc.sel}}function er(){if(ee.contextMenuPending==er&&(ee.contextMenuPending=!1,ee.wrapper.style.cssText=Rt,Re.style.cssText=Mt,ve&&ie<9&&we.scrollbars.setScrollTop(we.scroller.scrollTop=ft),Re.selectionStart!=null)){(!ve||ve&&ie<9)&&cr();var ti=0,Si=function(){we.selForContextMenu==Ee.doc.sel&&Re.selectionStart==0&&Re.selectionEnd>0&&ee.prevInput=="\u200B"?na(Ee,$c)(Ee):ti++<10?we.detectingSelectAll=setTimeout(Si,500):(we.selForContextMenu=null,we.input.reset())};we.detectingSelectAll=setTimeout(Si,200)}}if(ve&&ie>=9&&cr(),ye){zr(E);var Fr=function(){bn(window,"mouseup",Fr),setTimeout(er,20)};Qt(window,"mouseup",Fr)}else setTimeout(er,50)},ds.prototype.readOnlyChanged=function(E){E||this.reset(),this.textarea.disabled=E=="nocursor",this.textarea.readOnly=!!E},ds.prototype.setUneditable=function(){},ds.prototype.needsContentAttribute=!1;function Wc(E,ee){if(ee=ee?pt(ee):{},ee.value=E.value,!ee.tabindex&&E.tabIndex&&(ee.tabindex=E.tabIndex),!ee.placeholder&&E.placeholder&&(ee.placeholder=E.placeholder),ee.autofocus==null){var Ee=_e();ee.autofocus=Ee==E||E.getAttribute("autofocus")!=null&&Ee==document.body}function we(){E.value=wt.getValue()}var Re;if(E.form&&(Qt(E.form,"submit",we),!ee.leaveSubmitMethodAlone)){var $e=E.form;Re=$e.submit;try{var ft=$e.submit=function(){we(),$e.submit=Re,$e.submit(),$e.submit=ft}}catch(Mt){}}ee.finishInit=function(Mt){Mt.save=we,Mt.getTextArea=function(){return E},Mt.toTextArea=function(){Mt.toTextArea=isNaN,we(),E.parentNode.removeChild(Mt.getWrapperElement()),E.style.display="",E.form&&(bn(E.form,"submit",we),!ee.leaveSubmitMethodAlone&&typeof E.form.submit=="function"&&(E.form.submit=Re))}},E.style.display="none";var wt=so(function(Mt){return E.parentNode.insertBefore(Mt,E.nextSibling)},ee);return wt}function lu(E){E.off=bn,E.on=Qt,E.wheelEventPixels=Ol,E.Doc=Hs,E.splitLines=rn,E.countColumn=Ge,E.findColumn=gt,E.isWordChar=He,E.Pass=st,E.signal=Pt,E.Line=Zn,E.changeEnd=tl,E.scrollbarModel=Za,E.Pos=Jt,E.cmpPos=pn,E.modes=Pr,E.mimeModes=Gr,E.resolveMode=$t,E.getMode=cn,E.modeExtensions=Rn,E.extendMode=jt,E.copyState=an,E.startState=vn,E.innerMode=Tn,E.commands=ru,E.keyMap=us,E.keyName=zc,E.isModifierKey=wu,E.lookupKey=uc,E.normalizeKeyMap=yd,E.StringStream=Bn,E.SharedTextMarker=Eo,E.TextMarker=xc,E.LineWidget=eu,E.e_preventDefault=Gn,E.e_stopPropagation=dr,E.e_stop=zr,E.addClass=We,E.contains=Ue,E.rmClass=Fe,E.keyNames=Ul}sh(so),Dd(so);var hc="iter insert remove copy getEditor constructor".split(" ");for(var jl in Hs.prototype)Hs.prototype.hasOwnProperty(jl)&<(hc,jl)<0&&(so.prototype[jl]=function(E){return function(){return E.apply(this.doc,arguments)}}(Hs.prototype[jl]));return kn(Hs),so.inputStyles={textarea:ds,contenteditable:rs},so.defineMode=function(E){!so.defaults.mode&&E!="null"&&(so.defaults.mode=E),Er.apply(this,arguments)},so.defineMIME=Wt,so.defineMode("null",function(){return{token:function(E){return E.skipToEnd()}}}),so.defineMIME("text/plain","null"),so.defineExtension=function(E,ee){so.prototype[E]=ee},so.defineDocExtension=function(E,ee){Hs.prototype[E]=ee},so.fromTextArea=Wc,lu(so),so.version="5.58.2",so})},49047:function(tn,Kt,me){(function(Oe){Oe(me(4631),me(29589),me(52539))})(function(Oe){"use strict";Oe.defineMode("markdown",function(Je,x){var Te=Oe.getMode(Je,"text/html"),ve=Te.name=="null";function ie(Ge){if(Oe.findModeByName){var Xe=Oe.findModeByName(Ge);Xe&&(Ge=Xe.mime||Xe.mimes[0])}var lt=Oe.getMode(Je,Ge);return lt.name=="null"?null:lt}x.highlightFormatting===void 0&&(x.highlightFormatting=!1),x.maxBlockquoteDepth===void 0&&(x.maxBlockquoteDepth=0),x.taskLists===void 0&&(x.taskLists=!1),x.strikethrough===void 0&&(x.strikethrough=!1),x.emoji===void 0&&(x.emoji=!1),x.fencedCodeBlockHighlighting===void 0&&(x.fencedCodeBlockHighlighting=!0),x.fencedCodeBlockDefaultMode===void 0&&(x.fencedCodeBlockDefaultMode="text/plain"),x.xml===void 0&&(x.xml=!0),x.tokenTypeOverrides===void 0&&(x.tokenTypeOverrides={});var te={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 ae in te)te.hasOwnProperty(ae)&&x.tokenTypeOverrides[ae]&&(te[ae]=x.tokenTypeOverrides[ae]);var ne=/^([*\-_])(?:\s*\1){2,}\s*$/,oe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,he=/^\[(x| )\](?=\s)/i,re=x.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,se=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ce=/^[^#!\[\]*_\\<>` "'(~:]+/,fe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,pe=/^\s*\[[^\]]+?\]:.*$/,le=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Se=" ";function xe(Ge,Xe,lt){return Xe.f=Xe.inline=lt,lt(Ge,Xe)}function ge(Ge,Xe,lt){return Xe.f=Xe.block=lt,lt(Ge,Xe)}function Me(Ge){return!Ge||!/\S/.test(Ge.string)}function ye(Ge){if(Ge.linkTitle=!1,Ge.linkHref=!1,Ge.linkText=!1,Ge.em=!1,Ge.strong=!1,Ge.strikethrough=!1,Ge.quote=0,Ge.indentedCode=!1,Ge.f==Fe){var Xe=ve;if(!Xe){var lt=Oe.innerMode(Te,Ge.htmlState);Xe=lt.mode.name=="xml"&<.state.tagStart===null&&!lt.state.context&<.state.tokenize.isInText}Xe&&(Ge.f=Ie,Ge.block=be,Ge.htmlState=null)}return Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:null},null}function be(Ge,Xe){var lt=Ge.column()===Xe.indentation,dt=Me(Xe.prevLine.stream),st=Xe.indentedCode,nt=Xe.prevLine.hr,rt=Xe.list!==!1,at=(Xe.listStack[Xe.listStack.length-1]||0)+3;Xe.indentedCode=!1;var gt=Xe.indentation;if(Xe.indentationDiff===null&&(Xe.indentationDiff=Xe.indentation,rt)){for(Xe.list=null;gt<Xe.listStack[Xe.listStack.length-1];)Xe.listStack.pop(),Xe.listStack.length?Xe.indentation=Xe.listStack[Xe.listStack.length-1]:Xe.list=!1;Xe.list!==!1&&(Xe.indentationDiff=gt-Xe.listStack[Xe.listStack.length-1])}var vt=!dt&&!nt&&!Xe.prevLine.header&&(!rt||!st)&&!Xe.prevLine.fencedCodeEnd,Et=(Xe.list===!1||nt||dt)&&Xe.indentation<=at&&Ge.match(ne),At=null;if(Xe.indentationDiff>=4&&(st||Xe.prevLine.fencedCodeEnd||Xe.prevLine.header||dt))return Ge.skipToEnd(),Xe.indentedCode=!0,te.code;if(Ge.eatSpace())return null;if(lt&&Xe.indentation<=at&&(At=Ge.match(re))&&At[1].length<=6)return Xe.quote=0,Xe.header=At[1].length,Xe.thisLine.header=!0,x.highlightFormatting&&(Xe.formatting="header"),Xe.f=Xe.inline,De(Xe);if(Xe.indentation<=at&&Ge.eat(">"))return Xe.quote=lt?1:Xe.quote+1,x.highlightFormatting&&(Xe.formatting="quote"),Ge.eatSpace(),De(Xe);if(!Et&&!Xe.setext&<&&Xe.indentation<=at&&(At=Ge.match(oe))){var ut=At[1]?"ol":"ul";return Xe.indentation=gt+Ge.current().length,Xe.list=!0,Xe.quote=0,Xe.listStack.push(Xe.indentation),Xe.em=!1,Xe.strong=!1,Xe.code=!1,Xe.strikethrough=!1,x.taskLists&&Ge.match(he,!1)&&(Xe.taskList=!0),Xe.f=Xe.inline,x.highlightFormatting&&(Xe.formatting=["list","list-"+ut]),De(Xe)}else{if(lt&&Xe.indentation<=at&&(At=Ge.match(fe,!0)))return Xe.quote=0,Xe.fencedEndRE=new RegExp(At[1]+"+ *$"),Xe.localMode=x.fencedCodeBlockHighlighting&&ie(At[2]||x.fencedCodeBlockDefaultMode),Xe.localMode&&(Xe.localState=Oe.startState(Xe.localMode)),Xe.f=Xe.block=ke,x.highlightFormatting&&(Xe.formatting="code-block"),Xe.code=-1,De(Xe);if(Xe.setext||(!vt||!rt)&&!Xe.quote&&Xe.list===!1&&!Xe.code&&!Et&&!pe.test(Ge.string)&&(At=Ge.lookAhead(1))&&(At=At.match(se)))return Xe.setext?(Xe.header=Xe.setext,Xe.setext=0,Ge.skipToEnd(),x.highlightFormatting&&(Xe.formatting="header")):(Xe.header=At[0].charAt(0)=="="?1:2,Xe.setext=Xe.header),Xe.thisLine.header=!0,Xe.f=Xe.inline,De(Xe);if(Et)return Ge.skipToEnd(),Xe.hr=!0,Xe.thisLine.hr=!0,te.hr;if(Ge.peek()==="[")return xe(Ge,Xe,Ze)}return xe(Ge,Xe,Xe.inline)}function Fe(Ge,Xe){var lt=Te.token(Ge,Xe.htmlState);if(!ve){var dt=Oe.innerMode(Te,Xe.htmlState);(dt.mode.name=="xml"&&dt.state.tagStart===null&&!dt.state.context&&dt.state.tokenize.isInText||Xe.md_inside&&Ge.current().indexOf(">")>-1)&&(Xe.f=Ie,Xe.block=be,Xe.htmlState=null)}return lt}function ke(Ge,Xe){var lt=Xe.listStack[Xe.listStack.length-1]||0,dt=Xe.indentation<lt,st=lt+3;if(Xe.fencedEndRE&&Xe.indentation<=st&&(dt||Ge.match(Xe.fencedEndRE))){x.highlightFormatting&&(Xe.formatting="code-block");var nt;return dt||(nt=De(Xe)),Xe.localMode=Xe.localState=null,Xe.block=be,Xe.f=Ie,Xe.fencedEndRE=null,Xe.code=0,Xe.thisLine.fencedCodeEnd=!0,dt?ge(Ge,Xe,Xe.block):nt}else return Xe.localMode?Xe.localMode.token(Ge,Xe.localState):(Ge.skipToEnd(),te.code)}function De(Ge){var Xe=[];if(Ge.formatting){Xe.push(te.formatting),typeof Ge.formatting=="string"&&(Ge.formatting=[Ge.formatting]);for(var lt=0;lt<Ge.formatting.length;lt++)Xe.push(te.formatting+"-"+Ge.formatting[lt]),Ge.formatting[lt]==="header"&&Xe.push(te.formatting+"-"+Ge.formatting[lt]+"-"+Ge.header),Ge.formatting[lt]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=Ge.quote?Xe.push(te.formatting+"-"+Ge.formatting[lt]+"-"+Ge.quote):Xe.push("error"))}if(Ge.taskOpen)return Xe.push("meta"),Xe.length?Xe.join(" "):null;if(Ge.taskClosed)return Xe.push("property"),Xe.length?Xe.join(" "):null;if(Ge.linkHref?Xe.push(te.linkHref,"url"):(Ge.strong&&Xe.push(te.strong),Ge.em&&Xe.push(te.em),Ge.strikethrough&&Xe.push(te.strikethrough),Ge.emoji&&Xe.push(te.emoji),Ge.linkText&&Xe.push(te.linkText),Ge.code&&Xe.push(te.code),Ge.image&&Xe.push(te.image),Ge.imageAltText&&Xe.push(te.imageAltText,"link"),Ge.imageMarker&&Xe.push(te.imageMarker)),Ge.header&&Xe.push(te.header,te.header+"-"+Ge.header),Ge.quote&&(Xe.push(te.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=Ge.quote?Xe.push(te.quote+"-"+Ge.quote):Xe.push(te.quote+"-"+x.maxBlockquoteDepth)),Ge.list!==!1){var dt=(Ge.listStack.length-1)%3;dt?dt===1?Xe.push(te.list2):Xe.push(te.list3):Xe.push(te.list1)}return Ge.trailingSpaceNewLine?Xe.push("trailing-space-new-line"):Ge.trailingSpace&&Xe.push("trailing-space-"+(Ge.trailingSpace%2?"a":"b")),Xe.length?Xe.join(" "):null}function Le(Ge,Xe){if(Ge.match(ce,!0))return De(Xe)}function Ie(Ge,Xe){var lt=Xe.text(Ge,Xe);if(typeof lt!="undefined")return lt;if(Xe.list)return Xe.list=null,De(Xe);if(Xe.taskList){var dt=Ge.match(he,!0)[1]===" ";return dt?Xe.taskOpen=!0:Xe.taskClosed=!0,x.highlightFormatting&&(Xe.formatting="task"),Xe.taskList=!1,De(Xe)}if(Xe.taskOpen=!1,Xe.taskClosed=!1,Xe.header&&Ge.match(/^#+$/,!0))return x.highlightFormatting&&(Xe.formatting="header"),De(Xe);var st=Ge.next();if(Xe.linkTitle){Xe.linkTitle=!1;var nt=st;st==="("&&(nt=")"),nt=(nt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rt="^\\s*(?:[^"+nt+"\\\\]+|\\\\\\\\|\\\\.)"+nt;if(Ge.match(new RegExp(rt),!0))return te.linkHref}if(st==="`"){var at=Xe.formatting;x.highlightFormatting&&(Xe.formatting="code"),Ge.eatWhile("`");var gt=Ge.current().length;if(Xe.code==0&&(!Xe.quote||gt==1))return Xe.code=gt,De(Xe);if(gt==Xe.code){var vt=De(Xe);return Xe.code=0,vt}else return Xe.formatting=at,De(Xe)}else if(Xe.code)return De(Xe);if(st==="\\"&&(Ge.next(),x.highlightFormatting)){var Et=De(Xe),At=te.formatting+"-escape";return Et?Et+" "+At:At}if(st==="!"&&Ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Xe.imageMarker=!0,Xe.image=!0,x.highlightFormatting&&(Xe.formatting="image"),De(Xe);if(st==="["&&Xe.imageMarker&&Ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Xe.imageMarker=!1,Xe.imageAltText=!0,x.highlightFormatting&&(Xe.formatting="image"),De(Xe);if(st==="]"&&Xe.imageAltText){x.highlightFormatting&&(Xe.formatting="image");var Et=De(Xe);return Xe.imageAltText=!1,Xe.image=!1,Xe.inline=Xe.f=Ue,Et}if(st==="["&&!Xe.image)return Xe.linkText&&Ge.match(/^.*?\]/)||(Xe.linkText=!0,x.highlightFormatting&&(Xe.formatting="link")),De(Xe);if(st==="]"&&Xe.linkText){x.highlightFormatting&&(Xe.formatting="link");var Et=De(Xe);return Xe.linkText=!1,Xe.inline=Xe.f=Ge.match(/\(.*?\)| ?\[.*?\]/,!1)?Ue:Ie,Et}if(st==="<"&&Ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Xe.f=Xe.inline=Be,x.highlightFormatting&&(Xe.formatting="link");var Et=De(Xe);return Et?Et+=" ":Et="",Et+te.linkInline}if(st==="<"&&Ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Xe.f=Xe.inline=Be,x.highlightFormatting&&(Xe.formatting="link");var Et=De(Xe);return Et?Et+=" ":Et="",Et+te.linkEmail}if(x.xml&&st==="<"&&Ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ut=Ge.string.indexOf(">",Ge.pos);if(ut!=-1){var Ye=Ge.string.substring(Ge.start,ut);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ye)&&(Xe.md_inside=!0)}return Ge.backUp(1),Xe.htmlState=Oe.startState(Te),ge(Ge,Xe,Fe)}if(x.xml&&st==="<"&&Ge.match(/^\/\w*?>/))return Xe.md_inside=!1,"tag";if(st==="*"||st==="_"){for(var Ve=1,de=Ge.pos==1?" ":Ge.string.charAt(Ge.pos-2);Ve<3&&Ge.eat(st);)Ve++;var Ce=Ge.peek()||" ",He=!/\s/.test(Ce)&&(!le.test(Ce)||/\s/.test(de)||le.test(de)),je=!/\s/.test(de)&&(!le.test(de)||/\s/.test(Ce)||le.test(Ce)),Ae=null,Ne=null;if(Ve%2&&(!Xe.em&&He&&(st==="*"||!je||le.test(de))?Ae=!0:Xe.em==st&&je&&(st==="*"||!He||le.test(Ce))&&(Ae=!1)),Ve>1&&(!Xe.strong&&He&&(st==="*"||!je||le.test(de))?Ne=!0:Xe.strong==st&&je&&(st==="*"||!He||le.test(Ce))&&(Ne=!1)),Ne!=null||Ae!=null){x.highlightFormatting&&(Xe.formatting=Ae==null?"strong":Ne==null?"em":"strong em"),Ae===!0&&(Xe.em=st),Ne===!0&&(Xe.strong=st);var vt=De(Xe);return Ae===!1&&(Xe.em=!1),Ne===!1&&(Xe.strong=!1),vt}}else if(st===" "&&(Ge.eat("*")||Ge.eat("_"))){if(Ge.peek()===" ")return De(Xe);Ge.backUp(1)}if(x.strikethrough){if(st==="~"&&Ge.eatWhile(st)){if(Xe.strikethrough){x.highlightFormatting&&(Xe.formatting="strikethrough");var vt=De(Xe);return Xe.strikethrough=!1,vt}else if(Ge.match(/^[^\s]/,!1))return Xe.strikethrough=!0,x.highlightFormatting&&(Xe.formatting="strikethrough"),De(Xe)}else if(st===" "&&Ge.match(/^~~/,!0)){if(Ge.peek()===" ")return De(Xe);Ge.backUp(2)}}if(x.emoji&&st===":"&&Ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Xe.emoji=!0,x.highlightFormatting&&(Xe.formatting="emoji");var ze=De(Xe);return Xe.emoji=!1,ze}return st===" "&&(Ge.match(/^ +$/,!1)?Xe.trailingSpace++:Xe.trailingSpace&&(Xe.trailingSpaceNewLine=!0)),De(Xe)}function Be(Ge,Xe){var lt=Ge.next();if(lt===">"){Xe.f=Xe.inline=Ie,x.highlightFormatting&&(Xe.formatting="link");var dt=De(Xe);return dt?dt+=" ":dt="",dt+te.linkInline}return Ge.match(/^[^>]+/,!0),te.linkInline}function Ue(Ge,Xe){if(Ge.eatSpace())return null;var lt=Ge.next();return lt==="("||lt==="["?(Xe.f=Xe.inline=We(lt==="("?")":"]"),x.highlightFormatting&&(Xe.formatting="link-string"),Xe.linkHref=!0,De(Xe)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function We(Ge){return function(Xe,lt){var dt=Xe.next();if(dt===Ge){lt.f=lt.inline=Ie,x.highlightFormatting&&(lt.formatting="link-string");var st=De(lt);return lt.linkHref=!1,st}return Xe.match(_e[Ge]),lt.linkHref=!0,De(lt)}}function Ze(Ge,Xe){return Ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(Xe.f=et,Ge.next(),x.highlightFormatting&&(Xe.formatting="link"),Xe.linkText=!0,De(Xe)):xe(Ge,Xe,Ie)}function et(Ge,Xe){if(Ge.match(/^\]:/,!0)){Xe.f=Xe.inline=it,x.highlightFormatting&&(Xe.formatting="link");var lt=De(Xe);return Xe.linkText=!1,lt}return Ge.match(/^([^\]\\]|\\.)+/,!0),te.linkText}function it(Ge,Xe){return Ge.eatSpace()?null:(Ge.match(/^[^\s]+/,!0),Ge.peek()===void 0?Xe.linkTitle=!0:Ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Xe.f=Xe.inline=Ie,te.linkHref+" url")}var pt={startState:function(){return{f:be,prevLine:{stream:null},thisLine:{stream:null},block:be,htmlState:null,indentation:0,inline:Ie,text:Le,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(Ge){return{f:Ge.f,prevLine:Ge.prevLine,thisLine:Ge.thisLine,block:Ge.block,htmlState:Ge.htmlState&&Oe.copyState(Te,Ge.htmlState),indentation:Ge.indentation,localMode:Ge.localMode,localState:Ge.localMode?Oe.copyState(Ge.localMode,Ge.localState):null,inline:Ge.inline,text:Ge.text,formatting:!1,linkText:Ge.linkText,linkTitle:Ge.linkTitle,linkHref:Ge.linkHref,code:Ge.code,em:Ge.em,strong:Ge.strong,strikethrough:Ge.strikethrough,emoji:Ge.emoji,header:Ge.header,setext:Ge.setext,hr:Ge.hr,taskList:Ge.taskList,list:Ge.list,listStack:Ge.listStack.slice(0),quote:Ge.quote,indentedCode:Ge.indentedCode,trailingSpace:Ge.trailingSpace,trailingSpaceNewLine:Ge.trailingSpaceNewLine,md_inside:Ge.md_inside,fencedEndRE:Ge.fencedEndRE}},token:function(Ge,Xe){if(Xe.formatting=!1,Ge!=Xe.thisLine.stream){if(Xe.header=0,Xe.hr=!1,Ge.match(/^\s*$/,!0))return ye(Xe),null;if(Xe.prevLine=Xe.thisLine,Xe.thisLine={stream:Ge},Xe.taskList=!1,Xe.trailingSpace=0,Xe.trailingSpaceNewLine=!1,!Xe.localState&&(Xe.f=Xe.block,Xe.f!=Fe)){var lt=Ge.match(/^\s*/,!0)[0].replace(/\t/g,Se).length;if(Xe.indentation=lt,Xe.indentationDiff=null,lt>0)return null}}return Xe.f(Ge,Xe)},innerMode:function(Ge){return Ge.block==Fe?{state:Ge.htmlState,mode:Te}:Ge.localState?{state:Ge.localState,mode:Ge.localMode}:{state:Ge,mode:pt}},indent:function(Ge,Xe,lt){return Ge.block==Fe&&Te.indent?Te.indent(Ge.htmlState,Xe,lt):Ge.localState&&Ge.localMode.indent?Ge.localMode.indent(Ge.localState,Xe,lt):Oe.Pass},blankLine:ye,getType:De,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return pt},"xml"),Oe.defineMIME("text/markdown","markdown"),Oe.defineMIME("text/x-markdown","markdown")})},52539:function(tn,Kt,me){(function(Oe){Oe(me(4631))})(function(Oe){"use strict";Oe.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 Je=0;Je<Oe.modeInfo.length;Je++){var x=Oe.modeInfo[Je];x.mimes&&(x.mime=x.mimes[0])}Oe.findModeByMIME=function(Te){Te=Te.toLowerCase();for(var ve=0;ve<Oe.modeInfo.length;ve++){var ie=Oe.modeInfo[ve];if(ie.mime==Te)return ie;if(ie.mimes){for(var te=0;te<ie.mimes.length;te++)if(ie.mimes[te]==Te)return ie}}if(/\+xml$/.test(Te))return Oe.findModeByMIME("application/xml");if(/\+json$/.test(Te))return Oe.findModeByMIME("application/json")},Oe.findModeByExtension=function(Te){Te=Te.toLowerCase();for(var ve=0;ve<Oe.modeInfo.length;ve++){var ie=Oe.modeInfo[ve];if(ie.ext){for(var te=0;te<ie.ext.length;te++)if(ie.ext[te]==Te)return ie}}},Oe.findModeByFileName=function(Te){for(var ve=0;ve<Oe.modeInfo.length;ve++){var ie=Oe.modeInfo[ve];if(ie.file&&ie.file.test(Te))return ie}var te=Te.lastIndexOf("."),ae=te>-1&&Te.substring(te+1,Te.length);if(ae)return Oe.findModeByExtension(ae)},Oe.findModeByName=function(Te){Te=Te.toLowerCase();for(var ve=0;ve<Oe.modeInfo.length;ve++){var ie=Oe.modeInfo[ve];if(ie.name.toLowerCase()==Te)return ie;if(ie.alias){for(var te=0;te<ie.alias.length;te++)if(ie.alias[te].toLowerCase()==Te)return ie}}}})},80785:function(tn,Kt,me){(function(Oe){Oe(me(4631))})(function(Oe){"use strict";Oe.defineMode("stex",function(Je,x){"use strict";function Te(ce,fe){ce.cmdState.push(fe)}function ve(ce){return ce.cmdState.length>0?ce.cmdState[ce.cmdState.length-1]:null}function ie(ce){var fe=ce.cmdState.pop();fe&&fe.closeBracket()}function te(ce){for(var fe=ce.cmdState,pe=fe.length-1;pe>=0;pe--){var le=fe[pe];if(le.name!="DEFAULT")return le}return{styleIdentifier:function(){return null}}}function ae(ce,fe,pe){return function(){this.name=ce,this.bracketNo=0,this.style=fe,this.styles=pe,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ne={};ne.importmodule=ae("importmodule","tag",["string","builtin"]),ne.documentclass=ae("documentclass","tag",["","atom"]),ne.usepackage=ae("usepackage","tag",["atom"]),ne.begin=ae("begin","tag",["atom"]),ne.end=ae("end","tag",["atom"]),ne.label=ae("label","tag",["atom"]),ne.ref=ae("ref","tag",["atom"]),ne.eqref=ae("eqref","tag",["atom"]),ne.cite=ae("cite","tag",["atom"]),ne.bibitem=ae("bibitem","tag",["atom"]),ne.Bibitem=ae("Bibitem","tag",["atom"]),ne.RBibitem=ae("RBibitem","tag",["atom"]),ne.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function oe(ce,fe){ce.f=fe}function he(ce,fe){var pe;if(ce.match(/^\\[a-zA-Z@]+/)){var le=ce.current().slice(1);return pe=ne.hasOwnProperty(le)?ne[le]:ne.DEFAULT,pe=new pe,Te(fe,pe),oe(fe,se),pe.style}if(ce.match(/^\\[$&%#{}_]/)||ce.match(/^\\[,;!\/\\]/))return"tag";if(ce.match("\\["))return oe(fe,function(xe,ge){return re(xe,ge,"\\]")}),"keyword";if(ce.match("\\("))return oe(fe,function(xe,ge){return re(xe,ge,"\\)")}),"keyword";if(ce.match("$$"))return oe(fe,function(xe,ge){return re(xe,ge,"$$")}),"keyword";if(ce.match("$"))return oe(fe,function(xe,ge){return re(xe,ge,"$")}),"keyword";var Se=ce.next();if(Se=="%")return ce.skipToEnd(),"comment";if(Se=="}"||Se=="]"){if(pe=ve(fe),pe)pe.closeBracket(Se),oe(fe,se);else return"error";return"bracket"}else return Se=="{"||Se=="["?(pe=ne.DEFAULT,pe=new pe,Te(fe,pe),"bracket"):/\d/.test(Se)?(ce.eatWhile(/[\w.%]/),"atom"):(ce.eatWhile(/[\w\-_]/),pe=te(fe),pe.name=="begin"&&(pe.argument=ce.current()),pe.styleIdentifier())}function re(ce,fe,pe){if(ce.eatSpace())return null;if(pe&&ce.match(pe))return oe(fe,he),"keyword";if(ce.match(/^\\[a-zA-Z@]+/))return"tag";if(ce.match(/^[a-zA-Z]+/))return"variable-2";if(ce.match(/^\\[$&%#{}_]/)||ce.match(/^\\[,;!\/]/)||ce.match(/^[\^_&]/))return"tag";if(ce.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ce.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var le=ce.next();return le=="{"||le=="}"||le=="["||le=="]"||le=="("||le==")"?"bracket":le=="%"?(ce.skipToEnd(),"comment"):"error"}function se(ce,fe){var pe=ce.peek(),le;return pe=="{"||pe=="["?(le=ve(fe),le.openBracket(pe),ce.eat(pe),oe(fe,he),"bracket"):/[ \t\r]/.test(pe)?(ce.eat(pe),null):(oe(fe,he),ie(fe),he(ce,fe))}return{startState:function(){var ce=x.inMathMode?function(fe,pe){return re(fe,pe)}:he;return{cmdState:[],f:ce}},copyState:function(ce){return{cmdState:ce.cmdState.slice(),f:ce.f}},token:function(ce,fe){return fe.f(ce,fe)},blankLine:function(ce){ce.f=he,ce.cmdState.length=0},lineComment:"%"}}),Oe.defineMIME("text/x-stex","stex"),Oe.defineMIME("text/x-latex","stex")})},29589:function(tn,Kt,me){(function(Oe){Oe(me(4631))})(function(Oe){"use strict";var Je={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},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Oe.defineMode("xml",function(Te,ve){var ie=Te.indentUnit,te={},ae=ve.htmlMode?Je:x;for(var ne in ae)te[ne]=ae[ne];for(var ne in ve)te[ne]=ve[ne];var oe,he;function re(Be,Ue){function _e(et){return Ue.tokenize=et,et(Be,Ue)}var We=Be.next();if(We=="<")return Be.eat("!")?Be.eat("[")?Be.match("CDATA[")?_e(fe("atom","]]>")):null:Be.match("--")?_e(fe("comment","-->")):Be.match("DOCTYPE",!0,!0)?(Be.eatWhile(/[\w\._\-]/),_e(pe(1))):null:Be.eat("?")?(Be.eatWhile(/[\w\._\-]/),Ue.tokenize=fe("meta","?>"),"meta"):(oe=Be.eat("/")?"closeTag":"openTag",Ue.tokenize=se,"tag bracket");if(We=="&"){var Ze;return Be.eat("#")?Be.eat("x")?Ze=Be.eatWhile(/[a-fA-F\d]/)&&Be.eat(";"):Ze=Be.eatWhile(/[\d]/)&&Be.eat(";"):Ze=Be.eatWhile(/[\w\.\-:]/)&&Be.eat(";"),Ze?"atom":"error"}else return Be.eatWhile(/[^&<]/),null}re.isInText=!0;function se(Be,Ue){var _e=Be.next();if(_e==">"||_e=="/"&&Be.eat(">"))return Ue.tokenize=re,oe=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return oe="equals",null;if(_e=="<"){Ue.tokenize=re,Ue.state=ge,Ue.tagName=Ue.tagStart=null;var We=Ue.tokenize(Be,Ue);return We?We+" tag error":"tag error"}else return/[\'\"]/.test(_e)?(Ue.tokenize=ce(_e),Ue.stringStartCol=Be.column(),Ue.tokenize(Be,Ue)):(Be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ce(Be){var Ue=function(_e,We){for(;!_e.eol();)if(_e.next()==Be){We.tokenize=se;break}return"string"};return Ue.isInAttribute=!0,Ue}function fe(Be,Ue){return function(_e,We){for(;!_e.eol();){if(_e.match(Ue)){We.tokenize=re;break}_e.next()}return Be}}function pe(Be){return function(Ue,_e){for(var We;(We=Ue.next())!=null;){if(We=="<")return _e.tokenize=pe(Be+1),_e.tokenize(Ue,_e);if(We==">")if(Be==1){_e.tokenize=re;break}else return _e.tokenize=pe(Be-1),_e.tokenize(Ue,_e)}return"meta"}}function le(Be,Ue,_e){this.prev=Be.context,this.tagName=Ue,this.indent=Be.indented,this.startOfLine=_e,(te.doNotIndent.hasOwnProperty(Ue)||Be.context&&Be.context.noIndent)&&(this.noIndent=!0)}function Se(Be){Be.context&&(Be.context=Be.context.prev)}function xe(Be,Ue){for(var _e;;){if(!Be.context||(_e=Be.context.tagName,!te.contextGrabbers.hasOwnProperty(_e)||!te.contextGrabbers[_e].hasOwnProperty(Ue)))return;Se(Be)}}function ge(Be,Ue,_e){return Be=="openTag"?(_e.tagStart=Ue.column(),Me):Be=="closeTag"?ye:ge}function Me(Be,Ue,_e){return Be=="word"?(_e.tagName=Ue.current(),he="tag",ke):te.allowMissingTagName&&Be=="endTag"?(he="tag bracket",ke(Be,Ue,_e)):(he="error",Me)}function ye(Be,Ue,_e){if(Be=="word"){var We=Ue.current();return _e.context&&_e.context.tagName!=We&&te.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&Se(_e),_e.context&&_e.context.tagName==We||te.matchClosing===!1?(he="tag",be):(he="tag error",Fe)}else return te.allowMissingTagName&&Be=="endTag"?(he="tag bracket",be(Be,Ue,_e)):(he="error",Fe)}function be(Be,Ue,_e){return Be!="endTag"?(he="error",be):(Se(_e),ge)}function Fe(Be,Ue,_e){return he="error",be(Be,Ue,_e)}function ke(Be,Ue,_e){if(Be=="word")return he="attribute",De;if(Be=="endTag"||Be=="selfcloseTag"){var We=_e.tagName,Ze=_e.tagStart;return _e.tagName=_e.tagStart=null,Be=="selfcloseTag"||te.autoSelfClosers.hasOwnProperty(We)?xe(_e,We):(xe(_e,We),_e.context=new le(_e,We,Ze==_e.indented)),ge}return he="error",ke}function De(Be,Ue,_e){return Be=="equals"?Le:(te.allowMissing||(he="error"),ke(Be,Ue,_e))}function Le(Be,Ue,_e){return Be=="string"?Ie:Be=="word"&&te.allowUnquoted?(he="string",ke):(he="error",ke(Be,Ue,_e))}function Ie(Be,Ue,_e){return Be=="string"?Ie:ke(Be,Ue,_e)}return{startState:function(Be){var Ue={tokenize:re,state:ge,indented:Be||0,tagName:null,tagStart:null,context:null};return Be!=null&&(Ue.baseIndent=Be),Ue},token:function(Be,Ue){if(!Ue.tagName&&Be.sol()&&(Ue.indented=Be.indentation()),Be.eatSpace())return null;oe=null;var _e=Ue.tokenize(Be,Ue);return(_e||oe)&&_e!="comment"&&(he=null,Ue.state=Ue.state(oe||_e,Be,Ue),he&&(_e=he=="error"?_e+" error":he)),_e},indent:function(Be,Ue,_e){var We=Be.context;if(Be.tokenize.isInAttribute)return Be.tagStart==Be.indented?Be.stringStartCol+1:Be.indented+ie;if(We&&We.noIndent)return Oe.Pass;if(Be.tokenize!=se&&Be.tokenize!=re)return _e?_e.match(/^(\s*)/)[0].length:0;if(Be.tagName)return te.multilineTagIndentPastTag!==!1?Be.tagStart+Be.tagName.length+2:Be.tagStart+ie*(te.multilineTagIndentFactor||1);if(te.alignCDATA&&/<!\[CDATA\[/.test(Ue))return 0;var Ze=Ue&&/^<(\/)?([\w_:\.-]*)/.exec(Ue);if(Ze&&Ze[1])for(;We;)if(We.tagName==Ze[2]){We=We.prev;break}else if(te.implicitlyClosed.hasOwnProperty(We.tagName))We=We.prev;else break;else if(Ze)for(;We;){var et=te.contextGrabbers[We.tagName];if(et&&et.hasOwnProperty(Ze[2]))We=We.prev;else break}for(;We&&We.prev&&!We.startOfLine;)We=We.prev;return We?We.indent+ie:Be.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:te.htmlMode?"html":"xml",helperType:te.htmlMode?"html":"xml",skipAttribute:function(Be){Be.state==Le&&(Be.state=ke)},xmlCurrentTag:function(Be){return Be.tagName?{name:Be.tagName,close:Be.type=="closeTag"}:null},xmlCurrentContext:function(Be){for(var Ue=[],_e=Be.context;_e;_e=_e.prev)_e.tagName&&Ue.push(_e.tagName);return Ue.reverse()}}}),Oe.defineMIME("text/xml","xml"),Oe.defineMIME("application/xml","xml"),Oe.mimeModes.hasOwnProperty("text/html")||Oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},19575:function(tn,Kt,me){var Oe,Je;(function(x,Te){tn.exports=Te(x)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof me.g!="undefined"?me.g:this,function(x){"use strict";x=x||{};var Te=x.Base64,ve="2.6.4",ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=function(_e){for(var We={},Ze=0,et=_e.length;Ze<et;Ze++)We[_e.charAt(Ze)]=Ze;return We}(ie),ae=String.fromCharCode,ne=function(_e){if(_e.length<2){var We=_e.charCodeAt(0);return We<128?_e:We<2048?ae(192|We>>>6)+ae(128|We&63):ae(224|We>>>12&15)+ae(128|We>>>6&63)+ae(128|We&63)}else{var We=65536+(_e.charCodeAt(0)-55296)*1024+(_e.charCodeAt(1)-56320);return ae(240|We>>>18&7)+ae(128|We>>>12&63)+ae(128|We>>>6&63)+ae(128|We&63)}},oe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,he=function(_e){return _e.replace(oe,ne)},re=function(_e){var We=[0,2,1][_e.length%3],Ze=_e.charCodeAt(0)<<16|(_e.length>1?_e.charCodeAt(1):0)<<8|(_e.length>2?_e.charCodeAt(2):0),et=[ie.charAt(Ze>>>18),ie.charAt(Ze>>>12&63),We>=2?"=":ie.charAt(Ze>>>6&63),We>=1?"=":ie.charAt(Ze&63)];return et.join("")},se=x.btoa&&typeof x.btoa=="function"?function(_e){return x.btoa(_e)}:function(_e){if(_e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return _e.replace(/[\s\S]{1,3}/g,re)},ce=function(_e){return se(he(String(_e)))},fe=function(_e){return _e.replace(/[+\/]/g,function(We){return We=="+"?"-":"_"}).replace(/=/g,"")},pe=function(_e,We){return We?fe(ce(_e)):ce(_e)},le=function(_e){return pe(_e,!0)},Se;x.Uint8Array&&(Se=function(_e,We){for(var Ze="",et=0,it=_e.length;et<it;et+=3){var pt=_e[et],Ge=_e[et+1],Xe=_e[et+2],lt=pt<<16|Ge<<8|Xe;Ze+=ie.charAt(lt>>>18)+ie.charAt(lt>>>12&63)+(typeof Ge!="undefined"?ie.charAt(lt>>>6&63):"=")+(typeof Xe!="undefined"?ie.charAt(lt&63):"=")}return We?fe(Ze):Ze});var xe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ge=function(_e){switch(_e.length){case 4:var We=(7&_e.charCodeAt(0))<<18|(63&_e.charCodeAt(1))<<12|(63&_e.charCodeAt(2))<<6|63&_e.charCodeAt(3),Ze=We-65536;return ae((Ze>>>10)+55296)+ae((Ze&1023)+56320);case 3:return ae((15&_e.charCodeAt(0))<<12|(63&_e.charCodeAt(1))<<6|63&_e.charCodeAt(2));default:return ae((31&_e.charCodeAt(0))<<6|63&_e.charCodeAt(1))}},Me=function(_e){return _e.replace(xe,ge)},ye=function(_e){var We=_e.length,Ze=We%4,et=(We>0?te[_e.charAt(0)]<<18:0)|(We>1?te[_e.charAt(1)]<<12:0)|(We>2?te[_e.charAt(2)]<<6:0)|(We>3?te[_e.charAt(3)]:0),it=[ae(et>>>16),ae(et>>>8&255),ae(et&255)];return it.length-=[0,0,2,1][Ze],it.join("")},be=x.atob&&typeof x.atob=="function"?function(_e){return x.atob(_e)}:function(_e){return _e.replace(/\S{1,4}/g,ye)},Fe=function(_e){return be(String(_e).replace(/[^A-Za-z0-9\+\/]/g,""))},ke=function(_e){return Me(be(_e))},De=function(_e){return String(_e).replace(/[-_]/g,function(We){return We=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Le=function(_e){return ke(De(_e))},Ie;x.Uint8Array&&(Ie=function(_e){return Uint8Array.from(Fe(De(_e)),function(We){return We.charCodeAt(0)})});var Be=function(){var _e=x.Base64;return x.Base64=Te,_e};if(x.Base64={VERSION:ve,atob:Fe,btoa:se,fromBase64:Le,toBase64:pe,utob:he,encode:pe,encodeURI:le,btou:Me,decode:Le,noConflict:Be,fromUint8Array:Se,toUint8Array:Ie},typeof Object.defineProperty=="function"){var Ue=function(_e){return{value:_e,enumerable:!1,writable:!0,configurable:!0}};x.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ue(function(){return Le(this)})),Object.defineProperty(String.prototype,"toBase64",Ue(function(_e){return pe(this,_e)})),Object.defineProperty(String.prototype,"toBase64URI",Ue(function(){return pe(this,!0)}))}}return x.Meteor&&(Base64=x.Base64),tn.exports?tn.exports.Base64=x.Base64:(Oe=[],Je=function(){return x.Base64}.apply(Kt,Oe),Je!==void 0&&(tn.exports=Je)),{Base64:x.Base64}})},15979:function(tn,Kt,me){"use strict";me.d(Kt,{hP:function(){return Ye}});var Oe=function(Ve,de){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ce,He){Ce.__proto__=He}||function(Ce,He){for(var je in He)Object.prototype.hasOwnProperty.call(He,je)&&(Ce[je]=He[je])})(Ve,de)};function Je(Ve,de){function Ce(){this.constructor=Ve}Oe(Ve,de),Ve.prototype=de===null?Object.create(de):(Ce.prototype=de.prototype,new Ce)}function x(Ve,de,Ce,He){return new(Ce||(Ce=Promise))(function(je,Ae){function Ne(ot){try{Qe(He.next(ot))}catch(mt){Ae(mt)}}function ze(ot){try{Qe(He.throw(ot))}catch(mt){Ae(mt)}}function Qe(ot){var mt;ot.done?je(ot.value):(mt=ot.value,mt instanceof Ce?mt:new Ce(function(Ot){Ot(mt)})).then(Ne,ze)}Qe((He=He.apply(Ve,de||[])).next())})}function Te(Ve,de){var Ce,He,je,Ae,Ne={label:0,sent:function(){if(1&je[0])throw je[1];return je[1]},trys:[],ops:[]};return Ae={next:ze(0),throw:ze(1),return:ze(2)},typeof Symbol=="function"&&(Ae[Symbol.iterator]=function(){return this}),Ae;function ze(Qe){return function(ot){return function(mt){if(Ce)throw new TypeError("Generator is already executing.");for(;Ne;)try{if(Ce=1,He&&(je=2&mt[0]?He.return:mt[0]?He.throw||((je=He.return)&&je.call(He),0):He.next)&&!(je=je.call(He,mt[1])).done)return je;switch(He=0,je&&(mt=[2&mt[0],je.value]),mt[0]){case 0:case 1:je=mt;break;case 4:return Ne.label++,{value:mt[1],done:!1};case 5:Ne.label++,He=mt[1],mt=[0];continue;case 7:mt=Ne.ops.pop(),Ne.trys.pop();continue;default:if(je=Ne.trys,!((je=je.length>0&&je[je.length-1])||mt[0]!==6&&mt[0]!==2)){Ne=0;continue}if(mt[0]===3&&(!je||mt[1]>je[0]&&mt[1]<je[3])){Ne.label=mt[1];break}if(mt[0]===6&&Ne.label<je[1]){Ne.label=je[1],je=mt;break}if(je&&Ne.label<je[2]){Ne.label=je[2],Ne.ops.push(mt);break}je[2]&&Ne.ops.pop(),Ne.trys.pop();continue}mt=de.call(Ve,Ne)}catch(Ot){mt=[6,Ot],He=0}finally{Ce=je=0}if(5&mt[0])throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}}([Qe,ot])}}}function ve(){for(var Ve=0,de=0,Ce=arguments.length;de<Ce;de++)Ve+=arguments[de].length;var He=Array(Ve),je=0;for(de=0;de<Ce;de++)for(var Ae=arguments[de],Ne=0,ze=Ae.length;Ne<ze;Ne++,je++)He[je]=Ae[Ne];return He}var ie=function(){function Ve(){}return Ve.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ve.setAttributes=function(de,Ce){for(var He=0,je=Ce;He<je.length;He++){var Ae=je[He],Ne=Ae[0],ze=Ae[1];de.setAttribute(Ne,ze)}},Ve.createRect=function(de,Ce,He){var je=document.createElementNS("http://www.w3.org/2000/svg","rect");return je.setAttribute("width",de.toString()),je.setAttribute("height",Ce.toString()),He&&Ve.setAttributes(je,He),je},Ve.createLine=function(de,Ce,He,je,Ae){var Ne=document.createElementNS("http://www.w3.org/2000/svg","line");return Ne.setAttribute("x1",de.toString()),Ne.setAttribute("y1",Ce.toString()),Ne.setAttribute("x2",He.toString()),Ne.setAttribute("y2",je.toString()),Ae&&Ve.setAttributes(Ne,Ae),Ne},Ve.createPolygon=function(de,Ce){var He=document.createElementNS("http://www.w3.org/2000/svg","polygon");return He.setAttribute("points",de),Ce&&Ve.setAttributes(He,Ce),He},Ve.createCircle=function(de,Ce){var He=document.createElementNS("http://www.w3.org/2000/svg","circle");return He.setAttribute("cx",(de/2).toString()),He.setAttribute("cy",(de/2).toString()),He.setAttribute("r",de.toString()),Ce&&Ve.setAttributes(He,Ce),He},Ve.createEllipse=function(de,Ce,He){var je=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return je.setAttribute("cx",(de/2).toString()),je.setAttribute("cy",(Ce/2).toString()),je.setAttribute("rx",(de/2).toString()),je.setAttribute("ry",(Ce/2).toString()),He&&Ve.setAttributes(je,He),je},Ve.createGroup=function(de){var Ce=document.createElementNS("http://www.w3.org/2000/svg","g");return de&&Ve.setAttributes(Ce,de),Ce},Ve.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ve.createMarker=function(de,Ce,He,je,Ae,Ne,ze){var Qe=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ve.setAttributes(Qe,[["id",de],["orient",Ce],["markerWidth",He.toString()],["markerHeight",je.toString()],["refX",Ae.toString()],["refY",Ne.toString()]]),Qe.appendChild(ze),Qe},Ve.createText=function(de){var Ce=document.createElementNS("http://www.w3.org/2000/svg","text");return Ce.setAttribute("x","0"),Ce.setAttribute("y","0"),de&&Ve.setAttributes(Ce,de),Ce},Ve.createTSpan=function(de,Ce){var He=document.createElementNS("http://www.w3.org/2000/svg","tspan");return He.textContent=de,Ce&&Ve.setAttributes(He,Ce),He},Ve.createImage=function(de){var Ce=document.createElementNS("http://www.w3.org/2000/svg","image");return de&&Ve.setAttributes(Ce,de),Ce},Ve.createPoint=function(de,Ce){var He=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return He.x=de,He.y=Ce,He},Ve.createPath=function(de,Ce){var He=document.createElementNS("http://www.w3.org/2000/svg","path");return He.setAttribute("d",de),Ce&&Ve.setAttributes(He,Ce),He},Ve}(),te=function(){function Ve(){}return Ve.addKey=function(de){Ve.key=de},Object.defineProperty(Ve,"isLicensed",{get:function(){return!!Ve.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ve.key)},enumerable:!1,configurable:!0}),Ve}(),ae=function(){function Ve(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ve.prototype.rasterize=function(de,Ce,He){var je=this;return new Promise(function(Ae){var Ne=He!==void 0?He:document.createElement("canvas");de===null&&(je.markersOnly=!0,je.naturalSize=!1);var ze=document.createElementNS("http://www.w3.org/2000/svg","svg");ze.setAttribute("xmlns","http://www.w3.org/2000/svg"),ze.setAttribute("width",Ce.width.baseVal.valueAsString),ze.setAttribute("height",Ce.height.baseVal.valueAsString),ze.setAttribute("viewBox","0 0 "+Ce.viewBox.baseVal.width.toString()+" "+Ce.viewBox.baseVal.height.toString()),ze.innerHTML=Ce.innerHTML,je.naturalSize===!0?(ze.width.baseVal.value=de.naturalWidth,ze.height.baseVal.value=de.naturalHeight):je.width!==void 0&&je.height!==void 0&&(ze.width.baseVal.value=je.width,ze.height.baseVal.value=je.height),Ne.width=ze.width.baseVal.value,Ne.height=ze.height.baseVal.value;var Qe=ze.outerHTML,ot=Ne.getContext("2d");je.markersOnly!==!0&&ot.drawImage(de,0,0,Ne.width,Ne.height);var mt=window.URL,Ot=new Image(Ne.width,Ne.height);Ot.setAttribute("crossOrigin","anonymous");var xt=new Blob([Qe],{type:"image/svg+xml"}),Ut=mt.createObjectURL(xt);Ot.onload=function(){ot.drawImage(Ot,0,0),mt.revokeObjectURL(Ut);var xn=Ne.toDataURL(je.imageType,je.imageQuality);Ae(xn)},Ot.src=Ut})},Ve}(),ne=function(){},oe=function(){function Ve(de){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+de+"_"}return Object.defineProperty(Ve.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.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(Ve.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ve.prototype.addClass=function(de){return this.styleSheet===void 0&&this.addStyleSheet(),de.name=""+this.classNamePrefix+de.localName,this.classes.push(de),this.styleSheet.sheet.insertRule("."+de.name+" {"+de.style+"}",this.styleSheet.sheet.cssRules.length),de},Ve.prototype.addRule=function(de){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(de),this.styleSheet.sheet.insertRule(de.selector+" {"+de.style+"}",this.styleSheet.sheet.cssRules.length)},Ve.prototype.addStyleSheet=function(){var de;this.styleSheet=document.createElement("style"),((de=this.styleSheetRoot)!==null&&de!==void 0?de:document.head).appendChild(this.styleSheet),this.addRule(new he("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new he("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new he("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new re("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new re("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Ve.prototype.removeStyleSheet=function(){var de;this.styleSheet&&(((de=this.styleSheetRoot)!==null&&de!==void 0?de:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ve}(),he=function(Ve,de){this.selector=Ve,this.style=de},re=function(Ve,de){this.localName=Ve,this.style=de},se=function(){function Ve(de,Ce,He,je,Ae){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=de,this.displayMode=Ce,this.markerItems=He,this.uiStyleSettings=je,this.styles=Ae,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ve.prototype.show=function(de){var Ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=de,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var He=document.createElement("div");He.className=this.toolbarBlockStyleClass.name,He.style.whiteSpace="nowrap",this.uiContainer.appendChild(He),this.addActionButton(He,'<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(He,'<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(He,'<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(He,'<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(He,'<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(He,'<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(He,'<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(He,'<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(Ae){var Ne=document.createElement("div");Ne.className=""+Ce.toolbarButtonStyleClass.name,Ne.setAttribute("data-type-name",Ae.typeName),Ne.innerHTML=Ae.icon,Ne.addEventListener("click",function(){Ce.markerToolbarButtonClicked(Ne,Ae)}),Ce.buttons.push(Ne),Ce.markerButtons.push(Ne)}),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 je=document.createElement("div");je.className=this.toolbarBlockStyleClass.name,je.style.whiteSpace="nowrap",je.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(je),this.addActionButton(je,'<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(je,'<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()},Ve.prototype.addButtonClickListener=function(de){this.buttonClickListeners.push(de)},Ve.prototype.removeButtonClickListener=function(de){this.buttonClickListeners.indexOf(de)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(de),1)},Ve.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ve.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var de=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ce=0;Ce<this.markerButtons.length;Ce++)Ce<de||Ce===de&&this.markerButtons.length-1===de?this.markerButtonBlock.appendChild(this.markerButtons[Ce]):(Ce===de&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ce]))}},Ve.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")},Ve.prototype.resetButtonStyles=function(){var de=this;this.buttons.forEach(function(Ce){Ce.className=Ce.className.replace(de.uiStyleSettings.toolbarButtonStyleColorsClassName?de.uiStyleSettings.toolbarButtonStyleColorsClassName:de.toolbarButtonStyleColorsClass.name,"").trim(),Ce.className=Ce.className.replace(de.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?de.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:de.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ce.className+=" "+(de.uiStyleSettings.toolbarButtonStyleColorsClassName?de.uiStyleSettings.toolbarButtonStyleColorsClassName:de.toolbarButtonStyleColorsClass.name)})},Ve.prototype.addActionButton=function(de,Ce,He){var je=this,Ae=document.createElement("div");switch(Ae.className=""+this.toolbarButtonStyleClass.name,Ae.innerHTML=Ce,Ae.setAttribute("data-action",He),Ae.addEventListener("click",function(){je.actionToolbarButtonClicked(Ae,He)}),He){case"select":Ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ae.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ae.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ae.style.fill=this.uiStyleSettings.closeButtonColor}de.appendChild(Ae),this.buttons.push(Ae)},Ve.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new re("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 re("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new re("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new re("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 re("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var de=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new re("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
|
|
|
padding: `+de+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new re("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new re("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new he("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new he("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Ve.prototype.markerToolbarButtonClicked=function(de,Ce){this.setActiveButton(de),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(He){return He("marker",Ce)}),this.markerButtonOverflowBlock.style.display="none"},Ve.prototype.actionToolbarButtonClicked=function(de,Ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(He){return He("action",Ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ve.prototype.setActiveButton=function(de){this.resetButtonStyles(),de.className=de.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),de.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ve.prototype.setActiveMarkerButton=function(de){var Ce=this.markerButtons.find(function(He){return He.getAttribute("data-type-name")===de});Ce&&this.setActiveButton(Ce)},Ve.prototype.setCurrentMarker=function(de){var Ce=this;this.currentMarker=de,this.buttons.filter(function(He){return/delete|notes/.test(He.getAttribute("data-action"))}).forEach(function(He){Ce.currentMarker===void 0?(He.style.fillOpacity="0.4",He.style.pointerEvents="none"):(He.style.fillOpacity="1",He.style.pointerEvents="all")})},Ve}(),ce=function(){function Ve(de,Ce,He,je){this.panels=[],this.panelButtons=[],this.markerjsContainer=de,this.displayMode=Ce,this.uiStyleSettings=He,this.styles=je,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ve.prototype.addStyles=function(){var de;this.toolboxStyleClass=this.styles.addClass(new re("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 re("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var Ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new re("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new re("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new re("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 re("toolbox-panel-row_colors",`
|
|
|
background-color: `+((de=this.uiStyleSettings.toolboxBackgroundColor)!==null&&de!==void 0?de:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new re("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ce)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ce)+`px;
|
|
|
padding: `+Ce+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new re("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new re("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new he("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new he("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Ve.prototype.show=function(de){var Ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=de,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ce!==void 0?Ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ve.prototype.setPanelButtons=function(de){var Ce,He,je=this;this.panels=de,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ce!==void 0?Ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((He=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&He!==void 0?He:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ae){var Ne;Ae.uiStyleSettings=je.uiStyleSettings;var ze=document.createElement("div");ze.className=je.toolboxButtonStyleClass.name+" "+((Ne=je.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ne!==void 0?Ne:je.toolboxButtonStyleColorsClass.name),ze.innerHTML=Ae.icon,ze.title=Ae.title,ze.addEventListener("click",function(){je.panelButtonClick(Ae)}),je.panelButtons.push(ze),je.buttonRow.appendChild(ze)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ve.prototype.panelButtonClick=function(de){var Ce=this,He=-1;if(de!==this.activePanel){He=this.panels.indexOf(de),this.panelRow.innerHTML="";var je=de.getUi();je.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(je),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=de}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ce.displayMode==="inline"?Ce.panelRow.style.display="none":Ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ae,Ne){var ze,Qe;Ae.className=Ce.toolboxButtonStyleClass.name+" "+(Ne===He?""+((ze=Ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ze!==void 0?ze:Ce.toolboxActiveButtonStyleColorsClass.name):""+((Qe=Ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Qe!==void 0?Qe:Ce.toolboxButtonStyleColorsClass.name))})},Ve}(),fe=function(Ve,de){this.title=Ve,this.icon=de},pe=function(Ve){function de(Ce,He,je,Ae){var Ne=Ve.call(this,Ce,Ae||'<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 Ne.colors=[],Ne.addTransparent=!1,Ne.colorBoxes=[],Ne.colors=He,Ne.currentColor=je,Ne.setCurrentColor=Ne.setCurrentColor.bind(Ne),Ne.getColorBox=Ne.getColorBox.bind(Ne),Ne}return Je(de,Ve),de.prototype.getUi=function(){var Ce=this,He=document.createElement("div");return He.style.overflow="hidden",He.style.whiteSpace="nowrap",this.colors.forEach(function(je){var Ae=Ce.getColorBox(je);He.appendChild(Ae),Ce.colorBoxes.push(Ae)}),He},de.prototype.getColorBox=function(Ce){var He=this,je=this.uiStyleSettings.toolbarHeight/4,Ae=this.uiStyleSettings.toolbarHeight-je,Ne=document.createElement("div");Ne.style.display="inline-block",Ne.style.boxSizing="content-box",Ne.style.width=Ae-2+"px",Ne.style.height=Ae-2+"px",Ne.style.padding="1px",Ne.style.marginRight="2px",Ne.style.marginBottom="2px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.borderRadius=(Ae+2)/2+"px",Ne.style.borderColor=Ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){He.setCurrentColor(Ce,Ne)});var ze=document.createElement("div");return ze.style.display="inline-block",ze.style.width=Ae-2+"px",ze.style.height=Ae-2+"px",ze.style.backgroundColor=Ce,ze.style.borderRadius=Ae/2+"px",Ce==="transparent"&&(ze.style.fill=this.uiStyleSettings.toolboxAccentColor,ze.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>`),Ne.appendChild(ze),Ne},de.prototype.setCurrentColor=function(Ce,He){var je=this;this.currentColor=Ce,this.colorBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===He?je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ce)},de}(fe),le=function(){function Ve(de,Ce,He){this._state="new",this._isSelected=!1,this._container=de,this._overlayContainer=Ce,this.globalSettings=He,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ve.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ve.prototype.ownsTarget=function(de){return!1},Object.defineProperty(Ve.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ve.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ve.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ve.prototype.pointerDown=function(de,Ce){},Ve.prototype.dblClick=function(de,Ce){},Ve.prototype.manipulate=function(de){},Ve.prototype.pointerUp=function(de){this.stateChanged()},Ve.prototype.dispose=function(){},Ve.prototype.addMarkerVisualToContainer=function(de){this.container.childNodes.length>0?this.container.insertBefore(de,this.container.childNodes[0]):this.container.appendChild(de)},Ve.prototype.getState=function(){return{typeName:Ve.typeName,state:this.state,notes:this.notes}},Ve.prototype.restoreState=function(de){this._state=de.state,this.notes=de.notes},Ve.prototype.scale=function(de,Ce){},Ve.prototype.colorChanged=function(de){this.onColorChanged&&this.onColorChanged(de),this.stateChanged()},Ve.prototype.fillColorChanged=function(de){this.onFillColorChanged&&this.onFillColorChanged(de),this.stateChanged()},Ve.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var de=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),de.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(de)&&this.onStateChanged(this)}},Ve.typeName="MarkerBase",Ve}(),Se=function(){function Ve(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ve.prototype.findGripByVisual=function(de){return this.topLeft.ownsTarget(de)?this.topLeft:this.topCenter.ownsTarget(de)?this.topCenter:this.topRight.ownsTarget(de)?this.topRight:this.centerLeft.ownsTarget(de)?this.centerLeft:this.centerRight.ownsTarget(de)?this.centerRight:this.bottomLeft.ownsTarget(de)?this.bottomLeft:this.bottomCenter.ownsTarget(de)?this.bottomCenter:this.bottomRight.ownsTarget(de)?this.bottomRight:void 0},Ve}(),xe=function(){function Ve(){this.GRIP_SIZE=10,this.visual=ie.createGroup(),this.visual.appendChild(ie.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ie.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ve.prototype.ownsTarget=function(de){return de===this.visual||de===this.visual.childNodes[0]||de===this.visual.childNodes[1]},Ve}(),ge=function(){function Ve(){}return Ve.toITransformMatrix=function(de){return{a:de.a,b:de.b,c:de.c,d:de.d,e:de.e,f:de.f}},Ve.toSVGMatrix=function(de,Ce){return de.a=Ce.a,de.b=Ce.b,de.c=Ce.c,de.d=Ce.d,de.e=Ce.e,de.f=Ce.f,de},Ve}(),Me=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.left=0,Ae.top=0,Ae.width=0,Ae.height=0,Ae.defaultSize={x:50,y:20},Ae.offsetX=0,Ae.offsetY=0,Ae.rotationAngle=0,Ae.CB_DISTANCE=10,Ae._suppressMarkerCreateEvent=!1,Ae.container.transform.baseVal.appendItem(ie.createTransform()),Ae.setupControlBox(),Ae}return Je(de,Ve),Object.defineProperty(de.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"visual",{get:function(){return this._visual},set:function(Ce){this._visual=Ce;var He=ie.createTransform();this._visual.transform.baseVal.appendItem(He)},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(Ce){return!!Ve.prototype.ownsTarget.call(this,Ce)||!!(this.controlGrips.findGripByVisual(Ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ce))},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.state==="new"&&(this.left=Ce.x,this.top=Ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var je=this.unrotatePoint(Ce);if(this.manipulationStartX=je.x,this.manipulationStartY=je.y,this.offsetX=je.x-this.left,this.offsetY=je.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(He),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(He)){this.activeGrip=this.rotatorGrip;var Ae=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ae.x-this.width/2,this.top=Ae.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ne=this.container.transform.baseVal.getItem(0);Ne.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ne,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},de.prototype.pointerUp=function(Ce){var He=this.state;Ve.prototype.pointerUp.call(this,Ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ce),this._state="select",He==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},de.prototype.moveVisual=function(Ce){this.visual.style.transform="translate("+Ce.x+"px, "+Ce.y+"px)"},de.prototype.manipulate=function(Ce){var He=this.unrotatePoint(Ce);this.state==="creating"?this.resize(Ce):this.state==="move"?(this.left=this.manipulationStartLeft+(He.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(He.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(He):this.state==="rotate"&&this.rotate(Ce)},de.prototype.resize=function(Ce){var He=this.manipulationStartLeft,je=this.manipulationStartWidth,Ae=this.manipulationStartTop,Ne=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:He=this.manipulationStartLeft+Ce.x-this.manipulationStartX,je=this.manipulationStartWidth+this.manipulationStartLeft-He;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:je=this.manipulationStartWidth+Ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ae=this.manipulationStartTop+Ce.y-this.manipulationStartY,Ne=this.manipulationStartHeight+this.manipulationStartTop-Ae;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ne=this.manipulationStartHeight+Ce.y-this.manipulationStartY}je>=0?(this.left=He,this.width=je):(this.left=He+je,this.width=-je),Ne>=0?(this.top=Ae,this.height=Ne):(this.top=Ae+Ne,this.height=-Ne),this.setSize()},de.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},de.prototype.rotate=function(Ce){if(Math.abs(Ce.x-this.centerX)>.1){var He=Math.sign(Ce.x-this.centerX);this.rotationAngle=180*Math.atan((Ce.y-this.centerY)/(Ce.x-this.centerX))/Math.PI+90*He,this.applyRotation()}},de.prototype.applyRotation=function(){var Ce=this.container.transform.baseVal.getItem(0);Ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ce,0)},de.prototype.rotatePoint=function(Ce){if(this.rotationAngle===0)return Ce;var He=this.container.getCTM(),je=ie.createPoint(Ce.x,Ce.y);return{x:(je=je.matrixTransform(He)).x,y:je.y}},de.prototype.unrotatePoint=function(Ce){if(this.rotationAngle===0)return Ce;var He=this.container.getCTM();He=He.inverse();var je=ie.createPoint(Ce.x,Ce.y);return{x:(je=je.matrixTransform(He)).x,y:je.y}},de.prototype.select=function(){Ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},de.prototype.deselect=function(){Ve.prototype.deselect.call(this),this.controlBox.style.display="none"},de.prototype.setupControlBox=function(){this.controlBox=ie.createGroup();var Ce=ie.createTransform();Ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ce),this.container.appendChild(this.controlBox),this.controlRect=ie.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=ie.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 Se,this.addControlGrips(),this.controlBox.style.display="none"},de.prototype.adjustControlBox=function(){var Ce=this.controlBox.transform.baseVal.getItem(0);Ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ce,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()},de.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()},de.prototype.createGrip=function(){var Ce=new xe;return Ce.visual.transform.baseVal.appendItem(ie.createTransform()),this.controlBox.appendChild(Ce.visual),Ce},de.prototype.positionGrips=function(){var Ce=this.controlGrips.topLeft.GRIP_SIZE,He=-Ce/2,je=He,Ae=(this.width+this.CB_DISTANCE)/2-Ce/2,Ne=(this.height+this.CB_DISTANCE)/2-Ce/2,ze=this.height+this.CB_DISTANCE-Ce/2,Qe=this.width+this.CB_DISTANCE-Ce/2;this.positionGrip(this.controlGrips.topLeft.visual,He,je),this.positionGrip(this.controlGrips.topCenter.visual,Ae,je),this.positionGrip(this.controlGrips.topRight.visual,Qe,je),this.positionGrip(this.controlGrips.centerLeft.visual,He,Ne),this.positionGrip(this.controlGrips.centerRight.visual,Qe,Ne),this.positionGrip(this.controlGrips.bottomLeft.visual,He,ze),this.positionGrip(this.controlGrips.bottomCenter.visual,Ae,ze),this.positionGrip(this.controlGrips.bottomRight.visual,Qe,ze),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ae,je-3*this.CB_DISTANCE)},de.prototype.positionGrip=function(Ce,He,je){var Ae=Ce.transform.baseVal.getItem(0);Ae.setTranslate(He,je),Ce.transform.baseVal.replaceItem(Ae,0)},de.prototype.hideControlBox=function(){this.controlBox.style.display="none"},de.prototype.showControlBox=function(){this.controlBox.style.display=""},de.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ge.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ge.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ve.prototype.getState.call(this))},de.prototype.restoreState=function(Ce){Ve.prototype.restoreState.call(this,Ce);var He=Ce;this.left=He.left,this.top=He.top,this.width=He.width,this.height=He.height,this.rotationAngle=He.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ge.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,He.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ge.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,He.containerTransformMatrix))},de.prototype.scale=function(Ce,He){Ve.prototype.scale.call(this,Ce,He);var je=this.rotatePoint({x:this.left,y:this.top}),Ae=this.unrotatePoint({x:je.x*Ce,y:je.y*He});this.left=Ae.x,this.top=Ae.y,this.width=this.width*Ce,this.height=this.height*He,this.adjustControlBox()},de}(le),ye=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.fillColor="transparent",Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.opacity=1,Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setFillColor=Ae.setFillColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.createVisual=Ae.createVisual.bind(Ae),Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return!(!Ve.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual)},de.prototype.createVisual=function(){this.visual=ie.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)},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.state==="new"&&(this.createVisual(),this.moveVisual(Ce),this._state="creating")},de.prototype.manipulate=function(Ce){Ve.prototype.manipulate.call(this,Ce)},de.prototype.resize=function(Ce){Ve.prototype.resize.call(this,Ce),this.setSize()},de.prototype.setSize=function(){Ve.prototype.setSize.call(this),ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},de.prototype.pointerUp=function(Ce){Ve.prototype.pointerUp.call(this,Ce),this.setSize()},de.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.visual&&ie.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ce),this.stateChanged()},de.prototype.setFillColor=function(Ce){this.fillColor=Ce,this.visual&&ie.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},de.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.visual&&ie.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.visual&&ie.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},de.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ve.prototype.getState.call(this))},de.prototype.restoreState=function(Ce){var He=Ce;this.fillColor=He.fillColor,this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.opacity=He.opacity,this.createVisual(),Ve.prototype.restoreState.call(this,Ce),this.setSize()},de.prototype.scale=function(Ce,He){Ve.prototype.scale.call(this,Ce,He),this.setSize()},de.title="Rectangle marker",de}(Me),be=function(Ve){function de(Ce,He,je,Ae){var Ne=Ve.call(this,Ce,Ae||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ne.widths=[],Ne.widthBoxes=[],Ne.widths=He,Ne.currentWidth=je,Ne.setCurrentWidth=Ne.setCurrentWidth.bind(Ne),Ne}return Je(de,Ve),de.prototype.getUi=function(){var Ce=this,He=document.createElement("div");return He.style.display="flex",He.style.overflow="hidden",He.style.flexGrow="2",this.widths.forEach(function(je){var Ae=document.createElement("div");Ae.style.display="flex",Ae.style.flexGrow="2",Ae.style.alignItems="center",Ae.style.justifyContent="space-between",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.borderColor=je===Ce.currentWidth?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){Ce.setCurrentWidth(je,Ae)}),He.appendChild(Ae);var Ne=document.createElement("div");Ne.innerText=je.toString(),Ne.style.marginRight="5px",Ae.appendChild(Ne);var ze=document.createElement("div");ze.style.minHeight="20px",ze.style.flexGrow="2",ze.style.display="flex",ze.style.alignItems="center";var Qe=document.createElement("hr");Qe.style.minWidth="20px",Qe.style.border="0px",Qe.style.borderTop=je+"px solid "+Ce.uiStyleSettings.toolboxColor,Qe.style.flexGrow="2",ze.appendChild(Qe),Ae.appendChild(ze),Ce.widthBoxes.push(Ae)}),He},de.prototype.setCurrentWidth=function(Ce,He){var je=this;this.currentWidth=Ce,this.widthBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===He?je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},de}(fe),Fe=function(Ve){function de(Ce,He,je,Ae){var Ne=Ve.call(this,Ce,Ae||'<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 Ne.styles=[],Ne.styleBoxes=[],Ne.styles=He,Ne.currentStyle=je,Ne.setCurrentStyle=Ne.setCurrentStyle.bind(Ne),Ne}return Je(de,Ve),de.prototype.getUi=function(){var Ce=this,He=document.createElement("div");return He.style.display="flex",He.style.overflow="hidden",He.style.flexGrow="2",this.styles.forEach(function(je){var Ae=document.createElement("div");Ae.style.display="flex",Ae.style.alignItems="center",Ae.style.justifyContent="space-between",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.overflow="hidden",Ae.style.maxWidth=100/Ce.styles.length-5+"%",Ae.style.borderColor=je===Ce.currentStyle?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){Ce.setCurrentStyle(je,Ae)}),He.appendChild(Ae);var Ne=document.createElement("div");Ne.style.minHeight="20px",Ne.style.flexGrow="2",Ne.style.overflow="hidden";var ze=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(je!==""?'stroke-dasharray="'+je+'"':"")+` />
|
|
|
</svg>`;Ne.innerHTML=ze,Ae.appendChild(Ne),Ce.styleBoxes.push(Ae)}),He},de.prototype.setCurrentStyle=function(Ce,He){var je=this;this.currentStyle=Ce,this.styleBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===He?je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},de}(fe),ke=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.strokeColor=je.defaultColor,Ae.strokeWidth=je.defaultStrokeWidth,Ae.strokeDasharray=je.defaultStrokeDasharray,Ae.strokePanel=new pe("Line color",je.defaultColorSet,je.defaultColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.strokeWidthPanel=new be("Line width",je.defaultStrokeWidths,je.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Fe("Line style",je.defaultStrokeDasharrays,je.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae}return Je(de,Ve),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Ve.prototype.getState.call(this);return Ce.typeName=de.typeName,Ce},de.typeName="FrameMarker",de.title="Frame marker",de.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',de}(ye),De=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"},Le=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.x1=0,Ae.y1=0,Ae.x2=0,Ae.y2=0,Ae.defaultLength=50,Ae.manipulationStartX=0,Ae.manipulationStartY=0,Ae.manipulationStartX1=0,Ae.manipulationStartY1=0,Ae.manipulationStartX2=0,Ae.manipulationStartY2=0,Ae.setupControlBox(),Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return!!Ve.prototype.ownsTarget.call(this,Ce)||!(!this.grip1.ownsTarget(Ce)&&!this.grip2.ownsTarget(Ce))},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.manipulationStartX=Ce.x,this.manipulationStartY=Ce.y,this.state==="new"&&(this.x1=Ce.x,this.y1=Ce.y,this.x2=Ce.x,this.y2=Ce.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(He)?this.activeGrip=this.grip1:this.grip2.ownsTarget(He)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},de.prototype.pointerUp=function(Ce){var He=this.state;Ve.prototype.pointerUp.call(this,Ce),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(Ce),this._state="select",He==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},de.prototype.adjustVisual=function(){},de.prototype.manipulate=function(Ce){this.state==="creating"?this.resize(Ce):this.state==="move"?(this.x1=this.manipulationStartX1+Ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ce)},de.prototype.resize=function(Ce){switch(this.activeGrip){case this.grip1:this.x1=Ce.x,this.y1=Ce.y;break;case this.grip2:case void 0:this.x2=Ce.x,this.y2=Ce.y}this.adjustVisual(),this.adjustControlBox()},de.prototype.select=function(){Ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},de.prototype.deselect=function(){Ve.prototype.deselect.call(this),this.controlBox.style.display="none"},de.prototype.setupControlBox=function(){this.controlBox=ie.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},de.prototype.adjustControlBox=function(){this.positionGrips()},de.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},de.prototype.createGrip=function(){var Ce=new xe;return Ce.visual.transform.baseVal.appendItem(ie.createTransform()),this.controlBox.appendChild(Ce.visual),Ce},de.prototype.positionGrips=function(){var Ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ce/2,this.y1-Ce/2),this.positionGrip(this.grip2.visual,this.x2-Ce/2,this.y2-Ce/2)},de.prototype.positionGrip=function(Ce,He,je){var Ae=Ce.transform.baseVal.getItem(0);Ae.setTranslate(He,je),Ce.transform.baseVal.replaceItem(Ae,0)},de.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ve.prototype.getState.call(this))},de.prototype.restoreState=function(Ce){Ve.prototype.restoreState.call(this,Ce);var He=Ce;this.x1=He.x1,this.y1=He.y1,this.x2=He.x2,this.y2=He.y2},de.prototype.scale=function(Ce,He){Ve.prototype.scale.call(this,Ce,He),this.x1=this.x1*Ce,this.y1=this.y1*He,this.x2=this.x2*Ce,this.y2=this.y2*He,this.adjustVisual(),this.adjustControlBox()},de}(le),Ie=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.strokeColor=je.defaultColor,Ae.strokeWidth=je.defaultStrokeWidth,Ae.strokeDasharray=je.defaultStrokeDasharray,Ae.strokePanel=new pe("Line color",je.defaultColorSet,je.defaultColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.strokeWidthPanel=new be("Line width",je.defaultStrokeWidths,je.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Fe("Line style",je.defaultStrokeDasharrays,je.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return!(!Ve.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual&&Ce!==this.selectorLine&&Ce!==this.visibleLine)},de.prototype.createVisual=function(){this.visual=ie.createGroup(),this.selectorLine=ie.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ie.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)},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},de.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()),ie.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ie.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ie.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},de.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.adjustVisual(),this.colorChanged(Ce)},de.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.adjustVisual()},de.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ve.prototype.getState.call(this));return Ce.typeName=de.typeName,Ce},de.prototype.restoreState=function(Ce){Ve.prototype.restoreState.call(this,Ce);var He=Ce;this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.createVisual(),this.adjustVisual()},de.typeName="LineMarker",de.title="Line marker",de.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',de}(Le),Be=function(Ve){function de(Ce,He,je,Ae){var Ne=Ve.call(this,Ce,Ae||'<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 Ne.fonts=[],Ne.fontBoxes=[],Ne.fonts=He,Ne.currentFont=je,Ne.setCurrentFont=Ne.setCurrentFont.bind(Ne),Ne}return Je(de,Ve),de.prototype.getUi=function(){var Ce=this,He=document.createElement("div");return He.style.overflow="hidden",He.style.flexGrow="2",this.fonts.forEach(function(je){var Ae=document.createElement("div");Ae.style.display="inline-block",Ae.style.alignItems="center",Ae.style.justifyContent="space-between",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.overflow="hidden",Ae.style.maxWidth=100/Ce.fonts.length-5+"%",Ae.style.borderColor=je===Ce.currentFont?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){Ce.setCurrentFont(je,Ae)}),He.appendChild(Ae);var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.minHeight="20px",Ne.style.flexGrow="2",Ne.style.fontFamily=je,Ne.style.overflow="hidden";var ze=document.createElement("div");ze.style.whiteSpace="nowrap",ze.style.overflow="hidden",ze.style.textOverflow="ellipsis",ze.innerHTML="The quick brown fox jumps over the lazy dog",Ne.appendChild(ze),Ae.appendChild(Ne),Ce.fontBoxes.push(Ae)}),He},de.prototype.setCurrentFont=function(Ce,He){var je=this;this.currentFont=Ce,this.fontBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===He?je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},de}(fe),Ue=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.color="transparent",Ae.padding=5,Ae.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ae.text=Ae.DEFAULT_TEXT,Ae.isMoved=!1,Ae.color=je.defaultColor,Ae.fontFamily=je.defaultFontFamily,Ae.defaultSize={x:100,y:30},Ae.setColor=Ae.setColor.bind(Ae),Ae.setFont=Ae.setFont.bind(Ae),Ae.renderText=Ae.renderText.bind(Ae),Ae.sizeText=Ae.sizeText.bind(Ae),Ae.textEditDivClicked=Ae.textEditDivClicked.bind(Ae),Ae.showTextEditor=Ae.showTextEditor.bind(Ae),Ae.setSize=Ae.setSize.bind(Ae),Ae.positionTextEditor=Ae.positionTextEditor.bind(Ae),Ae.colorPanel=new pe("Color",je.defaultColorSet,je.defaultColor),Ae.colorPanel.onColorChanged=Ae.setColor,Ae.fontFamilyPanel=new Be("Font",je.defaultFontFamilies,je.defaultFontFamily),Ae.fontFamilyPanel.onFontChanged=Ae.setFont,Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){if(Ve.prototype.ownsTarget.call(this,Ce)||Ce===this.visual||Ce===this.textElement||Ce===this.bgRectangle)return!0;var He=!1;return this.textElement.childNodes.forEach(function(je){je===Ce&&(He=!0)}),He},de.prototype.createVisual=function(){this.visual=ie.createGroup(),this.bgRectangle=ie.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ie.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ie.createTransform()),this.textElement.transform.baseVal.appendItem(ie.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.isMoved=!1,this.pointerDownPoint=Ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ce),this._state="creating")},de.prototype.renderText=function(){var Ce=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(He){Ce.textElement.appendChild(ie.createTSpan(He.trim()===""?" ":He.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},de.prototype.getTextScale=function(){var Ce=this.textElement.getBBox(),He=1;if(Ce.width>0&&Ce.height>0){var je=(1*this.width-this.width*this.padding*2/100)/Ce.width,Ae=(1*this.height-this.height*this.padding*2/100)/Ce.height;He=Math.min(je,Ae)}return He},de.prototype.getTextPosition=function(Ce){var He=this.textElement.getBBox(),je=0,Ae=0;return He.width>0&&He.height>0&&(je=(this.width-He.width*Ce)/2,Ae=this.height/2-He.height*Ce/2),{x:je,y:Ae}},de.prototype.sizeText=function(){var Ce=this.textElement.getBBox(),He=this.getTextScale(),je=this.getTextPosition(He);je.y-=Ce.y*He,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+je.x+"px, "+je.y+"px) scale("+He+", "+He+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(je.x,je.y),this.textElement.transform.baseVal.getItem(1).setScale(He,He))},de.prototype.manipulate=function(Ce){Ve.prototype.manipulate.call(this,Ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ce.x-this.pointerDownPoint.x)>5||Math.abs(Ce.y-this.pointerDownPoint.y)>5)},de.prototype.resize=function(Ce){Ve.prototype.resize.call(this,Ce),this.isMoved=!0,this.setSize(),this.sizeText()},de.prototype.setSize=function(){Ve.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ie.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},de.prototype.pointerUp=function(Ce){var He=this.state;He==="creating"&&(this._suppressMarkerCreateEvent=!0),Ve.prototype.pointerUp.call(this,Ce),this.setSize(),(He==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},de.prototype.showTextEditor=function(){var Ce=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(He){He.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var He=Number.parseFloat(Ce.textEditor.style.fontSize);Ce.textEditor.clientWidth>=Number.parseInt(Ce.textEditor.style.maxWidth)&&He>.9;)He-=.1,Ce.textEditor.style.fontSize=Math.max(He,.9)+"em"}),this.textEditor.addEventListener("keyup",function(He){He.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(He){if(He.clipboardData){var je=He.clipboardData.getData("text"),Ae=window.getSelection();if(!Ae.rangeCount)return!1;Ae.deleteFromDocument(),Ae.getRangeAt(0).insertNode(document.createTextNode(je)),He.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ce.textEditDivClicked(Ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},de.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ce=this.getTextScale(),He=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),je=this.textElement.getBBox(),Ae={x:je.width*Ce,y:je.height*Ce};He.x-=Ae.x/2,He.y-=Ae.y/2,this.textEditor.style.top=He.y+"px",this.textEditor.style.left=He.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-He.x+"px",this.textEditor.style.fontSize=Math.max(16*Ce,12)+"px",this.textElement.style.display="none"}},de.prototype.textEditDivClicked=function(Ce){this.text=Ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},de.prototype.select=function(){Ve.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},de.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ve.prototype.deselect.call(this)},de.prototype.dblClick=function(Ce,He){Ve.prototype.dblClick.call(this,Ce,He),this.showTextEditor()},de.prototype.setColor=function(Ce){this.textElement&&ie.setAttributes(this.textElement,[["fill",Ce]]),this.color=Ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ce)},de.prototype.setFont=function(Ce){this.textElement&&ie.setAttributes(this.textElement,[["font-family",Ce]]),this.fontFamily=Ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},de.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},de.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ve.prototype.getState.call(this));return Ce.typeName=de.typeName,Ce},de.prototype.restoreState=function(Ce){var He=Ce;this.color=He.color,this.fontFamily=He.fontFamily,this.padding=He.padding,this.text=He.text,this.createVisual(),Ve.prototype.restoreState.call(this,Ce),this.setSize()},de.prototype.scale=function(Ce,He){Ve.prototype.scale.call(this,Ce,He),this.setSize(),this.sizeText(),this.positionTextEditor()},de.typeName="TextMarker",de.title="Text marker",de.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>',de}(Me),_e=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.color="transparent",Ae.lineWidth=3,Ae.drawing=!1,Ae.pixelRatio=1,Ae.color=je.defaultColor,Ae.lineWidth=je.defaultStrokeWidth,Ae.pixelRatio=je.freehandPixelRatio,Ae.setColor=Ae.setColor.bind(Ae),Ae.addCanvas=Ae.addCanvas.bind(Ae),Ae.finishCreation=Ae.finishCreation.bind(Ae),Ae.setLineWidth=Ae.setLineWidth.bind(Ae),Ae.colorPanel=new pe("Color",je.defaultColorSet,je.defaultColor),Ae.colorPanel.onColorChanged=Ae.setColor,Ae.lineWidthPanel=new be("Line width",je.defaultStrokeWidths,je.defaultStrokeWidth),Ae.lineWidthPanel.onWidthChanged=Ae.setLineWidth,Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return!(!Ve.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual&&Ce!==this.drawingImage)},de.prototype.createVisual=function(){this.visual=ie.createGroup(),this.drawingImage=ie.createImage(),this.visual.appendChild(this.drawingImage);var Ce=ie.createTransform();this.visual.transform.baseVal.appendItem(Ce),this.addMarkerVisualToContainer(this.visual)},de.prototype.pointerDown=function(Ce,He){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(Ce.x,Ce.y),this.drawing=!0):Ve.prototype.pointerDown.call(this,Ce,He)},de.prototype.manipulate=function(Ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ce.x,Ce.y),this.canvasContext.stroke()):Ve.prototype.manipulate.call(this,Ce)},de.prototype.resize=function(Ce){Ve.prototype.resize.call(this,Ce),ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ie.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},de.prototype.pointerUp=function(Ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ve.prototype.pointerUp.call(this,Ce)},de.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)},de.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ve.prototype.select.call(this)},de.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ve.prototype.deselect.call(this)},de.prototype.finishCreation=function(){for(var Ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),He=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],je=He[0],Ae=He[1],Ne=He[2],ze=He[3],Qe=!1,ot=0;ot<this.canvasElement.height;ot++)for(var mt=0;mt<this.canvasElement.width;mt++)Ce.data[ot*this.canvasElement.width*4+4*mt+3]>0&&(Qe=!0,ot<Ae&&(Ae=ot),mt<je&&(je=mt),ot>ze&&(ze=ot),mt>Ne&&(Ne=mt));if(Qe){this.left=je/this.pixelRatio,this.top=Ae/this.pixelRatio,this.width=(Ne-je)/this.pixelRatio,this.height=(ze-Ae)/this.pixelRatio;var Ot=document.createElement("canvas");Ot.width=Ne-je,Ot.height=ze-Ae,Ot.getContext("2d").putImageData(this.canvasContext.getImageData(je,Ae,Ne-je,ze-Ae),0,0),this.drawingImgUrl=Ot.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},de.prototype.setDrawingImage=function(){ie.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ie.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},de.prototype.setColor=function(Ce){this.color=Ce,this.colorChanged(Ce)},de.prototype.setLineWidth=function(Ce){this.lineWidth=Ce},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Object.assign({drawingImgUrl:this.drawingImgUrl},Ve.prototype.getState.call(this));return Ce.typeName=de.typeName,Ce},de.prototype.restoreState=function(Ce){this.createVisual(),Ve.prototype.restoreState.call(this,Ce),this.drawingImgUrl=Ce.drawingImgUrl,this.setDrawingImage()},de.prototype.scale=function(Ce,He){Ve.prototype.scale.call(this,Ce,He),this.setDrawingImage()},de.typeName="FreehandMarker",de.title="Freehand marker",de.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>',de}(Me),We=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,je||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ae.typeBoxes=[],Ae.currentType=He,Ae.setCurrentType=Ae.setCurrentType.bind(Ae),Ae}return Je(de,Ve),de.prototype.getUi=function(){var Ce=this,He=document.createElement("div");He.style.display="flex",He.style.overflow="hidden",He.style.flexGrow="2";for(var je=function(ze){var Qe="both";switch(ze){case 0:Qe="both";break;case 1:Qe="start";break;case 2:Qe="end";break;case 3:Qe="none"}var ot=document.createElement("div");if(ot.style.display="flex",ot.style.flexGrow="2",ot.style.alignItems="center",ot.style.justifyContent="space-between",ot.style.padding="5px",ot.style.borderWidth="2px",ot.style.borderStyle="solid",ot.style.borderColor=Qe===Ae.currentType?Ae.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){Ce.setCurrentType(Qe,ot)}),He.appendChild(ot),Qe==="both"||Qe==="start"){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,5 10,0 10,10" fill="`+(Ae.uiStyleSettings!==void 0?Ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,mt.style.marginLeft="5px",ot.appendChild(mt)}var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.style.flexGrow="2";var xt=document.createElement("hr");if(xt.style.minWidth="20px",xt.style.border="0px",xt.style.borderTop="3px solid "+(Ae.uiStyleSettings!==void 0?Ae.uiStyleSettings.toolboxColor:"#eeeeee"),xt.style.flexGrow="2",Ot.appendChild(xt),ot.appendChild(Ot),Qe==="both"||Qe==="end"){var Ut=document.createElement("div");Ut.style.display="flex",Ut.style.alignItems="center",Ut.style.minHeight="20px",Ut.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="`+(Ae.uiStyleSettings!==void 0?Ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ut.style.marginRight="5px",ot.appendChild(Ut)}Ae.typeBoxes.push(ot)},Ae=this,Ne=0;Ne<4;Ne++)je(Ne);return He},de.prototype.setCurrentType=function(Ce,He){var je=this;this.currentType=Ce,this.typeBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===He?je.uiStyleSettings!==void 0?je.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},de}(fe),Ze=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.arrowType="end",Ae.arrowBaseHeight=10,Ae.arrowBaseWidth=10,Ae.getArrowPoints=Ae.getArrowPoints.bind(Ae),Ae.setArrowType=Ae.setArrowType.bind(Ae),Ae.arrowTypePanel=new We("Arrow type","end"),Ae.arrowTypePanel.onArrowTypeChanged=Ae.setArrowType,Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return!(!Ve.prototype.ownsTarget.call(this,Ce)&&Ce!==this.arrow1&&Ce!==this.arrow2)},de.prototype.getArrowPoints=function(Ce,He){var je=this.arrowBaseWidth+2*this.strokeWidth,Ae=this.arrowBaseHeight+2*this.strokeWidth;return Ce-je/2+","+(He+Ae/2)+" "+Ce+","+(He-Ae/2)+" "+(Ce+je/2)+","+(He+Ae/2)},de.prototype.createTips=function(){this.arrow1=ie.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ie.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ie.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ie.createTransform()),this.visual.appendChild(this.arrow2)},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.state==="creating"&&this.createTips()},de.prototype.adjustVisual=function(){if(Ve.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",ie.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ie.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ce=0;Math.abs(this.x1-this.x2)>.1&&(Ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var He=this.arrow1.transform.baseVal.getItem(0);He.setRotate(Ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(He,0);var je=this.arrow2.transform.baseVal.getItem(0);je.setRotate(Ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(je,0)}},de.prototype.setArrowType=function(Ce){this.arrowType=Ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Object.assign({arrowType:this.arrowType},Ve.prototype.getState.call(this));return Ce.typeName=de.typeName,Ce},de.prototype.restoreState=function(Ce){Ve.prototype.restoreState.call(this,Ce);var He=Ce;this.arrowType=He.arrowType,this.createTips(),this.adjustVisual()},de.typeName="ArrowMarker",de.title="Arrow marker",de.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',de}(Ie),et=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.fillColor=je.defaultFillColor,Ae.strokeWidth=0,Ae.fillPanel=new pe("Color",je.defaultColorSet,je.defaultFillColor),Ae.fillPanel.onColorChanged=Ae.setFillColor,Ae}return Je(de,Ve),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Ve.prototype.getState.call(this);return Ce.typeName=de.typeName,Ce},de.typeName="CoverMarker",de.title="Cover marker",de.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',de}(ye),it=function(Ve){function de(Ce,He,je,Ae){var Ne=Ve.call(this,Ce,Ae||'<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 Ne.opacities=[],Ne.opacityBoxes=[],Ne.opacities=He,Ne.currentOpacity=je,Ne.setCurrentOpacity=Ne.setCurrentOpacity.bind(Ne),Ne}return Je(de,Ve),de.prototype.getUi=function(){var Ce=this,He=document.createElement("div");return He.style.display="flex",He.style.overflow="hidden",He.style.flexGrow="2",He.style.justifyContent="space-between",this.opacities.forEach(function(je){var Ae=document.createElement("div");Ae.style.display="flex",Ae.style.alignItems="center",Ae.style.justifyContent="center",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.borderColor=je===Ce.currentOpacity?Ce.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){Ce.setCurrentOpacity(je,Ae)}),He.appendChild(Ae);var Ne=document.createElement("div");Ne.innerText=100*je+"%",Ae.appendChild(Ne),Ce.opacityBoxes.push(Ae)}),He},de.prototype.setCurrentOpacity=function(Ce,He){var je=this;this.currentOpacity=Ce,this.opacityBoxes.forEach(function(Ae){Ae.style.borderColor=Ae===He?je.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},de}(fe),pt=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.setOpacity=Ae.setOpacity.bind(Ae),Ae.fillColor=je.defaultHighlightColor,Ae.strokeWidth=0,Ae.opacity=je.defaultHighlightOpacity,Ae.fillPanel=new pe("Color",je.defaultColorSet,Ae.fillColor),Ae.fillPanel.onColorChanged=Ae.setFillColor,Ae.opacityPanel=new it("Opacity",je.defaultOpacitySteps,Ae.opacity),Ae.opacityPanel.onOpacityChanged=Ae.setOpacity,Ae}return Je(de,Ve),de.prototype.setOpacity=function(Ce){this.opacity=Ce,this.visual&&ie.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Ve.prototype.getState.call(this);return Ce.typeName=de.typeName,Ce},de.typeName="HighlightMarker",de.title="Highlight marker",de.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>',de}(et),Ge='<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>',Xe='<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>',lt=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.bgColor="transparent",Ae.tipPosition={x:0,y:0},Ae.tipBase1Position={x:0,y:0},Ae.tipBase2Position={x:0,y:0},Ae.tipMoving=!1,Ae.color=je.defaultStrokeColor,Ae.bgColor=je.defaultFillColor,Ae.fontFamily=je.defaultFontFamily,Ae.defaultSize={x:100,y:30},Ae.setBgColor=Ae.setBgColor.bind(Ae),Ae.getTipPoints=Ae.getTipPoints.bind(Ae),Ae.positionTip=Ae.positionTip.bind(Ae),Ae.setTipPoints=Ae.setTipPoints.bind(Ae),Ae.colorPanel=new pe("Text color",je.defaultColorSet,Ae.color,Ge),Ae.colorPanel.onColorChanged=Ae.setColor,Ae.bgColorPanel=new pe("Fill color",je.defaultColorSet,Ae.bgColor,Xe),Ae.bgColorPanel.onColorChanged=Ae.setBgColor,Ae.fontFamilyPanel=new Be("Font",je.defaultFontFamilies,je.defaultFontFamily),Ae.fontFamilyPanel.onFontChanged=Ae.setFont,Ae.tipGrip=new xe,Ae.tipGrip.visual.transform.baseVal.appendItem(ie.createTransform()),Ae.controlBox.appendChild(Ae.tipGrip.visual),Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return Ve.prototype.ownsTarget.call(this,Ce)||this.tipGrip.ownsTarget(Ce)||this.tip===Ce},de.prototype.createTip=function(){ie.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ie.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},de.prototype.pointerDown=function(Ce,He){this.state==="new"&&Ve.prototype.pointerDown.call(this,Ce,He),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(He)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ve.prototype.pointerDown.call(this,Ce,He)},de.prototype.pointerUp=function(Ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ve.prototype.pointerUp.call(this,Ce);else{var He=this.state==="creating";Ve.prototype.pointerUp.call(this,Ce),this.setTipPoints(He),this.positionTip()}},de.prototype.manipulate=function(Ce){if(this.tipMoving){var He=this.unrotatePoint(Ce);this.tipPosition={x:He.x-this.manipulationStartLeft,y:He.y-this.manipulationStartTop},this.positionTip()}else Ve.prototype.manipulate.call(this,Ce)},de.prototype.setBgColor=function(Ce){this.bgRectangle&&this.tip&&(ie.setAttributes(this.bgRectangle,[["fill",Ce]]),ie.setAttributes(this.tip,[["fill",Ce]])),this.bgColor=Ce,this.fillColorChanged(Ce)},de.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},de.prototype.setTipPoints=function(Ce){Ce===void 0&&(Ce=!1);var He=Math.min(this.height/2,15),je=this.height/5;Ce&&(this.tipPosition={x:He+je/2,y:this.height+20});var Ae=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ae<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(je=this.width/5,He=Math.min(this.width/2,15),this.tipBase1Position={x:He,y:0},this.tipBase2Position={x:He+je,y:0}):(this.tipBase1Position={x:0,y:He},this.tipBase2Position={x:0,y:He+je}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ae<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(je=this.width/5,He=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-He-je,y:0},this.tipBase2Position={x:this.width-He,y:0}):(this.tipBase1Position={x:this.width,y:He},this.tipBase2Position={x:this.width,y:He+je}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ae<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(je=this.width/5,He=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-He-je,y:this.height},this.tipBase2Position={x:this.width-He,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-He-je},this.tipBase2Position={x:this.width,y:this.height-He}):Ae<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(je=this.width/5,He=Math.min(this.width/2,15),this.tipBase1Position={x:He,y:this.height},this.tipBase2Position={x:He+je,y:this.height}):(this.tipBase1Position={x:0,y:this.height-He},this.tipBase2Position={x:0,y:this.height-He-je})},de.prototype.resize=function(Ce){Ve.prototype.resize.call(this,Ce),this.positionTip()},de.prototype.positionTip=function(){ie.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ce=this.tipGrip.visual.transform.baseVal.getItem(0);Ce.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ce,0)},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),de.prototype.select=function(){this.positionTip(),Ve.prototype.select.call(this)},de.prototype.getState=function(){var Ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ve.prototype.getState.call(this));return Ce.typeName=de.typeName,Ce},de.prototype.restoreState=function(Ce){var He=Ce;this.bgColor=He.bgColor,this.tipPosition=He.tipPosition,Ve.prototype.restoreState.call(this,Ce),this.createTip(),this.setTipPoints()},de.prototype.scale=function(Ce,He){Ve.prototype.scale.call(this,Ce,He),this.tipPosition={x:this.tipPosition.x*Ce,y:this.tipPosition.y*He},this.positionTip()},de.typeName="CalloutMarker",de.title="Callout marker",de.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>',de}(Ue),dt=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.fillColor="transparent",Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.opacity=1,Ae.strokeColor=je.defaultColor,Ae.strokeWidth=je.defaultStrokeWidth,Ae.strokeDasharray=je.defaultStrokeDasharray,Ae.fillColor=je.defaultFillColor,Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setFillColor=Ae.setFillColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.setOpacity=Ae.setOpacity.bind(Ae),Ae.createVisual=Ae.createVisual.bind(Ae),Ae.strokePanel=new pe("Line color",ve(je.defaultColorSet,["transparent"]),je.defaultColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.fillPanel=new pe("Fill color",ve(je.defaultColorSet,["transparent"]),Ae.fillColor,Xe),Ae.fillPanel.onColorChanged=Ae.setFillColor,Ae.strokeWidthPanel=new be("Line width",je.defaultStrokeWidths,je.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Fe("Line style",je.defaultStrokeDasharrays,je.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae.opacityPanel=new it("Opacity",je.defaultOpacitySteps,Ae.opacity),Ae.opacityPanel.onOpacityChanged=Ae.setOpacity,Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return!(!Ve.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual)},de.prototype.createVisual=function(){this.visual=ie.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)},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.state==="new"&&(this.createVisual(),this.moveVisual(Ce),this._state="creating")},de.prototype.manipulate=function(Ce){Ve.prototype.manipulate.call(this,Ce)},de.prototype.resize=function(Ce){Ve.prototype.resize.call(this,Ce),this.setSize()},de.prototype.setSize=function(){Ve.prototype.setSize.call(this),ie.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},de.prototype.pointerUp=function(Ce){Ve.prototype.pointerUp.call(this,Ce),this.setSize()},de.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.visual&&ie.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ce),this.stateChanged()},de.prototype.setFillColor=function(Ce){this.fillColor=Ce,this.visual&&ie.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ce),this.stateChanged()},de.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.visual&&ie.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.visual&&ie.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},de.prototype.setOpacity=function(Ce){this.opacity=Ce,this.visual&&ie.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ve.prototype.getState.call(this));return Ce.typeName=de.typeName,Ce},de.prototype.restoreState=function(Ce){var He=Ce;this.fillColor=He.fillColor,this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.opacity=He.opacity,this.createVisual(),Ve.prototype.restoreState.call(this,Ce),this.setSize()},de.prototype.scale=function(Ce,He){Ve.prototype.scale.call(this,Ce,He),this.setSize()},de.typeName="EllipseMarker",de.title="Ellipse marker",de.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>',de}(Me),st=function(Ve){function de(Ce,He,je){return Ve.call(this,Ce,He,je)||this}return Je(de,Ve),Object.defineProperty(de.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(Ce){return!(!Ve.prototype.ownsTarget.call(this,Ce)&&Ce!==this.tip1&&Ce!==this.tip2)},de.prototype.createTips=function(){this.tip1=ie.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(ie.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ie.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(ie.createTransform()),this.visual.appendChild(this.tip2)},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.state==="creating"&&this.createTips()},de.prototype.adjustVisual=function(){if(Ve.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ie.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()]]),ie.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 Ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),He=this.tip1.transform.baseVal.getItem(0);He.setRotate(Ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(He,0);var je=this.tip2.transform.baseVal.getItem(0);je.setRotate(Ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(je,0)}},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Ve.prototype.getState.call(this);return Ce.typeName=de.typeName,Ce},de.prototype.restoreState=function(Ce){Ve.prototype.restoreState.call(this,Ce),this.createTips(),this.adjustVisual()},de.typeName="MeasurementMarker",de.title="Measurement marker",de.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>',de}(Ie),nt=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.strokePanel.colors=je.defaultColorSet,Ae.fillColor="transparent",Ae}return Je(de,Ve),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Ve.prototype.getState.call(this);return Ce.typeName=de.typeName,Ce},de.typeName="EllipseFrameMarker",de.title="Ellipse frame marker",de.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>',de}(dt),rt=function(){function Ve(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ve.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ve.prototype.addUndoStep=function(de){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(de)||(this.undoStack.push(de),JSON.stringify(this.lastRedoStep)!==JSON.stringify(de)&&this.redoStack.splice(0,this.redoStack.length))},Ve.prototype.replaceLastUndoStep=function(de){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=de)},Ve.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ve.prototype.undo=function(){if(this.undoStack.length>1){var de=this.undoStack.pop();return de!==void 0&&this.redoStack.push(de),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ve.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ve}(),at=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.curveX=0,Ae.curveY=0,Ae.manipulationStartCurveX=0,Ae.manipulationStartCurveY=0,Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.positionGrips=Ae.positionGrips.bind(Ae),Ae.addControlGrips=Ae.addControlGrips.bind(Ae),Ae.adjustVisual=Ae.adjustVisual.bind(Ae),Ae.setupControlBox=Ae.setupControlBox.bind(Ae),Ae.resize=Ae.resize.bind(Ae),Ae.strokeColor=je.defaultColor,Ae.strokeWidth=je.defaultStrokeWidth,Ae.strokeDasharray=je.defaultStrokeDasharray,Ae.strokePanel=new pe("Line color",je.defaultColorSet,je.defaultColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.strokeWidthPanel=new be("Line width",je.defaultStrokeWidths,je.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Fe("Line style",je.defaultStrokeDasharrays,je.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return!(!Ve.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual&&Ce!==this.selectorCurve&&Ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ce))},de.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},de.prototype.createVisual=function(){this.visual=ie.createGroup(),this.selectorCurve=ie.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ie.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)},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ce.x,this.curveY=Ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(He)&&(this.activeGrip=this.curveGrip,this._state="resize")},de.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ie.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ie.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ie.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},de.prototype.setupControlBox=function(){Ve.prototype.setupControlBox.call(this),this.curveControlLine1=ie.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ie.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)},de.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ve.prototype.addControlGrips.call(this)},de.prototype.positionGrips=function(){Ve.prototype.positionGrips.call(this);var Ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ce/2,this.curveY-Ce/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()))},de.prototype.manipulate=function(Ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ce.y-this.manipulationStartY),Ve.prototype.manipulate.call(this,Ce)},de.prototype.resize=function(Ce){this.activeGrip===this.curveGrip&&(this.curveX=Ce.x,this.curveY=Ce.y),Ve.prototype.resize.call(this,Ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},de.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.adjustVisual(),this.colorChanged(Ce)},de.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.adjustVisual()},de.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.adjustVisual()},de.prototype.scale=function(Ce,He){this.curveX=this.curveX*Ce,this.curveY=this.curveY*He,Ve.prototype.scale.call(this,Ce,He)},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ve.prototype.getState.call(this));return Ce.typeName=de.typeName,Ce},de.prototype.restoreState=function(Ce){Ve.prototype.restoreState.call(this,Ce);var He=Ce;this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.curveX=He.curveX,this.curveY=He.curveY,this.createVisual(),this.adjustVisual()},de.typeName="CurveMarker",de.title="Curve marker",de.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>',de}(Le),gt=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,He,je)||this;return Ae.fillColor="transparent",Ae.strokeColor="transparent",Ae.strokeWidth=0,Ae.strokeDasharray="",Ae.textColor="transparent",Ae.fontSize="1rem",Ae.isMoved=!1,Ae.captionText="Caption",Ae.PADDING=5,Ae.captionBoxWidth=0,Ae.captionBoxHeight=0,Ae.strokeColor=je.defaultColor,Ae.strokeWidth=je.defaultStrokeWidth,Ae.strokeDasharray=je.defaultStrokeDasharray,Ae.fillColor=je.defaultFillColor,Ae.textColor=je.defaultStrokeColor,Ae.fontFamily=je.defaultFontFamily,Ae.fontSize=je.defaultCaptionFontSize,Ae.captionText=je.defaultCaptionText,Ae.setStrokeColor=Ae.setStrokeColor.bind(Ae),Ae.setFillColor=Ae.setFillColor.bind(Ae),Ae.setStrokeWidth=Ae.setStrokeWidth.bind(Ae),Ae.setStrokeDasharray=Ae.setStrokeDasharray.bind(Ae),Ae.createVisual=Ae.createVisual.bind(Ae),Ae.sizeCaption=Ae.sizeCaption.bind(Ae),Ae.setCaptionText=Ae.setCaptionText.bind(Ae),Ae.showTextEditor=Ae.showTextEditor.bind(Ae),Ae.positionTextEditor=Ae.positionTextEditor.bind(Ae),Ae.finishTextEditing=Ae.finishTextEditing.bind(Ae),Ae.setFont=Ae.setFont.bind(Ae),Ae.setTextColor=Ae.setTextColor.bind(Ae),Ae.strokePanel=new pe("Line color",ve(je.defaultColorSet,["transparent"]),Ae.strokeColor),Ae.strokePanel.onColorChanged=Ae.setStrokeColor,Ae.fillPanel=new pe("Fill color",ve(je.defaultColorSet,["transparent"]),Ae.fillColor,Xe),Ae.fillPanel.onColorChanged=Ae.setFillColor,Ae.strokeWidthPanel=new be("Line width",je.defaultStrokeWidths,je.defaultStrokeWidth),Ae.strokeWidthPanel.onWidthChanged=Ae.setStrokeWidth,Ae.strokeStylePanel=new Fe("Line style",je.defaultStrokeDasharrays,je.defaultStrokeDasharray),Ae.strokeStylePanel.onStyleChanged=Ae.setStrokeDasharray,Ae.fontFamilyPanel=new Be("Font",je.defaultFontFamilies,je.defaultFontFamily),Ae.fontFamilyPanel.onFontChanged=Ae.setFont,Ae.textColorPanel=new pe("Text color",je.defaultColorSet,Ae.textColor,Ge),Ae.textColorPanel.onColorChanged=Ae.setTextColor,Ae}return Je(de,Ve),de.prototype.ownsTarget=function(Ce){return!(!Ve.prototype.ownsTarget.call(this,Ce)&&Ce!==this.visual&&Ce!==this.frame&&Ce!==this.captionBg&&Ce!==this.captionElement)},de.prototype.createVisual=function(){this.visual=ie.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ie.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ie.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=ie.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()},de.prototype.setCaptionText=function(Ce){this.captionText=Ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},de.prototype.pointerDown=function(Ce,He){Ve.prototype.pointerDown.call(this,Ce,He),this.isMoved=!1,this.pointerDownPoint=Ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ce),this._state="creating")},de.prototype.manipulate=function(Ce){Ve.prototype.manipulate.call(this,Ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ce.x-this.pointerDownPoint.x)>5||Math.abs(Ce.y-this.pointerDownPoint.y)>5)},de.prototype.resize=function(Ce){Ve.prototype.resize.call(this,Ce),this.setSize()},de.prototype.sizeCaption=function(){var Ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ce.width+2*this.PADDING,this.captionBoxHeight=Ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ie.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')"]]),ie.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')"]])},de.prototype.showTextEditor=function(){var Ce=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(He){He.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(He){He.key==="Enter"&&Ce.finishTextEditing(Ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(He){He.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ce.finishTextEditing(Ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ce.finishTextEditing(Ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},de.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"))},de.prototype.finishTextEditing=function(Ce){this.setCaptionText(Ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},de.prototype.setFont=function(Ce){this.captionElement&&ie.setAttributes(this.captionElement,[["font-family",Ce]]),this.fontFamily=Ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},de.prototype.setTextColor=function(Ce){this.captionElement&&ie.setAttributes(this.captionElement,[["fill",Ce]]),this.textColor=Ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},de.prototype.setSize=function(){Ve.prototype.setSize.call(this),ie.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},de.prototype.pointerUp=function(Ce){Ve.prototype.pointerUp.call(this,Ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},de.prototype.dblClick=function(Ce,He){Ve.prototype.dblClick.call(this,Ce,He),this.showTextEditor()},de.prototype.setStrokeColor=function(Ce){this.strokeColor=Ce,this.frame&&ie.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ce),this.stateChanged()},de.prototype.setFillColor=function(Ce){this.fillColor=Ce,this.captionBg&&ie.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ce),this.stateChanged()},de.prototype.setStrokeWidth=function(Ce){this.strokeWidth=Ce,this.frame&&ie.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(Ce){this.strokeDasharray=Ce,this.frame&&ie.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var Ce=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},Ve.prototype.getState.call(this));return Ce.typeName=this.typeName,Ce},de.prototype.restoreState=function(Ce){var He=Ce;this.fillColor=He.fillColor,this.strokeColor=He.strokeColor,this.strokeWidth=He.strokeWidth,this.strokeDasharray=He.strokeDasharray,this.textColor=He.textColor,this.fontFamily=He.fontFamily,this.captionText=He.captionText,this.fontSize=He.fontSize,this.createVisual(),Ve.prototype.restoreState.call(this,Ce),this.setSize()},de.prototype.scale=function(Ce,He){Ve.prototype.scale.call(this,Ce,He),this.setSize()},de.typeName="CaptionFrameMarker",de.title="Caption frame marker",de.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>',de}(Me),vt=function(){function Ve(de,Ce){Ce===void 0&&(Ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=de,this.cancelable=Ce}return Object.defineProperty(Ve.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ve.prototype.preventDefault=function(){this._defaultPrevented=!0},Ve}(),Et=function(Ve){function de(Ce,He,je){var Ae=Ve.call(this,Ce,!1)||this;return Ae.dataUrl=He,Ae.state=je,Ae}return Je(de,Ve),de}(vt),At=function(Ve){function de(Ce,He,je){je===void 0&&(je=!1);var Ae=Ve.call(this,Ce,je)||this;return Ae.marker=He,Ae}return Je(de,Ve),de}(vt),ut=function(){function Ve(){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 Ve.prototype.addEventListener=function(de,Ce){this[de].push(Ce)},Ve.prototype.removeEventListener=function(de,Ce){var He=this[de].indexOf(Ce);He>-1&&this[de].splice(He,1)},Ve}(),Ye=function(){function Ve(de){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new De,this._isOpen=!1,this.undoRedoManager=new rt,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 ut,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ve.instanceCounter++,this.styles=new oe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=de,this.targetRoot=document.body,this.width=de.clientWidth,this.height=de.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(Ve.prototype,"ALL_MARKER_TYPES",{get:function(){return[ke,_e,Ze,Ue,nt,dt,pt,lt,st,et,Ie,at,gt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ke,_e,Ze,Ue,dt,pt,lt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ke,_e,Ze,Ue,pt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(de){var Ce=this;this._availableMarkerTypes.splice(0),de.forEach(function(He){if(typeof He=="string"){var je=Ce.ALL_MARKER_TYPES.find(function(Ae){return Ae.typeName===He});je!==void 0&&Ce._availableMarkerTypes.push(je)}else Ce._availableMarkerTypes.push(He)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ve.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(de){this._zoomLevel=de,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(Ve.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ve.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),te.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ve.prototype.show=function(){var de=this;this.styles.styleSheetRoot===void 0&&ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ce){return Ce(new vt(de))})},Ve.prototype.render=function(){return x(this,void 0,void 0,function(){var de;return Te(this,function(Ce){switch(Ce.label){case 0:return this.setCurrentMarker(),(de=new ae).naturalSize=this.renderAtNaturalSize,de.imageType=this.renderImageType,de.imageQuality=this.renderImageQuality,de.markersOnly=this.renderMarkersOnly,de.width=this.renderWidth,de.height=this.renderHeight,[4,de.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ce.sent(),[4,de.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ce.sent()]}})})},Ve.prototype.close=function(de){var Ce=this;if(de===void 0&&(de=!1),this.isOpen){var He=!1;de||this.eventListeners.beforeclose.forEach(function(je){var Ae=new vt(Ce,!0);je(Ae),Ae.defaultPrevented&&(He=!0)}),He||(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(je){return je(new vt(Ce))}),this.detachEvents(),this._isOpen=!1)}},Ve.prototype.addMarkersToToolbar=function(){for(var de,Ce=[],He=0;He<arguments.length;He++)Ce[He]=arguments[He];(de=this._availableMarkerTypes).push.apply(de,Ce)},Ve.prototype.addRenderEventListener=function(de){this.addEventListener("render",function(Ce){de(Ce.dataUrl,Ce.state)})},Ve.prototype.removeRenderEventListener=function(de){},Ve.prototype.addCloseEventListener=function(de){this.addEventListener("close",function(){de()})},Ve.prototype.removeCloseEventListener=function(de){},Ve.prototype.setupResizeObserver=function(){var de=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){de.resize(de.target.clientWidth,de.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return de.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ve.prototype.onPopupTargetResize=function(){var de=1*this.target.clientWidth/this.target.clientHeight,Ce=this.editorCanvas.clientWidth/de>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*de:this.editorCanvas.clientWidth,He=Ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/de;this.resize(Ce,He)},Ve.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ve.prototype.resize=function(de,Ce){this._isResizing=!0;var He=de/this.imageWidth,je=Ce/this.imageHeight;this.imageWidth=Math.round(de),this.imageHeight=Math.round(Ce),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(He,je),this._isResizing=!1},Ve.prototype.scaleMarkers=function(de,Ce){var He,je=this;this._currentMarker&&this._currentMarker instanceof Ue?this._currentMarker.scale(de,Ce):(He=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ae){Ae!==je._currentMarker&&Ae.scale(de,Ce)}),He!==void 0&&this.setCurrentMarker(He)},Ve.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"},Ve.prototype.setTopLeft=function(){var de=this.editingTarget.getBoundingClientRect(),Ce=this.editorCanvas.getBoundingClientRect();this.left=de.left-Ce.left,this.top=de.top-Ce.top},Ve.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)},Ve.prototype.addDefs=function(){for(var de,Ce=[],He=0;He<arguments.length;He++)Ce[He]=arguments[He];this.defs=ie.createDefs(),this.addDefsToImage(),(de=this.defs).append.apply(de,Ce)},Ve.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ve.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)},Ve.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ve.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ve.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)},Ve.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ve.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)},Ve.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 de=document.createElement("a");de.href="https://markerjs.com/",de.target="_blank",de.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>',de.title="Powered by marker.js",de.style.display="grid",de.style.alignItems="center",de.style.justifyItems="center",de.style.padding="3px",de.style.width="20px",de.style.height="20px",this.logoUI.appendChild(de),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ve.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")},Ve.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"},Ve.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ve.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 de=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=de+"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 se(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 ce(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ve.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ve.prototype.removeMarker=function(de){this.markerImage.removeChild(de.container),this.markers.indexOf(de)>-1&&this.markers.splice(this.markers.indexOf(de),1),de.dispose()},Ve.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())},Ve.prototype.toolbarButtonClicked=function(de,Ce){if(de==="marker"&&Ce!==void 0)this.createNewMarker(Ce);else if(de==="action")switch(Ce){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()}},Ve.prototype.deleteSelectedMarker=function(){var de=this;if(this._currentMarker!==void 0){var Ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(je){var Ae=new At(de,de._currentMarker,!0);je(Ae),Ae.defaultPrevented&&(Ce=!0)}),!Ce){var He=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(je){return je(new At(de,He))})}}},Ve.prototype.clear=function(){var de=this,Ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ne){var ze=new At(de,void 0,!0);Ne(ze),ze.defaultPrevented&&(Ce=!0)}),!Ce)){this.setCurrentMarker();for(var He=function(Ne){var ze=je.markers[Ne];je.setCurrentMarker(je.markers[Ne]),je._currentMarker.dispose(),je.markerImage.removeChild(je._currentMarker.container),je.markers.splice(je.markers.indexOf(je._currentMarker),1),je.eventListeners.markerdelete.forEach(function(Qe){return Qe(new At(de,ze))})},je=this,Ae=this.markers.length-1;Ae>=0;Ae--)He(Ae);this.addUndoStep()}},Object.defineProperty(Ve.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ve.prototype.showNotesEditor=function(){var de;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=(de=this._currentMarker.notes)!==null&&de!==void 0?de:"",this.overlayContainer.appendChild(this.notesArea))},Ve.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)},Ve.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ve.prototype.addUndoStep=function(){var de=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ce=this.getState(),He=this.undoRedoManager.getLastUndoStep();if(!He||He.width===Ce.width&&He.height===Ce.height){var je=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ce),je<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ae){return Ae(new vt(de))})}else this.undoRedoManager.replaceLastUndoStep(Ce),this.eventListeners.statechange.forEach(function(Ae){return Ae(new vt(de))})}},Ve.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ve.prototype.undoStep=function(){var de=this,Ce=this.undoRedoManager.undo();Ce!==void 0&&(this.restoreState(Ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(He){return He(new vt(de))}))},Ve.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ve.prototype.redoStep=function(){var de=this,Ce=this.undoRedoManager.redo();Ce!==void 0&&(this.restoreState(Ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(He){return He(new vt(de))}))},Ve.prototype.stepZoom=function(){var de=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=de<this.zoomSteps.length-1?this.zoomSteps[de+1]:this.zoomSteps[0]},Ve.prototype.panTo=function(de){this.contentDiv.scrollBy({left:this.prevPanPoint.x-de.x,top:this.prevPanPoint.y-de.y}),this.prevPanPoint=de},Ve.prototype.startRenderAndClose=function(){return x(this,void 0,void 0,function(){var de,Ce,He=this;return Te(this,function(je){switch(je.label){case 0:return[4,this.render()];case 1:return de=je.sent(),Ce=this.getState(),this.eventListeners.render.forEach(function(Ae){return Ae(new Et(He,de,Ce))}),this.close(!0),[2]}})})},Ve.prototype.getState=function(de){de===!0&&this.setCurrentMarker();var Ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(He){return Ce.markers.push(He.getState())}),Ce},Ve.prototype.restoreState=function(de){var Ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);de.markers.forEach(function(He){var je=Ce._availableMarkerTypes.find(function(Ne){return Ne.typeName===He.typeName});if(je!==void 0){var Ae=Ce.addNewMarker(je);Ae.restoreState(He),Ce.markers.push(Ae)}}),de.width&&de.height&&(de.width!==this.imageWidth||de.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/de.width,this.imageHeight/de.height),this.eventListeners.restorestate.forEach(function(He){return He(new vt(Ce))})},Ve.prototype.addNewMarker=function(de){var Ce=ie.createGroup();return this.markerImage.appendChild(Ce),new de(Ce,this.overlayContainer,this.settings)},Ve.prototype.createNewMarker=function(de){var Ce,He=this;(Ce=typeof de=="string"?this._availableMarkerTypes.find(function(je){return je.typeName===de}):de)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ce),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(Ce.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(je){return je(new At(He,He._currentMarker))}))},Ve.prototype.markerCreated=function(de){var Ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(de),this.setCurrentMarker(de),de instanceof _e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(_e):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(He){return He(new At(Ce,Ce._currentMarker))})},Ve.prototype.colorChanged=function(de){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=de,this.settings.defaultStrokeColor=de)},Ve.prototype.fillColorChanged=function(de){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=de)},Ve.prototype.markerStateChanged=function(de){var Ce=this;this.eventListeners.markerchange.forEach(function(He){return He(new At(Ce,de))})},Ve.prototype.setCurrentMarker=function(de){var Ce=this;this._currentMarker!==de&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(He){return He(new At(Ce,Ce._currentMarker))})),this._currentMarker=de,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(He){return He(new At(Ce,Ce._currentMarker))}))},Ve.prototype.onPointerDown=function(de){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||de.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ce=this.markers.find(function(He){return He.ownsTarget(de.target)});Ce!==void 0?(this.setCurrentMarker(Ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(de.clientX,de.clientY),de.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:de.clientX,y:de.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(de.clientX,de.clientY))},Ve.prototype.onDblClick=function(de){if(this._isFocused||this.focus(),this.mode==="select"){var Ce=this.markers.find(function(He){return He.ownsTarget(de.target)});Ce!==void 0&&Ce!==this._currentMarker&&this.setCurrentMarker(Ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(de.clientX,de.clientY),de.target):this.setCurrentMarker()}},Ve.prototype.onPointerMove=function(de){this.touchPoints!==1&&de.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||de.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(de.clientX,de.clientY)):this.zoomLevel>1&&this.panTo({x:de.clientX,y:de.clientY}))},Ve.prototype.onPointerUp=function(de){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(de.clientX,de.clientY)),this.isDragging=!1,this.addUndoStep()},Ve.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ve.prototype.onKeyUp=function(de){this._currentMarker===void 0||this.notesArea!==void 0||de.key!=="Delete"&&de.key!=="Backspace"||this.deleteSelectedMarker()},Ve.prototype.clientToLocalCoordinates=function(de,Ce){var He=this.markerImage.getBoundingClientRect();return{x:(de-He.left)/this.zoomLevel,y:(Ce-He.top)/this.zoomLevel}},Ve.prototype.onWindowResize=function(){this.positionUI()},Ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var de=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=de+"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()},Ve.prototype.addLicenseKey=function(de){te.addKey(de)},Ve.prototype.addEventListener=function(de,Ce){this.eventListeners.addEventListener(de,Ce)},Ve.prototype.removeEventListener=function(de,Ce){this.eventListeners.removeEventListener(de,Ce)},Ve.prototype.renderState=function(de){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(de),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ve.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ve.prototype.focus=function(){var de=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ce){return Ce(new vt(de))}))},Ve.prototype.blur=function(){var de=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ce){return Ce(new vt(de))}))},Ve.instanceCounter=0,Ve}()},42767:function(tn,Kt){"use strict";var me;var Oe=typeof Symbol=="function"&&Symbol.for,Je=Oe?Symbol.for("react.element"):60103,x=Oe?Symbol.for("react.portal"):60106,Te=Oe?Symbol.for("react.fragment"):60107,ve=Oe?Symbol.for("react.strict_mode"):60108,ie=Oe?Symbol.for("react.profiler"):60114,te=Oe?Symbol.for("react.provider"):60109,ae=Oe?Symbol.for("react.context"):60110,ne=Oe?Symbol.for("react.async_mode"):60111,oe=Oe?Symbol.for("react.concurrent_mode"):60111,he=Oe?Symbol.for("react.forward_ref"):60112,re=Oe?Symbol.for("react.suspense"):60113,se=Oe?Symbol.for("react.suspense_list"):60120,ce=Oe?Symbol.for("react.memo"):60115,fe=Oe?Symbol.for("react.lazy"):60116,pe=Oe?Symbol.for("react.block"):60121,le=Oe?Symbol.for("react.fundamental"):60117,Se=Oe?Symbol.for("react.responder"):60118,xe=Oe?Symbol.for("react.scope"):60119;function ge(ye){if(typeof ye=="object"&&ye!==null){var be=ye.$$typeof;switch(be){case Je:switch(ye=ye.type,ye){case ne:case oe:case Te:case ie:case ve:case re:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case ae:case he:case fe:case ce:case te:return ye;default:return be}}case x:return be}}}function Me(ye){return ge(ye)===oe}me=ne,me=oe,me=ae,me=te,me=Je,me=he,me=Te,me=fe,me=ce,me=x,me=ie,me=ve,me=re,me=function(ye){return Me(ye)||ge(ye)===ne},me=Me,me=function(ye){return ge(ye)===ae},me=function(ye){return ge(ye)===te},me=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===Je},me=function(ye){return ge(ye)===he},Kt.isFragment=function(ye){return ge(ye)===Te},me=function(ye){return ge(ye)===fe},me=function(ye){return ge(ye)===ce},me=function(ye){return ge(ye)===x},me=function(ye){return ge(ye)===ie},me=function(ye){return ge(ye)===ve},me=function(ye){return ge(ye)===re},me=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===oe||ye===ie||ye===ve||ye===re||ye===se||typeof ye=="object"&&ye!==null&&(ye.$$typeof===fe||ye.$$typeof===ce||ye.$$typeof===te||ye.$$typeof===ae||ye.$$typeof===he||ye.$$typeof===le||ye.$$typeof===Se||ye.$$typeof===xe||ye.$$typeof===pe)},me=ge},16357:function(tn,Kt,me){"use strict";tn.exports=me(42767)},95860:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ge}});var Oe=me(87462),Je=me(1413),x=me(4942),Te=me(97685),ve=me(45987),ie=me(94184),te=me.n(ie),ae=me(67294);function ne(Me){var ye=ae.useRef();ye.current=Me;var be=ae.useCallback(function(){for(var Fe,ke=arguments.length,De=new Array(ke),Le=0;Le<ke;Le++)De[Le]=arguments[Le];return(Fe=ye.current)===null||Fe===void 0?void 0:Fe.call.apply(Fe,[ye].concat(De))},[]);return be}function oe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var he=oe()?ae.useLayoutEffect:ae.useEffect,re=function(ye,be){var Fe=ae.useRef(!0);he(function(){return ye(Fe.current)},be),he(function(){return Fe.current=!1,function(){Fe.current=!0}},[])},se=function(ye,be){re(function(Fe){if(!Fe)return ye()},be)},ce=null;function fe(Me){var ye=ae.useRef(!1),be=ae.useState(Me),Fe=(0,Te.Z)(be,2),ke=Fe[0],De=Fe[1];ae.useEffect(function(){return ye.current=!1,function(){ye.current=!0}},[]);function Le(Ie,Be){Be&&ye.current||De(Ie)}return[ke,Le]}function pe(Me){return Me!==void 0}function le(Me,ye){var be=ye||{},Fe=be.defaultValue,ke=be.value,De=be.onChange,Le=be.postState,Ie=fe(function(){return pe(ke)?ke:pe(Fe)?typeof Fe=="function"?Fe():Fe:typeof Me=="function"?Me():Me}),Be=(0,Te.Z)(Ie,2),Ue=Be[0],_e=Be[1],We=ke!==void 0?ke:Ue,Ze=Le?Le(We):We,et=ne(De),it=fe([We]),pt=(0,Te.Z)(it,2),Ge=pt[0],Xe=pt[1];se(function(){var dt=Ge[0];Ue!==dt&&et(Ue,dt)},[Ge]),se(function(){pe(ke)||_e(ke)},[ke]);var lt=ne(function(dt,st){_e(dt,st),Xe([We],st)});return[Ze,lt]}var Se=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],xe=(0,ae.forwardRef)(function(Me,ye){var be,Fe=Me.prefixCls,ke=Fe===void 0?"rc-checkbox":Fe,De=Me.className,Le=Me.style,Ie=Me.checked,Be=Me.disabled,Ue=Me.defaultChecked,_e=Ue===void 0?!1:Ue,We=Me.type,Ze=We===void 0?"checkbox":We,et=Me.title,it=Me.onChange,pt=(0,ve.Z)(Me,Se),Ge=(0,ae.useRef)(null),Xe=le(_e,{value:Ie}),lt=(0,Te.Z)(Xe,2),dt=lt[0],st=lt[1];(0,ae.useImperativeHandle)(ye,function(){return{focus:function(){var gt;(gt=Ge.current)===null||gt===void 0||gt.focus()},blur:function(){var gt;(gt=Ge.current)===null||gt===void 0||gt.blur()},input:Ge.current}});var nt=te()(ke,De,(be={},(0,x.Z)(be,"".concat(ke,"-checked"),dt),(0,x.Z)(be,"".concat(ke,"-disabled"),Be),be)),rt=function(gt){Be||("checked"in Me||st(gt.target.checked),it==null||it({target:(0,Je.Z)((0,Je.Z)({},Me),{},{type:Ze,checked:gt.target.checked}),stopPropagation:function(){gt.stopPropagation()},preventDefault:function(){gt.preventDefault()},nativeEvent:gt.nativeEvent}))};return ae.createElement("span",{className:nt,title:et,style:Le},ae.createElement("input",(0,Oe.Z)({},pt,{className:"".concat(ke,"-input"),ref:Ge,onChange:rt,disabled:Be,checked:!!dt,type:Ze})),ae.createElement("span",{className:"".concat(ke,"-inner")}))}),ge=xe},26819:function(tn,Kt){"use strict";var me;var Oe=typeof Symbol=="function"&&Symbol.for,Je=Oe?Symbol.for("react.element"):60103,x=Oe?Symbol.for("react.portal"):60106,Te=Oe?Symbol.for("react.fragment"):60107,ve=Oe?Symbol.for("react.strict_mode"):60108,ie=Oe?Symbol.for("react.profiler"):60114,te=Oe?Symbol.for("react.provider"):60109,ae=Oe?Symbol.for("react.context"):60110,ne=Oe?Symbol.for("react.async_mode"):60111,oe=Oe?Symbol.for("react.concurrent_mode"):60111,he=Oe?Symbol.for("react.forward_ref"):60112,re=Oe?Symbol.for("react.suspense"):60113,se=Oe?Symbol.for("react.suspense_list"):60120,ce=Oe?Symbol.for("react.memo"):60115,fe=Oe?Symbol.for("react.lazy"):60116,pe=Oe?Symbol.for("react.block"):60121,le=Oe?Symbol.for("react.fundamental"):60117,Se=Oe?Symbol.for("react.responder"):60118,xe=Oe?Symbol.for("react.scope"):60119;function ge(ye){if(typeof ye=="object"&&ye!==null){var be=ye.$$typeof;switch(be){case Je:switch(ye=ye.type,ye){case ne:case oe:case Te:case ie:case ve:case re:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case ae:case he:case fe:case ce:case te:return ye;default:return be}}case x:return be}}}function Me(ye){return ge(ye)===oe}me=ne,me=oe,me=ae,me=te,me=Je,me=he,me=Te,me=fe,me=ce,me=x,me=ie,me=ve,me=re,me=function(ye){return Me(ye)||ge(ye)===ne},me=Me,me=function(ye){return ge(ye)===ae},me=function(ye){return ge(ye)===te},me=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===Je},me=function(ye){return ge(ye)===he},me=function(ye){return ge(ye)===Te},me=function(ye){return ge(ye)===fe},Kt.isMemo=function(ye){return ge(ye)===ce},me=function(ye){return ge(ye)===x},me=function(ye){return ge(ye)===ie},me=function(ye){return ge(ye)===ve},me=function(ye){return ge(ye)===re},me=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===oe||ye===ie||ye===ve||ye===re||ye===se||typeof ye=="object"&&ye!==null&&(ye.$$typeof===fe||ye.$$typeof===ce||ye.$$typeof===te||ye.$$typeof===ae||ye.$$typeof===he||ye.$$typeof===le||ye.$$typeof===Se||ye.$$typeof===xe||ye.$$typeof===pe)},me=ge},18459:function(tn,Kt,me){"use strict";tn.exports=me(26819)},16651:function(tn,Kt){"use strict";var me;var Oe=Symbol.for("react.element"),Je=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),te=Symbol.for("react.context"),ae=Symbol.for("react.server_context"),ne=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),fe;fe=Symbol.for("react.module.reference");function pe(le){if(typeof le=="object"&&le!==null){var Se=le.$$typeof;switch(Se){case Oe:switch(le=le.type,le){case x:case ve:case Te:case oe:case he:return le;default:switch(le=le&&le.$$typeof,le){case ae:case te:case ne:case se:case re:case ie:return le;default:return Se}}case Je:return Se}}}me=te,me=ie,me=Oe,me=ne,me=x,me=se,me=re,me=Je,me=ve,me=Te,me=oe,me=he,me=function(){return!1},me=function(){return!1},me=function(le){return pe(le)===te},me=function(le){return pe(le)===ie},me=function(le){return typeof le=="object"&&le!==null&&le.$$typeof===Oe},me=function(le){return pe(le)===ne},me=function(le){return pe(le)===x},me=function(le){return pe(le)===se},me=function(le){return pe(le)===re},me=function(le){return pe(le)===Je},me=function(le){return pe(le)===ve},me=function(le){return pe(le)===Te},me=function(le){return pe(le)===oe},me=function(le){return pe(le)===he},me=function(le){return typeof le=="string"||typeof le=="function"||le===x||le===ve||le===Te||le===oe||le===he||le===ce||typeof le=="object"&&le!==null&&(le.$$typeof===se||le.$$typeof===re||le.$$typeof===ie||le.$$typeof===te||le.$$typeof===ne||le.$$typeof===fe||le.getModuleId!==void 0)},me=pe},33993:function(tn,Kt,me){"use strict";me(16651)},82523:function(tn,Kt){"use strict";var me;var Oe=Symbol.for("react.element"),Je=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),te=Symbol.for("react.context"),ae=Symbol.for("react.server_context"),ne=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),fe;fe=Symbol.for("react.module.reference");function pe(le){if(typeof le=="object"&&le!==null){var Se=le.$$typeof;switch(Se){case Oe:switch(le=le.type,le){case x:case ve:case Te:case oe:case he:return le;default:switch(le=le&&le.$$typeof,le){case ae:case te:case ne:case se:case re:case ie:return le;default:return Se}}case Je:return Se}}}me=te,me=ie,me=Oe,me=ne,me=x,me=se,me=re,me=Je,me=ve,me=Te,me=oe,me=he,me=function(){return!1},me=function(){return!1},me=function(le){return pe(le)===te},me=function(le){return pe(le)===ie},me=function(le){return typeof le=="object"&&le!==null&&le.$$typeof===Oe},me=function(le){return pe(le)===ne},me=function(le){return pe(le)===x},me=function(le){return pe(le)===se},me=function(le){return pe(le)===re},me=function(le){return pe(le)===Je},me=function(le){return pe(le)===ve},me=function(le){return pe(le)===Te},me=function(le){return pe(le)===oe},me=function(le){return pe(le)===he},me=function(le){return typeof le=="string"||typeof le=="function"||le===x||le===ve||le===Te||le===oe||le===he||le===ce||typeof le=="object"&&le!==null&&(le.$$typeof===se||le.$$typeof===re||le.$$typeof===ie||le.$$typeof===te||le.$$typeof===ne||le.$$typeof===fe||le.getModuleId!==void 0)},me=pe},27183:function(tn,Kt,me){"use strict";me(82523)},67656:function(tn,Kt,me){"use strict";me.r(Kt),me.d(Kt,{BaseInput:function(){return oe},default:function(){return xe}});var Oe=me(87462),Je=me(1413),x=me(4942),Te=me(71002),ve=me(94184),ie=me.n(ve),te=me(67294),ae=me(87887),ne=function(Me){var ye,be,Fe=Me.inputElement,ke=Me.prefixCls,De=Me.prefix,Le=Me.suffix,Ie=Me.addonBefore,Be=Me.addonAfter,Ue=Me.className,_e=Me.style,We=Me.disabled,Ze=Me.readOnly,et=Me.focused,it=Me.triggerFocus,pt=Me.allowClear,Ge=Me.value,Xe=Me.handleReset,lt=Me.hidden,dt=Me.classes,st=Me.classNames,nt=Me.dataAttrs,rt=Me.styles,at=Me.components,gt=(at==null?void 0:at.affixWrapper)||"span",vt=(at==null?void 0:at.groupWrapper)||"span",Et=(at==null?void 0:at.wrapper)||"span",At=(at==null?void 0:at.groupAddon)||"span",ut=(0,te.useRef)(null),Ye=function(Ot){var xt;(xt=ut.current)!==null&&xt!==void 0&&xt.contains(Ot.target)&&(it==null||it())},Ve=function(){var Ot;if(!pt)return null;var xt=!We&&!Ze&&Ge,Ut="".concat(ke,"-clear-icon"),xn=(0,Te.Z)(pt)==="object"&&pt!==null&&pt!==void 0&&pt.clearIcon?pt.clearIcon:"\u2716";return te.createElement("span",{onClick:Xe,onMouseDown:function(Qt){return Qt.preventDefault()},className:ie()(Ut,(Ot={},(0,x.Z)(Ot,"".concat(Ut,"-hidden"),!xt),(0,x.Z)(Ot,"".concat(Ut,"-has-suffix"),!!Le),Ot)),role:"button",tabIndex:-1},xn)},de=(0,te.cloneElement)(Fe,{value:Ge,hidden:lt,className:ie()((ye=Fe.props)===null||ye===void 0?void 0:ye.className,!(0,ae.X3)(Me)&&!(0,ae.He)(Me)&&Ue)||null,style:(0,Je.Z)((0,Je.Z)({},(be=Fe.props)===null||be===void 0?void 0:be.style),!(0,ae.X3)(Me)&&!(0,ae.He)(Me)?_e:{})});if((0,ae.X3)(Me)){var Ce,He="".concat(ke,"-affix-wrapper"),je=ie()(He,(Ce={},(0,x.Z)(Ce,"".concat(He,"-disabled"),We),(0,x.Z)(Ce,"".concat(He,"-focused"),et),(0,x.Z)(Ce,"".concat(He,"-readonly"),Ze),(0,x.Z)(Ce,"".concat(He,"-input-with-clear-btn"),Le&&pt&&Ge),Ce),!(0,ae.He)(Me)&&Ue,dt==null?void 0:dt.affixWrapper,st==null?void 0:st.affixWrapper),Ae=(Le||pt)&&te.createElement("span",{className:ie()("".concat(ke,"-suffix"),st==null?void 0:st.suffix),style:rt==null?void 0:rt.suffix},Ve(),Le);de=te.createElement(gt,(0,Oe.Z)({className:je,style:(0,Je.Z)((0,Je.Z)({},(0,ae.He)(Me)?void 0:_e),rt==null?void 0:rt.affixWrapper),hidden:!(0,ae.He)(Me)&<,onClick:Ye},nt==null?void 0:nt.affixWrapper,{ref:ut}),De&&te.createElement("span",{className:ie()("".concat(ke,"-prefix"),st==null?void 0:st.prefix),style:rt==null?void 0:rt.prefix},De),(0,te.cloneElement)(Fe,{value:Ge,hidden:null}),Ae)}if((0,ae.He)(Me)){var Ne="".concat(ke,"-group"),ze="".concat(Ne,"-addon"),Qe=ie()("".concat(ke,"-wrapper"),Ne,dt==null?void 0:dt.wrapper),ot=ie()("".concat(ke,"-group-wrapper"),Ue,dt==null?void 0:dt.group);return te.createElement(vt,{className:ot,style:_e,hidden:lt},te.createElement(Et,{className:Qe},Ie&&te.createElement(At,{className:ze},Ie),(0,te.cloneElement)(de,{hidden:null}),Be&&te.createElement(At,{className:ze},Be)))}return de},oe=ne,he=me(74902),re=me(97685),se=me(45987),ce=me(21770),fe=me(98423),pe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],le=(0,te.forwardRef)(function(ge,Me){var ye=ge.autoComplete,be=ge.onChange,Fe=ge.onFocus,ke=ge.onBlur,De=ge.onPressEnter,Le=ge.onKeyDown,Ie=ge.prefixCls,Be=Ie===void 0?"rc-input":Ie,Ue=ge.disabled,_e=ge.htmlSize,We=ge.className,Ze=ge.maxLength,et=ge.suffix,it=ge.showCount,pt=ge.type,Ge=pt===void 0?"text":pt,Xe=ge.classes,lt=ge.classNames,dt=ge.styles,st=(0,se.Z)(ge,pe),nt=(0,ce.Z)(ge.defaultValue,{value:ge.value}),rt=(0,re.Z)(nt,2),at=rt[0],gt=rt[1],vt=(0,te.useState)(!1),Et=(0,re.Z)(vt,2),At=Et[0],ut=Et[1],Ye=(0,te.useRef)(null),Ve=function(ot){Ye.current&&(0,ae.nH)(Ye.current,ot)};(0,te.useImperativeHandle)(Me,function(){return{focus:Ve,blur:function(){var ot;(ot=Ye.current)===null||ot===void 0||ot.blur()},setSelectionRange:function(ot,mt,Ot){var xt;(xt=Ye.current)===null||xt===void 0||xt.setSelectionRange(ot,mt,Ot)},select:function(){var ot;(ot=Ye.current)===null||ot===void 0||ot.select()},input:Ye.current}}),(0,te.useEffect)(function(){ut(function(Qe){return Qe&&Ue?!1:Qe})},[Ue]);var de=function(ot){ge.value===void 0&>(ot.target.value),Ye.current&&(0,ae.rJ)(Ye.current,ot,be)},Ce=function(ot){De&&ot.key==="Enter"&&De(ot),Le==null||Le(ot)},He=function(ot){ut(!0),Fe==null||Fe(ot)},je=function(ot){ut(!1),ke==null||ke(ot)},Ae=function(ot){gt(""),Ve(),Ye.current&&(0,ae.rJ)(Ye.current,ot,be)},Ne=function(){var ot=(0,fe.Z)(ge,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return te.createElement("input",(0,Oe.Z)({autoComplete:ye},ot,{onChange:de,onFocus:He,onBlur:je,onKeyDown:Ce,className:ie()(Be,(0,x.Z)({},"".concat(Be,"-disabled"),Ue),lt==null?void 0:lt.input),style:dt==null?void 0:dt.input,ref:Ye,size:_e,type:Ge}))},ze=function(){var ot=Number(Ze)>0;if(et||it){var mt=(0,ae.D7)(at),Ot=(0,he.Z)(mt).length,xt=(0,Te.Z)(it)==="object"?it.formatter({value:mt,count:Ot,maxLength:Ze}):"".concat(Ot).concat(ot?" / ".concat(Ze):"");return te.createElement(te.Fragment,null,!!it&&te.createElement("span",{className:ie()("".concat(Be,"-show-count-suffix"),(0,x.Z)({},"".concat(Be,"-show-count-has-suffix"),!!et),lt==null?void 0:lt.count),style:(0,Je.Z)({},dt==null?void 0:dt.count)},xt),et)}return null};return te.createElement(oe,(0,Oe.Z)({},st,{prefixCls:Be,className:We,inputElement:Ne(),handleReset:Ae,value:(0,ae.D7)(at),focused:At,triggerFocus:Ve,suffix:ze(),disabled:Ue,classes:Xe,classNames:lt,styles:dt}))}),Se=le,xe=Se},87887:function(tn,Kt,me){"use strict";me.d(Kt,{D7:function(){return ve},He:function(){return Oe},X3:function(){return Je},nH:function(){return Te},rJ:function(){return x}});function Oe(ie){return!!(ie.addonBefore||ie.addonAfter)}function Je(ie){return!!(ie.prefix||ie.suffix||ie.allowClear)}function x(ie,te,ae,ne){if(ae){var oe=te;if(te.type==="click"){var he=ie.cloneNode(!0);oe=Object.create(te,{target:{value:he},currentTarget:{value:he}}),he.value="",ae(oe);return}if(ne!==void 0){oe=Object.create(te,{target:{value:ie},currentTarget:{value:ie}}),ie.value=ne,ae(oe);return}ae(oe)}}function Te(ie,te){if(ie){ie.focus(te);var ae=te||{},ne=ae.cursor;if(ne){var oe=ie.value.length;switch(ne){case"start":ie.setSelectionRange(0,0);break;case"end":ie.setSelectionRange(oe,oe);break;default:ie.setSelectionRange(0,oe)}}}}function ve(ie){return typeof ie=="undefined"||ie===null?"":String(ie)}},78595:function(tn,Kt,me){"use strict";me.d(Kt,{iz:function(){return Ti},ck:function(){return Ur},BW:function(){return pi},sN:function(){return Ur},Wd:function(){return Fn},ZP:function(){return yt},Xl:function(){return xt}});var Oe=me(87462),Je=me(4942),x=me(1413),Te=me(74902),ve=me(97685),ie=me(45987),te=me(94184),ae=me.n(te),ne=me(67294),oe=me(48555);function he(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var re=he()?ne.useLayoutEffect:ne.useEffect,se=function(Dt,Tt){var Nt=ne.useRef(!0);re(function(){return Dt(Nt.current)},Tt),re(function(){return Nt.current=!1,function(){Nt.current=!0}},[])},ce=function(Dt,Tt){se(function(Nt){if(!Nt)return Dt()},Tt)},fe=se,pe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],le=void 0;function Se(St,Dt){var Tt=St.prefixCls,Nt=St.invalidate,_t=St.item,on=St.renderItem,gn=St.responsive,Vn=St.responsiveDisabled,qn=St.registerSize,Xn=St.itemKey,Dn=St.className,In=St.style,Cn=St.children,Zn=St.display,pr=St.order,$n=St.component,ar=$n===void 0?"div":$n,ur=(0,ie.Z)(St,pe),mr=gn&&!Zn;function wr(En){qn(Xn,En)}ne.useEffect(function(){return function(){wr(null)}},[]);var kt=on&&_t!==le?on(_t):Cn,It;Nt||(It={opacity:mr?0:1,height:mr?0:le,overflowY:mr?"hidden":le,order:gn?pr:le,pointerEvents:mr?"none":le,position:mr?"absolute":le});var qt={};mr&&(qt["aria-hidden"]=!0);var Yt=ne.createElement(ar,(0,Oe.Z)({className:ae()(!Nt&&Tt,Dn),style:(0,x.Z)((0,x.Z)({},It),In)},qt,ur,{ref:Dt}),kt);return gn&&(Yt=ne.createElement(oe.Z,{onResize:function(Hn){var Ht=Hn.offsetWidth;wr(Ht)},disabled:Vn},Yt)),Yt}var xe=ne.forwardRef(Se);xe.displayName="Item";var ge=xe;function Me(St){var Dt=ne.useRef();Dt.current=St;var Tt=ne.useCallback(function(){for(var Nt,_t=arguments.length,on=new Array(_t),gn=0;gn<_t;gn++)on[gn]=arguments[gn];return(Nt=Dt.current)===null||Nt===void 0?void 0:Nt.call.apply(Nt,[Dt].concat(on))},[]);return Tt}var ye=me(73935),be=function(Dt){return+setTimeout(Dt,16)},Fe=function(Dt){return clearTimeout(Dt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(be=function(Dt){return window.requestAnimationFrame(Dt)},Fe=function(Dt){return window.cancelAnimationFrame(Dt)});var ke=0,De=new Map;function Le(St){De.delete(St)}var Ie=function(Dt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ke+=1;var Nt=ke;function _t(on){if(on===0)Le(Nt),Dt();else{var gn=be(function(){_t(on-1)});De.set(Nt,gn)}}return _t(Tt),Nt};Ie.cancel=function(St){var Dt=De.get(St);return Le(Dt),Fe(Dt)};var Be=Ie;function Ue(St){if(typeof MessageChannel=="undefined")Be(St);else{var Dt=new MessageChannel;Dt.port1.onmessage=function(){return St()},Dt.port2.postMessage(void 0)}}function _e(){var St=ne.useRef(null),Dt=function(Nt){St.current||(St.current=[],Ue(function(){(0,ye.unstable_batchedUpdates)(function(){St.current.forEach(function(_t){_t()}),St.current=null})})),St.current.push(Nt)};return Dt}function We(St,Dt){var Tt=ne.useState(Dt),Nt=(0,ve.Z)(Tt,2),_t=Nt[0],on=Nt[1],gn=Me(function(Vn){St(function(){on(Vn)})});return[_t,gn]}var Ze=ne.createContext(null),et=["component"],it=["className"],pt=["className"],Ge=function(Dt,Tt){var Nt=ne.useContext(Ze);if(!Nt){var _t=Dt.component,on=_t===void 0?"div":_t,gn=(0,ie.Z)(Dt,et);return ne.createElement(on,(0,Oe.Z)({},gn,{ref:Tt}))}var Vn=Nt.className,qn=(0,ie.Z)(Nt,it),Xn=Dt.className,Dn=(0,ie.Z)(Dt,pt);return ne.createElement(Ze.Provider,{value:null},ne.createElement(ge,(0,Oe.Z)({ref:Tt,className:ae()(Vn,Xn)},qn,Dn)))},Xe=ne.forwardRef(Ge);Xe.displayName="RawItem";var lt=Xe,dt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],st="responsive",nt="invalidate";function rt(St){return"+ ".concat(St.length," ...")}function at(St,Dt){var Tt=St.prefixCls,Nt=Tt===void 0?"rc-overflow":Tt,_t=St.data,on=_t===void 0?[]:_t,gn=St.renderItem,Vn=St.renderRawItem,qn=St.itemKey,Xn=St.itemWidth,Dn=Xn===void 0?10:Xn,In=St.ssr,Cn=St.style,Zn=St.className,pr=St.maxCount,$n=St.renderRest,ar=St.renderRawRest,ur=St.suffix,mr=St.component,wr=mr===void 0?"div":mr,kt=St.itemComponent,It=St.onVisibleChange,qt=(0,ie.Z)(St,dt),Yt=In==="full",En=_e(),Hn=We(En,null),Ht=(0,ve.Z)(Hn,2),Vt=Ht[0],Gt=Ht[1],en=Vt||0,Ln=We(En,new Map),Qn=(0,ve.Z)(Ln,2),On=Qn[0],Kn=Qn[1],vr=We(En,0),Br=(0,ve.Z)(vr,2),Cr=Br[0],sr=Br[1],Mr=We(En,0),Nr=(0,ve.Z)(Mr,2),Yr=Nr[0],Rr=Nr[1],xr=We(En,0),ii=(0,ve.Z)(xr,2),ri=ii[0],Fi=ii[1],Ui=(0,ne.useState)(null),aa=(0,ve.Z)(Ui,2),ji=aa[0],zi=aa[1],Mi=(0,ne.useState)(null),ca=(0,ve.Z)(Mi,2),Li=ca[0],li=ca[1],Vi=ne.useMemo(function(){return Li===null&&Yt?Number.MAX_SAFE_INTEGER:Li||0},[Li,Vt]),Sa=(0,ne.useState)(!1),Ci=(0,ve.Z)(Sa,2),Xa=Ci[0],qa=Ci[1],Ja="".concat(Nt,"-item"),Ra=Math.max(Cr,Yr),ua=pr===st,bo=on.length&&ua,Da=pr===nt,Ki=bo||typeof pr=="number"&&on.length>pr,ja=(0,ne.useMemo)(function(){var La=on;return bo?Vt===null&&Yt?La=on:La=on.slice(0,Math.min(on.length,en/Dn)):typeof pr=="number"&&(La=on.slice(0,pr)),La},[on,Dn,Vt,pr,bo]),lo=(0,ne.useMemo)(function(){return bo?on.slice(Vi+1):on.slice(ja.length)},[on,ja,bo,Vi]),Ka=(0,ne.useCallback)(function(La,za){var uo;return typeof qn=="function"?qn(La):(uo=qn&&(La==null?void 0:La[qn]))!==null&&uo!==void 0?uo:za},[qn]),io=(0,ne.useCallback)(gn||function(La){return La},[gn]);function pa(La,za,uo){Li===La&&(za===void 0||za===ji)||(li(La),uo||(qa(La<on.length-1),It==null||It(La)),za!==void 0&&zi(za))}function po(La,za){Gt(za.clientWidth)}function mo(La,za){Kn(function(uo){var xo=new Map(uo);return za===null?xo.delete(La):xo.set(La,za),xo})}function fo(La,za){Rr(za),sr(Yr)}function vo(La,za){Fi(za)}function Mo(La){return On.get(Ka(ja[La],La))}fe(function(){if(en&&typeof Ra=="number"&&ja){var La=ri,za=ja.length,uo=za-1;if(!za){pa(0,null);return}for(var xo=0;xo<za;xo+=1){var Fo=Mo(xo);if(Yt&&(Fo=Fo||0),Fo===void 0){pa(xo-1,void 0,!0);break}if(La+=Fo,uo===0&&La<=en||xo===uo-1&&La+Mo(uo)<=en){pa(uo,null);break}else if(La+Ra>en){pa(xo-1,La-Fo-ri+Yr);break}}ur&&Mo(0)+ri>en&&zi(null)}},[en,On,Yr,ri,Ka,ja]);var Ho=Xa&&!!lo.length,ho={};ji!==null&&bo&&(ho={position:"absolute",left:ji,top:0});var ko={prefixCls:Ja,responsive:bo,component:kt,invalidate:Da},$o=Vn?function(La,za){var uo=Ka(La,za);return ne.createElement(Ze.Provider,{key:uo,value:(0,x.Z)((0,x.Z)({},ko),{},{order:za,item:La,itemKey:uo,registerSize:mo,display:za<=Vi})},Vn(La,za))}:function(La,za){var uo=Ka(La,za);return ne.createElement(ge,(0,Oe.Z)({},ko,{order:za,key:uo,item:La,renderItem:io,itemKey:uo,registerSize:mo,display:za<=Vi}))},Yo,as={order:Ho?Vi:Number.MAX_SAFE_INTEGER,className:"".concat(Ja,"-rest"),registerSize:fo,display:Ho};if(ar)ar&&(Yo=ne.createElement(Ze.Provider,{value:(0,x.Z)((0,x.Z)({},ko),as)},ar(lo)));else{var Bo=$n||rt;Yo=ne.createElement(ge,(0,Oe.Z)({},ko,as),typeof Bo=="function"?Bo(lo):Bo)}var wo=ne.createElement(wr,(0,Oe.Z)({className:ae()(!Da&&Nt,Zn),style:Cn,ref:Dt},qt),ja.map($o),Ki?Yo:null,ur&&ne.createElement(ge,(0,Oe.Z)({},ko,{responsive:ua,responsiveDisabled:!bo,order:Vi,className:"".concat(Ja,"-suffix"),registerSize:vo,display:!0,style:ho}),ur));return ua&&(wo=ne.createElement(oe.Z,{onResize:po,disabled:!bo},wo)),wo}var gt=ne.forwardRef(at);gt.displayName="Overflow",gt.Item=lt,gt.RESPONSIVE=st,gt.INVALIDATE=nt;var vt=gt,Et=vt,At=me(21770),ut=me(80334),Ye=me(91881),Ve=ne.createContext(null);function de(St,Dt){return St===void 0?null:"".concat(St,"-").concat(Dt)}function Ce(St){var Dt=ne.useContext(Ve);return de(Dt,St)}var He=me(56982),je=["children","locked"],Ae=ne.createContext(null);function Ne(St,Dt){var Tt=(0,x.Z)({},St);return Object.keys(Dt).forEach(function(Nt){var _t=Dt[Nt];_t!==void 0&&(Tt[Nt]=_t)}),Tt}function ze(St){var Dt=St.children,Tt=St.locked,Nt=(0,ie.Z)(St,je),_t=ne.useContext(Ae),on=(0,He.Z)(function(){return Ne(_t,Nt)},[_t,Nt],function(gn,Vn){return!Tt&&(gn[0]!==Vn[0]||!(0,Ye.Z)(gn[1],Vn[1],!0))});return ne.createElement(Ae.Provider,{value:on},Dt)}var Qe=[],ot=ne.createContext(null);function mt(){return ne.useContext(ot)}var Ot=ne.createContext(Qe);function xt(St){var Dt=ne.useContext(Ot);return ne.useMemo(function(){return St!==void 0?[].concat((0,Te.Z)(Dt),[St]):Dt},[Dt,St])}var Ut=ne.createContext(null),xn=ne.createContext({}),Ft=xn,Qt=me(15105),Zt=me(75164),bn=function(St){if(!St)return!1;if(St instanceof Element){if(St.offsetParent)return!0;if(St.getBBox){var Dt=St.getBBox(),Tt=Dt.width,Nt=Dt.height;if(Tt||Nt)return!0}if(St.getBoundingClientRect){var _t=St.getBoundingClientRect(),on=_t.width,gn=_t.height;if(on||gn)return!0}}return!1};function Pt(St){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(bn(St)){var Tt=St.nodeName.toLowerCase(),Nt=["input","select","textarea","button"].includes(Tt)||St.isContentEditable||Tt==="a"&&!!St.getAttribute("href"),_t=St.getAttribute("tabindex"),on=Number(_t),gn=null;return _t&&!Number.isNaN(on)?gn=on:Nt&&gn===null&&(gn=0),Nt&&St.disabled&&(gn=null),gn!==null&&(gn>=0||Dt&&gn<0)}return!1}function zt(St){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt=(0,Te.Z)(St.querySelectorAll("*")).filter(function(Nt){return Pt(Nt,Dt)});return Pt(St,Dt)&&Tt.unshift(St),Tt}var sn=null;function yn(){sn=document.activeElement}function kn(){sn=null}function Gn(){if(sn)try{sn.focus()}catch(St){}}function dr(St,Dt){if(Dt.keyCode===9){var Tt=zt(St),Nt=Tt[Dt.shiftKey?0:Tt.length-1],_t=Nt===document.activeElement||St===document.activeElement;if(_t){var on=Tt[Dt.shiftKey?Tt.length-1:0];on.focus(),Dt.preventDefault()}}}var Or=Qt.Z.LEFT,zr=Qt.Z.RIGHT,Hr=Qt.Z.UP,Dr=Qt.Z.DOWN,Kr=Qt.Z.ENTER,Ai=Qt.Z.ESC,Di=Qt.Z.HOME,Zi=Qt.Z.END,di=[Hr,Dr,Or,zr];function rn(St,Dt,Tt,Nt){var _t,on,gn,Vn,qn="prev",Xn="next",Dn="children",In="parent";if(St==="inline"&&Nt===Kr)return{inlineTrigger:!0};var Cn=(_t={},(0,Je.Z)(_t,Hr,qn),(0,Je.Z)(_t,Dr,Xn),_t),Zn=(on={},(0,Je.Z)(on,Or,Tt?Xn:qn),(0,Je.Z)(on,zr,Tt?qn:Xn),(0,Je.Z)(on,Dr,Dn),(0,Je.Z)(on,Kr,Dn),on),pr=(gn={},(0,Je.Z)(gn,Hr,qn),(0,Je.Z)(gn,Dr,Xn),(0,Je.Z)(gn,Kr,Dn),(0,Je.Z)(gn,Ai,In),(0,Je.Z)(gn,Or,Tt?Dn:In),(0,Je.Z)(gn,zr,Tt?In:Dn),gn),$n={inline:Cn,horizontal:Zn,vertical:pr,inlineSub:Cn,horizontalSub:pr,verticalSub:pr},ar=(Vn=$n["".concat(St).concat(Dt?"":"Sub")])===null||Vn===void 0?void 0:Vn[Nt];switch(ar){case qn:return{offset:-1,sibling:!0};case Xn:return{offset:1,sibling:!0};case In:return{offset:-1,sibling:!1};case Dn:return{offset:1,sibling:!1};default:return null}}function zn(St){for(var Dt=St;Dt;){if(Dt.getAttribute("data-menu-list"))return Dt;Dt=Dt.parentElement}return null}function fr(St,Dt){for(var Tt=St||document.activeElement;Tt;){if(Dt.has(Tt))return Tt;Tt=Tt.parentElement}return null}function lr(St,Dt){var Tt=zt(St,!0);return Tt.filter(function(Nt){return Dt.has(Nt)})}function Tr(St,Dt,Tt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!St)return null;var _t=lr(St,Dt),on=_t.length,gn=_t.findIndex(function(Vn){return Tt===Vn});return Nt<0?gn===-1?gn=on-1:gn-=1:Nt>0&&(gn+=1),gn=(gn+on)%on,_t[gn]}function Pr(St,Dt,Tt,Nt,_t,on,gn,Vn,qn,Xn){var Dn=ne.useRef(),In=ne.useRef();In.current=Dt;var Cn=function(){Zt.Z.cancel(Dn.current)};return ne.useEffect(function(){return function(){Cn()}},[]),function(Zn){var pr=Zn.which;if([].concat(di,[Kr,Ai,Di,Zi]).includes(pr)){var $n,ar,ur,mr=function(){$n=new Set,ar=new Map,ur=new Map;var Qn=on();return Qn.forEach(function(On){var Kn=document.querySelector("[data-menu-id='".concat(de(Nt,On),"']"));Kn&&($n.add(Kn),ur.set(Kn,On),ar.set(On,Kn))}),$n};mr();var wr=ar.get(Dt),kt=fr(wr,$n),It=ur.get(kt),qt=rn(St,gn(It,!0).length===1,Tt,pr);if(!qt&&pr!==Di&&pr!==Zi)return;(di.includes(pr)||[Di,Zi].includes(pr))&&Zn.preventDefault();var Yt=function(Qn){if(Qn){var On=Qn,Kn=Qn.querySelector("a");Kn!=null&&Kn.getAttribute("href")&&(On=Kn);var vr=ur.get(Qn);Vn(vr),Cn(),Dn.current=(0,Zt.Z)(function(){In.current===vr&&On.focus()})}};if([Di,Zi].includes(pr)||qt.sibling||!kt){var En;!kt||St==="inline"?En=_t.current:En=zn(kt);var Hn,Ht=lr(En,$n);pr===Di?Hn=Ht[0]:pr===Zi?Hn=Ht[Ht.length-1]:Hn=Tr(En,$n,kt,qt.offset),Yt(Hn)}else if(qt.inlineTrigger)qn(It);else if(qt.offset>0)qn(It,!0),Cn(),Dn.current=(0,Zt.Z)(function(){mr();var Ln=kt.getAttribute("aria-controls"),Qn=document.getElementById(Ln),On=Tr(Qn,$n);Yt(On)},5);else if(qt.offset<0){var Vt=gn(It,!0),Gt=Vt[Vt.length-2],en=ar.get(Gt);qn(Gt,!1),Yt(en)}}Xn==null||Xn(Zn)}}function Gr(St){Promise.resolve().then(St)}var Er="__RC_UTIL_PATH_SPLIT__",Wt=function(Dt){return Dt.join(Er)},$t=function(Dt){return Dt.split(Er)},cn="rc-menu-more";function Rn(){var St=ne.useState({}),Dt=(0,ve.Z)(St,2),Tt=Dt[1],Nt=(0,ne.useRef)(new Map),_t=(0,ne.useRef)(new Map),on=ne.useState([]),gn=(0,ve.Z)(on,2),Vn=gn[0],qn=gn[1],Xn=(0,ne.useRef)(0),Dn=(0,ne.useRef)(!1),In=function(){Dn.current||Tt({})},Cn=(0,ne.useCallback)(function(wr,kt){var It=Wt(kt);_t.current.set(It,wr),Nt.current.set(wr,It),Xn.current+=1;var qt=Xn.current;Gr(function(){qt===Xn.current&&In()})},[]),Zn=(0,ne.useCallback)(function(wr,kt){var It=Wt(kt);_t.current.delete(It),Nt.current.delete(wr)},[]),pr=(0,ne.useCallback)(function(wr){qn(wr)},[]),$n=(0,ne.useCallback)(function(wr,kt){var It=Nt.current.get(wr)||"",qt=$t(It);return kt&&Vn.includes(qt[0])&&qt.unshift(cn),qt},[Vn]),ar=(0,ne.useCallback)(function(wr,kt){return wr.some(function(It){var qt=$n(It,!0);return qt.includes(kt)})},[$n]),ur=function(){var kt=(0,Te.Z)(Nt.current.keys());return Vn.length&&kt.push(cn),kt},mr=(0,ne.useCallback)(function(wr){var kt="".concat(Nt.current.get(wr)).concat(Er),It=new Set;return(0,Te.Z)(_t.current.keys()).forEach(function(qt){qt.startsWith(kt)&&It.add(_t.current.get(qt))}),It},[]);return ne.useEffect(function(){return function(){Dn.current=!0}},[]),{registerPath:Cn,unregisterPath:Zn,refreshOverflowKeys:pr,isSubPathKey:ar,getKeyPath:$n,getKeys:ur,getSubPathKeys:mr}}function jt(St){var Dt=ne.useRef(St);Dt.current=St;var Tt=ne.useCallback(function(){for(var Nt,_t=arguments.length,on=new Array(_t),gn=0;gn<_t;gn++)on[gn]=arguments[gn];return(Nt=Dt.current)===null||Nt===void 0?void 0:Nt.call.apply(Nt,[Dt].concat(on))},[]);return St?Tt:void 0}var an=Math.random().toFixed(5).toString().slice(2),Tn=0;function vn(St){var Dt=(0,At.Z)(St,{value:St}),Tt=(0,ve.Z)(Dt,2),Nt=Tt[0],_t=Tt[1];return ne.useEffect(function(){Tn+=1;var on="".concat(an,"-").concat(Tn);_t("rc-menu-uuid-".concat(on))},[]),Nt}var Bn=me(15671),_n=me(43144),hr=me(60136),ei=me(51630),Ir=me(98423),Lr=me(42550);function Wr(St,Dt,Tt,Nt){var _t=ne.useContext(Ae),on=_t.activeKey,gn=_t.onActive,Vn=_t.onInactive,qn={active:on===St};return Dt||(qn.onMouseEnter=function(Xn){Tt==null||Tt({key:St,domEvent:Xn}),gn(St)},qn.onMouseLeave=function(Xn){Nt==null||Nt({key:St,domEvent:Xn}),Vn(St)}),qn}function Vr(St){var Dt=ne.useContext(Ae),Tt=Dt.mode,Nt=Dt.rtl,_t=Dt.inlineIndent;if(Tt!=="inline")return null;var on=St;return Nt?{paddingRight:on*_t}:{paddingLeft:on*_t}}function nn(St){var Dt=St.icon,Tt=St.props,Nt=St.children,_t;return Dt===null||Dt===!1?null:(typeof Dt=="function"?_t=ne.createElement(Dt,(0,x.Z)({},Tt)):typeof Dt!="boolean"&&(_t=Dt),_t||Nt||null)}var Jt=["item"];function pn(St){var Dt=St.item,Tt=(0,ie.Z)(St,Jt);return Object.defineProperty(Tt,"item",{get:function(){return(0,ut.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Dt}}),Tt}var tr=["title","attribute","elementRef"],Ar=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],jn=["active"],Jn=function(St){(0,hr.Z)(Tt,St);var Dt=(0,ei.Z)(Tt);function Tt(){return(0,Bn.Z)(this,Tt),Dt.apply(this,arguments)}return(0,_n.Z)(Tt,[{key:"render",value:function(){var _t=this.props,on=_t.title,gn=_t.attribute,Vn=_t.elementRef,qn=(0,ie.Z)(_t,tr),Xn=(0,Ir.Z)(qn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,ut.ZP)(!gn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),ne.createElement(Et.Item,(0,Oe.Z)({},gn,{title:typeof on=="string"?on:void 0},Xn,{ref:Vn}))}}]),Tt}(ne.Component),ir=ne.forwardRef(function(St,Dt){var Tt,Nt=St.style,_t=St.className,on=St.eventKey,gn=St.warnKey,Vn=St.disabled,qn=St.itemIcon,Xn=St.children,Dn=St.role,In=St.onMouseEnter,Cn=St.onMouseLeave,Zn=St.onClick,pr=St.onKeyDown,$n=St.onFocus,ar=(0,ie.Z)(St,Ar),ur=Ce(on),mr=ne.useContext(Ae),wr=mr.prefixCls,kt=mr.onItemClick,It=mr.disabled,qt=mr.overflowDisabled,Yt=mr.itemIcon,En=mr.selectedKeys,Hn=mr.onActive,Ht=ne.useContext(Ft),Vt=Ht._internalRenderMenuItem,Gt="".concat(wr,"-item"),en=ne.useRef(),Ln=ne.useRef(),Qn=It||Vn,On=(0,Lr.x1)(Dt,Ln),Kn=xt(on),vr=function(aa){return{key:on,keyPath:(0,Te.Z)(Kn).reverse(),item:en.current,domEvent:aa}},Br=qn||Yt,Cr=Wr(on,Qn,In,Cn),sr=Cr.active,Mr=(0,ie.Z)(Cr,jn),Nr=En.includes(on),Yr=Vr(Kn.length),Rr=function(aa){if(!Qn){var ji=vr(aa);Zn==null||Zn(pn(ji)),kt(ji)}},xr=function(aa){if(pr==null||pr(aa),aa.which===Qt.Z.ENTER){var ji=vr(aa);Zn==null||Zn(pn(ji)),kt(ji)}},ii=function(aa){Hn(on),$n==null||$n(aa)},ri={};St.role==="option"&&(ri["aria-selected"]=Nr);var Fi=ne.createElement(Jn,(0,Oe.Z)({ref:en,elementRef:On,role:Dn===null?"none":Dn||"menuitem",tabIndex:Vn?null:-1,"data-menu-id":qt&&ur?null:ur},ar,Mr,ri,{component:"li","aria-disabled":Vn,style:(0,x.Z)((0,x.Z)({},Yr),Nt),className:ae()(Gt,(Tt={},(0,Je.Z)(Tt,"".concat(Gt,"-active"),sr),(0,Je.Z)(Tt,"".concat(Gt,"-selected"),Nr),(0,Je.Z)(Tt,"".concat(Gt,"-disabled"),Qn),Tt),_t),onClick:Rr,onKeyDown:xr,onFocus:ii}),Xn,ne.createElement(nn,{props:(0,x.Z)((0,x.Z)({},St),{},{isSelected:Nr}),icon:Br}));return Vt&&(Fi=Vt(Fi,St,{selected:Nr})),Fi});function kr(St,Dt){var Tt=St.eventKey,Nt=mt(),_t=xt(Tt);return ne.useEffect(function(){if(Nt)return Nt.registerPath(Tt,_t),function(){Nt.unregisterPath(Tt,_t)}},[_t]),Nt?null:ne.createElement(ir,(0,Oe.Z)({},St,{ref:Dt}))}var Ur=ne.forwardRef(kr),Wn=["className","children"],Oi=function(Dt,Tt){var Nt=Dt.className,_t=Dt.children,on=(0,ie.Z)(Dt,Wn),gn=ne.useContext(Ae),Vn=gn.prefixCls,qn=gn.mode,Xn=gn.rtl;return ne.createElement("ul",(0,Oe.Z)({className:ae()(Vn,Xn&&"".concat(Vn,"-rtl"),"".concat(Vn,"-sub"),"".concat(Vn,"-").concat(qn==="inline"?"inline":"vertical"),Nt),role:"menu"},on,{"data-menu-list":!0,ref:Tt}),_t)},bi=ne.forwardRef(Oi);bi.displayName="SubMenuList";var xa=bi,ha=me(50344);function ia(St,Dt){return(0,ha.Z)(St).map(function(Tt,Nt){if(ne.isValidElement(Tt)){var _t,on,gn=Tt.key,Vn=(_t=(on=Tt.props)===null||on===void 0?void 0:on.eventKey)!==null&&_t!==void 0?_t:gn,qn=Vn==null;qn&&(Vn="tmp_key-".concat([].concat((0,Te.Z)(Dt),[Nt]).join("-")));var Xn={key:Vn,eventKey:Vn};return ne.cloneElement(Tt,Xn)}return Tt})}var Ha=me(62709),Ji={adjustX:1,adjustY:1},Wi={topLeft:{points:["bl","tl"],overflow:Ji},topRight:{points:["br","tr"],overflow:Ji},bottomLeft:{points:["tl","bl"],overflow:Ji},bottomRight:{points:["tr","br"],overflow:Ji},leftTop:{points:["tr","tl"],overflow:Ji},leftBottom:{points:["br","bl"],overflow:Ji},rightTop:{points:["tl","tr"],overflow:Ji},rightBottom:{points:["bl","br"],overflow:Ji}},wa={topLeft:{points:["bl","tl"],overflow:Ji},topRight:{points:["br","tr"],overflow:Ji},bottomLeft:{points:["tl","bl"],overflow:Ji},bottomRight:{points:["tr","br"],overflow:Ji},rightTop:{points:["tr","tl"],overflow:Ji},rightBottom:{points:["br","bl"],overflow:Ji},leftTop:{points:["tl","tr"],overflow:Ji},leftBottom:{points:["bl","br"],overflow:Ji}},Fa=null;function Ii(St,Dt,Tt){if(Dt)return Dt;if(Tt)return Tt[St]||Tt.other}var la={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Oa(St){var Dt=St.prefixCls,Tt=St.visible,Nt=St.children,_t=St.popup,on=St.popupStyle,gn=St.popupClassName,Vn=St.popupOffset,qn=St.disabled,Xn=St.mode,Dn=St.onVisibleChange,In=ne.useContext(Ae),Cn=In.getPopupContainer,Zn=In.rtl,pr=In.subMenuOpenDelay,$n=In.subMenuCloseDelay,ar=In.builtinPlacements,ur=In.triggerSubMenuAction,mr=In.forceSubMenuRender,wr=In.rootClassName,kt=In.motion,It=In.defaultMotions,qt=ne.useState(!1),Yt=(0,ve.Z)(qt,2),En=Yt[0],Hn=Yt[1],Ht=Zn?(0,x.Z)((0,x.Z)({},wa),ar):(0,x.Z)((0,x.Z)({},Wi),ar),Vt=la[Xn],Gt=Ii(Xn,kt,It),en=ne.useRef(Gt);Xn!=="inline"&&(en.current=Gt);var Ln=(0,x.Z)((0,x.Z)({},en.current),{},{leavedClassName:"".concat(Dt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qn=ne.useRef();return ne.useEffect(function(){return Qn.current=(0,Zt.Z)(function(){Hn(Tt)}),function(){Zt.Z.cancel(Qn.current)}},[Tt]),ne.createElement(Ha.Z,{prefixCls:Dt,popupClassName:ae()("".concat(Dt,"-popup"),(0,Je.Z)({},"".concat(Dt,"-rtl"),Zn),gn,wr),stretch:Xn==="horizontal"?"minWidth":null,getPopupContainer:Cn,builtinPlacements:Ht,popupPlacement:Vt,popupVisible:En,popup:_t,popupStyle:on,popupAlign:Vn&&{offset:Vn},action:qn?[]:[ur],mouseEnterDelay:pr,mouseLeaveDelay:$n,onPopupVisibleChange:Dn,forceRender:mr,popupMotion:Ln,fresh:!0},Nt)}var ao=me(62874);function Qa(St){var Dt=St.id,Tt=St.open,Nt=St.keyPath,_t=St.children,on="inline",gn=ne.useContext(Ae),Vn=gn.prefixCls,qn=gn.forceSubMenuRender,Xn=gn.motion,Dn=gn.defaultMotions,In=gn.mode,Cn=ne.useRef(!1);Cn.current=In===on;var Zn=ne.useState(!Cn.current),pr=(0,ve.Z)(Zn,2),$n=pr[0],ar=pr[1],ur=Cn.current?Tt:!1;ne.useEffect(function(){Cn.current&&ar(!1)},[In]);var mr=(0,x.Z)({},Ii(on,Xn,Dn));Nt.length>1&&(mr.motionAppear=!1);var wr=mr.onVisibleChanged;return mr.onVisibleChanged=function(kt){return!Cn.current&&!kt&&ar(!0),wr==null?void 0:wr(kt)},$n?null:ne.createElement(ze,{mode:on,locked:!Cn.current},ne.createElement(ao.Z,(0,Oe.Z)({visible:ur},mr,{forceRender:qn,removeOnLeave:!1,leavedClassName:"".concat(Vn,"-hidden")}),function(kt){var It=kt.className,qt=kt.style;return ne.createElement(xa,{id:Dt,className:It,style:qt},_t)}))}var Ni=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],mn=["active"],ln=function(Dt){var Tt,Nt=Dt.style,_t=Dt.className,on=Dt.title,gn=Dt.eventKey,Vn=Dt.warnKey,qn=Dt.disabled,Xn=Dt.internalPopupClose,Dn=Dt.children,In=Dt.itemIcon,Cn=Dt.expandIcon,Zn=Dt.popupClassName,pr=Dt.popupOffset,$n=Dt.popupStyle,ar=Dt.onClick,ur=Dt.onMouseEnter,mr=Dt.onMouseLeave,wr=Dt.onTitleClick,kt=Dt.onTitleMouseEnter,It=Dt.onTitleMouseLeave,qt=(0,ie.Z)(Dt,Ni),Yt=Ce(gn),En=ne.useContext(Ae),Hn=En.prefixCls,Ht=En.mode,Vt=En.openKeys,Gt=En.disabled,en=En.overflowDisabled,Ln=En.activeKey,Qn=En.selectedKeys,On=En.itemIcon,Kn=En.expandIcon,vr=En.onItemClick,Br=En.onOpenChange,Cr=En.onActive,sr=ne.useContext(Ft),Mr=sr._internalRenderSubMenuItem,Nr=ne.useContext(Ut),Yr=Nr.isSubPathKey,Rr=xt(),xr="".concat(Hn,"-submenu"),ii=Gt||qn,ri=ne.useRef(),Fi=ne.useRef(),Ui=In!=null?In:On,aa=Cn!=null?Cn:Kn,ji=Vt.includes(gn),zi=!en&&ji,Mi=Yr(Qn,gn),ca=Wr(gn,ii,kt,It),Li=ca.active,li=(0,ie.Z)(ca,mn),Vi=ne.useState(!1),Sa=(0,ve.Z)(Vi,2),Ci=Sa[0],Xa=Sa[1],qa=function(vo){ii||Xa(vo)},Ja=function(vo){qa(!0),ur==null||ur({key:gn,domEvent:vo})},Ra=function(vo){qa(!1),mr==null||mr({key:gn,domEvent:vo})},ua=ne.useMemo(function(){return Li||(Ht!=="inline"?Ci||Yr([Ln],gn):!1)},[Ht,Li,Ln,Ci,gn,Yr]),bo=Vr(Rr.length),Da=function(vo){ii||(wr==null||wr({key:gn,domEvent:vo}),Ht==="inline"&&Br(gn,!ji))},Ki=jt(function(fo){ar==null||ar(pn(fo)),vr(fo)}),ja=function(vo){Ht!=="inline"&&Br(gn,vo)},lo=function(){Cr(gn)},Ka=Yt&&"".concat(Yt,"-popup"),io=ne.createElement("div",(0,Oe.Z)({role:"menuitem",style:bo,className:"".concat(xr,"-title"),tabIndex:ii?null:-1,ref:ri,title:typeof on=="string"?on:null,"data-menu-id":en&&Yt?null:Yt,"aria-expanded":zi,"aria-haspopup":!0,"aria-controls":Ka,"aria-disabled":ii,onClick:Da,onFocus:lo},li),on,ne.createElement(nn,{icon:Ht!=="horizontal"?aa:void 0,props:(0,x.Z)((0,x.Z)({},Dt),{},{isOpen:zi,isSubMenu:!0})},ne.createElement("i",{className:"".concat(xr,"-arrow")}))),pa=ne.useRef(Ht);if(Ht!=="inline"&&Rr.length>1?pa.current="vertical":pa.current=Ht,!en){var po=pa.current;io=ne.createElement(Oa,{mode:po,prefixCls:xr,visible:!Xn&&zi&&Ht!=="inline",popupClassName:Zn,popupOffset:pr,popupStyle:$n,popup:ne.createElement(ze,{mode:po==="horizontal"?"vertical":po},ne.createElement(xa,{id:Ka,ref:Fi},Dn)),disabled:ii,onVisibleChange:ja},io)}var mo=ne.createElement(Et.Item,(0,Oe.Z)({role:"none"},qt,{component:"li",style:Nt,className:ae()(xr,"".concat(xr,"-").concat(Ht),_t,(Tt={},(0,Je.Z)(Tt,"".concat(xr,"-open"),zi),(0,Je.Z)(Tt,"".concat(xr,"-active"),ua),(0,Je.Z)(Tt,"".concat(xr,"-selected"),Mi),(0,Je.Z)(Tt,"".concat(xr,"-disabled"),ii),Tt)),onMouseEnter:Ja,onMouseLeave:Ra}),io,!en&&ne.createElement(Qa,{id:Ka,open:zi,keyPath:Rr},Dn));return Mr&&(mo=Mr(mo,Dt,{selected:Mi,active:ua,open:zi,disabled:ii})),ne.createElement(ze,{onItemClick:Ki,mode:Ht==="horizontal"?"vertical":Ht,itemIcon:Ui,expandIcon:aa},mo)};function Fn(St){var Dt=St.eventKey,Tt=St.children,Nt=xt(Dt),_t=ia(Tt,Nt),on=mt();ne.useEffect(function(){if(on)return on.registerPath(Dt,Nt),function(){on.unregisterPath(Dt,Nt)}},[Nt]);var gn;return on?gn=_t:gn=ne.createElement(ln,St,_t),ne.createElement(Ot.Provider,{value:Nt},gn)}var or=me(71002),br=["className","title","eventKey","children"],Xr=["children"],oi=function(Dt){var Tt=Dt.className,Nt=Dt.title,_t=Dt.eventKey,on=Dt.children,gn=(0,ie.Z)(Dt,br),Vn=ne.useContext(Ae),qn=Vn.prefixCls,Xn="".concat(qn,"-item-group");return ne.createElement("li",(0,Oe.Z)({role:"presentation"},gn,{onClick:function(In){return In.stopPropagation()},className:ae()(Xn,Tt)}),ne.createElement("div",{role:"presentation",className:"".concat(Xn,"-title"),title:typeof Nt=="string"?Nt:void 0},Nt),ne.createElement("ul",{role:"group",className:"".concat(Xn,"-list")},on))};function pi(St){var Dt=St.children,Tt=(0,ie.Z)(St,Xr),Nt=xt(Tt.eventKey),_t=ia(Dt,Nt),on=mt();return on?_t:ne.createElement(oi,(0,Ir.Z)(Tt,["warnKey"]),_t)}function Ti(St){var Dt=St.className,Tt=St.style,Nt=ne.useContext(Ae),_t=Nt.prefixCls,on=mt();return on?null:ne.createElement("li",{role:"separator",className:ae()("".concat(_t,"-item-divider"),Dt),style:Tt})}var vi=["label","children","key","type"];function Ri(St){return(St||[]).map(function(Dt,Tt){if(Dt&&(0,or.Z)(Dt)==="object"){var Nt=Dt,_t=Nt.label,on=Nt.children,gn=Nt.key,Vn=Nt.type,qn=(0,ie.Z)(Nt,vi),Xn=gn!=null?gn:"tmp-".concat(Tt);return on||Vn==="group"?Vn==="group"?ne.createElement(pi,(0,Oe.Z)({key:Xn},qn,{title:_t}),Ri(on)):ne.createElement(Fn,(0,Oe.Z)({key:Xn},qn,{title:_t}),Ri(on)):Vn==="divider"?ne.createElement(Ti,(0,Oe.Z)({key:Xn},qn)):ne.createElement(Ur,(0,Oe.Z)({key:Xn},qn),_t)}return null}).filter(function(Dt){return Dt})}function $i(St,Dt,Tt){var Nt=St;return Dt&&(Nt=Ri(Dt)),ia(Nt,Tt)}var ni=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Sn=[],Pn=ne.forwardRef(function(St,Dt){var Tt,Nt,_t=St,on=_t.prefixCls,gn=on===void 0?"rc-menu":on,Vn=_t.rootClassName,qn=_t.style,Xn=_t.className,Dn=_t.tabIndex,In=Dn===void 0?0:Dn,Cn=_t.items,Zn=_t.children,pr=_t.direction,$n=_t.id,ar=_t.mode,ur=ar===void 0?"vertical":ar,mr=_t.inlineCollapsed,wr=_t.disabled,kt=_t.disabledOverflow,It=_t.subMenuOpenDelay,qt=It===void 0?.1:It,Yt=_t.subMenuCloseDelay,En=Yt===void 0?.1:Yt,Hn=_t.forceSubMenuRender,Ht=_t.defaultOpenKeys,Vt=_t.openKeys,Gt=_t.activeKey,en=_t.defaultActiveFirst,Ln=_t.selectable,Qn=Ln===void 0?!0:Ln,On=_t.multiple,Kn=On===void 0?!1:On,vr=_t.defaultSelectedKeys,Br=_t.selectedKeys,Cr=_t.onSelect,sr=_t.onDeselect,Mr=_t.inlineIndent,Nr=Mr===void 0?24:Mr,Yr=_t.motion,Rr=_t.defaultMotions,xr=_t.triggerSubMenuAction,ii=xr===void 0?"hover":xr,ri=_t.builtinPlacements,Fi=_t.itemIcon,Ui=_t.expandIcon,aa=_t.overflowedIndicator,ji=aa===void 0?"...":aa,zi=_t.overflowedIndicatorPopupClassName,Mi=_t.getPopupContainer,ca=_t.onClick,Li=_t.onOpenChange,li=_t.onKeyDown,Vi=_t.openAnimation,Sa=_t.openTransitionName,Ci=_t._internalRenderMenuItem,Xa=_t._internalRenderSubMenuItem,qa=(0,ie.Z)(_t,ni),Ja=ne.useMemo(function(){return $i(Zn,Cn,Sn)},[Zn,Cn]),Ra=ne.useState(!1),ua=(0,ve.Z)(Ra,2),bo=ua[0],Da=ua[1],Ki=ne.useRef(),ja=vn($n),lo=pr==="rtl",Ka=(0,At.Z)(Ht,{value:Vt,postState:function(fi){return fi||Sn}}),io=(0,ve.Z)(Ka,2),pa=io[0],po=io[1],mo=function(fi){var ki=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ia(){po(fi),Li==null||Li(fi)}ki?(0,ye.flushSync)(Ia):Ia()},fo=ne.useState(pa),vo=(0,ve.Z)(fo,2),Mo=vo[0],Ho=vo[1],ho=ne.useRef(!1),ko=ne.useMemo(function(){return(ur==="inline"||ur==="vertical")&&mr?["vertical",mr]:[ur,!1]},[ur,mr]),$o=(0,ve.Z)(ko,2),Yo=$o[0],as=$o[1],Bo=Yo==="inline",wo=ne.useState(Yo),La=(0,ve.Z)(wo,2),za=La[0],uo=La[1],xo=ne.useState(as),Fo=(0,ve.Z)(xo,2),es=Fo[0],ms=Fo[1];ne.useEffect(function(){uo(Yo),ms(as),ho.current&&(Bo?po(Mo):mo(Sn))},[Yo,as]);var _s=ne.useState(0),Fs=(0,ve.Z)(_s,2),os=Fs[0],Is=Fs[1],no=os>=Ja.length-1||za!=="horizontal"||kt;ne.useEffect(function(){Bo&&Ho(pa)},[pa]),ne.useEffect(function(){return ho.current=!0,function(){ho.current=!1}},[]);var Ea=Rn(),Do=Ea.registerPath,To=Ea.unregisterPath,Ct=Ea.refreshOverflowKeys,Lt=Ea.isSubPathKey,dn=Ea.getKeyPath,un=Ea.getKeys,Un=Ea.getSubPathKeys,Nn=ne.useMemo(function(){return{registerPath:Do,unregisterPath:To}},[Do,To]),Mn=ne.useMemo(function(){return{isSubPathKey:Lt}},[Lt]);ne.useEffect(function(){Ct(no?Sn:Ja.slice(os+1).map(function(si){return si.key}))},[os,no]);var nr=(0,At.Z)(Gt||en&&((Tt=Ja[0])===null||Tt===void 0?void 0:Tt.key),{value:Gt}),rr=(0,ve.Z)(nr,2),gr=rr[0],Jr=rr[1],jr=jt(function(si){Jr(si)}),xi=jt(function(){Jr(void 0)});(0,ne.useImperativeHandle)(Dt,function(){return{list:Ki.current,focus:function(fi){var ki,Ia=gr!=null?gr:(ki=Ja.find(function(Na){return!Na.props.disabled}))===null||ki===void 0?void 0:ki.key;if(Ia){var ma,Ca,ya;(ma=Ki.current)===null||ma===void 0||(Ca=ma.querySelector("li[data-menu-id='".concat(de(ja,Ia),"']")))===null||Ca===void 0||(ya=Ca.focus)===null||ya===void 0||ya.call(Ca,fi)}}}});var Qr=(0,At.Z)(vr||[],{value:Br,postState:function(fi){return Array.isArray(fi)?fi:fi==null?Sn:[fi]}}),ci=(0,ve.Z)(Qr,2),qr=ci[0],wi=ci[1],Hi=function(fi){if(Qn){var ki=fi.key,Ia=qr.includes(ki),ma;Kn?Ia?ma=qr.filter(function(ya){return ya!==ki}):ma=[].concat((0,Te.Z)(qr),[ki]):ma=[ki],wi(ma);var Ca=(0,x.Z)((0,x.Z)({},fi),{},{selectedKeys:ma});Ia?sr==null||sr(Ca):Cr==null||Cr(Ca)}!Kn&&pa.length&&za!=="inline"&&mo(Sn)},oa=jt(function(si){ca==null||ca(pn(si)),Hi(si)}),fa=jt(function(si,fi){var ki=pa.filter(function(ma){return ma!==si});if(fi)ki.push(si);else if(za!=="inline"){var Ia=Un(si);ki=ki.filter(function(ma){return!Ia.has(ma)})}(0,Ye.Z)(pa,ki,!0)||mo(ki,!0)}),qi=function(fi,ki){var Ia=ki!=null?ki:!pa.includes(fi);fa(fi,Ia)},va=Pr(za,gr,lo,ja,Ki,un,dn,Jr,qi,li);ne.useEffect(function(){Da(!0)},[]);var Bi=ne.useMemo(function(){return{_internalRenderMenuItem:Ci,_internalRenderSubMenuItem:Xa}},[Ci,Xa]),ga=za!=="horizontal"||kt?Ja:Ja.map(function(si,fi){return ne.createElement(ze,{key:si.key,overflowDisabled:fi>os},si)}),Aa=ne.createElement(Et,(0,Oe.Z)({id:$n,ref:Ki,prefixCls:"".concat(gn,"-overflow"),component:"ul",itemComponent:Ur,className:ae()(gn,"".concat(gn,"-root"),"".concat(gn,"-").concat(za),Xn,(Nt={},(0,Je.Z)(Nt,"".concat(gn,"-inline-collapsed"),es),(0,Je.Z)(Nt,"".concat(gn,"-rtl"),lo),Nt),Vn),dir:pr,style:qn,role:"menu",tabIndex:In,data:ga,renderRawItem:function(fi){return fi},renderRawRest:function(fi){var ki=fi.length,Ia=ki?Ja.slice(-ki):null;return ne.createElement(Fn,{eventKey:cn,title:ji,disabled:no,internalPopupClose:ki===0,popupClassName:zi},Ia)},maxCount:za!=="horizontal"||kt?Et.INVALIDATE:Et.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(fi){Is(fi)},onKeyDown:va},qa));return ne.createElement(Ft.Provider,{value:Bi},ne.createElement(Ve.Provider,{value:ja},ne.createElement(ze,{prefixCls:gn,rootClassName:Vn,mode:za,openKeys:pa,rtl:lo,disabled:wr,motion:bo?Yr:null,defaultMotions:bo?Rr:null,activeKey:gr,onActive:jr,onInactive:xi,selectedKeys:qr,inlineIndent:Nr,subMenuOpenDelay:qt,subMenuCloseDelay:En,forceSubMenuRender:Hn,builtinPlacements:ri,triggerSubMenuAction:ii,getPopupContainer:Mi,itemIcon:Fi,expandIcon:Ui,onItemClick:oa,onOpenChange:fa},ne.createElement(Ut.Provider,{value:Mn},Aa),ne.createElement("div",{style:{display:"none"},"aria-hidden":!0},ne.createElement(ot.Provider,{value:Nn},Ja)))))}),Yn=Pn,qe=Yn;qe.Item=Ur,qe.SubMenu=Fn,qe.ItemGroup=pi,qe.Divider=Ti;var yt=qe},86128:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Fe}});var Oe=me(87462),Je=me(4942),x=me(45987),Te=me(1413),ve=me(15671),ie=me(43144),te=me(97326),ae=me(60136),ne=me(51630),oe=me(67294),he=me(94184),re=me.n(he),se=me(64217),ce=me(27822),fe=function(De){for(var Le=De.prefixCls,Ie=De.level,Be=De.isStart,Ue=De.isEnd,_e="".concat(Le,"-indent-unit"),We=[],Ze=0;Ze<Ie;Ze+=1){var et;We.push(oe.createElement("span",{key:Ze,className:re()(_e,(et={},(0,Je.Z)(et,"".concat(_e,"-start"),Be[Ze]),(0,Je.Z)(et,"".concat(_e,"-end"),Ue[Ze]),et))}))}return oe.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-indent")},We)},pe=oe.memo(fe),le=me(1089),Se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],xe="open",ge="close",Me="---",ye=function(ke){(0,ae.Z)(Le,ke);var De=(0,ne.Z)(Le);function Le(){var Ie;(0,ve.Z)(this,Le);for(var Be=arguments.length,Ue=new Array(Be),_e=0;_e<Be;_e++)Ue[_e]=arguments[_e];return Ie=De.call.apply(De,[this].concat(Ue)),Ie.state={dragNodeHighlight:!1},Ie.selectHandle=void 0,Ie.onSelectorClick=function(We){var Ze=Ie.props.context.onNodeClick;Ze(We,(0,le.F)(Ie.props)),Ie.isSelectable()?Ie.onSelect(We):Ie.onCheck(We)},Ie.onSelectorDoubleClick=function(We){var Ze=Ie.props.context.onNodeDoubleClick;Ze(We,(0,le.F)(Ie.props))},Ie.onSelect=function(We){if(!Ie.isDisabled()){var Ze=Ie.props.context.onNodeSelect;We.preventDefault(),Ze(We,(0,le.F)(Ie.props))}},Ie.onCheck=function(We){if(!Ie.isDisabled()){var Ze=Ie.props,et=Ze.disableCheckbox,it=Ze.checked,pt=Ie.props.context.onNodeCheck;if(!(!Ie.isCheckable()||et)){We.preventDefault();var Ge=!it;pt(We,(0,le.F)(Ie.props),Ge)}}},Ie.onMouseEnter=function(We){var Ze=Ie.props.context.onNodeMouseEnter;Ze(We,(0,le.F)(Ie.props))},Ie.onMouseLeave=function(We){var Ze=Ie.props.context.onNodeMouseLeave;Ze(We,(0,le.F)(Ie.props))},Ie.onContextMenu=function(We){var Ze=Ie.props.context.onNodeContextMenu;Ze(We,(0,le.F)(Ie.props))},Ie.onDragStart=function(We){var Ze=Ie.props.context.onNodeDragStart;We.stopPropagation(),Ie.setState({dragNodeHighlight:!0}),Ze(We,(0,te.Z)(Ie));try{We.dataTransfer.setData("text/plain","")}catch(et){}},Ie.onDragEnter=function(We){var Ze=Ie.props.context.onNodeDragEnter;We.preventDefault(),We.stopPropagation(),Ze(We,(0,te.Z)(Ie))},Ie.onDragOver=function(We){var Ze=Ie.props.context.onNodeDragOver;We.preventDefault(),We.stopPropagation(),Ze(We,(0,te.Z)(Ie))},Ie.onDragLeave=function(We){var Ze=Ie.props.context.onNodeDragLeave;We.stopPropagation(),Ze(We,(0,te.Z)(Ie))},Ie.onDragEnd=function(We){var Ze=Ie.props.context.onNodeDragEnd;We.stopPropagation(),Ie.setState({dragNodeHighlight:!1}),Ze(We,(0,te.Z)(Ie))},Ie.onDrop=function(We){var Ze=Ie.props.context.onNodeDrop;We.preventDefault(),We.stopPropagation(),Ie.setState({dragNodeHighlight:!1}),Ze(We,(0,te.Z)(Ie))},Ie.onExpand=function(We){var Ze=Ie.props,et=Ze.loading,it=Ze.context.onNodeExpand;et||it(We,(0,le.F)(Ie.props))},Ie.setSelectHandle=function(We){Ie.selectHandle=We},Ie.getNodeState=function(){var We=Ie.props.expanded;return Ie.isLeaf()?null:We?xe:ge},Ie.hasChildren=function(){var We=Ie.props.eventKey,Ze=Ie.props.context.keyEntities,et=Ze[We]||{},it=et.children;return!!(it||[]).length},Ie.isLeaf=function(){var We=Ie.props,Ze=We.isLeaf,et=We.loaded,it=Ie.props.context.loadData,pt=Ie.hasChildren();return Ze===!1?!1:Ze||!it&&!pt||it&&et&&!pt},Ie.isDisabled=function(){var We=Ie.props.disabled,Ze=Ie.props.context.disabled;return!!(Ze||We)},Ie.isCheckable=function(){var We=Ie.props.checkable,Ze=Ie.props.context.checkable;return!Ze||We===!1?!1:Ze},Ie.syncLoadData=function(We){var Ze=We.expanded,et=We.loading,it=We.loaded,pt=Ie.props.context,Ge=pt.loadData,Xe=pt.onNodeLoad;et||Ge&&Ze&&!Ie.isLeaf()&&!Ie.hasChildren()&&!it&&Xe((0,le.F)(Ie.props))},Ie.isDraggable=function(){var We=Ie.props,Ze=We.data,et=We.context.draggable;return!!(et&&(!et.nodeDraggable||et.nodeDraggable(Ze)))},Ie.renderDragHandler=function(){var We=Ie.props.context,Ze=We.draggable,et=We.prefixCls;return Ze!=null&&Ze.icon?oe.createElement("span",{className:"".concat(et,"-draggable-icon")},Ze.icon):null},Ie.renderSwitcherIconDom=function(We){var Ze=Ie.props.switcherIcon,et=Ie.props.context.switcherIcon,it=Ze||et;return typeof it=="function"?it((0,Te.Z)((0,Te.Z)({},Ie.props),{},{isLeaf:We})):it},Ie.renderSwitcher=function(){var We=Ie.props.expanded,Ze=Ie.props.context.prefixCls;if(Ie.isLeaf()){var et=Ie.renderSwitcherIconDom(!0);return et!==!1?oe.createElement("span",{className:re()("".concat(Ze,"-switcher"),"".concat(Ze,"-switcher-noop"))},et):null}var it=re()("".concat(Ze,"-switcher"),"".concat(Ze,"-switcher_").concat(We?xe:ge)),pt=Ie.renderSwitcherIconDom(!1);return pt!==!1?oe.createElement("span",{onClick:Ie.onExpand,className:it},pt):null},Ie.renderCheckbox=function(){var We=Ie.props,Ze=We.checked,et=We.halfChecked,it=We.disableCheckbox,pt=Ie.props.context.prefixCls,Ge=Ie.isDisabled(),Xe=Ie.isCheckable();if(!Xe)return null;var lt=typeof Xe!="boolean"?Xe:null;return oe.createElement("span",{className:re()("".concat(pt,"-checkbox"),Ze&&"".concat(pt,"-checkbox-checked"),!Ze&&et&&"".concat(pt,"-checkbox-indeterminate"),(Ge||it)&&"".concat(pt,"-checkbox-disabled")),onClick:Ie.onCheck},lt)},Ie.renderIcon=function(){var We=Ie.props.loading,Ze=Ie.props.context.prefixCls;return oe.createElement("span",{className:re()("".concat(Ze,"-iconEle"),"".concat(Ze,"-icon__").concat(Ie.getNodeState()||"docu"),We&&"".concat(Ze,"-icon_loading"))})},Ie.renderSelector=function(){var We=Ie.state.dragNodeHighlight,Ze=Ie.props,et=Ze.title,it=et===void 0?Me:et,pt=Ze.selected,Ge=Ze.icon,Xe=Ze.loading,lt=Ze.data,dt=Ie.props.context,st=dt.prefixCls,nt=dt.showIcon,rt=dt.icon,at=dt.loadData,gt=dt.titleRender,vt=Ie.isDisabled(),Et="".concat(st,"-node-content-wrapper"),At;if(nt){var ut=Ge||rt;At=ut?oe.createElement("span",{className:re()("".concat(st,"-iconEle"),"".concat(st,"-icon__customize"))},typeof ut=="function"?ut(Ie.props):ut):Ie.renderIcon()}else at&&Xe&&(At=Ie.renderIcon());var Ye;typeof it=="function"?Ye=it(lt):gt?Ye=gt(lt):Ye=it;var Ve=oe.createElement("span",{className:"".concat(st,"-title")},Ye);return oe.createElement("span",{ref:Ie.setSelectHandle,title:typeof it=="string"?it:"",className:re()("".concat(Et),"".concat(Et,"-").concat(Ie.getNodeState()||"normal"),!vt&&(pt||We)&&"".concat(st,"-node-selected")),onMouseEnter:Ie.onMouseEnter,onMouseLeave:Ie.onMouseLeave,onContextMenu:Ie.onContextMenu,onClick:Ie.onSelectorClick,onDoubleClick:Ie.onSelectorDoubleClick},At,Ve,Ie.renderDropIndicator())},Ie.renderDropIndicator=function(){var We=Ie.props,Ze=We.disabled,et=We.eventKey,it=Ie.props.context,pt=it.draggable,Ge=it.dropLevelOffset,Xe=it.dropPosition,lt=it.prefixCls,dt=it.indent,st=it.dropIndicatorRender,nt=it.dragOverNodeKey,rt=it.direction,at=!!pt,gt=!Ze&&at&&nt===et;return gt?st({dropPosition:Xe,dropLevelOffset:Ge,indent:dt,prefixCls:lt,direction:rt}):null},Ie}return(0,ie.Z)(Le,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Be=this.props.selectable,Ue=this.props.context.selectable;return typeof Be=="boolean"?Be:Ue}},{key:"render",value:function(){var Be,Ue=this.props,_e=Ue.eventKey,We=Ue.className,Ze=Ue.style,et=Ue.dragOver,it=Ue.dragOverGapTop,pt=Ue.dragOverGapBottom,Ge=Ue.isLeaf,Xe=Ue.isStart,lt=Ue.isEnd,dt=Ue.expanded,st=Ue.selected,nt=Ue.checked,rt=Ue.halfChecked,at=Ue.loading,gt=Ue.domRef,vt=Ue.active,Et=Ue.data,At=Ue.onMouseMove,ut=Ue.selectable,Ye=(0,x.Z)(Ue,Se),Ve=this.props.context,de=Ve.prefixCls,Ce=Ve.filterTreeNode,He=Ve.keyEntities,je=Ve.dropContainerKey,Ae=Ve.dropTargetKey,Ne=Ve.draggingNodeKey,ze=this.isDisabled(),Qe=(0,se.Z)(Ye,{aria:!0,data:!0}),ot=He[_e]||{},mt=ot.level,Ot=lt[lt.length-1],xt=this.isDraggable(),Ut=!ze&&xt,xn=Ne===_e,Ft=ut!==void 0?{"aria-selected":!!ut}:void 0;return oe.createElement("div",(0,Oe.Z)({ref:gt,className:re()(We,"".concat(de,"-treenode"),(Be={},(0,Je.Z)(Be,"".concat(de,"-treenode-disabled"),ze),(0,Je.Z)(Be,"".concat(de,"-treenode-switcher-").concat(dt?"open":"close"),!Ge),(0,Je.Z)(Be,"".concat(de,"-treenode-checkbox-checked"),nt),(0,Je.Z)(Be,"".concat(de,"-treenode-checkbox-indeterminate"),rt),(0,Je.Z)(Be,"".concat(de,"-treenode-selected"),st),(0,Je.Z)(Be,"".concat(de,"-treenode-loading"),at),(0,Je.Z)(Be,"".concat(de,"-treenode-active"),vt),(0,Je.Z)(Be,"".concat(de,"-treenode-leaf-last"),Ot),(0,Je.Z)(Be,"".concat(de,"-treenode-draggable"),xt),(0,Je.Z)(Be,"dragging",xn),(0,Je.Z)(Be,"drop-target",Ae===_e),(0,Je.Z)(Be,"drop-container",je===_e),(0,Je.Z)(Be,"drag-over",!ze&&et),(0,Je.Z)(Be,"drag-over-gap-top",!ze&&it),(0,Je.Z)(Be,"drag-over-gap-bottom",!ze&&pt),(0,Je.Z)(Be,"filter-node",Ce&&Ce((0,le.F)(this.props))),Be)),style:Ze,draggable:Ut,"aria-grabbed":xn,onDragStart:Ut?this.onDragStart:void 0,onDragEnter:xt?this.onDragEnter:void 0,onDragOver:xt?this.onDragOver:void 0,onDragLeave:xt?this.onDragLeave:void 0,onDrop:xt?this.onDrop:void 0,onDragEnd:xt?this.onDragEnd:void 0,onMouseMove:At},Ft,Qe),oe.createElement(pe,{prefixCls:de,level:mt,isStart:Xe,isEnd:lt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Le}(oe.Component),be=function(De){return oe.createElement(ce.k.Consumer,null,function(Le){return oe.createElement(ye,(0,Oe.Z)({},De,{context:Le}))})};be.displayName="TreeNode",be.isTreeNode=1;var Fe=be},27822:function(tn,Kt,me){"use strict";me.d(Kt,{k:function(){return Je}});var Oe=me(67294),Je=Oe.createContext(null)},10225:function(tn,Kt,me){"use strict";me.d(Kt,{BT:function(){return pe},Ds:function(){return he},E6:function(){return xe},L0:function(){return ae},OM:function(){return fe},_5:function(){return te},bt:function(){return oe},r7:function(){return ge},wA:function(){return re},yx:function(){return ne}});var Oe=me(74902),Je=me(71002),x=me(67294),Te=me(80334),ve=me(86128),ie=null;function te(Me,ye){if(!Me)return[];var be=Me.slice(),Fe=be.indexOf(ye);return Fe>=0&&be.splice(Fe,1),be}function ae(Me,ye){var be=(Me||[]).slice();return be.indexOf(ye)===-1&&be.push(ye),be}function ne(Me){return Me.split("-")}function oe(Me,ye){return"".concat(Me,"-").concat(ye)}function he(Me){return Me&&Me.type&&Me.type.isTreeNode}function re(Me,ye){var be=[],Fe=ye[Me];function ke(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];De.forEach(function(Le){var Ie=Le.key,Be=Le.children;be.push(Ie),ke(Be)})}return ke(Fe.children),be}function se(Me){if(Me.parent){var ye=ne(Me.pos);return Number(ye[ye.length-1])===Me.parent.children.length-1}return!1}function ce(Me){var ye=ne(Me.pos);return Number(ye[ye.length-1])===0}function fe(Me,ye,be,Fe,ke,De,Le,Ie,Be,Ue){var _e,We=Me.clientX,Ze=Me.clientY,et=Me.target.getBoundingClientRect(),it=et.top,pt=et.height,Ge=(Ue==="rtl"?-1:1)*(((ke==null?void 0:ke.x)||0)-We),Xe=(Ge-12)/Fe,lt=Ie[be.props.eventKey];if(Ze<it+pt/2){var dt=Le.findIndex(function(de){return de.key===lt.key}),st=dt<=0?0:dt-1,nt=Le[st].key;lt=Ie[nt]}var rt=lt.key,at=lt,gt=lt.key,vt=0,Et=0;if(!Be.includes(rt))for(var At=0;At<Xe&&se(lt);At+=1)lt=lt.parent,Et+=1;var ut=ye.props.data,Ye=lt.node,Ve=!0;return ce(lt)&<.level===0&&Ze<it+pt/2&&De({dragNode:ut,dropNode:Ye,dropPosition:-1})&<.key===be.props.eventKey?vt=-1:(at.children||[]).length&&Be.includes(gt)?De({dragNode:ut,dropNode:Ye,dropPosition:0})?vt=0:Ve=!1:Et===0?Xe>-1.5?De({dragNode:ut,dropNode:Ye,dropPosition:1})?vt=1:Ve=!1:De({dragNode:ut,dropNode:Ye,dropPosition:0})?vt=0:De({dragNode:ut,dropNode:Ye,dropPosition:1})?vt=1:Ve=!1:De({dragNode:ut,dropNode:Ye,dropPosition:1})?vt=1:Ve=!1,{dropPosition:vt,dropLevelOffset:Et,dropTargetKey:lt.key,dropTargetPos:lt.pos,dragOverNodeKey:gt,dropContainerKey:vt===0?null:((_e=lt.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:Ve}}function pe(Me,ye){if(Me){var be=ye.multiple;return be?Me.slice():Me.length?[Me[0]]:Me}}var le=function(ye){return ye};function Se(Me,ye){if(!Me)return[];var be=ye||{},Fe=be.processProps,ke=Fe===void 0?le:Fe,De=Array.isArray(Me)?Me:[Me];return De.map(function(Le){var Ie=Le.children,Be=_objectWithoutProperties(Le,ie),Ue=Se(Ie,ye);return React.createElement(TreeNode,_extends({key:Be.key},ke(Be)),Ue)})}function xe(Me){if(!Me)return null;var ye;if(Array.isArray(Me))ye={checkedKeys:Me,halfCheckedKeys:void 0};else if((0,Je.Z)(Me)==="object")ye={checkedKeys:Me.checked||void 0,halfCheckedKeys:Me.halfChecked||void 0};else return(0,Te.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ye}function ge(Me,ye){var be=new Set;function Fe(ke){if(!be.has(ke)){var De=ye[ke];if(De){be.add(ke);var Le=De.parent,Ie=De.node;Ie.disabled||Le&&Fe(Le.key)}}}return(Me||[]).forEach(function(ke){Fe(ke)}),(0,Oe.Z)(be)}},17341:function(tn,Kt,me){"use strict";me.d(Kt,{S:function(){return ie}});var Oe=me(80334);function Je(te,ae){var ne=new Set;return te.forEach(function(oe){ae.has(oe)||ne.add(oe)}),ne}function x(te){var ae=te||{},ne=ae.disabled,oe=ae.disableCheckbox,he=ae.checkable;return!!(ne||oe)||he===!1}function Te(te,ae,ne,oe){for(var he=new Set(te),re=new Set,se=0;se<=ne;se+=1){var ce=ae.get(se)||new Set;ce.forEach(function(Se){var xe=Se.key,ge=Se.node,Me=Se.children,ye=Me===void 0?[]:Me;he.has(xe)&&!oe(ge)&&ye.filter(function(be){return!oe(be.node)}).forEach(function(be){he.add(be.key)})})}for(var fe=new Set,pe=ne;pe>=0;pe-=1){var le=ae.get(pe)||new Set;le.forEach(function(Se){var xe=Se.parent,ge=Se.node;if(!(oe(ge)||!Se.parent||fe.has(Se.parent.key))){if(oe(Se.parent.node)){fe.add(xe.key);return}var Me=!0,ye=!1;(xe.children||[]).filter(function(be){return!oe(be.node)}).forEach(function(be){var Fe=be.key,ke=he.has(Fe);Me&&!ke&&(Me=!1),!ye&&(ke||re.has(Fe))&&(ye=!0)}),Me&&he.add(xe.key),ye&&re.add(xe.key),fe.add(xe.key)}})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(Je(re,he))}}function ve(te,ae,ne,oe,he){for(var re=new Set(te),se=new Set(ae),ce=0;ce<=oe;ce+=1){var fe=ne.get(ce)||new Set;fe.forEach(function(xe){var ge=xe.key,Me=xe.node,ye=xe.children,be=ye===void 0?[]:ye;!re.has(ge)&&!se.has(ge)&&!he(Me)&&be.filter(function(Fe){return!he(Fe.node)}).forEach(function(Fe){re.delete(Fe.key)})})}se=new Set;for(var pe=new Set,le=oe;le>=0;le-=1){var Se=ne.get(le)||new Set;Se.forEach(function(xe){var ge=xe.parent,Me=xe.node;if(!(he(Me)||!xe.parent||pe.has(xe.parent.key))){if(he(xe.parent.node)){pe.add(ge.key);return}var ye=!0,be=!1;(ge.children||[]).filter(function(Fe){return!he(Fe.node)}).forEach(function(Fe){var ke=Fe.key,De=re.has(ke);ye&&!De&&(ye=!1),!be&&(De||se.has(ke))&&(be=!0)}),ye||re.delete(ge.key),be&&se.add(ge.key),pe.add(ge.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(Je(se,re))}}function ie(te,ae,ne,oe){var he=[],re;oe?re=oe:re=x;var se=new Set(te.filter(function(le){var Se=!!ne[le];return Se||he.push(le),Se})),ce=new Map,fe=0;Object.keys(ne).forEach(function(le){var Se=ne[le],xe=Se.level,ge=ce.get(xe);ge||(ge=new Set,ce.set(xe,ge)),ge.add(Se),fe=Math.max(fe,xe)}),(0,Oe.ZP)(!he.length,"Tree missing follow keys: ".concat(he.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var pe;return ae===!0?pe=Te(se,ce,fe,re):pe=ve(se,ae.halfCheckedKeys,ce,fe,re),pe}},1089:function(tn,Kt,me){"use strict";me.d(Kt,{F:function(){return Se},H8:function(){return le},I8:function(){return pe},km:function(){return oe},oH:function(){return ce},w$:function(){return he},zn:function(){return se}});var Oe=me(71002),Je=me(74902),x=me(1413),Te=me(45987),ve=me(98423),ie=me(50344),te=me(80334),ae=me(10225),ne=["children"];function oe(xe,ge){return xe!=null?xe:ge}function he(xe){var ge=xe||{},Me=ge.title,ye=ge._title,be=ge.key,Fe=ge.children,ke=Me||"title";return{title:ke,_title:ye||[ke],key:be||"key",children:Fe||"children"}}function re(xe,ge){var Me=new Map;function ye(be){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(be||[]).forEach(function(ke){var De=ke[ge.key],Le=ke[ge.children];warning(De!=null,"Tree node must have a certain key: [".concat(Fe).concat(De,"]"));var Ie=String(De);warning(!Me.has(Ie)||De===null||De===void 0,"Same 'key' exist in the Tree: ".concat(Ie)),Me.set(Ie,!0),ye(Le,"".concat(Fe).concat(Ie," > "))})}ye(xe)}function se(xe){function ge(Me){var ye=(0,ie.Z)(Me);return ye.map(function(be){if(!(0,ae.Ds)(be))return(0,te.ZP)(!be,"Tree/TreeNode can only accept TreeNode as children."),null;var Fe=be.key,ke=be.props,De=ke.children,Le=(0,Te.Z)(ke,ne),Ie=(0,x.Z)({key:Fe},Le),Be=ge(De);return Be.length&&(Ie.children=Be),Ie}).filter(function(be){return be})}return ge(xe)}function ce(xe,ge,Me){var ye=he(Me),be=ye._title,Fe=ye.key,ke=ye.children,De=new Set(ge===!0?[]:ge),Le=[];function Ie(Be){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Be.map(function(_e,We){for(var Ze=(0,ae.bt)(Ue?Ue.pos:"0",We),et=oe(_e[Fe],Ze),it,pt=0;pt<be.length;pt+=1){var Ge=be[pt];if(_e[Ge]!==void 0){it=_e[Ge];break}}var Xe=(0,x.Z)((0,x.Z)({},(0,ve.Z)(_e,[].concat((0,Je.Z)(be),[Fe,ke]))),{},{title:it,key:et,parent:Ue,pos:Ze,children:null,data:_e,isStart:[].concat((0,Je.Z)(Ue?Ue.isStart:[]),[We===0]),isEnd:[].concat((0,Je.Z)(Ue?Ue.isEnd:[]),[We===Be.length-1])});return Le.push(Xe),ge===!0||De.has(et)?Xe.children=Ie(_e[ke]||[],Xe):Xe.children=[],Xe})}return Ie(xe),Le}function fe(xe,ge,Me){var ye={};(0,Oe.Z)(Me)==="object"?ye=Me:ye={externalGetKey:Me},ye=ye||{};var be=ye,Fe=be.childrenPropName,ke=be.externalGetKey,De=be.fieldNames,Le=he(De),Ie=Le.key,Be=Le.children,Ue=Fe||Be,_e;ke?typeof ke=="string"?_e=function(et){return et[ke]}:typeof ke=="function"&&(_e=function(et){return ke(et)}):_e=function(et,it){return oe(et[Ie],it)};function We(Ze,et,it,pt){var Ge=Ze?Ze[Ue]:xe,Xe=Ze?(0,ae.bt)(it.pos,et):"0",lt=Ze?[].concat((0,Je.Z)(pt),[Ze]):[];if(Ze){var dt=_e(Ze,Xe),st={node:Ze,index:et,pos:Xe,key:dt,parentPos:it.node?it.pos:null,level:it.level+1,nodes:lt};ge(st)}Ge&&Ge.forEach(function(nt,rt){We(nt,rt,{node:Ze,pos:Xe,level:it?it.level+1:-1},lt)})}We(null)}function pe(xe){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=ge.initWrapper,ye=ge.processEntity,be=ge.onProcessFinished,Fe=ge.externalGetKey,ke=ge.childrenPropName,De=ge.fieldNames,Le=arguments.length>2?arguments[2]:void 0,Ie=Fe||Le,Be={},Ue={},_e={posEntities:Be,keyEntities:Ue};return Me&&(_e=Me(_e)||_e),fe(xe,function(We){var Ze=We.node,et=We.index,it=We.pos,pt=We.key,Ge=We.parentPos,Xe=We.level,lt=We.nodes,dt={node:Ze,nodes:lt,index:et,key:pt,pos:it,level:Xe},st=oe(pt,it);Be[it]=dt,Ue[st]=dt,dt.parent=Be[Ge],dt.parent&&(dt.parent.children=dt.parent.children||[],dt.parent.children.push(dt)),ye&&ye(dt,_e)},{externalGetKey:Ie,childrenPropName:ke,fieldNames:De}),be&&be(_e),_e}function le(xe,ge){var Me=ge.expandedKeys,ye=ge.selectedKeys,be=ge.loadedKeys,Fe=ge.loadingKeys,ke=ge.checkedKeys,De=ge.halfCheckedKeys,Le=ge.dragOverNodeKey,Ie=ge.dropPosition,Be=ge.keyEntities,Ue=Be[xe],_e={eventKey:xe,expanded:Me.indexOf(xe)!==-1,selected:ye.indexOf(xe)!==-1,loaded:be.indexOf(xe)!==-1,loading:Fe.indexOf(xe)!==-1,checked:ke.indexOf(xe)!==-1,halfChecked:De.indexOf(xe)!==-1,pos:String(Ue?Ue.pos:""),dragOver:Le===xe&&Ie===0,dragOverGapTop:Le===xe&&Ie===-1,dragOverGapBottom:Le===xe&&Ie===1};return _e}function Se(xe){var ge=xe.data,Me=xe.expanded,ye=xe.selected,be=xe.checked,Fe=xe.loaded,ke=xe.loading,De=xe.halfChecked,Le=xe.dragOver,Ie=xe.dragOverGapTop,Be=xe.dragOverGapBottom,Ue=xe.pos,_e=xe.active,We=xe.eventKey,Ze=(0,x.Z)((0,x.Z)({},ge),{},{expanded:Me,selected:ye,checked:be,loaded:Fe,loading:ke,halfChecked:De,dragOver:Le,dragOverGapTop:Ie,dragOverGapBottom:Be,pos:Ue,active:_e,key:We});return"props"in Ze||Object.defineProperty(Ze,"props",{get:function(){return(0,te.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),xe}}),Ze}},66680:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Je}});var Oe=me(67294);function Je(x){var Te=Oe.useRef();Te.current=x;var ve=Oe.useCallback(function(){for(var ie,te=arguments.length,ae=new Array(te),ne=0;ne<te;ne++)ae[ne]=arguments[ne];return(ie=Te.current)===null||ie===void 0?void 0:ie.call.apply(ie,[Te].concat(ae))},[]);return ve}},21770:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ie}});var Oe=me(97685),Je=me(66680),x=me(8410),Te=me(63896);function ve(te){return te!==void 0}function ie(te,ae){var ne=ae||{},oe=ne.defaultValue,he=ne.value,re=ne.onChange,se=ne.postState,ce=(0,Te.Z)(function(){return ve(he)?he:ve(oe)?typeof oe=="function"?oe():oe:typeof te=="function"?te():te}),fe=(0,Oe.Z)(ce,2),pe=fe[0],le=fe[1],Se=he!==void 0?he:pe,xe=se?se(Se):Se,ge=(0,Je.Z)(re),Me=(0,Te.Z)([Se]),ye=(0,Oe.Z)(Me,2),be=ye[0],Fe=ye[1];(0,x.o)(function(){var De=be[0];pe!==De&&ge(pe,De)},[be]),(0,x.o)(function(){ve(he)||le(he)},[he]);var ke=(0,Je.Z)(function(De,Le){le(De,Le),Fe([Se],Le)});return[xe,ke]}},91881:function(tn,Kt,me){"use strict";var Oe=me(71002),Je=me(80334);function x(Te,ve){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,te=new Set;function ae(ne,oe){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,re=te.has(ne);if((0,Je.ZP)(!re,"Warning: There may be circular references"),re)return!1;if(ne===oe)return!0;if(ie&&he>1)return!1;te.add(ne);var se=he+1;if(Array.isArray(ne)){if(!Array.isArray(oe)||ne.length!==oe.length)return!1;for(var ce=0;ce<ne.length;ce++)if(!ae(ne[ce],oe[ce],se))return!1;return!0}if(ne&&oe&&(0,Oe.Z)(ne)==="object"&&(0,Oe.Z)(oe)==="object"){var fe=Object.keys(ne);return fe.length!==Object.keys(oe).length?!1:fe.every(function(pe){return ae(ne[pe],oe[pe],se)})}return!1}return ae(Te,ve)}Kt.Z=x},98423:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Je}});var Oe=me(1413);function Je(x,Te){var ve=(0,Oe.Z)({},x);return Array.isArray(Te)&&Te.forEach(function(ie){delete ve[ie]}),ve}},64217:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ae}});var Oe=me(1413),Je=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Te="".concat(Je," ").concat(x).split(/[\s\n]+/),ve="aria-",ie="data-";function te(ne,oe){return ne.indexOf(oe)===0}function ae(ne){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he;oe===!1?he={aria:!0,data:!0,attr:!0}:oe===!0?he={aria:!0}:he=(0,Oe.Z)({},oe);var re={};return Object.keys(ne).forEach(function(se){(he.aria&&(se==="role"||te(se,ve))||he.data&&te(se,ie)||he.attr&&Te.includes(se))&&(re[se]=ne[se])}),re}},73299:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return di}});var Oe=me(87462),Je=me(1413),x=me(71002),Te=me(97685),ve=me(4942),ie=me(45987),te=me(67294),ae=me(73935),ne=me(94184),oe=me.n(ne),he=me(48555),re=te.forwardRef(function(rn,zn){var fr=rn.height,lr=rn.offsetY,Tr=rn.offsetX,Pr=rn.children,Gr=rn.prefixCls,Er=rn.onInnerResize,Wt=rn.innerProps,$t=rn.rtl,cn=rn.extra,Rn={},jt={display:"flex",flexDirection:"column"};if(lr!==void 0){var an;Rn={height:fr,position:"relative",overflow:"hidden"},jt=(0,Je.Z)((0,Je.Z)({},jt),{},(an={transform:"translateY(".concat(lr,"px)")},(0,ve.Z)(an,$t?"marginRight":"marginLeft",-Tr),(0,ve.Z)(an,"position","absolute"),(0,ve.Z)(an,"left",0),(0,ve.Z)(an,"right",0),(0,ve.Z)(an,"top",0),an))}return te.createElement("div",{style:Rn},te.createElement(he.Z,{onResize:function(vn){var Bn=vn.offsetHeight;Bn&&Er&&Er()}},te.createElement("div",(0,Oe.Z)({style:jt,className:oe()((0,ve.Z)({},"".concat(Gr,"-holder-inner"),Gr)),ref:zn},Wt),Pr,cn)))});re.displayName="Filler";var se=re,ce=function(zn){return+setTimeout(zn,16)},fe=function(zn){return clearTimeout(zn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ce=function(zn){return window.requestAnimationFrame(zn)},fe=function(zn){return window.cancelAnimationFrame(zn)});var pe=0,le=new Map;function Se(rn){le.delete(rn)}var xe=function(zn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;pe+=1;var lr=pe;function Tr(Pr){if(Pr===0)Se(lr),zn();else{var Gr=ce(function(){Tr(Pr-1)});le.set(lr,Gr)}}return Tr(fr),lr};xe.cancel=function(rn){var zn=le.get(rn);return Se(zn),fe(zn)};var ge=xe;function Me(rn,zn){var fr="touches"in rn?rn.touches[0]:rn;return fr[zn?"pageX":"pageY"]}var ye=te.forwardRef(function(rn,zn){var fr,lr=rn.prefixCls,Tr=rn.rtl,Pr=rn.scrollOffset,Gr=rn.scrollRange,Er=rn.onStartMove,Wt=rn.onStopMove,$t=rn.onScroll,cn=rn.horizontal,Rn=rn.spinSize,jt=rn.containerSize,an=rn.style,Tn=rn.thumbStyle,vn=te.useState(!1),Bn=(0,Te.Z)(vn,2),_n=Bn[0],hr=Bn[1],ei=te.useState(null),Ir=(0,Te.Z)(ei,2),Lr=Ir[0],Wr=Ir[1],Vr=te.useState(null),nn=(0,Te.Z)(Vr,2),Jt=nn[0],pn=nn[1],tr=!Tr,Ar=te.useRef(),jn=te.useRef(),Jn=te.useState(!1),ir=(0,Te.Z)(Jn,2),kr=ir[0],Ur=ir[1],Wn=te.useRef(),Oi=function(){clearTimeout(Wn.current),Ur(!0),Wn.current=setTimeout(function(){Ur(!1)},3e3)},bi=Gr-jt||0,xa=jt-Rn||0,ha=bi>0,ia=te.useMemo(function(){if(Pr===0||bi===0)return 0;var ao=Pr/bi;return ao*xa},[Pr,bi,xa]),Ha=function(Qa){Qa.stopPropagation(),Qa.preventDefault()},Ji=te.useRef({top:ia,dragging:_n,pageY:Lr,startTop:Jt});Ji.current={top:ia,dragging:_n,pageY:Lr,startTop:Jt};var Wi=function(Qa){hr(!0),Wr(Me(Qa,cn)),pn(Ji.current.top),Er(),Qa.stopPropagation(),Qa.preventDefault()};te.useEffect(function(){var ao=function(ln){ln.preventDefault()},Qa=Ar.current,Ni=jn.current;return Qa.addEventListener("touchstart",ao),Ni.addEventListener("touchstart",Wi),function(){Qa.removeEventListener("touchstart",ao),Ni.removeEventListener("touchstart",Wi)}},[]);var wa=te.useRef();wa.current=bi;var Fa=te.useRef();Fa.current=xa,te.useEffect(function(){if(_n){var ao,Qa=function(ln){var Fn=Ji.current,or=Fn.dragging,br=Fn.pageY,Xr=Fn.startTop;if(ge.cancel(ao),or){var oi=Me(ln,cn)-br,pi=Xr;!tr&&cn?pi-=oi:pi+=oi;var Ti=wa.current,vi=Fa.current,Ri=vi?pi/vi:0,$i=Math.ceil(Ri*Ti);$i=Math.max($i,0),$i=Math.min($i,Ti),ao=ge(function(){$t($i,cn)})}},Ni=function(){hr(!1),Wt()};return window.addEventListener("mousemove",Qa),window.addEventListener("touchmove",Qa),window.addEventListener("mouseup",Ni),window.addEventListener("touchend",Ni),function(){window.removeEventListener("mousemove",Qa),window.removeEventListener("touchmove",Qa),window.removeEventListener("mouseup",Ni),window.removeEventListener("touchend",Ni),ge.cancel(ao)}}},[_n]),te.useEffect(function(){Oi()},[Pr]),te.useImperativeHandle(zn,function(){return{delayHidden:Oi}});var Ii="".concat(lr,"-scrollbar"),la={position:"absolute",visibility:kr&&ha?null:"hidden"},Oa={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return cn?(la.height=8,la.left=0,la.right=0,la.bottom=0,Oa.height="100%",Oa.width=Rn,tr?Oa.left=ia:Oa.right=ia):(la.width=8,la.top=0,la.bottom=0,tr?la.right=0:la.left=0,Oa.width="100%",Oa.height=Rn,Oa.top=ia),te.createElement("div",{ref:Ar,className:oe()(Ii,(fr={},(0,ve.Z)(fr,"".concat(Ii,"-horizontal"),cn),(0,ve.Z)(fr,"".concat(Ii,"-vertical"),!cn),(0,ve.Z)(fr,"".concat(Ii,"-visible"),kr),fr)),style:(0,Je.Z)((0,Je.Z)({},la),an),onMouseDown:Ha,onMouseMove:Oi},te.createElement("div",{ref:jn,className:oe()("".concat(Ii,"-thumb"),(0,ve.Z)({},"".concat(Ii,"-thumb-moving"),_n)),style:(0,Je.Z)((0,Je.Z)({},Oa),Tn),onMouseDown:Wi}))}),be=ye;function Fe(rn){var zn=rn.children,fr=rn.setRef,lr=te.useCallback(function(Tr){fr(Tr)},[]);return te.cloneElement(zn,{ref:lr})}function ke(rn,zn,fr,lr,Tr,Pr,Gr){var Er=Gr.getKey;return rn.slice(zn,fr+1).map(function(Wt,$t){var cn=zn+$t,Rn=Pr(Wt,cn,{style:{width:lr}}),jt=Er(Wt);return te.createElement(Fe,{key:jt,setRef:function(Tn){return Tr(Wt,Tn)}},Rn)})}function De(rn){return rn instanceof HTMLElement||rn instanceof SVGElement}function Le(rn){return De(rn)?rn:rn instanceof te.Component?ae.findDOMNode(rn):null}var Ie=me(15671),Be=me(43144),Ue=function(){function rn(){(0,Ie.Z)(this,rn),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Be.Z)(rn,[{key:"set",value:function(fr,lr){this.maps[fr]=lr,this.id+=1}},{key:"get",value:function(fr){return this.maps[fr]}}]),rn}(),_e=Ue;function We(rn,zn,fr){var lr=te.useState(0),Tr=(0,Te.Z)(lr,2),Pr=Tr[0],Gr=Tr[1],Er=(0,te.useRef)(new Map),Wt=(0,te.useRef)(new _e),$t=(0,te.useRef)();function cn(){ge.cancel($t.current)}function Rn(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;cn();var Tn=function(){Er.current.forEach(function(Bn,_n){if(Bn&&Bn.offsetParent){var hr=Le(Bn),ei=hr.offsetHeight;Wt.current.get(_n)!==ei&&Wt.current.set(_n,hr.offsetHeight)}}),Gr(function(Bn){return Bn+1})};an?Tn():$t.current=ge(Tn)}function jt(an,Tn){var vn=rn(an),Bn=Er.current.get(vn);Tn?(Er.current.set(vn,Tn),Rn()):Er.current.delete(vn),!Bn!=!Tn&&(Tn?zn==null||zn(an):fr==null||fr(an))}return(0,te.useEffect)(function(){return cn},[]),[jt,Rn,Wt.current,Pr]}function Ze(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var et=Ze()?te.useLayoutEffect:te.useEffect,it=function(zn,fr){var lr=te.useRef(!0);et(function(){return zn(lr.current)},fr),et(function(){return lr.current=!1,function(){lr.current=!0}},[])},pt=function(zn,fr){it(function(lr){if(!lr)return zn()},fr)},Ge=it;function Xe(rn){var zn=te.useRef();zn.current=rn;var fr=te.useCallback(function(){for(var lr,Tr=arguments.length,Pr=new Array(Tr),Gr=0;Gr<Tr;Gr++)Pr[Gr]=arguments[Gr];return(lr=zn.current)===null||lr===void 0?void 0:lr.call.apply(lr,[zn].concat(Pr))},[]);return fr}function lt(rn){var zn=React.useRef(!1),fr=React.useState(rn),lr=_slicedToArray(fr,2),Tr=lr[0],Pr=lr[1];React.useEffect(function(){return zn.current=!1,function(){zn.current=!0}},[]);function Gr(Er,Wt){Wt&&zn.current||Pr(Er)}return[Tr,Gr]}function dt(rn){return rn!==void 0}function st(rn,zn){var fr=zn||{},lr=fr.defaultValue,Tr=fr.value,Pr=fr.onChange,Gr=fr.postState,Er=useState(function(){return dt(Tr)?Tr:dt(lr)?typeof lr=="function"?lr():lr:typeof rn=="function"?rn():rn}),Wt=_slicedToArray(Er,2),$t=Wt[0],cn=Wt[1],Rn=Tr!==void 0?Tr:$t,jt=Gr?Gr(Rn):Rn,an=useEvent(Pr),Tn=useState([Rn]),vn=_slicedToArray(Tn,2),Bn=vn[0],_n=vn[1];useLayoutUpdateEffect(function(){var ei=Bn[0];$t!==ei&&an($t,ei)},[Bn]),useLayoutUpdateEffect(function(){dt(Tr)||cn(Tr)},[Tr]);var hr=useEvent(function(ei,Ir){cn(ei,Ir),_n([Rn],Ir)});return[jt,hr]}var nt=me(31461);function rt(rn,zn,fr){var lr=React.useRef({});return(!("value"in lr.current)||fr(lr.current.condition,zn))&&(lr.current.value=rn(),lr.current.condition=zn),lr.current.value}function at(rn,zn){typeof rn=="function"?rn(zn):_typeof(rn)==="object"&&rn&&"current"in rn&&(rn.current=zn)}function gt(){for(var rn=arguments.length,zn=new Array(rn),fr=0;fr<rn;fr++)zn[fr]=arguments[fr];var lr=zn.filter(function(Tr){return Tr});return lr.length<=1?lr[0]:function(Tr){zn.forEach(function(Pr){at(Pr,Tr)})}}function vt(){for(var rn=arguments.length,zn=new Array(rn),fr=0;fr<rn;fr++)zn[fr]=arguments[fr];return useMemo(function(){return gt.apply(void 0,zn)},zn,function(lr,Tr){return lr.length!==Tr.length||lr.every(function(Pr,Gr){return Pr!==Tr[Gr]})})}function Et(rn){var zn,fr,lr=isMemo(rn)?rn.type.type:rn.type;return!(typeof lr=="function"&&!((zn=lr.prototype)!==null&&zn!==void 0&&zn.render)||typeof rn=="function"&&!((fr=rn.prototype)!==null&&fr!==void 0&&fr.render))}function At(rn){return!isValidElement(rn)||isFragment(rn)?!1:Et(rn)}function ut(rn,zn,fr,lr){if(!zn.length)return fr;var Tr=_toArray(zn),Pr=Tr[0],Gr=Tr.slice(1),Er;return!rn&&typeof Pr=="number"?Er=[]:Array.isArray(rn)?Er=_toConsumableArray(rn):Er=_objectSpread({},rn),lr&&fr===void 0&&Gr.length===1?delete Er[Pr][Gr[0]]:Er[Pr]=ut(Er[Pr],Gr,fr,lr),Er}function Ye(rn,zn,fr){var lr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return zn.length&&lr&&fr===void 0&&!get(rn,zn.slice(0,-1))?rn:ut(rn,zn,fr,lr)}function Ve(rn){return _typeof(rn)==="object"&&rn!==null&&Object.getPrototypeOf(rn)===Object.prototype}function de(rn){return Array.isArray(rn)?[]:{}}var Ce=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function He(){for(var rn=arguments.length,zn=new Array(rn),fr=0;fr<rn;fr++)zn[fr]=arguments[fr];var lr=de(zn[0]);return zn.forEach(function(Tr){function Pr(Gr,Er){var Wt=new Set(Er),$t=get(Tr,Gr),cn=Array.isArray($t);if(cn||Ve($t)){if(!Wt.has($t)){Wt.add($t);var Rn=get(lr,Gr);cn?lr=Ye(lr,Gr,[]):(!Rn||_typeof(Rn)!=="object")&&(lr=Ye(lr,Gr,de($t))),Ce($t).forEach(function(jt){Pr([].concat(_toConsumableArray(Gr),[jt]),Wt)})}}else lr=Ye(lr,Gr,$t)}Pr([])}),lr}var je={},Ae=[],Ne=function(zn){Ae.push(zn)};function ze(rn,zn){if(0)var fr}function Qe(rn,zn){if(0)var fr}function ot(){je={}}function mt(rn,zn,fr){!zn&&!je[fr]&&(rn(!1,fr),je[fr]=!0)}function Ot(rn,zn){mt(ze,rn,zn)}function xt(rn,zn){mt(Qe,rn,zn)}Ot.preMessage=Ne,Ot.resetWarned=ot,Ot.noteOnce=xt;var Ut=null,xn=10;function Ft(rn,zn,fr,lr,Tr,Pr,Gr,Er){var Wt=te.useRef(),$t=te.useState(null),cn=(0,Te.Z)($t,2),Rn=cn[0],jt=cn[1];return Ge(function(){if(Rn&&Rn.times<xn){if(!rn.current){jt(function(Oi){return(0,Je.Z)({},Oi)});return}Pr();var an=Rn.targetAlign,Tn=Rn.originAlign,vn=Rn.index,Bn=Rn.offset,_n=rn.current.clientHeight,hr=!1,ei=an,Ir=null;if(_n){for(var Lr=an||Tn,Wr=0,Vr=0,nn=0,Jt=Math.min(zn.length-1,vn),pn=0;pn<=Jt;pn+=1){var tr=Tr(zn[pn]);Vr=Wr;var Ar=fr.get(tr);nn=Vr+(Ar===void 0?lr:Ar),Wr=nn}for(var jn=Lr==="top"?Bn:_n-Bn,Jn=Jt;Jn>=0;Jn-=1){var ir=Tr(zn[Jn]),kr=fr.get(ir);if(kr===void 0){hr=!0;break}if(jn-=kr,jn<=0)break}switch(Lr){case"top":Ir=Vr-Bn;break;case"bottom":Ir=nn-_n+Bn;break;default:{var Ur=rn.current.scrollTop,Wn=Ur+_n;Vr<Ur?ei="top":nn>Wn&&(ei="bottom")}}Ir!==null&&Gr(Ir),Ir!==Rn.lastTop&&(hr=!0)}hr&&jt(function(Oi){return(0,Je.Z)((0,Je.Z)({},Oi),{},{times:Oi.times+1,targetAlign:ei,lastTop:Ir})})}},[Rn,rn.current]),function(an){if(an==null){Er();return}if(ge.cancel(Wt.current),typeof an=="number")Gr(an);else if(an&&(0,x.Z)(an)==="object"){var Tn,vn=an.align;"index"in an?Tn=an.index:Tn=zn.findIndex(function(hr){return Tr(hr)===an.key});var Bn=an.offset,_n=Bn===void 0?0:Bn;jt({times:0,index:Tn,offset:_n,originAlign:vn})}}}function Qt(rn,zn,fr,lr){var Tr=fr-rn,Pr=zn-fr,Gr=Math.min(Tr,Pr)*2;if(lr<=Gr){var Er=Math.floor(lr/2);return lr%2?fr+Er+1:fr-Er}return Tr>Pr?fr-(lr-Pr):fr+(lr-Tr)}function Zt(rn,zn,fr){var lr=rn.length,Tr=zn.length,Pr,Gr;if(lr===0&&Tr===0)return null;lr<Tr?(Pr=rn,Gr=zn):(Pr=zn,Gr=rn);var Er={__EMPTY_ITEM__:!0};function Wt(Tn){return Tn!==void 0?fr(Tn):Er}for(var $t=null,cn=Math.abs(lr-Tr)!==1,Rn=0;Rn<Gr.length;Rn+=1){var jt=Wt(Pr[Rn]),an=Wt(Gr[Rn]);if(jt!==an){$t=Rn,cn=cn||jt!==Wt(Gr[Rn+1]);break}}return $t===null?null:{index:$t,multiple:cn}}function bn(rn,zn,fr){var lr=te.useState(rn),Tr=(0,Te.Z)(lr,2),Pr=Tr[0],Gr=Tr[1],Er=te.useState(null),Wt=(0,Te.Z)(Er,2),$t=Wt[0],cn=Wt[1];return te.useEffect(function(){var Rn=Zt(Pr||[],rn||[],zn);(Rn==null?void 0:Rn.index)!==void 0&&(fr==null||fr(Rn.index),cn(rn[Rn.index])),Gr(rn)},[rn]),[$t]}var Pt=(typeof navigator=="undefined"?"undefined":(0,x.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),zt=Pt,sn=function(rn,zn){var fr=(0,te.useRef)(!1),lr=(0,te.useRef)(null);function Tr(){clearTimeout(lr.current),fr.current=!0,lr.current=setTimeout(function(){fr.current=!1},50)}var Pr=(0,te.useRef)({top:rn,bottom:zn});return Pr.current.top=rn,Pr.current.bottom=zn,function(Gr){var Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=Gr<0&&Pr.current.top||Gr>0&&Pr.current.bottom;return Er&&Wt?(clearTimeout(lr.current),fr.current=!1):(!Wt||fr.current)&&Tr(),!fr.current&&Wt}};function yn(rn,zn,fr,lr,Tr){var Pr=(0,te.useRef)(0),Gr=(0,te.useRef)(null),Er=(0,te.useRef)(null),Wt=(0,te.useRef)(!1),$t=sn(zn,fr);function cn(Bn,_n){ge.cancel(Gr.current),Pr.current+=_n,Er.current=_n,!$t(_n)&&(zt||Bn.preventDefault(),Gr.current=ge(function(){var hr=Wt.current?10:1;Tr(Pr.current*hr),Pr.current=0}))}function Rn(Bn,_n){Tr(_n,!0),zt||Bn.preventDefault()}var jt=(0,te.useRef)(null),an=(0,te.useRef)(null);function Tn(Bn){if(rn){ge.cancel(an.current),an.current=ge(function(){jt.current=null},2);var _n=Bn.deltaX,hr=Bn.deltaY,ei=Bn.shiftKey,Ir=_n,Lr=hr;(jt.current==="sx"||!jt.current&&ei&&hr&&!_n)&&(Ir=hr,Lr=0,jt.current="sx");var Wr=Math.abs(Ir),Vr=Math.abs(Lr);jt.current===null&&(jt.current=lr&&Wr>Vr?"x":"y"),jt.current==="y"?cn(Bn,Lr):Rn(Bn,Ir)}}function vn(Bn){rn&&(Wt.current=Bn.detail===Er.current)}return[Tn,vn]}var kn=14/15;function Gn(rn,zn,fr){var lr=(0,te.useRef)(!1),Tr=(0,te.useRef)(0),Pr=(0,te.useRef)(null),Gr=(0,te.useRef)(null),Er,Wt=function(jt){if(lr.current){var an=Math.ceil(jt.touches[0].pageY),Tn=Tr.current-an;Tr.current=an,fr(Tn)&&jt.preventDefault(),clearInterval(Gr.current),Gr.current=setInterval(function(){Tn*=kn,(!fr(Tn,!0)||Math.abs(Tn)<=.1)&&clearInterval(Gr.current)},16)}},$t=function(){lr.current=!1,Er()},cn=function(jt){Er(),jt.touches.length===1&&!lr.current&&(lr.current=!0,Tr.current=Math.ceil(jt.touches[0].pageY),Pr.current=jt.target,Pr.current.addEventListener("touchmove",Wt),Pr.current.addEventListener("touchend",$t))};Er=function(){Pr.current&&(Pr.current.removeEventListener("touchmove",Wt),Pr.current.removeEventListener("touchend",$t))},Ge(function(){return rn&&zn.current.addEventListener("touchstart",cn),function(){var Rn;(Rn=zn.current)===null||Rn===void 0||Rn.removeEventListener("touchstart",cn),Er(),clearInterval(Gr.current)}},[rn])}var dr=20;function Or(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fr=rn/zn*100;return isNaN(fr)&&(fr=0),fr=Math.max(fr,dr),fr=Math.min(fr,rn/2),Math.floor(fr)}function zr(rn,zn,fr,lr){var Tr=te.useMemo(function(){return[new Map,[]]},[rn,fr.id,lr]),Pr=(0,Te.Z)(Tr,2),Gr=Pr[0],Er=Pr[1],Wt=function(cn){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cn,jt=Gr.get(cn),an=Gr.get(Rn);if(jt===void 0||an===void 0)for(var Tn=rn.length,vn=Er.length;vn<Tn;vn+=1){var Bn,_n=rn[vn],hr=zn(_n);Gr.set(hr,vn);var ei=(Bn=fr.get(hr))!==null&&Bn!==void 0?Bn:lr;if(Er[vn]=(Er[vn-1]||0)+ei,hr===cn&&(jt=vn),hr===Rn&&(an=vn),jt!==void 0&&an!==void 0)break}return{top:Er[jt-1]||0,bottom:Er[an]}};return Wt}var Hr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Dr=[],Kr={overflowY:"auto",overflowAnchor:"none"};function Ai(rn,zn){var fr=rn.prefixCls,lr=fr===void 0?"rc-virtual-list":fr,Tr=rn.className,Pr=rn.height,Gr=rn.itemHeight,Er=rn.fullHeight,Wt=Er===void 0?!0:Er,$t=rn.style,cn=rn.data,Rn=rn.children,jt=rn.itemKey,an=rn.virtual,Tn=rn.direction,vn=rn.scrollWidth,Bn=rn.component,_n=Bn===void 0?"div":Bn,hr=rn.onScroll,ei=rn.onVirtualScroll,Ir=rn.onVisibleChange,Lr=rn.innerProps,Wr=rn.extraRender,Vr=rn.styles,nn=(0,ie.Z)(rn,Hr),Jt=!!(an!==!1&&Pr&&Gr),pn=Jt&&cn&&(Gr*cn.length>Pr||!!vn),tr=Tn==="rtl",Ar=oe()(lr,(0,ve.Z)({},"".concat(lr,"-rtl"),tr),Tr),jn=cn||Dr,Jn=(0,te.useRef)(),ir=(0,te.useRef)(),kr=(0,te.useState)(0),Ur=(0,Te.Z)(kr,2),Wn=Ur[0],Oi=Ur[1],bi=(0,te.useState)(0),xa=(0,Te.Z)(bi,2),ha=xa[0],ia=xa[1],Ha=(0,te.useState)(!1),Ji=(0,Te.Z)(Ha,2),Wi=Ji[0],wa=Ji[1],Fa=function(){wa(!0)},Ii=function(){wa(!1)},la=te.useCallback(function(en){return typeof jt=="function"?jt(en):en==null?void 0:en[jt]},[jt]),Oa={getKey:la};function ao(en){Oi(function(Ln){var Qn;typeof en=="function"?Qn=en(Ln):Qn=en;var On=Vn(Qn);return Jn.current.scrollTop=On,On})}var Qa=(0,te.useRef)({start:0,end:jn.length}),Ni=(0,te.useRef)(),mn=bn(jn,la),ln=(0,Te.Z)(mn,1),Fn=ln[0];Ni.current=Fn;var or=We(la,null,null),br=(0,Te.Z)(or,4),Xr=br[0],oi=br[1],pi=br[2],Ti=br[3],vi=te.useMemo(function(){if(!Jt)return{scrollHeight:void 0,start:0,end:jn.length-1,offset:void 0};if(!pn){var en;return{scrollHeight:((en=ir.current)===null||en===void 0?void 0:en.offsetHeight)||0,start:0,end:jn.length-1,offset:void 0}}for(var Ln=0,Qn,On,Kn,vr=jn.length,Br=0;Br<vr;Br+=1){var Cr=jn[Br],sr=la(Cr),Mr=pi.get(sr),Nr=Ln+(Mr===void 0?Gr:Mr);Nr>=Wn&&Qn===void 0&&(Qn=Br,On=Ln),Nr>Wn+Pr&&Kn===void 0&&(Kn=Br),Ln=Nr}return Qn===void 0&&(Qn=0,On=0,Kn=Math.ceil(Pr/Gr)),Kn===void 0&&(Kn=jn.length-1),Kn=Math.min(Kn+1,jn.length-1),{scrollHeight:Ln,start:Qn,end:Kn,offset:On}},[pn,Jt,Wn,jn,Ti,Pr]),Ri=vi.scrollHeight,$i=vi.start,ni=vi.end,Sn=vi.offset;Qa.current.start=$i,Qa.current.end=ni;var Pn=te.useState({width:0,height:Pr}),Yn=(0,Te.Z)(Pn,2),qe=Yn[0],yt=Yn[1],St=function(Ln){yt({width:Ln.width||Ln.offsetWidth,height:Ln.height||Ln.offsetHeight})},Dt=(0,te.useRef)(),Tt=(0,te.useRef)(),Nt=te.useMemo(function(){return Or(qe.width,vn)},[qe.width,vn]),_t=te.useMemo(function(){return Or(qe.height,Ri)},[qe.height,Ri]),on=Ri-Pr,gn=(0,te.useRef)(on);gn.current=on;function Vn(en){var Ln=en;return Number.isNaN(gn.current)||(Ln=Math.min(Ln,gn.current)),Ln=Math.max(Ln,0),Ln}var qn=Wn<=0,Xn=Wn>=on,Dn=sn(qn,Xn),In=function(){return{x:tr?-ha:ha,y:Wn}},Cn=(0,te.useRef)(In()),Zn=Xe(function(){if(ei){var en=In();(Cn.current.x!==en.x||Cn.current.y!==en.y)&&(ei(en),Cn.current=en)}});function pr(en,Ln){var Qn=en;Ln?((0,ae.flushSync)(function(){ia(Qn)}),Zn()):ao(Qn)}function $n(en){var Ln=en.currentTarget.scrollTop;Ln!==Wn&&ao(Ln),hr==null||hr(en),Zn()}var ar=function(Ln){var Qn=Ln,On=vn-qe.width;return Qn=Math.max(Qn,0),Qn=Math.min(Qn,On),Qn},ur=Xe(function(en,Ln){Ln?((0,ae.flushSync)(function(){ia(function(Qn){var On=Qn+(tr?-en:en);return ar(On)})}),Zn()):ao(function(Qn){var On=Qn+en;return On})}),mr=yn(Jt,qn,Xn,!!vn,ur),wr=(0,Te.Z)(mr,2),kt=wr[0],It=wr[1];Gn(Jt,Jn,function(en,Ln){return Dn(en,Ln)?!1:(kt({preventDefault:function(){},deltaY:en}),!0)}),Ge(function(){function en(Qn){Jt&&Qn.preventDefault()}var Ln=Jn.current;return Ln.addEventListener("wheel",kt),Ln.addEventListener("DOMMouseScroll",It),Ln.addEventListener("MozMousePixelScroll",en),function(){Ln.removeEventListener("wheel",kt),Ln.removeEventListener("DOMMouseScroll",It),Ln.removeEventListener("MozMousePixelScroll",en)}},[Jt]),Ge(function(){vn&&ia(function(en){return ar(en)})},[qe.width,vn]);var qt=function(){var Ln,Qn;(Ln=Dt.current)===null||Ln===void 0||Ln.delayHidden(),(Qn=Tt.current)===null||Qn===void 0||Qn.delayHidden()},Yt=Ft(Jn,jn,pi,Gr,la,function(){return oi(!0)},ao,qt);te.useImperativeHandle(zn,function(){return{getScrollInfo:In,scrollTo:function(Ln){function Qn(On){return On&&(0,x.Z)(On)==="object"&&("left"in On||"top"in On)}Qn(Ln)?(Ln.left!==void 0&&ia(ar(Ln.left)),Yt(Ln.top)):Yt(Ln)}}}),Ge(function(){if(Ir){var en=jn.slice($i,ni+1);Ir(en,jn)}},[$i,ni,jn]);var En=zr(jn,la,pi,Gr),Hn=Wr==null?void 0:Wr({start:$i,end:ni,virtual:pn,offsetX:ha,offsetY:Sn,rtl:tr,getSize:En}),Ht=ke(jn,$i,ni,vn,Xr,Rn,Oa),Vt=null;Pr&&(Vt=(0,Je.Z)((0,ve.Z)({},Wt?"height":"maxHeight",Pr),Kr),Jt&&(Vt.overflowY="hidden",vn&&(Vt.overflowX="hidden"),Wi&&(Vt.pointerEvents="none")));var Gt={};return tr&&(Gt.dir="rtl"),te.createElement("div",(0,Oe.Z)({style:(0,Je.Z)((0,Je.Z)({},$t),{},{position:"relative"}),className:Ar},Gt,nn),te.createElement(he.Z,{onResize:St},te.createElement(_n,{className:"".concat(lr,"-holder"),style:Vt,ref:Jn,onScroll:$n,onMouseEnter:qt},te.createElement(se,{prefixCls:lr,height:Ri,offsetX:ha,offsetY:Sn,scrollWidth:vn,onInnerResize:oi,ref:ir,innerProps:Lr,rtl:tr,extra:Hn},Ht))),pn&&Ri>Pr&&te.createElement(be,{ref:Dt,prefixCls:lr,scrollOffset:Wn,scrollRange:Ri,rtl:tr,onScroll:pr,onStartMove:Fa,onStopMove:Ii,spinSize:_t,containerSize:qe.height,style:Vr==null?void 0:Vr.verticalScrollBar,thumbStyle:Vr==null?void 0:Vr.verticalScrollBarThumb}),pn&&vn&&te.createElement(be,{ref:Tt,prefixCls:lr,scrollOffset:ha,scrollRange:vn,rtl:tr,onScroll:pr,onStartMove:Fa,onStopMove:Ii,spinSize:Nt,containerSize:qe.width,horizontal:!0,style:Vr==null?void 0:Vr.horizontalScrollBar,thumbStyle:Vr==null?void 0:Vr.horizontalScrollBarThumb}))}var Di=te.forwardRef(Ai);Di.displayName="List";var Zi=Di,di=Zi},66392:function(tn,Kt){"use strict";var me;var Oe=Symbol.for("react.element"),Je=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ie=Symbol.for("react.provider"),te=Symbol.for("react.context"),ae=Symbol.for("react.server_context"),ne=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),fe;fe=Symbol.for("react.module.reference");function pe(le){if(typeof le=="object"&&le!==null){var Se=le.$$typeof;switch(Se){case Oe:switch(le=le.type,le){case x:case ve:case Te:case oe:case he:return le;default:switch(le=le&&le.$$typeof,le){case ae:case te:case ne:case se:case re:case ie:return le;default:return Se}}case Je:return Se}}}me=te,me=ie,me=Oe,me=ne,me=x,me=se,me=re,me=Je,me=ve,me=Te,me=oe,me=he,me=function(){return!1},me=function(){return!1},me=function(le){return pe(le)===te},me=function(le){return pe(le)===ie},me=function(le){return typeof le=="object"&&le!==null&&le.$$typeof===Oe},me=function(le){return pe(le)===ne},me=function(le){return pe(le)===x},me=function(le){return pe(le)===se},me=function(le){return pe(le)===re},me=function(le){return pe(le)===Je},me=function(le){return pe(le)===ve},me=function(le){return pe(le)===Te},me=function(le){return pe(le)===oe},me=function(le){return pe(le)===he},me=function(le){return typeof le=="string"||typeof le=="function"||le===x||le===ve||le===Te||le===oe||le===he||le===ce||typeof le=="object"&&le!==null&&(le.$$typeof===se||le.$$typeof===re||le.$$typeof===ie||le.$$typeof===te||le.$$typeof===ne||le.$$typeof===fe||le.getModuleId!==void 0)},me=pe},31461:function(tn,Kt,me){"use strict";me(66392)},58971:function(tn,Kt,me){var Oe=me(62195),Je=me(39015),x=[me(19257)];tn.exports=Oe.createStore(Je,x)},19257:function(tn,Kt,me){tn.exports=Oe;function Oe(){return me(55703),{}}},55703: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(tn){return tn<10?"0"+tn:tn}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(tn){return rx_escapable.lastIndex=0,rx_escapable.test(tn)?'"'+tn.replace(rx_escapable,function(Kt){var me=meta[Kt];return typeof me=="string"?me:"\\u"+("0000"+Kt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+tn+'"'}function str(tn,Kt){var me,Oe,Je,x,Te=gap,ve,ie=Kt[tn];switch(ie&&typeof ie=="object"&&typeof ie.toJSON=="function"&&(ie=ie.toJSON(tn)),typeof rep=="function"&&(ie=rep.call(Kt,tn,ie)),typeof ie){case"string":return quote(ie);case"number":return isFinite(ie)?String(ie):"null";case"boolean":case"null":return String(ie);case"object":if(!ie)return"null";if(gap+=indent,ve=[],Object.prototype.toString.apply(ie)==="[object Array]"){for(x=ie.length,me=0;me<x;me+=1)ve[me]=str(me,ie)||"null";return Je=ve.length===0?"[]":gap?`[
|
|
|
`+gap+ve.join(`,
|
|
|
`+gap)+`
|
|
|
`+Te+"]":"["+ve.join(",")+"]",gap=Te,Je}if(rep&&typeof rep=="object")for(x=rep.length,me=0;me<x;me+=1)typeof rep[me]=="string"&&(Oe=rep[me],Je=str(Oe,ie),Je&&ve.push(quote(Oe)+(gap?": ":":")+Je));else for(Oe in ie)Object.prototype.hasOwnProperty.call(ie,Oe)&&(Je=str(Oe,ie),Je&&ve.push(quote(Oe)+(gap?": ":":")+Je));return Je=ve.length===0?"{}":gap?`{
|
|
|
`+gap+ve.join(`,
|
|
|
`+gap)+`
|
|
|
`+Te+"}":"{"+ve.join(",")+"}",gap=Te,Je}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(tn,Kt,me){var Oe;if(gap="",indent="",typeof me=="number")for(Oe=0;Oe<me;Oe+=1)indent+=" ";else typeof me=="string"&&(indent=me);if(rep=Kt,Kt&&typeof Kt!="function"&&(typeof Kt!="object"||typeof Kt.length!="number"))throw new Error("JSON.stringify");return str("",{"":tn})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(tn,Kt){var me,Oe,Je=tn[Kt];if(Je&&typeof Je=="object")for(me in Je)Object.prototype.hasOwnProperty.call(Je,me)&&(Oe=walk(Je,me),Oe!==void 0?Je[me]=Oe:delete Je[me]);return reviver.call(tn,Kt,Je)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(tn){return"\\u"+("0000"+tn.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")})}()},62195:function(tn,Kt,me){var Oe=me(69078),Je=Oe.slice,x=Oe.pluck,Te=Oe.each,ve=Oe.bind,ie=Oe.create,te=Oe.isList,ae=Oe.isFunction,ne=Oe.isObject;tn.exports={createStore:re};var oe={version:"2.0.12",enabled:!1,get:function(se,ce){var fe=this.storage.read(this._namespacePrefix+se);return this._deserialize(fe,ce)},set:function(se,ce){return ce===void 0?this.remove(se):(this.storage.write(this._namespacePrefix+se,this._serialize(ce)),ce)},remove:function(se){this.storage.remove(this._namespacePrefix+se)},each:function(se){var ce=this;this.storage.each(function(fe,pe){se.call(ce,ce._deserialize(fe),(pe||"").replace(ce._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(se){return this._namespacePrefix=="__storejs_"+se+"_"},createStore:function(){return re.apply(this,arguments)},addPlugin:function(se){this._addPlugin(se)},namespace:function(se){return re(this.storage,this.plugins,se)}};function he(){var se=typeof console=="undefined"?null:console;if(se){var ce=se.warn?se.warn:se.log;ce.apply(se,arguments)}}function re(se,ce,fe){fe||(fe=""),se&&!te(se)&&(se=[se]),ce&&!te(ce)&&(ce=[ce]);var pe=fe?"__storejs_"+fe+"_":"",le=fe?new RegExp("^"+pe):null,Se=/^[a-zA-Z0-9_\-]*$/;if(!Se.test(fe))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var xe={_namespacePrefix:pe,_namespaceRegexp:le,_testStorage:function(Me){try{var ye="__storejs__test__";Me.write(ye,ye);var be=Me.read(ye)===ye;return Me.remove(ye),be}catch(Fe){return!1}},_assignPluginFnProp:function(Me,ye){var be=this[ye];this[ye]=function(){var ke=Je(arguments,0),De=this;function Le(){if(be)return Te(arguments,function(Be,Ue){ke[Ue]=Be}),be.apply(De,ke)}var Ie=[Le].concat(ke);return Me.apply(De,Ie)}},_serialize:function(Me){return JSON.stringify(Me)},_deserialize:function(Me,ye){if(!Me)return ye;var be="";try{be=JSON.parse(Me)}catch(Fe){be=Me}return be!==void 0?be:ye},_addStorage:function(Me){this.enabled||this._testStorage(Me)&&(this.storage=Me,this.enabled=!0)},_addPlugin:function(Me){var ye=this;if(te(Me)){Te(Me,function(ke){ye._addPlugin(ke)});return}var be=x(this.plugins,function(ke){return Me===ke});if(!be){if(this.plugins.push(Me),!ae(Me))throw new Error("Plugins must be function values that return objects");var Fe=Me.call(this);if(!ne(Fe))throw new Error("Plugins must return an object of function properties");Te(Fe,function(ke,De){if(!ae(ke))throw new Error("Bad plugin property: "+De+" from plugin "+Me.name+". Plugins should only return functions.");ye._assignPluginFnProp(ke,De)})}},addStorage:function(Me){he("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(Me)}},ge=ie(xe,oe,{plugins:[]});return ge.raw={},Te(ge,function(Me,ye){ae(Me)&&(ge.raw[ye]=ve(ge,Me))}),Te(se,function(Me){ge._addStorage(Me)}),Te(ce,function(Me){ge._addPlugin(Me)}),ge}},69078:function(tn,Kt,me){var Oe=ve(),Je=ie(),x=te(),Te=typeof window!="undefined"?window:me.g;tn.exports={assign:Oe,create:Je,trim:x,bind:ae,slice:ne,each:oe,map:he,pluck:re,isList:se,isFunction:ce,isObject:fe,Global:Te};function ve(){return Object.assign?Object.assign:function(le,Se,xe,ge){for(var Me=1;Me<arguments.length;Me++)oe(Object(arguments[Me]),function(ye,be){le[be]=ye});return le}}function ie(){if(Object.create)return function(Se,xe,ge,Me){var ye=ne(arguments,1);return Oe.apply(this,[Object.create(Se)].concat(ye))};{let le=function(){};var pe=le;return function(xe,ge,Me,ye){var be=ne(arguments,1);return le.prototype=xe,Oe.apply(this,[new le].concat(be))}}}function te(){return String.prototype.trim?function(le){return String.prototype.trim.call(le)}:function(le){return le.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ae(pe,le){return function(){return le.apply(pe,Array.prototype.slice.call(arguments,0))}}function ne(pe,le){return Array.prototype.slice.call(pe,le||0)}function oe(pe,le){re(pe,function(Se,xe){return le(Se,xe),!1})}function he(pe,le){var Se=se(pe)?[]:{};return re(pe,function(xe,ge){return Se[ge]=le(xe,ge),!1}),Se}function re(pe,le){if(se(pe)){for(var Se=0;Se<pe.length;Se++)if(le(pe[Se],Se))return pe[Se]}else for(var xe in pe)if(pe.hasOwnProperty(xe)&&le(pe[xe],xe))return pe[xe]}function se(pe){return pe!=null&&typeof pe!="function"&&typeof pe.length=="number"}function ce(pe){return pe&&{}.toString.call(pe)==="[object Function]"}function fe(pe){return pe&&{}.toString.call(pe)==="[object Object]"}},39015:function(tn,Kt,me){tn.exports=[me(39627),me(95347),me(34524),me(45580),me(58855),me(8728)]},45580:function(tn,Kt,me){var Oe=me(69078),Je=Oe.Global,x=Oe.trim;tn.exports={name:"cookieStorage",read:ve,write:te,each:ie,remove:ae,clearAll:ne};var Te=Je.document;function ve(he){if(!he||!oe(he))return null;var re="(?:^|.*;\\s*)"+escape(he).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Te.cookie.replace(new RegExp(re),"$1"))}function ie(he){for(var re=Te.cookie.split(/; ?/g),se=re.length-1;se>=0;se--)if(x(re[se])){var ce=re[se].split("="),fe=unescape(ce[0]),pe=unescape(ce[1]);he(pe,fe)}}function te(he,re){he&&(Te.cookie=escape(he)+"="+escape(re)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ae(he){!he||!oe(he)||(Te.cookie=escape(he)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ne(){ie(function(he,re){ae(re)})}function oe(he){return new RegExp("(?:^|;\\s*)"+escape(he).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Te.cookie)}},39627:function(tn,Kt,me){var Oe=me(69078),Je=Oe.Global;tn.exports={name:"localStorage",read:Te,write:ve,each:ie,remove:te,clearAll:ae};function x(){return Je.localStorage}function Te(ne){return x().getItem(ne)}function ve(ne,oe){return x().setItem(ne,oe)}function ie(ne){for(var oe=x().length-1;oe>=0;oe--){var he=x().key(oe);ne(Te(he),he)}}function te(ne){return x().removeItem(ne)}function ae(){return x().clear()}},8728:function(tn){tn.exports={name:"memoryStorage",read:me,write:Oe,each:Je,remove:x,clearAll:Te};var Kt={};function me(ve){return Kt[ve]}function Oe(ve,ie){Kt[ve]=ie}function Je(ve){for(var ie in Kt)Kt.hasOwnProperty(ie)&&ve(Kt[ie],ie)}function x(ve){delete Kt[ve]}function Te(ve){Kt={}}},95347:function(tn,Kt,me){var Oe=me(69078),Je=Oe.Global;tn.exports={name:"oldFF-globalStorage",read:Te,write:ve,each:ie,remove:te,clearAll:ae};var x=Je.globalStorage;function Te(ne){return x[ne]}function ve(ne,oe){x[ne]=oe}function ie(ne){for(var oe=x.length-1;oe>=0;oe--){var he=x.key(oe);ne(x[he],he)}}function te(ne){return x.removeItem(ne)}function ae(){ie(function(ne,oe){delete x[ne]})}},34524:function(tn,Kt,me){var Oe=me(69078),Je=Oe.Global;tn.exports={name:"oldIE-userDataStorage",write:te,read:ae,each:ne,remove:oe,clearAll:he};var x="storejs",Te=Je.document,ve=ce(),ie=(Je.navigator?Je.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function te(fe,pe){if(!ie){var le=se(fe);ve(function(Se){Se.setAttribute(le,pe),Se.save(x)})}}function ae(fe){if(!ie){var pe=se(fe),le=null;return ve(function(Se){le=Se.getAttribute(pe)}),le}}function ne(fe){ve(function(pe){for(var le=pe.XMLDocument.documentElement.attributes,Se=le.length-1;Se>=0;Se--){var xe=le[Se];fe(pe.getAttribute(xe.name),xe.name)}})}function oe(fe){var pe=se(fe);ve(function(le){le.removeAttribute(pe),le.save(x)})}function he(){ve(function(fe){var pe=fe.XMLDocument.documentElement.attributes;fe.load(x);for(var le=pe.length-1;le>=0;le--)fe.removeAttribute(pe[le].name);fe.save(x)})}var re=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function se(fe){return fe.replace(/^\d/,"___$&").replace(re,"___")}function ce(){if(!Te||!Te.documentElement||!Te.documentElement.addBehavior)return null;var fe="script",pe,le,Se;try{le=new ActiveXObject("htmlfile"),le.open(),le.write("<"+fe+">document.w=window</"+fe+'><iframe src="/favicon.ico"></iframe>'),le.close(),pe=le.w.frames[0].document,Se=pe.createElement("div")}catch(xe){Se=Te.createElement("div"),pe=Te.body}return function(xe){var ge=[].slice.call(arguments,0);ge.unshift(Se),pe.appendChild(Se),Se.addBehavior("#default#userData"),Se.load(x),xe.apply(this,ge),pe.removeChild(Se)}}},58855:function(tn,Kt,me){var Oe=me(69078),Je=Oe.Global;tn.exports={name:"sessionStorage",read:Te,write:ve,each:ie,remove:te,clearAll:ae};function x(){return Je.sessionStorage}function Te(ne){return x().getItem(ne)}function ve(ne,oe){return x().setItem(ne,oe)}function ie(ne){for(var oe=x().length-1;oe>=0;oe--){var he=x().key(oe);ne(Te(he),he)}}function te(ne){return x().removeItem(ne)}function ae(){return x().clear()}},25365:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAA0VJREFUOE+V03lI01EcAPD3fjucs4nmwrXNOY/VdBoe0Tqggi5NgsLaWriWZFQEEvRHBxmL+iMo/KMg6KJSCy03mbapo1vXzCvJUstjZTM1bUzZZP6uF5M0Zwr1/nsHn/d93+/7QjBn3GhuZkm5scvRJIgODWX7sKCQT0oRGIAQorlnp+cIAAhnJghhhobvWRPjQ/rJ8eEVXIxGwcFsGBYWQUTFLrN6yCB9qpjdthA2BSGEsEd1X08NOlrPSiM4PxWJCSNL+HwfSZBMp/Mbr6+vVyyVyQm+SJYrCWea5sOmoMqm4ezu9rqSrUpFjzxBPgpoCkCEwO+3IJIgWRWVpiR5cirF40crZZGc3rkYdDgQp+advUXC9YZs2rjBQRCTwK/T6E9KaJoGJEVxyw3GtNUbt11KWSYp+AuyfRlf86baVJezc0sLb1HIxGxg9mEIIaiurVXgJOiUq6WbV8KVRMD+s45hbftL082DWk0TQohaKJn+9bb3H6Ntr16hvfvU6TExMe4A6G2Xc4+ttqIkL1fXBAAIuGVORMje3BpvNRrxM8fz0xfHxY0F7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rXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBXCvxKgV8p8EIU6F6onV+b+ZUCv1LgVwr8SoFfKfArBX6lgHT//O15/DHpUCOZH7Xz2Ylei68w+va7+LScG/9qv+FtxDc6GcdRm++ks7bGutH1pbt2amst21AxNv15Rj959hXFjFjPaNpmUbYwppVJozcK87l5npxf75JcsYdnEqca0ZSvnk+dtaV++e+dwktjzzQsFqTjmum3oRm2ZOtZbSc8hue5j/ie/x3n1nXeSv50ygv8RJ9MY7Hn08O+1+t9nfnNG8EW5xJHZs98NmCsEANdJ/tulLP2PEiP/442nw5z6/XzYTTq6HcmObSBXkSfm/uxtrTdtLk50/A3WgSZtHX812iA3imrbDq2kZxfoWVOo8hxGPXf0yDygP+eR8F3vtqdjrGTHsNN/0Pbo4z2Xadi0fcqZaSOeBTpMX/9KvDPZHnCu9V3vc2r7zvZYW6dyL4T2WE83nQgYlpy73MQwZqdz52czyKns8jT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I+U/UejzbXSaxR/K5ygXVan6UasJJiI6AV8jKgQWdQh+P8NewCBXTkFh5dNNOoB4NwLLtSc05opxCA5sQ2qkzqjlkPGndvq4I2alefyPfrwQWLWvK26J+U4VPtymGNvr6jJCkpX+Gv4bASrciDcnqMQ62IDT82UnbIvbP3v2aDjMISHRqDvhU/jScZAIuZpF7urMIRHhxMtxaDVxkP5s6/PTemjld9JmqnoUAXdp76ZqangOGXnmbuSSwINlw66vnonq757l0gHwoTNt7cz8nd3Yz4f/0XK6vduVqt42shwKRVC5U58oEJnXL9FPjpcPhFGHaBhdxW4sOsYHZjZGul8dDeXg4eBKtw86VGhGVwicBOpT6OxwMMV/3EQg6AWKIUvH5RNolA29CDT3wmNspggFJXkNUkl1IuQKnQixEgIwkJ5MjBYF/fTCG7E6XWDeW06oJpdinfW8BEx7JYaHE0aM0JdIN1IOF8WgwFO5YnABqrkUiiFDCsnyPqU9PKWXmCwc5De9OC0XNdja1QysjHUcte17BFMJCEZ5K6RCDwN/tGnKlws/cKIg8Kj4vMASYVKjdqXExZzAh8op+/5zRwrdHv1HgGwW+UeAbBb5R4BsFvlGgpcA3YPFtR3yjwDcKfKPANwp8o8A3ClyMAv8DD8nJIGmcntAAAAAASUVORK5CYII="},96908:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8D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s2GqjHnj5iOmDaiABrs28DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},36459:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return Oe}});function Oe(Je){if(Je==null)throw new TypeError("Cannot destructure "+Je)}},84279:function(tn,Kt,me){"use strict";var Oe=Object.defineProperty,Je=Object.defineProperties,x=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,te=(a,y,b)=>y in a?Oe(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,ae=(a,y)=>{for(var b in y||(y={}))ve.call(y,b)&&te(a,b,y[b]);if(Te)for(var b of Te(y))ie.call(y,b)&&te(a,b,y[b]);return a},ne=(a,y)=>Je(a,x(y)),oe=a=>typeof a=="symbol"?a:a+"",he=(a,y)=>{var b={};for(var z in a)ve.call(a,z)&&y.indexOf(z)<0&&(b[z]=a[z]);if(a!=null&&Te)for(var z of Te(a))y.indexOf(z)<0&&ie.call(a,z)&&(b[z]=a[z]);return b};function re(a){return Array.isArray(a)}var se={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function ce(){return"window"in globalThis&&"document"in globalThis}function fe(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function pe(){return typeof navigator.vibrate=="function"}function le(){var a,y;if(!ce())return"other";const b=(y=(a=navigator.userAgentData)==null?void 0:a.platform)!=null?y:navigator.platform;return/^mac/i.test(b)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(b)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function Se(){if(!ce())return!0;if(/firefox/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/firefox\/(\d+)/i);return a?parseInt(a[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/edg\/(\d+)/i);return a?parseInt(a[1])>=79:!1}return!0}function xe(){return HTMLElement.prototype.hasOwnProperty("popover")}var ge={strings:se,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ge._locale||(ge._locale=ce()?navigator.language.slice(0,5):"en-US"),ge._locale},set locale(a){ge._locale=a,ge._numberFormatter=void 0,ge.dirty=!0},get numberFormatter(){return ge._numberFormatter||(ge._numberFormatter=new Intl.NumberFormat(ge.locale)),ge._numberFormatter},merge(a,y){if(typeof a=="string"&&y)ge.strings[a]=ae(ae({},ge.strings[a]),y),ge.dirty=!0;else for(const b of Object.keys(a))ge.merge(b,a[b])},get dirty(){return ge._dirty},set dirty(a){ge._dirty||ge._dirty===a||(ge._dirty=!0,setTimeout(()=>{ge._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return ge._subscribers.push(a),ge._subscribers.length-1},unsubscribe(a){a<0||a>=ge._subscribers.length||(ge._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const z=b.getAttribute("data-l10n-tooltip");if(z){const ue=Me(z);ue&&b.setAttribute("data-tooltip",ue)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const z=b.getAttribute("data-l10n-arial-label");if(z){const ue=Me(z);ue&&b.setAttribute("aria-label",ue)}}}};function Me(a,...y){if(a===void 0)return;let b="";const z=ge.locale;ge.strings[z]&&(b=ge.strings[z][a]);const ue=z.slice(0,2);if(!b&&ge.strings[ue]&&(b=ge.strings[ue][a]),b||(b=ge.strings.en[a]),!b)return;const Pe=/(%@|%([0-9]+)\$@)/g;let Ke=Pe.exec(b),tt=0;for(;Ke;){if(y[tt++]){const ht=Ke[2]?parseInt(Ke[2],10)-1:tt-1;let bt=y[ht];typeof bt=="number"&&(bt=ge.numberFormatter.format(bt)),b=b.replace(Ke[1],bt)}Ke=Pe.exec(b)}return b=b.replace(/%%/g,"%"),b}var ye={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},be={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Fe={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},ke={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},De={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},Le={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function Ie(a){var y,b,z,ue,Pe,Ke;const tt=a.split("!");let ct,ht,bt,Bt=255,Xt=255,hn=255,wn=-1;const Sr=tt.length>0&&tt[0].startsWith("-");Sr&&(tt[0]=tt[0].slice(1));for(let ui=0;ui<tt.length;ui++){ct=Bt,ht=Xt,bt=hn;const yr=(y=tt[ui].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],Zr=yr==null?void 0:yr.toLowerCase(),mi=yr&&(Ke=(Pe=(ue=(z=(b=ke[Zr])!=null?b:ke[De[yr]])!=null?z:be[yr])!=null?ue:Le[yr])!=null?Pe:ye[yr])!=null?Ke:tt[ui].trim();let $r=mi.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if($r!=null&&$r[1]&&$r[2]&&$r[3])Bt=Math.max(0,Math.min(255,Number.parseInt($r[1],16))),Xt=Math.max(0,Math.min(255,Number.parseInt($r[2],16))),hn=Math.max(0,Math.min(255,Number.parseInt($r[3],16)));else if($r=mi.match(/^#([\da-f]{3})$/i),$r!=null&&$r[1]){const da=Number.parseInt($r[1][0],16),_a=Number.parseInt($r[1][1],16),Ta=Number.parseInt($r[1][2],16);Bt=Math.max(0,Math.min(255,da*16+da)),Xt=Math.max(0,Math.min(255,_a*16+_a)),hn=Math.max(0,Math.min(255,Ta*16+Ta))}else if($r=mi.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),$r!=null&&$r[1]&&$r[2]&&$r[3])Bt=Math.max(0,Math.min(255,Number.parseInt($r[1]))),Xt=Math.max(0,Math.min(255,Number.parseInt($r[2]))),hn=Math.max(0,Math.min(255,Number.parseInt($r[3])));else return;wn>=0&&(Bt=(1-wn)*Bt+wn*ct,Xt=(1-wn)*Xt+wn*ht,hn=(1-wn)*hn+wn*bt,wn=-1),ui+1<tt.length&&(wn=Math.max(0,Math.min(100,Number.parseInt(tt[++ui])))/100)}return wn>=0&&(Bt=wn*Bt+(1-wn)*ct,Xt=wn*Xt+(1-wn)*ht,hn=wn*hn+(1-wn)*bt),Sr&&(Bt=255-Bt,Xt=255-Xt,hn=255-hn),"#"+("00"+Math.round(Bt).toString(16)).slice(-2)+("00"+Math.round(Xt).toString(16)).slice(-2)+("00"+Math.round(hn).toString(16)).slice(-2)}function Be(a){var y,b;return a=a.trim(),(b=(y=Fe[a.toLowerCase()])!=null?y:Fe[De[a]])!=null?b:Ie(a)}function Ue(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&y.a===void 0&&(y.a=1),y}function _e(a,y,b){return b<0&&(b+=6),b>=6&&(b-=6),b<1?(y-a)*b+a:b<3?y:b<4?(y-a)*(4-b)+a:a}function We(a){let[y,b,z]=[a.h,a.s,a.l];y=(y+360)%360/60,z=Math.max(0,Math.min(z,1)),b=Math.max(0,Math.min(b,1));const ue=z<=.5?z*(b+1):z+b-z*b,Pe=z*2-ue;return{r:Math.round(255*_e(Pe,ue,y+2)),g:Math.round(255*_e(Pe,ue,y)),b:Math.round(255*_e(Pe,ue,y-2))}}function Ze(a){return a<0?0:a>255?255:Math.round(a)}function et(a){const{r:y,g:b,b:z}=a;let ue=((1<<24)+(Ze(y)<<16)+(Ze(b)<<8)+Ze(z)).toString(16).slice(1);return ue[0]===ue[1]&&ue[2]===ue[3]&&ue[4]===ue[5]&&ue[6]===ue[7]&&(ue=ue[0]+ue[2]+ue[4]),"#"+ue}function it(a){let{r:y,g:b,b:z}=a;y=y/255,b=b/255,z=z/255;const ue=Math.min(y,b,z),Pe=Math.max(y,b,z),Ke=Pe-ue;let tt,ct;Pe===ue?tt=0:y===Pe?tt=(b-z)/Ke:b===Pe?tt=2+(z-y)/Ke:z===Pe&&(tt=4+(y-b)/Ke),tt=Math.min(tt*60,360),tt<0&&(tt+=360);const ht=(ue+Pe)/2;return Pe===ue?ct=0:ht<=.5?ct=Ke/(Pe+ue):ct=Ke/(2-Pe-ue),{h:tt,s:ct,l:ht}}function pt(a){let y=Ue(a);if(!y)return a;let{h:b,s:z,l:ue}=it(y);return z+=.1,ue-=.1,et(We({h:b,s:z,l:ue}))}var Ge={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},Xe={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},lt=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function dt(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const z=a.codePointAt(0);if(z===void 0)return a;for(const ue of lt)if((!y||ue.variant===y)&&(!b||ue.style===b)&&z>=ue.offset&&z<ue.offset+ue.len){const Pe=ue.start+z-ue.offset;return String.fromCodePoint(Xe[Pe]||Pe)}return a}function st(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Xe)if(Xe[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of lt)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function nt(a){var y;let b="";for(const z of a){if("{}<>[]$&#^_%:'\u02DC".includes(z)){b+=z;continue}const ue=(y=z.codePointAt(0))!=null?y:0;let Pe=Ge[ue];if(Pe)Pe.startsWith("\\")?b+=Pe+" ":b+=Pe;else{const{char:Ke,variant:tt,style:ct}=st(ue);switch(Pe=Ke,tt){case"double-struck":Pe=`\\mathbb{${Pe}}`;break;case"fraktur":Pe=`\\mathfrak{${Pe}}`;break;case"script":Pe=`\\mathscr{${Pe}}`;break;case"sans-serif":Pe=`\\mathsf{${Pe}}`;break;case"monospace":Pe=`\\mathtt{${Pe}}`;break;case"calligraphic":Pe=`\\mathcal{${Pe}}`;break}switch(ct){case"bold":Pe=`\\mathbf{${Pe}}`;break;case"italic":Pe=`\\mathit{${Pe}}`;break;case"bolditalic":Pe=`\\mathbfit{${Pe}}`;break}b+=Pe}}return b}function rt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var at={},gt=ae({},Ge),vt={},Et={},At={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},ut={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},Ye={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},Ve={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:Ye},"amsmath.sty":{package:ut,primitive:!0},"texvc.sty":{package:At,primitive:!1}},de={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},Ce=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,He,je;Se()?(He=new RegExp("\\p{Letter}","u"),je=new RegExp("[0-9\\p{Letter}]","u")):(He=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,je=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function Ae(a,y,b="mord",z){y!==void 0&&(at[a]={definitionType:"symbol",type:b,variant:z,codepoint:y},gt[y]||(gt[y]=a))}function Ne(a,y,b){if(typeof a=="string"){for(let z=0;z<a.length;z++){const ue=a.charAt(z);Ae(ue,ue.codePointAt(0))}return}for(const[z,ue,Pe,Ke]of a)Ae(z,ue,Pe!=null?Pe:y,Ke!=null?Ke:b)}function ze(a,y){for(let b=a;b<=y;b++)Ae(String.fromCodePoint(b),b)}function Qe(a){var y;return(y=Et[a])!=null?y:null}function ot(a,y){var b,z;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ue=[];for(const Ke in vt)Ke.startsWith(y)&&!vt[Ke].infix&&ue.push({match:Ke,frequency:(b=vt[Ke].frequency)!=null?b:0});for(const Ke in at)Ke.startsWith(y)&&ue.push({match:Ke,frequency:(z=at[Ke].frequency)!=null?z:0});const Pe=y.substring(1);for(const Ke of Object.keys(a.options.macros))Ke.startsWith(Pe)&&ue.push({match:"\\"+Ke,frequency:0});return ue.sort((Ke,tt)=>{var ct,ht;return Ke.frequency===tt.frequency?Ke.match.length===tt.match.length?Ke.match<tt.match?-1:1:Ke.match.length-tt.match.length:((ct=tt.frequency)!=null?ct:0)-((ht=Ke.frequency)!=null?ht:0)}),ue.map(Ke=>Ke.match)}function mt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function Ot(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:mt(b[0].slice(1))});for(let z=1;z<=b.length;z++)y.push(...Ot(b[z]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:mt(b[0].slice(1))});for(let z=1;z<=b.length;z++)y.push(...Ot(b[z]))}return y}function xt(a){if(!a)return"";let y="",b=!0;for(const z of a)typeof z.value=="string"?y+=z.value:b=!1;return b?y:""}function Ut(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const z of a)Et[z]=b}function xn(a,y,b){typeof a=="string"&&(a=[a]);const ue={tabular:!0,params:Ot(y),createAtom:b};for(const Pe of a)Et[Pe]=ue}function Ft(a,y,b){var z,ue;b||(b={});const Pe={definitionType:"function",params:Ot(y),ifMode:b.ifMode,isFunction:(z=b.isFunction)!=null?z:!1,applyMode:b.applyMode,infix:(ue=b.infix)!=null?ue:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")vt["\\"+a]=Pe;else for(const Ke of a)vt["\\"+Ke]=Pe}var Qt;function Zt(a){return Qt||(Qt=Pt(Ve)),a?Pt(ae(ae({},Qt),a)):Qt}function bn(a,y){var b,z,ue,Pe;if(typeof a=="string"){let Ke=0;const tt=a;return/(^|[^\\])#1/.test(tt)&&(Ke=1),/(^|[^\\])#2/.test(tt)&&(Ke=2),/(^|[^\\])#3/.test(tt)&&(Ke=3),/(^|[^\\])#4/.test(tt)&&(Ke=4),/(^|[^\\])#5/.test(tt)&&(Ke=5),/(^|[^\\])#6/.test(tt)&&(Ke=6),/(^|[^\\])#7/.test(tt)&&(Ke=7),/(^|[^\\])#8/.test(tt)&&(Ke=8),/(^|[^\\])#9/.test(tt)&&(Ke=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(z=y==null?void 0:y.captureSelection)!=null?z:!0,args:Ke,def:tt}}return ae({expand:(ue=y==null?void 0:y.expand)!=null?ue:!0,captureSelection:(Pe=y==null?void 0:y.captureSelection)!=null?Pe:!0,args:0},a)}function Pt(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const z=a[b];if(z==null)delete y[b];else if(typeof z=="object"&&"package"in z)for(const ue of Object.keys(z.package))y[ue]=bn(z.package[ue],{expand:!z.primitive,captureSelection:z.captureSelection});else y[b]=bn(z)}return y}function zt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=vt[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=at[a]:de[a]&&(b={definitionType:"symbol",type:"mord",codepoint:de[a]})}else if(y==="math"){if(b=at[a],!b&&a.length===1){const z=yn("math",a.codePointAt(0));return z.startsWith("\\")?ne(ae({},zt(z,"math")),{command:z}):null}}else de[a]?b={definitionType:"symbol",type:"mord",codepoint:de[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function sn(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function yn(a,y){if(y===void 0)return"";if(a==="math"&>[y])return gt[y];if(a==="text"){const b=Object.keys(de).find(z=>de[z]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var kn=[0,.68889,0,0,.72222],Gn=[0,.68889,0,0,.66667],dr=[0,.68889,0,0,.77778],Or=[0,.68889,0,0,.61111],zr=[.16667,.68889,0,0,.77778],Hr=[0,.68889,0,0,.55556],Dr=[0,0,0,0,.25],Kr=[0,.825,0,0,2.33334],Ai=[0,.9,0,0,2.33334],Di=[0,.68889,0,0,.54028],Zi=[-.03598,.46402,0,0,.5],di=[-.13313,.36687,0,0,1],rn=[.01354,.52239,0,0,1],zn=[.01354,.52239,0,0,1.11111],fr=[0,.54986,0,0,1],lr=[0,.69224,0,0,.5],Tr=[0,.43056,0,0,1],Pr=[.08198,.58198,0,0,.77778],Gr=[.19444,.69224,0,0,.41667],Er=[.1808,.675,0,0,1],Wt=[.19444,.69224,0,0,.83334],$t=[.13667,.63667,0,0,1],cn=[-.064,.437,0,0,1.334],Rn=[.08167,.58167,0,0,.77778],jt=[0,.69224,0,0,.72222],an=[0,.69224,0,0,.66667],Tn=[-.13313,.36687,0,0,.77778],vn=[.06062,.54986,0,0,.77778],Bn=[0,.69224,0,0,.77778],_n=[.25583,.75583,0,0,.77778],hr=[.25142,.75726,0,0,.77778],ei=[.20576,.70576,0,0,.77778],Ir=[.30274,.79383,0,0,.77778],Lr=[.22958,.72958,0,0,.77778],Wr=[.1808,.675,0,0,.77778],Vr=[.13667,.63667,0,0,.77778],nn=[.13597,.63597,0,0,.77778],Jt=[.03517,.54986,0,0,.77778],pn=[0,.675,0,0,.77778],tr=[.19444,.69224,0,0,.61111],Ar=[0,.54986,0,0,.76042],jn=[0,.54986,0,0,.66667],Jn=[.0391,.5391,0,0,.77778],ir=[.03517,.54986,0,0,1.33334],kr=[.38569,.88569,0,0,.77778],Ur=[.23222,.74111,0,0,.77778],Wn=[.19444,.69224,0,0,.77778],Oi=[0,.37788,0,0,.5],bi=[0,.54986,0,0,.72222],xa=[0,.69224,0,0,.83334],ha=[.11111,.69224,0,0,.66667],ia=[.26167,.75726,0,0,.77778],Ha=[.48256,.98256,0,0,.77778],Ji=[.28481,.79383,0,0,.77778],Wi=[.08167,.58167,0,0,.22222],wa=[.08167,.58167,0,0,.38889],Fa=[0,.43056,.04028,0,.66667],Ii=[.41951,.91951,0,0,.77778],la=[.24982,.74947,0,0,.38865],Oa=[.08319,.58283,0,0,.75623],ao=[0,.10803,0,0,.27764],Qa=[0,.47534,0,0,.50181],Ni=[.18906,.47534,0,0,.50181],mn=[0,.69141,0,0,.50181],ln=[.24982,.74947,0,0,.27764],Fn=[0,.69141,0,0,.21471],or=[.25,.75,0,0,.44722],br=[0,.64444,0,0,.575],Xr=[.08556,.58556,0,0,.89444],oi=[0,.69444,0,0,.89444],pi=[0,.68611,0,0,.9],Ti=[0,.68611,0,0,.86944],vi=[.25,.75,0,0,.575],Ri=[.25,.75,0,0,.31944],$i=[0,.69444,0,0,.63889],ni=[0,.69444,0,0,.31944],Sn=[0,.44444,0,0,.63889],Pn=[0,.44444,0,0,.51111],Yn=[0,.69444,0,0,.575],qe=[.13333,.63333,0,0,.89444],yt=[0,.44444,0,0,.31944],St=[0,.69444,0,0,.86944],Dt=[0,.68611,0,0,.69166],Tt=[0,.68611,0,0,.83055],Nt=[0,.68611,0,0,.89444],_t=[0,.69444,0,0,.60278],on=[.19444,.69444,0,0,.51111],gn=[0,.69444,0,0,.83055],Vn=[-.10889,.39111,0,0,1.14999],qn=[.19444,.69444,0,0,.575],Xn=[.19444,.69444,0,0,1.14999],Dn=[.19444,.69444,0,0,.70277],In=[.05556,.75,0,0,.575],Cn=[0,.68611,0,0,.95833],Zn=[.08556,.58556,0,0,.76666],pr=[-.02639,.47361,0,0,.575],$n=[0,.44444,0,0,.89444],ar=[0,.55556,0,0,.76666],ur=[-.10889,.39111,0,0,.89444],mr=[.00222,.50222,0,0,.89444],wr=[.19667,.69667,0,0,.89444],kt=[.08556,.58556,0,0,1.14999],It=[0,.69444,0,0,.70277],qt=[-.02778,.47222,0,0,.575],Yt=[.25,.75,0,0,.51111],En=[-.13889,.36111,0,0,1.14999],Hn=[.19444,.69444,0,0,1.02222],Ht=[.12963,.69444,0,0,.89444],Vt=[.19444,.69444,0,0,.44722],Gt=[0,.64444,.13167,0,.59111],en=[.19444,.64444,.13167,0,.59111],Ln=[0,.68611,.17208,0,.8961],Qn=[.19444,.44444,.105,0,.53222],On=[0,.44444,.085,0,.82666],Kn=[0,.69444,.06709,0,.59111],vr=[0,.69444,.12945,0,.35555],Br=[0,.69444,0,0,.94888],Cr=[0,.69444,.11472,0,.59111],sr=[0,.68611,.10778,0,.88555],Mr=[0,.69444,.07939,0,.62055],Nr=[0,.69444,.12417,0,.30667],Yr=[0,.64444,.13556,0,.51111],Rr=[.19444,.64444,.13556,0,.51111],xr=[0,.68333,.16389,0,.74333],ii=[.19444,.43056,.08847,0,.46],ri=[0,.43056,.07514,0,.71555],Fi=[0,.69444,.06646,0,.51111],Ui=[0,.69444,0,0,.83129],aa=[0,.69444,.1225,0,.51111],ji=[0,.68333,.09403,0,.76666],zi=[0,.68333,.11111,0,.76666],Mi=[0,.69444,.06961,0,.51444],ca=[0,.69444,0,0,.27778],Li=[.25,.75,0,0,.38889],li=[0,.64444,0,0,.5],Vi=[0,.69444,0,0,.77778],Sa=[0,.68333,0,0,.75],Ci=[0,.68333,0,0,.77778],Xa=[0,.68333,0,0,.68056],qa=[0,.68333,0,0,.72222],Ja=[.25,.75,0,0,.5],Ra=[.25,.75,0,0,.27778],ua=[0,.69444,0,0,.5],bo=[0,.69444,0,0,.55556],Da=[0,.43056,0,0,.44445],Ki=[0,.43056,0,0,.5],ja=[.19444,.43056,0,0,.55556],lo=[0,.43056,0,0,.55556],Ka=[.08333,.58333,0,0,.77778],io=[0,.43056,0,0,.27778],pa=[0,.66786,0,0,.27778],po=[0,.69444,0,0,.75],mo=[0,.66786,0,0,.5],fo=[0,.68333,0,0,.625],vo=[.19444,.69444,0,0,.44445],Mo=[0,.69444,0,0,.72222],Ho=[.19444,.69444,0,0,.5],ho=[.19444,.69444,0,0,1],ko=[.011,.511,0,0,1.126],$o=[.19444,.69444,0,0,.61111],Yo=[.05556,.75,0,0,.5],as=[0,.68333,0,0,.83334],Bo=[.0391,.5391,0,0,.66667],wo=[-.05555,.44445,0,0,.5],La=[0,.43056,0,0,.77778],za=[0,.55556,0,0,.66667],uo=[-.03625,.46375,0,0,.77778],xo=[-.01688,.48312,0,0,.77778],Fo=[.0391,.5391,0,0,1],es=[0,.69444,0,0,.61111],ms=[-.03472,.46528,0,0,.5],_s=[.25,.75,0,0,.44445],Fs=[-.14236,.35764,0,0,1],os=[.244,.744,0,0,.412],Is=[.19444,.69444,0,0,.88889],no=[.12963,.69444,0,0,.77778],Ea=[.19444,.69444,0,0,.38889],Do=[.011,.511,0,0,1.638],To=[.19444,.69444,0,0,0],Ct=[0,.44444,0,0,.575],Lt=[.19444,.44444,0,0,.575],dn=[0,.68611,0,0,.75555],un=[0,.69444,0,0,.66759],Un=[0,.68611,0,0,.80555],Nn=[0,.68611,.08229,0,.98229],Mn=[0,.68611,0,0,.76666],nr=[0,.44444,0,0,.58472],rr=[.19444,.44444,0,0,.6118],gr=[.19444,.43056,0,0,.5],Jr=[0,.68333,.02778,.08334,.76278],jr=[0,.68333,.08125,.05556,.83125],xi=[0,.43056,0,.05556,.48472],Qr=[.19444,.43056,0,.08334,.51702],ci=[.25,.75,0,0,.42778],qr=[0,.69444,0,0,.55],wi=[0,.69444,0,0,.73334],Hi=[0,.69444,0,0,.79445],oa=[0,.69444,0,0,.51945],fa=[0,.69444,0,0,.70278],qi=[0,.69444,0,0,.76389],va=[.25,.75,0,0,.34306],Bi=[0,.69444,0,0,.56111],ga=[0,.69444,0,0,.25556],Aa=[.19444,.45833,0,0,.56111],si=[0,.45833,0,0,.56111],fi=[0,.69444,0,0,.30556],ki=[0,.69444,0,0,.58056],Ia=[0,.69444,0,0,.67223],ma=[0,.69444,0,0,.85556],Ca=[0,.69444,0,0,.55834],ya=[0,.65556,.11156,0,.5],Na=[0,.69444,.08094,0,.70834],Ba=[.17014,0,0,0,.44445],Za=[0,.69444,.0799,0,.5],eo=[0,.69444,0,0,.73752],Wo=[0,.69444,.09205,0,.5],ro=[0,.69444,.09031,0,.77778],Io=[0,.69444,.07816,0,.27778],vs=[0,.69444,.00316,0,.5],$a=[.19444,.69444,0,0,.83334],ea=[.05556,.75,0,0,.83334],ta=[0,.75,0,0,.5],ba=[.125,.08333,0,0,.27778],Gi=[0,.08333,0,0,.27778],gi=[0,.65556,0,0,.5],na=[0,.69444,0,0,.47222],Xi=[0,.69444,0,0,.66667],Pa=[0,.69444,0,0,.59722],Ua=[0,.69444,0,0,.54167],Ya=[0,.69444,0,0,.70834],Ma=[.25,.75,0,0,.28889],oo=[0,.69444,0,0,.51667],Oo=[0,.44444,0,0,.44445],So=[.19444,.44444,0,0,.51667],jo=[0,.44444,0,0,.38333],ts=[0,.44444,0,0,.51667],_o=[0,.69444,0,0,.83334],ks=[.35001,.85,0,0,.45834],xs=[.35001,.85,0,0,.57778],js=[.35001,.85,0,0,.41667],ns=[.35001,.85,0,0,.58334],Ko=[0,.72222,0,0,.55556],ws=[1e-5,.6,0,0,.66667],ss=[1e-5,.6,0,0,.77778],qo=[.25001,.75,0,0,.94445],Ls=[.306,.805,.19445,0,.47222],Es=[.30612,.805,.19445,0,.47222],Qo=[.25001,.75,0,0,.83334],Zs=[.35001,.85,0,0,.47222],Ol=[.25001,.75,0,0,1.11111],xl=[.65002,1.15,0,0,.59722],ls=[.65002,1.15,0,0,.81111],Co=[.65002,1.15,0,0,.47222],cs=[.65002,1.15,0,0,.66667],Gs=[0,.75,0,0,1],tl=[.55001,1.05,0,0,1.27778],Jo=[.862,1.36,.44445,0,.55556],No=[.86225,1.36,.44445,0,.55556],Zo=[.55001,1.05,0,0,1.11111],Ks=[.65002,1.15,0,0,.52778],As=[.65002,1.15,0,0,.61111],zs=[.55001,1.05,0,0,1.51112],to=[.95003,1.45,0,0,.73611],yi=[.95003,1.45,0,0,1.04445],Yi=[.95003,1.45,0,0,.52778],ka=[.95003,1.45,0,0,.75],Va=[0,.75,0,0,1.44445],Go=[.95003,1.45,0,0,.58334],Xo=[1.25003,1.75,0,0,.79167],gl=[1.25003,1.75,0,0,1.27778],Js=[1.25003,1.75,0,0,.58334],Dl=[1.25003,1.75,0,0,.80556],Ps=[0,.825,0,0,1.8889],Il=[1.25003,1.75,0,0,.63889],ac=[.64502,1.155,0,0,.875],oc=[1e-5,.6,0,0,.875],Kc=[-99e-5,.601,0,0,.66667],Rl=[.64502,1.155,0,0,.66667],Bl=[1e-5,.9,0,0,.88889],mu=[.65002,1.15,0,0,.88889],Al=[.90001,0,0,0,.88889],Qc=[-.00499,.605,0,0,1.05556],sc=[0,.12,0,0,.45],ra=[0,.61111,0,0,.525],wl=[.08333,.69444,0,0,.525],vu=[-.08056,.53055,0,0,.525],gu=[-.05556,.55556,0,0,.525],il=[0,.43056,0,0,.525],Ts=[.22222,.43056,0,0,.525],gc=[0,0,0,0,.525],ju={"AMS-Regular":{32:Dr,65:kn,66:Gn,67:kn,68:kn,69:Gn,70:Or,71:dr,72:dr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:dr,76:Gn,77:[0,.68889,0,0,.94445],78:kn,79:zr,80:Or,81:zr,82:kn,83:Hr,84:Gn,85:kn,86:kn,87:[0,.68889,0,0,1],88:kn,89:kn,90:Gn,107:Hr,160:Dr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Hr,295:Di,710:Kr,732:Ai,770:Kr,771:Ai,989:Rn,1008:Fa,8245:[0,.54986,0,0,.275],8463:Di,8487:kn,8498:Hr,8502:Gn,8503:[0,.68889,0,0,.44445],8504:Gn,8513:[0,.68889,0,0,.63889],8592:Zi,8594:Zi,8602:di,8603:di,8606:rn,8608:rn,8610:zn,8611:zn,8619:fr,8620:fr,8621:[-.13313,.37788,0,0,1.38889],8622:di,8624:lr,8625:lr,8630:Tr,8631:Tr,8634:Pr,8635:Pr,8638:Gr,8639:Gr,8642:Gr,8643:Gr,8644:Er,8646:Er,8647:Er,8648:Wt,8649:Er,8650:Wt,8651:rn,8652:rn,8653:di,8654:di,8655:di,8666:$t,8667:$t,8669:[-.13313,.37788,0,0,1],8672:cn,8674:cn,8705:[0,.825,0,0,.5],8708:Hr,8709:Rn,8717:[0,.43056,0,0,.42917],8722:Zi,8724:[.08198,.69224,0,0,.77778],8726:Rn,8733:Bn,8736:jt,8737:jt,8738:[.03517,.52239,0,0,.72222],8739:Wi,8740:[.25142,.74111,0,0,.27778],8741:wa,8742:[.25142,.74111,0,0,.5],8756:an,8757:an,8764:Tn,8765:[-.13313,.37788,0,0,.77778],8769:Tn,8770:uo,8774:Ir,8776:xo,8778:Rn,8782:vn,8783:vn,8785:Pr,8786:Pr,8787:Pr,8790:Bn,8791:Lr,8796:[.08198,.91667,0,0,.77778],8806:_n,8807:_n,8808:hr,8809:hr,8812:[.25583,.75583,0,0,.5],8814:ei,8815:ei,8816:Ir,8817:Ir,8818:Lr,8819:Lr,8822:Wr,8823:Wr,8828:Vr,8829:Vr,8830:Lr,8831:Lr,8832:ei,8833:ei,8840:Ir,8841:Ir,8842:nn,8843:nn,8847:Jt,8848:Jt,8858:Pr,8859:Pr,8861:Pr,8862:pn,8863:pn,8864:pn,8865:pn,8872:[0,.69224,0,0,.61111],8873:jt,8874:[0,.69224,0,0,.88889],8876:Or,8877:Or,8878:kn,8879:kn,8882:Jt,8883:Jt,8884:Vr,8885:Vr,8888:[0,.54986,0,0,1.11111],8890:ja,8891:tr,8892:tr,8901:[0,.54986,0,0,.27778],8903:Rn,8905:Rn,8906:Rn,8907:Bn,8908:Bn,8909:[-.03598,.46402,0,0,.77778],8910:Ar,8911:Ar,8912:Jt,8913:Jt,8914:jn,8915:jn,8916:an,8918:Jn,8919:Jn,8920:ir,8921:ir,8922:kr,8923:kr,8926:Vr,8927:Vr,8928:Ir,8929:Ir,8934:Ur,8935:Ur,8936:Ur,8937:Ur,8938:ei,8939:ei,8940:Ir,8941:Ir,8994:Wn,8995:Wn,9416:[.15559,.69224,0,0,.90222],9484:lr,9488:lr,9492:Oi,9496:Oi,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:pn,9633:pn,9650:bi,9651:bi,9654:Jt,9660:bi,9661:bi,9664:Jt,9674:ha,9733:[.19444,.69224,0,0,.94445],10003:xa,10016:xa,10731:ha,10846:[.19444,.75583,0,0,.61111],10877:Vr,10878:Vr,10885:_n,10886:_n,10887:nn,10888:nn,10889:ia,10890:ia,10891:Ha,10892:Ha,10901:Vr,10902:Vr,10933:hr,10934:hr,10935:ia,10936:ia,10937:ia,10938:ia,10949:_n,10950:_n,10955:Ji,10956:Ji,57350:Wi,57351:wa,57352:Rn,57353:Fa,57356:hr,57357:hr,57358:Ii,57359:Ir,57360:Ir,57361:Ii,57366:hr,57367:hr,57368:hr,57369:hr,57370:nn,57371:nn},"Caligraphic-Regular":{32:Dr,65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:Dr},"Fraktur-Regular":{32:Dr,33:[0,.69141,0,0,.29574],34:Fn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:la,41:la,42:[0,.62119,0,0,.27764],43:Oa,44:ao,45:Oa,46:ao,47:[.24982,.74947,0,0,.50181],48:Qa,49:Qa,50:Qa,51:Ni,52:Ni,53:Ni,54:mn,55:Ni,56:mn,57:Ni,58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:ln,93:ln,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:Dr,8216:Fn,8217:Fn,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:Dr,33:[0,.69444,0,0,.35],34:_t,35:[.19444,.69444,0,0,.95833],36:In,37:[.05556,.75,0,0,.95833],38:oi,39:ni,40:or,41:or,42:[0,.75,0,0,.575],43:qe,44:[.19444,.15556,0,0,.31944],45:jo,46:[0,.15556,0,0,.31944],47:vi,48:br,49:br,50:br,51:br,52:br,53:br,54:br,55:br,56:br,57:br,58:yt,59:[.19444,.44444,0,0,.31944],60:Xr,61:ur,62:Xr,63:[0,.69444,0,0,.54305],64:oi,65:Ti,66:[0,.68611,0,0,.81805],67:Tt,68:[0,.68611,0,0,.88194],69:dn,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:pi,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Dt,77:[0,.68611,0,0,1.09166],78:pi,79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:Ti,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Ri,92:vi,93:Ri,94:Yn,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:$i,99:Pn,100:$i,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:$i,105:ni,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:ni,109:[0,.44444,0,0,.95833],110:Sn,111:Ct,112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:Sn,118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:Pn,123:vi,124:Ri,125:vi,126:[.35,.34444,0,0,.575],160:Dr,163:[0,.69444,0,0,.86853],168:Yn,172:[0,.44444,0,0,.76666],176:St,177:qe,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:qe,216:[.04861,.73472,0,0,.89444],223:Pa,230:[0,.44444,0,0,.83055],247:qe,248:[.09722,.54167,0,0,.575],305:yt,338:[0,.68611,0,0,1.16944],339:$n,567:[.19444,.44444,0,0,.35139],710:Yn,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Yn,715:Yn,728:Yn,729:ni,730:St,732:Yn,733:Yn,915:Dt,916:Cn,920:Nt,923:Un,926:Mn,928:pi,931:Tt,933:Nt,934:Tt,936:Nt,937:Tt,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:ni,8217:ni,8220:_t,8221:_t,8224:on,8225:on,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:un,8465:gn,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:gn,8501:It,8592:Vn,8593:qn,8594:Vn,8595:qn,8596:Vn,8597:vi,8598:Xn,8599:Xn,8600:Xn,8601:Xn,8636:Vn,8637:Vn,8640:Vn,8641:Vn,8656:Vn,8657:Dn,8658:Vn,8659:Dn,8660:Vn,8661:[.25,.75,0,0,.70277],8704:$i,8706:[0,.69444,.06389,0,.62847],8707:$i,8709:In,8711:Cn,8712:Zn,8715:Zn,8722:qe,8723:qe,8725:vi,8726:vi,8727:qt,8728:pr,8729:pr,8730:[.18,.82,0,0,.95833],8733:$n,8734:[0,.44444,0,0,1.14999],8736:jt,8739:Ri,8741:vi,8743:ar,8744:ar,8745:ar,8746:ar,8747:[.19444,.69444,.12778,0,.56875],8764:ur,8768:[.19444,.69444,0,0,.31944],8771:mr,8776:[.02444,.52444,0,0,.89444],8781:mr,8801:mr,8804:wr,8805:wr,8810:kt,8811:kt,8826:Xr,8827:Xr,8834:Xr,8835:Xr,8838:wr,8839:wr,8846:ar,8849:wr,8850:wr,8851:ar,8852:ar,8853:qe,8854:qe,8855:qe,8856:qe,8857:qe,8866:It,8867:It,8868:oi,8869:oi,8900:pr,8901:[-.02639,.47361,0,0,.31944],8902:qt,8968:Yt,8969:Yt,8970:Yt,8971:Yt,8994:En,8995:En,9651:Hn,9657:qt,9661:Hn,9667:qt,9711:Xn,9824:Ht,9825:Ht,9826:Ht,9827:Ht,9837:[0,.75,0,0,.44722],9838:Vt,9839:Vt,10216:or,10217:or,10815:pi,10927:wr,10928:wr,57376:To},"Main-BoldItalic":{32:Dr,33:[0,.69444,.11417,0,.38611],34:Mr,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:vr,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:Gt,49:Gt,50:Gt,51:Gt,52:en,53:Gt,54:Gt,55:en,56:Gt,57:Gt,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Cr,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:Ln,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:Ln,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:Kn,95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:Qn,104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:Qn,114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:Dr,168:[0,.69444,.11473,0,.59111],176:Br,184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:On,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:On,567:[.19444,.44444,.04611,0,.385],710:Kn,711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:vr,730:Br,732:Cr,733:Cr,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:Ln,931:[0,.68611,.11431,0,.82666],933:sr,934:[0,.68611,.05632,0,.82666],936:sr,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:vr,8217:vr,8220:[0,.69444,.16772,0,.62055],8221:Mr},"Main-Italic":{32:Dr,33:Nr,34:Mi,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:Nr,40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:Yr,49:Yr,50:Yr,51:Yr,52:Rr,53:Yr,54:Yr,55:Rr,56:Yr,57:Yr,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:aa,64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:xr,73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:xr,79:ji,80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:xr,86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:Fi,95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:ii,104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:ii,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:Dr,168:[0,.66786,.10474,0,.51111],176:Ui,184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:ri,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:ri,710:Fi,711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:Ui,732:[0,.66786,.11585,0,.51111],733:aa,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:ji,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:xr,931:[0,.68333,.12028,0,.71555],933:zi,934:[0,.68333,.05986,0,.71555],936:zi,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:Nr,8217:Nr,8220:[0,.69444,.1685,0,.51444],8221:Mi,8463:Di},"Main-Regular":{32:Dr,33:ca,34:ua,35:$a,36:Yo,37:ea,38:Vi,39:ca,40:Li,41:Li,42:ta,43:Ka,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Ja,48:li,49:li,50:li,51:li,52:li,53:li,54:li,55:li,56:li,57:li,58:io,59:[.19444,.43056,0,0,.27778],60:Jn,61:Tn,62:Jn,63:na,64:Vi,65:Sa,66:[0,.68333,0,0,.70834],67:qa,68:[0,.68333,0,0,.76389],69:Xa,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Sa,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ci,76:fo,77:[0,.68333,0,0,.91667],78:Sa,79:Ci,80:Xa,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:qa,85:Sa,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Sa,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Ra,92:Ja,93:Ra,94:ua,95:[.31,.12056,.02778,0,.5],97:Ki,98:bo,99:Da,100:bo,101:Da,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:bo,105:pa,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:ca,109:[0,.43056,0,0,.83334],110:lo,111:Ki,112:ja,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:lo,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:Da,123:Ja,124:Ra,125:Ja,126:[.35,.31786,0,0,.5],160:Dr,163:[0,.69444,0,0,.76909],167:vo,168:mo,172:[0,.43056,0,0,.66667],176:po,177:Ka,182:$o,184:Ba,198:[0,.68333,0,0,.90278],215:Ka,216:[.04861,.73194,0,0,.77778],223:ua,230:[0,.43056,0,0,.72222],247:Ka,248:[.09722,.52778,0,0,.5],305:io,338:[0,.68333,0,0,1.01389],339:La,567:[.19444,.43056,0,0,.30556],710:ua,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:ua,715:ua,728:ua,729:pa,730:po,732:mo,733:ua,915:fo,916:as,920:Ci,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Sa,931:qa,933:Ci,934:qa,936:Ci,937:qa,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:ca,8217:ca,8220:ua,8221:ua,8224:vo,8225:vo,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Di,8465:Mo,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Mo,8501:es,8592:di,8593:Ho,8594:di,8595:Ho,8596:di,8597:Ja,8598:ho,8599:ho,8600:ho,8601:ho,8614:[.011,.511,0,0,1],8617:ko,8618:ko,8636:di,8637:di,8640:di,8641:di,8652:[.011,.671,0,0,1],8656:di,8657:$o,8658:di,8659:$o,8660:di,8661:[.25,.75,0,0,.61111],8704:bo,8706:[0,.69444,.05556,.08334,.5309],8707:bo,8709:Yo,8711:as,8712:Bo,8715:Bo,8722:Ka,8723:Ka,8725:Ja,8726:Ja,8727:ms,8728:wo,8729:wo,8730:[.2,.8,0,0,.83334],8733:La,8734:Tr,8736:jt,8739:Ra,8741:Ja,8743:za,8744:za,8745:za,8746:za,8747:[.19444,.69444,.11111,0,.41667],8764:Tn,8768:[.19444,.69444,0,0,.27778],8771:uo,8773:[-.022,.589,0,0,1],8776:xo,8781:uo,8784:[-.133,.67,0,0,.778],8801:uo,8804:nn,8805:nn,8810:Fo,8811:Fo,8826:Jn,8827:Jn,8834:Jn,8835:Jn,8838:nn,8839:nn,8846:za,8849:nn,8850:nn,8851:za,8852:za,8853:Ka,8854:Ka,8855:Ka,8856:Ka,8857:Ka,8866:es,8867:es,8868:Vi,8869:Vi,8872:[.249,.75,0,0,.867],8900:wo,8901:[-.05555,.44445,0,0,.27778],8902:ms,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:_s,8969:_s,8970:_s,8971:_s,8994:Fs,8995:Fs,9136:os,9137:os,9651:Is,9657:ms,9661:Is,9667:ms,9711:ho,9824:no,9825:no,9826:no,9827:no,9837:[0,.75,0,0,.38889],9838:Ea,9839:Ea,10216:Li,10217:Li,10222:os,10223:os,10229:[.011,.511,0,0,1.609],10230:Do,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:Do,10815:Sa,10927:nn,10928:nn,57376:To},"Math-BoldItalic":{32:Dr,48:Ct,49:Ct,50:Ct,51:Lt,52:Lt,53:Lt,54:br,55:Lt,56:br,57:Lt,65:Ti,66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:Nn,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:dn,77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:un,105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:nr,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:Dr,915:[0,.68611,.15972,0,.65694],916:Cn,920:[0,.68611,.03194,0,.86722],923:Un,926:[0,.68611,.07458,0,.84125],928:Nn,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Mn,936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:nr,960:[0,.44444,.03704,0,.68241],961:rr,962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:rr,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Dr,48:Ki,49:Ki,50:Ki,51:gr,52:gr,53:gr,54:li,55:gr,56:li,57:gr,65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:jr,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:Jr,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:xi,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:Dr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Jr,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:jr,931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:xi,960:[0,.43056,.03588,0,.57003],961:Qr,962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:Qr,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Dr,33:[0,.69444,0,0,.36667],34:Ca,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:fi,40:ci,41:ci,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:qr,49:qr,50:qr,51:qr,52:qr,53:qr,54:qr,55:qr,56:qr,57:qr,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:oa,64:wi,65:wi,66:wi,67:fa,68:Hi,69:[0,.69444,0,0,.64167],70:es,71:wi,72:Hi,73:[0,.69444,0,0,.33056],74:oa,75:qi,76:ki,77:[0,.69444,0,0,.97778],78:Hi,79:Hi,80:fa,81:[.10556,.69444,0,0,.79445],82:fa,83:es,84:wi,85:qi,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:wi,89:[0,.69444,.0275,0,.73334],90:Ia,91:va,93:va,94:qr,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Bi,99:[0,.45833,0,0,.48889],100:Bi,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Bi,105:ga,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:ga,109:[0,.45833,0,0,.86667],110:si,111:[0,.45833,0,0,.55],112:Aa,113:Aa,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:si,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:Dr,168:qr,176:wi,180:qr,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:qr,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:qr,729:fi,730:wi,732:qr,733:qr,915:ki,916:[0,.69444,0,0,.91667],920:ma,923:Ia,926:wi,928:Hi,931:Hi,933:ma,934:Hi,936:ma,937:Hi,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:fi,8217:fi,8220:Ca,8221:Ca},"SansSerif-Italic":{32:Dr,33:[0,.69444,.05733,0,.31945],34:vs,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:Io,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:ba,45:[0,.44444,.01946,0,.33333],46:Gi,47:[.25,.75,.13164,0,.5],48:ya,49:ya,50:ya,51:ya,52:ya,53:ya,54:ya,55:ya,56:ya,57:ya,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:Xi,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:Na,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Ua,77:[0,.69444,.08094,0,.875],78:Na,79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:Za,95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:Dr,168:[0,.67937,.06385,0,.5],176:eo,184:Ba,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Za,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Wo,715:ua,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:eo,732:[0,.67659,.08826,0,.5],733:Wo,915:[0,.69444,.13372,0,.54167],916:_o,920:[0,.69444,.07555,0,.77778],923:es,926:[0,.69444,.12816,0,.66667],928:Na,931:[0,.69444,.11983,0,.72222],933:ro,934:[0,.69444,.04603,0,.72222],936:ro,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Io,8217:Io,8220:[0,.69444,.14205,0,.5],8221:vs},"SansSerif-Regular":{32:Dr,33:[0,.69444,0,0,.31945],34:ua,35:$a,36:Yo,37:ea,38:[0,.69444,0,0,.75834],39:ca,40:Li,41:Li,42:ta,43:Ka,44:ba,45:[0,.44444,0,0,.33333],46:Gi,47:Ja,48:gi,49:gi,50:gi,51:gi,52:gi,53:gi,54:gi,55:gi,56:gi,57:gi,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:na,64:Xi,65:Xi,66:Xi,67:$i,68:[0,.69444,0,0,.72223],69:Pa,70:[0,.69444,0,0,.56945],71:Xi,72:Ya,73:ca,74:na,75:[0,.69444,0,0,.69445],76:Ua,77:[0,.69444,0,0,.875],78:Ya,79:[0,.69444,0,0,.73611],80:$i,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:bo,84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:Xi,89:[0,.69444,.025,0,.66667],90:es,91:Ma,93:Ma,94:ua,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:oo,99:Oo,100:oo,101:Oo,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:oo,105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:ts,111:[0,.44444,0,0,.5],112:So,113:So,114:[0,.44444,.01389,0,.34167],115:jo,116:[0,.57143,0,0,.36111],117:ts,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:Dr,168:[0,.67937,0,0,.5],176:Xi,184:Ba,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:ua,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:ua,715:ua,728:ua,729:[0,.67937,0,0,.27778],730:Xi,732:[0,.67659,0,0,.5],733:ua,915:Ua,916:_o,920:Vi,923:es,926:Xi,928:Ya,931:Mo,933:Vi,934:Mo,936:Vi,937:Mo,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:ca,8217:ca,8220:ua,8221:ua},"Script-Regular":{32:Dr,65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:Dr},"Size1-Regular":{32:Dr,40:ks,41:ks,47:xs,91:js,92:xs,93:js,123:ns,125:ns,160:Dr,710:Ko,732:Ko,770:Ko,771:Ko,8214:[-99e-5,.601,0,0,.77778],8593:ws,8595:ws,8657:ss,8659:ss,8719:qo,8720:qo,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:Es,8748:Ls,8749:Ls,8750:Es,8896:Qo,8897:Qo,8898:Qo,8899:Qo,8968:Zs,8969:Zs,8970:Zs,8971:Zs,9168:Kc,10216:Zs,10217:Zs,10752:Ol,10753:Ol,10754:Ol,10756:Qo,10758:Qo},"Size2-Regular":{32:Dr,40:xl,41:xl,47:ls,91:Co,92:ls,93:Co,123:cs,125:cs,160:Dr,710:Gs,732:Gs,770:Gs,771:Gs,8719:tl,8720:tl,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:No,8748:Jo,8749:Jo,8750:No,8896:Zo,8897:Zo,8898:Zo,8899:Zo,8968:Ks,8969:Ks,8970:Ks,8971:Ks,10216:As,10217:As,10752:zs,10753:zs,10754:zs,10756:Zo,10758:Zo},"Size3-Regular":{32:Dr,40:to,41:to,47:yi,91:Yi,92:yi,93:Yi,123:ka,125:ka,160:Dr,710:Va,732:Va,770:Va,771:Va,8730:[.95003,1.45,0,0,1],8968:Go,8969:Go,8970:Go,8971:Go,10216:ka,10217:ka},"Size4-Regular":{32:Dr,40:Xo,41:Xo,47:gl,91:Js,92:gl,93:Js,123:Dl,125:Dl,160:Dr,710:Ps,732:Ps,770:Ps,771:Ps,8730:[1.25003,1.75,0,0,1],8968:Il,8969:Il,8970:Il,8971:Il,9115:ac,9116:oc,9117:ac,9118:ac,9119:oc,9120:ac,9121:Rl,9122:Kc,9123:Rl,9124:Rl,9125:Kc,9126:Rl,9127:Bl,9128:mu,9129:Al,9130:[0,.3,0,0,.88889],9131:Bl,9132:mu,9133:Al,9143:[.88502,.915,0,0,1.05556],10216:Dl,10217:Dl,57344:Qc,57345:Qc,57680:sc,57681:sc,57682:sc,57683:sc},"Typewriter-Regular":{32:gc,33:ra,34:ra,35:ra,36:wl,37:wl,38:ra,39:ra,40:wl,41:wl,42:[0,.52083,0,0,.525],43:vu,44:[.13889,.125,0,0,.525],45:vu,46:[0,.125,0,0,.525],47:wl,48:ra,49:ra,50:ra,51:ra,52:ra,53:ra,54:ra,55:ra,56:ra,57:ra,58:il,59:[.13889,.43056,0,0,.525],60:gu,61:[-.19549,.41562,0,0,.525],62:gu,63:ra,64:ra,65:ra,66:ra,67:ra,68:ra,69:ra,70:ra,71:ra,72:ra,73:ra,74:ra,75:ra,76:ra,77:ra,78:ra,79:ra,80:ra,81:[.13889,.61111,0,0,.525],82:ra,83:ra,84:ra,85:ra,86:ra,87:ra,88:ra,89:ra,90:ra,91:wl,92:wl,93:wl,94:ra,95:[.09514,0,0,0,.525],96:ra,97:il,98:ra,99:il,100:ra,101:il,102:ra,103:Ts,104:ra,105:ra,106:[.22222,.61111,0,0,.525],107:ra,108:ra,109:il,110:il,111:il,112:Ts,113:Ts,114:il,115:il,116:[0,.55358,0,0,.525],117:il,118:il,119:il,120:il,121:Ts,122:il,123:wl,124:wl,125:wl,126:ra,127:ra,160:gc,176:ra,184:[.19445,0,0,0,.525],305:il,567:Ts,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:ra,715:ra,728:ra,730:ra,770:ra,771:ra,776:ra,915:ra,916:ra,920:ra,923:ra,926:ra,928:ra,931:ra,933:ra,934:ra,936:ra,937:ra,8216:ra,8217:ra,8242:ra,9251:[.11111,.21944,0,0,.525]}},yu=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,lc=10,al=.25,Jc=1.2,zl=.431,$c={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[zl,zl,zl],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[al,al,al],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},yc=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],go=5,yo={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Ss(a,y){a===void 0&&(a=77);const b=ju[y][a];if(b)return{defaultMetrics:!1,depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]};if(a===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const z=String.fromCodePoint(a);if(z in yo)a=yo[z].codePointAt(0);else if(yu.test(z))return a=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var nl={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},gs={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},yl={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
|
|
|
c -179 0 -524 -115 -524 -115
|
|
|
c -5 -1 -9 -5 -9 -10
|
|
|
c 0 -1 1 -2 1 -3
|
|
|
l 4 -22
|
|
|
c 1 -5 5 -9 11 -9
|
|
|
h 2
|
|
|
s 338 93 512 92
|
|
|
c 174 0 513 -92 513 -92
|
|
|
h 2
|
|
|
c 5 0 9 4 11 9
|
|
|
l 5 22
|
|
|
c 1 6 -2 12 -8 13
|
|
|
c 0 0 -342 115 -520 115
|
|
|
z
|
|
|
`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,widetilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,widetilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,widetilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,widetilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};function ol(a){if(gs[a]){const[ht,bt,Bt]=gs[a],Xt=`<span class="stretchy" style="height:${Bt}em"><svg width="100%" height="${Bt}em" viewBox="0 0 ${ht} ${bt}" preserveAspectRatio="none" ><path fill="currentcolor" d="${yl[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Bt/2)/100}em;min-width:0">${Xt}</span>`}const[y,b,z,ue]=nl[a];let Pe,Ke;const tt=z/1e3;y.length===3?(Pe=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],Ke=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(Pe=["slice-1-of-2","slice-2-of-2"],Ke=["xMinYMin","xMaxYMin"]):(Pe=["slice-1-of-1"],Ke=[ue]);const ct=y.map((ht,bt)=>`<span class="${Pe[bt]}" style=height:${tt}em><svg width=400em height=${tt}em viewBox="0 0 400000 ${z}" preserveAspectRatio="${Ke[bt]} slice"><path fill="currentcolor" d="${yl[ht]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${tt}em;min-width:${b}em;">${ct}</span>`}function bc(a){return nl[a]?nl[a][2]/1e3:gs[a][2]}function Hl(a){const y=[];for(let b=0;b<a.length;b++){let z=a.charCodeAt(b);if(z===13&&a.charCodeAt(b+1)===10&&(z=10,b++),(z===13||z===12)&&(z=10),z===0&&(z=65533),z>=55296&&z<=56319){const ue=a.charCodeAt(b+1);if(ue>=56320&&ue<=57343){const Pe=z-55296,Ke=ue-56320;z=jc(2,16)+Pe*jc(2,10)+Ke,b++}}y.push(z)}return y}var _l=8205,Ml=[[_l,1],[65038,2],[127995,5],[129456,4],[917536,96]],Wl,qc=[127462,127487];function eu(a){var y;if(Wl===void 0){Wl={};for(const b of Ml)for(let z=b[0];z<=b[0]+b[1]-1;z++)Wl[z]=!0}return(y=Wl[a])!=null?y:!1}function rf(a){return a>=qc[0]&&a<=qc[1]}function af(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=Hl(a);let z=0;for(;z<b.length;){const ue=b[z++],Pe=b[z];if(Pe===_l){const Ke=z-1;for(z+=2;b[z]===_l;)z+=2;y.push(String.fromCodePoint(...b.slice(Ke,z-Ke+1)))}else if(eu(Pe)){const Ke=z-1;for(;eu(b[z]);)z+=b[z]===_l?2:1;y.push(String.fromCodePoint(...b.slice(Ke,2*z-Ke-1)))}else rf(ue)?(z+=1,y.push(String.fromCodePoint(...b.slice(z-2,2)))):y.push(String.fromCodePoint(ue))}return y}var of=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=af(a)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(a){const y=typeof this.s=="string"?a.exec(this.s.slice(this.pos)):a.exec(this.s.slice(this.pos).join(""));return y!=null&&y[0]?(this.pos+=y[0].length,y[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const a=this.get();if(a==="\\"){if(!this.end()){let y=this.match(/^[a-zA-Z\*]+/);return y?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):y=this.get(),"\\"+y}}else{if(a==="{")return"<{>";if(a==="}")return"<}>";if(a==="^"){if(this.peek()==="^"){this.get();const y=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(y)return String.fromCodePoint(Number.parseInt(y.slice(y.lastIndexOf("^")+1),16))}return a}else if(a==="#"){if(!this.end()){let y=!1;if(/[\d?@]/.test(this.peek())&&(y=!0,this.pos+1<this.s.length)){const b=this.s[this.pos+1];y=/[^\dA-Za-z]/.test(b)}return y?"#"+this.get():"#"}}else if(a==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return a}};function xc(a,y){var b,z,ue,Pe;const Ke=[];let tt=a.next();if(tt&&tt!=="\\relax"){if(tt==="\\noexpand")tt=a.next(),tt&&Ke.push(tt);else if(tt==="\\obeyspaces")a.obeyspaces=!0;else if(tt==="\\bgroup")Ke.push("<{>");else if(tt==="\\egroup")Ke.push("<}>");else if(tt==="\\string"){if(tt=a.next(),tt)if(tt.startsWith("\\"))for(const ct of tt)Ke.push(ct==="\\"?"\\backslash":ct);else tt==="<{>"?Ke.push("\\{"):tt==="<space>"?Ke.push("~"):tt==="<}>"&&Ke.push("\\}")}else if(tt==="\\csname"){for(;a.peek()==="<space>";)a.next();let ct="",ht=!1,bt=[];do{if(bt.length===0)if(/^#[\d?@]$/.test(a.peek())){const Bt=a.get().slice(1);bt=cc((z=(b=y==null?void 0:y(Bt))!=null?b:y==null?void 0:y("?"))!=null?z:"\\placeholder{}",y),tt=bt[0]}else tt=a.next(),bt=tt?[tt]:[];ht=bt.length===0,!ht&&tt==="\\endcsname"&&(ht=!0,bt.shift()),ht||(ht=tt==="<$>"||tt==="<$$>"||tt==="<{>"||tt==="<}>"||typeof tt=="string"&&tt.length>1&&tt.startsWith("\\")),ht||(ct+=bt.shift())}while(!ht);ct&&Ke.push("\\"+ct),Ke.push(...bt)}else if(tt!=="\\endcsname")if(tt.length>1&&tt.startsWith("#")){const ct=tt.slice(1);Ke.push(...cc((Pe=(ue=y==null?void 0:y(ct))!=null?ue:y==null?void 0:y("?"))!=null?Pe:"\\placeholder{}",y))}else Ke.push(tt)}return Ke}function cc(a,y=null){const b=[];let z="";for(const Ke of a.toString().split(/\r?\n/)){z&&b.push(z),z=" ";const tt=Ke.match(/((?:\\%)|[^%])*/);tt!==null&&b.push(tt[0])}const ue=new of(nt(b.join(""))),Pe=[];do Pe.push(...xc(ue,y));while(!ue.end());return Pe}function Eo(a){let y="";const b=[];for(const z of a)z&&(y&&/^[a-zA-Z\*]/.test(z)&&b.push(y),b.push(z),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(z)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(z)?" ":"");return b.join("")}function ys(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:Eo([a,...y.map(b=>`{${b}}`)])}function wc(a){return Eo(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var sf=class nf{constructor(y){nf._registry[y]=this}static createAtom(y,b,z){return nf._registry[y].createAtom(b,zt(b,y),z)}static serialize(y,b){var z;if(!y||y.length===0)return"";if((z=b.skipStyles)!=null&&z){const ue=[];for(const Pe of lf(y)){const Ke=nf._registry[Pe[0].mode];ue.push(...Ke.serialize(Pe,b))}return Eo(ue)}return Eo(nh(y,b))}static getFont(y,b,z){return nf._registry[y].getFont(b,z)}};sf._registry={};var Ll=sf;function lf(a){const y=[];let b=[],z="NONE";for(const ue of a)ue.type!=="first"&&(ue.mode!==z?(b.length>0&&y.push(b),b=[ue],z=ue.mode):b.push(ue));return b.length>0&&y.push(b),y}function Hs(a,y){const b=[];let z=[],ue;for(const Pe of a)if(Pe.type!=="first"&&Pe.style){let Ke;y==="variant"?(Ke=Pe.style.variant,Pe.style.variantStyle&&Pe.style.variantStyle!=="up"&&(Ke+="-"+Pe.style.variantStyle)):Ke=Pe.style[y],Ke===ue?z.push(Pe):(z.length>0&&b.push(z),z=[Pe],ue=Ke)}return z.length>0&&b.push(z),b}function md(a,y){var b;const{parent:z}=a[0],ue=z==null?void 0:z.computedStyle.color,Pe=[];for(const Ke of lf(a)){const tt=y.defaultMode;for(const ct of Hs(Ke,"color")){const ht=ct[0].computedStyle,bt=Ll._registry[ct[0].mode].serialize(ct,ne(ae({},y),{defaultMode:tt==="text"?"text":"math"}));!y.skipStyles&&ht.color&&ht.color!=="none"&&(!z||ue!==ht.color)?Pe.push(ys("\\textcolor",(b=ht.verbatimColor)!=null?b:ht.color,Eo(bt))):Pe.push(Eo(bt))}}return Pe}function th(a,y){const{parent:b}=a[0],z=b==null?void 0:b.computedStyle.backgroundColor;return Hs(a,"backgroundColor").map(ue=>{var Pe;if(ue.length>0||ue[0].type!=="box"){const Ke=ue[0].computedStyle;if(Ke.backgroundColor&&Ke.backgroundColor!=="none"&&(!b||z!==Ke.backgroundColor))return ys("\\colorbox",(Pe=Ke.verbatimBackgroundColor)!=null?Pe:Ke.backgroundColor,Eo(md(ue,ne(ae({},y),{defaultMode:"text"}))))}return Eo(md(ue,y))})}function nh(a,y){if(a.length===0)return[];const{parent:b}=a[0],z=b==null?void 0:b.computedStyle.fontSize,ue=[];for(const Pe of Hs(a,"fontSize")){const Ke=Pe[0].computedStyle.fontSize,tt=th(Pe,y);tt&&(Ke&&Ke!=="auto"&&(!b||z!==Ke)?ue.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][Ke],...tt):ue.push(...tt))}return ue}function vd(a){return a?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[a]:void 0}function tu(a){if(a.length===0)return"ord";const y=vd(a[0].type),b=vd(a[a.length-1].type);return y&&y===b?y:"ord"}function nu(a,y){if(typeof a=="string")return a;if(typeof a=="number"){console.assert(Number.isFinite(a));const b=Math.ceil(100*a)/100;return b===0?"0":b.toString()+(y!=null?y:"")}return""}var hi=class Am{constructor(y,b){var z,ue,Pe,Ke,tt;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:re(y)?this.children=y.filter(ht=>ht!==null):y&&y instanceof Am&&(this.children=[y]),this.children)for(const ht of this.children)ht.parent=this;this.type=(z=b==null?void 0:b.type)!=null?z:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ue=b==null?void 0:b.classes)!=null?ue:"",this.isTight=(Pe=b==null?void 0:b.isTight)!=null?Pe:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ct=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ct=(tt=Ll.getFont((Ke=b.mode)!=null?Ke:"math",this,ne(ae({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?tt:void 0),ct||(ct="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(b==null?void 0:b.maxFontSize)!==void 0&&(this.maxFontSize=b.maxFontSize),bu(this,ct)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,z){if(b===void 0)return;const ue=nu(b,z);ue.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ue)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=nu(y,"em"),this.height-=y,this.depth+=y)}get left(){var y;return(y=this.cssProperties)!=null&&y["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=nu(y,"em")))}set right(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=nu(y,"em")))}set bottom(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=nu(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const z=y.color;z&&z!==b.color&&this.setStyle("color",z);let ue=y.backgroundColor;this.isSelected&&(ue=pt(ue)),ue&&ue!==b.backgroundColor&&(this.setStyle("background-color",ue),this.setStyle("display","inline-block"));const Pe=y.scalingFactor;return this.scale=Pe,this.skew*=Pe,this.italic*=Pe,this}toMarkup(){var y,b,z,ue;let Pe=(y=this.value)!=null?y:"";if(this.children)for(const hn of this.children)Pe+=hn.toMarkup();let Ke="";if(this.svgBody)Ke=ol(this.svgBody);else if(this.svgOverlay){Ke='<span style="',Ke+="display: inline-block;",Ke+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,Ke+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,Ke+='">',Ke+=Pe,Ke+="</span>",Ke+='<svg style="position:absolute;overflow:visible;',Ke+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const hn=(b=this.cssProperties)==null?void 0:b.padding;hn?(Ke+=`top:${hn};`,Ke+=`left:${hn};`,Ke+=`width:calc(100% - 2 * ${hn} );`):Ke+="top:0;left:0;width:100%;",Ke+="z-index:2;",Ke+='"',this.svgStyle&&(Ke+=this.svgStyle),Ke+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,Ke+=`>${this.svgOverlay}</svg>`}let tt="";const ct=this.classes.split(" ");ct.push((z={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?z:""),this.caret==="latex"&&ct.push("ML__latex-caret"),this.isSelected&&ct.push("ML__selected");const ht=ct.length===1?ct[0]:ct.filter((hn,wn,Sr)=>hn.length>0&&Sr.indexOf(hn)===wn).join(" ");if(ht.length>0&&(tt+=` class="${ht}"`),this.id&&(tt+=` data-atom-id=${this.id}`),this.cssId&&(tt+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(tt+=" "+Object.keys(this.attributes).map(hn=>`${hn}="${this.attributes[hn]}"`).join(" ")),this.htmlData){const hn=this.htmlData.split(",");for(const wn of hn){const Sr=wn.match(/([^=]+)=(.+$)/);if(Sr){const ui=Sr[1].trim().replace(/ /g,"-");ui&&(tt+=` data-${ui}="${Sr[2]}" `)}else{const ui=wn.trim().replace(/ /g,"-");ui&&(tt+=` data-${ui} `)}}}const bt=(ue=this.cssProperties)!=null?ue:{};this.hasExplicitWidth&&bt.width===void 0&&(bt.width=`${Math.ceil(this._width*100)/100}em`);const Bt=Object.keys(bt).map(hn=>`${hn}:${bt[hn]}`);if(this.scale!==void 0&&this.scale!==1&&(Pe.length>0||Ke.length>0)&&Bt.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const hn=this.htmlStyle.split(";");let wn="";for(const Sr of hn){const ui=Sr.match(/([^=]+):(.+$)/);if(ui){const yr=ui[1].trim().replace(/ /g,"-");yr&&(wn+=`${yr}:${ui[2]};`)}}wn&&(tt+=` style="${wn}"`)}Bt.length>0&&(tt+=` style="${Bt.join(";")}"`);let Xt="";return tt.length>0||Ke.length>0?Xt=`<span${tt}>${Pe}${Ke}</span>`:Xt=Pe,this.caret==="text"?Xt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Xt+='<span class="ML__caret"></span>'),Xt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,z=y.children&&y.children.length>0;if(b||z)return!1;if(y.cssProperties||this.cssProperties){for(const ct of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ct in y.cssProperties||this.cssProperties&&ct in this.cssProperties)return!1}const ue=this.cssProperties?Object.keys(this.cssProperties).length:0,Pe=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ue!==Pe)return!1;if(ue>0){for(const ct of Object.keys(this.cssProperties))if(this.cssProperties[ct]!==y.cssProperties[ct])return!1}const Ke=this.classes.trim().replace(/\s+/g," ").split(" "),tt=y.classes.trim().replace(/\s+/g," ").split(" ");if(Ke.length!==tt.length)return!1;Ke.sort(),tt.sort();for(const[ct,ht]of Ke.entries())if(ht==="vertical-separator"||ht!==tt[ct])return!1;return this.value+=y.value,this.height=Math.max(this.height,y.height),this.depth=Math.max(this.depth,y.depth),this._width=this._width+y._width,this.maxFontSize=Math.max(this.maxFontSize,y.maxFontSize),this.italic=y.italic,!0}};function gd(a){if(!a||a.length===0)return[];a[0].children=gd(a[0].children);const y=[a[0]];for(let b=1;b<a.length;b++)y[y.length-1].tryCoalesceWith(a[b])||(a[b].children=gd(a[b].children),y.push(a[b]));return y}function Ku(a){return a.children&&(a.children=gd(a.children)),a}function zu(a,y){if(!a)return new hi(null,y);const b=new hi(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const z=[b];if(a.depth!==0){const ue=new hi(null,{classes:"ML__strut--bottom",type:"ignore"});ue.setStyle("height",a.height+a.depth,"em"),ue.setStyle("vertical-align",-a.depth,"em"),z.push(ue)}return z.push(a),new hi(z,ne(ae({},y),{type:"lift"}))}function Ul(a){const y=bc(a)/2,b=new hi(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function bu(a,y){var b;if(a.type==="latex"){a.height=.9,a.depth=.2,a._width=1;return}if(a.value){a.height=-1/0,a.depth=-1/0,a._width=0,a.skew=-1/0,a.italic=-1/0;for(let z=0;z<a.value.length;z++){const ue=Ss(a.value.codePointAt(z),y);a.height=Math.max(a.height,ue.height),a.depth=Math.max(a.depth,ue.depth),a._width+=ue.width,a.skew=ue.skew,a.italic=ue.italic}return}if(a.children&&a.children.length>0){let z=-1/0,ue=-1/0,Pe=0;for(const Ke of a.children)Ke.height>z&&(z=Ke.height),Ke.depth>ue&&(ue=Ke.depth),Pe=Math.max(Pe,(b=Ke.maxFontSize)!=null?b:0);a.height=z,a.depth=ue,a._width=a.children.reduce((Ke,tt)=>Ke+tt.width,0),a.maxFontSize=Pe}}function Hu(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const z=[b],ue=-b.shift-b.box.depth;let Pe=ue;for(let Ke=1;Ke<y.length;Ke++){const tt=y[Ke],ct=-tt.shift-Pe-tt.box.depth,ht=ct-(b.box.height+b.box.depth);Pe=Pe+ct,z.push(ht),z.push(tt),b=tt}return[z,ue]}if("top"in a){let y=a.top;for(const b of a.children)y-=typeof b=="number"?b:b.box.height+b.box.depth;return[a.children,y]}else{if("bottom"in a)return[a.children,-a.bottom];if("firstBaseline"in a){const y=a.firstBaseline[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.firstBaseline,-y.box.depth]}else if("shift"in a){const y=a.children[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.children,-y.box.depth-a.shift]}}return[null,0]}function xu(a){var y;const[b,z]=Hu(a);if(!b)return[[],0,0];const ue=new hi(null,{classes:"pstrut"});let Pe=0;for(const wn of b)if(typeof wn!="number"){const Sr=wn.box;Pe=Math.max(Pe,Sr.maxFontSize,Sr.height)}Pe+=2,ue.height=Pe,ue.setStyle("height",Pe,"em");const Ke=[];let tt=z,ct=z,ht=z,bt=0;for(const wn of b){if(typeof wn=="number")ht+=wn;else{const Sr=wn.box,ui=(y=wn.classes)!=null?y:[],yr=new hi([ue,Sr],{classes:ui.join(" "),style:wn.style});Sr.setStyle("height",Sr.height+Sr.depth,"em"),Sr.setStyle("display","inline-block"),yr.setStyle("top",-Pe-ht-Sr.depth,"em"),wn.marginLeft&&yr.setStyle("margin-left",wn.marginLeft,"em"),wn.marginRight&&yr.setStyle("margin-right",wn.marginRight,"em"),Ke.push(yr),ht+=Sr.height+Sr.depth,bt=Math.max(bt,yr.width)}tt=Math.min(tt,ht),ct=Math.max(ct,ht)}Ke.forEach(wn=>{wn.softWidth=bt});const Bt=new hi(Ke,{classes:"vlist"});if(Bt.softWidth=bt,Bt.height=ct,Bt.setStyle("height",ct,"em"),tt>=0)return[[new hi(Bt,{classes:"vlist-r"})],ct,-tt];const Xt=new hi(new hi(null),{classes:"vlist"});Xt.height=-tt,Xt.setStyle("height",-tt,"em");const hn=new hi(8203,{classes:"vlist-s",maxFontSize:0});return hn.softWidth=0,hn.height=0,hn.depth=0,[[new hi([Bt,hn],{classes:"vlist-r"}),new hi(Xt,{classes:"vlist-r"})],ct,-tt]}var us=class extends hi{constructor(a,y){var b;const[z,ue,Pe]=xu(a);super(z.length===1?z[0]:z,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(z.length===2?" vlist-t2":"")}),this.height=ue,this.depth=Pe,this.softWidth=z.reduce((Ke,tt)=>Math.max(Ke,tt.width),0)}};function rh(a,y){var b,z,ue,Pe,Ke;const tt=a.metrics,ct=new hi(y.base),ht=(b=y.baseShift)!=null?b:0,bt=(z=y.slant)!=null?z:0;let Bt=0,Xt=0;y.above&&(Bt=(ue=y.aboveShift)!=null?ue:Math.max(tt.bigOpSpacing1,tt.bigOpSpacing3-y.above.depth)),y.below&&(Xt=(Pe=y.belowShift)!=null?Pe:Math.max(tt.bigOpSpacing2,tt.bigOpSpacing4-y.below.height));let hn=null;if(y.below&&y.above){const wn=tt.bigOpSpacing5+y.below.height+y.below.depth+Xt+ct.depth+ht;hn=new us({bottom:wn,children:[tt.bigOpSpacing5,{box:y.below,marginLeft:-bt,classes:["ML__center"]},Xt,{box:ct,classes:["ML__center"]},Bt,{box:y.above,marginLeft:bt,classes:["ML__center"]},tt.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)hn=new us({top:ct.height-ht,children:[tt.bigOpSpacing5,{box:y.below,marginLeft:-bt,classes:["ML__center"]},Xt,{box:ct,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const wn=ct.depth+ht;hn=new us({bottom:wn,children:[{box:ct,classes:["ML__center"]},Bt,{box:y.above,marginLeft:bt,classes:["ML__center"]},tt.bigOpSpacing5]}).wrap(a)}else{const wn=ct.depth+ht;hn=new us({bottom:wn,children:[{box:ct},tt.bigOpSpacing5]}).wrap(a)}return new hi(hn,{type:(Ke=y.type)!=null?Ke:"op"})}var yd=7,uc=6,wu=5,Sc=4,zc=3,bl=2,Fl=1,sl=0,Jl=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const z={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys($c).reduce((ue,Pe)=>ne(ae({},ue),{[Pe]:$c[Pe][z]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return $l[[sl,Fl,sl,Fl,bl,zc,bl,zc][this.id]]}get sub(){return $l[[sl,sl,sl,sl,bl,bl,bl,bl][this.id]]}get fracNum(){return $l[[sl,Fl,sl,Fl,bl,zc,Sc,wu][this.id]]}get fracDen(){return $l[[sl,sl,sl,sl,bl,bl,Sc,Sc][this.id]]}get cramp(){return $l[[sl,sl,bl,bl,Sc,Sc,uc,uc][this.id]]}get isTight(){return this.sizeDelta<0}},Hc={7:new Jl(yd,0,!1),6:new Jl(uc,0,!0),5:new Jl(wu,0,!1),4:new Jl(Sc,0,!0),3:new Jl(zc,-3,!1),2:new Jl(bl,-3,!0),1:new Jl(Fl,-4,!1),0:new Jl(sl,-4,!0)},$l=ne(ae({},Hc),{displaystyle:Hc[yd],textstyle:Hc[wu],scriptstyle:Hc[zc],scriptscriptstyle:Hc[Fl]});function ru(a,y){var b;if(!a)return 0;const z={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:lc,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(b=a.unit)!=null?b:"pt"];if(Number.isFinite(y)){const ue=jc(10,y);return Math.round(a.dimension/lc*z*ue)/ue}return a.dimension*z}function bd(a,y){if(a===null)return 0;const b=ru(a)/lc;if(Number.isFinite(y)){const z=jc(10,y);return Math.round(b*z)/z}return b}function xd(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function cf(a){let y=xd(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${xd(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${xd(a.shrink)}`),y}function Xs(a){var y,b;if(a==null)return null;let z="";if("dimension"in a&&(z=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(z=cf(a)),"number"in a)if(!("base"in a)||a.base==="decimal")z=Number(a.number).toString();else if(a.base==="alpha")z=`\`${String.fromCodePoint(a.number)}`;else{const ue=Math.round(a.number)>>>0;a.base==="hexadecimal"?(z=Number(ue).toString(16).toUpperCase(),ue<=255?z=z.padStart(2,"0"):ue<=65535?z=z.padStart(4,"0"):ue<=16777215?z=z.padStart(6,"0"):z=z.padStart(8,"0"),z=`"${z}`):a.base==="octal"&&(z=Number(ue).toString(8),ue<=63?z=z.padStart(2,"0"):ue<=30583?z=z.padStart(4,"0"):z=z.padStart(8,"0"),z=`'${z}`)}return"register"in a&&("factor"in a&&(a.factor===-1?z="-":a.factor!==1&&(z=Number(a.factor).toString())),"global"in a&&a.global&&(z+="\\global"),z+=`\\${a.register}`),"string"in a&&(z=a.string),(b=a.relax)!=null&&b&&(z+="\\relax"),z}function ql(a,y){return a==null?null:"number"in a?ne(ae({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?ne(ae({},a),{factor:a.factor*y}):ne(ae({},a),{factor:y}):"dimension"in a?ne(ae({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:ql(a.glue,y),shrink:ql(a.shrink,y),grow:ql(a.grow,y)}:a.shrink?{glue:ql(a.glue,y),shrink:ql(a.shrink,y)}:a.grow?{glue:ql(a.glue,y),grow:ql(a.grow,y)}:{glue:ql(a.glue,y)}:null}var ih={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function iu(){return ae({},ih)}function Wu(){return{registers:iu(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ge.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ie,backgroundColorMap:Be,getMacro:a=>sn(a,Zt())}}var Po=class Mm{constructor(y,b){var z,ue,Pe,Ke,tt,ct,ht,bt,Bt,Xt,hn,wn,Sr,ui,yr;let Zr;y!=null&&y.parent?(this.parent=y.parent,Zr=y.parent,this.registers={}):(Zr=ae(ae({},Wu()),(z=y==null?void 0:y.from)!=null?z:{}),this.registers=Zr.registers),Zr.atomIdsSettings&&(this.atomIdsSettings=ae({},Zr.atomIdsSettings)),this.renderPlaceholder=Zr.renderPlaceholder,this.isPhantom=(Ke=(Pe=y==null?void 0:y.isPhantom)!=null?Pe:(ue=this.parent)==null?void 0:ue.isPhantom)!=null?Ke:!1,this.letterShapeStyle=Zr.letterShapeStyle,this.minFontScale=Zr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ct=(tt=this.parent)==null?void 0:tt.color)!=null?ct:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(bt=(ht=this.parent)==null?void 0:ht.backgroundColor)!=null?bt:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Bt=this.parent)==null?void 0:Bt.size)?this.size=b.fontSize:this.size=(hn=(Xt=this.parent)==null?void 0:Xt.size)!=null?hn:go;let mi=(Sr=(wn=this.parent)==null?void 0:wn.mathstyle)!=null?Sr:$l.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(Zr instanceof Mm)switch(y.mathstyle){case"cramp":mi=mi.cramp;break;case"superscript":mi=mi.sup;break;case"subscript":mi=mi.sub;break;case"numerator":mi=mi.fracNum;break;case"denominator":mi=mi.fracDen;break}switch(y.mathstyle){case"textstyle":mi=$l.textstyle;break;case"displaystyle":mi=$l.displaystyle;break;case"scriptstyle":mi=$l.scriptstyle;break;case"scriptscriptstyle":mi=$l.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=mi,this.smartFence=Zr.smartFence,this.placeholderSymbol=Zr.placeholderSymbol,this.colorMap=(ui=Zr.colorMap)!=null?ui:$r=>$r,this.backgroundColorMap=(yr=Zr.backgroundColorMap)!=null?yr:$r=>$r,this.getMacro=Zr.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const y=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,y}scale(y){return y*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===yd||this.mathstyle.id===uc}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(yc[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(y){var b;if((b=this.registers)!=null&&b[y])return this.registers[y];if(this.parent)return this.parent.getRegister(y)}getRegisterAsNumber(y){const b=this.getRegister(y);if(typeof b=="number")return b;if(typeof b=="string")return Number(b)}getRegisterAsGlue(y){var b;if((b=this.registers)!=null&&b[y]){const z=this.registers[y];return typeof z=="object"&&"glue"in z?z:typeof z=="object"&&"dimension"in z?{glue:{dimension:z.dimension}}:typeof z=="number"?{glue:{dimension:z}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return bd(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const z=this.registers[y];return typeof z=="object"&&"glue"in z?z.glue:typeof z=="object"&&"dimension"in z?z:typeof z=="number"?{dimension:z}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let z=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(z=y.factor);const ue=b.getRegister(y.register);if(ue===void 0)return;if(typeof ue=="string")return{string:Number(ue).toString()+ue};if(typeof ue=="number")return{number:z*ue};const Pe=b.evaluate(ue);if(Pe!==void 0)return"string"in Pe?{string:Number(ue).toString()+Pe.string}:"number"in Pe?{number:z*Pe.number}:"dimension"in Pe?ne(ae({},Pe),{dimension:z*Pe.dimension}):"glue"in Pe?ne(ae({},Pe),{glue:ne(ae({},Pe.glue),{dimension:z*Pe.glue.dimension}),shrink:Pe.shrink?ne(ae({},Pe.shrink),{dimension:z*Pe.shrink.dimension}):void 0,grow:Pe.grow?ne(ae({},Pe.grow),{dimension:z*Pe.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const z=this.toDimension(y);return z===null?0:ru(z,b)/lc}toNumber(y){if(y===null)return null;const b=this.evaluate(y);return b===void 0?null:"number"in b?b.number:"dimension"in b?b.dimension:"glue"in b?b.glue.dimension:"string"in b?Number(b.string):null}toColor(y){var b,z;if(y===null)return null;const ue=this.evaluate(y);return ue===void 0?null:"string"in ue?(z=(b=this.colorMap)==null?void 0:b.call(this,ue.string))!=null?z:ue.string:null}toBackgroundColor(y){var b,z;if(y===null)return null;const ue=this.evaluate(y);return ue===void 0?null:"string"in ue?(z=(b=this.backgroundColorMap)==null?void 0:b.call(this,ue.string))!=null?z:ue.string:null}},au=["body","above","below","superscript","subscript"];function dc(a){return typeof a=="string"&&au.includes(a)}function Su(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var _r=class Xc{constructor(y){var b,z,ue,Pe,Ke,tt;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(z=(b=y.command)!=null?b:this.value)!=null?z:"",this.mode=(ue=y.mode)!=null?ue:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=ae({},y.style),this.displayContainsHighlight=(Pe=y.displayContainsHighlight)!=null?Pe:!1,this.captureSelection=(Ke=y.captureSelection)!=null?Ke:!1,this.skipBoundary=(tt=y.skipBoundary)!=null?tt:!1,y.verbatimLatex!==void 0&&y.verbatimLatex!==null&&(this.verbatimLatex=y.verbatimLatex),y.args&&(this.args=y.args),y.body&&(this.body=y.body),this._changeCounter=0}static createBox(y,b,z){var ue;if(!b)return null;const Pe=uf(b),Ke=[];for(const ct of Pe){const ht=ct[0].style,bt=df(y,ct,{style:{color:ht.color,backgroundColor:ht.backgroundColor,fontSize:ht.fontSize}});bt&&Ke.push(bt)}if(Ke.length===0)return null;const tt=((ue=z==null?void 0:z.classes)!=null?ue:"").trim();return Ke.length===1&&!tt&&!(z!=null&&z.type)?Ke[0].wrap(y):new hi(Ke,{classes:tt,type:z==null?void 0:z.type}).wrap(y)}static serialize(y,b){return Ll.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const z=new WeakSet;let{parent:ue}=y;for(;ue;)z.add(ue),ue=ue.parent;for(ue=b.parent;ue;){if(z.has(ue))return ue;ue=ue.parent}console.assert(!!ue)}static fromJson(y){return typeof y=="string"?new Xc({type:"mord",value:y,mode:"math"}):new Xc(y)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const y={};if(this.type&&(y.type=this.type),this.mode!=="math"&&(y.mode=this.mode),this.command&&this.command!==this.value&&(y.command=this.command),this.value!==void 0&&(y.value=this.value),this.style&&Object.keys(this.style).length>0&&(y.style=ae({},this.style)),this.verbatimLatex!==void 0&&(y.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(y.explicitSubsupPlacement=!0),this.isFunction&&(y.isFunction=!0),this.displayContainsHighlight&&(y.displayContainsHighlight=!0),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.skipBoundary&&(y.skipBoundary=!0),this.captureSelection&&(y.captureSelection=!0),this.args&&(y.args=Sd(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(z=>z.type!=="first").map(z=>z.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=zt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?Eo([ys(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?Eo([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Ll.serialize(this.body,ne(ae({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Ll.serialize(this.above,y)}belowToLatex(y){return Ll.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=ne(ae({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const z=Ll.serialize(this.subscript,y);z.length===0?b+="_{}":z.length===1?/^[0-9]$/.test(z)?b+=`_${z}`:b+=`_{${z}}`:b+=`_{${z}}`}if(this.branch("superscript")!==void 0){const z=Ll.serialize(this.superscript,y);z.length===0?b+="^{}":z.length===1?z==="\u2032"?b+="^\\prime ":z==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(z)?b+=`^${z}`:b+=`^{${z}}`:b+=`^{${z}}`}return b}get treeDepth(){let y=1,b=this.parent;for(;b;)b=b.parent,y+=1;return y}get inCaptureSelection(){let y=this;for(;y;){if(y.captureSelection)return!0;y=y.parent}return!1}get parentPrompt(){let y=this.parent;for(;y;){if(y.type==="prompt"&&!y.captureSelection)return y;y=y.parent}return null}branch(y){if(dc(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of au)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(dc(y)),dc(y)?(this._branches?this._branches[y]||(this._branches[y]=[this.makeFirstAtom(y)]):this._branches={[y]:[this.makeFirstAtom(y)]},this.isDirty=!0,this._branches[y]):[]}get row(){return Su(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Su(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const z=typeof this.style.verbatimColor=="string",ue=typeof this.style.verbatimBackgroundColor=="string",Pe=ae(ae({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete Pe.variant,delete Pe.variantStyle,ue||delete Pe.verbatimBackgroundColor,z||delete Pe.verbatimColor,Pe}applyStyle(y){this.isDirty=!0,this.style=ae(ae({},this.style),y),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const b of this.children)b.applyStyle(y)}getInitialBaseElement(){var y,b,z;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(z=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?z:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(y){const b=this.branch(y);return b?(console.assert(b.length>0),console.assert(b[0].type==="first"),b.length===1):!0}setChildren(y,b){var z;if(!y||(console.assert(dc(b)),!dc(b)))return;console.assert(((z=y[0])==null?void 0:z.type)!=="first");const ue=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ue:this._branches={[b]:ue};for(const Pe of y)Pe.parent=this,Pe.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Xc({type:"first",mode:this.mode});return b.parent=this,b.parentBranch=y,b}addChild(y,b){console.assert(y.type!=="first"),this.createBranch(b).push(y),this.isDirty=!0,y.parent=this,y.parentBranch=b}addChildBefore(y,b){console.assert(b.parentBranch!==void 0);const z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const z=this.createBranch(b);for(const ue of y)ue.parent=this,ue.parentBranch=b,z.push(ue);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const z=this.createBranch(b.parentBranch);z.splice(z.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ue of y)ue.parent=this,ue.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(dc(y)&&(this._branches[y]=void 0),!b)return[];for(const z of b)z.parent=void 0,z.parentBranch=void 0;return console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}removeChild(y){if(console.assert(y.parent===this),y.type==="first")return;const b=this.branch(y.parentBranch),z=b.indexOf(y);console.assert(z>=0),b.splice(z,1),this.isDirty=!0,y.parent=void 0,y.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:y}=this;return y[y.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:y}=this;return y[y.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const y=[];for(const b of au)if(this._branches[b])for(const z of this._branches[b])y.push(...z.children),y.push(z);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=zt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const z=new Po({parent:y},this.style);let ue=this.createBox(z,{classes:this.parent?"":"ML__base"});return ue?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ue=this.attachSupsub(z,{base:ue})),ue.wrap(z)):null}attachSupsub(y,b){var z;const ue=b.base,Pe=this.superscript,Ke=this.subscript;if(!Pe&&!Ke)return ue;let tt=null,ct=null;const ht=(z=b.isCharacterBox)!=null?z:this.isCharacterBox();let bt=0;if(Pe){const Sr=new Po({parent:y,mathstyle:"superscript"});tt=Xc.createBox(Sr,Pe),ht||(bt=ue.height-y.metrics.supDrop*Sr.scalingFactor)}let Bt=0;if(Ke){const Sr=new Po({parent:y,mathstyle:"subscript"});ct=Xc.createBox(Sr,Ke),ht||(Bt=ue.depth+y.metrics.subDrop*Sr.scalingFactor)}let Xt;y.isDisplayStyle?Xt=y.metrics.sup1:y.isCramped?Xt=y.metrics.sup3:Xt=y.metrics.sup2;const hn=.5/lc/y.scalingFactor;let wn=null;if(ct&&tt){bt=Math.max(bt,Xt,tt.depth+.25*y.metrics.xHeight),Bt=Math.max(Bt,y.metrics.sub2);const Sr=y.metrics.defaultRuleThickness;if(bt-tt.depth-(ct.height-Bt)<4*Sr){Bt=4*Sr-(bt-tt.depth)+ct.height;const yr=.8*y.metrics.xHeight-(bt-tt.depth);yr>0&&(bt+=yr,Bt-=yr)}const ui=this.isExtensibleSymbol&&ue.italic?-ue.italic:0;wn=new us({individualShift:[{box:ct,shift:Bt,marginLeft:ui},{box:tt,shift:-bt}]}).wrap(y)}else ct&&!tt?(Bt=Math.max(Bt,y.metrics.sub1,ct.height-.8*zl),wn=new us({shift:Bt,children:[{box:ct,marginRight:hn,marginLeft:this.isCharacterBox()?-ue.italic:0}]})):!ct&&tt&&(bt=Math.max(bt,Xt,tt.depth+.25*zl),wn=new us({shift:-bt,children:[{box:tt,marginRight:hn}]}));return new hi([ue,new hi(wn,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const z=this.superscript?Xc.createBox(new Po({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ue=this.subscript?Xc.createBox(new Po({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!z&&!ue?b.base.wrap(y):rh(y,ne(ae({},b),{above:z,below:ue}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let z=this.parent;for(;z&&!z.captureSelection;)z=z.parent;return z!=null&&z.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var z,ue,Pe,Ke;const tt=(z=this.value)!=null?z:this.body,ct=(ue=b==null?void 0:b.boxType)!=null?ue:vd(this.type);let ht=(Pe=b==null?void 0:b.classes)!=null?Pe:"";this.mode==="text"&&(ht+=" ML__text");const bt=typeof tt=="string"||tt===void 0?new hi(tt!=null?tt:null,{type:ct,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:ne(ae({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:ht}):(Ke=Xc.createBox(y,tt,{type:ct,classes:ht}))!=null?Ke:new hi(null);return y.isTight&&(bt.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(bt.italic=0),bt.right=bt.italic,this.bind(y,bt),this.caret&&!this.superscript&&!this.subscript&&(bt.caret=this.caret),bt}isDigit(){var y;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((y=this.body)==null?void 0:y.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var y;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((y=this.body)==null?void 0:y.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function uf(a){let y;const b=[];let z=[];for(const ue of a)if(!y&&!ue.style)z.push(ue);else{const Pe=ue.computedStyle;y&&Pe.color===y.color&&Pe.backgroundColor===y.backgroundColor&&Pe.fontSize===y.fontSize?z.push(ue):(z.length>0&&b.push(z),z=[ue],y=Pe)}return z.length>0&&b.push(z),b}function df(a,y,b){var z,ue,Pe,Ke,tt;if(!y||y.length===0)return null;const ct=new Po({parent:a},b.style),ht=!((z=ct.atomIdsSettings)!=null&&z.groupNumbers);let bt=[];if(y.length===1){const Xt=y[0],hn=Xt.render(ct);hn&&(ht&&Xt.isSelected&&hn.selected(!0),bt=[hn])}else{let Xt="",hn=!0;for(const wn of y){(ue=ct.atomIdsSettings)!=null&&ue.groupNumbers&&Xt&&(hn&&wn.isDigit()||!hn&&wd(wn))&&(ct.atomIdsSettings.overrideID=Xt);const Sr=wn.render(ct);ct.atomIdsSettings&&(ct.atomIdsSettings.overrideID=void 0),Sr&&((Pe=ct.atomIdsSettings)!=null&&Pe.groupNumbers&&((wn.isDigit()||wd(wn))&&(!Xt||hn!==wn.isDigit())&&(hn=wn.isDigit(),Xt=(Ke=wn.id)!=null?Ke:""),Xt&&(!(wn.isDigit()||wd(wn))||!wn.hasEmptyBranch("superscript")||!wn.hasEmptyBranch("subscript"))&&(Xt="")),ht&&wn.isSelected&&Sr.selected(!0),bt.push(Sr))}}if(bt.length===0)return null;const Bt=new hi(bt,ne(ae({isTight:ct.isTight},b),{type:(tt=b.type)!=null?tt:"lift"}));return Bt.isSelected=bt.every(Xt=>Xt.isSelected),Bt.wrap(ct)}function wd(a){return a.mode==="text"}function Sd(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof _r?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var fc=class km extends _r{constructor(y,b,z){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(z)}static fromJson(y){return new km(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:yn("text",this.value.codePointAt(0))}};function Cu(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let z=0;for(;z<b&&ah(a.ranges[z],y.ranges[z])==="equal";)z++;return z===b?"equal":"different"}}return"different"}function ah(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function ll(a){let y=1/0,b=-1/0;for(const z of a.ranges)y=Math.min(y,z[0],z[1]),b=Math.max(b,z[0],z[1]);return[y,b]}function Cc(a){return typeof a=="number"&&!Number.isNaN(a)}function Uu(a){return Array.isArray(a)&&a.length===2}function Vu(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function oh(a,y){const b=a.at(y);let z;if(b){z=b.mode;let ue=b.parent;for(;!z&&ue;)ue&&(z=ue.mode),ue=ue.parent}return z}function ff(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,z=!1,ue=!1,Pe=!1,Ke=!1,tt=!1,ct=!1,ht=!1,bt=!1,Bt=!1,Xt=!1,hn=!1,wn=!1,Sr=!1,ui=!1,yr=a[0],Zr=0;for(;yr!=null&&yr.type&&/^(subsup|placeholder)$/.test(yr.type);)Zr+=1,yr=a[Zr];return b=!yr||yr.type==="first",yr&&(Sr=yr.mode==="text",z=!Sr&&yr.type==="mord"&&He.test(yr.value),ue=!Sr&&yr.type==="mord"&&/\d+$/.test(yr.value),Pe=!Sr&&yr.isFunction,Ke=yr.type==="genfrac",tt=yr.type==="surd",ct=yr.type==="mbin",ht=yr.type==="mrel",bt=yr.type==="mop"||yr.type==="operator"||yr.type==="extensible-symbol",Bt=yr.type==="mpunct"||yr.type==="minner",Xt=yr.type==="array",hn=yr.type==="mopen",wn=yr.type==="mclose"||yr.type==="leftright",ui=yr.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&z||y.after.includes("digit")&&ue||y.after.includes("function")&&Pe||y.after.includes("frac")&&Ke||y.after.includes("surd")&&tt||y.after.includes("binop")&&ct||y.after.includes("relop")&&ht||y.after.includes("operator")&&bt||y.after.includes("punct")&&Bt||y.after.includes("array")&&Xt||y.after.includes("openfence")&&hn||y.after.includes("closefence")&&wn||y.after.includes("text")&&Sr||y.after.includes("space")&&ui?y.value:""}function Cd(a,y,b){return b?ff(a,b[y]):""}var hf={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function Eu(a,y){var b;let z=(b=y==null?void 0:y.format)!=null?b:"auto";return z==="auto"&&([z,a]=mf(a)),z==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",pl(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function pl(a,y){var b,z,ue;if(!a)return"";let Pe=!1,Ke;const tt=(b=y.inlineShortcuts)!=null?b:hf;if(!Pe&&(a.startsWith("^")||a.startsWith("_"))&&(Ke=Ec(a.slice(1),{inlineShortcuts:tt,noWrap:!0}),a=a[0]+"{"+Ke.match+"}",a+=pl(Ke.rest,y),Pe=!0),Pe||(Ke=a.match(/^(sqrt|\u221A)(.*)/),Ke&&(Ke=Ec(Ke[2],{inlineShortcuts:tt,noWrap:!0}),a="\\sqrt{"+((z=Ke.match)!=null?z:"\\placeholder{}")+"}",a+=pl(Ke.rest,y),Pe=!0)),Pe||(Ke=a.match(/^(\\cbrt|\u221B)(.*)/),Ke&&(Ke=Ec(Ke[2],{inlineShortcuts:tt,noWrap:!0}),a="\\sqrt[3]{"+((ue=Ke.match)!=null?ue:"\\placeholder{}")+"}",a+=pl(Ke.rest,y),Pe=!0)),Pe||(Ke=a.match(/^abs(.*)/),Ke&&(Ke=Ec(Ke[1],{inlineShortcuts:tt,noWrap:!0}),a="\\left|"+Ke.match+"\\right|",a+=pl(Ke.rest,y),Pe=!0)),Pe||(Ke=a.match(/^["”“](.*?)["”“](.*)/),Ke&&(a="\\text{"+Ke[1]+"}",a+=pl(Ke[2],y),Pe=!0)),Pe||(Ke=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),Ke&&(a=pf(Ke[1],tt),a+=pl(Ke[2],y),Pe=!0)),!Pe&&/^([fgh])[^a-zA-Z]/.test(a)&&(Ke=Ec(a.slice(1),{inlineShortcuts:tt,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+Ke.match+"\\right)":a[0]+Ke.match,a+=pl(Ke.rest,y),Pe=!0),Pe||(Ke=a.match(/^([a-zA-Z]+)(.*)/),Ke&&(a=pf(Ke[1],tt),a+=pl(Ke[2],y),Pe=!0)),!Pe)if(Ke=Ec(a,{inlineShortcuts:tt,noWrap:!0}),Ke.match&&Ke.rest[0]==="/"){const ct=Ec(Ke.rest.slice(1),{inlineShortcuts:tt,noWrap:!0});ct.match&&(a="\\frac{"+Ke.match+"}{"+ct.match+"}"+pl(ct.rest,y)),Pe=!0}else Ke.match&&(a=a.startsWith("(")?"\\left("+Ke.match+"\\right)"+pl(Ke.rest,y):Ke.match+pl(Ke.rest,y),Pe=!0);return Pe||(Ke=a.match(/^(\s+)(.*)$/),Ke&&(a=" "+pl(Ke[2],y),Pe=!0)),a}function Ec(a,y){let b="";a=a.trim();let z=a,ue=a.charAt(0),Pe={"(":")","{":"}","[":"]"}[ue];if(Pe){let Ke=1,tt=1;for(;tt<a.length&&Ke>0;)a[tt]===ue&&Ke++,a[tt]===Pe&&Ke--,tt++;Ke===0?(y.noWrap&&ue==="("?b=pl(a.substring(1,tt-1),y):(ue==="{"&&Pe==="}"&&(ue="\\{",Pe="\\}"),b="\\left"+ue+pl(a.substring(1,tt-1),y)+"\\right"+Pe),z=a.slice(Math.max(0,tt))):(b=a.substring(1,tt),z="")}else{let Ke=a.match(/^([a-zA-Z]+)/);if(Ke){let tt=Cd(null,a,y.inlineShortcuts);if(tt)return tt=tt.replace("_{#?}",""),tt=tt.replace("^{#?}",""),{match:tt,rest:a.slice(tt.length)}}if(Ke=a.match(/^([a-zA-Z])/),Ke)return{match:Ke[1],rest:a.slice(1)};if(Ke=a.match(/^(-)?\d+(\.\d*)?/),Ke)return{match:Ke[0],rest:a.slice(Ke[0].length)};/^\\(left|right)/.test(a)||(Ke=a.match(/^(\\[a-zA-Z]+)/),Ke&&(z=a.slice(Ke[1].length),b=Ke[1]))}return{match:b,rest:z}}function pf(a,y){let b=Cd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Ed=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Ac(a){const y=a.trim();for(const b of Ed)if(y.startsWith(b[0])&&y.endsWith(b[1]))return[!0,y.substring(b[0].length,y.length-b[1].length)];return[!1,a]}function mf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Ac(a),y?["latex",a]:a.startsWith("`")&&a.endsWith("`")?(a=a.substring(1,a.length-1),["ascii-math",a]):a.includes("\\")?["latex",a]:/\$.+\$/.test(a)?["latex",`\\text{${a}}`]:[void 0,a]}var Zu="$$",sh="$$",lh=(a,y,b)=>(Ed.some(z=>y.startsWith(z[0])&&y.endsWith(z[1]))||(y=`${Zu} ${y} ${sh}`),y),vf=class eh{constructor(y){eh._modes[y]=this}static onPaste(y,b,z){var ue;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof z=="string"){const Ke=new DataTransfer;Ke.setData("text/plain",z),z=Ke}const Pe=new ClipboardEvent("paste",{clipboardData:z,cancelable:!0});return(ue=b.host)!=null&&ue.dispatchEvent(Pe)?eh._modes[y].onPaste(b,z):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const z=y.model,ue=z.selectionIsCollapsed?[0,z.lastOffset]:ll(z.selection),Pe=z.getValue(ue,b);navigator.clipboard.writeText(Pe).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var z;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ue=y.model,Pe=ue.selectionIsCollapsed?[0,ue.lastOffset]:ll(ue.selection);let Ke=ue.getAtoms(Pe);if(Ke.every(tt=>tt.mode==="text"||!tt.mode))b.clipboardData.setData("text/plain",Ke.filter(tt=>tt instanceof fc).map(tt=>tt.value).join(""));else if(Ke.every(tt=>tt.mode==="latex"))b.clipboardData.setData("text/plain",ue.getAtoms(Pe,{includeChildren:!0}).map(tt=>{var ct;return(ct=tt.value)!=null?ct:""}).join(""));else{let tt;Ke.length===1&&Ke[0].verbatimLatex!==void 0?tt=Ke[0].verbatimLatex:tt=ue.getValue(Pe,"latex-expanded"),b.clipboardData.setData("application/x-latex",tt);try{b.clipboardData.setData("text/plain",y.options.onExport(y,tt,Pe))}catch(ct){}if(Ke.length===1){const ct=Ke[0];(ct.type==="root"||ct.type==="group")&&(Ke=ct.body.filter(ht=>ht.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(Ke.map(ct=>ct.toJson())))}catch(ct){}if((z=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&z.ComputeEngine){const ct=window.MathfieldElement.computeEngine;if(ct)try{const ht=ct.jsonSerializationOptions;ct.jsonSerializationOptions={metadata:["latex"]};const bt=ct.parse(ue.getValue(Pe,"latex-unstyled"));ct.jsonSerializationOptions=ht;const Bt=JSON.stringify(bt.json);Bt&&b.clipboardData.setData("application/json",Bt)}catch(ht){}}}b.preventDefault()}static insert(y,b,z={}){var ue;const Pe=z.mode==="auto"?y.mode:(ue=z.mode)!=null?ue:y.mode;return eh._modes[Pe].insert(y,b,z)}onPaste(y,b){return!1}insert(y,b,z){return!1}};vf._modes={};var so=vf,ch=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Ad={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function Vl(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Zl(a){var y,b;return(b=(y=a.querySelector(".ML__caret"))!=null?y:a.querySelector(".ML__text-caret"))!=null?b:a.querySelector(".ML__latex-caret")}function Mc(a){const y=Zl(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Md(a){var y;if(!a.parent)return"root";let b=(y=a.parent.id)!=null?y:"";return b+=typeof a.parentBranch=="string"?"-"+a.parentBranch:`-${a.parentBranch[0]}/${a.parentBranch[0]}`,b}function kd(a,y,b){if(!y)return null;const z=a.field.getBoundingClientRect(),ue=y.right-y.left,Pe=y.bottom-y.top,Ke=Math.ceil(y.left-z.left+a.field.scrollLeft*b),tt=Math.ceil(y.top-z.top);return{left:Ke,right:Ke+ue,top:tt,bottom:tt+Pe}}function Td(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),z={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return z;for(const ue of a.children)if(ue.nodeType===1&&"atomId"in ue.dataset&&!ue.classList.contains("pstrut")){const Pe=Td(ue);z.left=Math.min(z.left,Pe.left),z.right=Math.max(z.right,Pe.right),z.top=Math.min(z.top,Pe.top),z.bottom=Math.max(z.bottom,Pe.bottom)}return z}function ou(a,y){var b,z;if(!y.id)return null;let ue=(z=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?z:null;if(ue!==null)return ue;const Pe=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ue=Pe?Td(Pe):null,a.atomBoundsCache&&(ue?a.atomBoundsCache.set(y.id,ue):a.atomBoundsCache.delete(y.id)),ue!=null?ue:null}function gf(a,y,b){const z=new Map;for(const ue of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ue.style.backgroundColor)continue;const Pe=a.field,Ke=Pe.offsetWidth;let ct=Math.floor(Pe.getBoundingClientRect().width)/Ke;ct=isNaN(ct)?1:ct;const ht=kd(a,ou(a,ue),ct);if(ht){const bt=Md(ue);if(z.has(bt)){const Bt=z.get(bt);z.set(bt,{left:Math.min(Bt.left,ht.left),right:Math.max(Bt.right,ht.right),top:Math.min(Bt.top,ht.top),bottom:Math.max(Bt.bottom,ht.bottom)})}else z.set(bt,ht)}}return[...z.values()]}function Od(a,y){return a.model.selection.ranges.reduce((b,z)=>b.concat(...gf(a,z,y)),[])}function Dd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Gu(a){let y=0,b=0;const z=a.offsetWidth,ue=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,z,ue)}var yf=`@keyframes ML__caret-blink {
|
|
|
0%,
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
.ML__container {
|
|
|
display: inline-flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
min-height: 39px;
|
|
|
/* Need some room for the virtual keyboard toggle */
|
|
|
width: 100%;
|
|
|
/* Encourage browsers to consider allocating a hardware accelerated
|
|
|
layer for this element. */
|
|
|
isolation: isolate;
|
|
|
/* Prevent the browser from trying to interpret touch gestures in the field */
|
|
|
/* "Disabling double-tap to zoom removes the need for browsers to
|
|
|
delay the generation of click events when the user taps the screen." */
|
|
|
touch-action: none;
|
|
|
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_selection-color: var(--selection-color, #000);
|
|
|
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
|
|
|
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
|
|
|
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
|
|
|
--_smart-fence-color: var(--smart-fence-color, currentColor);
|
|
|
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
|
|
|
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
|
|
|
--_correct-color: var(--correct-color, #10a000);
|
|
|
--_incorrect-color: var(--incorrect-color, #a01b00);
|
|
|
--_composition-background-color: var(--composition-background-color, #fff1c2);
|
|
|
--_composition-text-color: var(--composition-text-color, black);
|
|
|
--_composition-underline-color: var(--composition-underline-color, transparent);
|
|
|
}
|
|
|
/* This is the actual field content (formula) */
|
|
|
.ML__content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
align-self: center;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
padding: 2px 3px 2px 1px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle,
|
|
|
.ML__menu-toggle {
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
width: 34px;
|
|
|
height: 34px;
|
|
|
padding: 0;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
/* Avoid some weird blinking with :hover */
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
color: hsl(var(--_hue), 40%, 50%);
|
|
|
fill: currentColor;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:hover,
|
|
|
.ML__menu-toggle:hover {
|
|
|
background: hsla(0, 0%, 70%, 0.3);
|
|
|
color: #333;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle > span,
|
|
|
.ML__menu-toggle > span {
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
/* The invisible element used to capture keyboard events. We're just trying
|
|
|
really hard to make sure it doesn't show. */
|
|
|
.ML__keyboard-sink {
|
|
|
display: inline-block;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
/* Need these for Microsoft Edge */
|
|
|
position: fixed;
|
|
|
clip: rect(0 0 0 0);
|
|
|
/* Need this to prevent iOS Safari from auto-zooming */
|
|
|
font-size: 1em;
|
|
|
font-family: KaTeX_Main;
|
|
|
line-height: 0.5;
|
|
|
/* On Chromium, if this is 0, no keyboard events are received */
|
|
|
}
|
|
|
[part="placeholder"] {
|
|
|
color: var(--neutral-400);
|
|
|
}
|
|
|
.ML__composition {
|
|
|
background: var(--_composition-background-color);
|
|
|
color: var(--_composition-text-color);
|
|
|
text-decoration: underline var(--_composition-underline-color);
|
|
|
}
|
|
|
.ML__caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__text-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__latex-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_latex-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.019em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__focused .ML__latex-caret::after,
|
|
|
.ML__focused .ML__text-caret::after,
|
|
|
.ML__focused .ML__caret::after {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.ML__focused .ML__text {
|
|
|
background: var(--_text-highlight-background-color);
|
|
|
}
|
|
|
/* When using smartFence, the anticipated closing fence is displayed
|
|
|
with this style */
|
|
|
.ML__smart-fence__close {
|
|
|
opacity: var(--_smart-fence-opacity);
|
|
|
color: var(--_smart-fence-color);
|
|
|
}
|
|
|
.ML__selected,
|
|
|
.ML__focused .ML__selected .ML__contains-caret,
|
|
|
.ML__focused .ML__selected .ML__smart-fence__close,
|
|
|
.ML__focused .ML__selected .ML__placeholder {
|
|
|
color: var(--_selection-color);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
.ML__selection {
|
|
|
box-sizing: border-box;
|
|
|
background: var(--_selection-background-color) !important;
|
|
|
}
|
|
|
.ML__contains-caret.ML__close,
|
|
|
.ML__contains-caret.ML__open,
|
|
|
.ML__contains-caret > .ML__close,
|
|
|
.ML__contains-caret > .ML__open,
|
|
|
.ML__contains-caret .ML__sqrt-sign,
|
|
|
.ML__contains-caret .ML__sqrt-line {
|
|
|
color: var(--_caret-color);
|
|
|
}
|
|
|
.ML__contains-highlight {
|
|
|
box-sizing: border-box;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__focused .ML__contains-highlight {
|
|
|
background: var(--_contains-highlight-background-color);
|
|
|
}
|
|
|
.ML__raw-latex {
|
|
|
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
font-weight: 400;
|
|
|
font-size: 0.8em;
|
|
|
letter-spacing: -0.05em;
|
|
|
color: var(--_latex-color);
|
|
|
}
|
|
|
.ML__suggestion {
|
|
|
color: var(--neutral-500);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:focus {
|
|
|
outline: none;
|
|
|
border-radius: 8px;
|
|
|
border: 2px solid hsl(var(--_hue), 40%, 50%);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-pressed,
|
|
|
.ML__virtual-keyboard-toggle.is-active:hover,
|
|
|
.ML__virtual-keyboard-toggle.is-active {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to automatically show a
|
|
|
tooltip over a element on hover.
|
|
|
*/
|
|
|
[data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
[data-tooltip]::after {
|
|
|
content: attr(data-tooltip);
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
z-index: 2;
|
|
|
pointer-events: none;
|
|
|
right: auto;
|
|
|
top: calc(-100% - 4px);
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
border-radius: 4px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
text-align: center;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-style: normal;
|
|
|
font-weight: 400;
|
|
|
font-size: 13px;
|
|
|
/* Phone */
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
[data-tooltip]::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
menu [data-tooltip]::after {
|
|
|
left: 100%;
|
|
|
top: 0%;
|
|
|
}
|
|
|
menu .ML__base {
|
|
|
cursor: default;
|
|
|
}
|
|
|
/** Don't display if we're tracking, i.e. have the pointer down */
|
|
|
.tracking [data-tooltip]:hover::after {
|
|
|
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
/** But do display if tracking and inside a menu */
|
|
|
.tracking menu li[data-tooltip]:hover::after,
|
|
|
[data-tooltip]:hover::after {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
transition-property: opacity, scale;
|
|
|
transition-duration: 0.15s;
|
|
|
transition-delay: 1s;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__prompt {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.ML__editablePromptBox {
|
|
|
outline: 1px solid #acacac;
|
|
|
border-radius: 2px;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__focusedPromptBox {
|
|
|
outline: highlight auto 1px;
|
|
|
}
|
|
|
.ML__lockedPromptBox {
|
|
|
background-color: rgba(142, 142, 141, 0.4);
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__correctPromptBox {
|
|
|
outline: 1px solid var(--_correct-color);
|
|
|
box-shadow: 0 0 5px var(--_correct-color);
|
|
|
}
|
|
|
.ML__incorrectPromptBox {
|
|
|
outline: 1px solid var(--_incorrect-color);
|
|
|
box-shadow: 0 0 5px var(--_incorrect-color);
|
|
|
}
|
|
|
.variant-submenu {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
.variant-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
text-align: center;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.insert-matrix-submenu {
|
|
|
display: grid;
|
|
|
padding: 8px;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
}
|
|
|
.insert-matrix-submenu [part=menu-item] {
|
|
|
font-size: 21px;
|
|
|
border: none;
|
|
|
border-radius: 0;
|
|
|
line-height: 21px;
|
|
|
text-align: center;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.border-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
line-height: 1.2;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.swatches-submenu {
|
|
|
--_swatch-size: 2rem;
|
|
|
--_columns: 4;
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
padding: 8px;
|
|
|
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.menu-swatch {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-sizing: border-box;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
margin: 2px;
|
|
|
padding: 0;
|
|
|
background: var(--neutral-200);
|
|
|
}
|
|
|
.menu-swatch > .label {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
.menu-swatch > .label > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
min-width: var(--_swatch-size);
|
|
|
min-height: var(--_swatch-size);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.menu-swatch.active {
|
|
|
background: var(--neutral-100);
|
|
|
scale: 1.4;
|
|
|
}
|
|
|
.menu-swatch.active > .label > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.menu-swatch .ui-checkmark,
|
|
|
.menu-swatch .ui-mixedmark {
|
|
|
position: absolute;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
color: white;
|
|
|
}
|
|
|
.menu-swatch.dark-contrast .ui-checkmark,
|
|
|
.menu-swatch.dark-contrast .ui-mixedmark {
|
|
|
color: #000;
|
|
|
}
|
|
|
`,rs=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,bf=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,uh=`/* The element that display info while in latex mode */
|
|
|
#mathlive-suggestion-popover {
|
|
|
background-color: rgba(97, 97, 97);
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 8px;
|
|
|
position: fixed;
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
}
|
|
|
#mathlive-suggestion-popover.top-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-bottom: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.bottom-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-top: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-animated {
|
|
|
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-visible {
|
|
|
display: flex;
|
|
|
}
|
|
|
@keyframes ML__fade-in {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
/* The wrapper class for the entire content of the popover panel */
|
|
|
#mathlive-suggestion-popover ul {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
list-style: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
align-items: flex-start;
|
|
|
max-height: 400px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
margin: 8px;
|
|
|
padding: 8px;
|
|
|
width: calc(100% - 16px - 16px);
|
|
|
column-gap: 1em;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
/* Since the content can be clicked on, provide feedback on hover */
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a {
|
|
|
color: #5ea6fd;
|
|
|
padding-top: 0.3em;
|
|
|
margin-top: 0.4em;
|
|
|
display: block;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a:hover {
|
|
|
color: #5ea6fd;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li:hover,
|
|
|
#mathlive-suggestion-popover li.is-pressed,
|
|
|
#mathlive-suggestion-popover li.is-active {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
|
|
|
.ML__popover__command {
|
|
|
font-size: 1.6rem;
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
.ML__popover__current {
|
|
|
background: #5ea6fd;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.ML__popover__latex {
|
|
|
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
align-self: center;
|
|
|
}
|
|
|
/* The keyboard shortcuts for a symbol as displayed in the popover */
|
|
|
.ML__popover__keybinding {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 0.8em;
|
|
|
opacity: 0.7;
|
|
|
}
|
|
|
/* Style for the character that joins the modifiers of a keyboard shortcut
|
|
|
(usually a "+" sign)*/
|
|
|
.ML__shortcut-join {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
`,su=`/* The element that displays the keys as the user type them */
|
|
|
#mathlive-keystroke-caption-panel {
|
|
|
visibility: hidden;
|
|
|
/*min-width: 160px;*/
|
|
|
/*background-color: rgba(97, 97, 200, .95);*/
|
|
|
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
|
|
|
border-color: var(--secondary-border, hsl(0, 0%, 91%));
|
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 16px;
|
|
|
position: absolute;
|
|
|
z-index: 1;
|
|
|
display: flex;
|
|
|
flex-direction: row-reverse;
|
|
|
justify-content: center;
|
|
|
--keystroke: white;
|
|
|
--on-keystroke: #555;
|
|
|
--keystroke-border: #f7f7f7;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
body:not([theme='light']) #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
}
|
|
|
body[theme='dark'] #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
#mathlive-keystroke-caption-panel > span {
|
|
|
min-width: 14px;
|
|
|
/*height: 8px;*/
|
|
|
margin: 0 8px 0 0;
|
|
|
padding: 4px;
|
|
|
background-color: var(--keystroke);
|
|
|
color: var(--on-keystroke);
|
|
|
fill: currentColor;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 1em;
|
|
|
border-radius: 6px;
|
|
|
border: 2px solid var(--keystroke-border);
|
|
|
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
|
|
|
}
|
|
|
`,dh=`.ML__keyboard {
|
|
|
--_keyboard-height: 0;
|
|
|
--_keyboard-zindex: var(--keyboard-zindex, 105);
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
|
|
|
--_padding-top: var(--keyboard-padding-top, 5px);
|
|
|
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
|
|
|
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
|
|
|
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
|
|
|
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
|
|
|
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_keycap-height: var(--keycap-height, 60px);
|
|
|
/* Keycap width (incl. margin) */
|
|
|
--_keycap-max-width: var(--keycap-max-width, 100px);
|
|
|
--_keycap-gap: var(--keycap-gap, 8px);
|
|
|
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
|
|
|
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
|
|
|
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 70px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
|
|
|
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
|
|
|
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
|
|
|
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
|
|
|
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
|
|
|
}
|
|
|
.is-math-mode .MLK__rows .if-text-mode,
|
|
|
.is-text-mode .MLK__rows .if-math-mode {
|
|
|
display: none;
|
|
|
}
|
|
|
.if-can-undo,
|
|
|
.if-can-redo,
|
|
|
.if-can-copy,
|
|
|
.if-can-cut,
|
|
|
.if-can-paste {
|
|
|
opacity: 0.4;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.can-undo .if-can-undo,
|
|
|
.can-redo .if-can-redo,
|
|
|
.can-copy .if-can-copy,
|
|
|
.can-cut .if-can-cut,
|
|
|
.can-paste .if-can-paste {
|
|
|
opacity: 1;
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
body > .ML__keyboard {
|
|
|
position: fixed;
|
|
|
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
|
|
|
border-top: 1px solid var(--_border);
|
|
|
}
|
|
|
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
|
|
|
box-shadow: none;
|
|
|
border: none;
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
|
|
|
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
|
|
|
transition-property: transform, opacity;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__keyboard {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
z-index: var(--_keyboard-zindex);
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
opacity: 1;
|
|
|
transform: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.ML__keyboard :where(div) {
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
transform: none;
|
|
|
}
|
|
|
.MLK__backdrop {
|
|
|
position: absolute;
|
|
|
bottom: calc(-1 * var(--_keyboard-height));
|
|
|
width: 100%;
|
|
|
height: var(--_keyboard-height);
|
|
|
box-sizing: border-box;
|
|
|
padding-top: var(--_padding-top);
|
|
|
padding-bottom: var(--_padding-bottom);
|
|
|
padding-left: var(--_padding-horizontal);
|
|
|
padding-right: var(--_padding-horizontal);
|
|
|
opacity: 0;
|
|
|
visibility: hidden;
|
|
|
transform: translate(0, 0);
|
|
|
background: var(--_background);
|
|
|
}
|
|
|
.backdrop-is-transparent .MLK__backdrop {
|
|
|
background: transparent;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop
|
|
|
(backdrop-is-transparent), make sure to let pointer event go through. */
|
|
|
.backdrop-is-transparent .MLK__plate {
|
|
|
background: transparent;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop, make sure to
|
|
|
allow pointer events on it. */
|
|
|
.backdrop-is-transparent .MLK__layer > div > div {
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
.ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
transform: translate(0, calc(-1 * var(--_keyboard-height)));
|
|
|
opacity: 1;
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.caps-lock-indicator {
|
|
|
display: none;
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
background: #0cbc0c;
|
|
|
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
|
|
|
border-radius: 8px;
|
|
|
right: 8px;
|
|
|
top: 8px;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .caps-lock-indicator {
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .shift {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
}
|
|
|
.MLK__plate {
|
|
|
position: absolute;
|
|
|
top: var(--_padding-top);
|
|
|
left: var(--_padding-horizontal);
|
|
|
width: calc(100% - 2 * var(--_padding-horizontal));
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
container-type: inline-size;
|
|
|
touch-action: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
pointer-events: all;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 16px;
|
|
|
/* Size of toolbar labels */
|
|
|
font-weight: 400;
|
|
|
text-shadow: none;
|
|
|
}
|
|
|
.ML__box-placeholder {
|
|
|
color: var(--_box-placeholder-color);
|
|
|
}
|
|
|
.MLK__tex {
|
|
|
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__tex-math {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.MLK__layer {
|
|
|
display: none;
|
|
|
outline: none;
|
|
|
}
|
|
|
.MLK__layer.is-visible {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
}
|
|
|
/* Keyboard layouts are made or rows of keys... */
|
|
|
.MLK__rows {
|
|
|
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
border-collapse: separate;
|
|
|
clear: both;
|
|
|
border: 0;
|
|
|
margin: 0;
|
|
|
margin-bottom: var(--_keycap-gap);
|
|
|
gap: var(--_keycap-gap);
|
|
|
/* If the styling include, e.g., some shadows, they will be
|
|
|
cut off by the overflow. In that case, set the padding to
|
|
|
compensate. */
|
|
|
padding-left: var(--_row-padding-left);
|
|
|
padding-right: var(--_row-padding-right);
|
|
|
overflow: visible;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
gap: var(--_keycap-gap);
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
/* For the alignment of the text on some modifiers (e.g. shift) */
|
|
|
/* Extra spacing between two adjacent keys */
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex-math {
|
|
|
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .big-op {
|
|
|
font-size: calc(1.25 * var(--_keycap-font-size));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bottom {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .left {
|
|
|
align-items: flex-start;
|
|
|
padding-left: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .right {
|
|
|
align-items: flex-end;
|
|
|
padding-right: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w0 {
|
|
|
width: 0;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w5 {
|
|
|
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w15 {
|
|
|
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w20 {
|
|
|
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w40 {
|
|
|
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w50 {
|
|
|
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .MLK__keycap.w50 {
|
|
|
font-size: 80%;
|
|
|
padding-top: 10px;
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .separator {
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .horizontal-rule {
|
|
|
height: 6px;
|
|
|
margin-top: 3px;
|
|
|
margin-bottom: 0;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
border-top: var(--_horizontal-rule);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost {
|
|
|
background: var(--_toolbar-background);
|
|
|
border: none;
|
|
|
color: var(--_toolbar-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost:hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bigfnbutton {
|
|
|
font-size: var(--_keycap-extra-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift,
|
|
|
.MLK__rows > .MLK__row .action {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
background: var(--_keycap-secondary-background);
|
|
|
border-color: var(--_keycap-secondary-border);
|
|
|
border-bottom-color: var(--_keycap-secondary-border-bottom);
|
|
|
line-height: 0.8;
|
|
|
font-size: min(1rem, var(--_keycap-small-font-size));
|
|
|
font-weight: 600;
|
|
|
padding: 8px 12px 8px 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift:hover,
|
|
|
.MLK__rows > .MLK__row .action:hover {
|
|
|
background: var(--_keycap-secondary-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary {
|
|
|
background: var(--_keycap-primary-background);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary:hover {
|
|
|
background: var(--_keycap-primary-background-hover);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected,
|
|
|
.MLK__rows > .MLK__row .action.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-active,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-active {
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning {
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning svg.svg-glyph {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
/** A regular keycap
|
|
|
* Use the :where() pseudo-class to give it a very low specifity,
|
|
|
* so that it can be overriden by custom style.
|
|
|
*/
|
|
|
:where(.MLK__rows > .MLK__row div) {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: space-evenly;
|
|
|
width: calc(var(--_keycap-width) - var(--_keycap-gap));
|
|
|
height: var(--_keycap-height);
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
vertical-align: top;
|
|
|
text-align: center;
|
|
|
float: left;
|
|
|
color: var(--_keycap-text);
|
|
|
fill: currentColor;
|
|
|
font-size: var(--_keycap-font-size);
|
|
|
background: var(--_keycap-background);
|
|
|
border: 1px solid var(--_keycap-border);
|
|
|
border-bottom-color: var(--_keycap-border-bottom);
|
|
|
border-radius: 6px;
|
|
|
cursor: pointer;
|
|
|
touch-action: none;
|
|
|
/* Keys with a variants panel */
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div):hover {
|
|
|
overflow: visible;
|
|
|
background: var(--_keycap-background-hover);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) .ML__latex {
|
|
|
pointer-events: none;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
|
|
|
margin: 8px 0;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
min-height: 20px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
|
|
|
margin: 8px 0;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
|
|
|
font-size: 25px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
z-index: calc(var(--_keyboard-zindex) - 5);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) small {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) aside {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 10px;
|
|
|
line-height: 10px;
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
|
|
|
Note there are a different set of tooltip rules for the keyboard toggle
|
|
|
(it's in a different CSS tree) */
|
|
|
.ML__keyboard [data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]::after {
|
|
|
position: absolute;
|
|
|
display: inline-table;
|
|
|
content: attr(data-tooltip);
|
|
|
top: inherit;
|
|
|
bottom: 100%;
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
z-index: 2;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
border-radius: 2px;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover::after {
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
}
|
|
|
.MLK__toolbar {
|
|
|
align-self: center;
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
max-width: 996px;
|
|
|
min-height: 32px;
|
|
|
/* Icons for undo/redo, etc. */
|
|
|
}
|
|
|
.MLK__toolbar svg {
|
|
|
height: 20px;
|
|
|
width: 20px;
|
|
|
}
|
|
|
.MLK__toolbar > .left {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > .right {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
/* "button" in the toolbar */
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
color: var(--_toolbar-text);
|
|
|
fill: currentColor;
|
|
|
background: var(--_toolbar-background);
|
|
|
font-size: var(--_toolbar-font-size);
|
|
|
padding: 4px 15px;
|
|
|
cursor: pointer;
|
|
|
width: max-content;
|
|
|
min-width: 42px;
|
|
|
min-height: 34px;
|
|
|
border: none;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
padding-bottom: 8px;
|
|
|
padding-top: 8px;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 4px;
|
|
|
margin-left: 4px;
|
|
|
margin-right: 4px;
|
|
|
border-radius: 8px;
|
|
|
box-shadow: none;
|
|
|
border-bottom: 2px solid transparent;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.disabled svg,
|
|
|
.MLK__toolbar > div > div.disabled:hover svg,
|
|
|
.MLK__toolbar > div > div.disabled.is-pressed svg {
|
|
|
color: var(--_toolbar-text);
|
|
|
opacity: 0.2;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:hover,
|
|
|
.MLK__toolbar > div > div:active,
|
|
|
.MLK__toolbar > div > div.is-pressed,
|
|
|
.MLK__toolbar > div > div.is-active {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
background: var(--_toolbar-background-selected);
|
|
|
border-radius: 0;
|
|
|
border-bottom-color: var(--_toolbar-text-active);
|
|
|
padding-bottom: 4px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
/* This is the element that displays variants on press+hold */
|
|
|
.MLK__variant-panel {
|
|
|
visibility: hidden;
|
|
|
position: fixed;
|
|
|
display: flex;
|
|
|
flex-flow: row wrap-reverse;
|
|
|
justify-content: center;
|
|
|
align-content: center;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
bottom: auto;
|
|
|
top: 0;
|
|
|
box-sizing: content-box;
|
|
|
transform: none;
|
|
|
z-index: calc(var(--_keyboard-zindex) + 1);
|
|
|
touch-action: none;
|
|
|
max-width: 350px;
|
|
|
background: var(--_variant-panel-background);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 6px;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
transition: none;
|
|
|
}
|
|
|
.MLK__variant-panel.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.MLK__variant-panel.compact {
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
|
|
|
}
|
|
|
.MLK__variant-panel .item {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
font-size: var(--_variant-keycap-font-size);
|
|
|
height: var(--_variant-keycap-length);
|
|
|
width: var(--_variant-keycap-length);
|
|
|
margin: 0;
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 5px;
|
|
|
border: 1px solid transparent;
|
|
|
background: transparent;
|
|
|
pointer-events: all;
|
|
|
cursor: pointer;
|
|
|
color: var(--_variant-keycap-text);
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
@media (max-height: 412px) {
|
|
|
.MLK__variant-panel .item {
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
.MLK__variant-panel .item .ML__latex {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-active {
|
|
|
background: var(--_variant-keycap-background-active);
|
|
|
color: var(--_variant-keycap-text-active);
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-pressed {
|
|
|
background: var(--_variant-keycap-background-pressed);
|
|
|
color: var(--_variant-keycap-text-pressed);
|
|
|
}
|
|
|
.MLK__variant-panel .item.small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button {
|
|
|
box-sizing: border-box;
|
|
|
background: #fbfbfb;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
width: calc(100% - 12px);
|
|
|
height: calc(100% - 12px);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover {
|
|
|
background: #f0f0f0;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.MLK__variant-panel .item.box > div,
|
|
|
.MLK__variant-panel .item.box > span {
|
|
|
border: 1px dashed rgba(0, 0, 0, 0.24);
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning {
|
|
|
min-height: 60px;
|
|
|
min-width: 60px;
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
padding: 5px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning.is-pressed,
|
|
|
.MLK__variant-panel .item .warning.is-active {
|
|
|
background: red;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning svg.svg-glyph {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
}
|
|
|
.MLK__variant-panel .item aside {
|
|
|
font-size: var(--_variant-keycap-aside-font-size);
|
|
|
line-height: 12px;
|
|
|
opacity: 0.78;
|
|
|
padding-top: 2px;
|
|
|
}
|
|
|
.MLK__keycap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
right: 4px;
|
|
|
top: 4px;
|
|
|
font-size: var(--_keycap-shift-font-size);
|
|
|
color: var(--_keycap-shift-color);
|
|
|
}
|
|
|
.hide-shift .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
@media (max-width: 414px) {
|
|
|
.MLK__variant-panel {
|
|
|
max-width: 350px;
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
/* @xs breakpoint: iPhone 5 */
|
|
|
@container (max-width: 414px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--_keycap-height), 42px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
font-size: 100%;
|
|
|
margin-left: 2px;
|
|
|
margin-right: 2px;
|
|
|
}
|
|
|
.MLK__rows .shift,
|
|
|
.MLK__rows .action {
|
|
|
font-size: 65%;
|
|
|
}
|
|
|
.MLK__rows .warning svg.svg-glyph {
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
min-height: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 744px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--keycap-height, 52px), 52px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
.MLK__tooltip::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.fnbutton {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.bigfnbutton {
|
|
|
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.small {
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > aside {
|
|
|
display: none;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
/* Medium breakpoint: larger phones */
|
|
|
@container (max-width: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@media (max-height: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 1444px) {
|
|
|
.MLK__rows .if-wide {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
.ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
}
|
|
|
/* Same as the media query, but with a class */
|
|
|
[theme='dark'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
[theme='light'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--_keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
}
|
|
|
`,Xu=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,fh=`.ui-menu *,
|
|
|
.ui-menu ::before,
|
|
|
.ui-menu ::after {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ui-menu {
|
|
|
display: none;
|
|
|
color-scheme: light dark;
|
|
|
-webkit-user-select: none;
|
|
|
/* Important: Safari iOS doesn't respect user-select */
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0 0 0 0);
|
|
|
--active-label-color: #fff;
|
|
|
/* ui-menu-text-active */
|
|
|
--label-color: #121212;
|
|
|
/* ui-menu-text */
|
|
|
--menu-bg: #e2e2e2;
|
|
|
/* ui-menu-background */
|
|
|
--active-bg: #5898ff;
|
|
|
/* ui-menu-background-active */
|
|
|
--active-bg-dimmed: #c5c5c5;
|
|
|
/* ui-menu-background-active-muted */
|
|
|
}
|
|
|
/** Use the :where pseudo selector to make the specificity of the
|
|
|
* selector 0, so that it can be overridden by the user.
|
|
|
*/
|
|
|
:where(.ui-menu-container) {
|
|
|
position: absolute;
|
|
|
overflow: visible;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
z-index: 10000;
|
|
|
border-radius: 8px;
|
|
|
background: var(--ui-menu-bg);
|
|
|
box-shadow: var(--ui-menu-shadow);
|
|
|
list-style: none;
|
|
|
padding: 6px 0 6px 0;
|
|
|
margin: 0;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
color: var(--ui-menu-text);
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
text-shadow: none;
|
|
|
text-transform: none;
|
|
|
letter-spacing: 0;
|
|
|
outline: none;
|
|
|
opacity: 1;
|
|
|
/* The [popover] elements have a 1px solid black border. Ugh. */
|
|
|
border: none;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|
|
|
:where(.ui-menu-container > li) {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
align-items: center;
|
|
|
padding: 1px 7px 1px 7px;
|
|
|
margin-top: 0;
|
|
|
margin-left: 6px;
|
|
|
margin-right: 6px;
|
|
|
border-radius: 4px;
|
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
|
outline: none;
|
|
|
fill: currentColor;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
text-align: left;
|
|
|
color: inherit;
|
|
|
font-family: var(--ui-font-family);
|
|
|
font-size: var(--ui-font-size);
|
|
|
line-height: var(--ui-line-height);
|
|
|
letter-spacing: var(--ui-letter-spacing);
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label) {
|
|
|
appearance: none;
|
|
|
background: none;
|
|
|
outline: none;
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
padding: 1px 2px 1px 1px;
|
|
|
overflow: visible;
|
|
|
border: 1px solid transparent;
|
|
|
white-space: nowrap;
|
|
|
text-align: start;
|
|
|
}
|
|
|
:where(.ui-menu-container > li:has(.heading)) {
|
|
|
margin-top: 0.5em;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.heading) {
|
|
|
font-weight: bold;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.indent > .label) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.indent) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[role='divider']) {
|
|
|
border-bottom: 1px solid var(--ui-menu-divider);
|
|
|
border-radius: 0;
|
|
|
padding: 0;
|
|
|
margin-left: 15px;
|
|
|
margin-right: 15px;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
width: calc(100% - 30px);
|
|
|
/** 100% - (margin-left + margin-right) */
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-disabled='true']) {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active) {
|
|
|
background: var(--ui-menu-bg-active);
|
|
|
background: -apple-system-control-accent;
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active.is-submenu-open) {
|
|
|
background: var(--ui-menu-bg-active-muted);
|
|
|
color: inherit;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
|
|
|
padding-inline-end: 0;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
/** Keyboard shortcut */
|
|
|
:where(.ui-menu-container > li > kbd) {
|
|
|
font-family: var(--ui-font-family);
|
|
|
margin-inline-start: 12px;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active > kbd) {
|
|
|
opacity: 0.85;
|
|
|
}
|
|
|
.ui-trailing-chevron {
|
|
|
display: flex;
|
|
|
margin-inline-start: 24px;
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
.ui-trailing-chevron:dir(rtl) {
|
|
|
transform: scaleX(-1);
|
|
|
}
|
|
|
.ui-checkmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
.ui-mixedmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
`,ds;function Wc(a){let y="";switch(a){case"mathfield-element":y=`
|
|
|
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
|
|
|
:host([hidden]) { display: none; }
|
|
|
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
|
|
|
:host(:focus), :host(:focus-within) {
|
|
|
outline: Highlight auto 1px; /* For Firefox */
|
|
|
outline: -webkit-focus-ring-color auto 1px;
|
|
|
}
|
|
|
:host([readonly]:focus), :host([readonly]:focus-within),
|
|
|
:host([read-only]:focus), :host([read-only]:focus-within) {
|
|
|
outline: none;
|
|
|
}
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
:host(:not(:focus)) :first-child { pointer-events: none !important; }
|
|
|
}`;break;case"core":y=rs;break;case"mathfield":y=yf;break;case"environment-popover":y=bf;break;case"suggestion-popover":y=uh;break;case"keystroke-caption":y=su;break;case"virtual-keyboard":y=dh;break;case"ui":y=Xu;break;case"menu":y=fh;break;default:debugger}return y}function lu(a){return ds||(ds={}),ds[a]||(ds[a]=new CSSStyleSheet,ds[a].replaceSync(Wc(a))),ds[a]}var hc;function jl(a){var y;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${a}`))return;const b=window.document.createElement("style");b.id=`mathlive-style-${a}`,b.append(window.document.createTextNode(Wc(a))),window.document.head.appendChild(b);return}if(hc||(hc={}),((y=hc[a])!=null?y:0)!==0)hc[a]+=1;else{const b=lu(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],hc[a]=1}}function E(a){if("adoptedStyleSheets"in document&&hc!=null&&hc[a]&&(hc[a]-=1,hc[a]<=0)){const y=ds[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var ee=class Tm extends _r{constructor(y){var b;super(ne(ae({},y),{type:"accent",body:(b=y.body)!=null?b:void 0})),y.accentChar?this.accent=y.accentChar:this.svgAccent=y==null?void 0:y.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(y){return new Tm(y)}toJson(){return ne(ae({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const z=new Po({parent:y,mathstyle:"cramp"},this.style),ue=(b=_r.createBox(z,this.body))!=null?b:new hi("\u25A2",{style:this.style});let Pe=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(Pe=ue.skew);let Ke=Math.min(ue.height,zl),tt;if(this.svgAccent)tt=Ul(this.svgAccent),Ke=z.metrics.bigOpSpacing1-Ke;else if(this.accent){const ht=new hi(this.accent,{fontFamily:"Main-Regular"});ht.italic=0;const bt=this.accent===8407?" ML__accent-vec":"";tt=new hi(new hi(ht),{classes:"ML__accent-body"+bt})}tt=new us({shift:0,children:[{box:new hi(ue)},-Ke,{box:tt,marginLeft:ue.left+2*Pe,classes:["ML__center"]}]});const ct=new hi(tt,{type:"lift"});return this.caret&&(ct.caret=this.caret),this.bind(z,ct.wrap(z)),this.attachSupsub(z,{base:ct})}},Ee={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},we=Object.fromEntries(Object.entries(Ee).map(([a,y])=>[y,a]));function Re(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function $e(a,y,b,z){var ue;const Ke=new hi(Re(a),{fontFamily:"Main-Regular",isSelected:z.isSelected,classes:"ML__small-delim "+((ue=z.classes)!=null?ue:"")}).wrap(y);return b&&Ke.setTop((1-y.scalingFactor)*al),Ke}function ft(a,y,b,z,ue){var Pe,Ke;const tt=new Po({parent:z,mathstyle:"textstyle"},ue==null?void 0:ue.style),ct=new hi(Re(a),{fontFamily:`Size${y}-Regular`,isSelected:ue.isSelected,classes:((Pe=ue.classes)!=null?Pe:"")+` ML__delim-size${y}`,type:(Ke=ue.type)!=null?Ke:"ignore"}).wrap(tt);return b&&ct.setTop((1-tt.scalingFactor)*al),ct}function wt(a,y,b,z,ue){var Pe;let Ke,tt,ct,ht;Ke=ct=ht=Re(a),tt=null;let bt="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ct=Ke=ht=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ct=Ke=ht=8741:a==="\\uparrow"?ct=ht=9168:a==="\\Uparrow"?ct=ht=8214:a==="\\downarrow"?Ke=ct=9168:a==="\\Downarrow"?Ke=ct=8214:a==="\\updownarrow"?(Ke=8593,ct=9168,ht=8595):a==="\\Updownarrow"?(Ke=8657,ct=8214,ht=8659):a==="["||a==="\\lbrack"?(Ke=9121,ct=9122,ht=9123,bt="Size4-Regular"):a==="]"||a==="\\rbrack"?(Ke=9124,ct=9125,ht=9126,bt="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ct=Ke=9122,ht=9123,bt="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(Ke=9121,ct=ht=9122,bt="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ct=Ke=9125,ht=9126,bt="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(Ke=9124,ct=ht=9125,bt="Size4-Regular"):a==="("||a==="\\lparen"?(Ke=9115,ct=9116,ht=9117,bt="Size4-Regular"):a===")"||a==="\\rparen"?(Ke=9118,ct=9119,ht=9120,bt="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(Ke=9127,tt=9128,ht=9129,ct=9130,bt="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(Ke=9131,tt=9132,ht=9133,ct=9130,bt="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(Ke=9127,ht=9129,ct=9130,bt="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(Ke=9131,ht=9133,ct=9130,bt="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(Ke=9127,ht=9133,ct=9130,bt="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(Ke=9131,ht=9129,ct=9130,bt="Size4-Regular"):a==="\\surd"?(Ke=57345,ht=9143,ct=57344,bt="Size4-Regular"):a==="\\ulcorner"?(Ke=9484,ct=ht=32):a==="\\urcorner"?(Ke=9488,ct=ht=32):a==="\\llcorner"?(ht=9492,ct=Ke=32):a==="\\lrcorner"&&(Ke=9496,ct=Ke=32);const Bt=Ss(Ke,bt),Xt=Bt.height+Bt.depth,hn=Ss(ct,bt),wn=hn.height+hn.depth,Sr=Ss(ht,bt),ui=Sr.height+Sr.depth;let yr=0,Zr=1;if(tt!==null){const fl=Ss(tt,bt);yr=fl.height+fl.depth,Zr=2}const mi=Xt+ui+yr,$r=Math.max(0,Math.ceil((y-mi)/(Zr*wn))),da=mi+$r*Zr*wn;let _a=al;b&&(_a=_a*z.scalingFactor);const Ta=da/2-_a,Ro=.008,is=[];is.push({box:new hi(ht,{fontFamily:bt})}),is.push(-Ro);const Ei=new hi(ct,{fontFamily:bt});if(tt===null)for(let fl=0;fl<$r;fl++)is.push({box:Ei});else{for(let fl=0;fl<$r;fl++)is.push({box:Ei});is.push(-Ro),is.push({box:new hi(tt,{fontFamily:bt})}),is.push(-Ro);for(let fl=0;fl<$r;fl++)is.push({box:Ei})}is.push(-Ro),is.push({box:new hi(Ke,{fontFamily:bt})});let Yl="";bt==="Size1-Regular"?Yl=" delim-size1":bt==="Size4-Regular"&&(Yl=" delim-size4");const Nc=new us({bottom:Ta,children:is},{classes:Yl});return new hi(Nc,ne(ae({},ue!=null?ue:{}),{classes:((Pe=ue==null?void 0:ue.classes)!=null?Pe:"")+" ML__delim-mult"}))}var Mt=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Rt=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),fn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),An=[0,1.2,1.8,2.4,3];function cr(a,y,b,z){return a===void 0||a==="."?sa(b,z.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Mt.has(a)||fn.has(a)?ft(a,y,!1,b,z):Rt.has(a)?wt(a,An[y],!1,b,z):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var er=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Fr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],ti=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function Si(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function _i(a,y,b,z){const ue={"-4":0,"-3":1,0:2}[z.mathstyle.sizeDelta];for(let Pe=ue;Pe<b.length&&b[Pe].type!=="stack";Pe++){const Ke=Ss(a,Si(b[Pe]));if(Ke.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let tt=Ke.height+Ke.depth;if(b[Pe].type==="small"&&(b[Pe].mathstyle==="scriptscriptstyle"?tt*=Math.max(yc[Math.max(1,z.size-2)],z.minFontScale):b[Pe].mathstyle==="scriptstyle"&&(tt*=Math.max(yc[Math.max(1,z.size-1)],z.minFontScale))),tt>y)return b[Pe]}return b[b.length-1]}function Qi(a,y,b,z,ue,Pe){if(!y||y.length===0||y===".")return sa(ue);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let Ke;fn.has(y)?Ke=er:Mt.has(y)?Ke=ti:Ke=Fr;const tt=_i(Re(y),b,Ke,ue),ct=new Po({parent:ue,mathstyle:tt.mathstyle},Pe==null?void 0:Pe.style);return tt.type==="small"?$e(y,ct,z,ne(ae({},Pe),{type:a})):tt.type==="large"?ft(y,tt.size,z,ct,ne(ae({},Pe),{type:a})):(console.assert(tt.type==="stack"),wt(y,b,z,ct,ne(ae({},Pe),{type:a})))}function Pi(a,y,b,z,ue,Pe){if(y===".")return sa(ue,Pe==null?void 0:Pe.classes);const Ke=al*ue.scalingFactor,tt=901,ct=5/lc,ht=Math.max(b-Ke,z+Ke),bt=Math.max(ht/500*tt,2*ht-ct);return Qi(a,y,bt,!0,ue,Pe)}function sa(a,y){const b=new hi(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Po({parent:a,mathstyle:"textstyle"}))}var Wa=class Om extends _r{constructor(y){var b;super({type:"placeholder",command:"\\placeholder",mode:(b=y==null?void 0:y.mode)!=null?b:"math",style:y==null?void 0:y.style}),this.captureSelection=!0}static fromJson(y){return new Om(y)}toJson(){return super.toJson()}render(y){let b;return this.value=y.placeholderSymbol,typeof y.renderPlaceholder=="function"?b=y.renderPlaceholder(y):b=this.createBox(y),this.caret&&(b.classes+=" ML__placeholder-selected"),b}_serialize(y){return y.skipPlaceholders?"":"\\placeholder{}"}},Ga=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Ao=["cases","dcases","rcases"],fs=["align","align*","aligned","gather","gathered","split"],rl=["array","subequations","eqnarray"];function Os(a){return rl.concat(fs).concat(Ao).concat(Ga).includes(a)}function Sl(a){return Ga.includes(a)}function Cl(a){return Ao.includes(a)}function Ys(a){return fs.includes(a)}function El(a,y,b){let z=0;for(const ht of b)"align"in ht&&(z+=1);let ue=0;const Pe=[];for(const ht of y){let bt=0;for(ue=Math.max(ue,Math.min(ht.length,z));bt<ht.length;){const Bt=[],Xt=Math.min(ht.length,bt+z);for(;bt<Xt;){const hn=ht[bt];hn.length===0?Bt.push([new _r({type:"first",mode:a.mode})]):hn[0].type!=="first"?Bt.push([new _r({type:"first",mode:a.mode}),...hn]):(console.assert(!hn.slice(1).some(wn=>wn.type==="first")),Bt.push(hn)),bt+=1}Pe.push(Bt)}}Pe.length>0&&Pe[Pe.length-1].length===1&&Pe[Pe.length-1][0].length===1&&Pe[Pe.length-1][0][0].type==="first"&&Pe.pop();const Ke=[];for(const ht of Pe){if(ht.length!==ue)for(let bt=ht.length;bt<ue;bt++)ht.push([new _r({type:"first",mode:a.mode}),new Wa]);Ke.push(ht)}let tt=0,ct=0;for(const ht of Ke){ct=0;for(const bt of ht){for(const Bt of bt)Bt.parent=a,Bt.parentBranch=[tt,ct];ct+=1}tt+=1}return a.isDirty=!0,Ke}var co=class Dm extends _r{constructor(y,b,z,ue={}){var Pe;super({type:"array"}),this.environmentName=y,this.rowGaps=z,ue.mathstyleName&&(this.mathstyleName=ue.mathstyleName),ue.columns&&(ue.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ue.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=El(this,b,this.colFormat),ue.leftDelim&&(this.leftDelim=ue.leftDelim),ue.rightDelim&&(this.rightDelim=ue.rightDelim),ue.arraycolsep!==void 0&&(this.arraycolsep=ue.arraycolsep),this.colSeparationType=ue.colSeparationType,ue.arraystretch!==void 0&&(this.arraystretch=ue.arraystretch),this.minColumns=(Pe=ue.minColumns)!=null?Pe:1}static fromJson(y){return new Dm(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=ne(ae({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(z=>z.map(ue=>ue.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(y.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(y.arraycolsep=this.arraycolsep),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}branch(y){var b;if(Su(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Su(y)?(this.isDirty=!0,(b=this.branch(y))!=null?b:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(y=>!!y.align).length}removeBranch(y){if(dc(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(z=>{z.parent=void 0,z.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const z of b)if(z)for(const ue of z)y.push(...ue.children),y.push(ue);return[...y,...super.children]}render(y){var b,z,ue,Pe,Ke,tt;const ct=new Po({parent:y,mathstyle:this.mathstyleName},this.style),ht=ct.getRegisterAsEm("arrayrulewidth"),bt=ct.getRegisterAsEm("arraycolsep"),Bt=ct.getRegisterAsEm("doublerulesep"),Xt=(z=(b=this.arraystretch)!=null?b:ct.getRegisterAsNumber("arraystretch"))!=null?z:1;let hn=typeof this.arraycolsep=="number"?this.arraycolsep:bt;this.colSeparationType==="small"&&(hn=.2778*(new Po({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const wn=Xt*Jc,Sr=.7*wn,ui=.3*wn;let yr=0;const Zr=[];let mi=0;const $r=this.array.length;for(let ps=0;ps<$r;++ps){const Vs=this.array[ps];mi=Math.max(mi,Vs.length);const hl=new Po({parent:ct,mathstyle:this.mathstyleName},this.style);let Rc=Sr/hl.scalingFactor,Bc=ui/hl.scalingFactor;const _c={cells:[],height:0,depth:0,pos:0};for(const vc of Vs){const tp=(ue=_r.createBox(hl,vc,{type:"ignore"}))!=null?ue:new hi(null,{type:"ignore"});Bc=Math.max(Bc,tp.depth),Rc=Math.max(Rc,tp.height),_c.cells.push(tp)}let Fc=(Pe=bd(this.rowGaps[ps]))!=null?Pe:0;Fc>0&&(Fc+=ui,Bc=Math.max(Bc,Fc),Fc=0),ps<$r-1&&!Sl(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Bc+=ct.getRegisterAsEm("jot")),_c.height=Rc,_c.depth=Bc,yr+=Rc,_c.pos=yr,yr+=Bc+Fc,Zr.push(_c)}const da=yr/2+al,_a=[];for(let ps=0;ps<mi;ps++){const Vs=[];for(const hl of Zr){const Rc=hl.cells[ps];Rc.depth=hl.depth,Rc.height=hl.height,Vs.push({box:Rc,shift:hl.pos-da})}Vs.length>0&&_a.push(new us({individualShift:Vs}))}const Ta=[];let Ro=!1,is=!1,Ei=0,Yl=!this.leftDelim;const{colFormat:Nc}=this;for(const ps of Nc){if("align"in ps&&Ei>=_a.length)break;if("align"in ps)Ro?Ta.push(Ds(2*hn)):(is||Yl)&&Ta.push(Ds(hn)),Ta.push(new hi(_a[Ei],{classes:"col-align-"+ps.align})),Ei++,Ro=!0,is=!1,Yl=!1;else if("gap"in ps){if(typeof ps.gap=="number")Ta.push(Ds(ps.gap));else{const Vs=Rs(y,Zr,da,ps.gap);Vs&&Ta.push(Vs)}Ro=!1,is=!1,Yl=!1}else if("separator"in ps){const Vs=new hi(null,{classes:"vertical-separator"});Vs.height=yr,Vs.setStyle("height",yr,"em"),Vs.setStyle("border-right",`${ht}em ${ps.separator} currentColor`),Vs.setStyle("vertical-align",-(yr-da),"em");let hl=0;is?hl=Bt-ht:Ro&&(hl=hn-ht),Vs.left=hl,Ta.push(Vs),Ro=!1,is=!0,Yl=!1}}Ro&&!this.rightDelim&&Ta.push(Ds(hn));const rc=new hi(Ta,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(rc.caret=this.caret),this.bind(y,rc);const fl=rc.height,Ql=rc.depth,Nl=this.bind(y,new hi([this.bind(y,Pi("open",(Ke=this.leftDelim)!=null?Ke:".",fl,Ql,ct,{isSelected:this.isSelected})),rc,this.bind(y,Pi("close",(tt=this.rightDelim)!=null?tt:".",fl,Ql,ct,{isSelected:this.isSelected}))],{type:"ord"}));return Nl?(Nl.setStyle("display","inline-block"),this.caret&&(Nl.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Nl}))):null}_serialize(y){var b;const z=[];if(this.environmentName==="lines"?z.push("{\\displaylines"):z.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(z.push("{"),this.colFormat!==void 0)for(const ue of this.colFormat)"align"in ue&&typeof ue.align=="string"?z.push(ue.align):"separator"in ue&&ue.separator==="solid"?z.push("|"):"separator"in ue&&ue.separator==="dashed"&&z.push(":");z.push("}")}for(let ue=0;ue<this.array.length;ue++){for(let Pe=0;Pe<this.array[ue].length;Pe++)Pe>0&&z.push(" & "),z.push(_r.serialize(this.array[ue][Pe],y));if(ue<this.array.length-1){const Pe=this.rowGaps[ue];Pe!=null&&Pe.dimension?z.push(`\\\\[${Pe.dimension} ${(b=Pe.unit)!=null?b:"pt"}] `):z.push("\\\\ ")}}return this.environmentName==="lines"?z.push("}"):z.push(`\\end{${this.environmentName}}`),Eo(z)}getCell(y,b){return this.array[y][b]}setCell(y,b,z){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const Pe of this.array[y][b])Pe.parent=void 0,Pe.parentBranch=void 0;let ue=z;(z.length===0||z[0].type!=="first")&&(ue=[new _r({type:"first",mode:this.mode}),...z]),this.array[y][b]=ue;for(const Pe of ue)Pe.parent=this,Pe.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let z=0;z<this.colCount;z++)b.push(Ns(this));this.array.splice(y,0,b);for(let z=y;z<this.rowCount;z++)for(let ue=0;ue<this.colCount;ue++){const Pe=this.array[z][ue];if(Pe)for(const Ke of Pe)Ke.parentBranch=[z,ue]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let z=0;z<this.colCount;z++)b.push(Ns(this));this.array.splice(y+1,0,b);for(let z=y+1;z<this.rowCount;z++)for(let ue=0;ue<this.colCount;ue++){const Pe=this.array[z][ue];if(Pe)for(const Ke of Pe)Ke.parentBranch=[z,ue]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const z of b)for(const ue of z)if(ue)for(const Pe of ue)Pe.parent=void 0,Pe.parentBranch=void 0;for(let z=y;z<this.rowCount;z++)for(let ue=0;ue<this.colCount;ue++){const Pe=this.array[z][ue];if(Pe)for(const Ke of Pe)Ke.parentBranch=[z,ue]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Ns(this));for(let b=0;b<this.rowCount;b++)for(let z=y;z<this.colCount;z++){const ue=this.array[b][z];if(ue)for(const Pe of ue)Pe.parentBranch=[b,z]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,Ns(this));for(let b=0;b<this.rowCount;b++)for(let z=y+1;z<this.colCount;z++){const ue=this.array[b][z];if(ue)for(const Pe of ue)Pe.parentBranch=[b,z]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const z=b.splice(y,1);for(const ue of z)if(ue)for(const Pe of ue)Pe.parent=void 0,Pe.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let z=y;z<this.colCount;z++){const ue=this.array[b][z];if(ue)for(const Pe of ue)Pe.parentBranch=[b,z]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const z of b)z&&y.push(z.filter(ue=>ue.type!=="first"));return y}};function Ns(a){const y=new _r({type:"first",mode:a.mode});y.parent=a;const b=new Wa;return b.parent=a,[y,b]}function Ds(a){const y=new hi(null,{classes:"arraycolsep"});return y.width=a,y}function Rs(a,y,b,z){if(!z)return null;const ue=[];for(const Pe of y){const Ke=_r.createBox(a,z,{type:"ignore"});Ke&&(Ke.depth=Pe.depth,Ke.height=Pe.height,ue.push({box:Ke,shift:Pe.pos-b}))}return new us({individualShift:ue}).wrap(a)}var Ws=class Im extends _r{constructor(y){super({mode:y.mode,command:y.command,style:y.style,body:y.body,type:"box"}),this.framecolor=y.framecolor,this.backgroundcolor=y.backgroundcolor,this.padding=y.padding,this.offset=y.offset,this.border=y.border}static fromJson(y){return new Im(y)}toJson(){return ne(ae({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,z,ue,Pe;const Ke=_r.createBox(y,this.body,{type:"lift"});if(!Ke)return null;const tt=y.toEm((b=this.offset)!=null?b:{dimension:0});Ke.depth+=tt,Ke.setStyle("display","inline-block"),Ke.setStyle("position","relative"),Ke.setStyle("height",Math.floor(100*Ke.height+Ke.depth)/100,"em"),Ke.setStyle("vertical-align",-Math.floor(100*Ke.height)/100,"em");const ct=new Po({parent:y},this.style),ht=ct.toEm((z=this.padding)!=null?z:{register:"fboxsep"}),bt=new hi(null,{classes:"ML__box"});bt.height=Ke.height+ht,bt.depth=Ke.depth+ht,bt.setStyle("box-sizing","border-box"),bt.setStyle("position","absolute"),bt.setStyle("top",-ht+.3,"em"),bt.setStyle("left",0),bt.setStyle("height",bt.height+bt.depth,"em"),bt.setStyle("width","100%"),this.backgroundcolor&&bt.setStyle("background-color",(ue=ct.toColor(this.backgroundcolor))!=null?ue:"transparent"),this.framecolor&&bt.setStyle("border",`${ct.getRegisterAsEm("fboxrule",2)}em solid ${(Pe=ct.toColor(this.framecolor))!=null?Pe:"black"}`),this.border&&bt.setStyle("border",this.border);const Bt=new hi([bt,Ke],{type:"lift"});return Bt.setStyle("display","inline-block"),Bt.setStyle("position","relative"),Bt.setStyle("line-height",0),Bt.height=Ke.height+ht+(tt>0?tt:0),Bt.depth=Ke.depth+ht+(tt<0?-tt:0),Bt.setStyle("padding-left",ht,"em"),Bt.setStyle("padding-right",ht,"em"),Bt.setStyle("height",Math.floor(100*(Ke.height+Ke.depth+2*ht+Math.abs(tt)))/100,"em"),Bt.setStyle("margin-top",-ht,"em"),Bt.setStyle("top",Math.floor(100*(Ke.depth-Ke.height+2*ht-tt))/100,"em"),Bt.setStyle("vertical-align",Math.floor(100*(Ke.depth+2*ht))/100,"em"),this.caret&&(Bt.caret=this.caret),this.attachSupsub(y,{base:Bt})}_serialize(y){return y.skipStyles?Eo([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},Uc=class Lm extends _r{constructor(y,b){var z;super({type:"composition",mode:(z=b==null?void 0:b.mode)!=null?z:"math",value:y})}static fromJson(y){return new Lm(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new hi(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},kl=class Pm extends _r{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Pm(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},cl=class Nm extends _r{constructor(y,b,z){super({type:"group",mode:b,style:z}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Nm(y.body,y.mode,y.style)}render(y){const b=_r.createBox(y,this.body,{type:this.boxType});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=zt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Uo=class Rm extends _r{constructor(y,b,z){super({type:"leftright",style:z.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=z.leftDelim,this.rightDelim=z.rightDelim}static fromJson(y){var b;return new Rm((b=y.variant)!=null?b:"",y.body,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}_serialize(y){var b,z;const ue=this.matchingRightDelim();return this.variant==="left...right"?Eo(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ue]):this.variant==="mleft...mright"?Eo(["\\mleft",(z=this.leftDelim)!=null?z:".",this.bodyToLatex(y),"\\mright",ue]):Eo([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ue])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const z=(y=this.leftDelim)!=null?y:".";return(b=Ee[z])!=null?b:z}render(y){var b,z;const ue=new Po({parent:y},this.style);console.assert(this.body!==void 0);const Pe=new Po({parent:y,mathstyle:"textstyle"},this.style),Ke=(b=_r.createBox(ue,this.body,{type:"inner"}))!=null?b:new hi(null,{type:"inner"}),tt=Ke.height/Pe.scalingFactor,ct=Ke.depth/Pe.scalingFactor,ht=[];if(this.leftDelim&&ht.push(this.bind(Pe,Pi("open",this.leftDelim,tt,ct,Pe,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),Ke&&($s(Ke.children,this,ue,tt,ct),ht.push(Ke)),this.rightDelim){let hn=this.containsCaret?" ML__contains-caret":"",wn=this.rightDelim;wn==="?"&&(ue.smartFence?(wn=this.matchingRightDelim(),hn+=" ML__smart-fence__close"):wn="."),ht.push(this.bind(Pe,Pi("close",wn,tt,ct,Pe,{isSelected:this.isSelected,classes:hn+" ML__close",mode:this.mode,style:this.style})))}let bt=this.variant==="mleft...mright";const Bt=this.leftSibling;Bt&&(!bt&&Bt.isFunction&&(bt=!0),!bt&&Bt.type==="subsup"&&((z=Bt.leftSibling)!=null&&z.isFunction)&&(bt=!0));const Xt=new hi(ht,{type:bt?"close":"inner",classes:"left-right"});return Xt.setStyle("margin-top",`${-Ke.depth}em`),Xt.setStyle("height",`${Ke.height+Ke.depth}em`),this.caret&&(Xt.caret=this.caret),this.bind(ue,Xt.wrap(ue))}};function $s(a,y,b,z,ue){if(a)for(let Pe=0;Pe<a.length;Pe++){const Ke=a[Pe];Ke.type==="middle"?(a[Pe]=y.bind(b,Pi("inner",Ke.value,z,ue,b,{isSelected:y.isSelected})),a[Pe].caret=Ke.caret,a[Pe].isSelected=Ke.isSelected,a[Pe].cssId=Ke.cssId,a[Pe].htmlData=Ke.htmlData,a[Pe].htmlStyle=Ke.htmlStyle,a[Pe].attributes=Ke.attributes,a[Pe].cssProperties=Ke.cssProperties):Ke.children&&$s(Ke.children,y,b,z,ue)}}var Yu=class Bm extends _r{constructor(y,b){var z;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(z=b.expand)!=null?z:!1}static fromJson(y){return new Bm(y.command,y)}toJson(){const y=super.toJson();return this.expand&&(y.expand=!0),this.captureSelection!==void 0&&(y.captureSelection=this.captureSelection),this.macroArgs&&(y.args=this.macroArgs),y}_serialize(y){var b;return y.expandMacro&&this.expand?this.bodyToLatex(y):this.command+((b=this.macroArgs)!=null?b:"")}render(y){const b=_r.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},pc=class _m extends _r{constructor(){super({type:"macro-argument"})}static fromJson(y){return new _m}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},kc=class Fm extends _r{constructor(y,b,z=!1,ue,Pe){var Ke;super({type:"prompt",mode:(Ke=Pe==null?void 0:Pe.mode)!=null?Ke:"math",style:Pe==null?void 0:Pe.style,command:"\\placeholder"}),this.body=ue,this.correctness=b,this.placeholderId=y,this.locked=z,this.captureSelection=this.locked}static fromJson(y){return new Fm(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new Po({parent:y}),z=b.getRegisterAsEm("fboxsep"),ue=z,Pe=z,Ke=_r.createBox(y,this.body);if(!Ke)return null;Ke.height||(Ke.height=b.metrics.xHeight),Ke.setStyle("vertical-align",-Ke.height,"em"),this.correctness==="correct"?Ke.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&Ke.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const tt=new hi(Ke,{type:"ord"});tt.setStyle("display","inline-block"),tt.setStyle("height",Ke.height+Ke.depth,"em"),tt.setStyle("vertical-align",-Pe,"em");let ct="ML__prompt ";this.locked?ct+=" ML__lockedPromptBox ":ct+=" ML__editablePromptBox ",this.correctness==="correct"?ct+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ct+=" ML__incorrectPromptBox "),this.containsCaret&&(ct+=" ML__focusedPromptBox ");const ht=new hi(null,{classes:ct,attributes:{part:"prompt"}});ht.height=tt.height+Pe,ht.depth=tt.depth+Pe,ht.width=tt.width+2*ue,ht.setStyle("box-sizing","border-box"),ht.setStyle("position","absolute"),ht.setStyle("height",tt.height+tt.depth+2*Pe,"em"),ue===0&&ht.setStyle("width","100%"),ue!==0&&(ht.setStyle("width",`calc(100% + ${2*ue}em)`),ht.setStyle("top",z,"em"),ht.setStyle("left",-ue,"em")),(!this.body||this.body.length===1)&&(ht.width=3*ue,ht.setStyle("width",`calc(100% + ${3*ue}em)`),ht.setStyle("left",-1.5*ue,"em"));let bt="";this.correctness==="incorrect"&&(bt+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),bt&&(ht.svgOverlay=bt);const Bt=new hi([ht,tt],{classes:"ML__prompt-atom"});return Bt.setStyle("position","relative"),Bt.setStyle("display","inline-block"),Bt.setStyle("line-height",0),Bt.height=tt.height+Pe+.2,Bt.depth=tt.depth+Pe,Bt.left=ue,Bt.right=ue,Bt.setStyle("height",tt.height+Pe,"em"),Bt.setStyle("top",tt.depth-tt.height,"em"),Bt.setStyle("vertical-align",tt.depth+Pe,"em"),Bt.setStyle("margin-left",.5,"em"),Bt.setStyle("margin-right",.5,"em"),this.caret&&(Bt.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Bt}))}_serialize(y){var b;const z=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return z;let ue="\\placeholder";return this.placeholderId&&(ue+=`[${this.placeholderId}]`),this.correctness==="correct"?ue+="[correct]":this.correctness==="incorrect"&&(ue+="[incorrect]"),this.locked&&(ue+="[locked]"),ys(ue,z)}},ec=class jm extends _r{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new jm(y);for(const z of au)y[z]&&b.setChildren(y[z],z);return b}render(y){var b;const z=new Po({parent:y,isPhantom:!0}),ue=this.leftSibling,Pe=(b=ue.render(z))!=null?b:new hi(null),Ke=new hi(null);return Ke.height=Pe.height,Ke.depth=Pe.depth,this.attachSupsub(y,{base:Ke,isCharacterBox:ue.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function Qs(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Vc=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var z,ue,Pe,Ke;b!=null||(b={}),this.tokens=a,this.context=y instanceof Po&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Po({from:y,mathstyle:b.mathstyle},b.style),this.args=(z=b.args)!=null?z:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ue=b.style)!=null?ue:{},parseMode:(Pe=b.parseMode)!=null?Pe:"math",mathstyle:(Ke=b.mathstyle)!=null?Ke:"displaystyle",tabular:!1}}beginContext(a){var y,b,z;const ue=this.parsingContext,Pe={parent:ue,mathlist:[],style:ae({},ue.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ue.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ue.mathstyle,tabular:(z=a==null?void 0:a.tabular)!=null?z:!1};this.parsingContext=Pe}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(ae({before:wc(this.tokens.slice(this.index,this.index+10)),after:wc(this.tokens.slice(Math.max(0,this.index-10),this.index))},a))}get mathlist(){return this.parsingContext.mathlist}set mathlist(a){this.parsingContext.mathlist=a}get parseMode(){return this.parsingContext.parseMode}set parseMode(a){this.parsingContext.parseMode=a}get tabularMode(){return this.parsingContext.tabular}get style(){let a=this.parsingContext;for(;a;){if(a.style)return ae({},a.style);a=a.parent}return{}}set style(a){this.parsingContext.style=a}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(a){return this.tokens[this.index]===a?(this.index++,!0):!1}lastSubsupAtom(){let a;return this.mathlist.length>0&&(a=this.mathlist[this.mathlist.length-1],a.type==="subsup"||a.subsupPlacement!==void 0)||(a=new ec({style:this.style}),this.mathlist.push(a)),a}hasPattern(a){return a.test(this.tokens[this.index])}hasInfixCommand(){var a;const{index:y}=this;if(y<this.tokens.length&&this.tokens[y].startsWith("\\")){const b=zt(this.tokens[y],this.parseMode);return!b||b.definitionType==="symbol"||b.ifMode&&!b.ifMode.includes(this.parseMode)?!1:(a=b.infix)!=null?a:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const a=this.peek();return a!=="\\\\"&&a!=="\\cr"&&a!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var a;const y=(a=this.args)==null?void 0:a.call(this,"?");return y?ul(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Wa({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),z="";for(;!b;){const Pe=this.get();Qs(Pe)?(z+=Pe,b=this.end()||z.length>=a.length):b=!0}const ue=a.toUpperCase()===z.toUpperCase();return ue||(this.index=y),ue}scanString(){let a="";for(;!this.end();){const y=this.peek();if(y==="]")return a;if(y==="<space>")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(Qs(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const z=this.get();z==="<space>"?a+=" ":z==="<{>"?(a+="{",b+=1):z==="<}>"?(b-=1,b>0?a+="}":this.index-=1):z==="<$>"?a+="$":z==="<$$>"?a+="$$":a+=z,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const z=this.get();z==="<}>"?(b-=1,b>0&&(y+="}")):z==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(z)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[z])!=null?a:z)}return y}scanNumber(a=!0){var y,b;let z=!1,ue=this.peek();for(;ue==="<space>"||ue==="+"||ue==="-";)this.get(),ue==="-"&&(z=!z),ue=this.peek();a=!!a;let Pe=10,Ke=/\d/;if(this.match("'"))Pe=8,Ke=/[0-7]/,a=!0;else if(this.match('"'))Pe=16,Ke=/[\dA-F]/,a=!0;else if(this.match("x"))Pe=16,Ke=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ue=this.get(),ue?ue.length===2&&ue.startsWith("\\")?{number:(z?-1:1)*((y=ue.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(z?-1:1)*((b=ue.codePointAt(0))!=null?b:0),base:"alpha"}:null;let tt="";for(;this.hasPattern(Ke);)tt+=this.get();if(!a&&(this.match(".")||this.match(",")))for(tt+=".";this.hasPattern(Ke);)tt+=this.get();const ct=a?Number.parseInt(tt,Pe):Number.parseFloat(tt);return Number.isNaN(ct)?null:{number:z?-ct:ct,base:Pe===16?"hexadecimal":Pe===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let z=!1;if(b===null)for(;;){const Pe=this.peek();if(Pe==="-")z=!z;else if(Pe!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const Pe=this.get();return Pe.startsWith("\\")?b?{register:Pe,global:!0,factor:(z?-1:1)*b.number}:z?{register:Pe,global:!0,factor:-1}:{register:Pe,global:!0}:(this.index=y,null)}let ue=this.get();return ue!=null&&ue.startsWith("\\")?(ue=ue.substring(1),this.context.registers[ue]?!z||b!==null?{register:ue,factor:(z?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ue}:(this.index=y,null)):(this.index=y,null)}scanValue(){const a=this.scanRegister();if(a)return a;const y=this.index,b=this.scanGlueOrDimen();if(b&&("unit"in b||"glue"in b&&"unit"in b.glue))return b;this.index=y;const z=this.scanNumber();if(z)return z;if(this.end()||!Qs(this.peek()))return null;const ue=this.scanString();return ue.length>0?{string:ue}:null}scanDimen(){const a=this.scanNumber(!1);if(a===null)return null;const y=a.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let b;return this.matchKeyword("pt")?b="pt":this.matchKeyword("mm")?b="mm":this.matchKeyword("cm")?b="cm":this.matchKeyword("ex")?b="ex":this.matchKeyword("px")?b="px":this.matchKeyword("em")?b="em":this.matchKeyword("bp")?b="bp":this.matchKeyword("dd")?b="dd":this.matchKeyword("pc")?b="pc":this.matchKeyword("in")?b="in":this.matchKeyword("mu")&&(b="mu"),b?{dimension:y,unit:b}:{dimension:y}}scanGlueOrDimen(){const a=this.scanDimen();if(a===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return a;const y={glue:a};if(this.matchKeyword("plus")){const b=this.scanDimen();if(b)y.grow=b;else return y}if(this.skipWhitespace(),this.match("\\relax"))return y;if(this.skipWhitespace(),this.matchKeyword("minus")){const b=this.scanDimen();if(b)y.shrink=b;else return y}return!y.grow&&!y.shrink?a:y}scanColspec(){this.skipWhitespace();const a=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const y=this.get();y==="c"||y==="r"||y==="l"?a.push({align:y}):y==="|"?a.push({separator:"solid"}):y===":"?a.push({separator:"dashed"}):y==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),a.push({gap:this.scan(b=>b==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return a}scanModeSet(){let a;if(this.match("\\(")&&(a="textstyle"),!a&&this.match("\\[")&&(a="displaystyle"),!a)return null;this.beginContext({mode:"math",mathstyle:a});const y=this.scan(b=>b===(a==="displaystyle"?"\\]":"\\)"));return this.match(a==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanModeShift(){let a="";if(this.match("<$>")&&(a="<$>"),!a&&this.match("<$$>")&&(a="<$$>"),!a)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const y=this.scan(b=>b===a);return this.match(a)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanEnvironment(){if(!this.match("\\begin"))return null;const a=this.scanArgument("string");if(!a)return null;const y=Qe(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const tt of y.params)if(tt.isOptional)b.push(this.scanOptionalArgument(tt.type));else{const ct=this.scanArgument(tt.type);ct||this.onError({code:"missing-argument",arg:a}),b.push(ct)}this.beginContext({tabular:y.tabular});const z=[],ue=[];let Pe=[],Ke=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),Ke=!0),!Ke&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),Ke=!0),!Ke)if(this.matchColumnSeparator())Pe.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){Pe.push(this.mathlist),this.mathlist=[];let tt=null;this.skipWhitespace(),this.match("[")&&(tt=this.scanDimen(),this.skipWhitespace(),this.match("]")),ue.push(tt!=null?tt:{dimension:0}),z.push(Pe),Pe=[]}else this.mathlist.push(...this.scan(tt=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(tt)));while(!Ke);return Pe.push(this.mathlist),Pe.length>0&&z.push(Pe),this.endContext(),y.createAtom(a,z,ue,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=Ke=>Ke==="<}>");let y="",b=null,z=[],ue=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=zt(y,"math"),b&&(z=this.scanArguments(b)[1]),ue=this.mathlist,this.mathlist=[]):this.parseExpression();let Pe;return y?(console.assert(!!b),z.unshift(this.mathlist),ue&&z.unshift(ue),Pe=[b.createAtom({command:y,args:z,style:this.style,mode:this.parseMode})]):Pe=this.mathlist,this.endContext(),Pe}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(z=>z==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new cl(y,this.parseMode,this.style);return b.verbatimLatex=wc(this.tokens.slice(a,this.index)),b}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let a=1;for(;!this.end()&&a!==0;)this.match("(")&&(a+=1),this.match(")")&&(a-=1),a!==0&&this.parseExpression();const y=new Uo("",this.mathlist,{leftDelim:"(",rightDelim:a===0?")":"?"});return this.endContext(),y}scanDelim(){this.skipWhitespace();const a=this.peek();if(!a)return this.onError({code:"unexpected-end-of-string"}),null;if(!Qs(a)&&!a.startsWith("\\"))return null;this.next();const y=zt(a,"math");return y?y.definitionType==="function"&&y.ifMode&&!y.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:a}),null):y.definitionType==="symbol"&&(y.type==="mopen"||y.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(a)?a:(this.onError({code:"unexpected-delimiter",arg:a}),null):(this.onError({code:"unknown-command",arg:a}),null)}scanLeftRight(){var a;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new kl("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new kl("\\mright");let y="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;y="\\mright"}const b=this.scanDelim();if(!b)return this.onError({code:"unexpected-delimiter"}),new kl(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const z=this.mathlist;this.endContext();const ue=(a=this.scanDelim())!=null?a:".";return new Uo(y==="\\right"?"left...right":"mleft...mright",z,{leftDelim:b,rightDelim:ue,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let a=this.peek();if(a!=="^"&&a!=="_"&&a!=="'")return!1;const y=this.lastSubsupAtom();for(;a==="^"||a==="_"||a==="'";)this.match("'")?this.match("'")?y.addChild(new _r({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new _r({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(rt(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const z=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return z===null?!1:(z.explicitSubsupPlacement=!0,a&&(z.subsupPlacement="over-under"),y&&(z.subsupPlacement="adjacent"),b&&(z.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let z=a.infix?2:0;for(;z<a.params.length;){const ue=a.params[z];ue.type==="rest"?b.push(this.scan(Pe=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(Pe))):ue.isOptional?b.push(this.scanOptionalArgument(ue.type)):ue.type.endsWith("*")?y=ue.type.slice(0,-1):b.push(this.scanArgument(ue.type)),z+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(Qs(a)){const b=Ll.createAtom(this.parseMode,a,ae({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=zt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new kl(a)];if(b.definitionType==="symbol"){const z=ae({},this.style);b.variant&&(z.variant=b.variant),y=new _r({type:b.type,command:a,style:z,value:String.fromCodePoint(b.codepoint),mode:this.parseMode,verbatimLatex:a})}else{if(b.applyMode||b.applyStyle||b.infix)return this.onError({code:"invalid-command",arg:a}),[new kl(a)];b.createAtom&&(y=b.createAtom({command:a,args:[],style:this.style,mode:this.parseMode}))}}return y?[y]:null}scanArgument(a){var y;this.skipFiller();const b=this.parseMode;if(a==="auto"&&(a=b),!this.match("<{>")){if(a==="string")return this.scanString();if(a==="value")return this.scanValue();if(a==="delim")return(y=this.scanDelim())!=null?y:".";if(a==="expression")return this.scanExpression();if(a==="math"){a!==b&&this.beginContext({mode:"math"});const ue=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ue}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ue=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ue}return a==="balanced-string"||console.assert(!1),null}if(a==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ue=this.mathlist;return this.endContext(),{group:ue}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ue=this.mathlist;return this.endContext(),{group:ue}}let z=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ue=this.mathlist;return this.endContext(),{group:ue}}return a==="string"?z=this.scanString():a==="balanced-string"?z=this.scanBalancedString():a==="colspec"?z=this.scanColspec():a==="value"&&(z=this.scanValue()),this.skipUntilToken("<}>"),z}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},z=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ue of z){const Pe=ue.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(Pe)b.padding={dimension:parseInt(Pe[1]),unit:Pe[2]};else{const Ke=ue.match(/^\s*border\s*:\s*(.*)/);Ke?b.border=Ke[1]:b.backgroundcolor={string:ue}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,z;if(a==="\\placeholder"){const tt=this.scanOptionalArgument("string"),ct=this.scanOptionalArgument("math"),ht=_r.serialize(ct,{defaultMode:"math"});let bt=[],Bt;!Bt&&ht==="correct"?Bt="correct":!Bt&&ht==="incorrect"?Bt="incorrect":ht!==""&&(bt=ct);const Xt=this.scanOptionalArgument("string")==="locked",hn=this.scanArgument("auto");let wn;return hn&&Array.isArray(hn)&&hn.length>0?wn=hn:hn&&typeof hn=="object"&&"group"in hn?wn=hn.group:wn=bt,tt?[new kc(tt,Bt,Xt,wn!=null?wn:bt,{mode:this.parseMode,style:this.style})]:[new Wa({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const tt=this.index,ct=this.scanLiteralGroup()||this.next();if(!ct)return null;if(this.context.registers[ct.substring(1)]){const ht=this.scanArgument("string");ht!==null&&(this.context.registers[ct.substring(1)]=ht);const bt=Eo([a,wc(this.tokens.slice(tt,this.index))]);return[new _r({type:"text",value:"",verbatimLatex:bt})]}}let ue=this.scanMacro(a);if(ue)return[ue];const Pe=zt(a,this.parseMode);if(!Pe)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(tt=>new _r({type:"text",value:tt,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new kl(a)]);const Ke=this.index;if(Pe.definitionType==="symbol"){const tt=ae({},this.style);Pe.variant&&(tt.variant=Pe.variant),ue=new _r({type:Pe.type,command:a,style:tt,value:String.fromCodePoint(Pe.codepoint),mode:this.parseMode})}else{if(Pe.ifMode&&!Pe.ifMode.includes(this.parseMode))return[];const tt=this.parseMode;Pe.applyMode&&(this.parseMode=Pe.applyMode);let ct,ht=[];if(Pe.parse?ht=Pe.parse(this):[ct,ht]=this.scanArguments(Pe),this.parseMode=tt,Pe.applyMode&&!Pe.applyStyle&&!Pe.createAtom)return rt(ht[0]);if(Pe.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof Pe.createAtom=="function")ue=Pe.createAtom({command:a,args:ht,style:this.style,mode:this.parseMode}),ct&&(ue.body=rt(this.scanArgument(ct)));else if(typeof Pe.applyStyle=="function"){const bt=ae(ae({},this.style),Pe.applyStyle(a,ht,this.context)),Bt=this.parseMode;if(Pe.applyMode&&(this.parseMode=Pe.applyMode),ct){const Xt=this.style;this.style=bt;const hn=this.scanArgument(ct);return this.style=Xt,this.parseMode=Bt,rt(hn)}this.style=bt}else ue=new _r({type:"mord",command:(b=Pe.command)!=null?b:a,style:ae({},this.style),value:a,mode:(z=Pe.applyMode)!=null?z:this.parseMode})}if(!ue)return null;if(ue instanceof _r&&ue.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const tt=Eo([a,wc(this.tokens.slice(Ke,this.index))]);tt&&(ue.verbatimLatex=tt)}if(ue.verbatimLatex===null&&(ue.verbatimLatex=void 0),ue.isFunction&&this.smartFence){const tt=this.scanSmartFence();if(tt)return[ue,tt]}return[ue]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(Qs(a)){const y=Ll.createAtom(this.parseMode,a,ae({},this.style));if(!y)return null;if(y.isFunction&&this.smartFence){const b=this.scanSmartFence();if(b)return[y,b]}return[y]}return a.startsWith("\\")?this.scanSymbolOrCommand(a):a==="<space>"?this.parseMode==="text"?[new fc(" "," ",this.style)]:null:(a==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:a}),null)}scanMacro(a){var y;const b=this.context.getMacro(a);if(!b)return null;const z=this.index,ue=b.args,Pe={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let Ke=1;Ke<=ue;Ke++){let tt=this.scanLiteralGroup();if(!tt){const ct=this.index;this.scanExpression(),tt=wc(this.tokens.slice(ct,this.index))}Pe[Ke]=tt}return new Yu(a,{expand:b.expand,captureSelection:b.captureSelection,args:z===this.index?null:wc(this.tokens.slice(z,this.index)),style:this.parsingContext.style,body:ul(b.def,{context:this.context,parseMode:this.parseMode,args:Ke=>Pe[Ke],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,z;let ue=(z=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?z:this.scanLeftRight();if(ue===null){if(this.parseSupSub()||this.parseLimits())return!0;ue=this.scanSymbolCommandOrLiteral()}return ue?(Array.isArray(ue)?this.mathlist.push(...ue):this.mathlist.push(ue),!0):!1}};function ul(a,y){var b,z,ue,Pe;const Ke=(b=y==null?void 0:y.args)!=null?b:void 0,tt=new Vc(cc(a,Ke),y==null?void 0:y.context,{args:Ke,mathstyle:(z=y==null?void 0:y.mathstyle)!=null?z:"displaystyle",parseMode:(ue=y==null?void 0:y.parseMode)!=null?ue:"math",style:(Pe=y==null?void 0:y.style)!=null?Pe:{}}),ct=[];for(;!tt.end();)ct.push(...tt.scan(()=>!1));return ct}function np(a,y){var b;const z=new Vc(cc(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!z.end();)z.scan();return z.errors}var rp=class Km extends _r{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const z=Ms.go(ai.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=ul(z),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new Km(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return ne(ae({},super.toJson()),{arg:this.arg})}render(y){const b=_r.createBox(y,this.body,{type:"inner"});return this.caret&&(b.caret=this.caret),this.bind(y,b)}_serialize(y){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};Ft(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new rp(a.command,(y=a.args[0])!=null?y:"")}});var ai={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",z={};z.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ue,Pe=10,Ke=[];;){ue!==a?(Pe=10,ue=a):Pe--;var tt=ai.stateMachines[y],ct=tt.transitions[b]||tt.transitions["*"];e:for(var ht=0;ht<ct.length;ht++){var bt=ai.patterns.match_(ct[ht].pattern,a);if(bt){for(var Bt=ct[ht].task,Xt=0;Xt<Bt.action_.length;Xt++){var hn;if(tt.actions[Bt.action_[Xt].type_])hn=tt.actions[Bt.action_[Xt].type_](z,bt.match_,Bt.action_[Xt].option);else if(ai.actions[Bt.action_[Xt].type_])hn=ai.actions[Bt.action_[Xt].type_](z,bt.match_,Bt.action_[Xt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Bt.action_[Xt].type_+")"];ai.concatArray(Ke,hn)}if(b=Bt.nextState||b,a.length>0){if(Bt.revisit||(a=bt.remainder),!Bt.toContinue)break e}else return Ke}}if(Pe<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=ai.patterns.findObserveGroups(a,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(y&&y.remainder.match(/^($|[\s,;\)\]\}])/))return y;var b=a.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return b?{match_:b[0],remainder:a.substr(b[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(a){return ai.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return ai.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return ai.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return ai.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return ai.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return ai.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return ai.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return ai.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return ai.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return ai.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return ai.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return ai.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return ai.patterns.findObserveGroups(a,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(a){return ai.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return ai.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return ai.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return ai.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(a){return ai.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return ai.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return ai.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return ai.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return ai.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return ai.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return ai.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return ai.patterns.findObserveGroups(a,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(a){var y;if(y=a.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),y)return{match_:y[0],remainder:a.substr(y[0].length)};var b=ai.patterns.findObserveGroups(a,"","$","$","");return b&&(y=b.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),y)?{match_:y[0],remainder:a.substr(y[0].length)}:null},amount2:function(a){return this.amount(a)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(a){if(a.match(/^\([a-z]+\)$/))return null;var y=a.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return y?{match_:y[0],remainder:a.substr(y[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(a,y,b,z,ue,Pe,Ke,tt,ct,ht){var bt=function(yr,Zr){if(typeof Zr=="string")return yr.indexOf(Zr)!==0?null:Zr;var mi=yr.match(Zr);return mi?mi[0]:null},Bt=function(yr,Zr,mi){for(var $r=0;Zr<yr.length;){var da=yr.charAt(Zr),_a=bt(yr.substr(Zr),mi);if(_a!==null&&$r===0)return{endMatchBegin:Zr,endMatchEnd:Zr+_a.length};if(da==="{")$r++;else if(da==="}"){if($r===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];$r--}Zr++}return $r>0,null},Xt=bt(a,y);if(Xt===null||(a=a.substr(Xt.length),Xt=bt(a,b),Xt===null))return null;var hn=Bt(a,Xt.length,z||ue);if(hn===null)return null;var wn=a.substring(0,z?hn.endMatchEnd:hn.endMatchBegin);if(Pe||Ke){var Sr=this.findObserveGroups(a.substr(hn.endMatchEnd),Pe,Ke,tt,ct);if(Sr===null)return null;var ui=[wn,Sr.match_];return{match_:ht?ui.join(""):ui,remainder:Sr.remainder}}else return{match_:wn,remainder:a.substr(hn.endMatchEnd)}},match_:function(a,y){var b=ai.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return ai.patterns.patterns[a](y);var z=y.match(b);if(z){var ue;return z[2]?ue=[z[1],z[2]]:z[1]?ue=z[1]:ue=z[0],{match_:ue,remainder:y.substr(z[0].length)}}return null}},actions:{"a=":function(a,y){a.a=(a.a||"")+y},"b=":function(a,y){a.b=(a.b||"")+y},"p=":function(a,y){a.p=(a.p||"")+y},"o=":function(a,y){a.o=(a.o||"")+y},"q=":function(a,y){a.q=(a.q||"")+y},"d=":function(a,y){a.d=(a.d||"")+y},"rm=":function(a,y){a.rm=(a.rm||"")+y},"text=":function(a,y){a.text_=(a.text_||"")+y},insert:function(a,y,b){return{type_:b}},"insert+p1":function(a,y,b){return{type_:b,p1:y}},"insert+p1+p2":function(a,y,b){return{type_:b,p1:y[0],p2:y[1]}},copy:function(a,y){return y},rm:function(a,y){return{type_:"rm",p1:y||""}},text:function(a,y){return ai.go(y,"text")},"{text}":function(a,y){var b=["{"];return ai.concatArray(b,ai.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return ai.go(y,"tex-math")},"tex-math tight":function(a,y){return ai.go(y,"tex-math tight")},bond:function(a,y,b){return{type_:"bond",kind_:b||y}},"color0-output":function(a,y){return{type_:"color0",color:y[0]}},ce:function(a,y){return ai.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var z=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return z[1]=z[1].replace(/\$/g,""),b.push({type_:"frac",p1:z[1],p2:z[2]}),z[3]&&(z[3]=z[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:z[3]})),b},"9,9":function(a,y){return ai.go(y,"9,9")}},createTransitions:function(a){var y,b,z,ue,Pe={};for(y in a)for(b in a[y])for(z=b.split("|"),a[y][b].stateArray=z,ue=0;ue<z.length;ue++)Pe[z[ue]]=[];for(y in a)for(b in a[y])for(z=a[y][b].stateArray||[],ue=0;ue<z.length;ue++){var Ke=a[y][b];if(Ke.action_){Ke.action_=[].concat(Ke.action_);for(var tt=0;tt<Ke.action_.length;tt++)typeof Ke.action_[tt]=="string"&&(Ke.action_[tt]={type_:Ke.action_[tt]})}else Ke.action_=[];for(var ct=y.split("|"),ht=0;ht<ct.length;ht++)if(z[ue]==="*")for(var bt in Pe)Pe[bt].push({pattern:ct[ht],task:Ke});else Pe[z[ue]].push({pattern:ct[ht],task:Ke})}return Pe},stateMachines:{}};ai.stateMachines={ce:{transitions:ai.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(a,y){var b;if((a.d||"").match(/^[0-9]+$/)){var z=a.d;a.d=void 0,b=this.output(a),a.b=z}else b=this.output(a);return ai.actions["o="](a,y),b},"d= kv":function(a,y){a.d=y,a.dType="kv"},"charge or bond":function(a,y){if(a.beginsWithBond){var b=[];return ai.concatArray(b,this.output(a)),ai.concatArray(b,ai.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var z=ai.patterns.match_("orbital",a.o||""),ue=ai.patterns.match_("one lowercase greek letter $",a.o||""),Pe=ai.patterns.match_("one lowercase latin letter $",a.o||""),Ke=ai.patterns.match_("$one lowercase latin letter$ $",a.o||""),tt=y==="-"&&(z&&z.remainder===""||ue||Pe||Ke);tt&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!z&&Pe&&(a.o="$"+a.o+"$");var ct=[];return tt?(ai.concatArray(ct,this.output(a)),ct.push({type_:"hyphen"})):(z=ai.patterns.match_("digits",a.d||""),b&&z&&z.remainder===""?(ai.concatArray(ct,ai.actions["d="](a,y)),ai.concatArray(ct,this.output(a))):(ai.concatArray(ct,this.output(a)),ai.concatArray(ct,ai.actions.bond(a,y,"-")))),ct},"a to o":function(a){a.o=a.a,a.a=void 0},"sb=true":function(a){a.sb=!0},"sb=false":function(a){a.sb=!1},"beginsWithBond=true":function(a){a.beginsWithBond=!0},"beginsWithBond=false":function(a){a.beginsWithBond=!1},"parenthesisLevel++":function(a){a.parenthesisLevel++},"parenthesisLevel--":function(a){a.parenthesisLevel--},"state of aggregation":function(a,y){return{type_:"state of aggregation",p1:ai.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),z=b!==y;return z&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var z;if(!a.r)z=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&z.push({type_:"entitySkip"}),!a.o&&!a.q&&!a.d&&!a.b&&!a.p&&b!==2?(a.o=a.a,a.a=void 0):!a.o&&!a.q&&!a.d&&(a.b||a.p)?(a.o=a.a,a.d=a.b,a.q=a.p,a.a=a.b=a.p=void 0):a.o&&a.dType==="kv"&&ai.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),z.push({type_:"chemfive",a:ai.go(a.a,"a"),b:ai.go(a.b,"bd"),p:ai.go(a.p,"pq"),o:ai.go(a.o,"o"),q:ai.go(a.q,"pq"),d:ai.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ue;a.rdt==="M"?ue=ai.go(a.rd,"tex-math"):a.rdt==="T"?ue=[{type_:"text",p1:a.rd||""}]:ue=ai.go(a.rd);var Pe;a.rqt==="M"?Pe=ai.go(a.rq,"tex-math"):a.rqt==="T"?Pe=[{type_:"text",p1:a.rq||""}]:Pe=ai.go(a.rq),z={type_:"arrow",r:a.r,rd:ue,rq:Pe}}for(var Ke in a)Ke!=="parenthesisLevel"&&Ke!=="beginsWithBond"&&delete a[Ke];return z},"oxidation-output":function(a,y){var b=["{"];return ai.concatArray(b,ai.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:ai.go(y[0]),p2:ai.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:ai.go(y[0]),p2:ai.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:ai.go(y[0]),p2:ai.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:ai.go(y[0]),p2:ai.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ai.go(y[1])}},"r=":function(a,y){a.r=y},"rdt=":function(a,y){a.rdt=y},"rd=":function(a,y){a.rd=y},"rqt=":function(a,y){a.rqt=y},"rq=":function(a,y){a.rq=y},operator:function(a,y,b){return{type_:"operator",kind_:b||y}}}},a:{transitions:ai.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:ai.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:ai.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(a){if(a.text_){var y={type_:"text",p1:a.text_};for(var b in a)delete a[b];return y}}}},pq:{transitions:ai.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(a,y){return{type_:"state of aggregation subscript",p1:ai.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ai.go(y[1],"pq")}}}},bd:{transitions:ai.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ai.go(y[1],"bd")}}}},oxidation:{transitions:ai.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(a,y){return{type_:"roman numeral",p1:y||""}}}},"tex-math":{transitions:ai.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"tex-math tight":{transitions:ai.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(a,y){a.o=(a.o||"")+"{"+y+"}"},output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"9,9":{transitions:ai.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:ai.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),y[1]&&(ai.concatArray(b,ai.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?ai.concatArray(b,ai.go(y[2],"pu-9,9")):b.push(y[2])),(y[3]||y[4])&&(y[3]==="e"||y[4]==="*"?b.push({type_:"cdot"}):b.push({type_:"times"}))),y[5]&&b.push("10^{"+y[5]+"}"),b},"number^":function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),ai.concatArray(b,ai.go(y[1],"pu-9,9")),b.push("^{"+y[2]+"}"),b},operator:function(a,y,b){return{type_:"operator",kind_:b||y}},space:function(){return{type_:"pu-space-1"}},output:function(a){var y,b=ai.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var z=ai.patterns.match_("{(...)}",a.q||"");if(z&&z.remainder===""&&(a.q=z.match_),a.d&&(a.d=a.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.d=a.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),a.q){a.q=a.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.q=a.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var ue={d:ai.go(a.d,"pu"),q:ai.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ue.d,p2:ue.q}:(y=ue.d,ue.d.length>1||ue.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),ai.concatArray(y,ue.q))}else y=ai.go(a.d,"pu-2");for(var Pe in a)delete a[Pe];return y}}},"pu-2":{transitions:ai.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(a,y){a.rm+="^{"+y+"}"},space:function(){return{type_:"pu-space-2"}},output:function(a){var y=[];if(a.rm){var b=ai.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=ai.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var z in a)delete a[z];return y}}},"pu-9,9":{transitions:ai.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){var b=a.text_.length%3;b===0&&(b=3);for(var z=a.text_.length-3;z>0;z-=3)y.push(a.text_.substr(z,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ue in a)delete a[ue];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,z=0;z<b;z+=3)y.push(a.text_.substr(z,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(z))}else y.push(a.text_);for(var ue in a)delete a[ue];return y}}}};var Ms={go:function(a,y){if(!a)return"";for(var b="",z=!1,ue=0;ue<a.length;ue++){var Pe=a[ue];typeof Pe=="string"?b+=Pe:(b+=Ms._go2(Pe),Pe.type_==="1st-level escape"&&(z=!0))}return!y&&!z&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Ms.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Ms._goInner(a.a),b:Ms._goInner(a.b),p:Ms._goInner(a.p),o:Ms._goInner(a.o),q:Ms._goInner(a.q),d:Ms._goInner(a.d)};b.a&&(b.a.match(/^[+\-]/)&&(b.a="{"+b.a+"}"),y+=b.a+"\\,"),(b.b||b.p)&&(y+="{\\vphantom{X}}",y+="^{\\hphantom{"+(b.b||"")+"}}_{\\hphantom{"+(b.p||"")+"}}",y+="{\\vphantom{X}}",y+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(b.b||"")+"}}",y+="_{\\vphantom{2}\\llap{\\smash[t]{"+(b.p||"")+"}}}"),b.o&&(b.o.match(/^[+\-]/)&&(b.o="{"+b.o+"}"),y+=b.o),a.dType==="kv"?((b.d||b.q)&&(y+="{\\vphantom{X}}"),b.d&&(y+="^{"+b.d+"}"),b.q&&(y+="_{\\smash[t]{"+b.q+"}}")):a.dType==="oxidation"?(b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"),b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}")):(b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}"),b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"));break;case"rm":y="\\mathrm{"+a.p1+"}";break;case"text":a.p1.match(/[\^_]/)?(a.p1=a.p1.replace(" ","~").replace("-","\\text{-}"),y="\\mathrm{"+a.p1+"}"):y="\\text{"+a.p1+"}";break;case"roman numeral":y="\\mathrm{"+a.p1+"}";break;case"state of aggregation":y="\\mskip2mu "+Ms._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Ms._goInner(a.p1);break;case"bond":if(y=Ms._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var z="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+z+"}{"+z+"}{"+z+"}{"+z+"}";break;case"pu-frac":var ue="\\frac{"+Ms._goInner(a.p1)+"}{"+Ms._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ue+"}{"+ue+"}{"+ue+"}{"+ue+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Ms._goInner(a.p1)+"}{"+Ms._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Ms._goInner(a.p1)+"}{"+Ms._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Ms._goInner(a.p1)+"}{"+Ms._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Ms._goInner(a.p1)+"}_{"+Ms._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Ms._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var Pe={rd:Ms._goInner(a.rd),rq:Ms._goInner(a.rq)},Ke=Ms._getArrow(a.r);Pe.rd||Pe.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(Ke="\\long"+Ke,Pe.rd&&(Ke="\\overset{"+Pe.rd+"}{"+Ke+"}"),Pe.rq&&(a.r==="<-->"?Ke="\\underset{\\lower2mu{"+Pe.rq+"}}{"+Ke+"}":Ke="\\underset{\\lower6mu{"+Pe.rq+"}}{"+Ke+"}"),Ke=" {}\\mathrel{"+Ke+"}{} "):(Pe.rq&&(Ke+="[{"+Pe.rq+"}]"),Ke+="{"+Pe.rd+"}",Ke=" {}\\mathrel{\\x"+Ke+"}{} "):Ke=" {}\\mathrel{\\long"+Ke+"}{} ",y=Ke;break;case"operator":y=Ms._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function My(a){}function ky(a){}var ip=class zm extends _r{constructor(y){super(ne(ae({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new zm(y)}toJson(){return ne(ae({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new hi(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=zt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):ys(this.command,this.value)}},ap=class Hm extends _r{constructor(y){super(ne(ae({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Hm(y)}toJson(){return ne(ae({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=cr(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=zt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):ys(this.command,this.value)}},Id=class Wm extends _r{constructor(y,b,z,ue){var Pe,Ke;super({type:"enclose",command:y,style:ue.style}),this.body=b,this.backgroundcolor=ue.backgroundcolor,z.updiagonalarrow&&(z.updiagonalstrike=!1),z.box&&(z.left=!1,z.right=!1,z.bottom=!1,z.top=!1),this.notation=z,this.shadow=(Pe=ue.shadow)!=null?Pe:"none",this.strokeWidth=(Ke=ue.strokeWidth)!=null?Ke:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ue.strokeStyle,this.svgStrokeStyle=ue.svgStrokeStyle,this.strokeColor=ue.strokeColor,this.borderStyle=ue.borderStyle,this.padding=ue.padding,this.captureSelection=!1}static fromJson(y){return new Wm(y.command,y.body,y.notation,y)}toJson(){return ne(ae({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(y){var b;if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const z=zt(this.command,this.mode);if(z!=null&&z.serialize)return z.serialize(this,y);let ue=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ue+="{"+Object.keys(this.notation).join(" ")+"}";let Pe="",Ke="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(Pe+=Ke+'mathbackground="'+this.backgroundcolor+'"',Ke=","),this.shadow&&this.shadow!=="auto"&&(Pe+=Ke+'shadow="'+this.shadow+'"',Ke=","),this.strokeWidth||this.strokeStyle!=="solid"?(Pe+=Ke+this.borderStyle,Ke=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(Pe+=Ke+'mathcolor="'+this.strokeColor+'"',Ke=","),Pe&&(ue+=`[${Pe}]`)}return ys(ue,this.bodyToLatex(y))}render(y){const b=new Po({parent:y},this.style),z=_r.createBox(b,this.body);if(!z)return null;const ue=a0(this.borderStyle),Pe=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});z.setStyle("position","relative"),z.setStyle("display","inline-block"),z.setStyle("top",Pe,"em"),z.setStyle("height",z.height+z.depth,"em"),z.setStyle("width",z.width,"em");const Ke=new hi(null,{classes:"ML__notation"});let tt=z.height+z.depth+2*Pe;const ct=z.width+2*Pe;let ht="";if(this.notation.horizontalstrike&&(ht+=this.line(3,50,97,50)),this.notation.verticalstrike&&(ht+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(ht+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(ht+=this.line(3,3,97,97)),this.notation.updiagonalarrow){ht+=this.line(Pe.toString(),(Pe+z.depth+z.height).toString(),(Pe+z.width).toString(),Pe.toString());const wn=.03*Math.sqrt(ct*ct+tt*tt)*1,Sr=z.width*wn,ui=(z.depth+z.height)*wn,yr=Pe+z.width;let Zr=Pe;Zr+ui-.4*Sr<0&&(Zr=.4*Sr-ui),ht+='<polygon points="',ht+=`${yr},${Zr} ${yr-Sr-.4*ui},${Zr+ui-.4*Sr} `,ht+=`${yr-.7*Sr},${Zr+.7*ui} ${yr-Sr+.4*ui},${Zr+ui+.4*Sr} `,ht+=`${yr},${Zr}`,ht+=`" stroke='none' fill="${this.strokeColor}"`,ht+="/>"}let bt=0;if(this.notation.phasorangle){const Xt=op(b),hn=(z.height+z.depth+2*Xt+Pe).toString(),wn=(z.height+z.depth)/2;ht+=this.line(Pe.toString(),hn,(Pe+wn+z.width).toString(),hn),ht+=this.line(Pe.toString(),hn,(Pe+wn).toString(),(Pe-Xt).toString()),tt+=Xt,bt=wn,z.left+=tt/2-Pe}if(this.notation.longdiv){const Xt=op(b);tt+=Xt,ht+=this.line(Pe.toString(),Pe.toString(),(Pe+z.width).toString(),Pe.toString());const hn=.3;bt=hn+Xt,z.left+=hn+Xt,z.setTop(Pe+Xt),ht+='<path d="',ht+=`M ${Pe} ${Pe} a${hn} ${(z.depth+z.height+2*Xt)/2}, 0, 1, 1, 0 ${z.depth+z.height+2*Xt} "`,ht+=` stroke-width="${o0(b)}" stroke="${this.strokeColor}" fill="none"`,ht+="/>"}if(Ke.width=z.width+2*Pe+bt,Ke.height=z.height+Pe,Ke.depth=z.depth+Pe,Ke.setStyle("box-sizing","border-box"),Ke.setStyle("left",`calc(-${ue} / 2 )`),Ke.setStyle("height",`${Math.floor(100*tt)/100}em`),Ke.setStyle("top",`calc(${ue} / 2 )`),this.backgroundcolor&&Ke.setStyle("background-color",this.backgroundcolor),this.notation.box&&Ke.setStyle("border","1px solid red"),this.notation.actuarial&&(Ke.setStyle("border-top",this.borderStyle),Ke.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(Ke.setStyle("border-bottom",this.borderStyle),Ke.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(Ke.setStyle("border-radius","8px"),Ke.setStyle("border",this.borderStyle)),this.notation.circle&&(Ke.setStyle("border-radius","50%"),Ke.setStyle("border",this.borderStyle)),this.notation.top&&Ke.setStyle("border-top",this.borderStyle),this.notation.left&&Ke.setStyle("border-left",this.borderStyle),this.notation.right&&Ke.setStyle("border-right",this.borderStyle),this.notation.bottom&&Ke.setStyle("border-bottom",this.borderStyle),ht){let Xt="";this.shadow==="auto"&&(Xt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Xt+=`filter: drop-shadow(${this.shadow})`),Xt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Xt+=' stroke-linecap="round"',this.svgStrokeStyle&&(Xt+=` stroke-dasharray="${this.svgStrokeStyle}"`),Ke.svgStyle=Xt,Ke.svgOverlay=ht}const Bt=new hi([Ke,z]);return Bt.setStyle("position","relative"),Bt.setStyle("vertical-align",Pe,"em"),Bt.setStyle("height",`${Math.floor(100*(z.height+z.depth+2*Pe))/100}em`),Bt.setStyle("display","inline-block"),Bt.height=Ke.height,Bt.depth=Ke.depth,Bt.width=Ke.width-2*Pe,Bt.left=Pe,Bt.right=Pe,this.caret&&(Bt.caret=this.caret),Bt.wrap(b)}line(y,b,z,ue){return`<line x1="${xf(y)}" y1="${xf(b)}" x2="${xf(z)}" y2="${xf(ue)}" vector-effect="non-scaling-stroke"></line>`}};function xf(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function a0(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function o0(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function op(a){const y=a.isDisplayStyle?zl:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Qu=class Um extends _r{constructor(y,b,z){var ue,Pe;super(ne(ae({},z),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ue=z==null?void 0:z.hasBarLine)!=null?ue:!0,this.continuousFraction=(Pe=z==null?void 0:z.continuousFraction)!=null?Pe:!1,this.numerPrefix=z==null?void 0:z.numerPrefix,this.denomPrefix=z==null?void 0:z.denomPrefix,this.mathstyleName=z==null?void 0:z.mathstyleName,this.leftDelim=z==null?void 0:z.leftDelim,this.rightDelim=z==null?void 0:z.rightDelim,this.fractionNavigationOrder=z==null?void 0:z.fractionNavigationOrder}static fromJson(y){return new Um(y.above,y.below,y)}toJson(){const y={};return this.continuousFraction&&(y.continuousFraction=!0),this.numerPrefix&&(y.numerPrefix=this.numerPrefix),this.denomPrefix&&(y.denomPrefix=this.denomPrefix),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),this.hasBarLine||(y.hasBarLine=!1),this.mathstyleName&&(y.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(y.fractionNavigationOrder=this.fractionNavigationOrder),ae(ae({},super.toJson()),y)}get children(){if(this._children)return this._children;const y=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const b of this.below)y.push(...b.children),y.push(b);for(const b of this.above)y.push(...b.children),y.push(b)}else{for(const b of this.above)y.push(...b.children),y.push(b);for(const b of this.below)y.push(...b.children),y.push(b)}return this._children=y,y}render(y){var b,z;const ue=new Po({parent:y,mathstyle:this.mathstyleName},this.style),Pe=ue.metrics,Ke=new Po({parent:ue,mathstyle:this.continuousFraction?"":"numerator"},this.style),tt=this.numerPrefix?new hi([new hi(this.numerPrefix),_r.createBox(Ke,this.above)],{isTight:Ke.isTight,type:"ignore"}):(b=_r.createBox(Ke,this.above,{type:"ignore"}))!=null?b:new hi(null,{type:"ignore"}),ct=new Po({parent:ue,mathstyle:this.continuousFraction?"":"denominator"},this.style),ht=this.denomPrefix?new hi([new hi(this.denomPrefix),_r.createBox(ct,this.below,{type:"ignore"})]):(z=_r.createBox(ct,this.below,{type:"ignore"}))!=null?z:new hi(null,{type:"ignore"}),bt=this.hasBarLine?Pe.defaultRuleThickness:0;let Bt,Xt=0,hn;ue.isDisplayStyle?(Bt=Ke.metrics.num1,Xt=bt>0?3*bt:7*bt,hn=ct.metrics.denom1):(bt>0?(Bt=Ke.metrics.num2,Xt=bt):(Bt=Ke.metrics.num3,Xt=3*Pe.defaultRuleThickness),hn=ct.metrics.denom2);const wn=[];this.isSelected&&wn.push("ML__selected");const Sr=tt.depth,ui=ht.height;let yr;if(bt<=0){const Ta=Bt-Sr-(ui-hn);Ta<Xt&&(Bt+=(Xt-Ta)/2,hn+=(Xt-Ta)/2),yr=new us({individualShift:[{box:tt,shift:-Bt,classes:[...wn,"ML__center"]},{box:ht,shift:hn,classes:[...wn,"ML__center"]}]}).wrap(ue)}else{const Ta=new hi(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ta.softWidth=Math.max(tt.width,ht.width),Ta.height=bt/2,Ta.depth=bt/2;const Ro=al+bt/2;Bt<Xt+Sr+Ro&&(Bt=Xt+Sr+Ro);const is=al-bt/2;hn<Xt+ui-is&&(hn=Xt+ui-is),yr=new us({individualShift:[{box:ht,shift:hn,classes:[...wn,"ML__center"]},{box:Ta,shift:-is,classes:wn},{box:tt,shift:-Bt,classes:[...wn,"ML__center"]}]}).wrap(ue)}const Zr=ue.isDisplayStyle?Pe.delim1:Pe.delim2,mi=this.leftDelim?this.bind(y,Qi("open",this.leftDelim,Zr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):sa(ue,"open");let $r=null;this.continuousFraction?$r=new hi(null,{type:"close"}):this.rightDelim?$r=this.bind(y,Qi("close",this.rightDelim,Zr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):$r=sa(ue,"close");const da=new hi([mi,yr,$r],{isTight:ue.isTight,type:"inner",classes:"mfrac"}),_a=this.bind(y,da);return this.caret&&(_a.caret=this.caret),this.attachSupsub(y,{base:_a})}},ml=class Vm extends _r{constructor(y,b){var z;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(z=b==null?void 0:b.isSuggestion)!=null?z:!1,this.isError=!1}static fromJson(y){const b=new Vm(y.value);return y.isSuggestion&&(b.isSuggestion=!0),y.isError&&(b.isError=!0),b}toJson(){const y={};return this.isSuggestion&&(y.isSuggestion=!0),this.isError&&(y.isError=!0),ae({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new hi(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},Ld=class Zm extends _r{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new ml(b)),this.skipBoundary=!1}static fromJson(y){return new Zm("")}toJson(){return super.toJson()}render(y){const b=_r.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,z;return(z=(b=this.body)==null?void 0:b.map(ue=>ue.value).join(""))!=null?z:""}},hh=class Gm extends _r{constructor(y,b){super(ne(ae({},b),{type:"extensible-symbol",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new Gm(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.value&&(y.symbol=this.value),y}render(y){var b;const z=y.isDisplayStyle&&this.value!=="\\smallint",ue=new hi(this.value,{fontFamily:z?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(z?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ue)return null;ue.right=ue.italic;const Pe=(ue.height-ue.depth)/2-al*y.scalingFactor,Ke=ue.italic;ue.setTop(Pe);let tt=ue;if(this.superscript||this.subscript){const ct=(b=this.subsupPlacement)!=null?b:"auto";tt=ct==="over-under"||ct==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ue,baseShift:Pe,slant:Ke}):this.attachSupsub(y,{base:ue})}return new hi(this.bind(y,tt),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=zt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=[];return z.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&z.push("\\limits"),this.subsupPlacement==="adjacent"&&z.push("\\nolimits"),this.subsupPlacement==="auto"&&z.push("\\displaylimits")),z.push(this.supsubToLatex(y)),Eo(z)}},Au=class Xm extends _r{constructor(y){const b=y.body;super(ne(ae({},y),{type:"overlap",body:typeof b=="string"?[new _r({value:b})]:b,style:y==null?void 0:y.style})),this.skipBoundary=!0,this.align=y==null?void 0:y.align,this.boxType=y==null?void 0:y.boxType}static fromJson(y){return new Xm(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),ae(ae({},super.toJson()),y)}render(y){const b=_r.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new hi([b,new hi(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},tc=class Ym extends _r{constructor(y){var b,z,ue,Pe;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(z=y.boxType)!=null?z:"ord",this.paddedBody=(ue=y.paddedBody)!=null?ue:!1,this.paddedLabels=(Pe=y.paddedLabels)!=null?Pe:!1}static fromJson(y){return new Ym(y)}toJson(){const y=super.toJson();return this.skipBoundary||(y.skipBoundary=!1),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.svgAbove&&(y.svgAbove=this.svgAbove),this.svgBelow&&(y.svgBelow=this.svgBelow),this.svgBody&&(y.svgBody=this.svgBody),this.boxType!=="ord"&&(y.boxType=this.boxType),this.paddedBody&&(y.paddedBody=!0),this.paddedLabels&&(y.paddedLabels=!0),y}render(y){let b=this.svgBody?Ul(this.svgBody):_r.createBox(y,this.body,{type:"ignore"});const z=new Po({parent:y,mathstyle:"scriptstyle"},this.style);let ue=null;this.svgAbove?ue=Ul(this.svgAbove):this.above&&(ue=_r.createBox(z,this.above,{type:"ignore"}));let Pe=null;this.svgBelow?Pe=Ul(this.svgBelow):this.below&&(Pe=_r.createBox(z,this.below,{type:"ignore"})),this.paddedBody&&(b=new hi([sa(y,"open"),b,sa(y,"close")],{type:"ignore"}));let Ke=s0(y,{base:b,above:ue,below:Pe,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return Ke?(this.subsupPlacement==="over-under"?Ke=this.attachLimits(y,{base:Ke,type:Ke.type}):Ke=this.attachSupsub(y,{base:Ke}),this.caret&&(Ke.caret=this.caret),this.bind(y,Ke)):null}};function s0(a,y){if(!y.base)return null;if(!y.above&&!y.below){const tt=new hi(y.base,{type:y.type});return tt.setStyle("position","relative"),tt}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let z=null;const ue=y.base,Pe=0,Ke=["ML__center"];if(y.paddedAboveBelow&&Ke.push("ML__label_padding"),y.below&&y.above){const tt=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ue.depth+Pe;z=new us({bottom:tt,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:Ke},{box:ue,classes:["ML__center"]},b,{box:y.above,classes:Ke},a.metrics.bigOpSpacing5]})}else y.below?z=new us({top:ue.height-Pe,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:Ke},{box:ue,classes:["ML__center"]}]}):y.above&&(z=new us({bottom:ue.depth+Pe,children:[{box:ue,classes:["ML__center"]},b,{box:y.above,classes:Ke},a.metrics.bigOpSpacing5]}));return new hi(z,{type:y.type})}var Pd=class Qm extends _r{constructor(y){var b,z,ue,Pe;super(ne(ae({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(z=y.smashDepth)!=null?z:!1,this.smashHeight=(ue=y.smashHeight)!=null?ue:!1,this.smashWidth=(Pe=y.smashWidth)!=null?Pe:!1}static fromJson(y){return new Qm(y)}toJson(){const y={};return this.isInvisible&&(y.isInvisible=!0),this.smashDepth&&(y.smashDepth=!0),this.smashHeight&&(y.smashHeight=!0),this.smashWidth&&(y.smashWidth=!0),ae(ae({},super.toJson()),y)}render(y){const b=new Po({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),_r.createBox(b,this.body,{classes:"inner"});const z=_r.createBox(this.isInvisible?b:y,this.body);if(!z)return null;if(this.smashWidth){const ue=new hi(null,{classes:"fix"});return new hi([z,ue],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return z;if(this.smashHeight&&(z.height=0),this.smashDepth&&(z.depth=0),z.children)for(const ue of z.children)this.smashHeight&&(ue.height=0),this.smashDepth&&(ue.depth=0);return new us({firstBaseline:[{box:z}]},{type:z.type}).wrap(y)}},Nd=class Jm extends _r{constructor(y){var b;super(ae({type:"spacing"},y)),this.width=y==null?void 0:y.width,this._braced=(b=y==null?void 0:y.braced)!=null?b:!1}static fromJson(y){return new Jm(y)}toJson(){const y=super.toJson();return this.width!==void 0&&(y.width=this.width),this._braced&&(y.braced=!0),y}render(y){var b;if(this.command==="space")return new hi(this.mode==="math"?null:" ");let z;if(this.width!==void 0)z=new hi(null,{classes:"mspace"}),z.left=y.toEm(this.width);else{const ue=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";z=new hi(null,{classes:ue})}return z=this.bind(y,z),this.caret&&(z.caret=this.caret),z}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const z=zt(this.command,this.mode);if(z!=null&&z.serialize)return z.serialize(this,y);const ue=(b=this.command)!=null?b:"";return this.width===void 0?ue:this._braced&&!("register"in this.width)?`${ue}{${Xs(this.width)}}`:`${ue}${Xs(this.width)}`}},sp=class $m extends _r{constructor(y){var b;super(ne(ae({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new $m(ne(ae({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=zt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=this.command,ue=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?ys(`${z}[${this.aboveToLatex(y)}]`,ue):/^[0-9]$/.test(ue)?`${z}${ue}`:ys(z,ue)}get children(){if(this._children)return this._children;const y=[];if(this.above)for(const b of this.above)y.push(...b.children),y.push(b);if(this.body)for(const b of this.body)y.push(...b.children),y.push(b);return this._children=y,y}render(y){var b;const z=new Po({parent:y,mathstyle:"cramp"},this.style),ue=(b=_r.createBox(z,this.body,{type:"inner"}))!=null?b:new hi(null),Pe=z.scalingFactor,Ke=z.metrics.defaultRuleThickness/Pe,tt=y.isDisplayStyle?zl:Ke,ct=new hi(null,{classes:"ML__sqrt-line",style:this.style});ct.height=Ke,ct.softWidth=ue.width;let ht=Pe*(Ke+tt/4);const Bt=Math.max(Pe*2*tt,ue.height+ue.depth)+ht+Ke,Xt=new Po({parent:y},this.style),hn=this.bind(Xt,new hi(Qi("inner","\\surd",Bt,!1,Xt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!hn)return null;const wn=hn.height+hn.depth-Ke;wn>ue.height+ue.depth+ht&&(ht=(ht+wn-(ue.height+ue.depth))/2),hn.setTop(hn.height-ue.height-ht);const Sr=this.bind(y,new us({firstBaseline:[{box:new hi(ue)},ht-2*Ke,{box:ct},Ke]})),ui=_r.createBox(new Po({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!ui){const mi=new hi([hn,Sr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return mi.setStyle("display","inline-block"),mi.setStyle("height",mi.height+mi.depth,"em"),this.caret&&(mi.caret=this.caret),this.bind(y,mi)}const yr=new us({shift:-.6*(Math.max(hn.height,Sr.height)-Math.max(hn.depth,Sr.depth)),children:[{box:ui}]}),Zr=new hi([new hi(yr,{classes:"ML__sqrt-index",type:"ignore"}),hn,Sr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return Zr.height=hn.height,Zr.depth=hn.depth,this.caret&&(Zr.caret=this.caret),this.bind(y,Zr)}},l0=class extends hi{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function wf(a,y){if(!a.parent)return;const b=a.parent.children,z=b.indexOf(a);let ue=z-1;for(;ue>=0&&b[ue].type==="ignore";)ue-=1;if(ue<0&&a.parent.parent&&a.parent.type==="lift"){wf(a.parent,y);return}z>0&&b[z-1].type==="skip"?b[z-1].width+=y:b.splice(z,0,new l0(y))}var c0={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},u0={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function d0(a){Bd(a,(y,b)=>{b.type==="bin"&&(!y||/^(middle|bin|op|rel|open|punct)$/.test(y.type))&&(b.type="ord"),(y==null?void 0:y.type)==="bin"&&/^(rel|close|punct)$/.test(b.type)&&(y.type="ord"),b.type!=="ignore"&&(y=b)})}function Rd(a,y){if(!a.children)return a;const b=a.children;d0(b);const z=y.getRegisterAsEm("thinmuskip"),ue=y.getRegisterAsEm("medmuskip"),Pe=y.getRegisterAsEm("thickmuskip");return Bd(b,(Ke,tt)=>{var ct,ht,bt;if(!Ke)return;const Bt=Ke.type,Xt=tt.isTight?(ct=u0[Bt])!=null?ct:null:(ht=c0[Bt])!=null?ht:null,hn=(bt=Xt==null?void 0:Xt[tt.type])!=null?bt:null;hn===3&&wf(tt,z),hn===4&&wf(tt,ue),hn===5&&wf(tt,Pe)}),a}function Bd(a,y,b=void 0){if(!a)return b;a=[...a];for(const z of a)z.type==="lift"?b=Bd(z.children,y,b):z.type==="ignore"?Bd(z.children,y):(y(b,z),Bd(z.children,y),b=z);return b}var ph=class qm extends _r{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new _r({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new qm(ne(ae({},y),{tooltip:cu(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(z=>z.type!=="first").map(z=>z.toJson());return ne(ae({},super.toJson()),{tooltip:b})}render(y){const b=_r.createBox(new Po,this.body);if(!b)return null;const z=new Po({parent:y,mathstyle:"displaystyle"},{fontSize:go}),ue=Ku(Rd(new hi(this.tooltip.render(z),{classes:"ML__tooltip-content"}),z)),Pe=new hi([ue,b],{classes:"ML__tooltip-container"});return this.caret&&(Pe.caret=this.caret),this.bind(y,Pe)}},Mu=class e0 extends _r{constructor(y,b){super(ne(ae({},b),{type:"operator",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.variantStyle=b==null?void 0:b.variantStyle,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new e0(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.variantStyle&&(y.variantStyle=this.variantStyle),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.value&&(y.symbol=this.value),y}render(y){var b;const z=new hi(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ue=z;if(this.superscript||this.subscript){const Pe=(b=this.subsupPlacement)!=null?b:"auto";ue=Pe==="over-under"||Pe==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:z}):this.attachSupsub(y,{base:z})}return new hi(this.bind(y,ue),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=zt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&z.push("\\limits"),this.subsupPlacement==="adjacent"&&z.push("\\nolimits"),this.subsupPlacement==="auto"&&z.push("\\displaylimits")),z.push(this.supsubToLatex(y)),Eo(z)}};function cu(a){if(re(a))return a.map(z=>cu(z));if(typeof a=="string")return _r.fromJson(a);a=ae({},a);for(const z of au)a[z]&&(a[z]=cu(a[z]));a.args&&(a.args=f0(a.args)),a.array&&(a.array=cu(a.array));const y=a.type;let b;y==="accent"&&(b=ee.fromJson(a)),y==="array"&&(b=co.fromJson(a)),y==="box"&&(b=Ws.fromJson(a)),y==="chem"&&(b=rp.fromJson(a)),y==="composition"&&(b=Uc.fromJson(a)),y==="delim"&&(b=ip.fromJson(a)),y==="enclose"&&(b=Id.fromJson(a)),y==="error"&&(b=kl.fromJson(a)),y==="extensible-symbol"&&(b=hh.fromJson(a)),y==="genfrac"&&(b=Qu.fromJson(a)),y==="group"&&(b=cl.fromJson(a)),y==="latex"&&(b=ml.fromJson(a)),y==="latexgroup"&&(b=Ld.fromJson(a)),y==="leftright"&&(b=Uo.fromJson(a)),y==="macro"&&(b=Yu.fromJson(a)),y==="macro-argument"&&(b=pc.fromJson(a)),y==="operator"&&(b=Mu.fromJson(a)),y==="overlap"&&(b=Au.fromJson(a)),y==="overunder"&&(b=tc.fromJson(a)),y==="placeholder"&&(b=Wa.fromJson(a)),y==="prompt"&&(b=kc.fromJson(a)),y==="phantom"&&(b=Pd.fromJson(a)),y==="sizeddelim"&&(b=ap.fromJson(a)),y==="spacing"&&(b=Nd.fromJson(a)),y==="subsup"&&(b=ec.fromJson(a)),y==="surd"&&(b=sp.fromJson(a)),y==="text"&&(b=fc.fromJson(a)),y==="tooltip"&&(b=ph.fromJson(a)),b||(console.assert(!y||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(y),`MathLive 0.98.5: an unexpected atom type "${y}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),b=_r.fromJson(a));for(const z of au)a[z]&&b.setChildren(a[z],z);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function f0(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>cu(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>cu(b)):y)}var lp={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},mh={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},cp=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,h0=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,p0=[/^[a-z]$/,/^[A-Z]$/,cp,h0],m0={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},v0=class extends Ll{constructor(){super("math")}createAtom(a,y,b){var z,ue,Pe,Ke;if(y===null)return new _r({type:"mord",mode:"math",command:a,value:a,style:b});const tt=window.MathfieldElement.isFunction((z=y.command)!=null?z:a);if(y.definitionType==="symbol"){const ht=new _r({type:(ue=y.type)!=null?ue:"mord",mode:"math",command:(Pe=y.command)!=null?Pe:a,value:String.fromCodePoint(y.codepoint),style:b});return tt&&(ht.isFunction=!0),a.startsWith("\\")&&(ht.verbatimLatex=a),ht}const ct=new _r({type:"mord",mode:"math",command:(Ke=y.command)!=null?Ke:a,value:a,style:b});return tt&&(ct.isFunction=!0),a.startsWith("\\")&&(ct.verbatimLatex=a),ct}serialize(a,y){const b=g0(a,ne(ae({},y),{defaultMode:"math"}));return b.length===0||y.defaultMode!=="text"?b:["$ ",...b," $"]}getFont(a,y){console.assert(y.variant!==void 0);let{variant:b}=y,{variantStyle:z}=y;b==="normal"&&!z&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",z="italic"),b==="normal"&&!z&&a.value.length===1&&p0.forEach((tt,ct)=>{var ht;tt.test(a.value)&&m0[(ht=y.letterShapeStyle)!=null?ht:"tex"][ct]==="it"&&(z="italic")}),z==="up"&&(z=void 0);const ue=z?b+"-"+z:b;console.assert(lp[ue]!==void 0);const[Pe,Ke]=lp[ue];return mh[b]&&!mh[b].test(a.value)?(a.value=dt(a.value,b,z),null):(cp.test(a.value)&&(a.classes+=" lcGreek"),Ke&&(a.classes+=" "+Ke),Pe)}};function g0(a,y){const{parent:b}=a[0],z=up(b);return Hs(a,"variant").map(ue=>{const Pe=up(ue[0]);let Ke="";Pe&&Pe!==z&&(Ke={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[Pe],console.assert(Ke!==void 0));const tt=Eo(ue.map(ct=>ct._serialize(y)));return Ke?ys(Ke,tt):tt})}function up(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new v0;function y0(a,y){return a.map(b=>b._serialize(y))}function b0(a,y){return Hs(a,"fontShape").map(b=>{const z=y0(b,y),{fontShape:ue}=b[0].style;let Pe="";return ue==="it"&&(Pe="\\textit"),ue==="sl"&&(Pe="\\textsl"),ue==="sc"&&(Pe="\\textsc"),ue==="n"&&(Pe="\\textup"),!Pe&&ue?`{${ys("\\fontshape",ue)}${Eo(z)}}`:Pe?ys(Pe,Eo(z)):Eo(z)})}function x0(a,y){return Hs(a,"fontSeries").map(b=>{const z=b0(b,y),{fontSeries:ue}=b[0].style;let Pe="";return ue==="b"&&(Pe="\\textbf"),ue==="l"&&(Pe="\\textlf"),ue==="m"&&(Pe="\\textmd"),ue&&!Pe?`{${ys("\\fontseries",ue)}${Eo(z)}}`:Pe?ys(Pe,Eo(z)):Eo(z)})}function w0(a,y){return Hs(a,"fontSize").map(b=>{var z,ue;const Pe=x0(b,y),Ke=(ue=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(z=b[0].style.fontSize)!=null?z:""])!=null?ue:"";return Ke?`${Ke} ${Eo(Pe)}`:Eo(Pe)})}function S0(a,y,b){return Hs(a,"fontFamily").map(z=>{var ue,Pe;const Ke=w0(z,y),tt=(Pe={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ue=z[0].style.fontFamily)!=null?ue:""])!=null?Pe:"";return tt?`\\${tt}{${Eo(Ke)}}`:z[0].style.fontFamily?`{\\fontfamily{${z[0].style.fontFamily}} ${Eo(Ke)}}`:b?`\\text{${Eo(Ke)}}`:Eo(Ke)})}var dp={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},C0=class extends Ll{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new fc(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return S0(a,ne(ae({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,z,ue,Pe,Ke;const{fontFamily:tt}=y;if(dp[tt]?a.classes+=" "+dp[tt]:tt&&a.setStyle("font-family",tt),y.fontShape&&(a.classes+=" ",a.classes+=(b={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[y.fontShape])!=null?b:""),y.fontSeries){const ct=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ct&&(a.classes+=" ",a.classes+=(ue={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(z=ct[1])!=null?z:""])!=null?ue:"",a.classes+=" ",a.classes+=(Ke={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(Pe=ct[2])!=null?Pe:""])!=null?Ke:"")}return"Main-Regular"}};new C0;var E0=class extends Ll{constructor(){super("latex")}createAtom(a){return new ml(a)}serialize(a,y){return a.filter(b=>b instanceof ml&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new E0;var A0={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},vh={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},fp={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},hp={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},M0={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},k0={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},T0={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},O0={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},D0={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},I0={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},L0={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},P0={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},N0={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function pp(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function Ju(a){let y="";return a.shift&&(y+="shift+"),a.alt&&(y+="alt+"),a.ctrl&&(y+="ctrl+"),a.cmd&&(y+="cmd+"),a.win&&(y+="win+"),a.meta&&(y+="meta+"),y+a.key}var R0={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},_d=[],Fd;function gh(){switch(le()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Gl(a){(!a.platform||a.platform===gh())&&_d.push(a)}function B0(a,y){var b;const z={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return z;for(const[ue,Pe]of Object.entries(y.mapping)){if(Pe[0]===a)return z.key=`[${ue}]`,z;if(Pe[1]===a)return z.shift=!0,z.key=`[${ue}]`,z;if(Pe[2]===a)return z.alt=!0,z.key=`[${ue}]`,z;if(Pe[3]===a)return z.shift=!0,z.alt=!0,z.key=`[${ue}]`,z}return z.key=(b=R0[a])!=null?b:"",z}function _0(a){if(a.code)return a;const y=Object.entries(jd().mapping);let b=!1,z=!1,ue="";for(let Pe=0;Pe<4;Pe++){for(const[Ke,tt]of y)if(tt[Pe]===a.key){ue=Ke,Pe===3?(b=!0,z=!0):Pe===2?b=!0:Pe===1&&(z=!0);break}if(ue)break}return new KeyboardEvent(a.type,ne(ae({},a),{altKey:b,shiftKey:z,code:ue}))}function F0(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const z=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ue of _d)((y=ue.mapping[a.code])==null?void 0:y[z])===a.key?ue.score+=1:(b=ue.mapping[a.code])!=null&&b[z]&&(ue.score=0);_d.sort((ue,Pe)=>Pe.score-ue.score)}function j0(a){Fd=_d.find(y=>a.startsWith(y.locale))}function jd(){return Fd!=null?Fd:_d[0]}function K0(){switch(gh()){case"apple":return vh;case"windows":return fp;case"linux":return hp}return vh}switch(gh()){case"apple":Gl(vh),Gl(M0),Gl(L0),Gl(O0);break;case"windows":Gl(fp),Gl(k0),Gl(P0),Gl(D0);break;case"linux":Gl(hp),Gl(T0),Gl(N0),Gl(I0);break}Gl(A0);function yh(a){var y;const b=/macos|ios/.test(le()),z=a.split("+");let ue="";for(const Pe of z)ue&&(ue+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),Pe.startsWith("[Key")?ue+=Pe.slice(4,5):Pe.startsWith("Key")?ue+=Pe.slice(3,4):Pe.startsWith("[Digit")?ue+=Pe.slice(6,7):Pe.startsWith("Digit")?ue+=Pe.slice(5,6):ue+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[Pe.toLowerCase()])!=null?y:Pe.toUpperCase();return ue}function Sf(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((z,ue)=>({x:z.x+ue.clientX,y:z.y+ue.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function ku(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function z0(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var H0=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Cf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:H0.has(a.code)}function Ef(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Tc=class Yc{static get scrim(){return Yc._scrim||(Yc._scrim=new Yc),Yc._scrim}static open(y){Yc.scrim.open(y)}static close(){Yc.scrim.close()}static get state(){return Yc.scrim.state}static get element(){return Yc.scrim.element}constructor(y){var b,z;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(z=y==null?void 0:y.translucent)!=null?z:!1,this.state="closed"}get element(){if(this._element)return this._element;const y=document.createElement("div");return y.setAttribute("role","presentation"),y.style.position="fixed",y.style.contain="content",y.style.top="0",y.style.left="0",y.style.right="0",y.style.bottom="0",y.style.zIndex="var(--scrim-zindex, 10099)",y.style.outline="none",this.translucent?(y.style.background="rgba(255, 255, 255, .2)",y.style.backdropFilter="contrast(40%)"):y.style.background="transparent",this._element=y,y}open(y){var b;if(this.state!=="closed")return;this.state="opening",this.onDismiss=y==null?void 0:y.onDismiss,this.savedActiveElement=Ef();const{element:z}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(z),z.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ue=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const Pe=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${Pe+ue}px`,y!=null&&y.child&&z.append(y.child),this.state="open"}close(){var y,b,z,ue;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:Pe}=this;Pe.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),Pe.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Ef()!==this.savedActiveElement&&((ue=(z=this.savedActiveElement)==null?void 0:z.focus)==null||ue.call(z)),Pe.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function W0(a,y,b){let z=null,ue=null,Pe=!1,Ke=!1,tt=!1;const ct=new AbortController,ht=ct.signal;return a.addEventListener("keydown",bt=>{if(Pe||bt.key==="Process"||bt.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(bt.code)){z=null;return}z=bt,ue=null,b.onKeystroke(bt)?a.textContent="":z=null},{capture:!0,signal:ht}),a.addEventListener("keypress",bt=>{Pe||(z&&ue&&b.onKeystroke(z),ue=bt)},{capture:!0,signal:ht}),a.addEventListener("compositionstart",bt=>{a.textContent="",Pe=!0,b.onCompositionStart(bt.data)},{capture:!0,signal:ht}),a.addEventListener("compositionupdate",bt=>{Pe&&b.onCompositionUpdate(bt.data)},{capture:!0,signal:ht}),a.addEventListener("compositionend",bt=>{a.textContent="",Pe&&(Pe=!1,b.onCompositionEnd(bt.data))},{capture:!0,signal:ht}),a.addEventListener("beforeinput",bt=>bt.stopImmediatePropagation(),{signal:ht}),a.addEventListener("input",bt=>{var Bt;if(!Pe&&(a.textContent="",bt.inputType!=="insertCompositionText")){if(bt.inputType==="insertFromPaste"){bt.preventDefault(),bt.stopPropagation();return}b.onInput((Bt=bt.data)!=null?Bt:""),bt.preventDefault(),bt.stopPropagation()}},{signal:ht}),a.addEventListener("paste",bt=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(bt)||bt.preventDefault(),bt.stopImmediatePropagation()},{signal:ht}),a.addEventListener("cut",bt=>b.onCut(bt),{capture:!0,signal:ht}),a.addEventListener("copy",bt=>b.onCopy(bt),{capture:!0,signal:ht}),a.addEventListener("blur",bt=>{var Bt,Xt;if(((Xt=(Bt=bt.relatedTarget)==null?void 0:Bt._mathfield)==null?void 0:Xt.element)===y){a.focus({preventScroll:!0}),bt.preventDefault(),bt.stopPropagation();return}const hn=Tc.state;if(hn==="open"||hn==="opening"){bt.preventDefault(),bt.stopPropagation();return}if(bt.relatedTarget===bt.target.getRootNode().host){bt.preventDefault(),bt.stopPropagation();return}tt||Ke||(tt=!0,z=null,ue=null,b.onBlur(),tt=!1)},{capture:!0,signal:ht}),a.addEventListener("focus",bt=>{tt||Ke||(Ke=!0,b.onFocus(),Ke=!1)},{capture:!0,signal:ht}),{dispose:()=>ct.abort(),cancelComposition:()=>{Pe&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!Ke&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Ef()===a,setAriaLabel:bt=>a.setAttribute("aria-label",bt),setValue:bt=>{var Bt;a.textContent=bt,a.style.left="-1000px",(Bt=window.getSelection())==null||Bt.selectAllChildren(a)},moveTo:(bt,Bt)=>{a.style.top=`${Bt}px`,a.style.left=`${bt}px`}}}function $u(a){var y;if(!a||!Cf(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function mp(a){a=_0(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function U0(a){if(ce()){const y=le(),b=a.startsWith("!"),z=a.endsWith(y);if(b&&!z||!b&&z)return!0}return a==="!other"?!1:a==="other"}function V0(a,y,b){if(a.length===0)return"";const z=Ju(pp(mp(b))),ue=Ju({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(le()),cmd:!1,win:!1});for(let Pe=a.length-1;Pe>=0;Pe--)if((a[Pe].key===z||a[Pe].key===ue)&&(!a[Pe].ifMode||a[Pe].ifMode===y))return a[Pe].command;return""}function vp(a){let y=a;return re(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Z0(a,y){let b=[];if(typeof y=="string"){const Pe=Ad[y];re(Pe)?b=Pe.slice():Pe&&b.push(Pe)}const z=vp(y),ue=new RegExp("^"+z.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const Pe of a)ue.test(vp(Pe.command))&&b.push(Pe.key);return b.map(yh)}function G0(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=pp(a.key);let z=a.ifPlatform;if(b.cmd){if(z&&z!=="macos"&&z!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+z+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);z||(z=le()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(z&&z!=="windows")throw new Error('Unexpected "win" modifier with platform "'+z+`"
|
|
|
"win" modifier can only be used with Windows platform.`);z="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(z&&!U0(z))return;if(/^\[.+\]$/.test(b.key))return ne(ae({},a),{key:Ju(b)});const ue=B0(b.key,y);if(!ue)return ne(ae({},a),{key:Ju(b)});if(ue.shift&&b.shift||ue.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${bh(a.command)}) is conflicting with the key combination ${Ju(ue)} using the ${y.displayName} keyboard layout`);return ue.shift=ue.shift||b.shift,ue.alt=ue.alt||b.alt,ue.meta=b.meta,ue.ctrl=b.ctrl,ne(ae({},a),{key:Ju(ue)})}function bh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function X0(a,y){const b=[],z=[];for(const ue of a)try{const Pe=G0(ue,y);if(!Pe)continue;const Ke=z.find(tt=>tt.key===Pe.key&&tt.ifMode===Pe.ifMode);if(Ke)throw new Error(`Ambiguous key binding ${ue.key} (${bh(ue.command)}) matches ${Ke.key} (${bh(Ke.command)}) with the ${y.displayName} keyboard layout`);z.push(Pe)}catch(Pe){Pe instanceof Error&&b.push(Pe.message)}return[z,b]}var Y0=class extends so{constructor(){super("latex")}createAtom(a){return new ml(a)}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("application/x-latex")||y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Bs(a)),a.startRecording(),!0):!1}insert(a,y,b){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b||(b={}),b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder");const{silenceNotifications:z}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ue=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ll(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const Pe=[];for(const ct of y)Ce.test(ct)&&Pe.push(new ml(ct));let Ke=a.at(a.position);if(Ke instanceof Ld&&(Ke=Ke.lastChild),!(Ke.parent instanceof Ld)){const ct=new Ld("");Ke.parent.addChildAfter(ct,Ke),Ke=ct.firstChild}const tt=Ke.parent.addChildrenAfter(Pe,Ke);return a.silenceNotifications=ue,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(tt)):tt&&(a.position=a.offsetOf(tt))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=z,!0}};function Q0(a){return a.atoms.find(y=>y.type==="latexgroup")}function Kd(a){var y,b;const z=a.atoms.find(ue=>ue.type==="latexgroup");return z?(b=(y=z.body)==null?void 0:y.filter(ue=>ue.type==="latex"))!=null?b:[]:[]}function gp(a,y){var b;let z=0,ue=!1;const Pe=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;z<=Pe&&!ue;){const ct=a.at(z);ue=ct instanceof ml&&ct.isSuggestion,ue||z++}if(!ue)return[void 0,void 0];let Ke=z,tt=!1;for(;Ke<=Pe&&!tt;){const ct=a.at(Ke);tt=!(ct instanceof ml&&ct.isSuggestion),tt||Ke++}return[z-1,Ke-1]}new Y0;function Af(a){const y=Kd(a.model).filter(b=>b.isSuggestion);if(y.length!==0){a.model.position=a.model.offsetOf(y[0].leftSibling);for(const b of y)b.parent.removeChild(b)}}function zd(a,y){var b;const{model:z}=a;Af(a);for(const bt of Kd(z))bt.isError=!1;if(!z.selectionIsCollapsed||a.options.popoverPolicy==="off"){ed(a);return}const ue=[];let Pe=z.at(z.position);for(;Pe&&Pe instanceof ml&&/^[a-zA-Z\*]$/.test(Pe.value);)Pe=Pe.leftSibling;if(Pe&&Pe instanceof ml&&Pe.value==="\\")for(ue.push(Pe),Pe=Pe.rightSibling;Pe&&Pe instanceof ml&&/^[a-zA-Z\*]$/.test(Pe.value);)ue.push(Pe),Pe=Pe.rightSibling;const Ke=ue.map(bt=>bt.value).join(""),tt=ot(a,Ke);if(tt.length===0){if(/^\\[a-zA-Z\*]+$/.test(Ke))for(const bt of ue)bt.isError=!0;ed(a);return}const ct=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ct<0?tt.length-1:ct%tt.length;const ht=tt[a.suggestionIndex];if(ht!==Ke){const bt=ue[ue.length-1];bt.parent.addChildrenAfter([...ht.slice(Ke.length-ht.length)].map(Bt=>new ml(Bt,{isSuggestion:!0})),bt),Tu(a,{interactive:!0})}$0(a,tt)}function yp(a){const[y,b]=gp(a,{before:a.position});if(y===void 0||b===void 0)return!1;let z=!1;return a.getAtoms([y,b]).forEach(ue=>{ue.isSuggestion&&(ue.isSuggestion=!1,z=!0)}),z}function qu(a,y="accept",b){var z,ue;ed(a);const Pe=Q0(a.model);if(!Pe)return!1;if(y==="accept-suggestion"||y==="accept-all"){const ht=Kd(a.model).filter(bt=>bt.isSuggestion);if(ht.length!==0){for(const bt of ht)bt.isSuggestion=!1;a.model.position=a.model.offsetOf(ht[ht.length-1])}if(y==="accept-suggestion")return ht.length!==0}const tt=Kd(a.model).filter(ht=>!ht.isSuggestion).map(ht=>ht.value).join(""),ct=Pe.leftSibling;return Pe.parent.removeChild(Pe),a.model.position=a.model.offsetOf(ct),a.switchMode((z=b==null?void 0:b.mode)!=null?z:"math"),y==="reject"||(so.insert(a.model,tt,{selectionMode:(ue=b==null?void 0:b.selectItem)!=null&&ue?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function Mf(a){var y;let b=document.getElementById(a);return b?b.dataset.refcount=Number(Number.parseInt((y=b.dataset.refcount)!=null?y:"0")+1).toString():(b=document.createElement("div"),b.setAttribute("aria-hidden","true"),b.dataset.refcount="1",b.id=a,document.body.append(b)),b}function xh(a){var y;const b=document.getElementById(a);if(!b)return;const z=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");z<=1?b.remove():b.dataset.refcount=Number(z-1).toString()}function J0(a,y){const b=new Po({from:a.context}),z=new _r({mode:"math",type:"root",body:ul(y,{context:b})}),ue=Ku(Rd(new hi(z.render(b),{classes:"ML__base"}),b));return zu(ue,{classes:"ML__latex"}).toMarkup()}function $0(a,y){var b;if(y.length===0){ed(a);return}let z="";for(const[Pe,Ke]of y.entries()){const tt=Ke,ct=J0(a,Ke),ht=Z0(a.keybindings,tt).join("<br>");z+=`<li role="button" data-command="${tt}" ${Pe===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${tt}</span><span class="ML__popover__command">${ct}</span>`,ht&&(z+=`<span class="ML__popover__keybinding">${ht}</span>`),z+="</li>"}const ue=q0(a,`<ul>${z}</ul>`);wh()&&((b=ue.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var Pe;ue&&!wh()&&(ue.classList.add("is-visible"),kf(a),(Pe=ue.querySelector(".ML__popover__current"))==null||Pe.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function wh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function kf(a,y){var b;if(!a.element||a.element.mathfield!==a||!wh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){ed(a);return}if(y!=null&&y.deferred){setTimeout(()=>kf(a),32);return}const z=Mc(a.field);if(!z)return;const ue=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Pe=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Ke=window.innerWidth-document.documentElement.clientWidth,tt=window.innerHeight-document.documentElement.clientHeight,ct=window.mathVirtualKeyboard.boundingRect.height,ht=document.getElementById("mathlive-suggestion-popover");z.x+ht.offsetWidth/2>Pe-Ke?ht.style.left=`${Pe-ht.offsetWidth-Ke}px`:z.x-ht.offsetWidth/2<0?ht.style.left="0":ht.style.left=`${z.x-ht.offsetWidth/2}px`;const bt=z.y-z.height;ue-tt-ct-z.y<bt?(ht.classList.add("ML__popover--reverse-direction"),ht.classList.remove("top-tip"),ht.classList.add("bottom-tip"),ht.style.top=`${z.y-z.height-ht.offsetHeight-15}px`):(ht.classList.remove("ML__popover--reverse-direction"),ht.classList.add("top-tip"),ht.classList.remove("bottom-tip"),ht.style.top=`${z.y+15}px`)}function ed(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function q0(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Mf("mathlive-suggestion-popover"),jl("suggestion-popover"),jl("core"),b.addEventListener("pointerdown",z=>z.preventDefault()),b.addEventListener("click",z=>{let ue=z.target;for(;ue&&!ue.dataset.command;)ue=ue.parentElement;ue&&(qu(a,"reject"),so.insert(a.model,ue.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function ev(){document.getElementById("mathlive-suggestion-popover")&&(xh("mathlive-suggestion-popover"),E("suggestion-popover"),E("core"))}function tv(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var Tf=null,bp,xp,Sh=((xp=(bp=globalThis==null?void 0:globalThis.document)==null?void 0:bp.currentScript)==null?void 0:xp.src)||tv();function wp(a){return pu(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Tf===null)try{const y=yield fetch(Sh,{method:"HEAD"});y.status===200&&(Tf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Sh}")`)}return new URL(a,Tf!=null?Tf:Sh).href})}function nv(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Xl="not-loaded";function rv(){return pu(this,null,function*(){return Xl="not-loaded",Of()})}function Of(){return pu(this,null,function*(){var a;if(Xl!=="not-loaded")return;if(Xl="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Xl="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],z=Array.from(document.fonts).map(Ke=>Ke.family);if(b.every(Ke=>z.includes(Ke))){Xl="ready";return}if(!window.MathfieldElement.fontsDirectory){Xl="not-loaded";return}const ue=yield wp(window.MathfieldElement.fontsDirectory);if(!ue){document.body.classList.add("ML__fonts-did-not-load"),Xl="error";return}const Pe=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(Ke=>nv(Ke[0].replace(/-[a-zA-Z]+$/,""),`${ue}/${Ke[0]}`,Ke[1]));try{(yield Promise.all(Pe.map(tt=>{try{return tt.load()}catch(ct){}}))).forEach(tt=>document.fonts.add(tt)),Xl="ready";return}catch(Ke){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ue}"`,{cause:Ke}),document.body.classList.add("ML__fonts-did-not-load")}Xl="error"}})}function iv(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function Bs(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Vl(a)&&a.dirty&&(a.atomBoundsCache=new Map,Tu(a,y),a.atomBoundsCache=void 0)})))}function av(a,y){var b;y=y!=null?y:{};const z=new Po({from:ne(ae({},a.context),{atomIdsSettings:{seed:y.forHighlighting?iv(_r.serialize([a.model.root],{expandMacro:!1,defaultMode:a.options.defaultMode})):"random",groupNumbers:(b=y.forHighlighting)!=null?b:!1},letterShapeStyle:a.options.letterShapeStyle}),mathstyle:a.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),ue=a.model.root.render(z);return zu(Rd(ue,z),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Sp(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ue of b.atoms)ue.caret=void 0,ue.isSelected=!1,ue.containsCaret=!1;if(b.selectionIsCollapsed){const ue=b.at(b.position);ue.caret=a.model.mode;let Pe=ue.parent;for(;Pe;)Pe.containsCaret=!0,Pe=Pe.parent}else{const ue=b.getAtoms(b.selection,{includeChildren:!0});for(const Pe of ue)Pe.isSelected=!0}return av(a,y).toMarkup()}function Tu(a,y){if(!Vl(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const z=a.field;if(!z)return;const ue=a.isSelectionEditable&&a.hasFocus(),Pe=z.classList.contains("ML__focused");Pe&&!ue?z.classList.remove("ML__focused"):!Pe&&ue&&z.classList.add("ML__focused");let Ke=Sp(a,y);const tt=a.element.querySelector("[part=menu-toggle]");if(tt&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?tt.style.display="none":tt.style.display=""),a.model.atoms.length<=1){const ct=a.options.contentPlaceholder;ct&&(Ke+=`<span part=placeholder class="ML__content-placeholder">${dl(ct)}</span>`)}z.innerHTML=window.MathfieldElement.createHTML(Ke),Df(a,y.interactive),a.dirty=!1}function Df(a,y){const b=a.field;if(!b)return;for(const tt of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))tt.remove();!(y!=null&&y)&&Xl!=="error"&&Xl!=="ready"&&setTimeout(()=>{Xl==="ready"?Df(a):setTimeout(()=>Df(a),128)},32);const z=a.model,ue=b.offsetWidth,Pe=b.getBoundingClientRect().width;let Ke=Math.floor(Pe)/ue;if(Ke=isNaN(Ke)?1:Ke,z.selectionIsCollapsed){kf(a,{deferred:!0});let tt=z.at(z.position);for(;tt&&tt.type!=="prompt"&&!(tt.containsCaret&&tt.displayContainsHighlight);)tt=tt.parent;if(tt!=null&&tt.containsCaret&&tt.displayContainsHighlight){const ct=kd(a,ou(a,tt),Ke);if(ct){ct.left/=Ke,ct.right/=Ke,ct.top/=Ke,ct.bottom/=Ke;const ht=document.createElement("div");ht.classList.add("ML__contains-highlight"),ht.style.position="absolute",ht.style.left=`${ct.left+1}px`,ht.style.top=`${Math.ceil(ct.top)}px`,ht.style.width=`${Math.ceil(ct.right-ct.left)}px`,ht.style.height=`${Math.ceil(ct.bottom-ct.top)}px`,b.insertBefore(ht,b.childNodes[0])}}return}for(const tt of ov(Od(a,{excludeAtomsWithBackground:!0}))){tt.left/=Ke,tt.right/=Ke,tt.top/=Ke,tt.bottom/=Ke;const ct=document.createElement("div");ct.classList.add("ML__selection"),ct.style.position="absolute",ct.style.left=`${tt.left}px`,ct.style.top=`${tt.top}px`,ct.style.width=`${Math.ceil(tt.right-tt.left)}px`,ct.style.height=`${Math.ceil(tt.bottom-tt.top-1)}px`,b.insertBefore(ct,b.childNodes[0])}}function ov(a){let y=[];for(const b of a){let z=!1;for(const ue of y)if(b.left===ue.left&&b.right===ue.right&&b.top===ue.top&&b.bottom===ue.bottom){z=!0;break}z||y.push(b)}a=y,y=[];for(const b of a){let z=0;for(const ue of a)if(b.left>=ue.left&&b.right<=ue.right&&b.top>=ue.top&&b.bottom<=ue.bottom&&(z+=1,z>1))break;z===1&&y.push(b)}return y}var Cp=3,Oc;function Kl(a,y){y=ae({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Oc||(Oc={});for(const b of Object.keys(a))console.assert(!Oc[b],"Selector already defined: ",b),Oc[b]=ne(ae({},y),{fn:a[b]})}function Ch(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Ch(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Oc[y]}function td(a){var y;return(y=Ch(a))==null?void 0:y.target}function sv(a,y){var b;if(!y)return!1;let z,ue=[],Pe=!1,Ke=!1;re(y)?(z=y[0],ue=y.slice(1)):z=y,z=z.replace(/-\w/g,ht=>ht[1].toUpperCase());const tt=Oc[z],ct=tt==null?void 0:tt.target;if(ct==="model"){if(!a.isSelectionEditable&&(tt!=null&&tt.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(z)&&(z!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(z)),/^complete/.test(z)||Af(a),Oc[z].fn(a.model,...ue),zd(a),Ke=!0,Pe=!0}else if(ct==="virtual-keyboard")Ke=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,Pe=!0;else if(Oc[z]){if(!a.isSelectionEditable&&(tt!=null&&tt.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(z)&&a.flushInlineShortcutBuffer(),Ke=Oc[z].fn(a,...ue),Pe=!0}else throw new Error(`Unknown command "${z}"`);return ct!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||tt!=null&&tt.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),tt!=null&&tt.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),Ke&&Bs(a),Pe}function lv(a,y){var b;if(!a)return!1;a.focus(),ym.keypressVibration&&pe()&&navigator.vibrate(Cp);const z=Ch(y);window.MathfieldElement.playSound((b=z==null?void 0:z.audioFeedback)!=null?b:"keypress");const ue=a.executeCommand(y);return a.scrollIntoView(),ue}Kl({performWithFeedback:(a,y)=>lv(a,y)});function cv(a){return zd(a,{atIndex:a.suggestionIndex+1}),!1}function uv(a){return zd(a,{atIndex:a.suggestionIndex-1}),!1}Kl({complete:qu},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Kl({nextSuggestion:cv,previousSuggestion:uv},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var If="mathlive#virtual-keyboard-message";function Eh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===If}var dv=class t0{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new t0),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,z){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,z){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Eh(y)){if(!Dd(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:z}=y;td(z)==="virtual-keyboard"&&this.executeCommand(z);return}if(b==="synchronize-proxy"){this._boundingRect=y.boundingRect,this._isShifted=y.isShifted;return}if(b==="geometry-changed"){this._boundingRect=y.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(y,b={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(ae({type:If,action:y},b),this.targetOrigin)}},Ep={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Lf={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},Hd;function Ap(a,y){var b,z,ue;const Pe=uu.singleton;if(!Pe)return;const Ke=nd(a),tt=(z=(b=Pe.getKeycap(Ke==null?void 0:Ke.id))==null?void 0:b.variants)!=null?z:"";if(typeof tt=="string"&&!Mp(tt)||Array.isArray(tt)&&tt.length===0){y==null||y();return}const ct={};let ht="";for(const Sr of hv(tt)){const ui=Tp(Sr),yr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ct[yr]=ui;const[Zr,mi]=Pf(ui);ht+=`<div id=${yr} class="item ${mi}">${Zr}</div>`}const bt=document.createElement("div");bt.setAttribute("aria-hidden","true"),bt.className="MLK__variant-panel",bt.style.height="auto";const Bt=Object.keys(ct).length;let Xt=5;Bt===1?Xt=1:Bt===2||Bt===4?Xt=2:Bt===3||Bt===5||Bt===6?Xt=3:Bt>=7&&Bt<14&&(Xt=4),bt.style.width=`calc(var(--variant-keycap-length) * ${Xt} + 12px)`,bt.innerHTML=ym.createHTML(ht),Tc.open({root:(ue=Pe==null?void 0:Pe.container)==null?void 0:ue.querySelector(".ML__keyboard"),child:bt}),Hd=new AbortController;const{signal:hn}=Hd,wn=a==null?void 0:a.getBoundingClientRect();if(wn){wn.top-bt.clientHeight<0&&(bt.style.width="auto",Bt<=6?bt.style.height="56px":Bt<=12?bt.style.height="108px":Bt<=18?bt.style.height="205px":bt.classList.add("compact"));const Sr=Math.max(0,Math.min(window.innerWidth-bt.offsetWidth,(wn.left+wn.right-bt.offsetWidth)/2)),ui=wn.top-bt.clientHeight+5;bt.style.transform=`translate(${Sr}px, ${ui}px)`,bt.classList.add("is-visible"),requestAnimationFrame(()=>{bt.addEventListener("pointerup",yr=>{const Zr=nd(yr.target);!(Zr!=null&&Zr.id)||!ct[Zr.id]||(Ah(ct[Zr.id]),Wd(),y==null||y(),yr.preventDefault())},{capture:!0,passive:!1,signal:hn}),bt.addEventListener("pointerenter",yr=>{const Zr=nd(yr.target);!(Zr!=null&&Zr.id)||!ct[Zr.id]||Zr.classList.add("is-active")},{capture:!0,signal:hn}),bt.addEventListener("pointerleave",yr=>{const Zr=nd(yr.target);!(Zr!=null&&Zr.id)||!ct[Zr.id]||Zr.classList.remove("is-active")},{capture:!0,signal:hn}),window.addEventListener("pointercancel",()=>{Wd(),y==null||y()},{signal:hn}),window.addEventListener("pointerup",()=>{Wd(),y==null||y()},{signal:hn})})}}function Wd(){Hd==null||Hd.abort(),Hd=null,Tc.state==="open"&&Tc.close()}function fv(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(ke))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+ke[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Fe))y.push({class:"swatch-button",label:'<span style="background:'+Fe[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function Mp(a){return Lf[a]!==void 0}function hv(a){var y;return typeof a!="string"?a:(Lf[a]||(Lf[a]=(y=fv(a))!=null?y:[]),Lf[a])}function pv(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function mv(a){return Object.keys(a).map(y=>`${y} {${pv(a[y])}}`).join("")}function Ud(a){if(!a)return"";const y=new Po,b=new _r({mode:"math",type:"root",body:ul(a,{context:y,args:ue=>ue==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),z=Ku(Rd(new hi(b.render(y),{classes:"ML__base"}),y));return zu(z,{classes:"ML__latex"}).toMarkup()}function Vd(a){var y;if(Array.isArray(a))return a.map(z=>Vd(z)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(z=>z.map(ue=>Tp(ue)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function vv(){var a,y;let z=window.mathVirtualKeyboard.alphabeticLayout;if(z==="auto"){const tt=jd();tt&&(z=tt.virtualLayout),(!z||z==="auto")&&(z=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ge.locale.slice(0,2)])!=null?a:"qwerty")}const ue={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},Pe=(y=ue[z])!=null?y:ue.qwerty,Ke=z==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const tt of Pe){const ct=[];for(const ht of tt)/[a-z]/.test(ht)?ct.push({label:ht,class:"hide-shift",shift:{label:ht.toUpperCase()},variants:Mp(ht)?ht:void 0}):ht==="~"?z!=="dvorak"?ct.push("[backspace]"):ct.push({label:"[backspace]",width:1}):ht==="^"?ct.push("[shift]"):ht===" "&&ct.push("[separator-5]");Ke.push(ct)}return Ke.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:Vd({rows:Ke})}}function kp(a){if(a==="alphabetic")return vv();if(typeof a=="string")return console.assert(Ep[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),kp(Ep[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ue=a,{rows:Pe}=ue,Ke=he(ue,["rows"]);y=ne(ae({},Ke),{layers:Vd({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ue=a,{markup:Pe}=ue,Ke=he(ue,["markup"]);y=ne(ae({},Ke),{layers:Vd(a.markup)})}else y=ae({},a),"layers"in a?y.layers=Vd(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,z=!1;for(const ue of y.layers)if(ue.rows)for(const Pe of ue.rows.flat()){rd(Pe)&&(b=!0);const Ke=Pe.command;typeof Ke=="string"&&["undo","redo","cut","copy","paste"].includes(Ke)&&(z=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!z),y}function gv(a,y){var b,z;let ue='<div class="left">';if(a.normalizedLayouts.length>1)for(const[Pe,Ke]of a.normalizedLayouts.entries()){const tt=Ke,ct=[Pe===y?"selected":"layer-switch"];tt.tooltip&&ct.push("MLK__tooltip"),tt.labelClass&&ct.push(...tt.labelClass.split(" ")),ue+=`<div class="${ct.join(" ")}"`,tt.tooltip&&(ue+=" data-tooltip='"+((b=Me(tt.tooltip))!=null?b:tt.tooltip)+"' "),Pe!==y&&(ue+=`data-layer="${tt.layers[0].id}"`),ue+=`>${(z=tt.label)!=null?z:"untitled"}</div>`}return ue+="</div>",ue}function yv(a,y){let b="";if(a.editToolbar==="none")return"";const ue=[];y.selectionIsCollapsed?ue.push("undo","redo","pasteFromClipboard"):ue.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const Pe={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${Me("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${Me("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${Me("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${Me("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${Me("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ue.map(Ke=>Pe[Ke]).join(""),b}function bv(a){for(const y of a)xv(y)}function xv(a){const y=uu.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(z){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[z,ue]=Pf(b);a.innerHTML=window.MathfieldElement.createHTML(z)}}function wv(){jl("virtual-keyboard"),jl("core"),Of()}function Sv(){E("core"),E("virtual-keyboard")}var Cv=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function Ev(a){a.resetKeycapRegistry(),wv();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Cv+a.normalizedLayouts.map((Ke,tt)=>Av(a,Ke,tt)).join(""));const z=document.createElement("div");z.className="MLK__backdrop",z.appendChild(b),y.appendChild(z),y.addEventListener("pointerdown",kv,{passive:!1});const ue=y.querySelectorAll(".ML__edit-toolbar");if(ue)for(const Ke of ue)Ke.addEventListener("click",tt=>{var ct,ht;let bt=tt.target,Bt="";for(;bt&&!Bt;)Bt=(ct=bt==null?void 0:bt.getAttribute("data-command"))!=null?ct:"",bt=(ht=bt==null?void 0:bt.parentElement)!=null?ht:null;Bt&&a.executeCommand(JSON.parse(Bt))});bv(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const Pe=y.querySelectorAll(".MLK__layer");console.assert(Pe.length>0,"No virtual keyboards available");for(const Ke of Pe)Ke.addEventListener("pointerdown",tt=>tt.preventDefault());return a.currentLayer=a.latentLayer,y}function Av(a,y,b){const z=[];if(!("layers"in y))return"";for(const ue of y.layers)z.push(`<div tabindex="-1" class="MLK__layer" id="${ue.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(z.push("<div class='MLK__toolbar' role='toolbar'>"),z.push(gv(a,b)),y.displayEditToolbar&&z.push('<div class="ML__edit-toolbar right"></div>'),z.push("</div>")),z.push(Mv(a,ue)),z.push("</div>");return z.join("")}function Mv(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${mv(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const z of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ue of z)if(ue){const Pe=a.registerKeycap(ue),[Ke,tt]=Pf(ue);/(^|\s)separator/.test(tt)?b+=`<div class="${tt}"`:b+=`<div tabindex="-1" id="${Pe}" class="${tt}"`,ue.tooltip&&(b+=` data-tooltip="${ue.tooltip}"`),b+=`>${Ke}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Pf(a,y={shifted:!1}){var b,z,ue,Pe,Ke,tt,ct;let ht="",bt=(b=a.class)!=null?b:"";if(y.shifted&&rd(a)&&(bt+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?ht=Ud(a.shift):typeof a.shift=="object"&&(ht=a.shift.label?a.shift.label:(z=Ud(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?z:""),typeof a.shift=="object"&&(bt=(Pe=(ue=a.shift.class)!=null?ue:a.class)!=null?Pe:"");else{if(ht=a.label?a.label:(Ke=Ud(a.latex||a.insert||"")||a.key)!=null?Ke:"",a.shift){let Bt;typeof a.shift=="string"?Bt=Ud(a.shift):a.shift.label?Bt=a.shift.label:Bt=(tt=Ud(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?tt:"",ht+=`<span class="MLK__shift">${Bt}</span>`}a.aside&&(ht+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(bt)&&(bt+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(bt)||(bt+=" MLK__keycap"),!/\bw[0-9]+\b/.test(bt)&&a.width&&(bt+=(ct={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ct:""),[ht,bt||"MLK__keycap"]}var Ou={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function Tp(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Ou[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Ou[a.label]&&(b=ne(ae(ae({},Ou[a.label]),a),{label:Ou[a.label].label})),"key"in a&&a.key&&Ou[a.key]&&(b=ne(ae(ae({},Ou[a.key]),a),{key:Ou[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=ae(ae({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=ae(ae({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=ae(ae({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=ae(ae({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var Zd;function kv(a){var y;if(a.button!==0)return;const b=uu.singleton;if(!b)return;let z=a.target;for(;z&&!z.getAttribute("data-layer");)z=z.parentElement;if(z){b.currentLayer=(y=z.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ue=nd(a.target);if(!(ue!=null&&ue.id))return;const Pe=b.getKeycap(ue.id);if(!Pe)return;console.assert(a.type==="pointerdown");const Ke=new AbortController,tt=Ke.signal;ue.classList.add("is-pressed"),ue.addEventListener("pointerenter",Nf(Ke),{capture:!0,signal:tt}),ue.addEventListener("pointerleave",Nf(Ke),{capture:!0,signal:tt}),ue.addEventListener("pointercancel",Nf(Ke),{signal:tt}),ue.addEventListener("pointerup",Nf(Ke),{signal:tt}),rd(Pe)&&(ue.classList.add("is-active"),b.shiftPressCount++),Pe.variants&&(Zd&&clearTimeout(Zd),Zd=setTimeout(()=>{ue.classList.contains("is-pressed")&&(ue.classList.remove("is-pressed"),ue.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),Ap(ue,()=>{Ke.abort(),ue==null||ue.classList.remove("is-active")}))},300)),a.preventDefault()}function Nf(a){return y=>{const b=nd(y.target);if(!(b!=null&&b.id))return;const z=uu.singleton;if(!z)return;const ue=z.getKeycap(b.id);if(ue){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),rd(ue)&&(z.shiftPressCount--,b.classList.toggle("is-active",z.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),rd(ue)&&(z.shiftPressCount--,b.classList.toggle("is-active",z.isShifted));return}if(y.type==="pointerup"){Zd&&clearTimeout(Zd),rd(ue)?b.classList.toggle("is-active",z.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),z.isShifted&&ue.shift?typeof ue.shift=="string"?z.executeCommand(["insert",ue.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Ah(ue.shift):Ah(ue),z.shiftPressCount===1&&!y.shiftKey&&(z.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Ah(a){var y;let b=a.command;!b&&a.insert&&(b=["insert",a.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!b&&a.key&&(b=["typedText",a.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!b&&a.latex&&(b=["insert",a.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),b||(b=["typedText",a.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(y=uu.singleton)==null||y.executeCommand(b)}function Tv(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function nd(a){if(!a)return;let y=a;for(;y&&!Tv(y);)y=y.parentElement;return y!=null?y:void 0}function rd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var uu=class n0{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,z;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ue=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(z=window.top)==null||z.addEventListener("message",this)}catch(ue){window.addEventListener("message",this)}document.body.addEventListener("focusin",ue=>{const Pe=ue.target;Pe!=null&&Pe.isConnected&&setTimeout(()=>{const Ke=Op();Ke&&!Ke.readOnly&&Ke.mathVirtualKeyboardPolicy==="auto"&&fe()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ue=>{ue.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Op()||this.hide()},300)})}get currentLayer(){var y,b,z;return(z=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?z:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let z=y?this._element.querySelector(`#${y}.MLK__layer`):null;z||(z=this._element.querySelector(".MLK__layer")),z&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),z.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const z of b)for(const ue of z.layers)if(ue.id===y)return ue}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(y){this._alphabeticLayout=y,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(y){this._actionKeycap=typeof y=="string"?{label:y}:y}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(y){this._shiftKeycap=typeof y=="string"?{label:y}:y}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(y){this._backspaceKeycap=typeof y=="string"?{label:y}:y}get tabKeycap(){return this._tabKeycap}set tabKeycap(y){this._tabKeycap=typeof y=="string"?{label:y}:y}get layouts(){return this._layouts}set layouts(y){this.updateNormalizedLayouts(y),this.rebuild()}updateNormalizedLayouts(y){const b=Array.isArray(y)?[...y]:[y],z=b.findIndex(ue=>ue==="default");z>=0&&b.splice(z,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ue=>kp(ue))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(y){this._editToolbar=y,this.rebuild()}get container(){return this._container}set container(y){this._container=y,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new n0}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,z){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,z){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const z=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${z}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ue=z-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ue}px)`:`${ue}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${z}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(b)for(const z of b){const ue=this.getKeycap(z.id);if(ue){const[Pe,Ke]=Pf(ue,{shifted:this.isShifted});z.innerHTML=window.MathfieldElement.createHTML(Pe),z.className=Ke}}}show(y){var b;if(this._visible)return;const z=this.container;if(z&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ue=this._element.getElementsByClassName("MLK__plate")[0];if(ue&&this.observer.observe(ue),z===window.document.body){const Pe=z.style.paddingBottom;this.originalContainerBottomPadding=Pe;const Ke=ue.offsetHeight-1;z.style.paddingBottom=Pe?`calc(${Pe} + ${Ke}px)`:`${Ke}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ue;return(ue=this._element)==null?void 0:ue.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const z=this.container;if(z&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ue=this._element.getElementsByClassName("MLK__plate")[0];ue&&this.observer.unobserve(ue),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),Wd(),Sv(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(z.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Ev(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Ap(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Eh(y)){if(!Dd(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:z}=y;if(z==="execute-command"){const{command:ue}=y,Pe=td(ue);if(window.top!==void 0&&Pe!=="virtual-keyboard")return;this.executeCommand(ue);return}if((z==="connect"||z==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),z!=="disconnect"&&window===window.top){if(z==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(z==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(z==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(z==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,z){if(z||(z=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||z===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:ae({type:If,action:y},b)}));return}if(z)z.postMessage(ae({type:If,action:y},b),{targetOrigin:this.targetOrigin});else if(b.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:b.command})),y==="execute-command"&&Array.isArray(b.command)&&b.command[0]==="insert"){const ue=b.command[1].split("");for(const Pe of ue)this.dispatchEvent(new KeyboardEvent("keydown",{key:Pe,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:Pe,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const z=b.querySelectorAll(".ML__edit-toolbar");if(z)for(const ue of z)ue.innerHTML=yv(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,z=[],ue=td(y);return re(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ue=td(y)),z=y.slice(1)):b=y,b=b.replace(/-\w/g,Pe=>Pe[1].toUpperCase()),ue==="virtual-keyboard"?Oc[b].fn(void 0,...z):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function Op(){var a,y;let b=Ef(),z=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){z=b.host;break}b=b.parentNode}return z}if(ce()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=uu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>dv.singleton,configurable:!0});function Rf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const z=a.scriptDepth;if(re(z))y.scriptDepth=[z[0],z[1]];else if(typeof z=="number")y.scriptDepth=[z,z];else if(typeof z=="string"){const[Pe,Ke]=z.split(",").map(tt=>parseInt(tt.trim()));y.scriptDepth=[Pe,Ke]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ue=a.mathVirtualKeyboardPolicy.toLowerCase();if(ue==="sandboxed"){if(window!==window.top){const Pe=uu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>Pe})}ue="manual"}y.mathVirtualKeyboardPolicy=ue;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?ge.locale.startsWith("fr")?y.letterShapeStyle="french":y.letterShapeStyle="tex":y.letterShapeStyle=a.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(a.defaultMode)?y.defaultMode=a.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),y.defaultMode="math");break;case"macros":y.macros=Pt(a.macros);break;default:re(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=ae({},a[b]):y[b]=a[b]}return y}function Du(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const z={};for(const ue of b)a[ue]===null?z[ue]=null:re(a[ue])?z[ue]=[...a[ue]]:typeof a[ue]=="object"&&!(a[ue]instanceof Element)&&ue!=="computeEngine"?z[ue]=ae({},a[ue]):z[ue]=a[ue];return typeof y=="string"?z[y]:z}function Bf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ie,backgroundColorMap:Be,letterShapeStyle:ge.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:ch,inlineShortcuts:hf,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:lh,value:""}}function Dp(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function du(a,y){!a||!y||(re(a)?a.forEach(b=>du(b,y)):typeof a=="object"&&!a.style.color&&!a.style.backgroundColor&&!a.style.fontFamily&&!a.style.fontShape&&!a.style.fontSeries&&!a.style.fontSize&&!a.style.variant&&!a.style.variantStyle&&(a.applyStyle(y),du(a.body,y),du(a.above,y),du(a.below,y),du(a.subscript,y),du(a.superscript,y)))}function Mh(a,y,b,z){function ue(Ke,tt){for(const ct of Pe)if(ct.style[Ke]!==tt)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const Pe=a.getAtoms(y,{includeChildren:!0});z.operation==="toggle"&&(b.color&&ue("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ue("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ue("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ue("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ue("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ue("fontSize",b.fontSize)&&(b.fontSize=go),b.variant&&ue("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ue("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const Ke of Pe)Ke.applyStyle(b);return!0}function Ov(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:z}=b;b.caret=void 0;const ue=new Uc(y,{mode:b.mode});ue.caret=z,b.parent.addChildAfter(ue,b),a.position+=1}}function Dv(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}Ut(["math","displaymath"],nc),Ut("center",nc),Ft("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(z=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(z)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new co("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),xn("array","{columns:colspec}",(a,y,b,z)=>new co(a,kh(y),b,{columns:z[0],mathstyleName:"textstyle"})),xn(["equation","equation*","subequations"],"",(a,y,b)=>new co(a,kh(y),b,{columns:[{align:"c"}]})),xn(["multline","multline*"],"",nc),xn(["align","align*","aligned","eqnarray"],"",nc),xn("split","",nc),xn(["gather","gathered"],"",nc),xn(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",nc),xn(["smallmatrix","smallmatrix*"],"[columns:colspec]",nc),xn(["cases","dcases","rcases"],"",nc);function Iv(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kh(a,y=1){return Iv(a)?Array(y).fill([[new _r({type:"first"}),new Wa]]):a.map(b=>b.length===0?[[new _r({type:"first"})]]:b.map(z=>z.length===0?[new _r({type:"first"})]:(z[0].type!=="first"&&z.unshift(new _r({type:"first"})),z)))}function nc(a,y=[[[]]],b=[],z=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new co(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new co(a,y,b,{mathstyleName:"textstyle"});case"center":return new co(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new co(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new co(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new co(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new co(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Iu(z[0])});case"bmatrix":case"bmatrix*":return new co(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Iu(z[0])});case"Bmatrix":case"Bmatrix*":return new co(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Iu(z[0])});case"vmatrix":case"vmatrix*":return new co(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Iu(z[0])});case"Vmatrix":case"Vmatrix*":return new co(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Iu(z[0])});case"matrix":case"matrix*":return new co(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Iu(z==null?void 0:z[0])});case"smallmatrix":case"smallmatrix*":return new co(a,y,b,{mathstyleName:"scriptstyle",columns:Iu(z==null?void 0:z[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new co(a,y,b,{mathstyleName:a==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new co(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new co(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ue=0;for(const tt of y)ue=Math.max(ue,tt.length);const Pe=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let Ke=2;for(;Ke<ue;)Pe.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),Ke+=2;return Pe.push({gap:0}),new co(a,y,b,{arraycolsep:0,columns:Pe,minColumns:2})}}return new co(a,y,b,{mathstyleName:"textstyle"})}function Iu(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Lv(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof co);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof co)){const z=a.at(a.position);if(b=z,!b.parent.parent){let ue=a.extractAtoms([a.position,a.lastOffset]),Pe=a.extractAtoms([0,a.position]);Pe.length===0&&(Pe=jf()),ue.length===0&&(ue=jf());let Ke;return y.endsWith("column")?(Ke=nc("split",[[Pe,ue]]),a.root=Ke,Lu(Ke,0,0)?Pu(a,Ke,0,0):Lu(Ke,0,1)?Pu(a,Ke,0,1):a.position=a.offsetOf(z)):(Ke=nc("lines",[[Pe],[ue]]),a.root=Ke,Lu(Ke,0,0)?Pu(a,Ke,0,0):Lu(Ke,1,0)?Pu(a,Ke,1,0):a.position=a.offsetOf(z)),[void 0,[0,0]]}if(b.parent instanceof Uo){const ue=b.parent;let Pe=a.extractAtoms([a.position,a.offsetOf(ue.lastChild)]),Ke=a.extractAtoms([a.offsetOf(ue.firstChild),a.position]);Ke.length===0&&(Ke=jf()),Pe.length===0&&(Pe=jf());let tt="pmatrix";const ct=ue.leftDelim,ht=ue.rightDelim;ct==="("&&(ht===")"||ht==="?")?tt="pmatrix":(ct==="["||ct==="\\lbrack")&&(ht==="]"||ht==="\\rbrack"||ht==="?")?tt="bmatrix":ct==="\\vert"&&ht==="\\vert"?tt="vmatrix":ct==="\\Vert"&&ht==="\\Vert"?tt="Vmatrix":(ct==="{"||ct==="\\lbrace")&&(ht==="."||ht==="?")&&(tt="cases");const bt=nc(tt,y.endsWith("column")?[[Ke,Pe]]:[[Ke],[Pe]]);return ue.parent.addChildBefore(bt,ue),ue.parent.removeChild(ue),Lu(bt,0,0)?Pu(a,bt,0,0):y.endsWith("column")?Lu(bt,0,1)?Pu(a,bt,0,1):a.position=a.offsetOf(b):Lu(bt,1,0)?Pu(a,bt,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof co?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Lu(a,y,b){const z=a.getCell(y,b);return!z||z.length!==2?!1:z[1].type==="placeholder"}function Pv(a,y,b,z){const ue=y.getCell(b,z);return ue?[a.offsetOf(ue[0]),a.offsetOf(ue[ue.length-1])]:-1}function Pu(a,y,b,z){const ue=Pv(a,y,b,z);typeof ue!="number"&&a.setSelection(ue)}function _f(a,y,b,z,ue){const Pe=y.getCell(b,z);Pe&&a.setPositionHandlingPlaceholder(a.offsetOf(Pe[ue==="start"?0:Pe.length-1]))}function Ff(a,y){const[b,[z,ue]]=Lv(a,y);if(b)switch(y){case"after row":b.addRowAfter(z),_f(a,b,z+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ue),_f(a,b,z,ue+1,"end");break;case"before row":b.addRowBefore(z),_f(a,b,z,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ue),_f(a,b,z,ue,"start");break}}function Ip(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Nv(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Lp(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Rv(a){return a.contentWillChange({inputType:"insertText"})?(Ff(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pp(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",z=".";switch(y){case"pmatrix":case"pmatrix*":b="(",z=")";break;case"bmatrix":case"bmatrix*":b="[",z="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",z="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",z="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",z="\\Vert";break;case"matrix":case"matrix*":b=".",z=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":z="\\rbrace";break}const ue=a.at(a.position),Pe=ue.type==="array"?ue:a.parentEnvironment;return Pe.environmentName=y,Pe.leftDelim=b,Pe.rightDelim=z,a.contentDidChange({}),!0}function Np(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof co);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof co){const z=b.parent,ue=b.parentBranch;let Pe;switch(y){case"row":if(z.rowCount>1){z.removeRow(ue[0]);const Ke=z.getCell(Math.max(0,ue[0]-1),ue[1]);Pe=a.offsetOf(Ke[Ke.length-1])}break;case"column":if(z.colCount>z.minColumns){z.removeColumn(ue[1]);const Ke=z.getCell(ue[0],Math.max(0,ue[1]-1));Pe=a.offsetOf(Ke[Ke.length-1])}break}Pe&&a.setPositionHandlingPlaceholder(Pe)}}function Bv(a){return a.contentWillChange({inputType:"deleteContent"})?(Np(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function _v(a){return a.contentWillChange({inputType:"deleteContent"})?(Np(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Kl({addRowAfter:Ip,addColumnAfter:Lp,addRowBefore:Nv,addColumnBefore:Rv,removeRow:Bv,removeColumn:_v,setEnvironment:Pp},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function jf(){return[new Wa]}var Rp=class r0{constructor(y){this.recording=!1,this.model=y,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(y){y&&this.index>=0&&(this.stack[this.index].selection=y),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(y){return this.recording?(y&&y===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>r0.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};Rp.maximumDepth=1e3;var Fv=Rp;function Th(a,y,b){if(a.at(y).mode!=="text")return y;const z=b==="backward"?-1:1;let ue;if(je.test(a.at(y).value)){let Pe=y,Ke;do Ke=a.at(Pe).mode==="text"&&je.test(a.at(Pe).value),Pe+=z;while(a.at(Pe)&&Ke);ue=a.at(Pe)?Pe-2*z:Pe-z}else if(/\s/.test(a.at(y).value)){let Pe=y;for(;a.at(Pe)&&a.at(Pe).mode==="text"&&/\s/.test(a.at(Pe).value);)Pe+=z;if(!a.at(Pe))ue=Pe-z;else{let Ke=!0;do Ke=a.at(Pe).mode==="text"&&!/\s/.test(a.at(Pe).value),Pe+=z;while(a.at(Pe)&&Ke);ue=a.at(Pe)?Pe-2*z:Pe-z}}else{let Pe=y;for(;a.at(Pe)&&a.at(Pe).mode==="text"&&!/\s/.test(a.at(Pe).value);)Pe+=z;ue=a.at(Pe)?Pe:Pe-z;let Ke=!0;for(;a.at(Pe)&&Ke;)Ke=a.at(Pe).mode==="text"&&/\s/.test(a.at(Pe).value),Ke&&(ue=Pe),Pe+=z;ue=a.at(Pe)?Pe-2*z:Pe-z}return ue-(z>0?0:1)}function id(a,y,b){var z,ue,Pe,Ke,tt,ct,ht;const bt=a.position;(z=b==null?void 0:b.extend)!=null&&z||a.collapseSelection(y);let Bt=a.at(a.position);if(y==="forward"&&(Bt.type==="subsup"?(Bt=Bt.rightSibling,Bt||(Bt=a.at(a.position+1))):Bt=a.at(a.position+1)),!Bt)return a.announce("plonk"),!1;let Xt=a.offsetOf(Bt);if(Bt instanceof fc)Xt=Th(a,Xt,y);else if(Bt instanceof ml)if(Bt.isSuggestion)for(console.assert(y==="forward");Bt&&Bt instanceof ml;)Bt.isSuggestion=!1,Xt=a.offsetOf(Bt),Bt=Bt.rightSibling;else if(y==="forward"){if(Bt=Bt.rightSibling,!Bt||!(Bt instanceof ml))return a.announce("plonk"),!1;for(;Bt&&Bt instanceof ml&&/[a-zA-Z\*]/.test(Bt.value);)Xt=a.offsetOf(Bt),Bt=Bt.rightSibling}else{if(Bt=Bt.leftSibling,!Bt||!(Bt instanceof ml))return a.announce("plonk"),!1;for(;Bt&&Bt instanceof ml&&/[a-zA-Z\*]/.test(Bt.value);)Xt=a.offsetOf(Bt),Bt=Bt.leftSibling}else if(y==="forward"&&Bt.type==="mopen"){let hn=0;do Bt.type==="mopen"?hn+=1:Bt.type==="mclose"&&(hn-=1),Bt=Bt.rightSibling;while(!Bt.isLastSibling&&hn!==0);Xt=a.offsetOf(Bt.leftSibling)}else if(y==="backward"&&Bt.type==="mclose"){let hn=0;do Bt.type==="mopen"?hn+=1:Bt.type==="mclose"&&(hn-=1),Bt=Bt.leftSibling;while(!Bt.isFirstSibling&&hn!==0);Xt=a.offsetOf(Bt)}else if(y==="backward")if(Bt.type==="first")for(;Xt>0&&Bt.type==="first";)Xt-=1,Bt=a.at(Xt);else{const hn=Bt.type;Bt.type==="subsup"&&(Xt=a.offsetOf(a.at(Xt).leftSibling)),Xt-=1;let wn=(ue=a.at(Xt))==null?void 0:ue.type;for(;Xt>=0&&wn===hn;)((Pe=a.at(Xt))==null?void 0:Pe.type)==="subsup"?Xt=a.offsetOf(a.at(Xt).leftSibling):Xt-=1,wn=a.at(Xt).type}else{const{type:hn}=Bt;let wn=(Ke=a.at(Xt))==null?void 0:Ke.type;const{lastOffset:Sr}=a;for(;Xt<=Sr&&(wn===hn||wn==="subsup");){for(;((tt=a.at(Xt).rightSibling)==null?void 0:tt.type)==="subsup";)Xt=a.offsetOf(a.at(Xt).rightSibling);Xt+=1,wn=(ct=a.at(Xt))==null?void 0:ct.type}Xt-=1}if((ht=b==null?void 0:b.extend)!=null&&ht){if(!a.setSelection(a.anchor,Xt))return a.announce("plonk"),!1}else{if(Xt===a.position)return a.announce("plonk"),!1;a.position=Xt}return a.announce("move",bt),a.mathfield.stopCoalescingUndo(),!0}function Dc(a,y,b){var z,ue;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[tt,ct]=gp(a);tt!==void 0&&ct!==void 0&&a.deleteAtoms([tt,ct])}if(y==="upward")return Kv(a,b);if(y==="downward")return zv(a,b);if(b.extend){let tt=Kf(a,a.position,y);tt<0&&(tt=0),tt>a.lastOffset&&(tt=a.lastOffset);const ct=a.setSelection(a.anchor,tt);return a.mathfield.stopCoalescingUndo(),ct}if(a.selectionIsPlaceholder){a.collapseSelection(y);const tt=Dc(a,y);return a.mathfield.stopCoalescingUndo(),tt}let Pe=a.position;const Ke=Pe;if(a.collapseSelection(y)?(Pe=a.position,Bp(a,Pe)||(Pe=Kf(a,Pe,y))):Pe=Kf(a,Pe,y),Pe<0||Pe>a.lastOffset){let tt=!0;return a.silenceNotifications||(tt=(ue=(z=a.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ue:!0),tt&&a.announce("plonk"),tt}return a.setPositionHandlingPlaceholder(Pe),a.mathfield.stopCoalescingUndo(),a.announce("move",Ke),!0}function Kf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||Bp(a,y)?y:Kf(a,y,b)}function Bp(a,y){var b;const z=a.at(y);let ue=z.parent;for(;ue&&!ue.inCaptureSelection;)ue=ue.parent;return!(ue!=null&&ue.inCaptureSelection||(b=z.parent)!=null&&b.skipBoundary&&(!z.isFirstSibling&&z.isLastSibling||z.type==="first")||a.mathfield.hasEditablePrompts&&!z.parentPrompt)}function jv(a,y,b){let z=1/0,ue=0;for(;ue<y.length;ue++){const Pe=Gu(a.getHTMLElement(y[ue])).right,Ke=Math.abs(b-Pe);if(Ke<=z)z=Ke;else break}return y[ue-1]}function zf(a,y,b,z,ue){const Pe=a.mathfield.hasEditablePrompts,Ke=Pe?b.filter(ht=>ht.type==="prompt"&&!ht.captureSelection):b,tt=Gu(a.mathfield.getHTMLElement(y)).right,ct=a.offsetOf(jv(a.mathfield,Ke,tt))-(Pe?1:0);if(z){const[ht,bt]=a.selection.ranges[0];let Bt;ct<(ue==="up"?ht:bt)?Bt={ranges:[[ct,bt]],direction:"backward"}:Bt={ranges:[[ht,ct]],direction:"forward"},a.setSelection(Bt)}else a.setPositionHandlingPlaceholder(ct);a.announce(`move ${ue}`)}function Kv(a,y){var b,z;const ue=(b=y==null?void 0:y.extend)!=null?b:!1;ue||a.collapseSelection("backward");const Pe=()=>{var ct,ht;let bt=!0;return a.silenceNotifications||(bt=(ht=(ct=a.mathfield.host)==null?void 0:ct.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ht:!0),a.announce(bt?"plonk":"line"),bt},Ke=a.at(a.position);let tt=Ke;for(;tt&&tt.parentBranch!=="below"&&!(Array.isArray(tt.parentBranch)&&tt.parent instanceof co);)tt=tt.parent;if(Array.isArray(tt==null?void 0:tt.parentBranch)&&tt.parent instanceof co){const ct=tt.parent;if(tt.parentBranch[0]<1)return Pe();const ht=tt.parentBranch[0]-1,bt=ct.array[ht][tt.parentBranch[1]];if(!bt.some(Xt=>Xt.type==="prompt"&&!Xt.captureSelection)&&a.mathfield.hasEditablePrompts)return Pe();zf(a,Ke,bt,ue,"up")}else if(tt){const ct=(z=tt.parent.branch("above"))!=null?z:tt.parent.createBranch("above");if(!ct.some(bt=>bt.type==="prompt"&&bt.placeholderId)&&a.mathfield.hasEditablePrompts)return Pe();zf(a,Ke,ct,ue,"up")}else return Pe();return a.mathfield.stopCoalescingUndo(),!0}function zv(a,y){var b,z;const ue=(b=y==null?void 0:y.extend)!=null?b:!1;ue||a.collapseSelection("forward");const Pe=()=>{var ct,ht;let bt=!0;return a.silenceNotifications||(bt=(ht=(ct=a.mathfield.host)==null?void 0:ct.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ht:!0),a.announce(bt?"plonk":"line"),bt},Ke=a.at(a.position);let tt=Ke;for(;tt&&tt.parentBranch!=="above"&&!(Array.isArray(tt.parentBranch)&&tt.parent instanceof co);)tt=tt.parent;if(Array.isArray(tt==null?void 0:tt.parentBranch)&&tt.parent instanceof co){const ct=tt.parent;if(tt.parentBranch[0]+1>ct.array.length-1)return Pe();const ht=tt.parentBranch[0]+1,bt=ct.array[ht][tt.parentBranch[1]];if(!bt.some(Xt=>Xt.type==="prompt"&&!Xt.captureSelection)&&a.mathfield.hasEditablePrompts)return Pe();zf(a,Ke,bt,ue,"down")}else if(tt){const ct=(z=tt.parent.branch("below"))!=null?z:tt.parent.createBranch("below");if(!ct.some(bt=>bt.type==="prompt")&&a.mathfield.hasEditablePrompts)return Pe();zf(a,Ke,ct,ue,"down")}else return Pe();return!0}function _p(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Hv(a){let y=0,b=a.at(a.position),z=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(z=!1):z=!0,b=b.parent;return z?y:0}function Wv(a){let y=0,b=a.at(a.position),z=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(z=!0):z=!1,b=b.parent;return z?y:0}function Fp(a){var y;if(a.collapseSelection(),Hv(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new ec({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function jp(a){var y;if(a.collapseSelection(),Wv(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new ec({style:a.at(a.position).computedStyle}),b),b=a.at(a.position+1)),b.createBranch("subscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.subscript[0]))),!0}function Uv(){function a(ct){const ht=[],bt=[];return[...ct.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Xt,hn)=>{const wn=z(Xt);wn===0?ht.push(Xt):bt.push({documentOrder:hn,tabIndex:wn,node:Xt})}),bt.sort((Xt,hn)=>Xt.tabIndex===hn.tabIndex?Xt.documentOrder-hn.documentOrder:Xt.tabIndex-hn.tabIndex).map(Xt=>Xt.node).concat(ht)}function y(ct){return!(!b(ct)||ue(ct)||z(ct)<0)}function b(ct){return!(ct.disabled||ct.type==="hidden"&&ct.tagName.toUpperCase()==="INPUT"||tt(ct))}function z(ct){var ht;const bt=Number.parseInt((ht=ct.getAttribute("tabindex"))!=null?ht:"NaN",10);return Number.isNaN(bt)?ct.contentEditable==="true"||(ct.nodeName==="AUDIO"||ct.nodeName==="VIDEO")&&ct.getAttribute("tabindex")===null?0:ct.tabIndex:bt}function ue(ct){return ct.tagName.toUpperCase()==="INPUT"&&ct.type==="radio"&&!Ke(ct)}function Pe(ct,ht){for(const bt of ct)if(bt.checked&&bt.form===ht)return bt;return null}function Ke(ct){var ht;if(!ct.name)return!0;const Bt=((ht=ct.form)!=null?ht:ct.ownerDocument).querySelectorAll('input[type="radio"][name="'+ct.name+'"]'),Xt=Pe(Bt,ct.form);return!Xt||Xt===ct}function tt(ct){if(!ce()||ct===document.activeElement||ct.contains(document.activeElement))return!1;if(getComputedStyle(ct).visibility==="hidden")return!0;const ht=ct.getBoundingClientRect();if(ht.width===0||ht.height===0)return!0;for(;ct;){if(getComputedStyle(ct).display==="none")return!0;ct=ct.parentElement}return!1}return ce()?a(document.body):[]}function Tl(a,y,b="forward"){const z=a.position;if(Array.isArray(y)){const ue=a.offsetOf(y[0]),Pe=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ue,Pe):a.setSelection(Pe,ue),a.announce("move",z),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?Tl(a,[y.leftSibling,y]):Tl(a,[y,y.leftSibling])}function mc(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const z=a.offsetOf(y);y.type==="placeholder"?a.setSelection(z-1,z):a.position=z}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Hf(a,y,b=!0){var z,ue;const Pe=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Dc(a,y);let Ke;const tt=a.at(a.anchor).parentPrompt;tt?y==="forward"?Ke=a.offsetOf(tt)+1:Ke=a.offsetOf(tt.leftSibling):Ke=Math.max(a.position+Pe,0);const ct=Oh(a,Ke,y);if(!ct||y==="forward"&&a.offsetOf(ct)<Ke||y==="backward"&&a.offsetOf(ct)>Ke){if(!b||!((ue=(z=a.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ue))return a.announce("plonk"),!1;const bt=Uv();if(!document.activeElement||bt.length<=1)return a.announce("plonk"),!1;let Bt=bt.indexOf(document.activeElement)+Pe;return Bt<0&&(Bt=bt.length-1),Bt>=bt.length&&(Bt=0),bt[Bt].focus(),a.mathfield.stopCoalescingUndo(),!0}return mc(a,ct),!0}function Oh(a,y=0,b="forward"){return a.findAtom(z=>z.type==="placeholder"||z.type==="prompt"||!a.mathfield.readOnly&&z.treeDepth>2&&z.isFirstSibling&&z.isLastSibling,y,b)}Kl({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:z}=b;if(!z)return a.announce("plonk"),!1;const ue=b.parentBranch;let Pe;if(typeof ue=="string"&&(Pe=y[ue]),!Pe){const tt=b.subsupPlacement?jp(a):Fp(a);return a.mathfield.stopCoalescingUndo(),tt}z.branch(Pe)||z.createBranch(Pe);const Ke=a.setSelection(a.getBranchRange(a.offsetOf(z),Pe));return a.mathfield.stopCoalescingUndo(),Ke},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>_p(a),moveToNextChar:a=>Dc(a,"forward"),moveToPreviousChar:a=>Dc(a,"backward"),moveUp:a=>Dc(a,"upward"),moveDown:a=>Dc(a,"downward"),moveToNextWord:a=>id(a,"forward"),moveToPreviousWord:a=>id(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,z,ue;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Hf(a,"forward");const Pe=a.at(a.position);if(Pe.mode==="text"){if(a.selectionIsCollapsed){let Xt=Pe;for(;Xt&&Xt.mode==="text";)Xt=Xt.leftSibling;let hn=Pe;for(;((y=hn.rightSibling)==null?void 0:y.mode)==="text";)hn=hn.rightSibling;if(Xt&&hn)return Tl(a,[Xt,hn])}if(Pe.rightSibling.mode==="text"){let Xt=Pe;for(;Xt&&Xt.mode==="text";)Xt=Xt.rightSibling;return Xt?(mc(a,(b=Xt.leftSibling)!=null?b:Xt),a.mathfield.switchMode("math"),!0):mc(a,a.lastOffset)}}const tt=a.at(a.anchor).parentPrompt,ct=tt?a.offsetOf(tt)+1:Math.max(a.position+1,0),ht=Oh(a,ct,"forward");if(ht)return mc(a,ht);const bt=Kp(a,Pe,Xt=>Xt.type==="leftright"||Xt.type==="text","forward");if(bt){if(bt.mode==="text"){let Xt=bt;for(;Xt&&Xt.mode==="text";)Xt=Xt.rightSibling;return Tl(a,[(z=bt.leftSibling)!=null?z:bt,(ue=Xt.leftSibling)!=null?ue:Xt])}return Tl(a,bt)}const Bt=Pe.parent;if(Bt){if(Bt.type==="leftright"||Bt.type==="surd")return Tl(a,Bt);if(Pe.parentBranch==="superscript"&&Bt.subscript)return Tl(a,Bt.subscript);if(Pe.parentBranch==="above"&&Bt.below)return Tl(a,Bt.below);if(Pe.parentBranch==="superscript"||Pe.parentBranch==="subscript")return mc(a,Bt);if(Pe.parentBranch==="above"||Pe.parentBranch==="below")return Tl(a,Bt)}return mc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Hf(a,"backward");let b=a.at(a.position);const z=b.mode;if(z==="text"){if(a.selectionIsCollapsed){let tt=b;for(;tt&&tt.mode==="text";)tt=tt.leftSibling;let ct=b;for(;((y=ct.rightSibling)==null?void 0:y.mode)==="text";)ct=ct.rightSibling;if(tt&&ct)return Tl(a,[tt,ct])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?mc(a,b):mc(a,0)}const ue=a.at(a.anchor).parentPrompt,Pe=ue?a.offsetOf(ue.leftSibling):Math.max(a.position-1,0),Ke=Oh(a,Pe,"backward");if(Ke)return mc(a,Ke);if(z==="math"){const tt=Kp(a,b,ht=>ht.type==="leftright"||ht.type==="text","backward");if(tt){if(tt.mode==="text"){let ht=tt;for(;ht&&ht.mode==="text";)ht=ht.leftSibling;return Tl(a,[tt,ht])}return Tl(a,tt)}const ct=b.parent;if(ct){if(ct.type==="leftright"||ct.type==="surd")return Tl(a,ct);if(b.parentBranch==="subscript"&&ct.superscript)return Tl(a,ct.superscript);if(b.parentBranch==="below"&&ct.above)return Tl(a,ct.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return mc(a,ct);if(b.parentBranch==="above"||b.parentBranch==="below")return Tl(a,ct)}return mc(a,0)}return!1},moveToMathfieldStart:a=>a.selectionIsCollapsed&&a.position===0?(a.announce("plonk"),!1):(a.position=0,a.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:a=>a.selectionIsCollapsed&&a.position===a.lastOffset?(a.announce("plonk"),!1):(a.position=a.lastOffset,a.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:Fp,moveToSubscript:jp},{target:"model",changeSelection:!0}),Kl({moveToNextPlaceholder:a=>Hf(a,"forward"),moveToPreviousPlaceholder:a=>Hf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Kp(a,y,b,z){if(z==="forward"){let Pe=y.rightSibling;for(;Pe&&!b(Pe);)Pe=Pe.rightSibling;return Pe}let ue=y.leftSibling;for(;ue&&!b(ue);)ue=ue.leftSibling;return ue}function Wf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let z=a.position,ue=!1,Pe="";for(;!ue;){const Ke=a.at(z);ue=y===0||Ke===void 0||Ke.type==="first"||Ke.mode!=="math"||!(Ke.type&&/mord|mpunct|operator/.test(Ke.type)||Ke.type==="mop"&&/[a-zA-Z ]+/.test(Ke.value))||!Ke.hasEmptyBranch("superscript")||!Ke.hasEmptyBranch("subscript")||typeof b=="function"&&!b(Ke),ue||(Ke.mode="text",Ke.command=Ke.value,Ke.verbatimLatex=void 0,Pe+=Ke.value),z-=1,y-=1}a.contentDidChange({data:Pe,inputType:"insertText"})}function Nu(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let z=a.position,ue=!1;const Pe=[];for(;!ue;){const Ke=a.at(z);ue=y===0||!Ke||Ke.type==="first"||Ke.isFirstSibling||Ke.mode!=="text"||Ke.value===" "||typeof b=="function"&&!b(Ke),ue||(Pe.push(_r.serialize([Ke],{defaultMode:"math"})),Ke.mode="math"),z-=1,y-=1}Dh(a),a.contentDidChange({data:Eo(Pe),inputType:"insertText"})}function Dh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const z=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=z,a.contentDidChange({inputType:"deleteContent"})}}function Vv(a){let y="",b=a.position,z=!1;for(;!z;){const ue=a.at(b);z=!(ue&&(ue.mode==="text"||ue.mode==="math"&&ue.type&&/mord|mpunct/.test(ue.type))),z||(y=ue.value+y),b-=1}return y}function Zv(a,y,b){const{model:z}=a;if(z.mode==="latex"||!z.at(z.position).isLastSibling||!b||!Cf(b))return!1;const ue=$u(b);if(!z.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ue));const Pe=Vv(z)+ue;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ue))return!0;if(/[\^_]/.test(ue))return/(^|\s)[a-zA-Z][^_]$/.test(Pe)&&Nu(z,1),!0;const Ke={")":"(","}":"{","]":"["}[ue],{parent:tt}=z.at(z.position);if(Ke&&tt instanceof Uo&&tt.leftDelim===Ke)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(Pe))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ue))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(Pe))return Nu(z,1),!1;if(/\D\.[^\d\s]$/.test(Pe)){Nu(z,1);const ct=z.at(z.position);return ct.value="\u22C5",ct.style.variant="normal",ct.command="\\cdot",ct.verbatimLatex=void 0,z.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(Pe)||/\.\d$/.test(Pe)||/\([\d+\-.]$/.test(Pe))return Nu(z,1),!0;if(/\([a-z][,;]$/.test(Pe))return Nu(z,2),!0;if(/[\d+\-=><*|]$/.test(ue))return Dh(z),!0}else{if(y==="[Space]")return Wf(z,void 0,Ke=>/[a-z][:,;.]$/.test(Ke.value)),!0;if(/[a-zA-Z]{3,}$/.test(Pe)&&!/(dxd|abc|xyz|uvw)$/.test(Pe))return Wf(z,void 0,Ke=>/[a-zA-Z]/.test(Ke.value)),!0;if(/(^|\W)(if)$/i.test(Pe))return Wf(z,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(Pe)&&!/(αβγ)$/.test(Pe))return Wf(z,void 0,Ke=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(Ke.value)),!0;if(ue==="?"||ue==="."&&!/[\d-+]\.$/.test(Pe))return!0}return!1}function Gv(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=zp(),z=a.element.getBoundingClientRect();b.style.left=`${z.left}px`,b.style.top=`${z.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(yh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Xv(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=zp();y.innerHTML=""}else{const y=Mf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function zp(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(jl("keystroke-caption"),jl("core"),Mf("mathlive-keystroke-caption-panel"))}function Yv(){document.getElementById("mathlive-keystroke-caption-panel")&&(xh("mathlive-keystroke-caption-panel"),E("core"),E("keystroke-caption"))}function Hp(a,y){var b,z,ue;const{model:Pe}=a,Ke=mp(y);if(y.isTrusted){F0(y);const hn=jd();a.keyboardLayout!==hn.id&&(a.keyboardLayout=hn.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Gv(a,Ke),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let tt,ct="",ht;const bt=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(Pe.mode==="math")if(Ke==="[Backspace]")bt.pop();else if(!Cf(y))a.flushInlineShortcutBuffer();else{const hn=$u(y),wn=[...(z=(b=bt[bt.length-1])==null?void 0:b.keystrokes)!=null?z:[],hn];bt.push({state:Pe.getState(),keystrokes:wn,leftSiblings:Qv(a)});let Sr=0,ui="";for(;!tt&&Sr<wn.length;)ht=bt.length-(wn.length-Sr),ui=wn.slice(Sr).join(""),tt=Cd(bt[ht].leftSiblings,ui,a.options.inlineShortcuts),!tt&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(ui)&&(tt=a.options.onInlineShortcut(a,ui)),Sr+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(tt?a.switchMode("math"):Zv(a,Ke,y)&&(a.switchMode({math:"text",text:"math"}[Pe.mode]),ct=""))}if(!tt){if(ct||(ct=V0(a.keybindings,Pe.mode,y)),!ct&&(Ke==="[Enter]"||Ke==="[Return]")){let hn=!1;return Pe.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(hn=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),hn||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),Pe.contentDidChange({inputType:"insertLineBreak"})),hn}if((!ct||Ke==="[Space]")&&Pe.mode==="math"){if(Ke==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return so.insert(Pe,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ct="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const hn=Pe.at(Pe.position+1),wn=Pe.at(Pe.position-1);if((hn==null?void 0:hn.mode)==="text"||(wn==null?void 0:wn.mode)==="text")return so.insert(Pe," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ue=Pe.at(Pe.position))!=null&&ue.isDigit()&&window.MathfieldElement.decimalSeparator===","&&$u(y)===","&&(ct="insertDecimalSeparator")}}if(!tt&&!ct){if(Pe.mathfield.smartFence){if(Lh(Pe,$u(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:hn}=Pe.at(Pe.position);if(hn instanceof Uo&&hn.rightDelim==="?"&&Pe.at(Pe.position).isLastSibling&&/^[)}\]|]$/.test(Ke))return a.snapshot(),hn.isDirty=!0,hn.rightDelim=Ke,Pe.position+=1,Pe.selectionDidChange(),Pe.contentDidChange({data:$u(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!Pe.selectionIsCollapsed){const wn=$u(y);if(wn==="("||wn==="{"||wn==="["){const Sr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[wn],ui={"(":")","{":"\\rbrace","[":"\\rbrack"}[wn],[yr,Zr]=ll(Pe.selection);return a.snapshot(),Pe.position=Zr,so.insert(Pe,ui,{format:"latex"}),Pe.position=yr,so.insert(Pe,Sr,{format:"latex"}),Pe.setSelection(yr+1,Zr+1),Pe.contentDidChange({data:wn,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Bt=Pe.at(Math.max(Pe.position,Pe.anchor)),{parent:Xt}=Bt;if(ct==="moveAfterParent"&&(Xt==null?void 0:Xt.type)==="leftright"&&Bt.isLastSibling&&a.options.smartFence&&Lh(Pe,".",a.defaultStyle)&&(ct="",Bs(a)),a.keyboardDelegate.cancelComposition(),ct)a.executeCommand(ct);else if(tt){const hn=a.effectiveStyle;Pe.setState(bt[ht].state);const wn=bt[bt.length-1].keystrokes;for(const Sr of wn)so.insert(Pe,Sr,{silenceNotifications:!0,style:hn});a.snapshot("insert-shortcut"),Pe.setState(bt[ht].state),Pe.deferNotifications({content:!0,selection:!0,data:tt,type:"insertText"},()=>(so.insert(Pe,tt,{format:"latex",style:hn}),Dh(a.model),tt.endsWith(" ")&&(a.switchMode("text"),so.insert(Pe," ",{style:hn,mode:"text"})),a.snapshot(),Pe.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,Pe.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Ih(a,y,b){const{model:z}=a;if(!a.isSelectionEditable){z.announce("plonk");return}b!=null||(b={}),b.focus&&a.focus(),b.feedback&&window.MathfieldElement.playSound("keypress"),typeof b.mode=="string"&&(a.switchMode(b.mode),a.snapshot());let ue=af(y);const Pe=window.mathVirtualKeyboard;if(Pe!=null&&Pe.isShifted&&(ue=typeof ue=="string"?ue.toUpperCase():ue.map(ct=>ct.toUpperCase())),b.simulateKeystroke){let ct=!0;for(const ht of ue)Hp(a,new KeyboardEvent("keypress",{key:ht}))&&(ct=!1);if(ct)return}const Ke=z.at(z.position),tt=ae(ae({},Ke.computedStyle),a.defaultStyle);if(z.selectionIsCollapsed||(z.deleteAtoms(ll(z.selection)),a.snapshot("delete")),z.mode==="latex")z.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Af(a);for(const ct of ue)so.insert(z,ct);a.snapshot("insert-latex"),zd(a)});else if(z.mode==="text"){for(const ct of ue)so.insert(z,ct,{style:tt});a.snapshot("insert-text")}else if(z.mode==="math")for(const ct of ue)Jv(a,ct,tt,Ke);a.dirty=!0,a.scrollIntoView()}function Qv(a){const y=a.model,b=[];let z=y.at(Math.min(y.position,y.anchor));for(;z.type!=="first";)b.push(z),z=z.leftSibling;return b}function Jv(a,y,b,z){const ue=a.model;let Pe={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(Pe=["insert",a.options.mathModeSpace]),Pe){a.executeCommand(Pe);return}if(/\d/.test(y)&&a.options.smartSuperscript&&z.parentBranch==="superscript"&&z.parent.type!=="mop"&&z.parent.type!=="operator"&&z.parent.type!=="extensible-symbol"&&z.hasNoSiblings){$v(ue),so.insert(ue,y,{style:b}),a.snapshot(),_p(ue),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const Ke=a.adoptStyle==="left"?z:z.parent?z.rightSibling:null;(Ke==null?void 0:Ke.type)==="mord"&&/[a-zA-Z0-9]/.test(Ke.value)&&(b=ae({},b),Ke.style.variant&&(b.variant=Ke.style.variant),Ke.style.variantStyle&&(b.variantStyle=Ke.style.variantStyle))}so.insert(ue,y,{style:b}),a.snapshot(`insert-${ue.at(ue.position).type}`)}function $v(a){a.selectionIsCollapsed||(a.deleteAtoms(ll(a.selection)),a.mathfield.snapshot("delete"))}function Lh(a,y,b){if(!y||a.mode!=="math")return!1;const z=a.at(a.position),{parent:ue}=z,Pe={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!Pe)return!1;const Ke=we[Pe],tt=Ee[Pe];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ct,ht]=ll(a.selection),bt=a.extractAtoms([ct,ht]),Bt=ue.addChildrenAfter([new Uo("left...right",bt,{leftDelim:Pe,rightDelim:tt})],a.at(ct));return a.setSelection(a.offsetOf(Bt.firstChild),a.offsetOf(Bt.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:Pe,inputType:"insertText"}),!0}if(Pe==="|"){const ct=ue instanceof Uo?ue.leftDelim+ue.rightDelim:"";if(ct==="\\lbrace\\rbrace"||ct==="\\{\\}"||ct==="\\lbrace?")return a.mathfield.snapshot(),so.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:Pe,inputType:"insertText"}),!0}if(tt){if(ue instanceof Uo&&ue.firstChild===z&&(ue.leftDelim==="?"||ue.leftDelim==="."))return ue.leftDelim=Pe,ue.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:Pe,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ue instanceof Uo)){let Bt=z;for(;Bt&&!(Bt.type==="mclose"&&Bt.value===tt);)Bt=Bt.rightSibling;if(Bt){a.mathfield.snapshot();const Xt=a.extractAtoms([a.offsetOf(z),a.offsetOf(Bt)]);return Xt.pop(),ue.addChildrenAfter([new Uo("left...right",Xt,{leftDelim:Pe,rightDelim:tt})],z),a.position=a.offsetOf(ue.firstChild)+1,a.contentDidChange({data:Pe,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ct=a.offsetOf(z.lastSibling);let ht;for(ht=a.position;ht<=ct;ht++){const Bt=a.at(ht);if(Bt instanceof Uo&&(Bt.leftDelim==="?"||Bt.leftDelim===".")&&Wp(Pe,Bt.rightDelim))break}const bt=a.at(ht);if(ht<=ct&&bt instanceof Uo){bt.leftDelim=Pe,a.mathfield.snapshot();let Bt=a.extractAtoms([a.position,ht-1]);return Bt=Bt.filter(Xt=>Xt.type!=="first"),bt.addChildren(Bt,bt.parentBranch),a.position+=1,a.contentDidChange({data:Pe,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ue instanceof Uo&&(ue.leftDelim==="?"||ue.leftDelim===".")&&Wp(Pe,ue.rightDelim)){ue.isDirty=!0,ue.leftDelim=Pe,a.mathfield.snapshot();const Bt=a.extractAtoms([a.offsetOf(z.firstSibling),a.position]);for(const Xt of Bt)ue.parent.addChildBefore(Xt,ue);return a.contentDidChange({data:Pe,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ue instanceof Uo&&ue.leftDelim==="|")){if(a.mathfield.snapshot(),so.insert(a,`\\left${Pe}\\right?`,{format:"latex",style:b}),z.lastSibling.type!=="first"){const Bt=a.offsetOf(z.lastSibling),Xt=a.extractAtoms([a.position,Bt]);a.at(a.position).body=Xt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(Ke){let ct=z;for(;ct;){if(ct.type==="mopen"&&ct.value===Ke){a.mathfield.snapshot();const hn=ct.leftSibling,wn=a.extractAtoms([a.offsetOf(ct.leftSibling),a.offsetOf(z)]);wn.shift();const Sr=new Uo("left...right",wn,{leftDelim:Ke,rightDelim:Pe});return ue.addChildrenAfter([Sr],hn),a.position=a.offsetOf(Sr),a.contentDidChange({data:Pe,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ct=ct.leftSibling}if(ue instanceof Uo&&z.isLastSibling&&Ph(ue.leftDelim,Pe))return a.mathfield.snapshot(),ue.isDirty=!0,ue.rightDelim=Pe,a.position+=1,a.contentDidChange({data:Pe,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const ht=a.offsetOf(z.firstSibling);let bt;for(bt=a.position;bt>=ht;bt--){const hn=a.at(bt);if(hn instanceof Uo&&(hn.rightDelim==="?"||hn.rightDelim===".")&&Ph(hn.leftDelim,Pe))break}const Bt=a.at(bt);if(bt>=ht&&Bt instanceof Uo)return a.mathfield.snapshot(),Bt.rightDelim=Pe,Bt.addChildren(a.extractAtoms([bt,a.position]),Bt.parentBranch),a.contentDidChange({data:Pe,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ue instanceof Uo&&(ue.rightDelim==="?"||ue.rightDelim===".")&&Ph(ue.leftDelim,Pe))return a.mathfield.snapshot(),ue.isDirty=!0,ue.rightDelim=Pe,ue.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(z.lastSibling)]),ue.parentBranch),a.position=a.offsetOf(ue),a.contentDidChange({data:Pe,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Xt=ue.parent;return Xt instanceof Uo&&(Xt.rightDelim==="?"||Xt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Xt),Lh(a,Pe,b)):!1}return!1}function Ph(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):Ee[a]===y:!0}function Wp(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):we[y]===a:!0}Kl({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Xv,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,z)=>(a.switchMode(y,b,z),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Ih(a,y,b),!0),insertDecimalSeparator:a=>{const y=a.model;return y.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&y.at(Math.max(y.position,y.anchor)).isDigit()?(a.insert("{,}",{format:"latex"}),a.snapshot("insert-mord"),!0):(a.insert("."),!0)},commit:a=>{var y;return a.model.contentWillChange({inputType:"insertLineBreak"})&&((y=a.host)==null||y.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(a,y,b)=>{const z=a.getPrompts();let ue="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),Pe=0;for(;z.includes(ue)&&Pe<100;){if(Pe===99)return console.error("could not find a unique ID after 100 tries"),!1;ue="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),Pe++}return a.insert(`\\placeholder[${y!=null?y:ue}]{}`,b),!0}}),Kl({copyToClipboard:a=>(a.focus(),a.model.selectionIsCollapsed&&a.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),Kl({cutToClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(y=>{y&&a.model.contentWillChange({inputType:"insertFromPaste",data:y})?(a.stopCoalescingUndo(),a.stopRecording(),a.insert(y,{mode:a.model.mode})&&(zd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Bs(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function qv(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Nh(a,y),{model:z}=a;return z.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=ae(ae({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{z.selection.ranges.forEach(ue=>Mh(z,ue,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}Kl({applyStyle:qv},{target:"mathfield",canUndo:!0,changeContent:!0});function Nh(a,y){var b,z,ue,Pe,Ke,tt,ct,ht,bt,Bt;const Xt={};if(typeof y.color=="string"){const wn=(z=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?z:"none";wn!==y.color&&(Xt.verbatimColor=(ue=y.verbatimColor)!=null?ue:y.color),Xt.color=wn}if(typeof y.backgroundColor=="string"){const wn=(Ke=a.backgroundColorMap((Pe=y.backgroundColor)!=null?Pe:y.verbatimBackgroundColor))!=null?Ke:"none";wn!==y.backgroundColor&&(Xt.verbatimBackgroundColor=(tt=y.verbatimBackgroundColor)!=null?tt:y.backgroundColor),Xt.backgroundColor=wn}typeof y.fontFamily=="string"&&(Xt.fontFamily=y.fontFamily),typeof y.series=="string"&&(Xt.fontSeries=y.series),typeof y.fontSeries=="string"&&(Xt.fontSeries=y.fontSeries.toLowerCase()),Xt.fontSeries&&(Xt.fontSeries=(ct={bold:"b",medium:"m",normal:"m"}[Xt.fontSeries])!=null?ct:Xt.fontSeries),typeof y.shape=="string"&&(Xt.fontShape=y.shape),typeof y.fontShape=="string"&&(Xt.fontShape=y.fontShape.toLowerCase()),Xt.fontShape&&(Xt.fontShape=(ht={italic:"it",up:"n",upright:"n",normal:"n"}[Xt.fontShape])!=null?ht:Xt.fontShape),y.variant&&(Xt.variant=y.variant.toLowerCase()),y.variantStyle&&(Xt.variantStyle=y.variantStyle.toLowerCase());const hn=(bt=y.size)!=null?bt:y.fontSize;return typeof hn=="number"?Xt.fontSize=Math.max(1,Math.min(10,hn)):typeof hn=="string"&&(Xt.fontSize=(Bt={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[hn.toLowerCase()])!=null?Bt:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[hn]),Xt}function Rh(a){let[y,b]=ll(a.selection);if(y=Up(a,y,"backward"),b=Up(a,b,"forward"),y===b){const z=a.at(y);if(z.type==="leftright")return a.setSelection(a.offsetOf(z.firstChild)-1,b);if(z.type==="first"&&(z.parent.type==="leftright"||z.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(z.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function Up(a,y,b){var z,ue,Pe;let Ke=a.at(y);if(!Ke)return y;const tt=b==="forward"?1:-1;if(Ke.mode==="text"){for(;Ke&&!(Ke.mode!=="text"||!je.test(Ke.value));)y+=tt,Ke=a.at(y);return b==="backward"?y-1:y}if(Ke.mode==="latex"){if(/[a-zA-Z\*]/.test(Ke.value))if(b==="backward")for(;Ke&&Ke.mode==="latex"&&Ke.value!=="\\"&&/[a-zA-Z]/.test(Ke.value);)y+=tt,Ke=a.at(y);else for(;Ke&&Ke.mode==="latex"&&/[a-zA-Z\*]/.test(Ke.value);)y+=tt,Ke=a.at(y);else if(Ke.value==="{"){if(b==="forward"){for(;Ke&&Ke.mode==="latex"&&Ke.value!=="}";)y+=tt,Ke=a.at(y);return y}return y-1}else if(Ke.value==="}"){if(b==="backward"){for(;Ke&&Ke.mode==="latex"&&Ke.value!=="{";)y+=tt,Ke=a.at(y);return y-1}return y}return y-1}if(Ke.mode==="math"){if(Ke.isDigit()){for(;(z=a.at(y+tt))!=null&&z.isDigit();)y+=tt;return b==="backward"?y-1:y}if(Ke.style.variant||Ke.style.variantStyle){let ct=(ue=a.at(y))==null?void 0:ue.style;for(;ct&&ct.variant===Ke.style.variant&&ct.variantStyle===Ke.style.variantStyle;)ct=(Pe=a.at(y+tt))==null?void 0:Pe.style,y+=tt;return b==="backward"?y-1:y}return y}return y}Kl({selectGroup:a=>{const y=Rh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Dc(a,"forward",{extend:!0}),extendSelectionBackward:a=>Dc(a,"backward",{extend:!0}),extendToNextWord:a=>id(a,"forward",{extend:!0}),extendToPreviousWord:a=>id(a,"backward",{extend:!0}),extendSelectionUpward:a=>Dc(a,"upward",{extend:!0}),extendSelectionDownward:a=>Dc(a,"downward",{extend:!0}),extendToNextBoundary:a=>id(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>id(a,"backward",{extend:!0}),extendToGroupStart:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).firstSibling));return y||a.announce("plonk"),y},extendToGroupEnd:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).lastSibling));return y||a.announce("plonk"),y},extendToMathFieldStart:a=>{const y=a.setSelection(a.anchor,0);return y||a.announce("plonk"),y},extendToMathFieldEnd:a=>{const y=a.setSelection(a.anchor,a.lastOffset);return y||a.announce("plonk"),y}},{target:"model",changeSelection:!0});var Ru=null,Gd=0,Uf=class ic{static start(y,b,z,ue){var Pe;ic.element=y,(Pe=ic.controller)==null||Pe.abort(),ic.controller=new AbortController;const Ke={signal:ic.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",z,Ke),y.addEventListener("pointerup",ue,Ke),y.addEventListener("pointercancel",ue,Ke),Bh(b)&&(ic.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",z,Ke),window.addEventListener("blur",ue,Ke),window.addEventListener("mouseup",ue,Ke))}static stop(){var y;(y=ic.controller)==null||y.abort(),ic.controller=void 0,typeof ic.pointerId=="number"&&(ic.element.releasePointerCapture(ic.pointerId),ic.pointerId=void 0)}};function Bh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function Vp(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const z=a;let ue,Pe=!1,Ke=!1,tt="none",ct=!1,ht=!1;const bt=y.clientX,Bt=y.clientY,Xt=Date.now(),hn=z.field,wn=setInterval(()=>{ct?hn.scroll({top:0,left:hn.scrollLeft-16}):ht&&hn.scroll({top:0,left:hn.scrollLeft+16})},32);function Sr(){Uf.stop(),Pe=!1,clearInterval(wn),a.element.classList.remove("tracking"),y&&y.preventDefault()}function ui(Zr){if(!z.hasFocus()){Sr();return}const mi=Zr.clientX,$r=Zr.clientY,da=Bh(Zr)&&Zr.pointerType==="touch"?20:5;if(Date.now()<Xt+500&&Math.abs(bt-mi)<da&&Math.abs(Bt-$r)<da){Zr.preventDefault(),Zr.stopPropagation();return}const _a=hn.getBoundingClientRect();ht=mi>_a.right,ct=mi<_a.left;let Ta=ue;Bh(Zr)&&(Zr.isPrimary||(Ta=Xd(z,Zr.clientX,Zr.clientY,{bias:0})));const Ro=Xd(z,mi,$r,{bias:mi<=bt?mi===bt?0:-1:1});Ta>=0&&Ro>=0&&(z.model.extendSelectionTo(Ta,Ro),Bs(a)),Ke&&Rh(z.model)}Ru&&Math.abs(Ru.x-bt)<5&&Math.abs(Ru.y-Bt)<5&&Date.now()<Ru.time+500?(Gd+=1,Ru.time=Xt):(Ru={x:bt,y:Bt,time:Xt},Gd=1);const yr=hn.getBoundingClientRect();if(bt>=yr.left&&bt<=yr.right&&Bt>=yr.top&&Bt<=yr.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ue=Xd(a,bt,Bt,{bias:0}),ue>=0){if(a.element.classList.add("tracking"),y.shiftKey){const Zr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ue),yp(a.model)||Zr?tt="all":tt="selection"}else a.model.at(ue).type==="placeholder"?(a.model.setSelection(ue-1,ue),tt="selection"):((b=a.model.at(ue).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ue,ue+1),tt="selection"):(a.model.position=ue,yp(a.model)?tt="all":tt="selection");a.defaultStyle={},y.detail===3||Gd>2?(Sr(),(y.detail===3||Gd===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},tt="all")):Pe||(Pe=!0,Uf.start(hn,y,ui,Sr),(y.detail===2||Gd===2)&&(Ke=!0,Rh(a.model),tt="all"))}a.hasFocus()||(tt="none",a.focus({preventScroll:!0}))}else Ru=null;a.stopCoalescingUndo(),tt!=="none"&&(a.model.selectionIsCollapsed&&(tt="all"),Bs(a)),y.preventDefault()}function eg(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const z=a-(b.left+b.right)/2,ue=y-(b.top+b.bottom)/2;return z*z+ue*ue}function Zp(a,y,b,z,ue){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const Pe=ou(a,b);if(!Pe)return[1/0,null];let Ke=[1/0,null];if(b.hasChildren&&!b.captureSelection&&z>=Pe.left&&z<=Pe.right)for(const tt of b.children){const ct=Zp(a,y,tt,z,ue);ct[0]<=Ke[0]&&(Ke=ct)}return Ke[1]||(Ke=[eg(z,ue,Pe),b]),y.set(b.id,Ke),Ke}function tg(a,y,b){const[,z]=Zp(a,new Map,a.model.root,y,b);return z}function Xd(a,y,b,z){var ue;const Pe=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!Pe)return 0;if(y>Pe.right||b>Pe.bottom+8)return a.model.lastOffset;if(y<Pe.left||b<Pe.top-8)return 0;z=z!=null?z:{},z.bias=(ue=z.bias)!=null?ue:0;let Ke=tg(a,y,b);const tt=[];let ct=Ke;for(;ct;)tt.unshift(ct),ct=ct.parent;for(const bt of tt)if(bt.captureSelection){Ke=bt;break}let ht=a.model.offsetOf(Ke);if(ht<0)return-1;if(Ke.leftSibling)if(z.bias===0&&Ke.type!=="placeholder"){const bt=ou(a,Ke);bt&&y<(bt.left+bt.right)/2&&(ht=a.model.offsetOf(Ke.leftSibling))}else z.bias<0&&(ht=a.model.offsetOf(Ke.leftSibling));return ht}var ng=class extends so{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",z="auto",ue=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ue)try{const Pe=JSON.parse(ue);if(Pe&&Array.isArray(Pe)){a.snapshot();const Ke=cu(Pe),{model:tt}=a;tt.selectionIsCollapsed||tt.deleteAtoms(ll(tt.selection));const ct=tt.at(tt.position);if(ct.parent instanceof co){console.assert(ct.parentBranch!==void 0);const ht=[];let bt=[];Ke[0].type==="first"&&Ke.shift(),Ke[Ke.length-1].type==="first"&&Ke.pop();for(const wn of Ke)wn.type==="first"&&bt.length>0?(ht.push(bt),bt=[wn]):bt.push(wn);bt.length>0&&ht.push(bt);let Bt=Number(ct.parentBranch[0]),Xt=Number(ct.parentBranch[1]);const hn=ct.parent.maxColumns;for(;ct.parent.colCount-Xt<ht.length&&ct.parent.colCount<hn;)ct.parent.addColumn();ct.parent.addChildrenAfter(ht[0],ct);for(let wn=1;wn<ht.length;wn++)Xt++,Xt>=hn&&(Xt=0,ct.parent.addRowAfter(Bt),Bt++),ct.parent.setCell(Bt,Xt,ht[wn])}else ct.parent.addChildrenAfter(Ke.filter(ht=>ht.type!=="first"),ct);return tt.position=tt.offsetOf(Ke[Ke.length-1]),tt.contentDidChange({inputType:"insertFromPaste"}),Bs(a),!0}}catch(Pe){}if(ue=typeof y!="string"?y.getData("application/json"):"",ue&&window.MathfieldElement.computeEngine)try{const Pe=JSON.parse(ue);if(typeof Pe=="object"&&"latex"in Pe&&Pe.latex&&(b=Pe.latex),!b){const Ke=window.MathfieldElement.computeEngine.box(Pe);Ke&&!Ke.has("Error")&&(b=Ke.latex)}b||(z="latex")}catch(Pe){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(z="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let Pe;return[Pe,b]=Ac(b),z==="auto"&&Pe&&(z="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:z})&&(a.startRecording(),a.snapshot("paste"),Bs(a)),a.startRecording(),!0}return!1}insert(a,y,b){var z,ue;const Pe=typeof y=="string"?y:(ue=(z=window.MathfieldElement.computeEngine)==null?void 0:z.box(y).latex)!=null?ue:"";if(!b.silenceNotifications&&!a.contentWillChange({data:Pe,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:Ke}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const tt=a.silenceNotifications;a.silenceNotifications=!0;const ct={"?":"\\placeholder{}","@":"\\placeholder{}"};ct[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ll(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward"),!a.at(a.position).isLastSibling&&a.at(a.position+1).type==="placeholder"?a.deleteAtoms([a.position,a.position+1]):a.at(a.position).type==="placeholder"&&a.deleteAtoms([a.position-1,a.position]);let ht=-1;ct[0]?ct["@"]=ct[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(ht=ig(a),ht>=0&&(ct["@"]=a.getValue(ht,a.position,"latex"))),ct[0]||(ct[0]=ct["?"]);let bt=!1;const Bt=mi=>(bt=!0,ct[mi]);let[Xt,hn]=Gp(a,y,Bt,b);if(!hn)return!1;const wn=hn.length===1&&hn[0].type==="genfrac";wn&&ht>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ct["@"]=ct["?"],bt=!1,[Xt,hn]=Gp(a,y,Bt,b)):ht>=0&&a.deleteAtoms([ht,a.position]);const{parent:Sr}=a.at(a.position),ui=Sr.hasEmptyBranch("body");if(wn&&Xt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Sr instanceof Uo&&Sr.leftDelim==="("&&ui){const mi=Sr.parent,$r=Sr.parentBranch;mi.removeChild(Sr),mi.setChildren(hn,$r)}const yr=a.at(a.position);yr.parent.addChildrenAfter(hn,yr),Xt==="latex"&&typeof y=="string"&&(Sr==null?void 0:Sr.type)==="root"&&ui&&!bt&&(Sr.verbatimLatex=y),a.silenceNotifications=tt;const Zr=hn[hn.length-1];if(b.selectionMode==="placeholder"){const mi=hn.flatMap($r=>[$r,...$r.children]).find($r=>$r.type==="placeholder");if(mi){const $r=a.offsetOf(mi);a.setSelection($r-1,$r),a.announce("move")}else Zr&&(a.position=a.offsetOf(Zr))}else b.selectionMode==="before"||(b.selectionMode==="after"?Zr&&(a.position=a.offsetOf(Zr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(Zr)));return a.contentDidChange({data:Pe,inputType:"insertText"}),a.silenceNotifications=Ke,!0}};function Gp(a,y,b,z){var ue;let Pe,Ke=[];if(typeof y!="string"||z.format==="math-json"){const tt=window.MathfieldElement.computeEngine;if(!tt)return["math-json",[]];[Pe,y]=["latex",tt.box(y).latex],Ke=ul(y,{context:a.mathfield.context})}else typeof y=="string"&&z.format==="ascii-math"?([Pe,y]=Eu(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),Ke=ul(y,{context:a.mathfield.context}),Pe!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Vf(Ke)):(z.format==="auto"||(ue=z.format)!=null&&ue.startsWith("latex"))&&(z.format==="auto"&&([Pe,y]=Eu(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),z.format==="latex"&&([,y]=Ac(y)),Ke=ul(y,{context:a.mathfield.context,args:b}),z.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Vf(Ke));return du(Ke,z.style),[Pe!=null?Pe:"latex",Ke]}function rg(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Uo&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Vf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Uo&&b.leftDelim==="("){let z=0,ue=0,Pe=0;for(let Ke=0;b.body[Ke];Ke++)b.body[Ke].type==="genfrac"&&(z++,ue=Ke),Pe++;Pe===0&&z===1&&(a[y]=b.body[ue])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Vf(y.branch(b));const z=rg(y.branch(b));z&&y.setChildren(z,b)}if(y instanceof co)for(const b of y.cells)Vf(b)}}}function ig(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let z=!1;if(y.type==="mclose"){const ue=we[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ue);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),z=!0}else y.type==="leftright"&&(y=y.leftSibling,z=!0);if(z)for(;!y.isFirstSibling&&(y.isFunction||Xp(y));)y=y.leftSibling;else{const ue=[];for(;!y.isFirstSibling&&(Xp(y)||ue.length>0);)y.type==="mclose"&&ue.unshift(y.value),y.type==="mopen"&&ue.length>0&&y.value===we[ue[0]]&&ue.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function Xp(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new ng;var ag=class extends so{constructor(){super("text")}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.model.contentDidChange({inputType:"insertFromPaste"}),a.startRecording(),a.snapshot("paste"),Bs(a)),a.startRecording(),!0):!1}insert(a,y,b={}){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:z}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ue=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(ll(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const Pe=og(y,a.mathfield.context);if(du(Pe,b.style),!Pe)return!1;const Ke=a.at(a.position),tt=Ke.parent.addChildrenAfter(Pe,Ke);return a.silenceNotifications=ue,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(tt)):tt&&(a.position=a.offsetOf(tt))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=z,!0}};function og(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),ul(a,{context:y,parseMode:"text"})}new ag;function Ic(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var bs=4,Pl=20,el=2*(Pl+bs),Zf=(a,y)=>`
|
|
|
<line x1="${a+Pl}" y1="${y+Pl}"
|
|
|
x2="${a>y?a+Pl:7*Pl+10*bs}"
|
|
|
y2="${a<y?y+Pl:7*Pl+10*bs}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,Yp=(a,y)=>`
|
|
|
<line x1="${a+Pl}" y1="${y+Pl}"
|
|
|
x2="${a>y?a+Pl:7*Pl+10*bs}"
|
|
|
y2="${a<y?y+Pl:7*Pl+10*bs}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,Gf=(a,y,b)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${b})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,sg=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*Pl+10*bs+5} ${8*Pl+10*bs+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${el+bs}"
|
|
|
height="${3*el}"
|
|
|
width="${el}"
|
|
|
rx="${el/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${el+bs}"
|
|
|
y="0"
|
|
|
height="${el}"
|
|
|
width="${3*el}"
|
|
|
rx="${el/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Gf(2*(bs+el),2*bs+3*el,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Gf(2*(bs+el),2*bs+el,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Gf(2*bs+3*el,2*(bs+el),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Gf(2*bs+el,2*(bs+el),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Zf(2*bs+el,bs)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Yp(2*bs+2*el,bs)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Zf(2*bs+3*el,bs)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Zf(bs,2*bs+el)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Yp(bs,2*bs+2*el)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Zf(bs,2*bs+3*el)}
|
|
|
</g>
|
|
|
</svg>`,lg=a=>`
|
|
|
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,cg=a=>`
|
|
|
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,Qp=a=>`
|
|
|
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,ug=a=>`
|
|
|
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,dg=a=>`
|
|
|
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,fg=a=>`
|
|
|
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,hg=a=>`
|
|
|
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,pg=a=>`
|
|
|
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,_h={matrix:lg,pmatrix:cg,bmatrix:ug,Bmatrix:Qp,vmatrix:dg,Vmatrix:fg},Fh={cases:hg,rcases:pg,Bmatrix:Qp};function mg(a){var y,b;const z=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!z)return;let ue=0;z.forEach(wn=>{(!ue||wn.length>ue)&&(ue=wn.length)});let Pe=document.getElementById("mathlive-environment-popover");Pe||(Pe=Mf("mathlive-environment-popover"),jl("environment-popover"),jl("core"),Pe.setAttribute("aria-hidden","true"));let Ke;const tt=Pe.querySelector(".MLEP__environment-controls");tt?Ke=tt:(Ke=document.createElement("div"),Pe.innerHTML="",Pe.appendChild(Ke)),Ke.className="MLEP__environment-controls",Ke.style.display="flex",Ke.style.width="100%",Ke.style.height="100%",Ke.style.boxSizing="border-box",Ke.innerHTML=sg;let ct=[],ht="";const bt=a.model.parentEnvironment.environmentName;if(Sl(bt)){const wn=gg(bt);ht=_h[wn]("active");const Sr=_h,{[wn]:ui}=Sr,yr=he(Sr,[oe(wn)]);ct=Object.values(yr).map(Zr=>Zr("inactive"))}else if(Cl(bt)){const wn=yg(bt);ht=Fh[wn]("active");const Sr=Fh,{[wn]:ui}=Sr,yr=he(Sr,[oe(wn)]);ct=Object.values(yr).map(Zr=>Zr("inactive"))}else Ys(bt)&&(ht=_h.matrix("active"),ct=Object.values(Fh).map(wn=>wn("inactive")));const Bt=document.createElement("div");Bt.className="MLEP__environment-delimiter-controls",Bt.style.display="flex",Bt.style.flexDirection="column",Bt.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${ht}
|
|
|
${ct.join("")}
|
|
|
</div>`,ht&&Ke.appendChild(Bt),Ke.querySelectorAll("[data-command]").forEach(wn=>{const Sr=wn.dataset.command;let ui=Sr;try{ui=JSON.parse(Sr)}catch(yr){}wn.addEventListener("mousedown",yr=>yr.preventDefault()),ui&&wn.addEventListener("click",()=>a.executeCommand(ui))});const hn=(b=a.field)==null?void 0:b.getBoundingClientRect();hn&&(Pe.style.top=`${window.scrollY+(hn.top-Pe.clientHeight-15)}px`,Pe.style.left=`${hn.left+20}px`,Pe.classList.add("is-visible"))}function jh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function vg(){document.getElementById("mathlive-environment-popover")&&(xh("mathlive-environment-popover"),E("environment-popover"),E("core"))}function Xf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Os(b.environmentName)){const z=a.options.environmentPopoverPolicy;y=z==="auto"||z==="on"}}y?mg(a):jh()}function gg(a){return a.replace("*","")}function yg(a){return a==="dcases"?"cases":a}function Jp(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function $p(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function Kh(a,y,b,z){return b==="middle"?a-y/2:b==="start"&&z==="rtl"||b==="end"&&z==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function bg(a,y,b,z){return b==="middle"?a-y/2:b==="start"&&z==="ltr"||b==="end"&&z==="rtl"||b==="top"||b==="right"?a:a-y}function xg(a,y){var b,z,ue;const Pe=(b=Jp(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const Ke=a.getBoundingClientRect(),tt=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ct=Math.min(tt,(z=y.height)!=null?z:Ke.height),ht=Kh(y.location.y,ct,y.verticalPos,Pe);ht+ct>window.innerHeight-8&&(y.alternateLocation?(ht=Kh(y.alternateLocation.y,ct,y.verticalPos,Pe),ht+ct>window.innerHeight-8&&(ht=void 0)):ht=void 0),Number.isFinite(ht)||(ht=Math.max(8,window.innerHeight-8-ct),8+ct>window.innerHeight-8&&(a.style.bottom="8px")),ct=Math.min(ht+ct,window.innerHeight-8)-ht;const bt=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Bt=Math.min(bt,(ue=y.width)!=null?ue:Ke.width),Xt=Kh(y.location.x,Bt,y.horizontalPos,Pe);Xt+Bt>window.innerWidth-8&&(y.alternateLocation?(Xt=bg(y.alternateLocation.x,Bt,y.verticalPos,Pe),Xt+Bt>window.innerWidth-8&&(Xt=void 0)):Xt=void 0),Number.isFinite(Xt)||(Xt=Math.max(8,window.innerWidth-8-Bt),8+Bt>window.innerWidth-8&&(a.style.right="8px")),Bt=Math.min(Xt+Bt,window.innerWidth-8)-Xt,Pe==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Xt-Bt).toString()}px`:a.style.left=`${Math.ceil(Xt).toString()}px`,a.style.top=`${Math.ceil(ht).toString()}px`,ct!==Ke.height&&(a.style.height=`${Math.ceil(ct).toString()}px`),Bt!==Ke.width&&(a.style.width=`${Math.ceil(Bt).toString()}px`)}function wg(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function ad(a){return"submenu"in a}function Lc(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function zh(a){return"type"in a&&a.type==="divider"}function Hh(a){return"type"in a&&a.type==="heading"}var qp={};function Wh(a){let y=qp[a];if(!y){let b;switch(a){case"checkmark":b=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
|
|
|
</span>`;break;case"trailing-chevron":b='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":b='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(b){const z=document.createElement("template");z.innerHTML=b,qp[a]=z,y=z}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var em=80,tm=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,ad(a)?(this.type="submenu",this.submenu=new nm(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Lc(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,z;const ue=this._declaration;if(zh(ue)){this.enabled=!1,this.checked=!1;return}Hh(ue)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Lc(ue)&&(this.checked=Lc(ue)&&((y=od(ue.checked,a))!=null?y:!1)),(Lc(ue)||ad(ue))&&(this.enabled=(b=od(ue.enabled,a))!=null?b:!0,this.visible=(z=od(ue.visible,a))!=null?z:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Lc(ue)||Hh(ue)||ad(ue))&&(this.label=od(ue.label,a),this.tooltip=od(ue.tooltip,a),this.ariaLabel=od(ue.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(Wh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Lc(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=yh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("trailing-chevron"))}get element(){if(this._element)return this._element;if(zh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Lc(this._declaration)||Hh(this._declaration)||ad(this._declaration))&&this._declaration.class&&(a.className=this._declaration.class),a.setAttribute("part","menu-item"),a.setAttribute("tabindex","-1"),this.hasCheck?a.setAttribute("role","menuitemcheckbox"):a.setAttribute("role","menuitem"),this.type==="submenu"&&(a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"));const y=this.abortController.signal;return a.addEventListener("pointerenter",this,{signal:y}),a.addEventListener("pointerleave",this,{signal:y}),a.addEventListener("pointerup",this,{signal:y}),a.addEventListener("click",this,{signal:y}),this._element}dispatchSelect(){if(!Lc(this._declaration))return;const a=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(a)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(a){var y;if(!(!this.visible||!this.enabled)){if(a.type==="click"){this.rootMenu.state==="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}if(a.type==="pointerenter"){const b=a;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((y=this.parentMenu.activeMenuItem)!=null&&y.movingTowardSubmenu(b))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(a.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(a.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},em)},em)}openSubmenu(a){var y;if(this.type!=="submenu"||!this.element)return;if((y=a==null?void 0:a.withDelay)!=null&&y){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const b=this.element.getBoundingClientRect(),z=Jp(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:$p(b,"trailing",z),y:b.top-4},alternateLocation:{x:$p(b,"leading",z),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const z=a.clientX-y.clientX;if(Sg(z,y.clientY-a.clientY,b)<=.2)return!1;let Pe="right";if(this.submenu.element){const Ke=this.submenu.element.getBoundingClientRect(),tt=this.element.getBoundingClientRect();Ke.left<tt.left+tt.width/2&&(Pe="left")}return Pe==="right"?z>0:z<0}};function Sg(a,y,b){return Math.hypot(a,y)/b}function od(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var nm=class pd{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var z,ue;this.parentMenu=(z=b==null?void 0:b.parentMenu)!=null?z:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ue=b==null?void 0:b.columnCount)!=null?ue:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(z=>z.onCreate?z.onCreate(z,this):new tm(z,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,z,ue;this._menuItems.forEach(ht=>ht.updateState(y));const Pe=this.hasCheck;this.hasCheck=this._menuItems.some(ht=>ht.visible&&ht.hasCheck),this.hasCheck!==Pe&&this._menuItems.forEach(ht=>ht.updateState(y));let Ke,tt=0;for(const ht of this._menuItems)ht.type==="heading"?(Ke&&tt===0&&(Ke.visible=!1),Ke=ht,tt=0):ht.type==="divider"&&Ke?(Ke.visible=tt>0,Ke=void 0,tt=0):Ke&&ht.visible&&(tt+=1);Ke&&(Ke.visible=tt>0);let ct=!0;for(const ht of this._menuItems)ht.type==="divider"?(ht.visible=!ct,ct=!0):ht.visible&&(ct=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((z=this.activeMenuItem)!=null&&z.enabled)&&((ue=this.activeMenuItem)==null?void 0:ue.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:z}of this._menuItems)b&&z&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,z,ue,Pe;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const Ke=this.activeMenuItem;Ke.active=!1,(b=Ke.submenu)==null||b.hide()}if(!((z=y==null?void 0:y.visible)==null||z)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ue=y.element)==null||ue.focus({preventScroll:!0}):(Pe=this._element)==null||Pe.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const z=this._menuItems;for(;!b&&y<=z.length-1;){const ue=z[y];b=ue.type!=="divider"&&ue.visible&&ue.enabled,y+=1}return b?z[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,z=!1;for(;!z&&b>=0;){const ue=y[b];z=ue.type!=="divider"&&ue.visible&&ue.enabled,b-=1}return z?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),z=this._menuItems.indexOf(this.lastMenuItem);let ue=this._menuItems.indexOf(this._activeMenuItem),Pe=1;for(;ue>=b&&ue<=z;){ue+=y>0?1:-1;const Ke=this._menuItems[ue];if(!Ke)break;if(Ke.visible&&Ke.enabled){if(Pe===Math.abs(y))return this._menuItems[ue];Pe+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const z=this._menuItems.filter(ue=>ue.visible&&ue.enabled).indexOf(y);return z<0?-1:z%this.columnCount}static get collator(){return pd._collator||(pd._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),pd._collator}findMenuItem(y){var b;this.updateIfDirty();const z=this._menuItems.filter(tt=>tt.type!=="divider"&&tt.visible&&tt.enabled);if(z.length===0)return null;const ue=Math.max(...z.map(tt=>tt.label.length))-y.length;if(ue<0)return null;let Pe=null,Ke=0;for(;Ke<ue&&!Pe;)Pe=(b=z.find(tt=>pd.collator.compare(y,tt.label.substring(Ke,y.length))===0))!=null?b:null,Ke++;return Pe}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),xe()&&(this.element.popover="manual",this.element.showPopover()),y.location&&xg(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,z,ue,Pe;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),xe()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(z=(b=this.parentMenu)==null?void 0:b.element)==null||z.focus(),(Pe=(ue=this._element)==null?void 0:ue.parentNode)==null||Pe.removeChild(this._element)}set openSubmenu(y){var b,z,ue,Pe;const Ke=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((z=this.activeMenuItem.element)==null||z.setAttribute("aria-expanded",Ke.toString())),(Pe=(ue=this.activeMenuItem)==null?void 0:ue.element)==null||Pe.classList.toggle("is-submenu-open",Ke),this.isSubmenuOpen=Ke}},rm=class i0 extends nm{constructor(y,b){var z;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(z=b==null?void 0:b.host)!=null?z:null,this.isDynamic=y.some(im),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){z0(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=ku(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,z,ue;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=ku(y));let Pe=!0;const Ke=this.activeSubmenu,tt=Ke.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":tt==null||tt.select(ku(y));break;case"ArrowRight":if((tt==null?void 0:tt.type)==="submenu")tt.select(ku(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!tt)Ke.activeMenuItem=Ke.firstMenuItem;else{const ct=(b=Ke.getMenuItemColumn(tt))!=null?b:-1;if(ct>=0&&ct<((z=Ke.columnCount)!=null?z:1)-1){const ht=Ke.nextMenuItem(1);ht&&(Ke.activeMenuItem=ht)}}break;case"ArrowLeft":if(Ke===this.rootMenu)tt||(Ke.activeMenuItem=Ke.firstMenuItem);else if((tt&&(ue=Ke.getMenuItemColumn(tt))!=null?ue:-1)<=0||!tt){Ke.hide();const ht=Ke.parentMenu.activeMenuItem;if(ht){const{element:bt}=ht;bt==null||bt.focus(),bt==null||bt.classList.remove("is-submenu-open")}}else{const ht=Ke.nextMenuItem(-1);ht&&(Ke.activeMenuItem=ht)}break;case"ArrowDown":Ke.activeMenuItem=Ke.nextMenuItem(Ke.columnCount);break;case"ArrowUp":Ke.activeMenuItem=Ke.nextMenuItem(-Ke.columnCount);break;case"Home":case"PageUp":Ke.activeMenuItem=Ke.firstMenuItem;break;case"End":case"PageDown":Ke.activeMenuItem=Ke.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ct=Ke.findMenuItem(this.typingBuffer);ct&&(Ke.activeMenuItem=ct),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Cf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ct=Ke.findMenuItem(this.typingBuffer);ct&&(Ke.activeMenuItem=ct),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else Pe=!1}Pe&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return Tc.element}connectScrim(y){const b=this.scrim;b.addEventListener("pointerup",this),b.addEventListener("contextmenu",this),b.addEventListener("keydown",this),b.addEventListener("keyup",this),b.addEventListener("pointermove",this),Tc.open({root:y,onDismiss:()=>this.hide()})}disconnectScrim(){const y=this.scrim;y.removeEventListener("pointerup",this),y.removeEventListener("contextmenu",this),y.removeEventListener("keydown",this),y.removeEventListener("keyup",this),y.removeEventListener("pointermove",this),Tc.state==="open"&&Tc.scrim.close()}get rootMenu(){return this}show(y){return this._onDismiss=y==null?void 0:y.onDismiss,y!=null&&y.modifiers&&(this.modifiers=y.modifiers),this.updateState(),this.connectScrim(y==null?void 0:y.target),super.show(ne(ae({},y),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,Tc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=i0.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};rm.SUBMENU_DELAY=120;var Cg=rm;function im(a){return zh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Lc(a)||ad(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Lc(a)&&typeof a.checked=="function"?!0:ad(a)?a.submenu.some(im):!1}var Yf=class{};Yf.DELAY=300,Yf.MAX_DISTANCE=10;function Eg(a){return new Promise((y,b)=>{const z=Sf(a);z||y(!1);let ue=z;const Pe=setTimeout(()=>{Ke.abort(),y(wg(ue,z)<Yf.MAX_DISTANCE)},Yf.DELAY),Ke=new AbortController,tt=Ke.signal;for(const ct of["pointermove","pointerup","pointercancel"])window.addEventListener(ct,ht=>{if(ht.type==="pointerup"||ht.type==="pointercancel")clearTimeout(Pe),Ke.abort(),y(!1);else if(ht.type==="pointermove"){const bt=Sf(ht);bt&&(ue=bt)}},{passive:!0,signal:tt})})}function am(a,y,b){return pu(this,null,function*(){if(a.type==="contextmenu"){const z=a;if(b.show({target:y,location:Sf(z),modifiers:ku(z)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const z=a;if(z.code==="ContextMenu"||z.code==="F10"&&z.shiftKey){const ue=y==null?void 0:y.getBoundingClientRect();if(ue&&b.show({target:y,location:{x:Math.ceil(ue.left+ue.width/2),y:Math.ceil(ue.top+ue.height/2)},modifiers:ku(z)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let z=a.target;for(;z&&y!==z;)z=z.parentNode;if(!z||!b.visible)return!1;const ue=Sf(a);if(yield Eg(a))return b.state!=="closed"?!1:(b.show({target:y,location:ue}),!0)}return!1})}var om={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};Ft(Object.keys(om),"{body:auto}",{createAtom:a=>new ee(ne(ae({},a),{body:rt(a.args[0]),accentChar:om[a.command.slice(1)]}))}),Ft(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=xt(rt(a.args[0]));return new ee(ne(ae({},a),{body:rt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),Ft(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new ee(ne(ae({},a),{body:rt(a.args[0]),svgAccent:"overarc"}))}),Ft(["underarc","underparen"],"{body:auto}",{createAtom:a=>new tc(ne(ae({},a),{body:rt(a.args[0]),svgBelow:"underarc"}))}),Ft("utilde","{body:auto}",{createAtom:a=>{const y=rt(a.args[0]),b=xt(y),z="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new tc(ne(ae({},a),{body:y,svgBelow:z,boxType:tu(y)}))}}),Ft("^","{:string}",{createAtom:a=>{var y;return new _r(ne(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[a.args[0]])!=null?y:"^"}))}}),Ft("`","{:string}",{createAtom:a=>{var y;return new _r(ne(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[a.args[0]])!=null?y:"`"}))}}),Ft("'","{:string}",{createAtom:a=>{var y;return new _r(ne(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[a.args[0]])!=null?y:"'"}))}}),Ft('"',"{:string}",{createAtom:a=>{var y,b;return new _r(ne(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[a.args[0]])!=null?b:'"'+a.args[0]:'"'}))}}),Ft(".","{:string}",{createAtom:a=>{var y,b;return new _r(ne(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[a.args[0]])!=null?b:"."+a.args[0]:"."}))}}),Ft("=","{:string}",{createAtom:a=>{var y,b;return new _r(ne(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[a.args[0]])!=null?b:"="+a.args[0]:"="}))}}),Ft("~","{:string}",{createAtom:a=>{var y;return new _r(ne(ae({type:"mord"},a),{isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[a.args[0]])!=null?y:"\xB4"}))}}),Ft("c","{:string}",{createAtom:a=>{var y;return new _r(ne(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),Ft("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const z=a.args,ue={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(z[1]){const Ke=z[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const tt of Ke){const ct=tt.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ct)ue.strokeWidth=ct[1],ue.strokeStyle=ct[2],ue.strokeColor=ct[3];else{const ht=tt.match(/\s*([a-z]*)\s*=\s*"(.*)"/);ht&&(ht[1]==="mathbackground"?ue.backgroundcolor=ht[2]:ht[1]==="mathcolor"?ue.strokeColor=ht[2]:ht[1]==="padding"?ue.padding=ht[2]:ht[1]==="shadow"&&(ue.shadow=ht[2]))}}ue.strokeStyle==="dashed"?ue.svgStrokeStyle="5,5":ue.strokeStyle==="dotted"&&(ue.svgStrokeStyle="1,5")}ue.borderStyle=`${ue.strokeWidth} ${ue.strokeStyle} ${ue.strokeColor}`;const Pe={};return((b=z[0])!=null?b:"").split(/[, ]/).filter(Ke=>Ke.length>0).forEach(Ke=>{Pe[Ke.toLowerCase()]=!0}),new Id(a.command,rt(z[2]),Pe,ue)}}),Ft("cancel","{body:auto}",{createAtom:a=>{var y;return new Id(a.command,rt(a.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Ft("bcancel","{body:auto}",{createAtom:a=>{var y;return new Id(a.command,rt(a.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Ft("xcancel","{body:auto}",{createAtom:a=>{var y;return new Id(a.command,rt(a.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),Ft(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new tc(ne(ae({},a),{body:rt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),Ft("overbrace","{:auto}",{createAtom:a=>new tc(ne(ae({},a),{body:rt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),Ft(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new tc(ne(ae({},a),{body:rt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),Ft(["underbrace"],"{:auto}",{createAtom:a=>new tc(ne(ae({},a),{body:rt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),Ft(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:a=>{var y,b,z,ue,Pe;return new tc(ne(ae({},a),{svgBody:a.command.slice(1),above:((b=rt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:rt((z=a.args)==null?void 0:z[1]),below:(Pe=rt((ue=a.args)==null?void 0:ue[0]))!=null?Pe:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),Ft(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:a=>new Mu(a.command.slice(1),ne(ae({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),Ft(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Mu({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],ne(ae({},a),{limits:"over-under",variant:"main"}))}),Ft(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Mu(a.command.slice(1),ne(ae({},a),{limits:"over-under",variant:"main"}))}),Ft(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Mu(a.command.slice(1),ne(ae({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),Ft(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),z=b.caret;b.caret=void 0;const ue=new hi("\xB0",{style:ne(ae({},a.style),{variant:"normal",variantStyle:"up"})});return new hi([b,ue],{type:"inner",isSelected:a.isSelected,caret:z})}}),Ft("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new sp(ne(ae({},a),{body:rt(a.args[1]),index:a.args[0]?rt(a.args[0]):void 0}))}),Ft(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=ae({},a),b=a.command,z=a.args;switch(b){case"\\dfrac":case"\\frac":case"\\tfrac":y.hasBarLine=!0;break;case"\\atopfrac":y.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":y.hasBarLine=!1,y.leftDelim="(",y.rightDelim=")";break;case"\\cfrac":y.hasBarLine=!0,y.continuousFraction=!0;break;default:}switch(b){case"\\dfrac":case"\\dbinom":y.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":y.mathstyleName="textstyle";break;default:}return new Qu(z[0]?rt(z[0]):[new Wa],z[1]?rt(z[1]):[new Wa],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),z=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(z)?`${a.command}${b}${z}`:ys(a.command,b,z)}}),Ft(["brace","brack"],"",{infix:!0,createAtom:a=>new Qu(rt(a.args[0]),rt(a.args[1]),ne(ae({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>Eo([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Ft(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const z=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Qu(rt(z[0]),rt(z[1]),ne(ae({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>Eo([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),Ft(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const z=a.args;return new Qu(rt(z[0]),rt(z[1]),ne(ae({},a),{leftDelim:(y=z[2])!=null?y:".",rightDelim:(b=z[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),Ft("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Qu(rt(a.args[0]),rt(a.args[1]),ne(ae({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),Ft(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new hh({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[a.command.slice(1)],ne(ae({},a),{limits:"auto",variant:"main"}))}),Ft("smallint","",{ifMode:"math",createAtom:a=>new Mu("\u222B",ne(ae({},a),{limits:"adjacent",variant:"main"}))});var sm={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};Ft(Object.keys(sm),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=sm[y.slice(1)];return new hh(b,ne(ae({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),Ft(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Mu({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],ne(ae({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),Ft("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new ip(ne(ae({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),Ft("the","{:value}",{createAtom:a=>new _r(ne(ae({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const z=new Po({parent:y},a.style);let ue="";a.isSelected&&(ue+=" ML__selected");const Pe=z.evaluate(a.args[0]);return new hi(((b=Xs(Pe))!=null?b:"").split("").map(Ke=>new hi(Ke,{type:"ord",classes:ue,mode:a.mode,isSelected:a.isSelected,style:ae({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ue}).wrap(z)},serialize:a=>{var y;return`\\the${(y=Xs(a.args[0]))!=null?y:"\\relax"}`}}),Ft("mathtip","{:auto}{:math}",{createAtom:a=>new ph(ne(ae({},a),{body:rt(a.args[0]),tooltip:rt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${_r.serialize([a.tooltip],ne(ae({},y),{defaultMode:"math"}))}}`}),Ft("texttip","{:auto}{:text}",{createAtom:a=>new ph(ne(ae({},a),{body:rt(a.args[0]),tooltip:rt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${_r.serialize([a.tooltip],ne(ae({},y),{defaultMode:"text"}))}}`}),Ft("error","{:math}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),Ft("ensuremath","{:math}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(ne(ae({},y),{defaultMode:"math"}))}}`}),Ft("color","{:value}",{applyStyle:(a,y,b)=>{var z,ue;return{verbatimColor:(z=Xs(y[0]))!=null?z:void 0,color:b.toColor((ue=y[0])!=null?ue:{string:"red"})}}}),Ft("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var z,ue;return{verbatimColor:(z=Xs(y[0]))!=null?z:void 0,color:b.toColor((ue=y[0])!=null?ue:{string:"red"})}}}),Ft("boxed","{content:math}",{createAtom:a=>new Ws(ne(ae({},a),{body:rt(a.args[0]),framecolor:{string:"black"}}))}),Ft("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var z,ue;return{verbatimBackgroundColor:(z=Xs(y[0]))!=null?z:void 0,backgroundColor:b.toBackgroundColor((ue=y[0])!=null?ue:{string:"yellow"})}}}),Ft("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Ws(ne(ae({},a),{body:rt(a.args[2]),framecolor:(y=a.args[0])!=null?y:{string:"blue"},backgroundcolor:(b=a.args[1])!=null?b:{string:"yellow"}}))},serialize:(a,y)=>{var b,z;return y.skipStyles?a.bodyToLatex(ne(ae({},y),{defaultMode:"text"})):ys(a.command,(b=Xs(a.framecolor))!=null?b:"",(z=Xs(a.backgroundcolor))!=null?z:"",a.bodyToLatex(ne(ae({},y),{defaultMode:"text"})))}}),Ft("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],z=rt(a.args[1]);return b?new Ws(ne(ae({},a),{body:z,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Ws(ne(ae({},a),{body:z}))},serialize:(a,y)=>{var b,z;if(y.skipStyles)return a.bodyToLatex(y);let ue=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const Pe=[];a.padding&&Pe.push((b=Xs(a.padding))!=null?b:""),a.border&&Pe.push(`border: ${a.border}`),a.backgroundcolor&&Pe.push((z=Xs(a.backgroundcolor))!=null?z:""),ue+=`[${Pe.join(",")}]`}return ys(ue,a.bodyToLatex(y))}}),Ft(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[0])})),render:(a,y)=>{const b=new Po({parent:y,mathstyle:a.command.slice(1)},a.style),z=_r.createBox(b,a.body,{type:"lift"});return a.caret&&(z.caret=a.caret),a.bind(y,z)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${Eo([a.command,a.bodyToLatex(y)])}}`}),Ft(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:a=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[a]})}),Ft("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),Ft("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),Ft("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),Ft("selectfont","",{ifMode:"text",applyStyle:()=>({})}),Ft("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),Ft(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),Ft("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),Ft("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Ft("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Ft("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Ft("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Ft("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Ft("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),Ft("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),Ft("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),Ft("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),Ft("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),Ft("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),Ft("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),Ft("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),Ft("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),Ft("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),Ft("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),Ft("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),Ft("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),Ft("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),Ft("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),Ft("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),Ft("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),Ft("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),Ft("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),Ft("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),Ft("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),Ft(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),Ft(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),Ft("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),Ft("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),Ft("mbox","{:text}",{ifMode:"math",createAtom:a=>new _r(ne(ae({},a),{type:"mord",body:rt(a.args[0]),mode:"math"})),serialize:(a,y)=>ys("\\mbox",a.bodyToLatex(ne(ae({},y),{defaultMode:"text"})))}),Ft("text","{:text}",{ifMode:"math",applyMode:"text"}),Ft(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[1])})),serialize:(a,y)=>!a.args[0]||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`,render:(a,y)=>{var b;return a.createBox(y,{classes:(b=a.args[0])!=null?b:""})}}),Ft(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const z=a.createBox(y);return z.cssId=(b=a.args[0])!=null?b:"",z}}),Ft("htmlData","{data:string}{content:auto}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`\\htmlData{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const z=a.createBox(y);return z.htmlData=(b=a.args[0])!=null?b:"",z}}),Ft(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const z=a.createBox(y);return z.htmlStyle=(b=a.args[0])!=null?b:"",z}}),Ft("em","{:rest}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[0])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{\\em ${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})}),Ft("emph","{:auto}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var lm={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};Ft(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new ap(ne(ae({},a),{delim:(y=a.args[0])!=null?y:".",size:lm[a.command].size,delimType:lm[a.command].mclass}))}}),Ft(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Nd(ne(ae({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Ft(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Nd(ne(ae({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),Ft("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new _r(a),render:(a,y)=>{let b=0;const z=y.mathstyle.id;(z===wu||z===Sc)&&(b=1),(z===zc||z===bl)&&(b=2),(z===Fl||z===sl)&&(b=3);const ue=rt(a.args[b]);return _r.createBox(y,ue)},serialize:(a,y)=>`\\mathchoice{${_r.serialize(a.args[0],y)}}{${_r.serialize(a.args[1],y)}}{${_r.serialize(a.args[2],y)}}{${_r.serialize(a.args[3],y)}}`}),Ft("mathop","{:auto}",{createAtom:a=>new _r(ne(ae({},a),{type:"mop",body:rt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let z=_r.createBox(y,a.body);if(a.superscript||a.subscript){const ue=(b=a.subsupPlacement)!=null?b:"auto";z=ue==="over-under"||ue==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:z}):a.attachSupsub(y,{base:z})}return new hi(a.bind(y,z),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[ys(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),Eo(b)}}),Ft(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new _r(ne(ae({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:rt(a.args[0])}))}),Ft(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=rt(a.args[0]).map(b=>{var z;return b.type!=="first"&&(b.type="mord",b.value=(z={"\u2217":"*","\u2212":"-"}[b.value])!=null?z:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new _r(ne(ae({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let z=_r.createBox(y,a.body);if(a.superscript||a.subscript){const ue=(b=a.subsupPlacement)!=null?b:"auto";z=ue==="over-under"||ue==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:z}):a.attachSupsub(y,{base:z})}return a.caret&&(z.caret=a.caret),new hi(a.bind(y,z),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[ys(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),Eo(b)}}),Ft(["char","unicode"],"{charcode:value}",{createAtom:a=>new _r(ne(ae({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Xs((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),Ft("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new _r(a),render:(a,y)=>{var b,z,ue;const Pe=new Po({parent:y,mathstyle:"textstyle"},a.style),Ke=Pe.toEm((b=a.args[0])!=null?b:{dimension:0}),tt=Pe.toEm((z=a.args[1])!=null?z:{dimension:10}),ct=Pe.toEm((ue=a.args[2])!=null?ue:{dimension:10}),ht=new hi(null,{classes:"rule",type:"ord"});return ht.width=tt,ht.height=ct+Ke,ht.depth=-Ke,ht.setStyle("border-right-width",tt,"em"),ht.setStyle("border-top-width",ct,"em"),ht.setStyle("border-color",a.style.color),ht.setStyle("vertical-align",Ke,"em"),a.isSelected&&ht.setStyle("opacity","50%"),a.bind(Pe,ht),a.caret&&(ht.caret=a.caret),ht.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Xs(a.args[0])}]`:""}{${Xs(a.args[1])}}{${Xs(a.args[2])}}`}),Ft(["overline","underline"],"{:auto}",{createAtom:a=>new _r(ne(ae({},a),{body:rt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),z=new Po({parent:y,mathstyle:"cramp"},a.style),ue=_r.createBox(z,a.body);if(!ue)return null;const Pe=z.metrics.defaultRuleThickness/z.scalingFactor,Ke=new hi(null,{classes:b+"-line"});Ke.height=Pe,Ke.maxFontSize=Pe*1.125*z.scalingFactor;let tt;return b==="overline"?tt=new us({shift:0,children:[{box:ue},3*Pe,{box:Ke},Pe]}):tt=new us({top:ue.height,children:[Pe,{box:Ke},3*Pe,{box:ue}]}),a.caret&&(tt.caret=a.caret),new hi(tt,{classes:b,type:"ignore"})}}),Ft("overset","{:auto}{base:auto}",{createAtom:a=>{const y=rt(a.args[1]);return new tc(ne(ae({},a),{above:rt(a.args[0]),body:y,skipBoundary:!1,boxType:tu(y)}))},serialize:(a,y)=>ys(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Ft("underset","{:auto}{base:auto}",{createAtom:a=>{const y=rt(a.args[1]);return new tc(ne(ae({},a),{below:rt(a.args[0]),body:y,skipBoundary:!1,boxType:tu(y)}))},serialize:(a,y)=>ys(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Ft("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=rt(a.args[2]);return new tc(ne(ae({},a),{above:rt(a.args[0]),below:rt(a.args[1]),body:y,skipBoundary:!1,boxType:tu(y)}))},serialize:(a,y)=>ys(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),Ft(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new tc(ne(ae({},a),{body:rt(a.args[2]),above:rt(a.args[1]),below:rt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>ys(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),Ft("smash","[:string]{:auto}",{createAtom:a=>{var y,b,z,ue;return new Pd(ne(ae({},a),{body:rt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ue=(z=a.args[0])==null?void 0:z.includes("b"))!=null?ue:!0}))}}),Ft(["vphantom"],"{:auto}",{createAtom:a=>new Pd(ne(ae({},a),{body:rt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),Ft(["hphantom"],"{:auto}",{createAtom:a=>new Pd(ne(ae({},a),{body:rt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),Ft(["phantom"],"{:auto}",{createAtom:a=>new Pd(ne(ae({},a),{body:rt(a.args[0]),isInvisible:!0}))}),Ft("not","{:math}",{createAtom:a=>{const y=rt(a.args[0]);return y.length===0?new _r(ne(ae({},a),{type:"mrel",value:"\uE020"})):new _r(ne(ae({},a),{body:[new Au(ne(ae({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],z=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?z?`\\not{${_r.serialize(b.group,y)}}`:`\\not${_r.serialize(b,y)}`:z?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const z=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":tu(rt(a.args[0])),ue=_r.createBox(y,a.body,{type:z});return a.caret&&(ue.caret=a.caret),a.bind(y,ue)}}),Ft(["ne","neq"],"",{createAtom:a=>new _r(ne(ae({},a),{type:"mrel",body:[new Au(ne(ae({},a),{body:"\uE020",align:"right",boxType:"rel"})),new _r(ne(ae({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),Ft("rlap","{:auto}",{createAtom:a=>new Au(ne(ae({},a),{body:rt(a.args[0]),align:"right"}))}),Ft("llap","{:auto}",{createAtom:a=>new Au(ne(ae({},a),{body:rt(a.args[0]),align:"left"}))}),Ft("mathrlap","{:math}",{createAtom:a=>new Au(ne(ae({},a),{body:rt(a.args[0]),align:"left"}))}),Ft("mathllap","{:math}",{createAtom:a=>new Au(ne(ae({},a),{body:rt(a.args[0]),align:"left"}))}),Ft("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Ws(ne(ae({},a),{body:rt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return ys("\\raisebox",(b=Xs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Ft("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Ws(ne(ae({},a),{body:rt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return ys("\\raise",(b=Xs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),Ft("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Ws(ne(ae({},a),{body:rt(a.args[1]),padding:{dimension:0},offset:(y=ql(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,z;return ys("\\lower",(z=Xs(ql((b=a.offset)!=null?b:{dimension:0},-1)))!=null?z:"0pt",a.bodyToLatex(y))}}),Ne("0123456789/@.?!"),ze(65,90),ze(97,122),Ne([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Ne([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Ne([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Ne([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Ne([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Ne([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Ne([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Ne([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Ne([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Ne([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Ne([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Ne([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Ne([["\\wp",8472],["\\aleph",8501]]),Ne([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Ne([["\\ ",160],["~",160]],"space"),Ft(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Nd(a)}),Ft("space","",{createAtom:a=>new Nd(a)}),Ne([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Ne([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Ne([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var cm="<mo>⁡</mo>",Qf="<mo>⁢</mo>";function Jf(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function hs(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ag(a,y,b){var z,ue,Pe,Ke,tt,ct,ht,bt,Bt,Xt,hn;let wn=!1;y=y!=null?y:a.atoms.length;let Sr="",ui="",yr=a.atoms[a.index];const Zr=(ue=(z=yr.style)==null?void 0:z.variant)!=null?ue:"",mi=(Ke=(Pe=yr.style)==null?void 0:Pe.variantStyle)!=null?Ke:"";let $r="";if(Zr||mi){const _a=dt(yr.value,(tt=yr.style)==null?void 0:tt.variant,(ct=yr.style)==null?void 0:ct.variantStyle);if(_a!==yr.value)return a.index+=1,Sr=`<mi${hs(yr.id,b)}>${_a}</mi>`,Zc(Sr,a,b)||(a.mathML+=Sr,a.lastType="mi"),!0;$r=(ht={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[mi+Zr])!=null?ht:"",$r=` mathvariant="${$r}"`}const da={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(yr.command==="!")return a.index+=1,Sr="<mo>!</mo>",Zc(Sr,a,b)||(a.mathML+=Sr,a.lastType="mo"),!0;if(da[yr.command]){a.index+=1;let _a=`<mi${hs(yr.id,b)}${$r}>${da[yr.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(_a=Qf+_a),Zc(_a,a,b)||(a.mathML+=_a,a.lastType="mi"),!0}if(yr.command==="\\operatorname")ui=sd(yr.body),a.index+=1;else if(Zr||mi)for(;a.index<y&&(yr.type==="mord"||yr.type==="macro")&&!yr.isDigit()&&Zr===((Bt=(bt=yr.style)==null?void 0:bt.variant)!=null?Bt:"")&&mi===((hn=(Xt=yr.style)==null?void 0:Xt.variantStyle)!=null?hn:"");)ui+=sd([yr]),a.index+=1,yr=a.atoms[a.index];else(yr.type==="mord"||yr.type==="macro")&&!yr.isDigit()&&(ui+=sd([yr]),a.index+=1);if(ui.length>0){wn=!0,Sr=`<mi${$r}>${ui}</mi>`;const _a=a.lastType;Sr.endsWith(">f</mi>")||Sr.endsWith(">g</mi>")?(Sr+=cm,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Sr)?"mo":"mi",Zc(Sr,a,b)||((_a==="mi"||_a==="mn"||_a==="mtext"||_a==="fence")&&(Sr=Qf+Sr),a.mathML+=Sr)}return wn}function Mg(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kg(a){let y=-1,b=a.index,z=!1,ue=!1;for(;b<a.atoms.length&&!z&&!ue;){const Pe=a.atoms[b];z=!Pe.isDigit(),ue=!z&&Pe.superscript!==void 0,b++}return ue&&(y=b-1),y}function Zc(a,y,b){var z;let ue=y.atoms[y.index-1];if(!ue)return!1;if(!ue.superscript&&!ue.subscript)if(((z=y.atoms[y.index])==null?void 0:z.type)==="subsup")ue=y.atoms[y.index],y.index+=1;else return!1;const Pe=y.lastType;y.lastType="";const Ke=Vo(ue.superscript,b);y.lastType="";const tt=Vo(ue.subscript,b);if(y.lastType=Pe,!Ke&&!tt)return!1;let ct="";return Ke&&tt?ct=`<msubsup>${a}${tt}${Ke}</msubsup>`:Ke?ct=`<msup>${a}${Ke}</msup>`:tt&&(ct=`<msub>${a}${tt}</msub>`),y.mathML+=ct,y.lastType="",!0}function Tg(a,y,b){y=y!=null?y:a.atoms.length;const z=a.index;let ue="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ue+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ue.length>0?(a.mathML+=`<mtext ${hs(a.atoms[z].id,b)}>${ue}</mtext>`,a.lastType="mtext",!0):!1}function Og(a,y,b){y=y!=null?y:a.atoms.length;const z=a.index;let ue="",Pe=kg(a);for(Pe>=0&&Pe<y&&(y=Pe);a.index<y&&a.atoms[a.index].isDigit();)ue+=a.atoms[a.index].asDigit(),a.index+=1;return ue.length<=0?!1:(ue="<mn"+hs(a.atoms[z].id,b)+">"+ue+"</mn>",Pe<0&&Mg(a)&&(Pe=a.index,a.index+=1),Zc(ue,a,b)||(a.mathML+=ue,a.lastType="mn"),!0)}function Dg(a,y,b){let z=!1;y=y!=null?y:a.atoms.length;let ue="",Pe="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let Ke=!1,tt=0;const ct=a.index;let ht=-1,bt=ct+1;for(;bt<y&&!Ke;)a.atoms[bt].type==="mopen"?tt+=1:a.atoms[bt].type==="mclose"&&(tt-=1),tt===-1&&(Ke=!0,ht=bt),bt+=1;Ke&&(ue="<mrow>",ue+=Bu(a.atoms[ct],b),ue+=Vo(a.atoms,b,ct+1,ht),ue+=Bu(a.atoms[ht],b),ue+="</mrow>",a.index=ht+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Qf),Zc(ue,a,b)&&(z=!0,a.lastType="",ue=""),Pe="fence")}return ue.length>0&&(z=!0,a.mathML+=ue,a.lastType=Pe),z}function Ig(a,y,b){let z=!1;y=y!=null?y:a.atoms.length;let ue="",Pe="";const Ke=a.atoms[a.index];if(!Ke)return!1;const tt={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(tt[Ke.command]){a.index+=1;const ct=`<mo${hs(Ke.id,b)}>${tt[Ke.command]}</mo>`;return Zc(ct,a,b)||(a.mathML+=ct,a.lastType="mo"),!0}if(a.index<y&&(Ke.type==="mbin"||Ke.type==="mrel"))ue+=Uh(a.atoms[a.index],b),a.index+=1,Pe="mo";else if(a.index<y&&(Ke.type==="mop"||Ke.type==="operator"||Ke.type==="extensible-symbol")){if(Ke.subsupPlacement==="over-under"&&(Ke.superscript||Ke.subscript)){const ct=Bu(Ke,b);return Ke.superscript&&Ke.subscript?(ue+="<munderover>"+ct,ue+=Vo(Ke.subscript,b),ue+=Vo(Ke.superscript,b),ue+="</munderover>"):Ke.superscript?(ue+="<mover>"+ct,ue+=Vo(Ke.superscript,b),ue+="</mover>"):Ke.subscript&&(ue+="<munder>"+ct,ue+=Vo(Ke.subscript,b),ue+="</munder>"),a.mathML+=ue,a.lastType="mo",a.index+=1,!0}{const ct=a.atoms[a.index],ht=ct.value==="\\operatorname",bt=ht?'<mi class="MathML-Unit"'+hs(ct.id,b)+">"+sd(ct.value)+"</mi>":Bu(ct,b);ue+=bt,!ht&&!/^<mo>(.*)<\/mo>$/.test(bt)?(ue+=cm,Pe="applyfunction"):Pe=ht?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ue)&&(ue=Qf+ue),a.index+=1}return ue.length>0&&(z=!0,Zc(ue,a,b)||(a.mathML+=ue,a.lastType=Pe)),z}function Vo(a,y,b,z){y!=null||(y={});const ue={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ue.mathML=a.toString();else if(typeof a=="string")ue.mathML=a;else if(a instanceof _r)ue.mathML=Uh(a,y);else if(Array.isArray(a)){ue.atoms=a;let Pe=0;for(z=z||(a?a.length:0);ue.index<z;)if(Tg(ue,z,y)||Og(ue,z,y)||Ag(ue,z,y)||Ig(ue,z,y)||Dg(ue,z,y))Pe+=1;else if(ue.index<z){let Ke=Uh(ue.atoms[ue.index],y);ue.lastType==="mn"&&Ke.length>0&&ue.atoms[ue.index].type==="genfrac"&&(Ke="<mo>⁤</mo>"+Ke),ue.atoms[ue.index].type==="genfrac"?ue.lastType="mfrac":ue.lastType="",ue.index+=1,Zc(Ke,ue,y)?Pe+=1:Ke.length>0&&(ue.mathML+=Ke,Pe+=1)}Pe>1&&(ue.mathML="<mrow>"+ue.mathML+"</mrow>")}return ue.mathML}function Bu(a,y){let b="";const z=sd(a.value);return z&&(b="<mo"+hs(a.id,y)+">"+z+"</mo>"),b}function sd(a){if(!a)return"";if(typeof a=="string")return Jf(a);if(!Array.isArray(a)&&typeof a.body=="string")return Jf(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Jf(y)}function Uh(a,y){var b,z,ue,Pe,Ke,tt,ct,ht,bt,Bt,Xt,hn,wn,Sr,ui,yr,Zr,mi,$r,da,_a,Ta;if(a.mode==="text")return`<mi${hs(a.id,y)}>${a.value}</mi>`;const Ro={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},is={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Ei="",Yl="",Nc,rc,fl,Ql,Nl,ps;const{command:Vs}=a;if(a.command==="\\error")return`<merror${hs(a.id,y)}>${Vo(a.body,y)}</merror>`;const hl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Rc={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":Ei=Vo(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Ei+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Ei+="<mo>"+(hl[a.leftDelim]||a.leftDelim)+"</mo>")),Ei+="<mtable",a.colFormat){for(Ei+=' columnalign="',fl=0;fl<a.colFormat.length;fl++)a.colFormat[fl].align&&(Ei+={l:"left",c:"center",r:"right"}[a.colFormat[fl].align]+" ");Ei+='"'}for(Ei+=">",rc=0;rc<a.array.length;rc++){for(Ei+="<mtr>",Nc=0;Nc<a.array[rc].length;Nc++)Ei+="<mtd>"+Vo(a.array[rc][Nc],y)+"</mtd>";Ei+="</mtr>"}Ei+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Ei+="<mo>"+(hl[a.leftDelim]||a.rightDelim)+"</mo>"),Ei+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Ei+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Ei+="<mo"+hs(a.id,y)+">"+(hl[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Ei+="<mfrac>",Ei+=Vo(a.above,y)||"<mi> </mi>",Ei+=Vo(a.below,y)||"<mi> </mi>",Ei+="</mfrac>"):(Ei+="<mtable"+hs(a.id,y)+">",Ei+="<mtr>"+Vo(a.above,y)+"</mtr>",Ei+="<mtr>"+Vo(a.below,y)+"</mtr>",Ei+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Ei+="<mo"+hs(a.id,y)+">"+(hl[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Ei+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Ei+="<msqrt"+hs(a.id,y)+">",Ei+=Vo(a.body,y),Ei+="</msqrt>"):(Ei+="<mroot"+hs(a.id,y)+">",Ei+=Vo(a.body,y),Ei+=Vo(a.above,y),Ei+="</mroot>");break;case"leftright":const Bc=a,_c=Bc.leftDelim;Ei="<mrow>",_c&&_c!=="."&&(Ei+=`<mo${hs(a.id,y)}>${(b=hl[_c])!=null?b:_c}</mo>`),a.body&&(Ei+=Vo(a.body,y));const Fc=Bc.matchingRightDelim();Fc&&Fc!=="."&&(Ei+=`<mo${hs(a.id,y)}>${(z=hl[Fc])!=null?z:Fc}</mo>`),Ei+="</mrow>";break;case"sizeddelim":case"delim":Ei+=`<mo${hs(a.id,y)}>${hl[a.value]||a.value}</mo>`;break;case"accent":Ei+='<mover accent="true"'+hs(a.id,y)+">",Ei+=Vo(a.body,y),Ei+="<mo>"+(Rc[Vs]||a.accent)+"</mo>",Ei+="</mover>";break;case"line":case"overlap":break;case"overunder":Nl=a.above,Ql=a.below,(a.svgAbove||Nl)&&(a.svgBelow||Ql)?ps=a.body:Nl&&Nl.length>0?(ps=a.body,(Pe=(ue=a.body)==null?void 0:ue[0])!=null&&Pe.below?(Ql=a.body[0].below,ps=a.body[0].body):((tt=(Ke=a.body)==null?void 0:Ke[0])==null?void 0:tt.type)==="first"&&((ht=(ct=a.body)==null?void 0:ct[1])!=null&&ht.below)&&(Ql=a.body[1].below,ps=a.body[1].body)):Ql&&Ql.length>0&&(ps=a.body,(Bt=(bt=a.body)==null?void 0:bt[0])!=null&&Bt.above?(Nl=a.body[0].above,ps=a.body[0].body):((hn=(Xt=a.body)==null?void 0:Xt[0])==null?void 0:hn.type)==="first"&&((Sr=(wn=a.body)==null?void 0:wn[1])!=null&&Sr.above)&&(Nl=a.body[1].overscript,ps=a.body[1].body)),(a.svgAbove||Nl)&&(a.svgBelow||Ql)?(Ei+=`<munderover ${hs(a.id,y)}>`,Ei+=(ui=Ro[a.svgBody])!=null?ui:Vo(ps,y),Ei+=(yr=Ro[a.svgBelow])!=null?yr:Vo(Ql,y),Ei+=(Zr=Ro[a.svgAbove])!=null?Zr:Vo(Nl,y),Ei+="</munderover>"):a.svgAbove||Nl?(Ei+=`<mover ${hs(a.id,y)}>`+((mi=Ro[a.svgBody])!=null?mi:Vo(ps,y)),Ei+=($r=Ro[a.svgAbove])!=null?$r:Vo(Nl,y),Ei+="</mover>"):(a.svgBelow||Ql)&&(Ei+=`<munder ${hs(a.id,y)}>`+((da=Ro[a.svgBody])!=null?da:Vo(ps,y)),Ei+=(_a=Ro[a.svgBelow])!=null?_a:Vo(Ql,y),Ei+="</munder>");break;case"placeholder":Ei+="?";break;case"mord":{Ei=typeof a.value=="string"?a.value:Vs,Vs==="\\char"?Ei="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Ei.length>0&&Ei.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Ei="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Ei=a.value.charAt(0):(console.error("Did not expect this"),Ei=""));const vc=/\d/.test(Ei)?"mn":"mi";Ei=`<${vc}${hs(a.id,y)}>${Jf(Ei)}</${vc}>`;break}case"mbin":case"mrel":case"minner":Ei=Bu(a,y);break;case"mpunct":Ei='<mo separator="true"'+hs(a.id,y)+">"+Vs+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Ei="<mo"+hs(a.id,y)+">",Ei+=Vs==="\\operatorname"?a.body:Vs||a.body,Ei+="</mo>");break;case"box":Ei='<menclose notation="box"',a.backgroundcolor&&(Ei+=' mathbackground="'+a.backgroundcolor+'"'),Ei+=hs(a.id,y)+">"+Vo(a.body,y)+"</menclose>";break;case"spacing":Ei+='<mspace width="'+((Ta=is[Vs])!=null?Ta:0)+'em"/>';break;case"enclose":Ei='<menclose notation="';for(const vc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,vc)&&a.notation[vc]&&(Ei+=Yl+vc,Yl=" ");Ei+=hs(a.id,y)+'">'+Vo(a.body,y)+"</menclose>";break;case"prompt":Ei='<menclose notation="roundexbox""">'+Vo(a.body,y)+"</menclose>";break;case"space":Ei+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Ei+=Bu(a,y);break;case"mclose":Ei+=Bu(a,y);break;case"macro":{const vc=a.command+sd(a.macroArgs);vc&&(Ei+=`<mo ${hs(a.id,y)}>${vc}</mo>`)}break;case"latexgroup":Ei+=Vo(a.body,y);break;case"latex":Ei+="<mtext"+hs(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Ei+=Vo(a.body,y);break;case"text":Ei+=`<mtext ${hs(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${hs(a.id,y)} displaystyle="true">${Vo(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${hs(a.id,y)} displaystyle="false">${Vo(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Ei}var ld={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},Vh={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Lg(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Yd(a){let y=0;if(re(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Pg(a){if(re(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function um(a){let y="";if(re(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Ng(a){return a?a.map(y=>y.value).join(""):""}function Lo(a,y){var b,z,ue,Pe,Ke;function tt(bt){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(bt)?` <say-as interpret-as="character">${bt}</say-as>`:/[A-Z]/.test(bt)?`capital <say-as interpret-as="character">${bt.toLowerCase()}</say-as>`:bt:/[a-z]/.test(bt)?" '"+bt.toUpperCase()+"'":/[A-Z]/.test(bt)?" 'capital "+bt.toUpperCase()+"'":bt}function ct(bt){return"<emphasis>"+bt+"</emphasis>"}if(!y)return"";let ht="";if(re(y)){let bt=!1,Bt=!1;for(let Xt=0;Xt<y.length;Xt++)y[Xt].type!=="first"&&(y[Xt].mode!=="text"&&(Bt=!1),Xt<y.length-2&&y[Xt].type==="mopen"&&y[Xt+2].type==="mclose"&&y[Xt+1].type==="mord"?(ht+=" of ",ht+=ct(Lo(a,y[Xt+1])),Xt+=2):y[Xt].mode==="text"?Bt?ht+=(b=y[Xt].value)!=null?b:" ":(Bt=!0,ht+=Lo("text",y[Xt])):y[Xt].isDigit()?bt?ht+=y[Xt].asDigit():(bt=!0,ht+=Lo(a,y[Xt])):(bt=!1,ht+=Lo(a,y[Xt])))}else if(y.mode==="text")y.id&&a==="math"&&(ht+='<mark name="'+y.id.toString()+'"/>'),ht+=y.value;else{y.id&&a==="math"&&(ht+='<mark name="'+y.id.toString()+'"/>');let bt="",Bt="",Xt="",hn=!1;const{command:wn}=y;switch(wn){case"\\vec":return"vector "+Lo(a,y.body);case"\\acute":return Lo(a,y.body)+" acute";case"\\grave":return Lo(a,y.body)+" grave";case"\\dot":return"dot over"+Lo(a,y.body);case"\\ddot":return"double dot over"+Lo(a,y.body);case"\\mathring":return"ring over"+Lo(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Lo(a,y.body);case"\\bar":return Lo(a,y.body)+" bar";case"\\breve":return Lo(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Lo(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Lo(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Lo(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Lo(a,y.body)}switch(y.type){case"prompt":const Sr=y.body.length>1?'start input . <break time="500ms"/> '+Lo(a,y.body)+'. <break time="500ms"/> end input':"blank";ht+=' <break time="300ms"/> '+Sr+'. <break time="700ms"/>'+((z=y.correctness)!=null?z:"")+' . <break time="700ms"/> ';break;case"array":const ui=y.array,yr=y.environmentName;if(Object.keys(Vh).includes(yr)){ht+=` begin ${Vh[yr]} `;for(let $r=0;$r<ui.length;$r++){$r>0&&(ht+=","),ht+=` row ${$r+1} `;for(let da=0;da<ui[$r].length;da++)da>0&&(ht+=","),ht+=` column ${da+1}: `,ht+=Lo("math",ui[$r][da])}ht+=` end ${Vh[yr]} `}break;case"group":wn==="\\ne"?ht+=" not equal ":(wn==="\\not"&&(ht+=" not "),ht+=Lo("math",y.body));break;case"root":ht+=Lo("math",y.body);break;case"genfrac":if(bt=Lo("math",y.above),Bt=Lo("math",y.below),Yd(y.above)&&Yd(y.below)){const da={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[um(y.above)+"/"+um(y.below)];da?ht=da:ht+=bt+" over "+Bt}else ht+=' the fraction <break time="150ms"/>'+bt+' over <break time="150ms"/>'+Bt+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Xt=Lo("math",y.body),y.hasEmptyBranch("above"))ht+=Yd(y.body)?" the square root of "+Xt+" , ":' the square root of <break time="200ms"/>'+Xt+'. <break time="200ms"/> End square root';else{let $r=Lo("math",y.above);$r=$r.trim();const da=$r.replace(/<mark([^/]*)\/>/g,"");da==="3"?ht+=' the cube root of <break time="200ms"/>'+Xt+'. <break time="200ms"/> End cube root':da==="n"?ht+=' the nth root of <break time="200ms"/>'+Xt+'. <break time="200ms"/> End root':ht+=' the root with index: <break time="200ms"/>'+$r+', of <break time="200ms"/>'+Xt+'. <break time="200ms"/> End root'}break;case"leftright":{const $r=y;ht+=(ue=$r.leftDelim?ld[$r.leftDelim]:void 0)!=null?ue:$r.leftDelim,ht+=Lo("math",y.body),ht+=(Pe=$r.rightDelim?ld[$r.rightDelim]:void 0)!=null?Pe:$r.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const Zr=wn.replace(/^\\/g,""),mi=Zt()[Zr];mi&&(mi!=null&&mi.expand?ht+=Lo("math",y.body):ht+=`${Zr} `);break;case"placeholder":ht+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(wn==="\\mathbin"||wn==="\\mathrel"||wn==="\\mathopen"||wn==="\\mathclose"||wn==="\\mathpunct"||wn==="\\mathord"||wn==="\\mathinner"){ht=Lo(a,y.body);break}let $r=y.isDigit()?y.asDigit():y.value,da=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(da=y.value,$r=da),a==="text")ht+=$r;else{if(y.type==="mbin"&&(ht+='<break time="150ms"/>'),$r){const _a=ld[$r]||(da?ld[da.trim()]:"");if(_a)ht+=" "+_a;else{const Ta=da?Lg(da.trim()):"";ht+=Ta||tt($r)}}else ht+=Lo("math",y.body);y.type==="mbin"&&(ht+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const $r=y.command;if($r==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let da=Lo("math",y.superscript);da=da.trim();let _a=Lo("math",y.subscript);_a=_a.trim(),ht+=' the summation from <break time="200ms"/>'+_a+'<break time="200ms"/> to <break time="200ms"/>'+da+'<break time="200ms"/> of <break time="150ms"/>',hn=!0}else if(y.hasEmptyBranch("subscript"))ht+=" the summation of";else{let da=Lo("math",y.subscript);da=da.trim(),ht+=' the summation from <break time="200ms"/>'+da+'<break time="200ms"/> of <break time="150ms"/>',hn=!0}else if($r==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let da=Lo("math",y.superscript);da=da.trim();let _a=Lo("math",y.subscript);_a=_a.trim(),ht+=' the product from <break time="200ms"/>'+_a+'<break time="200ms"/> to <break time="200ms"/>'+da+'<break time="200ms"/> of <break time="150ms"/>',hn=!0}else if(y.hasEmptyBranch("subscript"))ht+=" the product of ";else{let da=Lo("math",y.subscript);da=da.trim(),ht+=' the product from <break time="200ms"/>'+da+'<break time="200ms"/> of <break time="150ms"/>',hn=!0}else if($r==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let da=Lo("math",y.superscript);da=da.trim();let _a=Lo("math",y.subscript);_a=_a.trim(),ht+=' the integral from <break time="200ms"/>'+ct(_a)+'<break time="200ms"/> to <break time="200ms"/>'+ct(da)+' <break time="200ms"/> of ',hn=!0}else ht+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const da=(Ke=ld[y.value])!=null?Ke:y.command?ld[y.command]:void 0;ht+=da||" "+y.value}else y.command&&(y.command==="\\mathop"?ht+=Lo("math",y.body):y.command==="\\operatorname"?ht+=Ng(y.body):ht+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Xt=Lo("math",y.body),ht+=" crossed out "+Xt+". End crossed out.";break;case"space":case"spacing":break}if(!hn&&!y.hasEmptyBranch("superscript")){let Sr=Lo(a,y.superscript);Sr=Sr.trim();const ui=Sr.replace(/<[^>]*>/g,"");if(Yd(y.superscript)){if(a==="math"){const yr=Pg(y.superscript);yr&&(ht+='<mark name="'+yr+'"/>')}ui==="\u2032"?ht+=" prime ":ui==="2"?ht+=" squared ":ui==="3"?ht+=" cubed ":Number.isNaN(Number.parseInt(ui))?ht+=" to the "+Sr+"; ":ht+=' to the <say-as interpret-as="ordinal">'+ui+"</say-as> power; "}else Number.isNaN(Number.parseInt(ui))?ht+=" raised to the "+Sr+"; ":ht+=' raised to the <say-as interpret-as="ordinal">'+ui+"</say-as> power; "}if(!hn&&!y.hasEmptyBranch("subscript")){let Sr=Lo("math",y.subscript);Sr=Sr.trim(),ht+=Yd(y.subscript)?" sub "+Sr:" subscript "+Sr+". End subscript. "}}return ht}function cd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ue=Vo(a);if(ue){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=ne(ae({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=ne(ae({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=ne(ae({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const Pe=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&Pe.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let Ke="";try{Ke=Pe.toSpeech(ue)}catch(tt){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",tt)}return Ke}return""}let z=Lo("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ue="";window.MathfieldElement.speechEngineRate&&(ue='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),z='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ue+"<p><s>"+z+"</s></p>"+(ue?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&le()==="macos"?z=z.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):z=z.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return z}var Qd={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},Jd={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Rg(a){let y="";for(const b of a){const z=y[y.length-1];z!==void 0&&/\d/.test(z)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function Us(a){var y,b,z,ue,Pe,Ke,tt,ct,ht,bt,Bt,Xt,hn;if(!a)return"";if(re(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Us).join("");if(a[0].mode==="text"){let mi=0,$r="";for(;((y=a[mi])==null?void 0:y.mode)==="text";)$r+=a[mi].body?Us(a[mi].body):a[mi].value,mi++;return`"${$r}" ${Us(a.slice(mi))}`}let yr=0;const Zr=[];for(;a[yr]&&a[yr].mode==="math";){let mi="";for(;a[yr]&&a[yr].type==="mord"&&/\d/.test(a[yr].value);)mi+=a[yr++].value;mi?Zr.push(mi):Zr.push(Us(a[yr++]))}return Zr.push(Us(a.slice(yr))),Rg(Zr)}if(a.mode==="text")return`"${a.value}"`;let wn="";const{command:Sr}=a;let ui;if(Sr==="\\placeholder")return`(${Us(a.body)})`;switch(a.type){case"accent":const yr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Sr];wn=`${yr!=null?yr:""} ${Us(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Ta=>Ta.value).join("");case"group":case"root":wn=(b=Qd[Sr])!=null?b:Us(a.body);break;case"genfrac":{const Ta=a;(Ta.leftDelim||Ta.rightDelim)&&(wn=Ta.leftDelim==="."||!Ta.leftDelim?"{:":Ta.leftDelim),Ta.hasBarLine?(wn+="(",wn+=Us(Ta.above),wn+=")/(",wn+=Us(Ta.below),wn+=")"):(wn+="("+Us(Ta.above)+"),",wn+="("+Us(Ta.below)+")"),(Ta.leftDelim||Ta.rightDelim)&&(wn+=Ta.rightDelim==="."||!Ta.rightDelim?"{:":Ta.rightDelim)}break;case"surd":wn+=a.hasEmptyBranch("above")?"sqrt("+Us(a.body)+")":"root("+Us(a.above)+")("+Us(a.body)+")";break;case"latex":wn=a.value;break;case"leftright":{const Ta=a,Ro=Ta.leftDelim;wn+=Ro==="."||!Ro?"{:":Ro,wn+=Us(Ta.body);const is=Ta.matchingRightDelim();wn+=is==="."||!is?":}":is}break;case"sizeddelim":case"delim":wn=a.value;break;case"overlap":break;case"overunder":break;case"mord":wn=(ue=(z=Qd[Sr])!=null?z:Sr)!=null?ue:typeof a.value=="string"?a.value:"",wn.startsWith("\\")&&(wn+=" "),ui=Sr?Sr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,ui?wn=String.fromCodePoint(Number.parseInt("0x"+ui[1])):wn.length>0&&wn.startsWith("\\")&&(wn=typeof a.value=="string"?a.value.charAt(0):a.command),wn=Bg(wn,a.style);break;case"mbin":case"mrel":case"minner":wn=(Ke=(Pe=Qd[Sr])!=null?Pe:Jd[Sr])!=null?Ke:a.value;break;case"mopen":case"mclose":wn=a.value;break;case"mpunct":wn=(tt=Jd[Sr])!=null?tt:Sr;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(Jd[Sr]?wn=Jd[Sr]:wn=Sr==="\\operatorname"?Us(a.body):(ct=a.value)!=null?ct:Sr,wn+=" ");break;case"array":const Zr=a.array,mi=a.environmentName,$r=(ht={bmatrix:["[","]"],"bmatrix*":["[","]"]}[mi])!=null?ht:["(",")"],da=[];for(const Ta of Zr){const Ro=[];for(const is of Ta)Ro.push($r[0]+Us(is)+$r[1]);da.push(Ro.join(","))}const _a=(bt={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[mi])!=null?bt:["(",")"];wn=_a[0]+da.join(",")+_a[1];break;case"box":break;case"spacing":wn=(Bt=Qd[Sr])!=null?Bt:" ";break;case"enclose":wn="("+Us(a.body)+")";break;case"space":wn=" ";break;case"subsup":wn="";break;case"macro":wn=(hn=(Xt=Qd[Sr])!=null?Xt:Jd[Sr])!=null?hn:Us(a.body);break}if(!a.hasEmptyBranch("subscript")){wn+="_";const yr=Us(a.subscript);wn+=yr.length!==1?`(${yr})`:yr}if(!a.hasEmptyBranch("superscript")){wn+="^";const yr=Us(a.superscript);wn+=yr.length!==1?`(${yr})`:yr}return wn}function Bg(a,y){if(!y)return a;let b=a;return y.variant==="double-struck"&&(b=`bbb "${b}"`),y.variant==="script"&&(b=`cc "${b}"`),y.variant==="fraktur"&&(b=`fr "${b}"`),y.variant==="sans-serif"&&(b=`sf "${b}"`),y.variant==="monospace"&&(b=`tt "${b}"`),y.variantStyle==="bold"&&(b=`bb "${b}"`),y.color?`color({${y.color}})(${b})`:b}function dl(a,y){var b,z;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ue=new Po({from:ne(ae({},Wu()),{renderPlaceholder:()=>new hi(160,{maxFontSize:1}),letterShapeStyle:(z=y==null?void 0:y.letterShapeStyle)!=null?z:"tex"}),mathstyle:y.mathstyle}),Ke=new _r({mode:"math",type:"root",body:ul(a,{context:ue,parseMode:"math",mathstyle:y.mathstyle})}).render(ue);return Ke?(Ku(Rd(Ke,ue)),zu(Ke,{classes:"ML__latex"}).toMarkup()):""}function Ty(a){return np(a,{context:Wu()})}function _g(a,y={}){return Vo(ul(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Fg(a){const y=ul(a,{parseMode:"math",mathstyle:"displaystyle"});return cd(y)}var $f;function jg(a){var y,b;if(!$f){const z=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;z?$f=new z:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(b=$f==null?void 0:$f.box(a).latex)!=null?b:""}function Oy(a,y="math"){return Us(new _r({type:"root",body:ul(a,{parseMode:y})}))}function Dy(a){return Eu(a,{format:"ascii-math"})[1]}function Zh(a){if(typeof a=="string"){const y=Kg(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Hg(a):"a"in a?dm(a):a}function ud(a){return a<0?0:a>255?255:Math.round(a)}function Kg(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function Gh(a){const[y,b,z]=[a.L,a.C,a.H],ue=z*Math.PI/180,Pe={L:y,a:b*Math.cos(ue),b:b*Math.sin(ue)};return a.alpha!==void 0&&(Pe.alpha=a.alpha),Pe}function zg(a){const[y,b,z]=[a.L,a.a,a.b],ue=Math.sqrt(b*b+z*z),Ke=Math.atan2(z,b)*180/Math.PI,tt={L:y,C:ue,H:Ke};return a.alpha!==void 0&&(tt.alpha=a.alpha),tt}function Xh(a){const[y,b,z]=[a.L,a.a,a.b],ue=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*z,3),Pe=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*z,3),Ke=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*z,3),tt=4.076741661347994*ue-3.307711590408193*Pe+.230969928729428*Ke,ct=-1.2684380040921763*ue+2.6097574006633715*Pe-.3413193963102197*Ke,ht=-.004196086541837188*ue-.7034186144594493*Pe+1.7076147009309444*Ke,bt=Bt=>{const Xt=Math.abs(Bt);return Xt<=.0031308?Bt*12.92:(Math.sign(Bt)||1)*(1.055*Math.pow(Xt,1/2.4)-.055)};return[bt(tt),bt(ct),bt(ht)]}function Yh(a){const[y,b,z]=a;return y>=0&&y<=1&&b>=0&&b<=1&&z>=0&&z<=1}function Qh(a,y){let[b,z,ue]=a;return b=ud(b*255),z=ud(z*255),ue=ud(ue*255),y!==void 0?{r:b,g:z,b:ue,alpha:y}:{r:b,g:z,b:ue}}function dm(a){let[y,b,z]=Xh(a);if(Yh([y,b,z]))return Qh([y,b,z],a.alpha);const ue=zg(a);if(ue.C=0,[y,b,z]=Xh(Gh(ue)),!Yh([y,b,z]))return Qh([y,b,z],a.alpha);let Pe=0,Ke=a.L,tt=(Pe+Ke)/2;ue.C=tt;const ct=.36/Math.pow(2,12);for(;Ke-Pe>ct;)tt=(Pe+Ke)/2,ue.C=tt,[y,b,z]=Xh(Gh(ue)),Yh([y,b,z])?Pe=tt:Ke=tt;return Qh([y,b,z],a.alpha)}function Hg(a){return dm(Gh(a))}function fm(a,y){const b=Zh(a),z=Zh(y),ue=.56,Pe=.57,Ke=.62,tt=.65,ct=.022,ht=1.414,bt=.1,Bt=5e-4,Xt=1.14,hn=.027,wn=1.14,Sr=.027;function ui(Ta){return Ta>=ct?Ta:Ta+jc(ct-Ta,ht)}function yr(Ta){return(Ta<0?-1:1)*Math.pow(Math.abs(Ta),2.4)}const Zr=ui(yr(z.r/255)*.2126729+yr(z.g/255)*.7151522+yr(z.b/255)*.072175),mi=ui(yr(b.r/255)*.2126729+yr(b.g/255)*.7151522+yr(b.b/255)*.072175);let $r,da,_a;return Math.abs(mi-Zr)<Bt?da=0:mi>Zr?($r=jc(mi,ue)-jc(Zr,Pe),da=$r*Xt):($r=jc(mi,tt)-jc(Zr,Ke),da=$r*wn),Math.abs(da)<bt?_a=0:da>0?_a=da-Sr:_a=da+hn,_a*100}function hm(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const z=fm(a,b),ue=fm(a,y);return Math.abs(z)>Math.abs(ue)?b:y}function Wg(a){const y=Zh(a);let b=((1<<24)+(ud(y.r)<<16)+(ud(y.g)<<8)+ud(y.b)).toString(16).slice(1);return y.alpha!==void 0&&y.alpha<1&&(b+=("00"+Math.round(y.alpha*255).toString(16)).slice(-2)),b[0]===b[1]&&b[2]===b[3]&&b[4]===b[5]&&b[6]===b[7]&&(b=b[0]+b[2]+b[4]+(y.alpha!==void 0&&y.alpha<1?b[6]:"")),"#"+b}function Cs(a){const y=pm(a);let b="";for(const z of y){if(typeof z.value!="string")return"";b+=z.value}return b}function pm(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Ug(a,y){const b=pm(a);if(b.length!==1)return!1;const z=mh[y];return z?!!z.test(b[0].value):!1}function Vg(a,y){return Cs(a).length>0}function Zg(a){return[Jh(a,"double-struck","mathbb","tooltip.blackboard"),Jh(a,"fraktur","mathfrak","tooltip.fraktur"),Jh(a,"calligraphic","mathcal","tooltip.caligraphic"),$h(a,"up","mathrm","tooltip.roman-upright"),$h(a,"bold","mathbf","tooltip.bold"),$h(a,"italic","mathit","tooltip.italic")]}function Gg(a){return[{label:()=>dl(`\\vec{${Cs(a)}}`),visible:()=>Cs(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overrightarrow{${Cs(a)}}`),visible:()=>Cs(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overleftarrow{${Cs(a)}}`),visible:()=>Cs(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>dl(`\\dot{${Cs(a)}}`),visible:()=>Cs(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>dl(`\\ddot{${Cs(a)}}`),visible:()=>Cs(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bar{${Cs(a)}}`),visible:()=>Cs(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overline{${Cs(a)}}`),visible:()=>Cs(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overgroup{${Cs(a)}}`),visible:()=>Cs(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>dl(`\\overbrace{${Cs(a)}}`),visible:()=>Cs(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>dl(`\\underline{${Cs(a)}}`),visible:()=>Cs(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>dl(`\\undergroup{${Cs(a)}}`),visible:()=>Cs(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>dl(`\\underbrace{${Cs(a)}}`),visible:()=>Cs(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Xg(a){return[{label:()=>dl(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>dl(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Yg(a){const y=[];for(const b of Object.keys(Fe))y.push({class:(Wg(hm(Fe[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Fe[b]} "></span>`,ariaLabel:()=>{var z;return(z=Me(b))!=null?z:b},checked:()=>{var z;return{some:"mixed",all:!0}[(z=a.queryStyle({backgroundColor:b}))!=null?z:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Qg(a){const y=[];for(const b of Object.keys(ke))y.push({class:(hm(ke[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${ke[b]} "></span>`,ariaLabel:()=>{var z;return(z=Me(b))!=null?z:b},checked:()=>{var z;return{some:"mixed",all:!0}[(z=a.queryStyle({color:b}))!=null?z:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Jg=class extends tm{constructor(a,y,b,z){super(a,y),this.row=b,this.col=z}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function $g(a){const y=[];for(let b=1;b<=5;b++)for(let z=1;z<=5;z++)y.push({onCreate:(ue,Pe)=>new Jg(ue,Pe,b,z),label:"\u2610",tooltip:()=>Me("tooltip.row-by-col",b,z),data:{row:b,col:z},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(z).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function qg(a){return[{label:()=>Me("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>_u(a)},{label:()=>Me("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>_u(a)},{label:()=>Me("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>_u(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,z]=ty(a);return b<y.maxColumns}},{label:()=>Me("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>_u(a)},{type:"divider"},{label:()=>Me("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>_u(a)},{label:()=>Me("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>_u(a)},{type:"divider"},{label:()=>Me("menu.borders"),visible:()=>(ey(a)||_u(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>$d(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>$d(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>$d(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>$d(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>$d(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>Me("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:$g(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>Me("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>Me("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{qu(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>Me("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{qu(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>Me("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>Me("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Zg(a),submenuClass:"variant-submenu"},{label:()=>Me("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Qg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Me("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Yg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Me("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Gg(a),submenuClass:"variant-submenu"},{label:()=>Me("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Cs(a).length>0,submenu:Xg(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>Me("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=ny(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>Me("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const z=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!z){a.model.announce("plonk");return}a.insert(`=${z.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const z=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!z){a.model.announce("plonk");return}a.insert(z.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?Me("menu.solve-for",dl(b)):Me("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,z=b==null?void 0:b.unknowns[0],ue=(y=b.solve(z))==null?void 0:y.map(Pe=>{var Ke;return(Ke=Pe.simplify().latex)!=null?Ke:""});if(!ue){a.model.announce("plonk");return}a.insert(`${z}=${ue.length===1?ue[0]:"\\left\\lbrace"+(ue==null?void 0:ue.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>Me("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>Me("menu.copy"),id:"copy",submenu:[{label:()=>Me("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>so.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>Me("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>so.copyToClipboard(a,"ascii-math")},{label:()=>Me("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>so.copyToClipboard(a,"math-ml")}]},{label:()=>Me("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>Me("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function _u(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function ey(a){return a.model.at(a.model.position).type==="array"}function ty(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((z,ue)=>Math.max(z,ue.length),0)]:[0,0]}function $d(a,y){Af(a),a.flushInlineShortcutBuffer(),Pp(a.model,y),Bs(a)}function ny(a){var y,b;let z;if(a.model.selectionIsCollapsed?z=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):z=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!z)return"";let ue=z.evaluate();return ue.isSame(z)&&(ue=z.N()),ue.latex}function Jh(a,y,b,z){return{label:()=>dl(`\\${b}{${Cs(a)}}`),tooltip:()=>{var ue;return(ue=Me(z))!=null?ue:z},visible:()=>Ug(a,y),checked:()=>{var ue;return{some:"mixed",all:!0}[(ue=a.queryStyle({variant:y}))!=null?ue:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function $h(a,y,b,z){return{label:()=>dl(`\\${b}{${Cs(a)}}`),tooltip:()=>{var ue;return(ue=Me(z))!=null?ue:z},visible:()=>Vg(a,y),checked:()=>{var ue;return{some:"mixed",all:!0}[(ue=a.queryStyle({variantStyle:y}))!=null?ue:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function dd(a,y){return a+cd(y)}Kl({speak:(a,y,b)=>ry(a,y,b)},{target:"mathfield"});function ry(a,y,b){var z,ue;b=b!=null?b:{withHighlighting:!1};const{model:Pe}=a;function Ke(bt){let Bt=null;switch(bt){case"all":Bt=Pe.root;break;case"selection":Bt=Pe.getAtoms(Pe.selection);break;case"left":{Bt=Pe.getAtoms(Pe.offsetOf(Pe.at(Pe.position).leftSibling),Pe.position);break}case"right":{Bt=Pe.getAtoms(Pe.position,Pe.offsetOf(Pe.at(Pe.position).rightSibling));break}case"group":Bt=Pe.getAtoms(Pe.getSiblingsRange(Pe.position));break;case"parent":{const{parent:Xt}=Pe.at(Pe.position);Xt!=null&&Xt.parent?Bt=Xt:Bt=Pe.root;break}default:Bt=Pe.root}return Bt}function tt(bt){let Bt="";switch(bt){case"all":console.log("Internal failure: speak all failed");break;case"selection":Bt="no selection";break;case"left":Bt="at start";break;case"right":Bt="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Bt="no parent";break;default:console.log('unknown speak_ param value: "'+bt+'"');break}return Bt}const ct=Ke(y);if(ct===null)return(ue=(z=window.MathfieldElement).speakHook)==null||ue.call(z,tt(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const ht=cd(ct);return ce()&&b.withHighlighting?(hu().readAloudMathfield=a,Tu(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,ht)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(ht),!1}function iy(a){var y,b;if(!ce()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const z=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(z)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const z=new window.AWS.Polly({apiVersion:"2016-06-10"}),ue={OutputFormat:"mp3",VoiceId:(y=window.MathfieldElement.speechEngineVoice)!=null?y:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna")?"neural":"standard",Text:a,TextType:"ssml"};z.synthesizeSpeech(ue,(Pe,Ke)=>{if(Pe)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${Pe}`);else if(Ke!=null&&Ke.AudioStream){const tt=new Uint8Array(Ke.AudioStream),ct=new Blob([tt.buffer],{type:"audio/mpeg"}),ht=URL.createObjectURL(ct);new Audio(ht).play().catch(Bt=>console.log(Bt))}else console.log("polly.synthesizeSpeech():",Ke)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function mm(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function ay(a,y,b,z){let ue="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ue=dd("deleted: ",z);else if(y==="focus"||y.includes("move"))ue=oy(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+sy(a.model);else if(y==="replacement")ue=dd("",a.model.at(a.model.position));else if(y==="line"){const Pe=dd("",a.model.root);a.keyboardDelegate.setAriaLabel(Pe)}else ue=z?dd(y+" ",z):y;if(ue){const Pe=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ue+Pe}}function oy(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let z="",ue=b.parent;const Pe=a.at(a.position).parent;for(;ue!==a.root&&ue!==Pe;)z+=`out of ${mm(ue)};`,ue=ue.parent;return z}function sy(a){if(!a.selectionIsCollapsed)return dd("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),z=mm(b);return b.isFirstSibling&&(y=(z?"start of "+z:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=z?"end of "+z:"unknown"):y+=dd("",b),y}var ly=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const z=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ue={};if((y==null?void 0:y.type)==="undo"&&(ue={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ue={inputType:"historyRedo"}),this.contentWillChange(ue)){const Pe=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=cu(a.content),this.selection=a.selection,this.silenceNotifications=Pe,this.contentDidChange(ue)}this.silenceNotifications=z}get atoms(){return this.root.children}get selection(){return this._selection}set selection(a){this.setSelection(a)}setSelection(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var b,z,ue;const Pe=this.normalizeSelection(a,y);if(Pe===void 0)throw new TypeError("Invalid selection");if(Pe.ranges.length===1&&Pe.ranges[0][0]===Pe.ranges[0][1]){const bt=Pe.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(bt))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((z=this.at(bt-1))!=null&&z.parentPrompt){this._anchor=this.normalizeOffset(bt-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ue=this.at(bt+1))!=null&&ue.parentPrompt){this._anchor=this.normalizeOffset(bt+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=bt,this._position=bt,this._selection=Pe;return}const Ke=ll(Pe);Pe.direction==="backward"?[this._position,this._anchor]=Ke:[this._anchor,this._position]=Ke;const tt=this.at(Ke[0]+1),ct=this.at(Ke[1]),ht=_r.commonAncestor(tt,ct);(ht==null?void 0:ht.type)==="array"&&tt.parent===ht&&ct.parent===ht?this._selection={ranges:[Ke],direction:Pe.direction}:this._selection={ranges:[Ke],direction:Pe.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof ml&&b.isSuggestion&&(b.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(a){this.setSelection(a,a)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(a="forward"){return this._anchor===this._position?!1:(a==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(a){return this.atoms[a]}offsetOf(a){return this.atoms.indexOf(a)}getSiblingsRange(a){const y=this.at(a),{parent:b}=y;if(!b)return[0,this.lastOffset];const z=y.parent.branch(y.parentBranch);return[this.offsetOf(z[0]),this.offsetOf(z[z.length-1])]}getBranchRange(a,y){const b=this.at(a).branch(y);return[this.offsetOf(b[0]),this.offsetOf(b[b.length-1])]}getAtoms(a,y,b){let z=b!=null?b:{};if(Vu(a)){if(z=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((ht,bt)=>[...ht,...this.getAtoms(bt,z)],[]);a=a.ranges[0]}let ue,Pe;if(Cc(a)){if(ue=a,!Cc(y))return[];Pe=y}else[ue,Pe]=a,z=y!=null?y:{};if(!Number.isFinite(ue))return[];z.includeChildren===void 0&&(z.includeChildren=!1),ue<0&&(ue=this.lastOffset-ue+1),Pe<0&&(Pe=this.lastOffset-Pe+1);const Ke=Math.min(ue,Pe)+1,tt=Math.max(ue,Pe);if(!z.includeChildren&&Ke===1&&tt===this.lastOffset)return[this.root];let ct=[];for(let ht=Ke;ht<=tt;ht++){const bt=this.atoms[ht];vm(this,bt,Ke,tt)&&ct.push(bt)}return z.includeChildren||(ct=ct.filter(ht=>{let bt=!1,{parent:Bt}=ht;for(;Bt&&!bt;)bt=vm(this,Bt,Ke,tt),Bt=Bt.parent;return!bt})),ct}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let z=a;z<=b;z++)y.push(this.atoms[z]);for(let z=0;z<a;z++)y.push(this.atoms[z]);return y}findAtom(a,y=0,b="forward"){let z;const ue=this.lastOffset;if(b==="forward"){for(let Pe=y;Pe<=ue;Pe++)if(z=this.atoms[Pe],a(z))return z;for(let Pe=0;Pe<y;Pe++)if(z=this.atoms[Pe],a(z))return z;return}for(let Pe=y;Pe>=0;Pe--)if(z=this.atoms[Pe],a(z))return z;for(let Pe=ue;Pe>y;Pe--)if(z=this.atoms[Pe],a(z))return z}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new _r({type:"root",body:[]}),y;for(const b of y)b.parent.removeChild(b);return y}deleteAtoms(a){this.extractAtoms(a),this.position=a[0]}atomToString(a,y){const b=y!=null?y:"latex";if(b.startsWith("latex"))return _r.serialize([a],{expandMacro:b==="latex-expanded",skipStyles:b==="latex-unstyled",skipPlaceholders:b==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(b==="math-ml")return Vo(a);if(b==="spoken")return cd(a);if(b==="spoken-text"){const z=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ue=cd(a);return window.MathfieldElement.textToSpeechMarkup=z,ue}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const z=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ue=cd(a);return window.MathfieldElement.textToSpeechMarkup=z,ue}return b==="ascii-math"?Us(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let z,ue;if(Cc(a)&&Cc(y)?(z=[this.normalizeRange([a,y])],ue=b):Uu(a)?(z=[this.normalizeRange(a)],ue=y):Vu(a)?(z=a.ranges,ue=y):(z=[this.normalizeRange([0,-1])],ue=a),ue!=null||(ue="latex"),ue==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const Pe=this.getValue({ranges:z},"latex-unstyled");try{const Ke=window.MathfieldElement.computeEngine.parse(Pe);return JSON.stringify(Ke.json)}catch(Ke){return JSON.stringify(["Error",`'${Ke.toString()}'`])}}if(ue.startsWith("latex")){const Pe={expandMacro:ue==="latex-expanded",skipStyles:ue==="latex-unstyled",skipPlaceholders:ue==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Eo(z.map(Ke=>_r.serialize(this.getAtoms(Ke),Pe)))}return z.map(Pe=>this.getAtoms(Pe).map(Ke=>this.atomToString(Ke,ue)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[z,ue]=b,{parent:Pe}=this.at(ue);if(Pe&&(Pe.type==="genfrac"||Pe.type==="subsup"))for(;Pe!==this.root&&qh(this,Pe,[z,ue]);)ue=this.offsetOf(Pe),Pe=Pe.parent;for(Pe=this.at(z).parent;Pe!==this.root&&qh(this,Pe,[z,ue]);)z=this.offsetOf(Pe.leftSibling),Pe=Pe.parent;if(Pe=this.at(ue).parent,(Pe==null?void 0:Pe.type)==="genfrac")for(;Pe!==this.root&&qh(this,Pe,[z,ue]);)ue=this.offsetOf(Pe),console.assert(ue>=0),Pe=Pe.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[z,ue]],direction:"none"}})}announce(a,y,b=[]){var z,ue;((ue=(z=this.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ue:!0)&&ay(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,z=this._anchor,ue=this._position,Pe=this.silenceNotifications;this.silenceNotifications=!0;const Ke=this.root.changeCounter;y();const tt=this.root.changeCounter!==Ke,ct=z!==this._anchor||ue!==this._position||Cu(this._selection,b)==="different";return this.silenceNotifications=Pe,a.content&&tt&&this.contentDidChange({inputType:a.type}),a.selection&&ct&&this.selectionDidChange(),tt||ct}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let z;if(Cc(a)){const ue=this.normalizeOffset(a);if(Cc(y)){const Pe=this.normalizeOffset(y);z=ue<=Pe?{ranges:[[ue,Pe]],direction:"none"}:{ranges:[[Pe,ue]],direction:"backward"}}else z={ranges:[[ue,ue]],direction:"none"}}else if(Uu(a)){const ue=this.normalizeOffset(a[0]),Pe=this.normalizeOffset(a[1]);z=ue<=Pe?{ranges:[[ue,Pe]],direction:"none"}:{ranges:[[Pe,ue]],direction:"backward"}}else Vu(a)&&(z={ranges:a.ranges.map(ue=>this.normalizeRange(ue)),direction:(b=a.direction)!=null?b:"none"});return console.assert(z!==void 0),z}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Ic(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",ne(ae({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",bubbles:!0,composed:!0}))),this.silenceNotifications=b}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Ic(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function vm(a,y,b,z){const ue=a.offsetOf(y);if(ue<b||ue>z)return!1;if(!y.hasChildren)return!0;const Pe=a.offsetOf(y.firstChild);if(Pe>=b&&Pe<=z){const Ke=a.offsetOf(y.lastChild);if(Ke>=b&&Ke<=z)return!0}return!1}function qh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[z,ue]=b,Pe=a.offsetOf(y.firstChild),Ke=a.offsetOf(y.lastChild);return Pe>=z&&Pe<=ue&&Ke>=Pe&&Ke<=ue}function qd(a,y,b,z){var ue,Pe,Ke,tt,ct,ht;const bt=b.parent;if(bt&&b instanceof Uo){const Bt=!z&&y==="forward"||z==="body"&&y==="backward";let Xt=Bt?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Bt?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(bt.addChildrenAfter(b.removeBranch("body"),b),bt.removeChild(b),Xt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(bt.addChildrenAfter(b.removeBranch("body"),b),bt.removeChild(b),Xt--),a.position=Xt,!0}if(bt&&b.type==="surd"){if(y==="forward"&&!z||y==="backward"&&z==="body"){const Bt=b.leftSibling;b.hasChildren&&bt.addChildrenAfter(b.removeBranch("body"),b),bt.removeChild(b),a.position=a.offsetOf(Bt)}else y==="forward"&&z==="body"?a.position=a.offsetOf(b):!z&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),bt.removeChild(b)):z==="above"&&(b.hasEmptyBranch("above")&&b.removeBranch("above"),y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b.body[0]));return!0}if(bt&&(b.type==="box"||b.type==="enclose")){const Bt=z&&y==="backward"||!z&&y==="forward"?b.leftSibling:b.lastChild;return bt.addChildrenAfter(b.removeBranch("body"),b),bt.removeChild(b),a.position=a.offsetOf(Bt),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!z)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const Bt=ef.fractionNavigationOrder==="numerator-denominator"?"above":"below",Xt=Bt==="above"?"below":"above";if(bt&&(y==="forward"&&z===Bt||y==="backward"&&z===Xt)){const hn=b.removeBranch(Bt),wn=b.removeBranch(Xt);return bt.addChildrenAfter([...hn,...wn],b),bt.removeChild(b),a.position=a.offsetOf(hn.length>0?hn[hn.length-1]:wn[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!z&&y==="forward")return!1;if(!z){if(b.subscript||b.superscript){const Bt=y==="forward"?(Ke=(ue=b.superscript)==null?void 0:ue[0])!=null?Ke:(Pe=b.subscript)==null?void 0:Pe[0]:(ht=(tt=b.subscript)==null?void 0:tt[0].lastSibling)!=null?ht:(ct=b.superscript)==null?void 0:ct[0].lastSibling;return Bt&&(a.position=a.offsetOf(Bt)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Bt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Bt,!0}if(z==="superscript")if(y==="backward"){const Bt=a.offsetOf(b.firstChild)-1;console.assert(Bt>=0),a.position=Bt}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else z==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(z&&b.hasEmptyBranch(z)&&(b.removeBranch(z),b.type==="subsup"&&!b.subscript&&!b.superscript)){const Bt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Bt}return!0}if((bt==null?void 0:bt.type)==="genfrac"&&!z&&b.type!=="first"){let Bt=a.offsetOf(b.leftSibling);return bt.removeChild(b),bt.hasEmptyBranch("above")&&bt.hasEmptyBranch("below")?(Bt=a.offsetOf(bt.leftSibling),bt.parent.removeChild(bt),a.announce("delete",void 0,[bt]),a.position=Bt,!0):(a.announce("delete",void 0,[b]),a.position=Bt,!0)}if(y==="backward"&&((bt==null?void 0:bt.command)==="\\ln"||(bt==null?void 0:bt.command)==="\\log")&&b.parentBranch!=="body"){const Bt=a.offsetOf(bt.leftSibling);return bt.parent.removeChild(bt),a.announce("delete",void 0,[bt]),a.position=Bt,!0}return!1}function cy(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&qd(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(qd(a,"backward",y.parent,y.parentBranch))return;y=null}if(!y){a.announce("plonk");return}a.position=a.offsetOf(y.leftSibling),y.parent.removeChild(y),a.announce("delete",void 0,[y])}}):Pc(a,ll(a.selection),"deleteContentBackward")}function uy(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let z=a.at(a.position).rightSibling;if(z&&qd(a,"forward",z))return;if(z){if(a.at(a.position).isLastSibling&&qd(a,"forward",z.parent,z.parentBranch))return}else{if(z=a.at(a.position),z.isLastSibling&&qd(a,"forward",z.parent,z.parentBranch))return;z=void 0}if(a.position===a.lastOffset||!z){a.announce("plonk");return}z.parent.removeChild(z);let ue=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ue==null?void 0:ue.type)==="subsup";)ue.parent.removeChild(ue),ue=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[z])}):Pc(a,ll(a.selection),"deleteContentForward")}function Pc(a,y,b){const z=a.getAtoms(y);if(z.length>0&&z[0].parent){let ue=z[0].parent.firstChild;ue.type==="first"&&(ue=ue.rightSibling);const Pe=z[z.length-1].parent.lastChild;let Ke=z[0];Ke.type==="first"&&(Ke=Ke.rightSibling);const tt=z[z.length-1];if(Ke===ue&&tt===Pe){const ct=z[0].parent;ct.parent&&ct.type!=="prompt"&&(y=[a.offsetOf(ct.leftSibling),a.offsetOf(ct)])}if(z.length===1&&z[0].type==="placeholder"&&z[0].parent.type==="genfrac"){const ct=z[0].parent,ht=z[0].parentBranch==="below"?"above":"below",bt=a.offsetOf(ct.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Bt,Xt;const hn=ct.removeBranch(ht);if(hn.length===1&&hn[0].type==="placeholder")(Xt=ct.parent)==null||Xt.removeChild(ct),a.position=Math.max(0,bt);else{const wn=ct.parent.addChildrenAfter(hn,ct);(Bt=ct.parent)==null||Bt.removeChild(ct),a.position=a.offsetOf(wn)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Kl({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Pc(a,[0,-1],"deleteContent"),deleteForward:a=>uy(a),deleteBackward:a=>cy(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Pc(a,[a.anchor,Th(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Pc(a,[a.anchor,Th(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Pc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Pc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Pc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Pc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var dy=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${Me("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,fy=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${Me("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,hy=class{constructor(a,y){this.focusBlurInProgress=!1;var b,z,ue;this.options=ae(ne(ae({},Bf()),{macros:Zt(),registers:iu()}),Rf(y)),this.eventController=new AbortController;const Pe=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let Ke=(z=(b=y.value)!=null?b:this.element.textContent)!=null?z:"";Ke=Ke.trim();const tt=Dp(this.options),ct=new _r({type:"root",mode:tt,body:ul(Ke,{context:this.context})});this.model=new ly(this,tt,ct),this.undoManager=new Fv(this.model);const ht=[];if(ht.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),ht.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),ht.push("<span part=content class=ML__content>"),ht.push(Sp(this)),ht.push("</span>"),window.mathVirtualKeyboard&&(ht.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),ht.push(dy),ht.push("</div>")),ht.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),ht.push(fy),ht.push("</div>"),ht.push("</span>"),ht.push("<span class=ML__sr-only>"),ht.push("<span role=status aria-live=assertive aria-atomic=true></span>"),ht.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(ht.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=ge.subscribe(()=>ge.update(this.element)),ge.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Bt=>Bt.stopImmediatePropagation(),{capture:!1,signal:Pe}),this.field.addEventListener("wheel",this,{passive:!1,signal:Pe}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:Pe}):this.field.addEventListener("mousedown",this,{signal:Pe}),(ue=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ue.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(Ic(this)))},{signal:Pe}),this._menu=new Cg(qg(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:Pe});const bt=this.element.querySelector("[part=menu-toggle]");bt==null||bt.addEventListener("pointerdown",Bt=>{if(Bt.currentTarget!==bt||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Xt=bt.getBoundingClientRect();this._menu.modifiers=ku(Bt),this._menu.show({target:bt,location:{x:Xt.left,y:Xt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Bt.preventDefault(),Bt.stopPropagation()},{signal:Pe}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(bt.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=W0(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:Pe}),document.addEventListener("scroll",this,{signal:Pe}),this.resizeObserver=new ResizeObserver(()=>Bs(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:Pe}),Fd&&!ge.locale.startsWith(Fd.locale)&&j0(ge.locale),Xl!=="ready"&&document.fonts.ready.then(()=>Df(this)),a.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(a){this._defaultStyle=a}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const a=this.model.at(this.model.position),y=this.adoptStyle==="right"?a.rightSibling:a;if(!y)return this.defaultStyle;if(y.type==="group"){const b=y.branch("body");return!b||b.length<2?{}:this.adoptStyle==="right"?b[1].computedStyle:b[b.length-1].computedStyle}return y.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Ic(this)),Xf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,jh())}showMenu(a){var y,b;const z=(b=(y=a==null?void 0:a.location)!=null?y:Mc(this.field))!=null?b:void 0,ue=a==null?void 0:a.modifiers,Pe=this.element.querySelector("[part=container]");return this._menu.show({target:Pe,location:z,modifiers:ue})}get colorMap(){return a=>{var y,b,z;return(z=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?z:Ie(a)}}get backgroundColorMap(){return a=>{var y,b,z,ue,Pe,Ke;return(Ke=(Pe=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?Pe:(ue=(z=this.options).colorMap)==null?void 0:ue.call(z,a))!=null?Ke:Be(a)}}get smartFence(){var a;return(a=this.options.smartFence)!=null?a:!1}get readOnly(){var a;return(a=this.options.readOnly)!=null?a:!1}get disabled(){var a,y;return(y=(a=this.host)==null?void 0:a.disabled)!=null?y:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const a=getComputedStyle(this.host);return a.getPropertyValue("user-select")||a.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(a=>a.type==="prompt"&&!a.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const a=this.model.at(this.model.anchor),y=this.model.at(this.model.position),b=_r.commonAncestor(a,y);return!!((b==null?void 0:b.type)==="prompt"||b!=null&&b.parentPrompt)}get letterShapeStyle(){var a;return(a=this.options.letterShapeStyle)!=null?a:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const a=this.model.getAtoms(this.model.selection);if(a.length===0)return{};const y=ae({},a[0].style);for(const b of a)for(const[z,ue]of Object.entries(b.style))y[z]!==ue&&delete y[z];return y}queryStyle(a){const y=Nh(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const ct of Object.keys(y)){const ht=this.queryStyle({[ct]:y[ct]});if(ht==="none")return"none";if(ht==="some")return"some"}return"all"}const z=Object.keys(y)[0],ue=y[z];if(this.model.selectionIsCollapsed)return this.effectiveStyle[z]===ue?"all":"none";const Pe=this.model.getAtoms(this.model.selection,{includeChildren:!0});let Ke=Pe.length;if(Ke===0)return"none";let tt=0;for(const ct of Pe){if(ct.type==="first"){Ke-=1;continue}ct.style[z]===ue&&(tt+=1)}return tt===0?"none":tt===Ke?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,z]=X0(this.options.keybindings,(a=jd())!=null?a:K0());return((y=jd())==null?void 0:y.score)>0&&(this._keybindings=b,z.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",z)),b}get menu(){return this._menu}setOptions(a){var y;this.options=ae(ae({},this.options),Rf(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const z=_r.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==z)&&so.insert(this.model,z,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in a||"macros"in a||"registers"in a||"colorMap"in a||"backgroundColorMap"in a||"letterShapeStyle"in a||"minFontScale"in a||"readOnly"in a||"placeholderSymbol"in a)&&Bs(this)}getOptions(a){return Du(this.options,a)}getOption(a){return Du(this.options,a)}handleEvent(a){return pu(this,null,function*(){var y;if(Vl(this)){if(Eh(a)){if(!Dd(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const z=a.data.command;if(td(z)==="virtual-keyboard")return;this.executeCommand(z)}else b==="update-state"||(b==="focus"?this.focus({preventScroll:!0}):b==="blur"&&this.blur());return}switch(a.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&Vp(this,a);break;case"pointerdown":this.userSelect!=="none"&&(Vp(this,a),a.shiftKey===!1&&(yield am(a,this.element.querySelector("[part=container]"),this._menu))&&Uf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield am(a,this.element.querySelector("[part=container]"),this._menu))&&Uf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Xf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Vl(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Vl(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Vl(this))return;ge.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Yv(),ev(),vg()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return td(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Ic(this))),!1):sv(this,a)}get errors(){return np(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=oh(this.model,this.model.position))!=null?b:"math");const z=this.undoManager.canUndo();so.insert(this.model,a,y)&&(Bs(this),z||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const a=window.MathfieldElement.computeEngine;return a?a.box(a.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var a;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const z=window.mathVirtualKeyboard.boundingRect,ue=this.host.getBoundingClientRect();ue.bottom>z.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ue.bottom-z.top+8))}}this.dirty&&Tu(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Mc(this.field);else{const z=Od(this);if(z.length>0){let ue=-1/0,Pe=-1/0;for(const Ke of z)Ke.right>ue&&(ue=Ke.right),Ke.top<Pe&&(Pe=Ke.top);b={x:ue+y.left-this.field.scrollLeft,y:Pe+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const z=this.host.getBoundingClientRect(),ue=b.y;let Pe=this.host.scrollTop;ue<z.top?Pe=ue-z.top+this.host.scrollTop:ue>z.bottom&&(Pe=ue-z.bottom+this.host.scrollTop+b.height),this.host.scroll({top:Pe,left:0})}if(b){const z=b.x-window.scrollX;let ue=this.field.scrollLeft;z<y.left?ue=z-y.left+this.field.scrollLeft-20:z>y.right&&(ue=z-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ue})}}insert(a,y){return typeof a!="string"||a.length===0&&((y==null?void 0:y.insertionMode)==="insertBefore"||(y==null?void 0:y.insertionMode)==="insertAfter")||a.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),y=y!=null?y:{mode:"math"},y.focus&&this.focus(),y.feedback&&(window.MathfieldElement.keypressVibration&&pe()&&navigator.vibrate(Cp),window.MathfieldElement.playSound("keypress")),a==="\\\\"?Ip(this.model):a==="&"?Lp(this.model):this.model.selectionIsCollapsed?so.insert(this.model,a,ae({style:this.model.at(this.model.position).computedStyle},y)):so.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Bs(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var z;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ue=this.model.mode;if(this.model.mode=a,!((z=this.host)!=null&&z.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ue;return}const Pe=this.model.mode,{model:Ke}=this;Ke.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let tt=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ct=ul(y,{context:this.context,parseMode:a});Ke.collapseSelection("forward");const ht=Ke.at(Ke.position);Ke.position=Ke.offsetOf(ht.parent.addChildrenAfter(ct,ht)),tt=!0}if(this.model.mode=a,a==="latex"){let ct=Ke.selectionIsCollapsed;qu(this,"accept");let ht,bt=Ke.at(Ke.position);if(ct)ht="\\";else{const Xt=ll(Ke.selection);ht=this.model.getValue(Xt,"latex");const hn=this.model.extractAtoms(Xt);hn.length===1&&hn[0].type==="placeholder"&&(ht=y,ct=!0),bt=Ke.at(Xt[0])}const Bt=new Ld(ht);bt.parent.addChildAfter(Bt,bt),ct?Ke.position=Ke.offsetOf(Bt.lastChild):Ke.setSelection(Ke.offsetOf(Bt.firstChild),Ke.offsetOf(Bt.lastChild))}else Kd(Ke).forEach(ct=>{ct.isError=!1});if(b){const ct=ul(b,{context:this.context,parseMode:Pe});Ke.collapseSelection("forward");const ht=Ke.at(Ke.position);Ke.position=Ke.offsetOf(ht.parent.addChildrenAfter(ct,ht)),tt=!0}return Bs(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),tt}),this.model.mode=a,window.mathVirtualKeyboard.update(Ic(this))}hasFocus(){return!this.blurred}focus(a){var y;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(y=a==null?void 0:a.preventScroll)!=null&&y||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(a,y={}){var b,z;const ue={operation:"set",silenceNotifications:!1};Uu(y)?ue.range=y:(y.operation==="toggle"&&(ue.operation="toggle"),ue.range=y.range,ue.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const Pe=Nh(this,a),Ke=(z=ue.operation)!=null?z:"set";if(ue.range===void 0&&this.model.selectionIsCollapsed){if(Ke==="set"){this.defaultStyle=ae(ae({},this.defaultStyle),Pe);return}const tt=ae({},this.defaultStyle);for(const ct of Object.keys(Pe))tt[ct]===Pe[ct]?(ct==="color"&&delete tt.verbatimColor,ct==="backgroundColor"&&delete tt.verbatimBackgroundColor,delete tt[ct]):tt[ct]=Pe[ct];this.defaultStyle=tt;return}this.model.deferNotifications({content:!ue.silenceNotifications,type:"insertText"},()=>{if(ue.range===void 0)for(const tt of this.model.selection.ranges)Mh(this.model,tt,Pe,{operation:Ke});else Mh(this.model,ue.range,Pe,{operation:Ke})}),Bs(this)}toggleContextMenu(){var a;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(a=this.getCaretPoint())!=null?a:void 0,onDismiss:()=>{var y;return(y=this.element)==null?void 0:y.focus()}}),!0):!1}getCaretPoint(){const a=Mc(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Xd(this,a,y,{bias:0});if(b<0)return!1;const z=this.model.position;return this.model.position=b,this.model.announce("move",z),Bs(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const z=this.model.offsetOf(b.firstChild),ue=this.model.offsetOf(b.lastChild);return this.model.getValue(z,ue,y)}getPrompts(a){return this.model.getAllAtoms().filter(y=>y.type!=="prompt"?!1:a?!(a.id&&y.placeholderId!==a.id||a.locked&&y.locked!==a.locked||a.correctness==="undefined"&&y.correctness||a.correctness&&y.correctness!==a.correctness):!0).map(y=>y.placeholderId)}setPromptValue(a,y,b){if(y!==void 0){const z=this.getPrompt(a);if(!z){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ue=this.model.getBranchRange(this.model.offsetOf(z),"body");this.model.setSelection(ue),this.insert(y,ne(ae({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Bs(this)}setPromptState(a,y,b){const z=this.getPrompt(a);if(!z){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?z.correctness=void 0:typeof y=="string"&&(z.correctness=y),typeof b=="boolean"&&(z.locked=b,z.captureSelection=b),Bs(this)}getPromptState(a){const y=this.getPrompt(a);return y?[y.correctness,y.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[void 0,!0])}getPromptRange(a){const y=this.getPrompt(a);return y?this.model.getBranchRange(this.model.offsetOf(y),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(a){var y;this.undoManager.snapshot(a)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Ic(this)),(y=this.host)==null||y.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var a;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Ic(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var a;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Ic(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var a;(a=this.undoManager)==null||a.reset()}onSelectionDidChange(){var a,y;const b=this.model;this.keyboardDelegate.setValue(b.getValue(this.model.selection,"latex-expanded"));{const z=b.at(b.position),ue=(a=z.mode)!=null?a:Dp(this.options);this.model.mode!==ue&&(this.model.mode==="latex"?(qu(this,"accept",{mode:ue}),b.position=b.offsetOf(z)):this.switchMode(ue))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Ic(this)),Xf(this)}onContentWillChange(a){var y,b,z;return(z=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",ne(ae({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?z:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),Tu(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var a,y,b;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",ed(this),this.model.getValue()!==this.valueOnFocus&&((a=this.host)==null||a.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(y=this.host)==null||y.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(b=this.host)==null||b.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),Bs(this),this.focusBlurInProgress=!1,jh();const z=new AbortController,ue=z.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Vl(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ue})},{once:!0,signal:ue}),setTimeout(()=>z.abort(),100)}onInput(a){Ih(this,a)}onKeystroke(a){return Hp(this,a)}onCompositionStart(a){this.model.deleteAtoms(ll(this.model.selection));const y=Mc(this.field);y&&requestAnimationFrame(()=>{Tu(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Ov(this.model,a),Bs(this)}onCompositionEnd(a){Dv(this.model),Ih(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),so.onCopy(this,a),Pc(this.model,ll(this.model.selection),"deleteByCut"),this.snapshot("cut"),Bs(this))}onCopy(a){so.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=so.onPaste(this.model.at(this.model.position).mode,this,a.clipboardData)),y||this.model.announce("plonk"),a.preventDefault(),a.stopPropagation(),y}onGeometryChange(){this._menu.hide(),kf(this),Xf(this)}onWheel(a){const y=5*a.deltaX;if(!Number.isFinite(y)||y===0)return;const b=this.field;y<0&&b.scrollLeft===0||y>0&&b.offsetWidth+b.scrollLeft>=b.scrollWidth||(b.scrollBy({top:0,left:y}),a.preventDefault(),a.stopPropagation())}getHTMLElement(a){let y=a;for(;!y.id&&y.hasChildren;)y=a.children[0];return this.field.querySelector(`[data-atom-id="${y.id}"]`)}get context(){var a,y;return{registers:(a=this.options.registers)!=null?a:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(y=this.options.placeholderSymbol)!=null?y:"\u25A2",colorMap:b=>this.colorMap(b),backgroundColorMap:b=>this.backgroundColorMap(b),getMacro:b=>sn(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gm(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gm(y)}function ep(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(z=>{z instanceof HTMLElement&&ep(z)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(z=>{z instanceof HTMLElement&&ep(z,y)})))}function py(a,y){var b;if(!ce())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(y);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const z=new window.AWS.Polly({apiVersion:"2016-06-10"}),ue={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};hu().readAloudElement=a,z.synthesizeSpeech(ue,(Pe,Ke)=>{if(Pe){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${Pe}`);return}if(!(Ke!=null&&Ke.AudioStream)){console.log("polly.synthesizeSpeech():",Ke);return}const tt=new TextDecoder("utf-8").decode(new Uint8Array(Ke.AudioStream));hu().readAloudMarks=tt.split(`
|
|
|
`).map(ct=>ct?JSON.parse(ct):{}),hu().readAloudTokens=[];for(const ct of hu().readAloudMarks)ct.value&&hu().readAloudTokens.push(ct.value);hu().readAloudCurrentMark="",ue.OutputFormat="mp3",ue.SpeechMarkTypes=[],z.synthesizeSpeech(ue,(ct,ht)=>{if(ct){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ct}`);return}if(!(ht!=null&&ht.AudioStream))return;const bt=new Uint8Array(ht.AudioStream),Bt=new Blob([bt.buffer],{type:"audio/mpeg"}),Xt=URL.createObjectURL(Bt),hn=hu();hn.readAloudAudio?hn.readAloudAudio.pause():(hn.readAloudAudio=new Audio,hn.readAloudAudio.addEventListener("ended",()=>{const wn=hn.readAloudMathfield;hn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),wn?(Tu(wn),hn.readAloudElement=null,hn.readAloudMathfield=null,hn.readAloudTokens=[],hn.readAloudMarks=[],hn.readAloudCurrentMark=""):gm(hn.readAloudElement)}),hn.readAloudAudio.addEventListener("timeupdate",()=>{let wn="";const Sr=hn.readAloudAudio.currentTime*1e3+100;for(const ui of hn.readAloudMarks)ui.time<Sr&&(wn=ui.value);hn.readAloudCurrentMark!==wn&&(hn.readAloudCurrentToken=wn,wn&&wn===hn.readAloudFinalToken?hn.readAloudAudio.pause():(hn.readAloudCurrentMark=wn,ep(hn.readAloudElement,hn.readAloudCurrentMark)))})),hn.readAloudAudio.src=Xt,hn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),hn.readAloudAudio.play()})})}ce()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var zo=new WeakMap,my=.5,fu={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},vl=class Fu extends HTMLElement{static get formAssociated(){return fd()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,rv())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,z,ue;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(z=y.return)!=null?z:y.default,delete:(ue=y.delete)!=null?ue:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return ge.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),ge.locale=y}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(y){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return ge.strings}static set strings(y){ge.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const z=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!z)return null;this._computeEngine=new z,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(b=this._computeEngine)!=null?b:null}static set computeEngine(y){this._computeEngine=y}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(y){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return pu(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const z=this.soundsDirectory;if(!(z==null||z==="null"||b==="none"||b==="null"))try{const Pe=yield(yield fetch(yield wp(`${z}/${b}`))).arrayBuffer(),Ke=yield this.audioContext.decodeAudioData(Pe);this.audioBuffers[y]=Ke}catch(ue){}})}static playSound(y){return pu(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const z=this.audioContext.createGain();z.gain.value=my,b.connect(z).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const z of Object.keys(y))if(fu[z])if(fu[z].startsWith("mf."))if(fu[z].startsWith(`mf.${z}`))b.push(`Option \`${z}\` cannot be used as a constructor option. Use ${fu[z]}`);else{const ue=fu[z].match(/([a-zA-Z]+) =/);b.push(`Option \`${z}\` has been renamed \`${ue[1]}\``)}else b.push(`Option \`${z}\` cannot be used as a constructor option. Use ${fu[z]}`);if(b.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const z of b)console.warn(z);console.groupEnd()}}if(fd()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[lu("core"),lu("mathfield"),lu("mathfield-element"),lu("ui"),lu("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="<style>"+Wc("core")+Wc("mathfield")+Wc("mathfield-element")+Wc("ui")+Wc("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const z=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=z==null?void 0:z.assignedNodes().map(ue=>ue.nodeType===3?ue.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?z:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var z,ue;return(ue=(z=this._mathfield)==null?void 0:z.getPromptValue(y,b))!=null?ue:""}setPromptValue(y,b,z){var ue;(ue=this._mathfield)==null||ue.setPromptValue(y,b,z)}getPromptRange(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?z:null}getPrompts(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?z:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,z;if(!this._mathfield)return;const ue=(z=(b=Fu.computeEngine)==null?void 0:b.box(y).latex)!=null?z:null;ue!==null&&this._mathfield.setValue(ue),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.errors)!=null?b:[]}_getOptions(y){return this._mathfield?Du(this._mathfield.options,y):zo.has(this)?ae({},Du(ae(ae({},Bf()),Rf(zo.get(this).options)),y)):null}getOptions(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?Du(this._mathfield.options,y):zo.has(this)?Du(ae(ae({},Bf()),Rf(zo.get(this).options)),y):null}reflectAttributes(){const y=Bf(),b=this._getOptions();Object.keys(Fu.optionsAttributes).forEach(z=>{const ue=Gc(z);Fu.optionsAttributes[z]==="on/off"?y[ue]!==b[ue]?this.setAttribute(z,b[ue]?"on":"off"):this.removeAttribute(z):y[ue]!==b[ue]&&(Fu.optionsAttributes[z]==="boolean"?b[ue]?this.setAttribute(z,""):this.removeAttribute(z):(typeof b[ue]=="string"||typeof b[ue]=="number")&&this.setAttribute(z,b[ue].toString()))})}getOption(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([y])[y]}_getOption(y){return this._getOptions([y])[y]}_setOptions(y){if(this._mathfield)this._mathfield.setOptions(y);else if(zo.has(this)){const b=ae(ae({},zo.get(this).options),y);zo.set(this,ne(ae({},zo.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else zo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:y,menuItems:void 0});this.reflectAttributes()}setOptions(y){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const b of Object.keys(y))fu[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${fu[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?z:!1}getValue(y,b,z){var ue,Pe;if(this._mathfield)return this._mathfield.model.getValue(y,b,z);if(zo.has(this)){let Ke,tt,ct;if(Vu(y)?([Ke,tt]=y.ranges[0],ct=b):Uu(y)?([Ke,tt]=y,ct=b):Cc(y)&&Cc(b)?(Ke=y,tt=b,ct=z):(Ke=0,tt=-1,ct=y),(ct===void 0||ct==="latex")&&Ke===0&&tt===-1)return(Pe=(ue=zo.get(this).value)!=null?ue:this.textContent)!=null?Pe:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(zo.has(this)){const ue=zo.get(this).options;zo.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ue,menuItems:void 0});return}const z=tf(this);zo.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:z,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var z,ue;return(ue=(z=this._mathfield)==null?void 0:z.insert(y,b))!=null?ue:!1}applyStyle(y,b){var z;return(z=this._mathfield)==null?void 0:z.applyStyle(y,b)}queryStyle(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?z:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var z,ue;return(ue=(z=this._mathfield)==null?void 0:z.setCaretPoint(y,b))!=null?ue:!1}offsetFromPoint(y,b,z){return this._mathfield?Xd(this._mathfield,y,b,z):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const z=ou(this._mathfield,b);return z?new DOMRect(z.left,z.top,z.right-z.left,z.bottom-z.top):null}resetUndo(){var y;(y=this._mathfield)==null||y.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(y){var b,z,ue,Pe;Tc.state==="closed"&&((z=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:z.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ue=this._mathfield)==null||ue.focus()),y.type==="blur"&&((Pe=this._mathfield)==null||Pe.blur()))}connectedCallback(){var y,b,z,ue;const Pe=window.getComputedStyle(this),Ke=this.shadowRoot,tt=Pe.userSelect!=="none";if(tt)Ke.host.addEventListener("pointerdown",this,!0);else{const bt=Ke.querySelector("span");bt.style.pointerEvents="none"}Ke.host.addEventListener("focus",this,!0),Ke.host.addEventListener("blur",this,!0),fd()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),tt&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ct=Ke.querySelector("slot:not([name])");if(ct)try{this._style=ct.assignedElements().filter(bt=>bt.tagName.toLowerCase()==="style").map(bt=>bt.textContent).join("")}catch(bt){console.error(bt)}if(this._style){const bt=document.createElement("style");bt.textContent=this._style,Ke.appendChild(bt)}let ht="";if(this.hasAttribute("value")?ht=this.getAttribute("value"):ht=(y=ct==null?void 0:ct.assignedNodes().map(bt=>bt.nodeType===3?bt.textContent:"").join("").trim())!=null?y:"",this._mathfield=new hy(Ke.querySelector(":host > span"),ne(ae({},(z=(b=zo.get(this))==null?void 0:b.options)!=null?z:tf(this)),{eventSink:this,value:ht})),!zo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const bt of Object.keys(Fu.optionsAttributes))this.upgradeProperty(Gc(bt))}if(!((ue=this._mathfield)!=null&&ue.model)){this._mathfield=null;return}if(zo.has(this)){const bt=this._mathfield,Bt=zo.get(this),Xt=Bt.menuItems;bt.model.deferNotifications({content:!1,selection:!1},()=>{const hn=Bt.value;hn!==void 0&&bt.setValue(hn),bt.model.selection=Bt.selection,zo.delete(this)}),Xt&&(this.menuItems=Xt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Of()}disconnectedCallback(){var y,b;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const z=Du(this._mathfield.options,Object.keys(Fu.optionsAttributes).map(ue=>Gc(ue)));zo.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(b=(y=this._mathfield.menu)==null?void 0:y.menuItems)!=null?b:void 0,options:z}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(y){if(this.hasOwnProperty(y)){const b=this[y];delete this[y],(y==="readonly"||y==="read-only")&&(y="readOnly"),this[y]=b}}attributeChangedCallback(y,b,z){if(b===z)return;const ue=z!==null;switch(y){case"contenteditable":Bs(this._mathfield);break;case"disabled":this.disabled=ue;break;case"read-only":case"readonly":this.readOnly=ue;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),fd()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(fd()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const z=!!y;z?this.setAttribute("disabled",""):this.removeAttribute("disabled"),fd()?this._internals.ariaDisabled=z?"true":"false":this.setAttribute("aria-disabled",z?"true":"false"),z&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,z)=>{if(typeof z=="string")return y._getOption("registers")[z]},set(b,z,ue){return typeof z!="string"?!1:(y._setOptions({registers:ne(ae({},y._getOption("registers")),{[z]:ue})}),!0)}})}set registers(y){this._setOptions({registers:y})}get colorMap(){return this._getOption("colorMap")}set colorMap(y){this._setOptions({colorMap:y})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(y){this._setOptions({backgroundColorMap:y})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(y){this._setOptions({letterShapeStyle:y})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(y){this._setOptions({minFontScale:y})}get smartMode(){return this._getOption("smartMode")}set smartMode(y){this._setOptions({smartMode:y})}get smartFence(){return this._getOption("smartFence")}set smartFence(y){this._setOptions({smartFence:y})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(y){this._setOptions({smartSuperscript:y})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(y){this._setOptions({scriptDepth:y})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(y){this._setOptions({removeExtraneousParentheses:y})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(y){this._setOptions({mathModeSpace:y})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(y){this._setOptions({placeholderSymbol:y})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(y){this._setOptions({popoverPolicy:y})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(y){this._setOptions({environmentPopoverPolicy:y})}get menuItems(){var y,b,z;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ue=>ue.menuItem))!=null?y:[]:(z=(b=zo.get(this))==null?void 0:b.menuItems)!=null?z:[]}set menuItems(y){var b;if(this._mathfield){const z=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");z&&(z.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}zo.has(this)?zo.set(this,ne(ae({},zo.get(this)),{menuItems:y})):zo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:tf(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,z){var ue;(ue=this._mathfield)==null||ue.setPromptState(y,b,z)}getPromptState(y){var b,z;return(z=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?z:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:zo.has(this)?zo.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(y){if(typeof y=="number"&&(y={ranges:[[y,y]]}),this._mathfield){this._mathfield.model.selection=y,Bs(this._mathfield);return}if(zo.has(this)){zo.set(this,ne(ae({},zo.get(this)),{selection:y}));return}zo.set(this,{value:void 0,selection:y,options:tf(this),menuItems:void 0})}get selectionIsCollapsed(){const y=this.selection;return y.ranges.length===1&&y.ranges[0][0]===y.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:zo.has(this)?zo.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Bs(this._mathfield)),zo.has(this)){zo.set(this,ne(ae({},zo.get(this)),{selection:{ranges:[[y,y]]}}));return}zo.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:tf(this),menuItems:void 0})}getOffsetDepth(y){var b,z;return this._mathfield?((z=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?z:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};vl.version="0.98.5",vl._fontsDirectory="./fonts",vl._soundsDirectory="./sounds",vl.keypressVibration=!0,vl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},vl._plonkSound="plonk.wav",vl.audioBuffers={},vl.createHTML=a=>a,vl._speechEngineRate="100%",vl._speechEngineVoice="Joanna",vl._textToSpeechMarkup="",vl._textToSpeechRules="mathlive",vl._textToSpeechRulesOptions={},vl.speakHook=iy,vl.readAloudHook=py,vl._decimalSeparator=".",vl.fractionNavigationOrder="numerator-denominator",vl._isFunction=a=>{var y,b;const z=window.MathfieldElement.computeEngine;return(b=(y=z==null?void 0:z.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var ef=vl;function Gc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function tf(a){const y={readOnly:!1},b=ef.optionsAttributes;return Object.keys(b).forEach(z=>{if(a.hasAttribute(z)){const ue=a.getAttribute(z);z==="placeholder"?y.contentPlaceholder=ue!=null?ue:"":b[z]==="boolean"?y[Gc(z)]=!0:b[z]==="on/off"?ue==="on"?y[Gc(z)]=!0:ue==="off"?y[Gc(z)]=!1:y[Gc(z)]=void 0:b[z]==="number"?y[Gc(z)]=Number.parseFloat(ue!=null?ue:"0"):y[Gc(z)]=ue}}),y}function fd(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var ym=ef,bm,xm,wm,Sm;if(ce()&&!((bm=window.customElements)!=null&&bm.get("math-field"))){(wm=window[xm=Symbol.for("io.cortexjs.mathlive")])!=null||(window[xm]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=ef,(Sm=window.customElements)==null||Sm.define("math-field",ef)}function vy(a,y,b){let z=b,ue=0;const Pe=a.length;for(;z<y.length;){const Ke=y[z];if(ue<=0&&y.slice(z,z+Pe)===a)return z;Ke==="\\"?z++:Ke==="{"?ue++:Ke==="}"&&ue--,z++}return-1}function qf(a,y,b,z,ue="latex"){const Pe=[];for(const Ke of a)if(Ke.type==="text"){const tt=Ke.data;let ct=!0,ht=0,bt;bt=tt.indexOf(y),bt!==-1&&(ht=bt,ht>0&&Pe.push({type:"text",data:tt.slice(0,ht)}),ct=!1);let Bt=!1;for(;!Bt;){if(ct){if(bt=tt.indexOf(y,ht),bt===-1){Bt=!0;break}ht!==bt&&Pe.push({type:"text",data:tt.slice(ht,bt)}),ht=bt}else{if(bt=vy(b,tt,ht+y.length),bt===-1){Bt=!0;break}let Xt=tt.slice(ht+y.length,bt);ue==="ascii-math"&&([,Xt]=Eu(Xt,{format:"ascii-math"})),Pe.push({type:"math",data:Xt,rawData:tt.slice(ht,bt+b.length),mathstyle:z}),ht=bt+b.length}ct=!ct}ht<tt.length&&Pe.push({type:"text",data:tt.slice(ht)})}else Pe.push(Ke);return Pe}function Cm(a,y,b){let z=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ue,Pe])=>{z=qf(z,ue,Pe,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ue,Pe])=>{z=qf(z,ue,Pe,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ue,Pe])=>{z=qf(z,ue,Pe,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ue,Pe])=>{z=qf(z,ue,Pe,"displaystyle","ascii-math")}),z}function gy(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const z="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(z)}catch(z){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${z}`),b.textContent=a}return b.className="ML__sr-only",b}function yy(a,y,b,z){try{const ue=y.renderToMarkup(a,{mathstyle:b,format:"html"}),Pe=document.createElement("span");return Pe.dataset.latex=a,Pe.style.display=b==="displaystyle"?"flex":"inline-flex",Pe.setAttribute("aria-hidden","true"),Pe.setAttribute("translate","no"),Pe.innerHTML=window.MathfieldElement.createHTML(ue),Pe}catch(ue){if(console.error("Could not parse'"+a+"' with ",ue),z)return document.createTextNode(a)}return null}function hd(a,y,b,z){var ue;const Pe=yy(a,b,y||"textstyle",z),Ke=(ue=b.renderAccessibleContent)!=null?ue:"";if(Pe&&/\b(mathml|speakable-text)\b/i.test(Ke)){const tt=document.createElement("span");if(/\bmathml\b/i.test(Ke)&&b.renderToMathML&&tt.append(gy(a,b)),/\bspeakable-text\b/i.test(Ke)&&b.renderToSpeakableText){const ct=document.createElement("span");ct.setAttribute("translate","no");const ht=b.renderToSpeakableText(a);ct.innerHTML=window.MathfieldElement.createHTML(ht),ct.className="ML__sr-only",tt.append(ct)}return tt.append(Pe),tt}return Pe}function by(a,y){var b,z,ue;let Pe=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){Pe=document.createDocumentFragment();const Ke=hd(a,"",y,!0);Ke&&Pe.appendChild(Ke)}else{if(!a.trim())return null;const Ke=Cm(a,(z=y.TeX)==null?void 0:z.delimiters,(ue=y.asciiMath)==null?void 0:ue.delimiters);if(Ke.length===1&&Ke[0].type==="text")return null;Pe=document.createDocumentFragment();for(const tt of Ke)if(tt.type==="text")Pe.appendChild(document.createTextNode(tt.data));else{const ct=hd(tt.data,tt.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ct&&Pe.appendChild(ct)}}return Pe}function Em(a,y){var b,z,ue,Pe,Ke,tt,ct,ht,bt,Bt,Xt,hn,wn,Sr,ui,yr;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Zr=(b=a.childNodes[0].textContent)!=null?b:"";if((z=y.TeX)!=null&&z.processEnvironments&&/^\s*\\begin/.test(Zr)){a.textContent="";const $r=hd(Zr,"",y,!0);$r&&a.append($r);return}const mi=Cm(Zr,(ue=y.TeX)==null?void 0:ue.delimiters,(Pe=y.asciiMath)==null?void 0:Pe.delimiters);if(mi.length===1&&mi[0].type==="math"){a.textContent="";const $r=hd(mi[0].data,mi[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);$r&&a.append($r);return}if(mi.length===1&&mi[0].type==="text")return}for(let Zr=a.childNodes.length-1;Zr>=0;Zr--){const mi=a.childNodes[Zr];if(mi.nodeType===3){const $r=by((Ke=mi.textContent)!=null?Ke:"",y);$r&&(Zr+=$r.childNodes.length-1,mi.replaceWith($r))}else if(mi.nodeType===1){const $r=mi,da=mi.nodeName.toLowerCase();if(da==="script"){const _a=mi;let Ta;if((tt=y.processScriptTypePattern)!=null&&tt.test(_a.type))Ta=(ct=_a.textContent)!=null?ct:"";else if((ht=y.processMathJSONScriptTypePattern)!=null&&ht.test(_a.type))try{Ta=(Bt=y.serializeToLatex)==null?void 0:Bt.call(y,JSON.parse((bt=_a.textContent)!=null?bt:""))}catch(Ro){console.error(Ro)}if(Ta){let Ro="textstyle";for(const Ei of _a.type.split(";")){const[Yl,Nc]=Ei.toLowerCase().split("=");Yl.trim()==="mode"&&(Ro=Nc.trim()==="display"?"displaystyle":"textstyle")}const is=hd(Ta,Ro,y,!0);is&&_a.parentNode.replaceChild(is,_a)}}else if(((hn=(Xt=y.processClassPattern)==null?void 0:Xt.test($r.className))!=null?hn:!1)||!((Sr=(wn=y.skipTags)==null?void 0:wn.includes(da))!=null&&Sr||(yr=(ui=y.ignoreClassPattern)==null?void 0:ui.test($r.className))!=null&&yr))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Ta=a.textContent;a.textContent="";const Ro=hd(Ta!=null?Ta:"","displaystyle",y,!0);Ro&&a.append(Ro)}else Em($r,y)}}}var xy={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function wy(a,y){var b,z,ue,Pe;try{const Ke=ae(ae({},xy),y);Ke.ignoreClassPattern=new RegExp((b=Ke.ignoreClass)!=null?b:""),Ke.processClassPattern=new RegExp((z=Ke.processClass)!=null?z:""),Ke.processScriptTypePattern=new RegExp((ue=Ke.processScriptType)!=null?ue:""),Ke.processMathJSONScriptTypePattern=new RegExp((Pe=Ke.processMathJSONScriptType)!=null?Pe:""),Of(),jl("core"),Em(a,Ke)}catch(Ke){Ke instanceof Error?console.error("renderMathInElement(): "+Ke.message):console.error("renderMathInElement(): Could not render math for element",a)}}function Sy(a,y){const b=uu.singleton;return b?(b.show(),Wd(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function Cy(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}Kl({switchKeyboardLayer:Sy,toggleVirtualKeyboard:Cy,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function hu(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Iy(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function Ly(a){Ay(document.body,a)}function Ey(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function Ay(a,y){var b,z,ue,Pe;const Ke=Ey(a);if(!Ke)return;const tt=y!=null?y:{};(b=tt.renderToMarkup)!=null||(tt.renderToMarkup=dl),(z=tt.renderToMathML)!=null||(tt.renderToMathML=_g),(ue=tt.renderToSpeakableText)!=null||(tt.renderToSpeakableText=Fg),(Pe=tt.serializeToLatex)!=null||(tt.serializeToLatex=jg),wy(Ke,tt)}var Py={mathlive:"0.98.5"}},17423:function(tn,Kt,me){"use strict";me.d(Kt,{Z:function(){return ae}});const Oe=ne=>typeof ne=="object"&&ne!=null&&ne.nodeType===1,Je=(ne,oe)=>(!oe||ne!=="hidden")&&ne!=="visible"&&ne!=="clip",x=(ne,oe)=>{if(ne.clientHeight<ne.scrollHeight||ne.clientWidth<ne.scrollWidth){const he=getComputedStyle(ne,null);return Je(he.overflowY,oe)||Je(he.overflowX,oe)||(re=>{const se=(ce=>{if(!ce.ownerDocument||!ce.ownerDocument.defaultView)return null;try{return ce.ownerDocument.defaultView.frameElement}catch(fe){return null}})(re);return!!se&&(se.clientHeight<re.scrollHeight||se.clientWidth<re.scrollWidth)})(ne)}return!1},Te=(ne,oe,he,re,se,ce,fe,pe)=>ce<ne&&fe>oe||ce>ne&&fe<oe?0:ce<=ne&&pe<=he||fe>=oe&&pe>=he?ce-ne-re:fe>oe&&pe<he||ce<ne&&pe>he?fe-oe+se:0,ve=ne=>{const oe=ne.parentElement;return oe==null?ne.getRootNode().host||null:oe},ie=(ne,oe)=>{var he,re,se,ce;if(typeof document=="undefined")return[];const{scrollMode:fe,block:pe,inline:le,boundary:Se,skipOverflowHiddenElements:xe}=oe,ge=typeof Se=="function"?Se:st=>st!==Se;if(!Oe(ne))throw new TypeError("Invalid target");const Me=document.scrollingElement||document.documentElement,ye=[];let be=ne;for(;Oe(be)&&ge(be);){if(be=ve(be),be===Me){ye.push(be);break}be!=null&&be===document.body&&x(be)&&!x(document.documentElement)||be!=null&&x(be,xe)&&ye.push(be)}const Fe=(re=(he=window.visualViewport)==null?void 0:he.width)!=null?re:innerWidth,ke=(ce=(se=window.visualViewport)==null?void 0:se.height)!=null?ce:innerHeight,{scrollX:De,scrollY:Le}=window,{height:Ie,width:Be,top:Ue,right:_e,bottom:We,left:Ze}=ne.getBoundingClientRect(),{top:et,right:it,bottom:pt,left:Ge}=(st=>{const nt=window.getComputedStyle(st);return{top:parseFloat(nt.scrollMarginTop)||0,right:parseFloat(nt.scrollMarginRight)||0,bottom:parseFloat(nt.scrollMarginBottom)||0,left:parseFloat(nt.scrollMarginLeft)||0}})(ne);let Xe=pe==="start"||pe==="nearest"?Ue-et:pe==="end"?We+pt:Ue+Ie/2-et+pt,lt=le==="center"?Ze+Be/2-Ge+it:le==="end"?_e+it:Ze-Ge;const dt=[];for(let st=0;st<ye.length;st++){const nt=ye[st],{height:rt,width:at,top:gt,right:vt,bottom:Et,left:At}=nt.getBoundingClientRect();if(fe==="if-needed"&&Ue>=0&&Ze>=0&&We<=ke&&_e<=Fe&&Ue>=gt&&We<=Et&&Ze>=At&&_e<=vt)return dt;const ut=getComputedStyle(nt),Ye=parseInt(ut.borderLeftWidth,10),Ve=parseInt(ut.borderTopWidth,10),de=parseInt(ut.borderRightWidth,10),Ce=parseInt(ut.borderBottomWidth,10);let He=0,je=0;const Ae="offsetWidth"in nt?nt.offsetWidth-nt.clientWidth-Ye-de:0,Ne="offsetHeight"in nt?nt.offsetHeight-nt.clientHeight-Ve-Ce:0,ze="offsetWidth"in nt?nt.offsetWidth===0?0:at/nt.offsetWidth:0,Qe="offsetHeight"in nt?nt.offsetHeight===0?0:rt/nt.offsetHeight:0;if(Me===nt)He=pe==="start"?Xe:pe==="end"?Xe-ke:pe==="nearest"?Te(Le,Le+ke,ke,Ve,Ce,Le+Xe,Le+Xe+Ie,Ie):Xe-ke/2,je=le==="start"?lt:le==="center"?lt-Fe/2:le==="end"?lt-Fe:Te(De,De+Fe,Fe,Ye,de,De+lt,De+lt+Be,Be),He=Math.max(0,He+Le),je=Math.max(0,je+De);else{He=pe==="start"?Xe-gt-Ve:pe==="end"?Xe-Et+Ce+Ne:pe==="nearest"?Te(gt,Et,rt,Ve,Ce+Ne,Xe,Xe+Ie,Ie):Xe-(gt+rt/2)+Ne/2,je=le==="start"?lt-At-Ye:le==="center"?lt-(At+at/2)+Ae/2:le==="end"?lt-vt+de+Ae:Te(At,vt,at,Ye,de+Ae,lt,lt+Be,Be);const{scrollLeft:ot,scrollTop:mt}=nt;He=Qe===0?0:Math.max(0,Math.min(mt+He/Qe,nt.scrollHeight-rt/Qe+Ne)),je=ze===0?0:Math.max(0,Math.min(ot+je/ze,nt.scrollWidth-at/ze+Ae)),Xe+=mt-He,lt+=ot-je}dt.push({el:nt,top:He,left:je})}return dt},te=ne=>ne===!1?{block:"end",inline:"nearest"}:(oe=>oe===Object(oe)&&Object.keys(oe).length!==0)(ne)?ne:{block:"start",inline:"nearest"};function ae(ne,oe){if(!ne.isConnected||!(se=>{let ce=se;for(;ce&&ce.parentNode;){if(ce.parentNode===document)return!0;ce=ce.parentNode instanceof ShadowRoot?ce.parentNode.host:ce.parentNode}return!1})(ne))return;const he=(se=>{const ce=window.getComputedStyle(se);return{top:parseFloat(ce.scrollMarginTop)||0,right:parseFloat(ce.scrollMarginRight)||0,bottom:parseFloat(ce.scrollMarginBottom)||0,left:parseFloat(ce.scrollMarginLeft)||0}})(ne);if((se=>typeof se=="object"&&typeof se.behavior=="function")(oe))return oe.behavior(ie(ne,oe));const re=typeof oe=="boolean"||oe==null?void 0:oe.behavior;for(const{el:se,top:ce,left:fe}of ie(ne,te(oe))){const pe=ce-he.top+he.bottom,le=fe-he.left+he.right;se.scroll({top:pe,left:le,behavior:re})}}}}]);
|
|
|
}()); |