|
|
!(function(){var Fd=Math.pow;var ef=(In,Ut,te)=>new Promise((E,fe)=>{var Ie=Be=>{try{xe(te.next(Be))}catch(de){fe(de)}},Te=Be=>{try{xe(te.throw(Be))}catch(de){fe(de)}},xe=Be=>Be.done?E(Be.value):Promise.resolve(Be.value).then(Ie,Te);xe((te=te.apply(In,Ut)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[75816],{33463:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Te=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},28575:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Te=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},18299:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},81893:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Te=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},42922:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},25877:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},55304:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},63237:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},99569:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},73148:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},56747:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},50881:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},22751:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},24018:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},Te=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},34182:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},40043:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-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 8h152v152c0 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-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},Te=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},38308:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},74664:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},17663:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},91034:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},72395:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},53978:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return de}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(pe,De){return fe.createElement(xe.Z,(0,E.Z)({},pe,{ref:De,icon:Te}))},de=fe.forwardRef(Be)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(In,Ut){"use strict";Ut.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(In,Ut){"use strict";Ut.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"}},14375:function(In,Ut,te){"use strict";var E=te(67294),fe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Be=(pe,De,Xe)=>De in pe?fe(pe,De,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):pe[De]=Xe,de=(pe,De)=>{for(var Xe in De||(De={}))Te.call(De,Xe)&&Be(pe,Xe,De[Xe]);if(Ie)for(var Xe of Ie(De))xe.call(De,Xe)&&Be(pe,Xe,De[Xe]);return pe};const Se=pe=>React.createElement("svg",de({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},pe),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Ut.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},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 In={},Ut="5.0",te={},E=null,fe=!1,Ie=!1,Te=null,xe=!1,Be=null,de=null,Se=0;Se<arguments.length;Se++){var pe=arguments[Se];if(pe!==null)switch(typeof pe){case"number":Ut=pe.toFixed(1);break;case"string":pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ut=pe:Te=pe;break;case"object":typeof pe.is3D!="undefined"?E=pe:te=pe;break;case"boolean":fe=pe,Ie=!0;break}}E===null&&(E={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},te.material_id!==void 0&&!Ie&&(fe=!0)),Te!==null&&te.id===void 0&&(te.id=Te);var De="",Xe="",Pe=!1,Ue=null,rt=null,qe=null,He=!1,be=null,Qe=null,ht=null,Je=null,Ze=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var ye=function(Et){return parseFloat(Et)>4?parseFloat(Et):5};In.setHTML5Codebase=function(Et,zt){de=Et,Dt(Et,zt)},In.setJavaCodebase=In.setJavaCodebaseVersion=In.isCompiledInstalled=In.setPreCompiledScriptPath=In.setPreCompiledResourcePath=function(){},In.setHTML5CodebaseVersion=function(Et,zt){var Yt=parseFloat(Et);if(Yt!==NaN&&Yt<5){console.log("The GeoGebra HTML5 codebase version "+Yt+" is deprecated. Using version latest instead.");return}Be=Et,Fe(Et,zt)},In.getHTML5CodebaseVersion=function(){return rt},In.getParameters=function(){return te},In.setFontsCSSURL=function(Et){Je=Et},In.setGiacJSURL=function(Et){},In.setJNLPFile=function(Et){De=Et},In.setJNLPBaseDir=function(Et){},In.inject=function(){function Et(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var zt="auto",Yt=te.id,Vn,Pn=!1,_t=0;_t<arguments.length;_t++){var pn=arguments[_t];typeof pn=="string"?(pn=pn.toLowerCase(),pn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?zt=pn:Yt=arguments[_t]):typeof pn=="boolean"?Pn=pn:pn instanceof HTMLElement&&(Vn=pn)}sr();function sr(){if(!xe){setTimeout(sr,200);return}zt=xt(zt);var Tn=Vn||document.getElementById(Yt);if(!Tn){console.log("possibly bug on ajax loading? ");return}if(In.removeExistingApplet(Tn,!1),te.width===void 0&&Tn.clientWidth&&(te.width=Tn.clientWidth),te.height===void 0&&Tn.clientHeight&&(te.height=Tn.clientHeight),!(te.width&&te.height)&&zt==="html5"&&(delete te.width,delete te.height),Ue=zt,zt==="screenshot")$e(Tn,te);else{var Oe=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?Oe=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&(Oe=(!Ee()||Et())&&Ye()),Oe?(Ue="screenshot",We(Tn,te,Pn,zt)):pt(Tn,te,Pn)}}};function Ee(){try{return window.self!==window.top}catch(Et){return!0}}function Ye(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}In.getViews=function(){return E},In.isJavaInstalled=function(){return!1};var Ne=function(Et){var zt=function(_t){var pn=JSON.parse(_t),sr=function(me){return me.type=="G"||me.type=="E"},Tn=pn.elements?pn.elements.filter(sr)[0]:pn;if(!Tn||!Tn.url){Yt();return}te.fileName=Tn.url,ot(Tn.settings||{}),E.is3D=!0;var Oe="https://www.geogebra.org/images/";In.setPreviewImage(be||Tn.previewUrl,Oe+"GeoGebra_loading.png",Oe+"applet_play.png"),Et()},Yt=function(){te.onError&&te.onError(),qt("Error: Fetching material (id "+te.material_id+") failed.",te)},Vn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Pn="/materials/"+te.material_id+"?scope=basic";ct("https://"+Vn+"/api/proxy.php?path="+encodeURIComponent(Pn),zt,Yt)};function ot(Et){var zt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Yt){Et[Yt]=!!Et[Yt]}),zt.forEach(function(Yt){te[Yt]===void 0&&Et[Yt]!==void 0&&(te[Yt]=Et[Yt])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function ct(Et,zt,Yt){var Vn=new XMLHttpRequest;Vn.open("GET",Et),Vn.onload=function(){zt(Vn.responseText)},Vn.onerror=Yt,Vn.send()}In.isHTML5Installed=function(){return!0},In.getLoadedAppletType=function(){return Ue},In.setPreviewImage=function(Et,zt,Yt){be=Et,Qe=zt,ht=Yt},In.removeExistingApplet=function(Et,zt){var Yt;typeof Et=="string"&&(Et=document.getElementById(Et)),Ue=null;var Vn=null;for(Yt=0;Yt<Et.childNodes.length;Yt++){var Pn=Et.childNodes[Yt],_t=Pn.className;_t==="applet_screenshot"?zt?(Pn.style.display="block",Ue="screenshot"):Pn.style.display="none":_t!=="applet_scaler prerender"&&(Et.removeChild(Pn),Vn=_t&&_t.indexOf("appletParameters")!=-1?Pn.id:null,Yt--)}var pn=te.id!==void 0?te.id:Vn,sr=window[pn];sr&&typeof sr.getBase64=="function"&&(sr.remove(),window[pn]=null)},In.refreshHitPoints=function(){if(ye(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Et=In.getAppletObject();return Et&&typeof Et.recalculateEnvironments=="function"?(Et.recalculateEnvironments(),!0):!1},In.startAnimation=function(){var Et=In.getAppletObject();return Et&&typeof Et.startAnimation=="function"?(Et.startAnimation(),!0):!1},In.stopAnimation=function(){var Et=In.getAppletObject();return Et&&typeof Et.stopAnimation=="function"?(Et.stopAnimation(),!0):!1},In.getAppletObject=function(){var Et=te.id!==void 0?te.id:"ggbApplet";return window[Et]},In.resize=function(){};var _e=function(Et,zt,Yt){var Vn=document.createElement("param");Vn.setAttribute("name",zt),Vn.setAttribute("value",Yt),Et.appendChild(Vn)},Me=function(Et){return Et&&Et!=="false"},pt=function(Et,zt,Yt){ye(rt)<=4.2&&(Yt=!0);var Vn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==rt||ggbHTML5LoadedCodebaseIsWebSimple&&!He)&&(Vn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Pn=document.createElement("div");Pn.classList.add("appletParameters","notranslate");var _t=zt.width,pn=zt.height;if(zt.disableAutoScale=zt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():zt.disableAutoScale,zt.width!==void 0)if(ye(rt)<=4.4)Me(zt.showToolBar)&&(zt.height-=7),Me(zt.showAlgebraInput)&&(zt.height-=37),zt.width<605&&Me(zt.showToolBar)&&(zt.width=605,_t=605);else{var sr=100;(Me(zt.showToolBar)||Me(zt.showMenuBar))&&(zt.hasOwnProperty("customToolBar")&&(zt.customToolbar=zt.customToolBar),sr=Me(zt.showMenuBar)?245:155),_t<sr&&(zt.width=sr,_t=sr)}Pn.style.border="none",Pn.style.display="inline-block";for(var Tn in zt)zt.hasOwnProperty(Tn)&&Tn!=="appletOnLoad"&&Pn.setAttribute("data-param-"+Tn,zt[Tn]);Je&&Pn.setAttribute("data-param-fontscssurl",Je),In.resize=function(){GGBAppletUtils.responsiveResize(Et,zt)},window.addEventListener("resize",function(wn){In.resize()});var Oe=typeof zt.appletOnLoad=="function"?zt.appletOnLoad:function(){};if(!Yt&&zt.width!==void 0){zt.hasOwnProperty("showSplash")||Pn.setAttribute("data-param-showSplash","false");var me=Et.querySelector(".applet_scaler.prerender"),he=me!==null;if(he)var ge=me.querySelector(".ggb_preview");else{var ge=kt(_t,pn,zt.borderColor,!1);me=document.createElement("div"),me.className="applet_scaler",me.style.position="relative",me.style.display="block",me.style.width=_t+"px",me.style.height=pn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(me,"66%"),ye(rt)>=5?(zt.appletOnLoad=function(wn){var Tt=Et.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(me),window.GGBT_wsf_view&&$(window).trigger("resize"),Oe(wn)},he||me.appendChild(ge)):Pn.appendChild(ge),me.appendChild(Pn),he||Et.appendChild(me),setTimeout(function(){In.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(Pn),Et.appendChild(ve),zt.appletOnLoad=function(wn){In.resize(),Oe(wn)}}function se(wn,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wn,Tt.appletOnLoad):renderGGBElement(wn),qt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function Ke(wn,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wn,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(nn){se(nn.article,nn.params)}),html5AppletsToProcess=null)},ye(rt)<5&&(wn.className+=" geogebraweb")):se(wn,Tt)}if(Vn){scriptLoadStarted=!0;for(var bt=0;bt<Pn.childNodes.length;bt++){var Wt=Pn.childNodes[bt].tagName;Wt==="TABLE"&&(Pn.removeChild(Pn.childNodes[bt]),bt--)}if(ggbHTML5LoadedScript!==null){var yn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');yn!=null&&yn.parentNode.removeChild(yn)}var bn=document.createElement("script"),cn=function(){Ke(Pn,zt)};bn.src=Xe+qe,ggbHTML5LoadedCodebaseIsWebSimple=He,ggbHTML5LoadedCodebaseVersion=rt,ggbHTML5LoadedScript=bn.src,qt("GeoGebra HTML5 codebase loaded: '"+Xe+"'.",zt),!de&&(!Be||Be=="5.0")?(He?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),cn()):Xe.requirejs?__webpack_require__.e(12).then(function(){var wn=[__webpack_require__(12)];cn.apply(null,wn)}.bind(this)).catch(__webpack_require__.oe):(bn.onload=cn,Et.appendChild(bn))}else Ke(Pn,zt);zt.height=pn,zt.width=_t},$e=function(Et,zt,Yt){var Vn=kt(zt.width,zt.height,zt.borderColor,Yt),Pn=document.createElement("div");Pn.style.position="relative",Pn.style.display="block",Pn.style.width=zt.width+"px",Pn.style.height=zt.height+"px",Pn.className="applet_screenshot applet_scaler"+(Yt?" applet_screenshot_play":""),Pn.appendChild(Vn);var _t=GGBAppletUtils.getScale(zt,Et,Yt);Yt?(Et.appendChild(gt()),window.GGBT_wsf_view||(Et.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pn,"66%"),Et.appendChild(Pn),_t!==1&&!isNaN(_t)&&(GGBAppletUtils.scaleElement(Pn,_t),Pn.style.width=zt.width+"px",Pn.style.height=zt.height+"px",Pn.parentNode.style.width=zt.width*_t+"px",Pn.parentNode.style.height=zt.height*_t+"px"),In.resize=function(){ft(Et,Vn,Pn,Yt)},window.addEventListener("resize",function(pn){In.resize()}),In.resize()};function ft(Et,zt,Yt,Vn){if(Et.contains(zt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Et.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Et)}var Pn=GGBAppletUtils.getScale(te,Et,Vn);Yt.parentNode!==null&&(!isNaN(Pn)&&Pn!==1?(GGBAppletUtils.scaleElement(Yt,Pn),Yt.parentNode.style.width=te.width*Pn+"px",Yt.parentNode.style.height=te.height*Pn+"px"):(GGBAppletUtils.scaleElement(Yt,1),Yt.parentNode.style.width=te.width+"px",Yt.parentNode.style.height=te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Et),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}In.onExitFullscreen=function(Et,zt){zt.appendChild(Et)};var We=function(Et,zt,Yt,Vn){$e(Et,zt,!0);for(var Pn=function(){var sr=[];for(pn=0;pn<Et.childNodes.length;pn++)sr.push(Et.childNodes[pn]);if(window.GGBT_wsf_view){var Tn=window.GGBT_wsf_view.renderFullScreen(Et,zt.id),Oe=document.getElementById("fullscreencontainer"),me=jQuery(Et).find(".fullscreencontent");me.length>0?(Tn.remove(),me.attr("id","fullscreencontent").show(),jQuery(Oe).append(me),window.dispatchEvent(new Event("resize"))):pt(Tn,zt,!1),window.GGBT_wsf_view.launchFullScreen(Oe)}else Ue=Vn,pt(Et,zt,!1);if(!window.GGBT_wsf_view)for(pn=0;pn<sr.length;pn++)Et.removeChild(sr[pn])},_t=Et.getElementsByClassName("ggb_preview_play"),pn=0;pn<_t.length;pn++)_t[pn].addEventListener("click",Pn,!1),_t[pn].addEventListener("ontouchstart",Pn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Et),Ye()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},gt=function(){var Et=document.createElement("div");if(Et.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var zt='.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");}',Yt=document.createElement("style");Yt.styleSheet?Yt.styleSheet.cssText=zt:Yt.appendChild(document.createTextNode(zt)),document.getElementsByTagName("head")[0].appendChild(Yt)}return Et},kt=function(Et,zt,Yt,Vn){var Pn=document.createElement("div");Pn.className="ggb_preview",Pn.style.position="absolute",Pn.style.zIndex="90",Pn.style.width=Et-2+"px",Pn.style.height=zt-2+"px",Pn.style.top="0px",Pn.style.left="0px",Pn.style.overflow="hidden",Pn.style.backgroundColor="white";var _t="lightgrey";Yt!==void 0&&(Yt==="none"?_t="transparent":_t=Yt),Pn.style.border="1px solid "+_t;var pn=document.createElement("img");if(pn.style.position="relative",pn.style.zIndex="1000",pn.style.top="-1px",pn.style.left="-1px",be!==null&&pn.setAttribute("src",be),pn.style.opacity=.7,Qe!==null){var sr,Tn,Oe;if(!Vn){sr=document.createElement("img"),sr.style.position="absolute",sr.style.zIndex="1001",sr.style.opacity=1,pn.style.opacity=.3,Tn=360,Tn>Et/4*3&&(Tn=Et/4*3),Oe=Tn/5.8,sr.setAttribute("src",Qe),sr.setAttribute("width",Tn),sr.setAttribute("height",Oe);var me=(Et-Tn)/2,he=(zt-Oe)/2;sr.style.left=me+"px",sr.style.top=he+"px",Pn.appendChild(sr)}}return Pn.appendChild(pn),Pn},xt=function(Et){return Et=Et.toLowerCase(),Et==="html5"||Et==="screenshot"?Et:"html5"},et=["web","webSimple","web3d","tablet","tablet3d","phone"],Fe=function(Et,zt){if(rt=Et,zt){Dt(rt,!0);return}var Yt=!fe;if(Yt){var Vn=ye(rt);!isNaN(Vn)&&Vn<4.4&&(Yt=!1)}var Pn,_t;window.location.protocol.substr(0,4)==="http"?Pn=window.location.protocol:Pn="http:";var pn=rt.indexOf("//");pn>0?_t=rt:pn===0?_t=Pn+rt:_t="https://www.geogebra.org/apps/5.2.814.0/";for(var sr in et)if(rt.slice(et[sr].length*-1)===et[sr]||rt.slice((et[sr].length+1)*-1)===et[sr]+"/"){Dt(_t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Yt&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Me(te.showToolBar)&&!Me(te.showMenuBar)&&!Me(te.showAlgebraInput)&&!Me(te.enableRightClick)&&(!te.appName||te.appName=="classic")?_t+="webSimple/":_t+="web3d/",Dt(_t,!1)},Dt=function(Et,zt){if(Et.requirejs){Xe=Et;return}Et.slice(-1)!=="/"&&(Et+="/"),Xe=Et,zt===null&&(zt=Et.indexOf("http")===-1),Pe=zt,qe="web.nocache.js",He=!1;var Yt=Xe.split("/");Yt.length>1&&(!zt&&Yt[Yt.length-2]==="webSimple"?(qe="webSimple.nocache.js",He=!0):et.indexOf(Yt[Yt.length-2])>=0&&(qe=Yt[Yt.length-2]+".nocache.js")),Yt=Et.split("/"),rt=Yt[Yt.length-3],rt.substr(0,4)==="test"?rt=rt.substr(4,1)+"."+rt.substr(5,1):(rt.substr(0,3)==="war"||rt.substr(0,4)==="beta")&&(rt="5.0");var Vn=parseFloat(rt);Vn!==NaN&&Vn<5&&Et.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Vn+" is deprecated. Using version latest instead."),Fe("5.0",zt))},qt=function(Et,zt){window.console&&window.console.log&&(!zt||typeof zt.showLogging=="undefined"||zt.showLogging&&zt.showLogging!=="false")&&console.log(Et)};te.material_id!==void 0?Ne(Xt):Xt();function Xt(){var Et=Ut;Be!==null?Et=Be:parseFloat(Et)<5&&(Et="5.0"),Fe(Et,!1),de!==null&&Dt(de,Pe),xe=!0}return In},GGBAppletUtils=function(){"use strict";function In(){return window.GGBT_wsf_edit!==void 0}function Ut(xe,Be){Be!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Be+","+Be+")",xe.style.webkitTransform="scale("+Be+","+Be+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function te(xe,Be,de,Se,pe,De){var Xe=null;if(De!=null&&De!="")for(var Pe=xe.parentNode;Pe!=null;)if((" "+Pe.className+" ").indexOf(" "+De+" ")>-1){Xe=Pe;break}else Pe=Pe.parentNode;var Ue=0,rt=0,qe=0,He=0,be=0,Qe=0,ht=0;if(Xe)Ue=Xe.offsetWidth,rt=Math.max(Se?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ue=Math.min(window.innerWidth,document.documentElement.clientWidth),rt=Math.min(window.innerHeight,document.documentElement.clientHeight),qe=Ue):(Ue=window.innerWidth,rt=window.innerHeight,qe=window.innerWidth),xe){var Je=xe.getBoundingClientRect();Je.left>0&&Je.left<=Ue&&(pe===void 0||!pe)&&(document.dir==="rtl"?(be=Ue-Je.width-Je.left,Qe=qe<=480?10:30):(Qe=Je.left,be=qe<=480?10:30),He=Qe+be)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ze=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(He=40,ht=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He=0,ht=40)}}return xe&&((de===void 0||!de)&&Be>0&&Be+He<Ue?Ue=Be:Ue-=He,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(de===void 0||!de)&&(rt-=ht)),{width:Ue,height:rt}}function E(xe,Be,de,Se,pe){if(xe.isScreenshoGenerator)return 1;var De=Se!==void 0&&Se,Xe=xe.noScaleMargin!=null&&xe.noScaleMargin,Pe=function(Ze){return Ze&&Ze!=="false"},Ue=Pe(xe.autoHeight),rt=te(Be,xe.width,de,Ue,De&&window.GGBT_wsf_view||Xe,pe),qe=parseInt(rt.width),He=xe.width,be=xe.height;if(He===void 0){var Qe=Be.querySelector(".appletParameters");Qe&&(He=Qe.offsetWidth,be=Qe.offsetHeight)}var ht=qe/He,Je=De?1:rt.height/be;return de!==void 0&&!de&&(ht=Math.min(1,ht),Je=Math.min(1,Je)),Math.min(ht,Je)}function fe(xe,Be,de){var Se=1,pe,De=!1;if(xe.hasOwnProperty("allowUpscale")&&(De=xe.allowUpscale),xe.hasOwnProperty("scale")&&(Se=parseFloat(xe.scale),(isNaN(Se)||Se===null||Se===0)&&(Se=1),Se>1&&(De=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))pe=E(xe,Be,De,de,xe.scaleContainerClass);else return Se;return De&&(!xe.hasOwnProperty("scale")||Se===1)?pe:Math.min(Se,pe)}function Ie(xe){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),de=Math.min(window.innerHeight,document.documentElement.clientHeight),Se=xe.getBoundingClientRect(),pe=(Be-Se.width)/2,De=(de-Se.height)/2;De<0&&(De=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(pe<40?xe.style.left="40px":xe.style.left=pe+"px",xe.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?xe.style.top="40px":xe.style.top=De+"px",xe.style.left=pe+"px")}function Te(xe,Be){var de=xe.querySelector(".appletParameters");if(de){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==de.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(de.parentElement&&/fullscreen/.test(de.parentElement.className))return;var Se=fe(Be,xe);In()&&de.setAttribute("data-param-scale",Se);for(var pe=null,De=0;De<xe.childNodes.length;De++)if(xe.childNodes[De].className!==void 0&&xe.childNodes[De].className.match(/^applet_scaler/)){pe=xe.childNodes[De];break}if(pe!==null&&pe.querySelector(".noscale")!==null)return;var Xe=Be.id!==void 0?Be.id:"ggbApplet",Pe=window[Xe];(Pe==null||!Pe.recalculateEnvironments)&&pe!==null&&!pe.className.match(/fullscreen/)&&(pe.parentNode.style.transform="",!isNaN(Se)&&Se!==1?(pe.parentNode.style.width=Be.width*Se+"px",pe.parentNode.style.height=Be.height*Se+"px",Ut(pe,Se)):(Ut(pe,1),pe.parentNode.style.width=Be.width+"px",pe.parentNode.style.height=Be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ie(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(de).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:In,positionCenter:Ie,getScale:fe,scaleElement:Ut}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var In=n.location.search;return In.indexOf(J)!=-1||In.indexOf(K)!=-1}function q(In,Ut){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(In){var Ut=s[L].bindings;s[L].bindings=function(){for(var te=Ut?Ut():{},E=In[webModule.__softPermutationId],fe=O;fe<E.length;fe++){var Ie=E[fe];te[Ie[O]]=Ie[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var In=o.createElement(Q);if(In.id=L,In.style.cssText=R+S,In.tabIndex=-1,o.body.appendChild(In),t=In.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ut=document.compatMode==U?V:W;t.write(Ut+X),t.close()}}}function w(In){function Ut(E){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ie=fe();if(Ie){E();return}function Te(){if(!Ie){if(!fe())return;Ie=!0,E(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var xe=setInterval(function(){Te()},$)}function te(E){var fe=u(),Ie=fe.body,Te=fe.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=E,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),Ie.appendChild(Te)}Ut(function(){te(In)})}webModule.__startLoadingFragment=function(In){return C(In)},webModule.__installRunAsyncCode=function(In){var Ut=u(),te=Ut.body,E=Ut.createElement(_);E.language=ab,E.text=In,te.appendChild(E),te.removeChild(E)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(In){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(In){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(In){var Ut=c[In];return Ut==null?null:Ut},r=d,webModule.__errFn=e}function B(){function In(xe){var Be=xe.lastIndexOf(rb);Be==-1&&(Be=xe.length);var de=xe.indexOf(sb);de==-1&&(de=xe.length);var Se=xe.lastIndexOf(tb,Math.min(de,Be));return Se>=O?xe.substring(O,Se+P):W}function Ut(xe){if(!xe.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=xe+vb,xe=In(Be.src)}return xe}function te(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function E(){for(var xe=o.getElementsByTagName(_),Be=O;Be<xe.length;++Be)if(xe[Be].src.indexOf(xb)!=-1)return In(xe[Be].src);return W}function fe(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function Ie(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Te=te();return Te==W&&(Te=E()),Te==W&&(Te=fe()),Te==W&&Ie()&&(Te=In(o.location.href)),Te=Ut(Te),Te}function C(In){return In.match(/^\//)||In.match(/^[a-zA-Z]+:\/\//)?In:webModule.__moduleBase+In}function D(){var In=[],Ut=O,te=[],E=[];function fe(xe){var Be=E[xe](),de=te[xe];if(Be in de)return Be;var Se=[];for(var pe in de)Se[de[pe]]=pe;throw r&&r(xe,Se,Be),null}if(__gwt_isKnownPropertyValue=function(xe,Be){return Be in te[xe]},webModule.__getPropMap=function(){var xe={};for(var Be in te)te.hasOwnProperty(Be)&&(xe[Be]=fe(Be));return xe},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ie;try{Ie=Cb;var Te=Ie.indexOf(Db);Te!=-1&&(Ut=parseInt(Ie.substring(Te+P),$),Ie=Ie.substring(O,Te))}catch(xe){}return webModule.__softPermutationId=Ut,C(Ie+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(In,Ut,te){"use strict";te.d(Ut,{Ax:function(){return Te},Ds:function(){return xe},KI:function(){return de},SI:function(){return Ie},f1:function(){return fe}});var E=te(11320);function fe(Se){let pe=!0;if(Se.length>0){for(let De=0;De<Se.length;De++)if(Se[De].compile_success==0||!Se[De].compile_success){pe=!1;break}}else pe=!1;return pe}function Ie(Se,pe=""){let De=[];for(let Xe=0;Xe<Se.length;Xe++){let Pe=Se[Xe],Ue=pe?`${pe}/${Pe.name}`:`${Pe.name}`;De.push({title:Pe.name,type:Pe.type,isLeaf:Pe.type!=="tree",key:Ue})}return De}function Te(Se,pe,De){for(let Xe=0;Xe<Se.length;Xe++){let Pe=Se[Xe];if(Pe.key===pe){Pe.children=De;break}Pe.children&&Te(Pe.children,pe,De)}return Se}function xe(Se,pe,De){let Xe;return function(){let Pe=this,Ue=arguments,rt=function(){Xe=null,De||Se.apply(Pe,Ue)},qe=De&&!Xe;clearTimeout(Xe),Xe=setTimeout(rt,pe),qe&&Se.apply(Pe,Ue)}}const Be=!0,de=E.Z.API_SERVER},60580:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return rt}});var E=te(71577),fe=te(67294),Ie=Object.defineProperty,Te=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,pe=(qe,He,be)=>He in qe?Ie(qe,He,{enumerable:!0,configurable:!0,writable:!0,value:be}):qe[He]=be,De=(qe,He)=>{for(var be in He||(He={}))de.call(He,be)&&pe(qe,be,He[be]);if(Be)for(var be of Be(He))Se.call(He,be)&&pe(qe,be,He[be]);return qe},Xe=(qe,He)=>Te(qe,xe(He)),Pe=(qe,He)=>{var be={};for(var Qe in qe)de.call(qe,Qe)&&He.indexOf(Qe)<0&&(be[Qe]=qe[Qe]);if(qe!=null&&Be)for(var Qe of Be(qe))He.indexOf(Qe)<0&&Se.call(qe,Qe)&&(be[Qe]=qe[Qe]);return be},Ue=(qe,He,be)=>new Promise((Qe,ht)=>{var Je=Ee=>{try{ye(be.next(Ee))}catch(Ye){ht(Ye)}},Ze=Ee=>{try{ye(be.throw(Ee))}catch(Ye){ht(Ye)}},ye=Ee=>Ee.done?Qe(Ee.value):Promise.resolve(Ee.value).then(Je,Ze);ye((be=be.apply(qe,He)).next())});const rt=qe=>{var He=qe,{children:be}=He,Qe=Pe(He,["children"]);const[ht,Je]=(0,fe.useState)(!1);return fe.createElement(E.ZP,Xe(De({},Qe),{loading:ht,onClick:Ze=>Ue(void 0,null,function*(){try{Je(!0),yield Qe.onClick(Ze),Je(!1)}catch(ye){console.error(ye),Je(!1)}})}),be)}},63037:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Ue}});var E=te(67294),fe=te(2453),Ie=te(69677),Te={codeBox:"codeBox___WpkVl"},xe=te(94184),Be=te.n(xe),de=Object.defineProperty,Se=(rt,qe,He)=>qe in rt?de(rt,qe,{enumerable:!0,configurable:!0,writable:!0,value:He}):rt[qe]=He,pe=(rt,qe,He)=>Se(rt,typeof qe!="symbol"?qe+"":qe,He),De=(rt,qe,He)=>new Promise((be,Qe)=>{var ht=ye=>{try{Ze(He.next(ye))}catch(Ee){Qe(Ee)}},Je=ye=>{try{Ze(He.throw(ye))}catch(Ee){Qe(Ee)}},Ze=ye=>ye.done?be(ye.value):Promise.resolve(ye.value).then(ht,Je);Ze((He=He.apply(rt,qe)).next())});class Xe extends E.Component{constructor(qe){super(qe),pe(this,"canvas"),pe(this,"randomNum",(He,be)=>Math.floor(Math.random()*(be-He)+He)),pe(this,"drawPic",()=>{this.randomCode()}),pe(this,"reloadPic",()=>{this.drawPic()}),pe(this,"changeCode",He=>{console.log(He.target.value,222),this.setState({value:He.target.value,showError:!1})}),pe(this,"onVerify",()=>{let He;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(He=!0,fe.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(He=!0,fe.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(He=!1),this.setState({showError:He}),He}),this.canvas=E.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(qe,He){const be=this.randomNum(qe,He),Qe=this.randomNum(qe,He),ht=this.randomNum(qe,He);return`rgb(${be}, ${Qe}, ${ht})`}drawText(qe,He,be){qe.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Qe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);qe.font=Qe+"px SimHei";const ht=10,Je=(this.state.contentWidth-40)/(this.state.code.length-1);let Ze=ht;be>0&&(Ze=ht+be*Je);let ye=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Qe>40&&(ye=40);const Ee=this.randomNum(-10,10);qe.translate(Ze,ye),qe.rotate(Ee*Math.PI/180),qe.fillText(He,0,0),qe.rotate(-Ee*Math.PI/180),qe.translate(-Ze,-ye)}drawLine(qe){for(let He=0;He<1;He++)qe.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),qe.beginPath(),qe.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),qe.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),qe.stroke()}drawDot(qe){for(let He=0;He<100;He++)qe.fillStyle=this.randomColor(0,255),qe.beginPath(),qe.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),qe.fill()}randomCode(){let qe="";const He="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let be=0;be<this.state.codeLength;be++){const Qe=Math.floor(Math.random()*57);qe+=He[Qe]}this.setState({code:qe},()=>{const Qe=this.canvas.current.getContext("2d");Qe.textBaseline="bottom",Qe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Qe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let ht=0;ht<this.state.code.length;ht++)this.drawText(Qe,this.state.code[ht],ht);this.drawLine(Qe),this.drawDot(Qe)})}render(){const{className:qe,width:He=300}=this.props;return E.createElement("div",{className:Be()(Te.codeBox,qe),style:{width:He}},E.createElement("aside",null,E.createElement(Ie.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),E.createElement("div",null,E.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),E.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Pe=(rt,qe)=>{let He;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,qe),React.createElement(Xe,{ref:be=>He=be})),onOk:()=>De(void 0,null,function*(){if(He.onVerify())return Promise.reject();rt()})})};var Ue=Xe},73646:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return pe}});var E=te(67294),fe=te(69677),Ie=te(66309),Te=te(2453),xe={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Be=te(38308);const{TextArea:de}=fe.default;class Se extends E.Component{constructor(Xe){super(Xe),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Xe,onAnswerChange:Pe,addChildAnswer:Ue,exerciseIsPublish:rt,answers:qe,activeOptionErrorIndex:He,flex:be="0 0 1000px"}=this.props;console.log("----",qe);let{inputVisible:Qe,EditInputIndex:ht}=this.state;return E.createElement("div",{className:xe.flex},E.createElement("div",{className:`${xe.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Xe+1,"):"),E.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},qe==null?void 0:qe.map((Je,Ze)=>E.createElement(E.Fragment,null,ht!==Ze?(Je==null?void 0:Je.length)>0?E.createElement(Ie.Z,{className:"edit-tag",key:Je,closable:!(Xe===0&&Ze===0),onClose:ye=>{ye.preventDefault(),(qe==null?void 0:qe.length)===1&&Ze===0?this.props.deleteChildAnswermain(Xe,Ze):this.props.deleteChildAnswer(Xe,Ze)}},E.createElement("span",{onDoubleClick:ye=>{this.setState({EditInputIndex:Ze}),ye.preventDefault()}},Je)):E.createElement(fe.default,{defaultValue:Je,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ye=>{if(ye.target.value.replaceAll(" ","").length<=0){Te.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Pe(Xe,Ze,ye.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):E.createElement(fe.default,{defaultValue:Je,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ye=>{if(ye.target.value.replaceAll(" ","").length<=0){Te.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Pe(Xe,Ze,ye.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Qe&&E.createElement(Ie.Z,{className:"site-tag-plus",onClick:()=>{Ue(Xe),this.setState({inputVisible:!0})}},E.createElement(Be.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var pe=Se},40950:function(In,Ut,te){"use strict";te.d(Ut,{d4:function(){return Ue},VP:function(){return pe}});var E=te(67294),fe={digitalLabel:"digitalLabel___hkWuZ",active:"active___jawU1",titleEditor:"titleEditor___wX1lW",title:"title___SuT2h",editIcon:"editIcon___XrTIi",paperTab:"paperTab___GUxeB",tabItem:"tabItem___or0fY",dottedLine:"dottedLine___Ln0Xr"};const Ie=({number:rt,active:qe,className:He})=>E.createElement("div",{className:`${fe.digitalLabel} ${qe?fe.active:""} ${He}`},rt);var Te=te(83062),xe=te(69677),Be=te(2453),de=te(67294),Se=(rt,qe,He)=>new Promise((be,Qe)=>{var ht=ye=>{try{Ze(He.next(ye))}catch(Ee){Qe(Ee)}},Je=ye=>{try{Ze(He.throw(ye))}catch(Ee){Qe(Ee)}},Ze=ye=>ye.done?be(ye.value):Promise.resolve(ye.value).then(ht,Je);Ze((He=He.apply(rt,qe)).next())});const pe=({defaultValue:rt,onFinish:qe})=>{const[He,be]=(0,E.useState)(!1),[Qe,ht]=(0,E.useState)(rt);return(0,E.useEffect)(()=>{ht(rt)},[rt]),de.createElement("div",{className:fe.titleEditor},He?de.createElement(xe.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Qe,onChange:Je=>{ht(Je.target.value)},onBlur:()=>Se(void 0,null,function*(){var Je;if(((Je=Qe==null?void 0:Qe.replaceAll(" ",""))==null?void 0:Je.length)<=0){Be.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield qe(Qe))&&be(!1)}),onPressEnter:()=>Se(void 0,null,function*(){var Je;if(((Je=Qe==null?void 0:Qe.replaceAll(" ",""))==null?void 0:Je.length)<=0){Be.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield qe(Qe))&&be(!1)})}):de.createElement("div",{className:fe.title,onDoubleClick:()=>be(!0)},Qe,de.createElement(Te.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},de.createElement("i",{className:`${fe.editIcon} iconfont icon-bianji_Hover`,onClick:()=>be(!0)}))))};var De=te(71230),Xe=te(15746),Pe=(rt,qe,He)=>new Promise((be,Qe)=>{var ht=ye=>{try{Ze(He.next(ye))}catch(Ee){Qe(Ee)}},Je=ye=>{try{Ze(He.throw(ye))}catch(Ee){Qe(Ee)}},Ze=ye=>ye.done?be(ye.value):Promise.resolve(ye.value).then(ht,Je);Ze((He=He.apply(rt,qe)).next())});const Ue=({onChange:rt=()=>Pe(void 0,null,function*(){}),tabs:qe,activeKey:He,defaultActiveKey:be,className:Qe=""})=>{var ht,Je,Ze,ye,Ee,Ye,Ne;const[ot,ct]=(0,E.useState)(be===void 0?(ht=qe[0])==null?void 0:ht.key:be);return(0,E.useEffect)(()=>{He!==void 0&&ct(He)},[He]),E.createElement(De.Z,{justify:"center",align:"middle",className:`${fe.paperTab} ${Qe}`},E.createElement(Xe.Z,{className:`${fe.tabItem} ${ot===((Je=qe[0])==null?void 0:Je.key)?fe.active:""}`,onClick:()=>Pe(void 0,null,function*(){var _e;yield rt(qe[0].key),ct((_e=qe[0])==null?void 0:_e.key)})},E.createElement(Ie,{number:1,active:ot===((Ze=qe[0])==null?void 0:Ze.key),className:"mr10"}),E.createElement("span",null,(ye=qe[0])==null?void 0:ye.label)),E.createElement(Xe.Z,{flex:"188px",className:`${fe.dottedLine} ml30 mr30`}),E.createElement(Xe.Z,{className:`${fe.tabItem} ${ot===((Ee=qe[1])==null?void 0:Ee.key)?fe.active:""}`,onClick:()=>Pe(void 0,null,function*(){var _e,Me;yield rt((_e=qe[1])==null?void 0:_e.key),ct((Me=qe[1])==null?void 0:Me.key)})},E.createElement(Ie,{number:2,active:ot===((Ye=qe[1])==null?void 0:Ye.key),className:"mr10"}),E.createElement("span",null,(Ne=qe[1])==null?void 0:Ne.label)))}},20670:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Be}});var E=te(55241),fe={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Ie=te(32637),Te=te(67294),Be=({type:de,style:Se})=>{const pe=Te.createElement("div",{className:fe.wrap,onClick:De=>{De.preventDefault(),De.stopPropagation()}},Te.createElement("p",null,de==="shixun"||de==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Te.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",de==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Te.createElement("div",{className:fe.contact},Te.createElement("div",{className:fe.img},Te.createElement("img",{src:Ie,width:"124px",height:"124px"})),Te.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Te.createElement(E.Z,{content:pe},Te.createElement("span",{className:fe.text,style:Se},"\u9AD8\u6D88\u8017"))}},63205:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Xe}});var E=te(67294),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ie=te(94184),Te=te.n(Ie),xe=te(57953),Be=te(15979),de=te(33170),Se=te(28706),pe=(Pe,Ue,rt)=>new Promise((qe,He)=>{var be=Je=>{try{ht(rt.next(Je))}catch(Ze){He(Ze)}},Qe=Je=>{try{ht(rt.throw(Je))}catch(Ze){He(Ze)}},ht=Je=>Je.done?qe(Je.value):Promise.resolve(Je.value).then(be,Qe);ht((rt=rt.apply(Pe,Ue)).next())}),Xe=({data:Pe,className:Ue,fullWidth:rt,style:qe={},onClose:He,onOk:be,showFullTools:Qe,noAssociationId:ht})=>{const Je=(0,E.useRef)(null),Ze=(0,E.useRef)(null),ye=(0,E.useRef)(null),Ee=(0,E.useRef)(null),[Ye,Ne]=(0,E.useState)(!1),[ot,ct]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>{ye.current||(ye.current=document.createElement("style"),document.head.appendChild(ye.current)),Pe!=null&&Pe.visible?(document.body.setAttribute("data-custom","y-hidden"),ye.current.innerHTML=" html { overflow-y: hidden; }",Pe!=null&&Pe.src&&_e()):(document.body.removeAttribute("data-custom"),ye.current&&(document.head.removeChild(ye.current),ye.current=null))},[Pe==null?void 0:Pe.visible]);const _e=()=>pe(void 0,null,function*(){Ne(!0),ct("\u6B63\u5728\u52A0\u8F7D\u4E2D");const We=yield(0,Se.ZJ)(Pe==null?void 0:Pe.src);Je.current.src="",Je.current.src=We,Je.current.onload=function(){ft()},Ne(!1),ct("")}),Me=()=>{document.body.removeAttribute("data-custom"),ye.current.innerHTML=" ",He()},pt=We=>pe(void 0,null,function*(){Ne(!0),ct("\u6B63\u5728\u4FDD\u5B58\u4E2D");const gt=yield(0,de.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Pe.title,file:We.dataUrl}});gt!=null&>.id&&!ht?(yield(0,de.ZP)(`/api/attachments/${Pe.id}/add_subitem.json`,{method:"post",body:{subitem_id:gt==null?void 0:gt.id,settings:JSON.stringify(We.state)}})).status===0&&be():gt!=null&>.id&&be(gt),document.body.removeAttribute("data-custom"),ye.current.innerHTML=" ",Ne(!1),ct("")}),$e=()=>{const We=document.querySelector('a[href="https://markerjs.com/"]');We&&We.parentNode&&(We.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(kt=>{const xt=document.querySelector(kt.name);xt&&xt.setAttribute("title",kt.title)})},ft=()=>{Ze.current=new Be.hP(Je.current),Ze.current.targetRoot=Ee.current,Ze.current.addEventListener("render",pt),Ze.current.addEventListener("beforeclose",Me),Qe&&(Ze.current.availableMarkerTypes=Ze.current.ALL_MARKER_TYPES,Ze.current.uiStyleSettings.redoButtonVisible=!0,Ze.current.uiStyleSettings.notesButtonVisible=!0,Ze.current.uiStyleSettings.zoomButtonVisible=!0,Ze.current.uiStyleSettings.zoomOutButtonVisible=!0,Ze.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ze.current.uiStyleSettings,Ze.current.show(),Pe!=null&&Pe.snapshotData&&Ze.current.restoreState(Pe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),$e()},300)};return E.createElement(E.Fragment,null,(Pe==null?void 0:Pe.visible)&&E.createElement(xe.Z,{spinning:Ye,tip:ot,style:{position:"absolute"}},E.createElement("div",{ref:Ee,className:Te()(fe.imageDimensions,Ue,rt?fe.fullWidth:""),style:qe},E.createElement("img",{className:fe.img,ref:Je}))))}},35713:function(In,Ut,te){"use strict";var E=te(67294),fe=te(71736),Ie=te(84279),Te=te(36527),xe=te(14446),Be=te(67294);const de=(0,E.forwardRef)(({callback:Se,width:pe,onChange:De,disabled:Xe,readOnly:Pe,type:Ue="",value:rt="",style:qe={}},He)=>{const be=(0,E.useRef)(),Qe=(0,E.useRef)(),[ht,Je]=(0,E.useState)(0),[Ze,ye]=(0,E.useState)(0),[Ee,Ye]=(0,E.useState)(!1),Ne=()=>{var Me=document.createElement("div");Me.innerHTML=be.current.getValue();var pt=Me.innerText;return Se&&Se(pt),pt};(0,E.useImperativeHandle)(He,()=>({getData:Ne}));const ot=Me=>{Me.preventDefault();const pt=Me.clientX-ht,$e=Me.clientY-Ze;document.body.onmousemove=ft=>{let We=ft.clientX-pt,gt=ft.clientY-$e;const kt=document.getElementsByClassName("markdown-popup-form")[0],xt=window.innerWidth-kt.offsetWidth,et=window.innerHeight-kt.offsetHeight;We=Math.max(0,Math.min(We,xt)),gt=Math.max(0,Math.min(gt,et)),ct(ft.clientX,ft.clientY,pt,$e)&&(Je(We),ye(gt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ct=(Me,pt,$e,ft)=>{const We=document.body.clientHeight,gt=document.body.clientWidth;return Me<20&&$e>Me||Me>gt-20&&$e<Me||pt<20&&ft>pt||pt>We-20&&ft<pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,E.useEffect)(()=>{Ee&&setTimeout(()=>{const Me=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-Me.offsetWidth/2,$e=window.innerHeight/2-Me.offsetHeight/2;Je(pt),ye($e)},0)},[Ee]);const _e=()=>{Xe||Pe||Ye(!0)};return Be.createElement("div",{style:qe},Be.createElement("div",{style:{width:pe||"100%",position:"relative"},className:`${fe.Z.mathFillWrap} ${Xe||Pe?"cursorDefault":""}`,onClick:()=>_e()},Be.createElement("math-field",{disabled:Xe,locale:"zh_cn",class:`${fe.Z.mathField} ${Ue}`,readOnly:Pe,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:be,style:{width:"100%",fontSize:rt?18:14},value:rt||""})),Be.createElement(xe.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:ht,top:Ze},title:Be.createElement("div",{style:{cursor:"move"},onMouseDown:ot},"\u8F93\u5165\u516C\u5F0F"),open:Ee,onOk:()=>{const Me=Qe.current.getData();be.current.setValue(Me),De(Me),Ye(!1)},onCancel:()=>{Ye(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Be.createElement(Te.Z,{value:rt,ref:Qe,onChange:De,showSaveButton:!1})))});Ut.Z=de},36527:function(In,Ut,te){"use strict";var E=te(67294),fe=te(71230),Ie=te(15746),Te=te(66368),xe=te(71577),Be=te(35598),de=te(71736),Se=te(84279),pe=te(67294);const De=(0,E.forwardRef)(({callback:Xe,showSaveButton:Pe,value:Ue=""},rt)=>{const qe=(0,E.useRef)(),He=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],be=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],Qe=Ze=>{qe.current.setValue(qe.current.getValue()+" "+Ze.value+" ")},ht=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:pe.createElement(fe.Z,{className:de.Z.lists,gutter:[10,10]},He.map((Ze,ye)=>pe.createElement(Ie.Z,{flex:"110px",className:de.Z.item},pe.createElement("div",null,pe.createElement(Be.Z,{value:`$$${Ze.value}$$`}),Ze.name),pe.createElement("div",{className:de.Z.children},Ze.children.map((Ee,Ye)=>pe.createElement("div",{key:Ye},pe.createElement("h1",null,Ee.name),pe.createElement(fe.Z,{gutter:[10,10]},Ee.data.map((Ne,ot)=>pe.createElement(Ie.Z,{key:ot,onClick:()=>Qe(Ne),className:de.Z.diamond},pe.createElement(Be.Z,{value:"`$$"+Ne.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:pe.createElement(fe.Z,{className:de.Z.lists,gutter:[10,10]},be.map((Ze,ye)=>pe.createElement(Ie.Z,{flex:"110px",className:de.Z.item},pe.createElement("div",null,pe.createElement(Be.Z,{value:"`$$"+Ze.value+"$$`"}),Ze.name),pe.createElement("div",{className:de.Z.children},Ze.children.map((Ee,Ye)=>pe.createElement("div",{key:Ye},Ee.name&&pe.createElement("h1",null,Ee.name),pe.createElement(fe.Z,{gutter:[10,10]},Ee.data.map((Ne,ot)=>pe.createElement(Ie.Z,{key:ot,onClick:()=>Qe(Ne),className:de.Z.diamond},pe.createElement(Be.Z,{value:"`$$"+Ne.value+"$$`"}))))))))))}],Je=()=>{var Ze=document.createElement("div");Ze.innerHTML=qe.current.getValue();var ye=Ze.innerText;return Xe&&Xe(ye),ye};return(0,E.useImperativeHandle)(rt,()=>({getData:Je})),pe.createElement("div",{className:de.Z.mathWrap},pe.createElement(Te.default,{defaultActiveKey:"1",items:ht}),pe.createElement("math-field",{locale:"zh_cn",className:de.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:qe,style:{width:800,marginTop:30,fontSize:18}},Ue||""),Pe&&pe.createElement("div",{className:de.Z.button},pe.createElement(xe.ZP,{size:"large",onClick:Je,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ut.Z=De},15312:function(In,Ut,te){"use strict";te.d(Ut,{t:function(){return he}});var E=te(67294),fe=te(69677),Ie=te(22150),Te=te(14446),xe=te(71230),Be=te(15746),de=te(31795),Se=te(11713),pe=te(78045),De=te(41307),Xe=te(35973),Pe=te(52654),Ue=te(2453),rt=te(71577),qe=te(57953),He=te(19575),be={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},Qe=te(33170),ht=te(88742),Je=te(91304),Ze=te(74855),ye=te(96707),Ee=te(67294),Ye=Object.defineProperty,Ne=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,pt=(ge,ve,se)=>ve in ge?Ye(ge,ve,{enumerable:!0,configurable:!0,writable:!0,value:se}):ge[ve]=se,$e=(ge,ve)=>{for(var se in ve||(ve={}))_e.call(ve,se)&&pt(ge,se,ve[se]);if(ct)for(var se of ct(ve))Me.call(ve,se)&&pt(ge,se,ve[se]);return ge},ft=(ge,ve)=>Ne(ge,ot(ve)),We=(ge,ve,se)=>new Promise((Ke,bt)=>{var Wt=cn=>{try{bn(se.next(cn))}catch(wn){bt(wn)}},yn=cn=>{try{bn(se.throw(cn))}catch(wn){bt(wn)}},bn=cn=>cn.done?Ke(cn.value):Promise.resolve(cn.value).then(Wt,yn);bn((se=se.apply(ge,ve)).next())}),kt=({buttonProps:ge,buttonText:ve,form:se,hackIdentifier:Ke="",answerKey:bt,data:Wt})=>{const[yn,bn]=(0,E.useState)(!1),[cn,wn]=(0,E.useState)(!1),[Tt,nn]=(0,E.useState)(!1),[fn,sn]=(0,E.useState)({}),[an,xr]=(0,E.useState)(""),[Lt,Vt]=(0,E.useState)(""),cr=(0,E.useRef)(Ke),En=(0,E.useRef)(""),en=(0,E.useRef)(!1);(0,E.useEffect)(()=>{Tt&&ei()},[Tt]),(0,E.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Fr=()=>new Date().getTime(),Ur=Wt==null?void 0:Wt.code,ai=()=>{var Qn,Or;let Hr=Ur?Wt==null?void 0:Wt.code:(Qn=se.getFieldValue("hack_codes"))==null?void 0:Qn.code,vi=Ur?Wt==null?void 0:Wt.answer_content:se.getFieldValue(bt),Zi=Ur?Wt==null?void 0:Wt.input:(Or=se.getFieldValue("hack_sets"))==null?void 0:Or.input;vi==null||vi.forEach($t=>{const $n=$t.value||$t.answer_text||"";Hr=Hr.replace(/(@▁@|@▁▁@)/,$n)}),Vt(Zi),xr(Hr),sn({}),nn(!0)},ei=()=>We(void 0,null,function*(){var Qn,Or,Hr,vi;const Zi=Fr(),$t=Ur?Wt==null?void 0:Wt.time_limit:(Qn=se.getFieldsValue())==null?void 0:Qn.hack.time_limit,$n=Ur?(Or=Wt==null?void 0:Wt.answer_content)==null?void 0:Or.length:(vi=(Hr=se.getFieldsValue())==null?void 0:Hr.standard_answers)==null?void 0:vi.length;bn(!0),yield(0,ht.bM)(En.current,{test_hack_code:an,test_input:Lt});function mn(){return We(this,null,function*(){const{status:Yn,data:Dr}=yield(0,ht.rX)(En.current,"submit"),oi=Fr()-Zi>($t+3)*1e3*$n;if(en.current){if(oi){Ue.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),bn(!1);return}if(Yn===0){bn(!1),sn(ft($e({},Dr),{showText:!0}));return}setTimeout(mn,1e3)}})}mn()}),Mi=()=>We(void 0,null,function*(){var Qn,Or,Hr,vi,Zi,$t,$n;if(!Wt){try{yield se.validateFields()}catch(hi){(Hr=(Or=(Qn=hi==null?void 0:hi.errorFields)==null?void 0:Qn[0])==null?void 0:Or.name)!=null&&Hr.includes("standard_answers")?Ue.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ue.ZP.error(hi.errorFields[0].errors[0]),se.scrollToField(hi.errorFields[0].name,{behavior:"smooth",block:"center"});return}wn(!0);let Yn="";const Dr=se.getFieldsValue();cr.current?Yn=yield(0,Qe.ZP)(`/api/problems/${cr.current}.json`,{method:"put",body:ft($e({},Dr),{hack:ft($e({},Dr==null?void 0:Dr.hack),{sub_discipline_id:($n=($t=Dr==null?void 0:Dr.hack)==null?void 0:$t.sub_discipline_id)==null?void 0:$n[1],difficult:Dr.difficulty,item_banks_group_id:Dr.item_banks_group_id}),hack_codes:ft($e({},Dr.hack_codes),{code:He.Base64.encode(Dr.hack_codes.code)}),update_hack_sets:[$e({},Dr.hack_sets)],is_blank:!0})}):(Yn=yield(0,Qe.ZP)("/api/problems.json",{method:"post",body:ft($e({},Dr),{hack:ft($e({},Dr==null?void 0:Dr.hack),{sub_discipline_id:(Zi=(vi=Dr==null?void 0:Dr.hack)==null?void 0:vi.sub_discipline_id)==null?void 0:Zi[1],difficult:Dr.difficulty,item_banks_group_id:Dr.item_banks_group_id}),hack_codes:ft($e({},Dr.hack_codes),{code:He.Base64.encode(Dr.hack_codes.code)}),hack_sets:[$e({},Dr.hack_sets)],is_blank:!0})}),cr.current=Yn==null?void 0:Yn.identifier,sessionStorage.projectFill=Yn==null?void 0:Yn.identifier)}const mn=yield(0,Qe.ZP)(`/api/problems/${cr.current}/start.json`,{method:"get"});if((mn==null?void 0:mn.status)===0){En.current=mn==null?void 0:mn.identifier,en.current=!0,wn(!1),ai();return}wn(!1)}),ci=Qn=>{const{status:Or,error_msg:Hr,execute_time:vi,output:Zi,input:$t,expected_output:$n}=Qn;let mn=null;switch(Or){case ye.h.OK:mn=Ee.createElement(Ee.Fragment,null,Ee.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",vi/1e3,"\u79D2"),Ee.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ye.h.NOMATCH:mn=Ee.createElement(Ee.Fragment,null,Ee.createElement("div",null,"\u8F93\u5165\uFF1A"),Ee.createElement("pre",{style:{fontFamily:"initial"}},$t),Ee.createElement("div",null,"\u8F93\u51FA\uFF1A"),Ee.createElement("pre",{style:{fontFamily:"initial"}},Zi&&He.Base64.decode(Zi)),Ee.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Ee.createElement("pre",{style:{fontFamily:"initial"}},$n&&He.Base64.decode($n)));break;case ye.h.EXECUTEFAILURE:mn=Ee.createElement(Ee.Fragment,null,Ee.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ee.createElement("pre",null,$t)),Ee.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ee.createElement("pre",{className:"error"},He.Base64.decode(Hr)));break;case ye.h.COMPILEFAILURE:mn=Ee.createElement(Ee.Fragment,null,Ee.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ee.createElement("pre",null,$t)),Ee.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ee.createElement("pre",{className:"error"},He.Base64.decode(Hr)));break;case ye.h.PODFAILURE:mn=Ee.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ye.h.TIMEOUT:mn=Ee.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Ee.createElement(Ee.Fragment,null," ",mn," ")};return Ee.createElement("div",null,Ee.createElement(rt.ZP,ft($e({loading:cn},ge),{onClick:Mi}),ve),Ee.createElement(Te.default,{open:Tt,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:yn,cancelButtonProps:{style:{display:"none"}},onOk:()=>ei(),onCancel:()=>{en.current=!1,nn(!1)}},Ee.createElement("div",{className:be.result},Ee.createElement("div",{className:be.left},Ee.createElement("div",{className:"mb20"},Ee.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Wt&&Ee.createElement(Ze.CopyToClipboard,{text:an,onCopy:()=>Ue.ZP.success("\u590D\u5236\u6210\u529F")},Ee.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Ee.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Ee.createElement(Je.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:an,onChange:Qn=>xr(Qn)})),Ee.createElement("div",{className:be.right},Ee.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Ee.createElement("div",{className:be.box},Ee.createElement("div",{className:be.li},Ee.createElement(fe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Lt,onChange:Qn=>Vt(Qn.target.value),bordered:!1,style:{height:180}}))),Ee.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Ee.createElement("div",{className:be.box},Ee.createElement(qe.Z,{spinning:yn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Ee.createElement("div",{className:be.li,style:{height:196,overflow:"auto",padding:10}},ci(fn))))))))},xt=te(55304),et=te(67294),Fe=Object.defineProperty,Dt=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Yt=(ge,ve,se)=>ve in ge?Fe(ge,ve,{enumerable:!0,configurable:!0,writable:!0,value:se}):ge[ve]=se,Vn=(ge,ve)=>{for(var se in ve||(ve={}))Et.call(ve,se)&&Yt(ge,se,ve[se]);if(Xt)for(var se of Xt(ve))zt.call(ve,se)&&Yt(ge,se,ve[se]);return ge},Pn=(ge,ve)=>Dt(ge,qt(ve)),_t=(ge,ve)=>{var se={};for(var Ke in ge)Et.call(ge,Ke)&&ve.indexOf(Ke)<0&&(se[Ke]=ge[Ke]);if(ge!=null&&Xt)for(var Ke of Xt(ge))ve.indexOf(Ke)<0&&zt.call(ge,Ke)&&(se[Ke]=ge[Ke]);return se};const{TextArea:pn}=fe.default,sr=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],Tn=({value:ge,onChange:ve})=>et.createElement(Switch,{checked:ge,onChange:se=>{ve(se)}}),Oe="@\u2581@",me="@\u2581\u2581@",he=({questionTitlePlaceholder:ge,form:ve,scoreByBlank:se=!1,hackidentifier:Ke,answerKey:bt})=>{const[Wt,yn]=(0,E.useState)(!1),[bn,cn]=(0,E.useState)(!1),Tt=(0,Xe.useParams)().type==="edit",nn=(En,en)=>{const Fr=en.line;let Ur=0;for(let ei=0;ei<Fr;ei++)Ur+=En.getLine(ei).split(Oe).length-1;for(let ei=0;ei<Fr;ei++)Ur+=En.getLine(ei).split(me).length-1;const ai=En.getLine(Fr).substring(0,en.ch);return Ur+=ai.split(Oe).length-1,Ur+=ai.split(me).length-1,Ur},fn=(En,en,Fr,Ur)=>{const ai=En.getRange(en.from,en.to);let ei=0;if(en.text.forEach(Mi=>{ei+=Mi.split(Oe).length-1}),en.text.forEach(Mi=>{ei+=Mi.split(me).length-1}),en.origin!=="setValue"){if(ai&&(ai.indexOf(Oe)!==-1||ai.indexOf(me)!==-1)){const Mi=ai.split(Oe).length-1+ai.split(me).length-1,ci=nn(En,en.from);if(console.log(`\u5220\u9664${Mi}\u4E2A\uFF0C \u524D\u9762\u6709${ci}\u4E2A\uFF0C\u65B0\u589E${ei}\u4E2A`),Mi>1){const Qn=Array.from({length:Mi},(Or,Hr)=>ci+Hr);Ur(Qn)}else Ur(ci)}else if(ei>0){const Mi=nn(En,en.from);console.log(`\u65B0\u589E${ei}\u4E2A\uFF0C\u4E4B\u524D\u6709${Mi}\u4E2A`),Fr(ei,Mi)}}},sn=()=>{const En=ve.getFieldValue(bt);ve.setFieldsValue({[bt]:En==null?void 0:En.map((en,Fr)=>Pn(Vn({},en),{position:Fr+1}))})},an=(0,E.useRef)(),xr=(En,en)=>{for(let Fr=0;Fr<En;Fr++)an.current({position:null,answer_text:""},en+Fr);sn()},Lt=(0,E.useRef)(),Vt=En=>{Lt.current(En),sn()},cr=Ie.default.useWatch(bt,ve);return et.createElement("div",{className:Pe.Z.wrap},et.createElement(Ie.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},et.createElement(De.h,{scrollId:"name",watch:!0,height:140})),et.createElement("div",{className:Pe.Z.questionTitleEditorWrap},et.createElement(Ie.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},et.createElement(De.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(En,en)=>{const Fr=ve.getFieldValue(bt);console.log("--preAnswerData",Fr,en),ve.setFieldsValue({[bt]:Fr==null?void 0:Fr.map((Ur,ai)=>{var ei;return Pn(Vn({},Ur),{position:ai+1,multi_line:(ei=en==null?void 0:en[ai])==null?void 0:ei.multiLine})})})},placeholder:ge,onCMBeforeChange:(En,en)=>{fn(En,en,xr,Vt)}}))),et.createElement(Ie.default.List,{name:bt,rules:[{validator(En,en){if(!(en!=null&&en.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Fr of en){const{answer_text:Ur}=Fr||{};if((Ur==null?void 0:Ur.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(En,{add:en,remove:Fr},{errors:Ur})=>(an.current=en,Lt.current=Fr,et.createElement(et.Fragment,null,et.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},et.createElement(Ie.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),et.createElement("div",{onClick:()=>{Te.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:et.createElement("div",null,et.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",et.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),et.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},et.createElement(xt.Z,{style:{marginRight:3,color:"#3061D0"}}),et.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),En.map((ai,ei)=>{var Mi=ai,{key:ci,name:Qn}=Mi,Or=_t(Mi,["key","name"]),Hr,vi;return et.createElement(xe.Z,{className:"mb20",key:ci,align:"middle",wrap:!1},et.createElement(Be.Z,{flex:"0 0 auto",className:`${Pe.Z.blankIndex}`},"\u586B\u7A7A\u9879",ei+1),et.createElement(Be.Z,{flex:1},et.createElement(xe.Z,{align:"top",justify:"space-between",wrap:!1},et.createElement(Be.Z,null,et.createElement(Ie.default.Item,Pn(Vn({},Or),{name:[Qn,"answer_text"],noStyle:!0}),(Hr=cr==null?void 0:cr[Qn])!=null&&Hr.multi_line||(vi=cr==null?void 0:cr[Qn])!=null&&vi.multiLine?et.createElement(pn,{spellCheck:!1,style:{marginLeft:10,width:550}}):et.createElement(fe.default,{style:{marginLeft:10,width:550},className:Pe.Z.blankInput,size:"large",maxLength:1e3,onBlur:Zi=>{}}))),se&&et.createElement(Be.Z,{flex:"224px"},et.createElement(Ie.default.Item,Pn(Vn({},Or),{name:[Qn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),et.createElement(de.Z,{size:"large",className:Pe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),et.createElement("div",{onClick:()=>yn(!0)},et.createElement(Ie.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},et.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Wt}))),et.createElement(Ie.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},et.createElement(Se.default,{size:"large"},sr.map(En=>et.createElement(Se.default.Option,{key:En.title,value:En.key}," ",En.title)))),et.createElement(Ie.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},et.createElement(Ie.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},et.createElement(de.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),et.createElement("span",{className:"ml10 font14"},"\u79D2")),et.createElement(Ie.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},et.createElement(pe.ZP.Group,{style:{marginTop:-10}},et.createElement(pe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),et.createElement(pe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),et.createElement(pe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),et.createElement(Ie.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),et.createElement("div",{style:{background:"#F6F7F9",padding:15}},et.createElement(Ie.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},et.createElement(pn,{rows:4})),et.createElement(Ie.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},et.createElement(pn,{rows:4}))),et.createElement(kt,{form:ve,answerKey:bt,hackIdentifier:Ke,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:et.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},11776:function(In,Ut,te){"use strict";te.d(Ut,{u:function(){return Ee}});var E=te(67294),fe=te(71230),Ie=te(15746),Te=te(83062),xe=te(22150),Be=te(52654),de=te(40043),Se=te(24018),pe=te(41307),De=te(67294),Xe=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,be=(Ye,Ne,ot)=>Ne in Ye?Xe(Ye,Ne,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Ye[Ne]=ot,Qe=(Ye,Ne)=>{for(var ot in Ne||(Ne={}))qe.call(Ne,ot)&&be(Ye,ot,Ne[ot]);if(rt)for(var ot of rt(Ne))He.call(Ne,ot)&&be(Ye,ot,Ne[ot]);return Ye},ht=(Ye,Ne)=>Pe(Ye,Ue(Ne)),Je=(Ye,Ne)=>{var ot={};for(var ct in Ye)qe.call(Ye,ct)&&Ne.indexOf(ct)<0&&(ot[ct]=Ye[ct]);if(Ye!=null&&rt)for(var ct of rt(Ye))Ne.indexOf(ct)<0&&He.call(Ye,ct)&&(ot[ct]=Ye[ct]);return ot};const Ze=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ye=({value:Ye,onChange:Ne,choiceTextKey:ot,answerKey:ct,index:_e,isEdit:Me,setInputActive:pt,form:$e,choiceOptionsPath:ft,allowChangeMode:We,showAddIcon:gt,addItem:kt,deleteItem:xt})=>{console.log(Ye,"value");const et=(Ye==null?void 0:Ye[ct])===1,Fe=()=>{const qt=$e.getFieldValue(ft);$e.setFieldValue(ft,qt.map(Xt=>ht(Qe({},Xt),{[ct]:0})))},Dt=()=>{et?Ne(ht(Qe({},Ye),{[ct]:0})):(We||Fe(),Ne(ht(Qe({},Ye),{[ct]:1})))};return De.createElement(fe.Z,{className:Be.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(Ie.Z,{onClick:Dt,className:`${Be.Z.choiceIndex} ${et?Be.Z.activeAnswer:""}`},Ze[_e]),De.createElement(Ie.Z,{flex:1,className:`${Be.Z.editorWrap} ml15`,onClick:pt},De.createElement(pe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Me,value:Ye==null?void 0:Ye[ot],onChange:qt=>{Ne(ht(Qe({},Ye),{[ot]:qt}))}})),De.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:Dt,className:`${Be.Z.setAnswerBtn} ${et?Be.Z.activeAnswer:""}`},et?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),De.createElement(Ie.Z,{className:Be.Z.actionWrapper},De.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},De.createElement(de.Z,{className:Be.Z.addIcon,onClick:kt,style:{visibility:gt?"visible":"hidden"}})),De.createElement(Te.Z,{title:"\u5220\u9664"},De.createElement(Se.Z,{className:Be.Z.deleteIcon,onClick:xt,style:{visibility:_e>1?"visible":"hidden"}}))))},Ee=({questionTitlePlaceholder:Ye,titleKey:Ne,choiceKey:ot,analysisKey:ct,choiceTextKey:_e,answerKey:Me,choiceOptionsPath:pt,allowChangeMode:$e=!0,form:ft,showAnalysis:We=!0})=>{const[gt,kt]=(0,E.useState)(),[xt,et]=(0,E.useState)(!1);return De.createElement("div",{className:Be.Z.wrap},De.createElement("div",{className:Be.Z.questionTitleEditorWrap},De.createElement(xe.default.Item,{label:"\u9898\u5E72",name:Ne,labelCol:{span:24},rules:[{required:!0}]},De.createElement(pe.h,{scrollId:Array.isArray(Ne)?Ne.join("_"):`${Ne}`,watch:!0,height:140,placeholder:Ye}))),De.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),De.createElement(xe.default.List,{name:ot,rules:[{validator(Fe,Dt){const qt=Dt.some(Et=>Et[Me]===1),Xt=Dt.findIndex(Et=>{var zt;return((zt=Et[_e])==null?void 0:zt.length)<=0});return Xt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ze[Xt]}\u9009\u9879\u7684\u5185\u5BB9`)):qt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Fe,{add:Dt,remove:qt})=>De.createElement("div",{id:Array.isArray(pt)?pt.join("_"):`${pt}`},Fe.map((Xt,Et)=>{var zt=Xt,{key:Yt,name:Vn}=zt,Pn=Je(zt,["key","name"]);const _t=gt===Yt,pn=()=>{kt(Yt)},sr=Et<7&&Et===Fe.length-1,Tn=()=>Dt({[_e]:"",[Me]:0}),Oe=()=>qt(Vn);return De.createElement(xe.default.Item,ht(Qe({},Pn),{key:Yt,name:Vn,className:Be.Z.choiceListWrap,rules:[{validator(me,he){return he!=null&&he.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ze[Et]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(ye,{choiceTextKey:_e,answerKey:Me,index:Et,isEdit:_t,setInputActive:pn,form:ft,choiceOptionsPath:pt,allowChangeMode:$e,showAddIcon:sr,addItem:Tn,deleteItem:Oe}))}),Fe.length<8&&De.createElement("div",{className:`${Be.Z.addBtn} mb30`,onClick:()=>Dt({[_e]:"",[Me]:0})},"\u6DFB\u52A0\u9009\u9879"))),We&&De.createElement("div",{onClick:()=>et(!0)},De.createElement(xe.default.Item,{name:ct,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(pe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xt}))))}},81580:function(In,Ut,te){"use strict";te.d(Ut,{u:function(){return ft}});var E=te(67294),fe=te(14446),Ie=te(71230),Te=te(15746),xe=te(69677),Be=te(83062),de=te(47897),Se=te(22150),pe=te(78045),De=te(31795),Xe=te(71577),Pe=te(41307),Ue=te(24018),rt=te(40043),qe=te(17663),He=te(52654),be=te(35713),Qe=te(67294),ht=Object.defineProperty,Je=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ne=(We,gt,kt)=>gt in We?ht(We,gt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):We[gt]=kt,ot=(We,gt)=>{for(var kt in gt||(gt={}))Ee.call(gt,kt)&&Ne(We,kt,gt[kt]);if(ye)for(var kt of ye(gt))Ye.call(gt,kt)&&Ne(We,kt,gt[kt]);return We},ct=(We,gt)=>Je(We,Ze(gt)),_e=(We,gt)=>{var kt={};for(var xt in We)Ee.call(We,xt)&>.indexOf(xt)<0&&(kt[xt]=We[xt]);if(We!=null&&ye)for(var xt of ye(We))gt.indexOf(xt)<0&&Ye.call(We,xt)&&(kt[xt]=We[xt]);return kt};const Me=({value:We,onChange:gt,position:kt,removeBlank:xt})=>{const et=Dt=>{fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:He.Z.modal,onOk:()=>{const qt=[...We];qt.splice(Dt,1),qt.length===0?xt(kt-1):gt(qt)}})},Fe=()=>{const Dt=[...We];Dt.push(""),gt(Dt)};return Qe.createElement(Ie.Z,{className:"ml20"},Qe.createElement(Te.Z,{flex:1},We==null?void 0:We.map((Dt,qt)=>Qe.createElement(Ie.Z,{key:`${Dt}_${qt}`,className:"mb20"},Qe.createElement(xe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Dt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Xt=>{const Et=[...We],zt=Xt.target.value.trim();Et[qt]=zt,gt(Et)}}),Qe.createElement(Be.Z,{title:"\u5220\u9664"},Qe.createElement(Ue.Z,{className:He.Z.deleteIcon,style:{marginLeft:15,visibility:kt===1&&qt===0?"hidden":"visible"},onClick:()=>et(qt)})),Qe.createElement(Be.Z,{title:"\u65B0\u589E\u7B54\u6848"},Qe.createElement(rt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:qt===0?"visible":"hidden"},onClick:()=>{Fe()}}))))))},pt=({value:We,onChange:gt,position:kt,removeBlank:xt})=>{const et=Dt=>{fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:He.Z.modal,onOk:()=>{const qt=[...We];qt.splice(Dt,1),qt.length===0?xt(kt-1):gt(qt)}})},Fe=()=>{const Dt=[...We];Dt.push(""),gt(Dt)};return Qe.createElement(Ie.Z,{className:"ml20"},Qe.createElement(Te.Z,{flex:1},We==null?void 0:We.map((Dt,qt)=>Qe.createElement(Ie.Z,{key:`${Dt}_${qt}`,align:"middle",className:"mb20"},Qe.createElement(be.Z,{value:Dt,style:{flex:1},onChange:Xt=>{const Et=[...We];Et[qt]=Xt,gt(Et)}}),Qe.createElement(Be.Z,{title:"\u5220\u9664"},Qe.createElement(Ue.Z,{className:He.Z.deleteIcon,style:{marginLeft:15,visibility:kt===1&&qt===0?"hidden":"visible"},onClick:()=>et(qt)})),Qe.createElement(Be.Z,{title:"\u65B0\u589E\u7B54\u6848"},Qe.createElement(rt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:qt===0?"visible":"hidden"},onClick:()=>{Fe()}}))))))},$e=({value:We=!0,onChange:gt})=>Qe.createElement(de.Z,{checked:!We,onChange:kt=>{gt(!kt)}}),ft=({questionTitlePlaceholder:We,form:gt,scoreByBlank:kt=!1,answerKey:xt})=>{const[et,Fe]=(0,E.useState)(!1),Dt=()=>{const Vn=gt.getFieldValue(xt);gt.setFieldsValue({[xt]:Vn.map((Pn,_t)=>ct(ot({},Pn),{position:_t+1}))})},qt=(0,E.useRef)(),Xt=(Vn,Pn)=>{for(let _t=0;_t<Vn;_t++)qt.current({position:null,answer_text:[""],model:1},Pn+_t);Dt()},Et=(0,E.useRef)(),zt=Vn=>{Et.current(Vn),Dt()},Yt=Se.default.useWatch(xt,gt);return Qe.createElement("div",{className:He.Z.wrap},Qe.createElement("div",{className:He.Z.questionTitleEditorWrap},Qe.createElement(Se.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Qe.createElement(Pe.h,{scrollId:"name",watch:!0,height:140,placeholder:We,showNullButton:!0,onAddBlank:()=>{const Vn=gt.getFieldValue(xt);Xt(1,Vn==null?void 0:Vn.length)}}))),Qe.createElement(Se.default.List,{name:xt,rules:[{validator(Vn,Pn){if(!(Pn!=null&&Pn.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const _t of Pn){const{answer_text:pn}=_t||{};if(pn!=null&&pn.some(sr=>(sr==null?void 0:sr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Vn,{add:Pn,remove:_t},{errors:pn})=>(qt.current=Pn,Et.current=_t,Qe.createElement(Qe.Fragment,null,Qe.createElement(Se.default.Item,{label:Qe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Vn.map((sr,Tn)=>{var Oe=sr,{key:me,name:he}=Oe,ge=_e(Oe,["key","name"]),ve,se;return Qe.createElement("div",{style:{marginBottom:10},key:me},Qe.createElement(Ie.Z,{className:"mb20",align:"middle",wrap:!1},Qe.createElement(Te.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${He.Z.blankIndex}`},"\u586B\u7A7A\u9879",Tn+1),Qe.createElement(Se.default.Item,ct(ot({},ge),{name:[he,"model"],noStyle:!0}),Qe.createElement(pe.ZP.Group,{onChange:()=>{const Ke=gt.getFieldValue(xt);gt.setFieldsValue({[xt]:Ke.map((bt,Wt)=>ct(ot({},bt),{answer_text:he===Wt?[""]:bt.answer_text}))})}},Qe.createElement(pe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Qe.createElement(Be.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Qe.createElement(qe.Z,null))),Qe.createElement(pe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Qe.createElement(Be.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Qe.createElement(qe.Z,null)))))),Qe.createElement(Ie.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Qe.createElement(Te.Z,{flex:1},Qe.createElement(Ie.Z,{align:"top",justify:"space-between",wrap:!1},Qe.createElement(Te.Z,{flex:1},Qe.createElement(Se.default.Item,ct(ot({},ge),{name:[he,"answer_text"],noStyle:!0}),((se=(ve=gt.getFieldValue(xt))==null?void 0:ve[he])==null?void 0:se.model)===1?Qe.createElement(Me,{removeBlank:zt,position:Tn+1}):Qe.createElement(pt,{removeBlank:zt,position:Tn+1}))),kt&&Qe.createElement(Te.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Qe.createElement(Se.default.Item,ct(ot({},ge),{name:[he,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:He.Z.blankInputNumberWrapper}),Qe.createElement(De.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Qe.createElement(Se.default.Item,ct(ot({},ge),{name:[he,"position"],noStyle:!0}),Qe.createElement(xe.default,{type:"hidden"})))))})))),Qe.createElement(Xe.ZP,{className:"mb20",onClick:()=>Xt(1,Yt==null?void 0:Yt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Qe.createElement(Ie.Z,{align:"middle"},Qe.createElement(Se.default.Item,{name:"downcase",valuePropName:"checked"},Qe.createElement(de.Z,null)),Qe.createElement(Te.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Qe.createElement(Ie.Z,{align:"middle"},Qe.createElement(Se.default.Item,{name:"no_space",valuePropName:"checked"},Qe.createElement(de.Z,null)),Qe.createElement(Te.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Yt==null?void 0:Yt.length)>1&&Qe.createElement(Ie.Z,{align:"middle",className:(Yt==null?void 0:Yt.length)>1?"mb30":`${He.Z.hide}`},Qe.createElement(Se.default.Item,{name:"is_ordered"},Qe.createElement($e,null)),Qe.createElement(Te.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Qe.createElement("div",{onClick:()=>Fe(!0)},Qe.createElement(Se.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Qe.createElement(Pe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:et}))))}},66495:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Je}});var E=te(67294),fe=te(71230),Ie=te(15746),Te=te(22150),xe=te(52654),Be=te(41307),de=te(67294),Se=Object.defineProperty,pe=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,rt=(Ze,ye,Ee)=>ye in Ze?Se(Ze,ye,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Ze[ye]=Ee,qe=(Ze,ye)=>{for(var Ee in ye||(ye={}))Pe.call(ye,Ee)&&rt(Ze,Ee,ye[Ee]);if(Xe)for(var Ee of Xe(ye))Ue.call(ye,Ee)&&rt(Ze,Ee,ye[Ee]);return Ze},He=(Ze,ye)=>pe(Ze,De(ye)),be=(Ze,ye)=>{var Ee={};for(var Ye in Ze)Pe.call(Ze,Ye)&&ye.indexOf(Ye)<0&&(Ee[Ye]=Ze[Ye]);if(Ze!=null&&Xe)for(var Ye of Xe(Ze))ye.indexOf(Ye)<0&&Ue.call(Ze,Ye)&&(Ee[Ye]=Ze[Ye]);return Ee};const Qe={\u6B63\u786E:"T",\u9519\u8BEF:"F"},ht=({value:Ze,onChange:ye,form:Ee})=>{const Ye=(Ze==null?void 0:Ze.is_answer)===1,Ne=Ze==null?void 0:Ze.choice_text,ot=()=>{const ct=Ee.getFieldsValue().choices.map(_e=>({choice_text:_e.choice_text,is_answer:0}));Ee.setFieldsValue({choices:ct}),ye(He(qe({},Ze),{is_answer:1}))};return de.createElement(fe.Z,{className:xe.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},de.createElement(Ie.Z,{onClick:ot,className:`${xe.Z.choiceIndex} ${xe.Z.judgementIndex} ${Ye?xe.Z.activeAnswer:""}`},Qe[Ne]),de.createElement(Ie.Z,{flex:1,className:`${xe.Z.editorWrap} ml15`},de.createElement("div",{className:`${xe.Z.inputBorder} ${xe.Z.placeholder} ${Ye?xe.Z.activeJudgementAnswer:""}`},Ne)),de.createElement(Ie.Z,{flex:"0 0 auto",className:"ml15"},de.createElement("div",{onClick:ot,className:`${xe.Z.setAnswerBtn} ${Ye?xe.Z.activeAnswer:""}`},Ye?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Je=({questionTitlePlaceholder:Ze,choiceKey:ye,form:Ee})=>{const[Ye,Ne]=(0,E.useState)(!1);return de.createElement("div",{className:xe.Z.wrap},de.createElement("div",{className:xe.Z.questionTitleEditorWrap},de.createElement(Te.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},de.createElement(Be.h,{scrollId:"name",watch:!0,height:140,placeholder:Ze}))),de.createElement(Te.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},de.createElement(Te.default.List,{name:"choices",rules:[{validator(ot,ct){return ct.some(Me=>(Me==null?void 0:Me.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},ot=>de.createElement("div",{id:"choices"},ot.map(ct=>{var _e=ct,{key:Me,name:pt}=_e,$e=be(_e,["key","name"]);return de.createElement(Te.default.Item,He(qe({},$e),{key:Me,name:pt,noStyle:!0}),de.createElement(ht,{form:Ee}))})))),de.createElement("div",{onClick:()=>Ne(!0)},de.createElement(Te.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},de.createElement(Be.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ye}))))}},41307:function(In,Ut,te){"use strict";te.d(Ut,{h:function(){return qe},x:function(){return He}});var E=te(91304),fe=te(52654),Ie=te(35598),Te=te(67294),xe=Object.defineProperty,Be=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Xe=(be,Qe,ht)=>Qe in be?xe(be,Qe,{enumerable:!0,configurable:!0,writable:!0,value:ht}):be[Qe]=ht,Pe=(be,Qe)=>{for(var ht in Qe||(Qe={}))pe.call(Qe,ht)&&Xe(be,ht,Qe[ht]);if(Se)for(var ht of Se(Qe))De.call(Qe,ht)&&Xe(be,ht,Qe[ht]);return be},Ue=(be,Qe)=>Be(be,de(Qe)),rt=(be,Qe)=>{var ht={};for(var Je in be)pe.call(be,Je)&&Qe.indexOf(Je)<0&&(ht[Je]=be[Je]);if(be!=null&&Se)for(var Je of Se(be))Qe.indexOf(Je)<0&&De.call(be,Je)&&(ht[Je]=be[Je]);return ht};const qe=be=>{var Qe=be,{value:ht,onChange:Je,scrollId:Ze}=Qe,ye=rt(Qe,["value","onChange","scrollId"]);return Te.createElement("div",{id:Ze||""},Te.createElement(E.Z,Ue(Pe({},ye),{defaultValue:ht,onChange:(Ee,Ye)=>{Ye!=null&&Ye.length?Je(Ee,Ye):Je(Ee)}})))},He=({value:be,onChange:Qe,placeholder:ht,height:Je=140,isEdit:Ze,miniToolbar:ye,watch:Ee=!0})=>Ze?Te.createElement(E.Z,{watch:Ee,isFocus:!0,height:Je||void 0,placeholder:ht,defaultValue:be,onChange:Qe,miniToolbar:ye}):Te.createElement("div",{style:{cursor:"pointer"}},be?Te.createElement(Ie.Z,{className:fe.Z.inputBorder,value:be}):Te.createElement("div",{className:`${fe.Z.inputBorder} ${fe.Z.placeholder} inputBorderError`},ht))},77792:function(In,Ut,te){"use strict";te.d(Ut,{W:function(){return _e}});var E=te(67294),fe=te(2453),Ie=te(66309),Te=te(22150),xe=te(47897),Be=te(71230),de=te(15746),Se=te(83062),pe=te(69677),De=te(31795),Xe=te(52654),Pe=te(41307),Ue=te(91304),rt=te(17663),qe=Object.defineProperty,He=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ze=(Me,pt,$e)=>pt in Me?qe(Me,pt,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Me[pt]=$e,ye=(Me,pt)=>{for(var $e in pt||(pt={}))ht.call(pt,$e)&&Ze(Me,$e,pt[$e]);if(Qe)for(var $e of Qe(pt))Je.call(pt,$e)&&Ze(Me,$e,pt[$e]);return Me},Ee=(Me,pt)=>He(Me,be(pt)),Ye=(Me,pt)=>{var $e={};for(var ft in Me)ht.call(Me,ft)&&pt.indexOf(ft)<0&&($e[ft]=Me[ft]);if(Me!=null&&Qe)for(var ft of Qe(Me))pt.indexOf(ft)<0&&Je.call(Me,ft)&&($e[ft]=Me[ft]);return $e};const Ne=Me=>{var pt=Me,{value:$e,onChange:ft}=pt,We=Ye(pt,["value","onChange"]);const gt=kt=>{ft([kt])};return E.createElement(Ue.Z,Ee(ye({},We),{defaultValue:$e==null?void 0:$e[0],onChange:gt}))},ot=Me=>{if(!Me)return!1;if(/^s*$/.test(Me)||Me.trim()===""){fe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let pt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Me==="|"?(fe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ct=({value:Me=[],onClose:pt})=>E.createElement(Ie.Z,{closable:!0,onClose:pt,className:Xe.Z.keywordTag},E.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Me.join(" \u6216 "))),_e=({questionTitlePlaceholder:Me,form:pt,showKeywords:$e,isMustKeyWords:ft=$e})=>{const[We,gt]=(0,E.useState)(!1),[kt,xt]=(0,E.useState)(""),et=Te.default.useWatch("use_keywords",pt),Fe=Te.default.useWatch("question_score",pt);return E.createElement("div",{className:Xe.Z.wrap},E.createElement("div",{className:Xe.Z.questionTitleEditorWrap},E.createElement(Te.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},E.createElement(Pe.h,{scrollId:"name",watch:!0,height:140,placeholder:Me}))),E.createElement(Te.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},E.createElement(Ne,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),$e&&!ft&&E.createElement(Te.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},E.createElement(xe.Z,{defaultChecked:!0})),$e&&ft&&E.createElement(Be.Z,{align:"middle",className:"mb30"},E.createElement(Te.default.Item,{name:"use_keywords",valuePropName:"checked"},E.createElement(xe.Z,null)),E.createElement(de.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(de.Z,null,E.createElement(Se.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(rt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(et||!ft)&&E.createElement(Te.default.List,{name:"keywords",rules:[{validator(Dt,qt){return ft?qt!=null&&qt.length?(qt==null?void 0:qt.reduce((Et,zt)=>Et+zt.score,0))>parseFloat(Fe)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Dt,{add:qt,remove:Xt})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${Xe.Z.title} mb10`},ft?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(Be.Z,{align:"middle",className:"font14 mb30"},E.createElement(de.Z,{flex:1},E.createElement(pe.default,{value:kt,onChange:Et=>{xt(Et.target.value)},maxLength:50,allowClear:!0,onPressEnter:Et=>{var zt,Yt,Vn,Pn;const _t=`${(zt=Et.target)==null?void 0:zt.value}`,pn=(Vn=(Yt=_t==null?void 0:_t.split("|"))==null?void 0:Yt.filter(Oe=>!!Oe))==null?void 0:Vn.map(Oe=>Oe==null?void 0:Oe.trim()),sr=pt.getFieldValue("keywords"),Tn=((Pn=sr==null?void 0:sr.map(Oe=>Oe==null?void 0:Oe.keyword))==null?void 0:Pn.flat())||[];for(const Oe of pn)if(Tn.includes(Oe)){fe.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}ot(_t)&&(qt({keyword:pn,score:1}),xt(""))},className:Xe.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(de.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Dt.map(Et=>{var zt=Et,{key:Yt,name:Vn}=zt,Pn=Ye(zt,["key","name"]);return E.createElement(Be.Z,{key:Yt,className:"mb20",style:{marginRight:148}},E.createElement(de.Z,{flex:1},E.createElement(Be.Z,{align:"middle",justify:"space-between"},E.createElement(Te.default.Item,Ee(ye({},Pn),{name:[Vn,"keyword"]}),E.createElement(ct,{onClose:()=>Xt(Vn)})),ft&&E.createElement(Te.default.Item,Ee(ye({},Pn),{name:[Vn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Xe.Z.blankInputNumberWrapper}),E.createElement(De.Z,{className:Xe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>gt(!0)},E.createElement(Te.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Pe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:We}))))}},30351:function(In,Ut,te){"use strict";te.d(Ut,{tc:function(){return ci.t},uh:function(){return E.u},rL:function(){return Mi},u8:function(){return Ie.u},ZZ:function(){return fe.Z},Wk:function(){return Te.W}});var E=te(11776),fe=te(66495),Ie=te(81580),Te=te(77792),xe=te(67294),Be=te(47221),de=te(22150),Se=te(71230),pe=te(15746),De=te(31795),Xe=te(83062),Pe=te(85418),Ue=te(52654),rt=te(24018),qe=te(41307),He=te(14446),be=te(69677),Qe=te(47897),ht=te(71577),Je=te(40043),Ze=te(67294),ye=Object.defineProperty,Ee=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,_e=(Qn,Or,Hr)=>Or in Qn?ye(Qn,Or,{enumerable:!0,configurable:!0,writable:!0,value:Hr}):Qn[Or]=Hr,Me=(Qn,Or)=>{for(var Hr in Or||(Or={}))ot.call(Or,Hr)&&_e(Qn,Hr,Or[Hr]);if(Ne)for(var Hr of Ne(Or))ct.call(Or,Hr)&&_e(Qn,Hr,Or[Hr]);return Qn},pt=(Qn,Or)=>Ee(Qn,Ye(Or)),$e=(Qn,Or)=>{var Hr={};for(var vi in Qn)ot.call(Qn,vi)&&Or.indexOf(vi)<0&&(Hr[vi]=Qn[vi]);if(Qn!=null&&Ne)for(var vi of Ne(Qn))Or.indexOf(vi)<0&&ct.call(Qn,vi)&&(Hr[vi]=Qn[vi]);return Hr};const ft=({value:Qn,onChange:Or,position:Hr,removeBlank:vi})=>{const Zi=$n=>{He.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Ue.Z.modal,onOk:()=>{const mn=[...Qn];mn.splice($n,1),mn.length===0?vi(Hr-1):Or(mn)}})},$t=()=>{const $n=[...Qn];$n.push(""),Or($n)};return Ze.createElement(Se.Z,{className:"ml20"},Ze.createElement(pe.Z,{flex:1},Qn==null?void 0:Qn.map(($n,mn)=>Ze.createElement(Se.Z,{key:`${$n}_${mn}`,className:"mb20"},Ze.createElement(be.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:$n,autoSize:{maxRows:3},maxLength:1e3,onBlur:Yn=>{const Dr=[...Qn],hi=Yn.target.value.trim();Dr[mn]=hi,Or(Dr)}}),Ze.createElement(Xe.Z,{title:"\u5220\u9664"},Ze.createElement(rt.Z,{className:Ue.Z.deleteIcon,style:{marginLeft:15,visibility:Hr===1&&mn===0?"hidden":"visible"},onClick:()=>Zi(mn)})),Ze.createElement(Xe.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ze.createElement(Je.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:mn===0?"visible":"hidden"},onClick:()=>{$t()}}))))))},We=({value:Qn=!0,onChange:Or})=>Ze.createElement(Qe.Z,{checked:!Qn,onChange:Hr=>{Or(!Hr)}}),gt=({questionTitlePlaceholder:Qn,form:Or,name:Hr,scoreByBlank:vi=!1,answerKey:Zi,titleKey:$t="name",analysisKey:$n="analysis",isOrdered:mn="is_ordered"})=>{var Yn,Dr;const[hi,oi]=(0,xe.useState)(!1),Vr=()=>{const on=Or.getFieldValue(["sub_item_banks",...Zi]);Or.setFieldValue(["sub_item_banks",...Zi],on==null?void 0:on.map((Kn,Dn)=>pt(Me({},Kn),{position:Dn+1})))},Ct=(0,xe.useRef)(),hn=(on,Kn)=>{for(let Dn=0;Dn<on;Dn++)Ct.current({position:null,answer_text:[""]},Kn+Dn);Vr()},An=(0,xe.useRef)(),jn=on=>{An.current(on),Vr()},Bt=(Dr=(Yn=Or.getFieldValue("sub_item_banks"))==null?void 0:Yn[Zi==null?void 0:Zi[0]])==null?void 0:Dr[Zi==null?void 0:Zi[1]];return Ze.createElement("div",{className:Ue.Z.wrap},Ze.createElement("div",{className:Ue.Z.questionTitleEditorWrap},Ze.createElement(de.default.Item,{label:"\u9898\u5E72",name:$t,labelCol:{span:24},rules:[{required:!0}]},Ze.createElement(qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Qn,showNullButton:!0,onAddBlank:()=>{const on=Or.getFieldValue(["sub_item_banks",...Zi]);hn(1,on==null?void 0:on.length)}}))),Ze.createElement(de.default.List,{name:Zi,rules:[{validator(on,Kn){if((Kn==null?void 0:Kn.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Dn of Kn){const{answer_text:rr}=Dn||{};if(rr!=null&&rr.some(er=>(er==null?void 0:er.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(on,{add:Kn,remove:Dn},{errors:rr})=>(Ct.current=Kn,An.current=Dn,Ze.createElement(Ze.Fragment,null,Ze.createElement(de.default.Item,{label:Ze.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),on.map((er,Gr)=>{var ra=er,{key:Oi,name:bi}=ra,Ji=$e(ra,["key","name"]);return Ze.createElement(Se.Z,{align:"top",key:Oi},Ze.createElement(pe.Z,{className:`${Ue.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Gr+1),Ze.createElement(pe.Z,{flex:1},Ze.createElement(Se.Z,{align:"top",justify:"space-between"},Ze.createElement(pe.Z,{flex:1},Ze.createElement(de.default.Item,pt(Me({},Ji),{name:[bi,"answer_text"],noStyle:!0}),Ze.createElement(ft,{removeBlank:jn,position:Gr+1}))),vi&&Ze.createElement(pe.Z,{flex:"224px"},Ze.createElement(de.default.Item,pt(Me({},Ji),{name:[bi,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ue.Z.blankInputNumberWrapper}),Ze.createElement(De.Z,{className:Ue.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Ze.createElement(de.default.Item,pt(Me({},Ji),{name:[bi,"position"],noStyle:!0}),Ze.createElement(be.default,{type:"hidden"}))))})))),Ze.createElement(ht.ZP,{className:"mb20",onClick:()=>hn(1,Bt==null?void 0:Bt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Ze.createElement(Se.Z,{align:"middle"},Ze.createElement(de.default.Item,{name:[Hr,"downcase"],valuePropName:"checked"},Ze.createElement(Qe.Z,null)),Ze.createElement(pe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ze.createElement(Se.Z,{align:"middle"},Ze.createElement(de.default.Item,{name:[Hr,"no_space"],valuePropName:"checked"},Ze.createElement(Qe.Z,null)),Ze.createElement(pe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Bt==null?void 0:Bt.length)>1&&Ze.createElement(Se.Z,{align:"middle",className:(Bt==null?void 0:Bt.length)>1?"mb30":`${Ue.Z.hide}`},Ze.createElement(de.default.Item,{name:mn},Ze.createElement(We,null)),Ze.createElement(pe.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Ze.createElement("div",{className:"mt30",onClick:()=>oi(!0)},Ze.createElement(de.default.Item,{name:$n,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ze.createElement(qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:hi}))))};var kt=te(67294),xt=Object.defineProperty,et=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Et=(Qn,Or,Hr)=>Or in Qn?xt(Qn,Or,{enumerable:!0,configurable:!0,writable:!0,value:Hr}):Qn[Or]=Hr,zt=(Qn,Or)=>{for(var Hr in Or||(Or={}))qt.call(Or,Hr)&&Et(Qn,Hr,Or[Hr]);if(Dt)for(var Hr of Dt(Or))Xt.call(Or,Hr)&&Et(Qn,Hr,Or[Hr]);return Qn},Yt=(Qn,Or)=>et(Qn,Fe(Or)),Vn=(Qn,Or)=>{var Hr={};for(var vi in Qn)qt.call(Qn,vi)&&Or.indexOf(vi)<0&&(Hr[vi]=Qn[vi]);if(Qn!=null&&Dt)for(var vi of Dt(Qn))Or.indexOf(vi)<0&&Xt.call(Qn,vi)&&(Hr[vi]=Qn[vi]);return Hr};const Pn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},_t=({value:Qn,onChange:Or,form:Hr,choiceKey:vi})=>{const Zi=(Qn==null?void 0:Qn.is_answer)===1,$t=Qn==null?void 0:Qn.choice_text,$n=()=>{var mn;const Yn=(mn=Hr==null?void 0:Hr.getFieldValue(["sub_item_banks",...vi]))==null?void 0:mn.map(Dr=>({choice_text:Dr.choice_text,is_answer:0}));Hr==null||Hr.setFieldValue(["sub_item_banks",...vi],Yn),Or(Yt(zt({},Qn),{is_answer:1}))};return kt.createElement(Se.Z,{className:Ue.Z.choiceWrap,align:"middle",wrap:!1},kt.createElement(pe.Z,{onClick:$n,className:`${Ue.Z.choiceIndex} ${Ue.Z.judgementIndex} ${Zi?Ue.Z.activeAnswer:""}`},Pn[$t]),kt.createElement(pe.Z,{flex:1,className:`${Ue.Z.editorWrap} ml15`},kt.createElement("div",{className:`${Ue.Z.inputBorder} ${Ue.Z.placeholder} ${Zi?Ue.Z.activeJudgementAnswer:""}`},$t)),kt.createElement(pe.Z,{flex:"0 0 auto",className:"ml15"},kt.createElement("div",{onClick:$n,className:`${Ue.Z.setAnswerBtn} ${Zi?Ue.Z.activeAnswer:""}`},Zi?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},pn=({questionTitlePlaceholder:Qn,choiceKey:Or="choices",form:Hr,titleKey:vi="name",analysisKey:Zi="analysis"})=>{const[$t,$n]=(0,xe.useState)(!1);return kt.createElement("div",{className:Ue.Z.wrap},kt.createElement("div",{className:Ue.Z.questionTitleEditorWrap},kt.createElement(de.default.Item,{label:"\u9898\u5E72",name:vi,labelCol:{span:24},rules:[{required:!0}]},kt.createElement(qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Qn}))),kt.createElement(de.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},kt.createElement(de.default.List,{name:Or,rules:[{validator(mn,Yn){return Yn.some(hi=>(hi==null?void 0:hi.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},mn=>kt.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},mn.map(Yn=>{var Dr=Yn,{key:hi,name:oi}=Dr,Vr=Vn(Dr,["key","name"]);return kt.createElement(de.default.Item,Yt(zt({},Vr),{key:hi,name:oi,noStyle:!0}),kt.createElement(_t,{form:Hr,choiceKey:Or}))})))),kt.createElement("div",{className:"mt30",onClick:()=>$n(!0)},kt.createElement(de.default.Item,{name:Zi,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},kt.createElement(qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:$t}))))};var sr=te(2453),Tn=te(66309),Oe=te(91304),me=te(17663),he=Object.defineProperty,ge=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Wt=(Qn,Or,Hr)=>Or in Qn?he(Qn,Or,{enumerable:!0,configurable:!0,writable:!0,value:Hr}):Qn[Or]=Hr,yn=(Qn,Or)=>{for(var Hr in Or||(Or={}))Ke.call(Or,Hr)&&Wt(Qn,Hr,Or[Hr]);if(se)for(var Hr of se(Or))bt.call(Or,Hr)&&Wt(Qn,Hr,Or[Hr]);return Qn},bn=(Qn,Or)=>ge(Qn,ve(Or)),cn=(Qn,Or)=>{var Hr={};for(var vi in Qn)Ke.call(Qn,vi)&&Or.indexOf(vi)<0&&(Hr[vi]=Qn[vi]);if(Qn!=null&&se)for(var vi of se(Qn))Or.indexOf(vi)<0&&bt.call(Qn,vi)&&(Hr[vi]=Qn[vi]);return Hr};const wn=Qn=>{var Or=Qn,{value:Hr,onChange:vi}=Or,Zi=cn(Or,["value","onChange"]);const $t=$n=>{vi([$n])};return xe.createElement(Oe.Z,bn(yn({},Zi),{defaultValue:Hr==null?void 0:Hr[0],onChange:$t}))},Tt=Qn=>{if(!Qn)return!1;let Or=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Qn==="|"?(sr.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},nn=({value:Qn=[],onClose:Or})=>xe.createElement(Tn.Z,{closable:!0,onClose:Or,className:Ue.Z.keywordTag},xe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Qn.join(" \u6216 "))),fn=({questionTitlePlaceholder:Qn,form:Or,showKeywords:Hr,isMustKeyWords:vi=Hr,titleKey:Zi="name",analysisKey:$t="analysis",answerTexts:$n="answer_texts",keywords:mn="keywords",useKeywords:Yn="use_keywords",indexs:Dr})=>{const[hi,oi]=(0,xe.useState)(!1),[Vr,Ct]=(0,xe.useState)(""),[hn,An]=(0,xe.useState)(!1),jn=de.default.useWatch("question_score",Or);return xe.createElement("div",{className:Ue.Z.wrap},xe.createElement("div",{className:Ue.Z.questionTitleEditorWrap},xe.createElement(de.default.Item,{label:"\u9898\u5E72",name:Zi,labelCol:{span:24},rules:[{required:!0}]},xe.createElement(qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Qn}))),xe.createElement(de.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:$n,labelCol:{span:24}},xe.createElement(wn,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Hr&&!vi&&xe.createElement(de.default.Item,{hidden:!0,name:Yn,valuePropName:"checked"},xe.createElement(Qe.Z,{defaultChecked:!0})),Hr&&vi&&xe.createElement(Se.Z,{align:"middle",className:"mb30"},xe.createElement(de.default.Item,{name:Yn,valuePropName:"checked"},xe.createElement(Qe.Z,{onChange:()=>{var Bt,on,Kn,Dn,rr,er;console.log(Or.getFieldsValue()),An((Kn=(on=(Bt=Or.getFieldsValue())==null?void 0:Bt.sub_item_banks)==null?void 0:on[Dr])==null?void 0:Kn.use_keywords),console.log((er=(rr=(Dn=Or.getFieldsValue())==null?void 0:Dn.sub_item_banks)==null?void 0:rr[Dr])==null?void 0:er.use_keywords),console.log(hn)}})),xe.createElement(pe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),xe.createElement(pe.Z,null,xe.createElement(Xe.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},xe.createElement(me.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(hn||!vi)&&xe.createElement(de.default.List,{name:mn,rules:[{validator(Bt,on){return vi?on!=null&&on.length?(on==null?void 0:on.reduce((Dn,rr)=>Dn+rr.score,0))>parseFloat(jn)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Bt,{add:on,remove:Kn})=>xe.createElement(xe.Fragment,null,xe.createElement("div",{className:`${Ue.Z.title} mb10`},vi?"\u5173\u952E\u8BCD":xe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),xe.createElement(Se.Z,{align:"middle",className:"font14 mb30"},xe.createElement(pe.Z,{flex:1},xe.createElement(be.default,{value:Vr,onChange:Dn=>{Ct(Dn.target.value)},maxLength:50,allowClear:!0,onPressEnter:Dn=>{var rr,er,Gr,ra;const Oi=`${(rr=Dn.target)==null?void 0:rr.value}`,bi=(Gr=(er=Oi==null?void 0:Oi.split("|"))==null?void 0:er.filter(ua=>!!ua))==null?void 0:Gr.map(ua=>ua==null?void 0:ua.trim()),Ji=Or.getFieldValue(["sub_item_banks",...mn]),Ti=((ra=Ji==null?void 0:Ji.map(ua=>ua==null?void 0:ua.keyword))==null?void 0:ra.flat())||[];for(const ua of bi)if(Ti.includes(ua)){sr.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Tt(Oi)&&(on({keyword:bi,score:1}),Ct(""))},className:Ue.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),xe.createElement(pe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Bt.map(Dn=>{var rr=Dn,{key:er,name:Gr}=rr,ra=cn(rr,["key","name"]);return xe.createElement(Se.Z,{key:er,className:"mb20",style:{marginRight:148}},xe.createElement(pe.Z,{flex:1},xe.createElement(Se.Z,{align:"middle",justify:"space-between"},xe.createElement(de.default.Item,bn(yn({},ra),{name:[Gr,"keyword"]}),xe.createElement(nn,{onClose:()=>Kn(Gr)})),vi&&xe.createElement(de.default.Item,bn(yn({},ra),{name:[Gr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ue.Z.blankInputNumberWrapper}),xe.createElement(De.Z,{className:Ue.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),xe.createElement("div",{onClick:()=>oi(!0)},xe.createElement(de.default.Item,{name:$t,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},xe.createElement(qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:hi}))))};var sn=te(67294),an=Object.defineProperty,xr=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,en=(Qn,Or,Hr)=>Or in Qn?an(Qn,Or,{enumerable:!0,configurable:!0,writable:!0,value:Hr}):Qn[Or]=Hr,Fr=(Qn,Or)=>{for(var Hr in Or||(Or={}))cr.call(Or,Hr)&&en(Qn,Hr,Or[Hr]);if(Vt)for(var Hr of Vt(Or))En.call(Or,Hr)&&en(Qn,Hr,Or[Hr]);return Qn},Ur=(Qn,Or)=>xr(Qn,Lt(Or)),ai=(Qn,Or)=>{var Hr={};for(var vi in Qn)cr.call(Qn,vi)&&Or.indexOf(vi)<0&&(Hr[vi]=Qn[vi]);if(Qn!=null&&Vt)for(var vi of Vt(Qn))Or.indexOf(vi)<0&&En.call(Qn,vi)&&(Hr[vi]=Qn[vi]);return Hr};const{Panel:ei}=Be.default,Mi=({questionTitlePlaceholder:Qn,choiceKey:Or,form:Hr,withScore:vi})=>{const[Zi,$t]=(0,xe.useState)([]),$n=mn=>{$t(mn)};return sn.createElement("div",{className:Ue.Z.wrap},sn.createElement("div",{className:Ue.Z.questionTitleEditorWrap},sn.createElement(de.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},sn.createElement(qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Qn}))),sn.createElement(de.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),sn.createElement(de.default.List,{name:"sub_item_banks",rules:[{validator(mn,Yn){return Yn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(mn,{add:Yn,remove:Dr,move:hi})=>{const oi=Hr.getFieldValue("sub_item_banks");return sn.createElement(sn.Fragment,null,sn.createElement(Be.default,{className:mn.length>0?Ue.Z.collapseWrapper:"",bordered:!1,activeKey:Zi,onChange:$n,expandIcon:({isActive:Vr})=>sn.createElement("i",{className:`iconfont icon-weizhankai ${Vr?Ue.Z.open:Ue.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},mn.map((Vr,Ct)=>{var hn=Vr,{key:An,name:jn}=hn,Bt=ai(hn,["key","name"]),on,Kn,Dn,rr,er,Gr,ra,Oi,bi,Ji;return sn.createElement(ei,{className:Ue.Z.panel,forceRender:!0,header:sn.createElement("div",{className:Ue.Z.panelHeader},"\u7B2C",Ct+1,"\u5C0F\u9898",sn.createElement("span",null,"\uFF08",((on=oi==null?void 0:oi[jn])==null?void 0:on.item_type)=="SINGLE"?"\u5355\u9009\u9898":((Kn=oi==null?void 0:oi[jn])==null?void 0:Kn.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((Dn=oi==null?void 0:oi[jn])==null?void 0:Dn.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((rr=oi==null?void 0:oi[jn])==null?void 0:rr.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:jn,extra:sn.createElement(Se.Z,{align:"middle",onClick:Ti=>Ti.stopPropagation()},vi&&sn.createElement(pe.Z,null,sn.createElement(de.default.Item,Ur(Fr({},Bt),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[jn,"question_score"],className:Ue.Z.blankInputNumberWrapper}),sn.createElement(De.Z,{className:Ue.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),sn.createElement(pe.Z,null,sn.createElement(Se.Z,{align:"middle",className:"pl40",justify:"end"},Ct!==0&&sn.createElement("div",{onClick:()=>{var Ti;hi(Ct,Ct-1);const ua=(Ti=Hr.getFieldValue("sub_item_banks"))==null?void 0:Ti.map((br,Di)=>(mn.map((ni,No)=>{Di===No&&(br.q_position=Number(ni.name)+1)}),br));Hr.setFieldValue("sub_item_banks",ua)}},sn.createElement(Xe.Z,{title:"\u4E0A\u79FB"},sn.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Ct<mn.length-1&&sn.createElement("div",{onClick:()=>{var Ti;hi(Ct,Ct+1);const ua=(Ti=Hr.getFieldValue("sub_item_banks"))==null?void 0:Ti.map((br,Di)=>(mn.map((ni,No)=>{Di===No&&(br.q_position=Number(ni.name)+1)}),br));Hr.setFieldValue("sub_item_banks",ua)},className:Ct===0?"":"ml15"},sn.createElement(Xe.Z,{title:"\u4E0B\u79FB"},sn.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),sn.createElement(pe.Z,null,sn.createElement(Xe.Z,{title:"\u5220\u9664"},sn.createElement(rt.Z,{className:`${Ue.Z.deleteIcon} ml15`,onClick:()=>Dr(jn)}))))},sn.createElement(de.default.Item,Ur(Fr({},Bt),{name:jn}),(((er=oi==null?void 0:oi[jn])==null?void 0:er.item_type)=="SINGLE"||((Gr=oi==null?void 0:oi[jn])==null?void 0:Gr.item_type)=="MULTIPLE")&&sn.createElement(E.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((ra=oi==null?void 0:oi[jn])==null?void 0:ra.item_type)=="MULTIPLE",form:Hr,choiceKey:[jn,"choices"],titleKey:[jn,"name"],analysisKey:[jn,"analysis"],choiceOptionsPath:["sub_item_banks",jn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Oi=oi==null?void 0:oi[jn])==null?void 0:Oi.item_type)=="COMPLETION"&&sn.createElement(gt,{form:Hr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:jn,titleKey:[jn,"name"],analysisKey:[jn,"analysis"],isOrdered:[jn,"is_ordered"],answerKey:[jn,"standard_answers"]}),((bi=oi==null?void 0:oi[jn])==null?void 0:bi.item_type)=="JUDGMENT"&&sn.createElement(pn,{form:Hr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[jn,"name"],analysisKey:[jn,"analysis"],choiceKey:[jn,"choices"]}),((Ji=oi==null?void 0:oi[jn])==null?void 0:Ji.item_type)=="SUBJECTIVE"&&sn.createElement(fn,{showKeywords:!0,isMustKeyWords:!1,form:Hr,titleKey:[jn,"name"],analysisKey:[jn,"analysis"],answerTexts:[jn,"answer_texts"],useKeywords:[jn,"use_keywords"],keywords:[jn,"keywords"],indexs:jn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),mn.length<20&&sn.createElement(Pe.Z,{menu:{items:[{label:sn.createElement("div",{onClick:()=>{Yn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),$t([mn==null?void 0:mn.length,...Zi])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:sn.createElement("div",{onClick:()=>{Yn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),$t([mn==null?void 0:mn.length,...Zi])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:sn.createElement("div",{onClick:()=>{Yn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),$t([mn==null?void 0:mn.length,...Zi])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:sn.createElement("div",{onClick:()=>{Yn({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),$t([mn==null?void 0:mn.length,...Zi])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:sn.createElement("div",{onClick:()=>{Yn({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),$t([mn==null?void 0:mn.length,...Zi])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Vr=>Vr.show).map(Vr=>({label:Vr.label,key:Vr.key}))}},sn.createElement("div",{className:`${Ue.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var ci=te(15312)},48994:function(In,Ut,te){"use strict";te.d(Ut,{C:function(){return We}});var E=te(67294),fe={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},Ie=te(94184),Te=te.n(Ie),xe=te(84567),Be=te(71230),de=te(2453),Se=te(83062),pe=te(71577),De=te(14446),Xe=te(9430),Pe=te(31795),Ue=te(22150),rt=te(57953),qe=te(28706),He=te(33170),be=te(52262),Qe=te(63037),ht=te(64743),Je=Object.defineProperty,Ze=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ot=(gt,kt,xt)=>kt in gt?Je(gt,kt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):gt[kt]=xt,ct=(gt,kt)=>{for(var xt in kt||(kt={}))Ye.call(kt,xt)&&ot(gt,xt,kt[xt]);if(Ee)for(var xt of Ee(kt))Ne.call(kt,xt)&&ot(gt,xt,kt[xt]);return gt},_e=(gt,kt)=>Ze(gt,ye(kt)),Me=(gt,kt,xt)=>new Promise((et,Fe)=>{var Dt=Et=>{try{Xt(xt.next(Et))}catch(zt){Fe(zt)}},qt=Et=>{try{Xt(xt.throw(Et))}catch(zt){Fe(zt)}},Xt=Et=>Et.done?et(Et.value):Promise.resolve(Et.value).then(Dt,qt);Xt((xt=xt.apply(gt,kt)).next())});const pt=xe.default.Group,$e=({className:gt,title:kt,items:xt=[],value:et,onChange:Fe})=>{const Dt=(xt==null?void 0:xt.length)===(et==null?void 0:et.length),qt=(et==null?void 0:et.length)>0&&(et==null?void 0:et.length)<(xt==null?void 0:xt.length),Xt=Et=>{const zt=xt.map(Yt=>Yt.id);Fe(Et.target.checked?zt:[])};return E.createElement(Be.Z,{align:"middle",className:gt},!!kt&&E.createElement("div",{className:"mr20",style:{color:"#5F6368"}},kt),E.createElement(xe.default,{indeterminate:qt,onChange:Xt,checked:Dt},"\u5168\u90E8"),E.createElement(pt,{value:et,onChange:Fe},xt.map(Et=>E.createElement(xe.default,{className:"ml30 c-black",key:Et.id,value:Et.id},Et.name,E.createElement("span",null,`(${Et.count})`)))))};var We=({className:gt,style:kt,dataSource:xt})=>{var et,Fe,Dt,qt,Xt,Et,zt;const[Yt,Vn]=(0,E.useState)({}),[Pn,_t]=(0,E.useState)(!0),[pn,sr]=(0,E.useState)(!1),[Tn,Oe]=(0,E.useState)(!1),[me,he]=(0,E.useState)(null),[ge,ve]=(0,E.useState)(0),[se,Ke]=(0,E.useState)({}),[bt,Wt]=(0,E.useState)(!0),[yn,bn]=(0,E.useState)(0),[cn,wn]=(0,E.useState)(0),[Tt,nn]=(0,E.useState)(!1),fn=(0,E.useRef)(null),[sn,an]=(0,E.useState)(!1),[xr,Lt]=(0,E.useState)(!0),[Vt,cr]=(0,E.useState)([]),En={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[en,Fr]=(0,E.useState)(ct({},En));(0,E.useEffect)(()=>{xt!=null&&xt.question_id&&Vn(xt)},[xt==null?void 0:xt.question_id]),(0,E.useEffect)(()=>{var mn;if(((mn=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:mn.status)==="running"){const Yn=setInterval(()=>{ei()},3e3);return()=>clearInterval(Yn)}},[(et=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:et.status]),(0,E.useEffect)(()=>{var mn;Tn&&(Tn===1&&(en.question_status=Mi.map(Yn=>Yn.value),en.review=ci.map(Yn=>Yn.value)),Tn===2&&(en.exercise_question_resubmit_id=(mn=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:mn.id,me===1&&(en.success_status=[1]),me===2&&(en.success_status=[0])),Fr(ct({},en)),Ur(en),wn(Yt!=null&&Yt.is_mirror?3:10),bn(Yt!=null&&Yt.is_mirror?1:5))},[Tn]),(0,E.useEffect)(()=>{sn&&ai()},[sn]);const Ur=mn=>Me(void 0,null,function*(){_t(!0);const Yn=yield(0,He.ZP)(`/api/exercise_questions/${Yt==null?void 0:Yt.question_id}/resubmit_student_list.json`,{method:"get",params:mn});(Yn==null?void 0:Yn.status)==0&&(Ke(Yn||[]),ve(Yn==null?void 0:Yn.count)),_t(!1)}),ai=()=>Me(void 0,null,function*(){Lt(!0);const mn=yield(0,He.ZP)(`/api/exercise_questions/${Yt==null?void 0:Yt.question_id}/resubmit_history.json`,{method:"get"});(mn==null?void 0:mn.status)==0&&cr((mn==null?void 0:mn.data)||[]),Lt(!1)}),ei=()=>Me(void 0,null,function*(){const mn=yield(0,He.ZP)(`/api/exercise_questions/${Yt==null?void 0:Yt.question_id}/resubmit_status.json`,{method:"get"});(mn==null?void 0:mn.status)==0&&Vn(_e(ct({},Yt),{show_resubmit_history:!0,exercise_question_resubmit:(mn==null?void 0:mn.data)||{}}))}),Mi=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],ci=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],Qn=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],Or=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(mn,Yn,Dr)=>E.createElement("span",{className:"c-black"},Dr+1+(en.page-1)*en.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:mn=>E.createElement("span",{className:"c-black"},mn)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:mn=>E.createElement("span",{className:"c-grey-666"},mn||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:mn=>E.createElement("span",{className:"c-black"},mn)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:mn=>{const{label:Yn,color:Dr}=Mi.find(hi=>hi.value===mn)||{};return E.createElement("span",{style:{color:Dr}},Yn)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:mn=>E.createElement("span",{className:"c-black"},mn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:mn=>E.createElement("span",{className:"c-black"},mn)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:mn=>{const{label:Yn,color:Dr}=ci.find(hi=>hi.value===mn)||{};return E.createElement("span",{style:{color:Dr}},Yn)}},Tn===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:mn=>{const{label:Yn,color:Dr}=Qn.find(hi=>hi.value===mn)||{};return E.createElement("span",{style:{color:Dr}},Yn)}}].filter(Boolean),Hr=(mn,Yn,Dr)=>{en.page=mn==null?void 0:mn.current,en.per_page=mn==null?void 0:mn.pageSize,Dr!=null&&Dr.order?(en.sort_by=Dr==null?void 0:Dr.field,en.direction=(Dr==null?void 0:Dr.order)==="ascend"?"asc":"desc"):(en.sort_by=null,en.direction=null),Fr(ct({},en)),Ur(en)},vi=()=>{if(!yn){de.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}nn(!0)},Zi=()=>Me(void 0,null,function*(){var mn,Yn;if((mn=fn.current)!=null&&mn.onVerify())return;sr(!0);const Dr=yield(0,He.ZP)(`/api/exercise_questions/${Yt==null?void 0:Yt.question_id}/resubmit.json`,{method:"post",body:{keyword:en.keyword,question_status:en.question_status,review:en.review_status,success_status:en.success_status,use_max_score:bt,permits:yn,exercise_question_resubmit_id:Tn===1?null:(Yn=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:Yn.id}});(Dr==null?void 0:Dr.status)==0&&(yield ei(),de.ZP.success("\u64CD\u4F5C\u6210\u529F"),nn(!1),Oe(!1)),sr(!1)}),$t=(mn,Yn)=>{en.page=1,en[Yn]=mn,Fr(ct({},en)),Ur(en)},$n=["","\u5F53\u524D\u9898\u76EE\u7684\u5B9E\u9A8C\u8D44\u6E90\u4E3A\u4E13\u6709\u4E91\uFF0C\u4E0D\u652F\u6301\u91CD\u65B0\u8BC4\u6D4B~","\u8BE5\u529F\u80FD\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u548C\u8003\u8BD5\u7684\u521B\u5EFA\u8005\u53EF\u4EE5\u64CD\u4F5C~"];return E.createElement(E.Fragment,null,E.createElement("div",{className:Te()(fe.recalculation,gt),style:kt},E.createElement(Se.Z,{title:$n[(Yt==null?void 0:Yt.disable_resubmit_reason)||0]},E.createElement(pe.ZP,{disabled:(Yt==null?void 0:Yt.disable_resubmit)||((Fe=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:Fe.status)==="running",onClick:()=>Oe(1),icon:E.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(Yt==null?void 0:Yt.show_resubmit_history)&&E.createElement(E.Fragment,null,((Dt=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:Dt.status)==="running"?E.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",E.createElement("span",{className:"c-light-primary ml3"},(qt=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:qt.rate)):E.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",E.createElement("span",{onClick:()=>{Oe(2),he(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(Xt=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:Xt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",E.createElement("span",{onClick:()=>{Oe(2),he(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(Et=Yt==null?void 0:Yt.exercise_question_resubmit)==null?void 0:Et.fail_count),"\u4EBA"),E.createElement(Se.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},E.createElement("i",{onClick:()=>an(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),E.createElement(De.default,{centered:!0,open:!!Tn,title:`\u91CD\u65B0\u8BC4\u6D4B${Tn===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>Oe(!1),onOk:vi,afterClose:()=>{Wt(!0),he(null),Fr(ct({},En))}},E.createElement("div",{className:fe.filter},Tn===1&&E.createElement(E.Fragment,null,E.createElement("div",{className:fe.tips},E.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},E.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),E.createElement("div",null,"1.\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206\u6D41\u7A0B\uFF1A \u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u5B66\u751F\u5728\u8003\u8BD5\u9875\u9762\u4FDD\u5B58\u7684\u6700\u65B0\u4EE3\u7801\uFF0C\u5E76\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\uFF0C\u4ECE\u800C\u7CBE\u51C6\u8BA1\u7B97\u51FA\u5B66\u751F\u7684\u6700\u7EC8\u5F97\u5206\uFF1B"),E.createElement("div",{style:{margin:"2px 0"}},"2.\u91CD\u65B0\u8BC4\u6D4B\u6761\u4EF6\uFF1A \u8003\u8BD5\u7ED3\u675F\u540E\uFF0C\u4EC5\u5BF9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u5DF2\u4F5C\u7B54\u8BE5\u9898\u76EE\u7684\u5B66\u751F\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\u4E0E\u7B97\u5206\uFF1B"),E.createElement("div",null,"3.\u91CD\u65B0\u8BC4\u6D4B\u65F6\uFF0C\u8BF7\u786E\u4FDD\u5B9E\u9A8C\u73AF\u5883\u80FD\u6B63\u5E38\u542F\u52A8\u5E76\u53EF\u8FD0\u884C\u8BC4\u6D4B\u3002")),E.createElement($e,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(se==null?void 0:se.question_status)||[],value:en.question_status,onChange:mn=>$t(mn,"question_status")}),E.createElement($e,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(se==null?void 0:se.review_status)||[],value:en.review,onChange:mn=>$t(mn,"review")})),Tn===2&&E.createElement(E.Fragment,null,E.createElement($e,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(se==null?void 0:se.success_status)||[],value:en.success_status,onChange:mn=>$t(mn,"success_status")})),E.createElement(ht.t7,{className:fe.input,style:{bottom:Tn===1?10:-5},value:en.keyword,onChange:mn=>$t(mn,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),E.createElement(Xe.default,{className:"mt20",columns:Or,scroll:((zt=se==null?void 0:se.data)==null?void 0:zt.length)>7?{y:300}:{},dataSource:(se==null?void 0:se.data)||[],loading:Pn,onChange:Hr,pagination:{total:ge,pageSize:en.per_page,current:en.page,hideOnSinglePage:!ge,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:qe.rU}}),E.createElement(Be.Z,{justify:"space-between",align:"middle",className:"mt10"},E.createElement(xe.default,{className:"c-black",checked:bt,onChange:mn=>Wt(mn.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,be.Ny)()&&E.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",E.createElement(Pe.Z,{className:"ml10 mr10",value:yn,max:cn,min:1,precision:0,onChange:mn=>bn(mn)}),"\u4EBA",E.createElement(Se.Z,{overlayStyle:{maxWidth:450},title:"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A20\u4EBA\uFF08\u81EA\u5B9A\u4E49\u955C\u50CF\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A3\u4EBA\uFF09\u3002"},E.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),E.createElement(De.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Tt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:pn,destroyOnClose:!0,onOk:Zi,onCancel:()=>nn(!1)},E.createElement(Ue.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},E.createElement(Qe.Z,{ref:mn=>fn.current=mn}))),E.createElement(De.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:sn,width:710,onCancel:()=>an(!1),footer:null},E.createElement(rt.Z,{spinning:xr},E.createElement("div",{className:fe.operating},Vt.map((mn,Yn)=>E.createElement("div",{key:Yn,className:fe.operatingItem},E.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},mn==null?void 0:mn.created_at),E.createElement("div",{className:"c-black"},mn==null?void 0:mn.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(mn==null?void 0:mn.status)==="running"?E.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",E.createElement("span",{className:"c-light-primary ml3"},mn==null?void 0:mn.rate)):E.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",E.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},mn==null?void 0:mn.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",E.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},mn==null?void 0:mn.fail_count),"\u4EBA")))),E.createElement("div",{style:{height:20}}))))}},96332:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Se}});var E=te(67294),fe={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Ie=te(14446),Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Be=(pe,De,Xe)=>new Promise((Pe,Ue)=>{var rt=be=>{try{He(Xe.next(be))}catch(Qe){Ue(Qe)}},qe=be=>{try{He(Xe.throw(be))}catch(Qe){Ue(Qe)}},He=be=>be.done?Pe(be.value):Promise.resolve(be.value).then(rt,qe);He((Xe=Xe.apply(pe,De)).next())}),Se=({type:pe,resdata:De,onok:Xe,oktext:Pe,okloading:Ue})=>{const[rt,qe]=(0,E.useState)(!1),{can_copy_list:He,can_copy_num:be,challenge_type:Qe,course_data_list:ht,no_copy_list:Je,no_copy_num:Ze,no_use_list:ye,no_use_num:Ee,repeat_shixun_num:Ye,student_count:Ne,total_num:ot,use_num:ct}=De;let _e=be>0||pe==="exercise";(0,E.useEffect)(()=>{(De==null?void 0:De.student_count)>0&&qe(!0)},[De]),console.log("---11",Ue),(0,E.useEffect)(()=>{Ue||qe(!1)},[Ue]);const Me=()=>{if(pe==="exercise"&&Qe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:fe.orangeColor},Ne),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:fe.orangeColor},ct),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(pe==="exercise"&&Qe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:fe.orangeColor},Ne),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:fe.orangeColor},ct),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="shixun"&&Qe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:fe.orangeColor},Ne),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="shixun"&&Qe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:fe.orangeColor},Ne),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="subject"&&Qe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:fe.orangeColor},Ne),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:fe.orangeColor},ct),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="subject"&&Qe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",E.createElement("span",{className:fe.orangeColor},Ne)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",E.createElement("span",{className:fe.orangeColor},ct)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="exercisepush")return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:fe.orangeColor},Ne),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",E.createElement("span",{className:fe.orangeColor},ct),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(pe==="shixunpush"&&Qe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:fe.orangeColor},Ne),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:fe.orangeColor},ct),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(pe==="shixunpush"&&Qe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:fe.orangeColor},Ne),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",E.createElement("span",{className:fe.orangeColor},ct),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:fe.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},pt=()=>{if(pe==="exercise"||pe==="subject"||pe==="exercisepush"||pe==="shixunpush")return E.createElement("div",{style:{marginTop:20}},Ze>0&&E.createElement("div",null,E.createElement("span",{className:fe.flex},E.createElement("img",{src:xe,style:{width:14}}),E.createElement("span",{className:fe.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:fe.statusbody},pe==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:fe.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(pe==="subject"||pe==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",_e&&E.createElement("span",{className:fe.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),pe==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",_e&&E.createElement("span",{className:fe.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E.createElement("div",null,Je==null?void 0:Je.map(($e,ft)=>E.createElement("a",{href:`/shixuns/${$e.identifier}/challenges`,target:"_blank"},"\u300A",$e==null?void 0:$e.name,"\u300B",ft+1!==Ze&&"\u3001"))))),be>0&&E.createElement("div",{style:{marginTop:20}},E.createElement("span",{className:fe.flex},E.createElement("img",{src:Te,style:{width:14}}),E.createElement("span",{className:fe.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:fe.statusbody},pe==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(pe==="subject"||pe==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),pe==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),E.createElement("div",null,He==null?void 0:He.map(($e,ft)=>E.createElement("a",{href:`/shixuns/${$e.identifier}/challenges`,target:"_blank"},"\u300A",$e==null?void 0:$e.name,"\u300B",ft+1!==be&&"\u3001"))))));if(pe==="shixun")return E.createElement("div",{style:{marginTop:20}},be>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return E.createElement(Ie.default,{open:rt,onCancel:()=>{qe(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!_e&&"none"}},zIndex:1003,confirmLoading:Ue,okText:_e?Pe:"\u6211\u77E5\u9053\u4E86",onOk:()=>Be(void 0,null,function*(){_e?yield Xe([...He,...ye]):qe(!1)})},E.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Me(),pt()))}},2715:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Be}});var E=te(67294),fe={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},Ie=te(94184),Te=te.n(Ie),Be=({className:de,style:Se,state:pe,onClick:De})=>{var Xe,Pe;return E.createElement("div",{onClick:De,className:Te()(pe?(Xe=fe)==null?void 0:Xe.redBtn:(Pe=fe)==null?void 0:Pe.btn,de),style:Se},pe?E.createElement(E.Fragment,null,E.createElement("i",{className:"iconfont icon-biaoji1"}),E.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):E.createElement(E.Fragment,null,E.createElement("i",{className:"iconfont icon-biaojigaiti"}),E.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},57444:function(In,Ut,te){"use strict";te.d(Ut,{h:function(){return Ze}});var E=te(67294),fe=te(11713),Ie=te(22150),Te=te(71577),xe=te(4631),Be=te.n(xe),de=te(71749),Se=te(30483),pe=Object.defineProperty,De=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,qe=(ye,Ee,Ye)=>Ee in ye?pe(ye,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ye[Ee]=Ye,He=(ye,Ee)=>{for(var Ye in Ee||(Ee={}))Ue.call(Ee,Ye)&&qe(ye,Ye,Ee[Ye]);if(Pe)for(var Ye of Pe(Ee))rt.call(Ee,Ye)&&qe(ye,Ye,Ee[Ye]);return ye},be=(ye,Ee)=>De(ye,Xe(Ee));const Qe=fe.default.Option,ht={labelCol:{span:4},wrapperCol:{span:20}},Je={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"]};Ut.Z=({callback:ye,onCancel:Ee})=>{const[Ye,Ne]=(0,E.useState)("python");function ot(_e){Ne(Je[_e][1])}function ct(_e){ye(_e)}return E.createElement(Ie.default,be(He({},ht),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ct,style:{width:500}}),E.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(fe.default,{getPopupContainer:_e=>_e.parentNode,onChange:ot},Object.keys(Je).map(_e=>E.createElement(Qe,{key:_e,value:_e},Je[_e][0])))),E.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(Ze,{mode:Ye})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Te.ZP,{type:"ghost",onClick:Ee},"\u53D6\u6D88")))};function Ze({value:ye,onChange:Ee,mode:Ye,options:Ne={}}){const ot=(0,E.useRef)(),[ct,_e]=(0,E.useState)();return(0,E.useEffect)(()=>{if(ct){let Me=function(pt){const $e=pt.getValue();Ee&&Ee($e)};return ct.on("change",Me),()=>{ct.off("change",Me)}}},[ct,Ee]),(0,E.useEffect)(()=>{ct&&ct.setOption("mode",Ye)},[ct,Ye]),(0,E.useEffect)(()=>{ct&&(ye!==ct.getValue()||ye==="")&&setTimeout(()=>{ct.setValue(ye||"")},300)},[ct,ye]),(0,E.useEffect)(()=>{if(ot.current&&!ct){const Me=Be().fromTextArea(ot.current,He({mode:Ye,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ne));_e(Me)}},[ot.current,ct]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:ot}))}},91304:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return oi}});var E=te(67294),fe=te(4631),Ie=te.n(fe),Te=te(91033),xe=te(71749),Be=te(57341),de=te(82801),Se=te(88386),pe=te(49047),De=te(80785),Xe=te(35598),Pe=({value:Vr="",className:Ct,showTextOnly:hn,showLines:An,style:jn={}})=>{const Bt=(0,E.useMemo)(()=>"",[Vr]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:Bt}}))},Ue=te(67294),rt=Object.defineProperty,qe=Object.defineProperties,He=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Je=(Vr,Ct,hn)=>Ct in Vr?rt(Vr,Ct,{enumerable:!0,configurable:!0,writable:!0,value:hn}):Vr[Ct]=hn,Ze=(Vr,Ct)=>{for(var hn in Ct||(Ct={}))Qe.call(Ct,hn)&&Je(Vr,hn,Ct[hn]);if(be)for(var hn of be(Ct))ht.call(Ct,hn)&&Je(Vr,hn,Ct[hn]);return Vr},ye=(Vr,Ct)=>qe(Vr,He(Ct));let Ee=[{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 Ye({onActionCallback:Vr,title:Ct,icon:hn,actionName:An,className:jn="",children:Bt}){function on(){Vr(An)}return Ue.createElement("a",{title:Ct,className:jn,onClick:on},Ue.createElement("i",{className:`${hn}`}),Bt)}var Ne=({watch:Vr,showNullButton:Ct,showNullProgramButton:hn,onActionCallback:An,fullScreen:jn,insertTemp:Bt,hidetoolBar:on,extraUse:Kn})=>{const Dn=[...Ee,{title:`${Vr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Vr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ue.createElement("ul",{className:"markdown-toolbar-container"},!on&&Dn.map((rr,er)=>Ue.createElement("li",{key:er},rr.actionName?Ue.createElement(Ye,ye(Ze({},rr),{onActionCallback:An})):Ue.createElement("span",{className:"v-line"}))),Ct?Ue.createElement("li",null,Ue.createElement(Ye,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:An},Ue.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,hn?Ue.createElement(Ue.Fragment,null,Ue.createElement("li",null,Ue.createElement(Ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:An},Ue.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ue.createElement("li",null,Ue.createElement(Ye,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:An},Ue.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Bt&&Ue.createElement("li",null,Ue.createElement(Ye,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Bt}`,onActionCallback:An},Ue.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Kn&&Ue.createElement("li",null,Kn),Ue.createElement("li",{className:"btn-full-screen"},Ue.createElement(Ye,{icon:`${jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:An})))},ot=te(76621),ct=te(22150),_e=te(69677),Me=te(71577),pt=Object.defineProperty,$e=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,xt=(Vr,Ct,hn)=>Ct in Vr?pt(Vr,Ct,{enumerable:!0,configurable:!0,writable:!0,value:hn}):Vr[Ct]=hn,et=(Vr,Ct)=>{for(var hn in Ct||(Ct={}))gt.call(Ct,hn)&&xt(Vr,hn,Ct[hn]);if(We)for(var hn of We(Ct))kt.call(Ct,hn)&&xt(Vr,hn,Ct[hn]);return Vr},Fe=(Vr,Ct)=>$e(Vr,ft(Ct));const Dt={labelCol:{span:4},wrapperCol:{span:20}};var qt=({callback:Vr,onCancel:Ct})=>{function hn(An){Vr(An)}return E.createElement(ct.default,Fe(et({},Dt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:hn,style:{width:500}}),E.createElement(ct.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(_e.default,null)),E.createElement(ct.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(_e.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Me.ZP,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))},Xt=te(57444),Et=te(70859),zt=te(14446),Yt=te(71230),Vn=te(63205),Pn=te(67294),_t=({callback:Vr,onCancel:Ct})=>{const hn=document.createElement("canvas"),An=hn.getContext("2d");hn.width=1e3,hn.height=800,An.fillStyle="#ffffff",An.fillRect(0,0,hn.width,hn.height);const jn=hn.toDataURL("image/png");return Pn.createElement(zt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Pn.createElement(Yt.Z,{style:{height:"100vh"}},Pn.createElement(Vn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:jn,visible:!0,title:String(Date.now())},onOk:Bt=>{Vr({src:Bt.url})},onClose:Ct})))},pn=te(72565),sr=te(15746),Tn=te(2453),Oe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},me=te(67294),ge=(0,E.forwardRef)(({onCancel:Vr,editImgId:Ct,callback:hn},An)=>{let jn=(0,E.useRef)(),Bt=(0,E.useRef)(),on=(0,E.useRef)(),Kn=(0,E.useRef)(!1);const Dn=(0,E.useRef)(!1);console.log("ref:",An);const[rr,er]=(0,E.useState)(0),[Gr,ra]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{er(1);try{indexedDB.databases().then(Oi=>{Oi.forEach(bi=>indexedDB.deleteDatabase(bi.name))})}catch(Oi){}},[]),(0,E.useImperativeHandle)(An,()=>({setHeight:ra})),me.createElement("div",{ref:Dn,className:"body-overflow-initial"},me.createElement(pn.Z,{width:"100vw",height:Gr,footer:null,closable:!0,placement:"bottom",open:!!rr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Oe.drawerWrap}`,onClose:()=>{window.saveDrawData(Oi=>{hn({src:`/api/attachments/${Oi}`,id:Oi})})},title:me.createElement(Yt.Z,{align:"middle"},me.createElement(sr.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),me.createElement(sr.Z,{onClick:()=>{ra(Gr==="60px"?"100vh":"60px")}},me.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),me.createElement(sr.Z,{onClick:()=>{window.saveDrawData(Oi=>{if(Oi===null){Tn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Tn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),hn({src:`/api/attachments/${Oi}`,id:Oi,disabledClose:!0})})}},me.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},me.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Ct||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Bt})))}),ve=te(11320),se=te(78045),Ke=te(31795);const bt=se.ZP.Group,Wt={margin:"0 8px"};var yn=({callback:Vr,onCancel:Ct})=>{function hn(An){Vr(An)}return E.createElement(ct.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:hn},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:Wt},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:Wt},"\u884C\u6570"),E.createElement(ct.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(Ke.Z,null)),E.createElement("span",{style:Wt},"\u5217\u6570"),E.createElement(ct.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(Ke.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:Wt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(ct.default.Item,{name:"align"},E.createElement(bt,null,E.createElement(se.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(se.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(se.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(se.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Me.ZP,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))},bn=te(47897),cn=te(61016),wn=te.n(cn),nn=(0,E.forwardRef)(({use3d:Vr,width:Ct,height:hn,callback:An,showSaveButton:jn},Bt)=>{const on=(0,E.useRef)(),Kn=(0,E.useRef)(),[Dn,rr]=(0,E.useState)(!1),er=(0,E.useRef)({id:on,appName:"graphing",width:Ct||1e3,height:hn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{Kn.current=new(wn())(er.current,!0),window.onload=function(){Kn.current.inject("applet_container")}},[]);const Gr=()=>{var ra=window.ggbApplet.getPNGBase64(1,!0,72);return An&&An(ra),ra};return(0,E.useEffect)(()=>{er.current.appName=Dn?"3D":"graphing",Kn.current.inject("applet_container")},[Dn]),(0,E.useEffect)(()=>{rr(Vr)},[Vr]),(0,E.useImperativeHandle)(Bt,()=>({getImgData:Gr})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:on}),E.createElement(Yt.Z,{align:"middle"},E.createElement(sr.Z,{flex:1},E.createElement(bn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Dn,onChange:ra=>rr(ra)})),E.createElement(sr.Z,null,E.createElement(Me.ZP,{size:"large",onClick:Gr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),fn=te(36527),sn=te(25934);const an="link",xr="upload-image",Lt="add-flowchart",Vt="draw-image",cr="add-flowchart",En="code-block",en="add-table",Fr="------------",Ur={default:Fr,left:`:${Fr}`,center:`:${Fr}:`,right:`${Fr}:`};var ai=te(99914),ei=(Vr,Ct,hn)=>new Promise((An,jn)=>{var Bt=Dn=>{try{Kn(hn.next(Dn))}catch(rr){jn(rr)}},on=Dn=>{try{Kn(hn.throw(Dn))}catch(rr){jn(rr)}},Kn=Dn=>Dn.done?An(Dn.value):Promise.resolve(Dn.value).then(Bt,on);Kn((hn=hn.apply(Vr,Ct)).next())});function Mi(){}let ci=0;const Qn=1e4,Or="\u2581",Hr="@\u2581\u2581@",vi="@\u2581@",Zi=`
|
|
|
**\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`,$t=["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 $n(Vr){return/^\d+$/.test(Vr)?`${Vr}px`:Vr}const Yn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Dr={[Yn+"-B"]:"bold",[Yn+"-I"]:"italic"},hi={[an]:"\u6DFB\u52A0\u94FE\u63A5",[En]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[xr]:"\u6DFB\u52A0\u56FE\u7247",[Vt]:"\u6DFB\u52A0\u753B\u56FE",[Lt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[en]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var oi=({defaultValue:Vr="",onChange:Ct,width:hn="100%",height:An=400,miniToolbar:jn=!1,isFocus:Bt=!1,watch:on,insertTemp:Kn,mode:Dn="markdown",id:rr="markdown-editor-id",showResizeBar:er=!1,noStorage:Gr=!1,showNullButton:ra=!1,showNullProgramButton:Oi=!1,hidetoolBar:bi=!1,fullScreen:Ji=!1,onBlur:Ti,onCMBeforeChange:ua,onFullScreen:br,className:Di="",disablePaste:ni=!1,disabled:No=!1,disabledFill:xa=!1,placeholder:za="",values:Lo="",extraUse:Ea,onAddBlank:zo})=>{const[gi,Cl]=(0,E.useState)(null),[pl,jl]=(0,E.useState)(Vr),[Ko,Do]=(0,E.useState)(on),[Na,ml]=(0,E.useState)(Ji),[nl,Sl]=(0,E.useState)(""),[Rl,Ll]=(0,E.useState)(0),[wl,Vl]=(0,E.useState)(An),[_l,Fl]=(0,E.useState)(!1),Vo=(0,E.useRef)((0,sn.Z)()),Wn=(0,E.useRef)(!1),Nn=(0,E.useRef)(),[Ir,Cr]=(0,E.useState)(0),[Ii,Ma]=(0,E.useState)(0),Ka=(0,E.useRef)(),Ya=(0,E.useRef)(),$a=(0,E.useRef)(),Za=(0,E.useRef)(),Go=(0,E.useRef)(),Ho=(0,E.useRef)(),Qo=()=>ei(void 0,null,function*(){var Un;const pr=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Vo.current}});(Un=pr==null?void 0:pr.attachments)!=null&&Un.length&&(console.log("cm:",gi,Ka),pr.attachments.map(Jn=>{Jn.content_type.indexOf("image")>-1?gi.replaceSelection(``):Jn.content_type.indexOf("video")>-1?gi.replaceSelection(`<video width="100%" controls src="${ve.Z.API_SERVER}/api/attachments/${data.id}"></video>`):Jn.content_type.indexOf("pdf")>-1?gi.replaceSelection(`<a href="${ve.Z.API_SERVER}/api/attachments/${Jn.id}?type=${Jn.content_type}&disposition=inline" target="_blank">${Jn.name}</a>`):gi.replaceSelection(`[${Jn.name}](${ve.Z.API_SERVER}/api/attachments/${Jn.id}?type=${Jn.content_type})`)}))});(0,E.useEffect)(()=>{const Un=window.scrollY||window.pageYOffset;jl(Lo),gi==null||gi.setValue(Lo),window.scrollTo(0,Un)},[Lo]),(0,E.useEffect)(()=>{br==null||br(Na)},[Na]),(0,E.useEffect)(()=>{if(Ka.current){let Un=function(Jn,_r){var yi;if(ni){_r.preventDefault();return}const Yr=_r.clipboardData;if(Yr){const Xr=Yr.types.toString(),ti=Yr.items;if(Xr==="Files"||Yr.types.indexOf("Files")>-1){if(_r.preventDefault(),Dn=="stex")return;try{let fi=ti[1];((yi=ti[0])==null?void 0:yi.kind)==="file"&&(fi=ti[0]);const Ci=fi.getAsFile(),At=Ci.name.split(".").pop();(0,Et.I)(Ci,vt=>{var On,Cn,mr;vt.id?((On=Ci==null?void 0:Ci.type)==null?void 0:On.indexOf("image"))>-1?pr.replaceSelection(`<img width="100%" src="/api/attachments/${vt.id}?type=${vt.content_type})" alt="" />`):((Cn=Ci==null?void 0:Ci.type)==null?void 0:Cn.indexOf("video"))>-1?pr.replaceSelection(`<video width="100%" controls src="/api/attachments/${vt.id}"></video>`):((mr=Ci==null?void 0:Ci.type)==null?void 0:mr.indexOf("pdf"))>-1?pr.replaceSelection(`<a href="/api/attachments/${vt.id}?type=${Ci.type}&disposition=inline" target="_blank">${Ci.name}</a>`):$t.includes(At)?pr.replaceSelection(`<a href="/api/attachments/${vt.id}?type=office&disposition=inline" target="_blank">${Ci.name}</a>`):pr.replaceSelection(`[${Ci.name}](/api/attachments/${vt.id}?type=${vt.content_type})`):(vt==null?void 0:vt.status)===401&&(Tn.ZP.warning((vt==null?void 0:vt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(fi){Tn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pr=Ie().fromTextArea(Ka.current,{mode:Dn,lineNumbers:!jn,lineWrapping:!0,value:Vr,autoCloseTags:!Oi,autoCloseBrackets:!0});return pr.on("keyup",function(Jn,_r){_r.keyCode===8&&(Jn.getValue()==""?pr.setOption("placeholder",za):pr.setOption("placeholder",null))}),pr.on("keydown",function(Jn,_r){if(_r.keyCode===8){var yi=Sr(Jn);yi&&_r.preventDefault()}}),Bt&&pr.focus(),pr.on("paste",Un),pr.on("dragleave",function(Jn,_r){Ya.current.classList.remove("mouse-hover-md")}),No&&pr.on("beforeChange",function(Jn,_r){(_r.origin==="paste"||_r.origin==="+input")&&_r.cancel()}),Cl(pr),()=>{pr.off("paste",Un)}}},[]);const vr=(0,E.useCallback)(()=>{if(Ya.current)try{}catch(Un){console.log(Un,"---- to set md editor body height")}},[wl,Ya,Na]);(0,E.useEffect)(()=>{function Un(){let pr=new Te.Z(Jn=>{for(let _r of Jn)(_r.target.offsetHeight>0||_r.target.offsetWidth>0)&&(vr(),gi.setSize("100%","100%"),gi.refresh())});return pr.observe(Ka.current.parentElement),pr}if(gi){const pr=Un();return()=>{var Jn,_r;(Jn=Ka.current)!=null&&Jn.parentElement&&pr.unobserve((_r=Ka.current)==null?void 0:_r.parentElement)}}},[gi,vr]),(0,E.useEffect)(()=>{if(gi){let Un=[];for(const[pr,Jn]of Object.entries(Dr)){let _r={[pr]:()=>{Tr(Jn)}};Un.push(_r),gi.addKeyMap(_r)}return Nn.current=setInterval(()=>{Wn.current&&Qo()},4e3),()=>{clearInterval(Nn.current);for(let pr of Un)gi.removeKeyMap(pr)}}},[gi]),(0,E.useEffect)(()=>{Ji!==Na&&ml(Ji)},[Ji]),(0,ai.Z)(()=>{if(!Gr&&Rl>0){let Un=new Date().getTime(),pr=window.sessionStorage.getItem(rr);Un>=Rl+Qn&&(!pr||pr!==pl)&&(window.sessionStorage.setItem(rr,pl),Fl(!0))}},Qn),(0,E.useEffect)(()=>{Do(on)},[gi,on]),(0,E.useEffect)(()=>{gi&&Bt&&gi.focus()},[gi,Bt]),(0,E.useEffect)(()=>{if(Ko&&gi){let Un=function(Jn){let _r=Jn.target;if(Za.current){let yi=_r.scrollTop/_r.scrollHeight;Za.current.scrollTop=Za.current.scrollHeight*yi}};const pr=gi.getScrollerElement();return pr.addEventListener("scroll",Un),()=>{pr.removeEventListener("scroll",Un)}}},[gi,Ko]),(0,E.useEffect)(()=>{if(gi&&ua){let Un=function(pr,Jn){ua(pr,Jn)};return gi.on("beforeChange",Un),()=>{gi.off("beforeChange",Un)}}},[gi,ua]),(0,E.useEffect)(()=>{if(gi&&Ti){let Un=function(){Ti(gi.getValue())};return gi.on("blur",Un),()=>{gi.off("blur",Un)}}},[gi,Ti]);function Sr(Un,pr){var Jn=Un.getDoc(),_r=Jn.getCursor(),yi=Jn.getLine(_r.line),Yr=yi.charAt(_r.ch-1),Xr=yi.lastIndexOf("@\u2581@",_r.ch),ti=yi.lastIndexOf("@\u2581\u2581@",_r.ch),fi=Xr>ti?Xr:ti,Ci=Xr>ti?3:4;if(Hr.indexOf(Yr)===-1)return null;if(console.log("change1:",pr,Un,yi,_r,fi,Xr,ti,Yr),fi>=0&&_r.ch-fi<5){var At=fi+Ci;return Jn.replaceRange("",{line:_r.line,ch:fi},{line:_r.line,ch:At}),{line:_r.line,ch:At}}return null}(0,E.useEffect)(()=>{if(gi){let Un=function(pr,Jn){const _r=pr.getValue();jl(_r),Ll(new Date().getTime()),pr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ct&&(Oi?Ct(_r,gn(_r)):Ct(_r))};return gi.on("change",Un),()=>{gi.off("change",Un)}}},[gi,Ct]),(0,E.useEffect)(()=>{if(gi)if(Vr==null)gi.setValue(""),jl("");else{const Un=window.scrollY||window.pageYOffset;Vr!==gi.getValue()&&(gi.setValue(Vr),jl(Vr),gi.setCursor(No?1:gi.lineCount(),0),window.scrollTo(0,Un))}},[gi,Vr]);const Tr=(0,E.useCallback)(Un=>{const pr=gi.getCursor(),Jn=gi.getSelection();let _r=Jn.split(`
|
|
|
`);switch(Un){case"bold":return gi.replaceSelection("**"+Jn+"**"),Jn===""&&gi.setCursor(pr.line,pr.ch+2),gi.focus();case"italic":return gi.replaceSelection("*"+Jn+"*"),Jn===""&&gi.setCursor(pr.line,pr.ch+1),gi.focus();case"code":return gi.replaceSelection("`"+Jn+"`"),Jn===""&&gi.setCursor(pr.line,pr.ch+1),gi.focus();case"inline-latex":return Sl("inline-latex"),gi.focus();case"latex":return gi.replaceSelection("```latex\n"+Jn+"\n```"),gi.setCursor(pr.line+1,Jn.length+1),gi.focus();case"line-break":return gi.replaceSelection(`<br/>
|
|
|
`),gi.focus();case"list-ul":return Jn===""?gi.replaceSelection("- "+Jn):gi.replaceSelection(_r.map(yi=>yi===""?"":`- ${yi}`).join(`
|
|
|
`)),gi.focus();case"list-ol":return Jn===""?gi.replaceSelection("1. "+Jn):gi.replaceSelection(_r.map((yi,Yr)=>yi===""?"":`${Yr+1}. ${yi}`).join(`
|
|
|
`)),gi.focus();case"add-null-ch":zo==null||zo();return;case"add-signal":return Jn===""&&gi.setCursor(pr.line,pr.ch),gi.replaceSelection(vi),gi.focus();case"add-multiple":return Jn===""&&gi.setCursor(pr.line,pr.ch),gi.replaceSelection(Hr),gi.focus();case"inster-template-1":return Jn===""&&gi.setCursor(pr.line,pr.ch),gi.replaceSelection(Zi),gi.focus();case"eraser":return gi.setValue(""),gi.focus();case"trigger-watch":return Do(!Ko),gi.focus();case"trigger-full-screen":return ml(!Na),gi.focus();case an:Sl(an);return;case En:Sl(En);return;case xr:Sl(xr);return;case Vt:Sl(Vt);return;case"maths-latex":Sl("maths-latex");return;case Lt:Go.current="",sessionStorage.removeItem("file_id"),Sl(Lt);return;case en:Sl(en);return;default:throw new Error}},[gi,Ko,Na]),Ae=(0,E.useCallback)((Un,pr)=>{var Jn,_r,yi,Yr,Xr,ti;Sl("");const{src:fi,alt:Ci,id:At}=Un||{};switch(nl){case an:const{title:Zr,link:Zt}=Un;return gi.replaceSelection(`[${Zr}](${Zt})`),gi.focus();case En:const{language:Ht,content:tn}=Un;return gi.replaceSelection(["```"+Ht,tn,"```"].join(`
|
|
|
`)),gi.focus();case"maths-latex":for(var vt=atob(Un),On=new Uint8Array(vt.length),Cn=0;Cn<vt.length;Cn++)On[Cn]=vt.charCodeAt(Cn);var mr=new Blob([On],{type:"image/png"});(0,Et.I)(mr,Ni=>{Ni.id?gi.replaceSelection(``):(Ni==null?void 0:Ni.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":gi.replaceSelection("`$$"+Un+"$$`");break;case cr:if(!At)return;gi.focus(),gi.getValue().indexOf(fi)===-1?gi.replaceSelection(`<center><img id="${At}" width="80%" src="${fi}" class="draw-flowchart" alt="${Ci||""}" /></center>`):document.getElementById(At).src=ve.Z.API_SERVER+fi+"?t="+Date.now();try{setTimeout(()=>{Ti(gi.getValue())},100)}catch(Ni){}break;case xr:case Vt:const xn=pr,fr=(yi=(_r=(Jn=xn==null?void 0:xn.name)==null?void 0:Jn.split("."))==null?void 0:_r.pop)==null?void 0:yi.call(_r);return((Yr=xn==null?void 0:xn.type)==null?void 0:Yr.indexOf("image"))>-1||!(xn!=null&&xn.type)?xn!=null&&xn.align||xn!=null&&xn.width?gi.replaceSelection(`<p style="text-align:${xn.align||"initial"}"><img width="${xn.width?xn.width+"%":"initial"}" src="${fi}" alt="${Ci||""}" /></p>`):gi.replaceSelection(`<img width="100%" src="${fi}" alt="${Ci||""}" />`):((Xr=xn==null?void 0:xn.type)==null?void 0:Xr.indexOf("video"))>-1?gi.replaceSelection(`<video width="100%" controls src="${fi}"></video>`):((ti=xn==null?void 0:xn.type)==null?void 0:ti.indexOf("pdf"))>-1?gi.replaceSelection(`<a href="${fi}?type=${xn.type}&disposition=inline" target="_blank">${xn.name}</a>`):$t.includes(fr)?gi.replaceSelection(`<a href="${fi}?type=office&disposition=inline" target="_blank">${xn.name}</a>`):gi.replaceSelection(`[${xn.name}](${fi})`),gi.focus();case en:const{row:wr,col:lr,align:kr}=Un;let di=`
|
|
|
`;for(let Ni=0;Ni<wr;Ni++){let Si=[],Jr=[];for(let Bi=0;Bi<lr;Bi++)Ni===1&&Jr.push(Ur[kr]),Si.push(" ");Ni===1&&(di+=`| ${Jr.join(" | ")} |
|
|
|
`),di+=`| ${Si.join(lr===1?"":" | ")} |
|
|
|
`}return gi.replaceSelection(di+`
|
|
|
`),gi.focus();default:throw new Error}},[gi,nl]),it=(0,E.useMemo)(()=>{switch(nl){case an:return E.createElement(qt,{callback:Ae,onCancel:st});case En:return E.createElement(Xt.Z,{callback:Ae,onCancel:st});case xr:return E.createElement(Et.Z,{callback:Ae,onCancel:st});case Lt:return E.createElement(ge,{editImgId:Go.current,callback:Ae,onCancel:st});case en:return E.createElement(yn,{callback:Ae,onCancel:st});case"maths-latex":return E.createElement(nn,{showSaveButton:!0,callback:Ae});case"inline-latex":return E.createElement(fn.Z,{showSaveButton:!0,callback:Ae});default:return null}},[nl]);function st(){Sl("")}(0,E.useEffect)(()=>{if($a.current){let Un=function(Xr){yi=!0,Yr=Xr.pageY},pr=function(){yi=!1},Jn=function(Xr){if(yi){let ti=Xr.pageY-Yr;ti<0&&(ti=0),ti>300&&(ti=300);let fi=An+ti+"px";Vl(fi)}},_r=$a.current,yi=!1,Yr=0;return _r.addEventListener("mousedown",Un),document.addEventListener("mousemove",Jn),document.addEventListener("mouseup",pr),()=>{_r.removeEventListener("mousedown",Un),document.removeEventListener("mousemove",Jn),document.removeEventListener("mouseup",pr)}}},[gi,$a]),(0,E.useEffect)(()=>{Vl(An)},[An]);const yt=$n(hn),wt=$n(wl),Ft={width:yt,height:wt},Nt=(0,E.useMemo)(()=>{if(Rl){let Un=new Date(Rl),pr=Un.getHours(),Jn=Un.getMinutes(),_r=Un.getSeconds();return pr=pr<10?"0"+pr:pr,Jn=Jn<10?"0"+Jn:Jn,_r=_r<10?"0"+_r:_r,`${pr}:${Jn}:${_r}`}return 0},[Rl]),gn=Un=>{const pr=[];if(Oi){let Jn=-1;Un=Un.replace(/(@▁▁@|@▁@)/g,function(_r,yi,Yr){pr.push({multiLine:_r!==vi})})}return pr};function Rn(){window.sessionStorage.removeItem(rr),Fl(!1),Ll(0)}function Nr(){Fl(!1),Ll(0),gi.setValue(window.sessionStorage.getItem(rr))}(0,E.useEffect)(()=>{hi[nl]&&nl!==Vt&&nl!==Lt&&setTimeout(()=>{const Un=document.getElementsByClassName("markdown-popup-form")[0],pr=window.innerWidth/2-Un.offsetWidth/2,Jn=window.innerHeight/2-Un.offsetHeight/2;Cr(pr),Ma(Jn)},0)},[nl]);const Wr=Un=>{Un.preventDefault();const pr=Un.clientX-Ir,Jn=Un.clientY-Ii;document.body.onmousemove=_r=>{let yi=_r.clientX-pr,Yr=_r.clientY-Jn;const Xr=document.getElementsByClassName("markdown-popup-form")[0],ti=window.innerWidth-Xr.offsetWidth,fi=window.innerHeight-Xr.offsetHeight;yi=Math.max(0,Math.min(yi,ti)),Yr=Math.max(0,Math.min(Yr,fi)),Rr(_r.clientX,_r.clientY,pr,Jn)&&(Cr(yi),Ma(Yr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Rr=(Un,pr,Jn,_r)=>{const yi=document.body.clientHeight,Yr=document.body.clientWidth;return Un<20&&Jn>Un||Un>Yr-20&&Jn<Un||pr<20&&_r>pr||pr>yi-20&&_r<pr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:Ya},E.createElement("div",{className:`markdown-editor-container ${Di} ${Ko?"on-preview":""} ${jn?"mini":""} ${Na?"full-screen":""}`,style:Ft},E.createElement(Ne,{insertTemp:Kn,watch:Ko,fullScreen:Na,showNullButton:ra,showNullProgramButton:Oi,onActionCallback:Tr,hidetoolBar:bi,extraUse:Ea}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:Ka,placeholder:za})),Ko?E.createElement("div",{ref:Za,className:"preview-container"},Dn==="stex"&&E.createElement(Pe,{value:pl}),Dn!=="stex"&&E.createElement(Xe.Z,{edit:!0,disabledFill:xa,showProgramFill:Oi,value:pl,openEditor:Un=>{var pr;Go.current=Un,(pr=Ho.current)==null||pr.setHeight("100vh"),setTimeout(()=>{Sl("add-flowchart")},150)}})):null))),er?E.createElement("a",{ref:$a,className:"editor-resize"}):null,nl===Vt&&E.createElement(_t,{callback:Ae,onCancel:st}),nl===Lt&&E.createElement(ge,{ref:Ho,editImgId:Go.current,callback:Ae,onCancel:st}),E.createElement(ot.Z,null,hi[nl]&&nl!==Vt&&nl!==Lt?E.createElement(zt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ir,top:Ii},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Wr},hi[nl]),open:!0,onCancel:st,footer:null,destroyOnClose:!0,width:nl===Lt?"1200px":null,height:nl===Lt?"80vh":null,className:"markdown-popup-form"},it):null))}},70859:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Ye},I:function(){return ot}});var E=te(22150),fe=te(2453),Ie=te(69677),Te=te(93421),xe=te(31795),Be=te(78045),de=te(71577),Se=te(15476),pe=te(67294),De=te(52262),Xe=te(67294),Pe=Object.defineProperty,Ue=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Qe=(ct,_e,Me)=>_e in ct?Pe(ct,_e,{enumerable:!0,configurable:!0,writable:!0,value:Me}):ct[_e]=Me,ht=(ct,_e)=>{for(var Me in _e||(_e={}))He.call(_e,Me)&&Qe(ct,Me,_e[Me]);if(qe)for(var Me of qe(_e))be.call(_e,Me)&&Qe(ct,Me,_e[Me]);return ct},Je=(ct,_e)=>Ue(ct,rt(_e));const{useForm:Ze}=E.default,ye={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}};var Ye=({callback:ct,onCancel:_e})=>{const[Me]=Ze();let pt=(0,pe.useRef)();function $e(gt){pt.current.width=Me.getFieldValue("width"),pt.current.align=Me.getFieldValue("align"),ct(gt,pt.current)}function ft(gt,kt){if(gt.status===-1){fe.ZP.error(gt.message);return}Me.setFieldsValue({src:`/api/attachments/${gt.id}`,type:kt.type})}function We(gt){let kt=gt.target.files[0];pt.current=kt,ot(kt,ft)}return Xe.createElement(E.default,Je(ht({form:Me},Ee),{className:"upload-image-panel",onFinish:$e,style:{width:470,overflow:"hidden"}}),Xe.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Xe.createElement("div",{className:"flex-container"},Xe.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Xe.createElement(Ie.default,{style:ye})),Xe.createElement(Ne,{onFileChange:We}))),Xe.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Xe.createElement(Ie.default,{style:{width:264}})),Xe.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Xe.createElement(Te.Z,null,Xe.createElement(E.default.Item,{name:"width",style:{margin:0}},Xe.createElement(xe.Z,{style:{width:264}})),Xe.createElement("span",{className:"ml8"},"%"))),Xe.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Xe.createElement(Be.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Xe.createElement("aside",null,Xe.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Xe.createElement(de.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Xe.createElement(de.ZP,{type:"default",onClick:_e},"\u53D6\u6D88"))))};function Ne({onFileChange:ct}){return Xe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Xe.createElement("input",{type:"file",onChange:ct}))}function ot(ct,_e){if(!ct)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",ct),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var pt=new window.XMLHttpRequest;pt.withCredentials=!0,pt.addEventListener("load",function($e){_e(JSON.parse($e.target.responseText),ct)},!1),pt.addEventListener("error",function($e){console.error($e)},!1),pt.open("POST",`${Se.KI}/api/attachments.json`),pt.send(Me)}},76621:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Ie}});var E=te(67294),fe=te(73935);class Ie extends E.Component{constructor(xe){super(xe);const Be=window.document;this.node=Be.createElement("div"),Be.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,fe.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(In,Ut,te){"use strict";te.d(Ut,{i:function(){return Ee},Z:function(){return Ne}});var E={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"},fe=te(57953),Ie=te(83062),Te=te(38703),xe=te(94184),Be=te.n(xe),de=te(28706),Se=te(26194),pe=te(52262),De=te(79005),Xe=te(20345),Pe=te(77882),Ue=te(31081),rt=te(75309),qe=te(71979),He=te(47558),be=te(60345),Qe=te(66832),ht=te(96593),Je=te(19664),Ze=te(91833),ye=te(67294);const Ee=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:De,swimg:Xe},{name:"101\u8BA1\u5212",ptimg:Pe,swimg:Ue},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:rt,swimg:qe},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:He,swimg:be},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Qe,swimg:ht},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Je,swimg:Ze}];var Ne=({className:ot,dataSource:ct=[],col:_e=4,right:Me,bottom:pt=23,precision:$e=0,wrapWidth:ft=1200,trackEventItems:We,loading:gt,onRemove:kt=()=>{},isCurrent:xt=!0,showAlias:et=!1,showProgress:Fe=!1})=>{const Dt=Math.floor((ft-(_e-1)*Me)/_e),qt=[{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(Xt=>(window.ENV==="build"&&(Xt.ptimg=`/react/build${Xt.ptimg}`,Xt.swimg=`/react/build${Xt.swimg}`),Xt));return ye.createElement(fe.Z,{spinning:gt},ye.createElement("div",{className:Be()(E.list,ot)},!!(ct!=null&&ct.length)&&(ct==null?void 0:ct.map((Xt,Et)=>{var zt,Yt,Vn,Pn,_t,pn;const{name:sr,id:Tn,identifier:Oe,featured:me,school_name:he,image_url:ge,excellent:ve,is_plan:se}=Xt;return ye.createElement("div",{key:Tn,className:xt&&Fe?E.wrapisCurrent:E.wrap,style:{width:Dt,marginRight:(1+Et)%_e===0?0:Me+$e,marginBottom:pt}},ye.createElement("a",{className:E.li,onClick:Ke=>{Ke.preventDefault(),Ke.stopPropagation(),We&&(0,de.L9)([We]),(0,de.xg)(`/paths/${Oe}`)}},ye.createElement("div",{className:E.img},ye.createElement("img",{className:E.cover,src:`${ge}`}),xt&&(0,pe.bg)()&&(Xt==null?void 0:Xt.studying)&&ye.createElement("div",{className:`${E.movebq} user-path-items`,onClick:Ke=>{Ke.stopPropagation(),kt(Xt)}},ye.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ye.createElement("span",{className:"c-red"},"\u79FB\u9664")),(zt=Xt==null?void 0:Xt.subject_tags)==null?void 0:zt.map((Ke,bt)=>{var Wt,yn;if(bt===0){const cn=(Wt=qt.find(wn=>wn.name==Ke))==null?void 0:Wt.swimg;return ye.createElement("img",{className:E.sign,src:cn,style:{left:"-4px"}})}const bn=(yn=qt.find(cn=>cn.name==Ke))==null?void 0:yn.ptimg;return ye.createElement("img",{className:E.sign,src:bn,style:{left:`${48+52*(bt-1)+2*bt}px`}})}),ye.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Xt==null?void 0:Xt.excellent)&&ye.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ye.createElement("div",{className:E.name},ye.createElement(Ie.Z,{title:et&&(Xt!=null&&Xt.excellent_alias_name)?ye.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${sr}`,ye.createElement("br",null),ye.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Xt==null?void 0:Xt.excellent_alias_name}`)):sr},ye.createElement("span",{className:E.e},et&&(Xt==null?void 0:Xt.excellent_alias_name)||sr))),xt&&Fe&&((Yt=Xt==null?void 0:Xt.progress)==null?void 0:Yt.all_score)!=0&&ye.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ye.createElement(Te.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Vn=Xt==null?void 0:Xt.progress)==null?void 0:Vn.my_score)/((Pn=Xt==null?void 0:Xt.progress)==null?void 0:Pn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(_t=Xt==null?void 0:Xt.progress)==null?void 0:_t.my_score,"/",(pn=Xt==null?void 0:Xt.progress)==null?void 0:pn.all_score),(!xt||!Fe)&&ye.createElement("div",{className:E.tags},ye.createElement("div",null,ye.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ye.createElement("span",null,Xt.stages_count))),ye.createElement(Ie.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,Xt.members_count)))))))})),!ct.length&&ye.createElement(Se.Z,null)))}},78311:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Be}});var E=te(67294),fe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ie=te(94184),Te=te.n(Ie),Be=({dataSource:de=[],value:Se,onChange:pe,className:De,style:Xe={}})=>E.createElement("div",{style:Xe,className:Te()(fe.tabs,De)},de.map(Pe=>E.createElement("span",{onClick:()=>pe(Pe.id),className:Se===Pe.id?fe.active:"",key:Pe.id},Pe.name)))},64743:function(In,Ut,te){"use strict";te.d(Ut,{jL:function(){return xe},w9:function(){return Yn},vv:function(){return jn},dN:function(){return Vr},QD:function(){return Nn},cQ:function(){return se.Z},vg:function(){return vi},Oz:function(){return ei},op:function(){return wl},O5:function(){return Ft},_b:function(){return Ya},t7:function(){return _e},tT:function(){return $e},Gi:function(){return Ti},YG:function(){return Dn},Ed:function(){return bi},kT:function(){return Gr},qp:function(){return be},Um:function(){return Ee},K3:function(){return Je},vr:function(){return Ii},qE:function(){return Fl},Je:function(){return gt},wb:function(){return Pn},rC:function(){return ve},lB:function(){return sr},cq:function(){return xa},kO:function(){return zo},tp:function(){return Ye.Z},Si:function(){return Rn},k8:function(){return Zr},Du:function(){return yi}});var E=te(67294),fe={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"},Ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEM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r0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",xe=({dataSource:Zt=[],img:Ht,imgWidth:tn=346,title:xn,sunTitle:fr,bannerExtraContent:wr})=>E.createElement("div",{className:fe.banner},E.createElement("div",{className:fe.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,xn),E.createElement("span",null,fr)),Zt.length>0&&E.createElement("div",{className:fe.btns},Zt.map((lr,kr)=>E.createElement("div",{key:kr,onClick:lr.click},lr.name,lr.sign?E.createElement("img",{src:Ie,width:39}):null))),wr),Ht&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Ht,width:tn}))),Be={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},de=te(94184),Se=te.n(de),pe=te(96486),De=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,rt=(Zt,Ht,tn)=>Ht in Zt?De(Zt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Zt[Ht]=tn,qe=(Zt,Ht)=>{for(var tn in Ht||(Ht={}))Pe.call(Ht,tn)&&rt(Zt,tn,Ht[tn]);if(Xe)for(var tn of Xe(Ht))Ue.call(Ht,tn)&&rt(Zt,tn,Ht[tn]);return Zt},be=({dataSource:Zt=[],value:Ht,onChange:tn,onTitleChange:xn,className:fr,title:wr,titleWidth:lr=41,style:kr={},fontColor:di="#6A7283",showCount:Ni,classNameActive:Si,styleItem:Jr={}})=>{const[Bi,Wi]=(0,E.useState)(0),[da,Vi]=(0,E.useState)(!1),Ei=(0,E.useRef)(null),ga=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var Ca;Zt.length!==0&&(((Ca=Ei==null?void 0:Ei.current)==null?void 0:Ca.clientHeight)>97?Wi(1):Wi(0)),Zt.length===0&&Wi(0),Vi(!1)},[Zt]),E.createElement("div",{className:Se()(Be.row,fr),style:kr},E.createElement("div",{onClick:(0,pe.throttle)(()=>xn==null?void 0:xn(),2e3),style:{width:lr,marginTop:da?12:4},className:`${Be.title} ${xn?"current":""}`},wr),E.createElement("div",{className:da?`${Be.tagsWrap} ${Be.tagsBorderWrap}`:Be.tagsWrap},E.createElement("div",{className:Be.bar,ref:ga,style:Bi>0?{height:Bi===1?97:"auto",overflow:Bi===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Be.tag,ref:Ei},Zt==null?void 0:Zt.map(Ca=>E.createElement("span",{onClick:()=>tn(Ca.id),key:Ca.id,style:qe(qe({color:di},Jr),(Ca==null?void 0:Ca.style)||{}),className:Ht===Ca.id?Se()(Si||Be.active,Ca.classNameActive):""},E.createElement("span",{title:Ca.name,className:Be.name},Ca.name),!!Ni&&E.createElement("span",{className:Be.num},Ca.count))))),!!Bi&&E.createElement(E.Fragment,null,Bi===1?E.createElement("div",{onClick:()=>{var Ca;Wi(2),((Ca=Ei==null?void 0:Ei.current)==null?void 0:Ca.clientHeight)>245?Vi(!0):Vi(!1)},className:Be.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{ga.current.scrollTop=0,Wi(1),Vi(!1)},className:Be.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Qe={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"},Je=({dataSource:Zt=[],value:Ht,onChange:tn,onTitleChange:xn,className:fr,title:wr,titleWidth:lr=41,style:kr={},fontColor:di="#6A7283",showCount:Ni,expand:Si=!0})=>{const[Jr,Bi]=(0,E.useState)(0),[Wi,da]=(0,E.useState)(!1),Vi=(0,E.useRef)(null),Ei=(0,E.useRef)(null),[ga,Ca]=(0,E.useState)(Si);return E.createElement("div",{className:Se()(Qe.row,fr),style:kr},E.createElement("div",{className:"flex item-center justify-between"},E.createElement("div",{onClick:(0,pe.throttle)(()=>xn==null?void 0:xn(),2e3),style:{width:lr,marginTop:Wi?12:4},className:`${Qe.title} ${xn?"current":""}`},wr),E.createElement("i",{className:`iconfont ${ga?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:ga?8:10},onClick:()=>Ca(!ga)})),ga&&E.createElement("div",{className:Wi?`${Qe.tagsWrap} ${Qe.tagsBorderWrap}`:Qe.tagsWrap},E.createElement("div",{className:Qe.fenge}),E.createElement("div",{className:Qe.bar,ref:Ei},E.createElement("div",{className:Qe.tag,ref:Vi},Zt==null?void 0:Zt.map(fo=>E.createElement("span",{onClick:()=>tn(fo.id),key:fo.id,style:{color:di},className:Ht===fo.id?Qe.active:""},E.createElement("span",{title:fo.name,className:Qe.name},fo.name),!!Ni&&E.createElement("span",{className:Qe.num},fo.count)))))))},Ze={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"},Ee=({dataSource:Zt=[],value:Ht,onChange:tn,onTitleChange:xn,className:fr,title:wr,titleWidth:lr=41,style:kr={},fontColor:di="#fff",showCount:Ni,expand:Si=!0})=>{const[Jr,Bi]=(0,E.useState)(0),[Wi,da]=(0,E.useState)(!1),Vi=(0,E.useRef)(null),Ei=(0,E.useRef)(null),[ga,Ca]=(0,E.useState)(Si);return E.createElement("div",{className:Se()(Ze.row,fr),style:kr},E.createElement("div",{className:"flex item-center justify-between"},E.createElement("div",{onClick:(0,pe.throttle)(()=>xn==null?void 0:xn(),2e3),style:{width:lr},className:`${Ze.title} ${xn?"current":""}`},wr),E.createElement("i",{className:`iconfont ${ga?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:ga?"#00DDC7":"#037F74",fontSize:ga?10:12},onClick:()=>Ca(!ga)})),ga&&E.createElement("div",{className:Wi?`${Ze.tagsWrap} ${Ze.tagsBorderWrap}`:Ze.tagsWrap},E.createElement("div",{className:Ze.bar,ref:Ei},E.createElement("div",{className:Ze.tag,ref:Vi},Zt==null?void 0:Zt.map(fo=>E.createElement("span",{onClick:()=>tn(fo.id),key:fo.id,style:{color:di},className:Ht===fo.id?Ze.active:""},E.createElement("span",{title:fo.name,className:Ze.name},fo.name),!!Ni&&E.createElement("span",{className:Ze.num},fo.count)))))))},Ye=te(78311),Ne={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"},ot=te(69677),_e=({dataSource:Zt=[],value:Ht="",onChange:tn,onInputChange:xn=()=>{},className:fr,style:wr={},placeholder:lr,allowClear:kr=!1})=>{var di;const[Ni,Si]=(0,E.useState)(""),[Jr,Bi]=(0,E.useState)("");(0,E.useEffect)(()=>{var Vi;let Ei=Ht;(Vi=JSON.stringify(Ht))!=null&&Vi.includes("{")&&(Si(Ht.id),Ei=Ht.value||"");try{Bi(decodeURIComponent(Ei||""))}catch(ga){Bi(decodeURIComponent(Ei||""))}},[Ht]);const Wi=()=>{tn(encodeURIComponent(Jr),Ni||null)},da=Vi=>{Vi!==Ni&&(Si(Vi),tn(encodeURIComponent(Jr),Vi))};return E.createElement("div",{className:Se()(Ne.input,fr),style:wr},!!Zt.length&&E.createElement("div",{className:Ne.dropdown},E.createElement("div",{className:Ne.text},(di=Zt.find(Vi=>Vi.id===Ni))==null?void 0:di.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:Ne.b1}),E.createElement("b",{className:Ne.b2})),E.createElement("div",{className:Ne.menu},Zt.map((Vi,Ei)=>E.createElement("div",{key:Ei,onClick:()=>da(Vi.id)},Vi.name)))),E.createElement(ot.default,{onPressEnter:Wi,value:Jr,onChange:Vi=>{Bi(Vi.target.value),xn(encodeURIComponent(Vi.target.value),Ni||null)},bordered:!1,placeholder:lr}),E.createElement("i",{onClick:Wi,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Me={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:Zt=[],value:Ht="",onChange:tn,onInputChange:xn=()=>{},className:fr,style:wr={},placeholder:lr,allowClear:kr=!1})=>{var di;const[Ni,Si]=(0,E.useState)(""),[Jr,Bi]=(0,E.useState)("");(0,E.useEffect)(()=>{var Vi;let Ei=Ht;(Vi=JSON.stringify(Ht))!=null&&Vi.includes("{")&&(Si(Ht.id),Ei=Ht.value||"");try{Bi(decodeURIComponent(Ei||""))}catch(ga){Bi(decodeURIComponent(Ei||""))}},[Ht]);const Wi=()=>{tn(encodeURIComponent(Jr),Ni||null)},da=Vi=>{Vi!==Ni&&(Si(Vi),tn(encodeURIComponent(Jr),Vi))};return E.createElement("div",{className:Se()(Me.input,fr),style:wr},!!Zt.length&&E.createElement("div",{className:Me.dropdown},E.createElement("div",{className:Me.text},(di=Zt.find(Vi=>Vi.id===Ni))==null?void 0:di.name,E.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),E.createElement("div",{className:Me.menu},Zt.map((Vi,Ei)=>E.createElement("div",{key:Ei,onClick:()=>da(Vi.id)},Vi.name)))),E.createElement(ot.default,{onPressEnter:Wi,value:Jr,onChange:Vi=>{Bi(Vi.target.value),xn(encodeURIComponent(Vi.target.value),Ni||null)},bordered:!1,placeholder:lr}),E.createElement("i",{onClick:Wi,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ft={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"},gt=({value:Zt,onChange:Ht,className:tn,total:xn,pageSize:fr,style:wr={}})=>{const lr=Zt<2,kr=Zt>=Math.ceil(xn/fr);return xn<=fr?E.createElement(E.Fragment,null):E.createElement("div",{className:Se()(ft.quickPager,tn),style:wr},E.createElement("div",{onClick:()=>{lr||Ht(Zt-1,"prev")},className:lr?ft.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{kr||Ht(Zt+1,"next")},className:kr?ft.disabled:""},"\u4E0B\u4E00\u9875"))},kt={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"},xt=te(57953),et=te(83062),Fe=te(12604),Dt=te(11320),qt=te(28706),Xt=te(96908),Et=te(57177),zt=te(81378),Yt=te(26194),Pn=({className:Zt,dataSource:Ht=[],col:tn=4,right:xn,bottom:fr=23,precision:wr=0,wrapWidth:lr=1200,trackEventItems:kr,loading:di})=>{const Ni=Math.floor((lr-(tn-1)*xn)/tn);return E.createElement(xt.Z,{spinning:di},E.createElement("div",{className:Se()(kt.list,Zt)},!!Ht.length&&Ht.map((Si,Jr)=>{const{name:Bi,id:Wi,identifier:da,power:Vi,cover_image_id:Ei,pic:ga}=Si;return E.createElement("div",{className:kt.wrap,key:Wi,style:{width:Ni,marginRight:(1+Jr)%tn===0?0:xn+wr,marginBottom:fr}},E.createElement("a",{target:"_blank",href:`/shixuns/${da}/challenges`,className:kt.li,onClick:Ca=>{Ca.preventDefault(),kr&&(0,qt.L9)([kr]),Vi&&(0,qt.xg)(`/shixuns/${da}/challenges`)}},E.createElement("div",{className:kt.img},E.createElement("img",{className:kt.cover,src:`${ga}`}),Si.is_jupyter&&E.createElement("img",{className:kt.sign,src:Xt}),Si.is_jupyter_lab&&E.createElement("img",{className:kt.sign,src:Et}),Si.is_unity_3d&&E.createElement("img",{className:kt.sign,src:zt})),E.createElement("div",{className:kt.name},E.createElement(et.Z,{title:Bi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:kt.e},Bi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:kt.tags},E.createElement(et.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,Si.challenges_count))),!!Si.myshixuns_count&&E.createElement(et.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,Si.myshixuns_count))),E.createElement(et.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,Si.level))),E.createElement("div",{className:kt.rate},E.createElement(Fe.Z,{allowHalf:!0,disabled:!0,defaultValue:Si.score_info}),E.createElement("span",null,"\xA0",Si.score_info?`${Si.score_info}\u5206`:"5\u5206")))),!Vi&&E.createElement("div",{className:kt.lockWrap},E.createElement("img",{src:`${Dt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ht.length&&E.createElement(Yt.Z,null)))},_t={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"},sr=({className:Zt,dataSource:Ht=[],col:tn=4,right:xn,bottom:fr=23,precision:wr=0,wrapWidth:lr=1200,wrapClassName:kr,trackEventItems:di,loading:Ni})=>{const Si=Math.floor((lr-(tn-1)*xn)/tn);return E.createElement(xt.Z,{spinning:Ni},E.createElement("div",{className:Se()(_t.list,Zt)},!!Ht.length&&Ht.map((Jr,Bi)=>{const{name:Wi,id:da,identifier:Vi,power:Ei,cover_image_id:ga,pic:Ca}=Jr;return E.createElement("div",{className:Se()(_t.wrap,kr),key:da,style:{width:Si,marginRight:(1+Bi)%tn===0?0:xn+wr,marginBottom:fr}},E.createElement("a",{target:"_blank",href:`/shixuns/${Vi}/challenges`,className:_t.li,onClick:fo=>{fo.preventDefault(),di&&(0,qt.L9)([di]),Ei&&(0,qt.xg)(`/shixuns/${Vi}/challenges`)}},E.createElement("img",{src:te(79633),className:_t.titleBg}),E.createElement("div",{className:_t.name},E.createElement(et.Z,{title:Wi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:_t.e},Wi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{style:{padding:"14px",paddingBottom:0}},E.createElement("div",{className:_t.img},E.createElement("img",{className:_t.cover,src:ga?`${Dt.Z.API_SERVER}/api/attachments/${ga}`:`${Dt.Z.IMG_SERVER+Ca}`}),Jr.is_jupyter&&E.createElement("div",{className:_t.bq},"Jupyter"),Jr.is_jupyter_lab&&E.createElement("div",{className:_t.bq},"JupyterLab"),Jr.is_unity_3d&&E.createElement("div",{className:_t.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),E.createElement("div",{className:"mt20 flex item-center justify-between"},E.createElement("div",null,E.createElement("span",{className:_t.text},"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:_t.value},Jr.myshixuns_count)),E.createElement("div",null,E.createElement("span",{className:_t.text},"\u56F0\u96BE\u7B49\u7EA7"),E.createElement("span",{className:_t.value},Jr.level))),E.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},E.createElement("div",null,E.createElement("span",{className:_t.text},"\u5173\u5361\u6570"),E.createElement("span",{className:_t.value},Jr.challenges_count)),E.createElement("div",{className:_t.rate},E.createElement(Fe.Z,{allowHalf:!0,disabled:!0,defaultValue:Jr.score_info}),E.createElement("span",{className:_t.value,style:{color:"#FF9C00"}},"\xA0",Jr.score_info?`${Jr.score_info}\u5206`:"5\u5206"))))),!Ei&&E.createElement("div",{className:_t.lockWrap},E.createElement("img",{src:`${Dt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ht.length&&E.createElement(Yt.Z,null)))},Tn={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"},Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQ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tliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",ve=({className:Zt,dataSource:Ht=[],col:tn=4,right:xn,bottom:fr=23,precision:wr=0,wrapWidth:lr=1200,trackEventItems:kr,loading:di,wrapClassName:Ni,imgClassName:Si})=>{const Jr=Math.floor((lr-(tn-1)*xn)/tn);return E.createElement(xt.Z,{spinning:di},E.createElement("div",{className:Se()(Tn.list,Zt)},!!Ht.length&&Ht.map((Bi,Wi)=>{const{name:da,id:Vi,identifier:Ei,power:ga,cover_image_id:Ca,pic:fo}=Bi;return E.createElement("div",{className:Se()(Tn.wrap,Ni),key:Vi,style:{width:Jr,marginRight:(1+Wi)%tn===0?0:xn+wr,marginBottom:fr}},E.createElement("a",{target:"_blank",href:`/shixuns/${Ei}/challenges`,className:Tn.li,onClick:Bo=>{Bo.preventDefault(),kr&&(0,qt.L9)([kr]),ga&&(0,qt.xg)(`/shixuns/${Ei}/challenges`)}},E.createElement("div",{className:Se()(Tn.img,Si)},E.createElement("img",{className:Tn.cover,src:Ca?`${Dt.Z.API_SERVER}/api/attachments/${Ca}`:`${Dt.Z.IMG_SERVER+fo}`}),Bi.is_jupyter&&E.createElement("img",{className:Tn.sign,src:Oe}),Bi.is_jupyter_lab&&E.createElement("img",{className:Tn.sign,src:me}),Bi.is_unity_3d&&E.createElement("img",{className:Tn.sign,src:he})),E.createElement("div",{className:Tn.name},E.createElement(et.Z,{title:da||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:Tn.e},da||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:Tn.tags},E.createElement(et.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,Bi.challenges_count))),!!Bi.myshixuns_count&&E.createElement(et.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,Bi.myshixuns_count))),E.createElement(et.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,Bi.level))),E.createElement("div",{className:Tn.rate},E.createElement(Fe.Z,{allowHalf:!0,disabled:!0,defaultValue:Bi.score_info}),E.createElement("span",null,"\xA0",Bi.score_info?`${Bi.score_info}\u5206`:"5\u5206")))),!ga&&E.createElement("div",{className:Tn.lockWrap},E.createElement("img",{src:`${Dt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ht.length&&E.createElement(Yt.Z,null)))},se=te(5476),Ke={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"},bt=te(79005),Wt=te(20345),yn=te(77882),bn=te(31081),cn=te(75309),wn=te(71979),Tt=te(47558),nn=te(60345),fn=te(66832),sn=te(96593),an=te(19664),xr=te(91833),Lt=Object.defineProperty,Vt=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,en=(Zt,Ht,tn)=>Ht in Zt?Lt(Zt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Zt[Ht]=tn,Fr=(Zt,Ht)=>{for(var tn in Ht||(Ht={}))cr.call(Ht,tn)&&en(Zt,tn,Ht[tn]);if(Vt)for(var tn of Vt(Ht))En.call(Ht,tn)&&en(Zt,tn,Ht[tn]);return Zt};const Ur=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:bt,swimg:Wt},{name:"101\u8BA1\u5212",ptimg:yn,swimg:bn},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:cn,swimg:wn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Tt,swimg:nn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:fn,swimg:sn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:an,swimg:xr}];var ei=({className:Zt,dataSource:Ht=[],col:tn=4,right:xn,bottom:fr=23,precision:wr=0,wrapWidth:lr=1200,trackEventItems:kr,loading:di,wrapClassName:Ni,imgClassName:Si,isArrow:Jr=!1,imgStyle:Bi={}})=>{const Wi=Math.floor((lr-(tn-1)*xn)/tn),[da,Vi]=(0,E.useState)(),[Ei,ga]=(0,E.useState)(),Ca=Bo=>Vi(Bo),fo=()=>Vi(-1);return E.createElement(xt.Z,{spinning:di},E.createElement("div",{className:Se()(Ke.list,Zt)},!!(Ht!=null&&Ht.length)&&(Ht==null?void 0:Ht.map((Bo,xo)=>{var Jt;const{name:rn,id:kn,identifier:zr,featured:Mr,school_name:tr,image_url:yr,excellent:Ln,is_plan:Xn}=Bo;return E.createElement("div",{key:kn,className:Se()(Ke.wrap,Ni),style:{width:Wi,marginRight:(1+xo)%tn===0?0:xn+wr,marginBottom:fr}},E.createElement("a",{target:"_blank",href:`/paths/${zr}`,className:Ke.li,onClick:qr=>{qr.preventDefault(),kr&&(0,qt.L9)([kr]),(0,qt.xg)(`/paths/${zr}`)}},E.createElement("img",{src:te(39057),className:Ke.titleBg}),E.createElement("div",{className:Ke.name},E.createElement(et.Z,{title:rn},E.createElement("span",{className:Ke.e,style:{color:Jr&&da===xo?"#145DFF":"#000000"},onMouseEnter:()=>{Ca(xo)},onMouseLeave:fo},rn))),E.createElement("div",{style:{padding:"14px",paddingBottom:0}},E.createElement("div",{className:Se()(Ke.img,Si)},E.createElement("img",{className:Ke.cover,style:Fr({},Bi),src:`${Dt.Z.IMG_SERVER+yr}`}),(Jt=Bo==null?void 0:Bo.subject_tags)==null?void 0:Jt.map((qr,Pi)=>{var Da,la;if(Pi===0){const mo=(Da=Ur.find(Ui=>Ui.name==qr))==null?void 0:Da.swimg;return E.createElement("img",{className:Ke.sign,src:mo,style:{left:"-4px"}})}const La=(la=Ur.find(mo=>mo.name==qr))==null?void 0:la.ptimg;return E.createElement("img",{className:Ke.sign,src:La,style:{left:`${48+52*(Pi-1)+2*Pi}px`}})}),E.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Bo==null?void 0:Bo.excellent)&&E.createElement("div",{className:Ke.bq},"\u5F00\u653E\u8BFE\u7A0B"))),E.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},E.createElement("div",null,E.createElement("span",{className:Ke.text},"\u7AE0\u8282\u6570"),E.createElement("span",{className:Ke.value},Bo.stages_count)),E.createElement("div",null,E.createElement("span",{className:Ke.text},"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:Ke.value},Bo.members_count))))))})),!Ht.length&&E.createElement(Yt.Z,null)))},Mi={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"},ci=te(52262),Qn=te(67294);const Or=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:bt,swimg:Wt},{name:"101\u8BA1\u5212",ptimg:yn,swimg:bn},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:cn,swimg:wn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Tt,swimg:nn},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:fn,swimg:sn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:an,swimg:xr}];var vi=({className:Zt,dataSource:Ht=[],col:tn=4,right:xn,bottom:fr=23,precision:wr=0,wrapWidth:lr=1200,trackEventItems:kr,loading:di,onRemove:Ni=()=>{},isCurrent:Si=!0,showAlias:Jr=!1,wrapClassName:Bi,imgClassName:Wi})=>{const da=Math.floor((lr-(tn-1)*xn)/tn),Vi=[{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(Ei=>(window.ENV==="build"&&(Ei.ptimg=`/react/build${Ei.ptimg}`,Ei.swimg=`/react/build${Ei.swimg}`),Ei));return Qn.createElement(xt.Z,{spinning:di},Qn.createElement("div",{className:Se()(Mi.list,Zt)},!!(Ht!=null&&Ht.length)&&(Ht==null?void 0:Ht.map((Ei,ga)=>{var Ca;const{name:fo,id:Bo,identifier:xo,featured:Jt,school_name:rn,image_url:kn,excellent:zr,is_plan:Mr}=Ei;return Qn.createElement("div",{key:Bo,className:Se()(Mi.wrap,Bi),style:{width:da,marginRight:(1+ga)%tn===0?0:xn+wr,marginBottom:fr}},Qn.createElement("a",{className:Mi.li,onClick:tr=>{tr.preventDefault(),tr.stopPropagation(),kr&&(0,qt.L9)([kr]),(0,qt.xg)(`/paths/${xo}`)}},Qn.createElement("div",{className:Se()(Mi.img,Wi)},Qn.createElement("img",{className:Mi.cover,src:`${Dt.Z.IMG_SERVER+kn}`}),Si&&(0,ci.bg)()&&(Ei==null?void 0:Ei.studying)&&Qn.createElement("div",{className:`${Mi.movebq} user-path-items`,onClick:tr=>{tr.stopPropagation(),Ni(Ei)}},Qn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Qn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ca=Ei==null?void 0:Ei.subject_tags)==null?void 0:Ca.map((tr,yr)=>{var Ln,Xn;if(yr===0){const Pi=(Ln=Vi.find(Da=>Da.name==tr))==null?void 0:Ln.swimg;return Qn.createElement("img",{className:Mi.sign,src:Pi,style:{left:"-4px"}})}const qr=(Xn=Vi.find(Pi=>Pi.name==tr))==null?void 0:Xn.ptimg;return Qn.createElement("img",{className:Mi.sign,src:qr,style:{left:`${48+52*(yr-1)+2*yr}px`}})}),Qn.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Ei==null?void 0:Ei.excellent)&&Qn.createElement("div",{className:Mi.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Qn.createElement("div",{className:Mi.name},Qn.createElement(et.Z,{title:Jr&&(Ei!=null&&Ei.excellent_alias_name)?Qn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${fo}`,Qn.createElement("br",null),Qn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ei==null?void 0:Ei.excellent_alias_name}`)):fo},Qn.createElement("span",{className:Mi.e},Jr&&(Ei==null?void 0:Ei.excellent_alias_name)||fo))),Qn.createElement("div",{className:Mi.tags},Qn.createElement("div",null,Qn.createElement(et.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Qn.createElement("span",null,Qn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Qn.createElement("span",null,Ei.stages_count))),Qn.createElement(et.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Qn.createElement("span",null,Qn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Qn.createElement("span",null,Ei.members_count)))))))})),!Ht.length&&Qn.createElement(Yt.Z,null)))},Zi={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"},$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9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bccpan8cseAAAAAElFTkSuQmCC",$n=te(67294),Yn=({className:Zt,dataSource:Ht=[],col:tn=4,right:xn,bottom:fr=23,precision:wr=0,wrapWidth:lr=1200,trackEventItems:kr,loading:di})=>{const Ni=Math.floor((lr-(tn-1)*xn)/tn);return $n.createElement(xt.Z,{spinning:di},$n.createElement("div",{className:Se()(Zi.list,Zt)},!!Ht.length&&Ht.map((Si,Jr)=>{const{subject_identifier:Bi,id:Wi,identifier:da,power:Vi}=Si,Ei=Si.is_public!=0&&Si.is_public;return $n.createElement("div",{className:Zi.wrap,key:Wi,style:{width:Ni,marginRight:(1+Jr)%tn===0?0:xn+wr,marginBottom:fr}},$n.createElement("a",{className:Zi.li,onClick:ga=>{ga.preventDefault(),kr&&(0,qt.L9)([kr]),(0,qt.xg)(Si.first_category_url)}},$n.createElement("div",{className:Zi.top},$n.createElement(et.Z,{title:Si.name},$n.createElement("div",{className:Zi.name},Si.name)),$n.createElement("img",{className:Zi.img,src:Dt.Z.IMG_SERVER+"/images/"+Si.avatar_url}),$n.createElement("div",{className:Zi.text,title:Si.creator},Si.creator),Bi&&$n.createElement("div",{className:Zi.btns},$n.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),$n.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ei&&$n.createElement("div",{className:Zi.sign},"\u516C\u5F00")),$n.createElement("div",{className:Zi.bottom},Si.visits>0&&$n.createElement(et.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},$n.createElement("span",null,$n.createElement("i",{className:"iconfont icon-liulanyan"}),$n.createElement("span",null,Si.visits))),Si.course_members_count>0&&$n.createElement(et.Z,{title:"\u6210\u5458",placement:"bottom"},$n.createElement("span",null,$n.createElement("i",{className:"iconfont icon-chengyuan"}),Si.course_members_count)),Si.tasks_count>0&&$n.createElement(et.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},$n.createElement("span",null,$n.createElement("i",{className:"iconfont icon-zuoye"}),Si.tasks_count)),Si.is_end?$n.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):$n.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Si.is_accessible&&$n.createElement("div",{className:Zi.lockWrap},$n.createElement("img",{src:`${Dt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),$n.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ht.length&&$n.createElement(Yt.Z,null)))},Dr={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"},hi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/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P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Vr=({className:Zt,dataSource:Ht=[],col:tn=4,right:xn,bottom:fr=23,precision:wr=0,wrapWidth:lr=1200,wrapClassName:kr,trackEventItems:di,loading:Ni})=>{const Si=Math.floor((lr-(tn-1)*xn)/tn);return E.createElement(xt.Z,{spinning:Ni},E.createElement("div",{className:Se()(Dr.list,Zt)},!!Ht.length&&Ht.map((Jr,Bi)=>{const{subject_identifier:Wi,id:da,identifier:Vi,power:Ei}=Jr,ga=Jr.is_public!=0&&Jr.is_public;return E.createElement("div",{className:Se()(`${Dr.wrap} ${Jr.is_accessible?"":Dr.warpStyle}`,kr),key:da,style:{width:Si,marginRight:(1+Bi)%tn===0?0:xn+wr,marginBottom:fr}},E.createElement("a",{className:Dr.li,onClick:Ca=>{Ca.preventDefault(),di&&(0,qt.L9)([di]),(0,qt.xg)(Jr.first_category_url)}},E.createElement("div",{className:Dr.creator},E.createElement("img",{className:Dr.img,src:Dt.Z.IMG_SERVER+"/images/"+Jr.avatar_url}),E.createElement("div",{className:Dr.text,title:Jr.creator},Jr.creator)),E.createElement("div",{className:Dr.top},E.createElement(et.Z,{title:Jr.name},E.createElement("div",{className:Dr.name},Jr.name)),ga&&E.createElement("div",{className:Dr.sign},"\u516C\u5F00")),E.createElement("div",{className:Dr.middle},E.createElement("div",{className:Dr.row,style:{marginBottom:6}},E.createElement("div",null,E.createElement("span",{className:Dr.text},"\u8BBF\u95EE\u91CF"),E.createElement("span",{className:Dr.value},(Jr==null?void 0:Jr.visits)||0)),E.createElement("div",null,E.createElement("span",{className:Dr.text},"\u6210\u5458"),E.createElement("span",{className:Dr.value},(Jr==null?void 0:Jr.course_members_count)||0))),E.createElement("div",{className:Dr.row},E.createElement("div",null,E.createElement("span",{className:Dr.text,style:{width:42}},"\u4F5C",E.createElement("span",{style:{marginLeft:14}},"\u4E1A")),E.createElement("span",{className:Dr.value},(Jr==null?void 0:Jr.tasks_count)||0)),E.createElement("div",null,E.createElement("span",{className:Dr.text},"\u72B6\u6001"),Jr.is_end?E.createElement("span",{className:Dr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):E.createElement("span",{className:Dr.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),Wi&&E.createElement("div",{className:Dr.btns},E.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),E.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Jr.is_accessible&&E.createElement("div",{className:Dr.lockWrap},E.createElement("img",{src:`${Dt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ht.length&&E.createElement(Yt.Z,null)))},Ct={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"},hn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9G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merABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",jn=({className:Zt,dataSource:Ht=[],col:tn=4,right:xn,bottom:fr=23,precision:wr=0,wrapWidth:lr=1200,wrapClassName:kr,trackEventItems:di,loading:Ni})=>{const Si=Math.floor((lr-(tn-1)*xn)/tn);return E.createElement(xt.Z,{spinning:Ni},E.createElement("div",{className:Se()(Ct.list,Zt)},!!Ht.length&&Ht.map((Jr,Bi)=>{const{subject_identifier:Wi,id:da,identifier:Vi,power:Ei}=Jr,ga=Jr.is_public!=0&&Jr.is_public;return E.createElement("div",{className:Se()(`${Ct.wrap} ${Jr.is_accessible?"":Ct.warpStyle}`,kr),key:da,style:{width:Si,marginRight:(1+Bi)%tn===0?0:xn+wr,marginBottom:fr}},E.createElement("a",{className:Ct.li,onClick:Ca=>{Ca.preventDefault(),di&&(0,qt.L9)([di]),(0,qt.xg)(Jr.first_category_url)}},E.createElement("div",{className:Ct.creator},E.createElement("img",{className:Ct.img,src:Dt.Z.IMG_SERVER+"/images/"+Jr.avatar_url}),E.createElement("div",{className:Ct.text,title:Jr.creator},Jr.creator)),E.createElement("div",{className:Ct.top},E.createElement(et.Z,{title:Jr.name},E.createElement("div",{className:Ct.name},Jr.name)),ga&&E.createElement("div",{className:Ct.sign})),E.createElement("div",{className:Ct.middle},E.createElement("div",{className:Ct.row,style:{marginBottom:6}},E.createElement("div",null,E.createElement("span",{className:Ct.text},"\u8BBF\u95EE\u91CF"),E.createElement("span",{className:Ct.value},(Jr==null?void 0:Jr.visits)||0)),E.createElement("div",null,E.createElement("span",{className:Ct.text},"\u6210\u5458"),E.createElement("span",{className:Ct.value},(Jr==null?void 0:Jr.course_members_count)||0))),E.createElement("div",{className:Ct.row},E.createElement("div",null,E.createElement("span",{className:Ct.text,style:{width:42}},"\u4F5C",E.createElement("span",{style:{marginLeft:14}},"\u4E1A")),E.createElement("span",{className:Ct.value},(Jr==null?void 0:Jr.tasks_count)||0)),E.createElement("div",null,E.createElement("span",{className:Ct.text},"\u72B6\u6001"),Jr.is_end?E.createElement("span",{className:Ct.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):E.createElement("span",{className:Ct.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),Wi&&E.createElement("div",{className:Ct.btns},E.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),E.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Jr.is_accessible&&E.createElement("div",{className:Ct.lockWrap},E.createElement("img",{src:`${Dt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ht.length&&E.createElement(Yt.Z,null)))},Bt={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"},on=te(35973),Dn=({dataSource:Zt=[],value:Ht,onChange:tn,className:xn,style:fr={},tabBarExtraContent:wr})=>E.createElement("div",{className:Se()(Bt.tabs,xn),style:fr},E.createElement("div",{className:Bt.tabsWrap},Zt.map((lr,kr)=>E.createElement("aside",{className:Bt.tab,onClick:()=>{tn(lr.id),lr.link&&on.history.push(lr.link)},key:kr},E.createElement("div",{className:Ht===lr.id?Bt.active:""},lr.name),(lr==null?void 0:lr.resetCount)==null&&(lr==null?void 0:lr.total)!==void 0&&E.createElement("span",null,"\uFF08",lr==null?void 0:lr.total,"\uFF09"),(lr==null?void 0:lr.resetCount)!==void 0&&(lr==null?void 0:lr.total)!==void 0&&E.createElement(et.Z,{title:(lr==null?void 0:lr.tip)!=null?lr==null?void 0:lr.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},lr==null?void 0:lr.resetCount),"/",E.createElement("span",null,lr==null?void 0:lr.total),"\uFF09"))))),E.createElement("div",{className:Bt.tabBar},wr)),rr={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"},Gr=({dataSource:Zt=[],value:Ht,onChange:tn,className:xn,style:fr={},tabBarExtraContent:wr})=>E.createElement("div",{className:Se()(rr.tabs,xn),style:fr},E.createElement("div",{className:rr.tabsWrap},Zt.map((lr,kr)=>E.createElement("aside",{className:rr.tab,onClick:()=>{tn(lr.id),lr.link&&on.history.push(lr.link)},key:kr},E.createElement("div",{className:Ht===lr.id?rr.active:""},lr.name),(lr==null?void 0:lr.resetCount)==null&&(lr==null?void 0:lr.total)!==void 0&&E.createElement("span",null,"\uFF08",lr==null?void 0:lr.total,"\uFF09"),(lr==null?void 0:lr.resetCount)!==void 0&&(lr==null?void 0:lr.total)!==void 0&&E.createElement(et.Z,{title:(lr==null?void 0:lr.tip)!=null?lr==null?void 0:lr.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},lr==null?void 0:lr.resetCount),"/",E.createElement("span",null,lr==null?void 0:lr.total),"\uFF09"))))),E.createElement("div",{className:rr.tabBar},wr)),ra={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"},bi=({dataSource:Zt=[],value:Ht,onChange:tn,className:xn,style:fr={},tabBarExtraContent:wr})=>E.createElement("div",{className:Se()(ra.tabs,xn),style:fr},E.createElement("div",{className:ra.tabsWrap},Zt.map((lr,kr)=>E.createElement("aside",{className:`${ra.tab} ${Ht===lr.id?ra.active:""}`,onClick:()=>{tn(lr.id),lr.link&&on.history.push(lr.link)},key:kr},E.createElement("div",null,lr.name),(lr==null?void 0:lr.resetCount)==null&&(lr==null?void 0:lr.total)!==void 0&&E.createElement("span",null,"\uFF08",lr==null?void 0:lr.total,"\uFF09"),(lr==null?void 0:lr.resetCount)!==void 0&&(lr==null?void 0:lr.total)!==void 0&&E.createElement(et.Z,{title:(lr==null?void 0:lr.tip)!=null?lr==null?void 0:lr.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},lr==null?void 0:lr.resetCount),"/",E.createElement("span",null,lr==null?void 0:lr.total),"\uFF09"))))),E.createElement("div",{className:ra.tabBar},wr)),Ti=({className:Zt,style:Ht={},children:tn})=>E.createElement("div",{className:Se()(Zt),style:Ht},tn),ua={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"},br=te(85418),Di=te(68508);const ni=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var xa=({sortValue:Zt,dropValue:Ht,className:tn,onSort:xn,onDrop:fr,dataSource:wr=ni})=>{var lr;return E.createElement("div",{className:Se()(ua.orderWrap,tn)},E.createElement(br.Z,{dropdownRender:()=>E.createElement(Di.default,null,wr.map((kr,di)=>E.createElement(Di.default.Item,{key:di,onClick:()=>fr(kr.id)},kr.name)))},E.createElement("span",{className:ua.orderTextWrap},(lr=wr.find(kr=>Ht===kr.id))==null?void 0:lr.name)),E.createElement("span",{className:ua.orderIconWrap},E.createElement("span",{className:ua.orderAsc},E.createElement("i",{className:Zt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ua.cursorPointer} ${ua.active}`:`iconfont icon-sanjiaoxing-up font12 ${ua.cursorPointer}`,onClick:()=>xn(Zt==="asc"?"desc":"asc")})),E.createElement("span",{className:ua.orderDesc},E.createElement("i",{className:Zt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ua.cursorPointer} ${ua.active}`:`iconfont icon-sanjiaoxing-down font12 ${ua.cursorPointer}`,onClick:()=>xn(Zt==="asc"?"desc":"asc")}))))},za={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 Lo=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var zo=({sortValue:Zt,dropValue:Ht,className:tn,onSort:xn,onDrop:fr,dataSource:wr=Lo})=>{var lr;return E.createElement("div",{className:Se()(za.orderWrap,tn)},E.createElement(br.Z,{dropdownRender:()=>E.createElement(Di.default,null,wr.map((kr,di)=>E.createElement(Di.default.Item,{key:di,onClick:()=>fr(kr.id)},kr.name)))},E.createElement("span",{className:za.orderTextWrap},(lr=wr.find(kr=>Ht===kr.id))==null?void 0:lr.name)),E.createElement("span",{className:za.orderIconWrap},E.createElement("span",{className:za.orderAsc},E.createElement("i",{className:Zt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${za.cursorPointer} ${za.active}`:`iconfont icon-sanjiaoxing-up font12 ${za.cursorPointer}`,onClick:()=>xn(Zt==="asc"?"desc":"asc")})),E.createElement("span",{className:za.orderDesc},E.createElement("i",{className:Zt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${za.cursorPointer} ${za.active}`:`iconfont icon-sanjiaoxing-down font12 ${za.cursorPointer}`,onClick:()=>xn(Zt==="asc"?"desc":"asc")}))))},gi={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"},Cl=te(71577),pl=te(52810),jl=Object.defineProperty,Ko=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,Na=Object.prototype.propertyIsEnumerable,ml=(Zt,Ht,tn)=>Ht in Zt?jl(Zt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Zt[Ht]=tn,nl=(Zt,Ht)=>{for(var tn in Ht||(Ht={}))Do.call(Ht,tn)&&ml(Zt,tn,Ht[tn]);if(Ko)for(var tn of Ko(Ht))Na.call(Ht,tn)&&ml(Zt,tn,Ht[tn]);return Zt},Sl=(Zt,Ht)=>{var tn={};for(var xn in Zt)Do.call(Zt,xn)&&Ht.indexOf(xn)<0&&(tn[xn]=Zt[xn]);if(Zt!=null&&Ko)for(var xn of Ko(Zt))Ht.indexOf(xn)<0&&Na.call(Zt,xn)&&(tn[xn]=Zt[xn]);return tn},Rl=(Zt,Ht,tn)=>new Promise((xn,fr)=>{var wr=di=>{try{kr(tn.next(di))}catch(Ni){fr(Ni)}},lr=di=>{try{kr(tn.throw(di))}catch(Ni){fr(Ni)}},kr=di=>di.done?xn(di.value):Promise.resolve(di.value).then(wr,lr);kr((tn=tn.apply(Zt,Ht)).next())}),wl=Zt=>{var Ht=Zt,{className:tn,style:xn,children:fr,loading:wr=!1,openLoading:lr,onClick:kr=()=>{},size:di="middle",shape:Ni="round",theme:Si}=Ht,Jr=Sl(Ht,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Bi,Wi]=(0,E.useState)(!1),da=(0,E.useMemo)(()=>{switch(Si){case pl.Fy.THEMEONE:return gi.ThemeOne;case pl.Fy.DEFAULT:default:return gi.btn}},[Si]);return E.createElement(Cl.ZP,nl({onClick:(0,pe.throttle)(Vi=>Rl(void 0,null,function*(){lr&&Wi(!0);try{yield kr(Vi)}catch(Ei){console.log("error",Ei)}lr&&Wi(!1)}),2e3,{leading:!0,trailing:!1}),className:Se()(da,gi[`${di}-${Ni}`],tn),style:xn,size:di,shape:Ni,loading:Bi||wr},Jr),fr)},Vl={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"},Fl=({className:Zt,style:Ht,children:tn=null,onClick:xn,title:fr})=>E.createElement("div",{className:Se()(Vl.head,Zt),style:Ht},E.createElement("span",{className:"primary-hover",onClick:xn},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:fr},fr),E.createElement("div",{className:Vl.node},tn)),Vo={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"},Nn=({confirmShow:Zt=!0,confirmTitle:Ht,confirmClick:tn,cancelShow:xn=!0,cancelTitle:fr,cancelClick:wr,className:lr,style:kr,confirmLoading:di=!1})=>E.createElement("div",{className:Se()(Vo.btns,lr),style:kr},Zt&&E.createElement(Cl.ZP,{loading:di,onClick:tn,type:"primary",className:Vo.confirm},Ht),xn&&E.createElement(Cl.ZP,{onClick:wr,className:Vo.cancel},fr)),Ir={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"},Ii=({className:Zt,style:Ht={},LeftContent:tn,children:xn,RightContent:fr})=>E.createElement("div",{className:Se()(Ir.fixedBottom,Zt),style:Ht},E.createElement("div",{className:Ir.wrap},E.createElement("div",{className:Ir.left},tn),E.createElement("div",{className:Ir.center},xn),E.createElement("div",{className:Ir.right},fr))),Ma={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"},Ya=({className:Zt,style:Ht={},dataSource:tn=[]})=>E.createElement("div",{className:Se()(Ma.crumbs,Zt),style:Ht},tn.map((xn,fr)=>fr<tn.length-1?E.createElement(E.Fragment,{key:fr},xn.path||xn.onClick?E.createElement("span",{className:Ma.hover,onClick:xn!=null&&xn.onClick?xn.onClick:()=>on.history.push(xn.path)},xn.name):E.createElement("span",null,xn.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:fr,style:{color:"#5F6368"}},xn.name))),$a=te(55054),Za=Object.defineProperty,Go=Object.defineProperties,Ho=Object.getOwnPropertyDescriptors,Qo=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable,Tr=(Zt,Ht,tn)=>Ht in Zt?Za(Zt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Zt[Ht]=tn,Ae=(Zt,Ht)=>{for(var tn in Ht||(Ht={}))vr.call(Ht,tn)&&Tr(Zt,tn,Ht[tn]);if(Qo)for(var tn of Qo(Ht))Sr.call(Ht,tn)&&Tr(Zt,tn,Ht[tn]);return Zt},it=(Zt,Ht)=>Go(Zt,Ho(Ht)),st=(Zt,Ht)=>{var tn={};for(var xn in Zt)vr.call(Zt,xn)&&Ht.indexOf(xn)<0&&(tn[xn]=Zt[xn]);if(Zt!=null&&Qo)for(var xn of Qo(Zt))Ht.indexOf(xn)<0&&Sr.call(Zt,xn)&&(tn[xn]=Zt[xn]);return tn};const{Countdown:yt}=$a.default;var Ft=Zt=>{var Ht=Zt,{onChange:tn}=Ht,xn=st(Ht,["onChange"]);const[fr,wr]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof fr=="number"&&fr>=0&&tn(fr)},[fr]);const lr=kr=>{const di=Math.floor(kr/1e3);wr(di)};return E.createElement(yt,it(Ae({},xn),{onChange:lr}))},Nt={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Rn=({DataProps:Zt,className:Ht,style:tn={}})=>{var xn;return E.createElement("div",{className:Se()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",Nt.ClassRoomItem,Ht),style:tn,onClick:()=>{(0,qt.xg)(Zt==null?void 0:Zt.first_category_url)}},E.createElement("div",{className:"flex flex-col item-center"},E.createElement("img",{src:`${(xn=Dt.Z)==null?void 0:xn.IMG_SERVER}/images/${Zt==null?void 0:Zt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Zt==null?void 0:Zt.subject_identifier)&&E.createElement("div",{className:"mt-40px"},E.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),E.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),E.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},E.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(Zt!=null&&Zt.is_public)&&E.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"),E.createElement("span",{className:Se()("text-16px font-medium",Nt.TitleDom)},Zt==null?void 0:Zt.name)),E.createElement("div",{className:"c-grey-333 font-medium"},Zt==null?void 0:Zt.creator),E.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Zt==null?void 0:Zt.course_members_count),E.createElement("div",{className:"c-grey-333 flex item-center justify-between"},E.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Zt==null?void 0:Zt.tasks_count),Zt!=null&&Zt.is_end?E.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):E.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Nr=Object.defineProperty,Wr=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,pr=(Zt,Ht,tn)=>Ht in Zt?Nr(Zt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Zt[Ht]=tn,Jn=(Zt,Ht)=>{for(var tn in Ht||(Ht={}))Rr.call(Ht,tn)&&pr(Zt,tn,Ht[tn]);if(Wr)for(var tn of Wr(Ht))Un.call(Ht,tn)&&pr(Zt,tn,Ht[tn]);return Zt},yi=({DataProps:Zt=[],selectValue:Ht,onChange:tn,className:xn,style:fr={},extra:wr,classNameItem:lr,styleItem:kr={},barHidden:di})=>{const[Ni,Si]=(0,E.useState)();return(0,E.useEffect)(()=>{Si(Array.isArray(Ht)?Ht:[Ht])},[Ht]),E.createElement("div",{className:Se()("flex px-20px py-10px gap-40px",xn),style:Jn({borderBottom:"1px solid #D3F0FF"},fr)},Zt==null?void 0:Zt.map(Jr=>E.createElement("div",{key:Jr==null?void 0:Jr.id,className:Se()("flex item-center justify-center current c-grey-333 text-16 relative",lr,Jr==null?void 0:Jr.className),style:Jn(Jn({color:Ni!=null&&Ni.includes(Jr==null?void 0:Jr.id)?"#1890FF":"",minWidth:88},kr),(Jr==null?void 0:Jr.style)||{}),onClick:Bi=>{tn==null||tn({domEvent:Bi,item:Jr}),Jr!=null&&Jr.link&&on.history.push(Jr==null?void 0:Jr.link)}},Jr==null?void 0:Jr.name,!di&&(Ni==null?void 0:Ni.includes(Jr==null?void 0:Jr.id))&&E.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),E.createElement("div",{className:"ml-auto"},wr))},Yr=Object.defineProperty,Xr=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,vt=(Zt,Ht,tn)=>Ht in Zt?Yr(Zt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Zt[Ht]=tn,On=(Zt,Ht)=>{for(var tn in Ht||(Ht={}))Ci.call(Ht,tn)&&vt(Zt,tn,Ht[tn]);if(fi)for(var tn of fi(Ht))At.call(Ht,tn)&&vt(Zt,tn,Ht[tn]);return Zt},Cn=(Zt,Ht)=>Xr(Zt,ti(Ht)),Zr=({value:Zt,onChange:Ht,onInputChange:tn,className:xn,style:fr={},InputProps:wr})=>{const[lr,kr]=(0,E.useState)(Zt);return E.createElement("div",{className:Se()("flex item-center rounded-full px-10px py-2px",xn),style:On({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},fr)},E.createElement(ot.default,Cn(On({bordered:!1},wr),{onChange:di=>{kr(di.target.value),tn==null||tn(encodeURIComponent(di.target.value))},onPressEnter:di=>{Ht==null||Ht({domEvent:di,item:{value:lr}})}})),E.createElement("img",{className:"h-22px current",src:te(25365),height:22,onClick:di=>{Ht==null||Ht({domEvent:di,item:{value:lr}})}}))}},99914:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return fe}});var E=te(67294);function fe(Ie,Te){const xe=(0,E.useRef)();(0,E.useEffect)(()=>{xe.current=Ie}),(0,E.useEffect)(()=>{function Be(){xe.current()}if(Te!==null){let de=setInterval(Be,Te);return()=>clearInterval(de)}},[Te])}},96707:function(In,Ut,te){"use strict";te.d(Ut,{h:function(){return E}});var E=(fe=>(fe[fe.NOMATCH=-1]="NOMATCH",fe[fe.OK=0]="OK",fe[fe.TIMEOUT=2]="TIMEOUT",fe[fe.PODFAILURE=3]="PODFAILURE",fe[fe.COMPILEFAILURE=4]="COMPILEFAILURE",fe[fe.EXECUTEFAILURE=5]="EXECUTEFAILURE",fe[fe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",fe))(E||{})},88742:function(In,Ut,te){"use strict";te.d(Ut,{H7:function(){return qe},MK:function(){return rt},MU:function(){return De},X6:function(){return Pe},bM:function(){return pe},fi:function(){return He},fu:function(){return Se},n4:function(){return be},rX:function(){return Ue},vl:function(){return Qe},zO:function(){return Xe}});var E=te(33170),fe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Be=(ht,Je,Ze)=>Je in ht?fe(ht,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ht[Je]=Ze,de=(ht,Je)=>{for(var Ze in Je||(Je={}))Te.call(Je,Ze)&&Be(ht,Ze,Je[Ze]);if(Ie)for(var Ze of Ie(Je))xe.call(Je,Ze)&&Be(ht,Ze,Je[Ze]);return ht};function Se(ht,Je){return(0,E.U2)(`myproblems/${ht}.json`,de({hidePopLogin:!0},Je||{}))}function pe(ht,Je){return(0,E.v_)(`myproblems/${ht}/code_submit.json`,Je)}function De(ht,Je){return(0,E.v_)(`myproblems/${ht}/code_debug.json`,Je)}function Xe(ht,Je){return Je.language&&(Je.language=encodeURIComponent(Je.language)),(0,E.U2)(`myproblems/${ht}/submit_records.json`,Je)}function Pe(ht){return(0,E.U2)("myproblems/record_detail.json",{id:ht})}function Ue(ht,Je){return(0,E.U2)(`myproblems/${ht}/result.json`,{mode:Je})}function rt(ht,Je){return(0,E.v_)(`myproblems/${ht}/add_notes.json`,Je)}function qe(ht,Je){return(0,E.v_)(`myproblems/${ht}/restore_initial_code.json`,Je)}function He(ht){return(0,E.v_)(`myproblems/${ht}/sync_code.json`)}function be(ht,Je){return(0,E.v_)(`myproblems/${ht}/update_code.json`,Je)}function Qe(ht,Je){return(0,E.v_)(`discusses/${ht}/plus.json`,Je)}},38884:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Al}});var E=te(67294),fe={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI"},Ie=te(22150),Te=te(83062),xe=te(71577),Be=te(14446),de=te(31795),Se=te(2453),pe=te(69677),De=te(96074),Xe=te(84567),Pe=te(71230),Ue=te(15746),rt=te(28452),qe=te(55241),He=Object.defineProperty,be=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Je=(jt,dn,Mn)=>dn in jt?He(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,Ze=(jt,dn)=>{for(var Mn in dn||(dn={}))Qe.call(dn,Mn)&&Je(jt,Mn,dn[Mn]);if(be)for(var Mn of be(dn))ht.call(dn,Mn)&&Je(jt,Mn,dn[Mn]);return jt};const ye=jt=>React.createElement("svg",Ze({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},jt),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var Ee="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",Ye=te(35598),Ne=te(35973),ot=te(28706),ct=te(33170),_e=Object.defineProperty,Me=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,ft=(jt,dn,Mn)=>dn in jt?_e(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,We=(jt,dn)=>{for(var Mn in dn||(dn={}))pt.call(dn,Mn)&&ft(jt,Mn,dn[Mn]);if(Me)for(var Mn of Me(dn))$e.call(dn,Mn)&&ft(jt,Mn,dn[Mn]);return jt};const gt=jt=>React.createElement("svg",We({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},jt),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var kt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",xt=Object.defineProperty,et=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,qt=(jt,dn,Mn)=>dn in jt?xt(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,Xt=(jt,dn)=>{for(var Mn in dn||(dn={}))Fe.call(dn,Mn)&&qt(jt,Mn,dn[Mn]);if(et)for(var Mn of et(dn))Dt.call(dn,Mn)&&qt(jt,Mn,dn[Mn]);return jt};const Et=jt=>React.createElement("svg",Xt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},jt),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var zt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",Yt=te(14375),Vn=te(91304),Pn=te(73646),_t={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},pn=te(67294),sr=Object.defineProperty,Tn=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ve=(jt,dn,Mn)=>dn in jt?sr(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,se=(jt,dn)=>{for(var Mn in dn||(dn={}))he.call(dn,Mn)&&ve(jt,Mn,dn[Mn]);if(me)for(var Mn of me(dn))ge.call(dn,Mn)&&ve(jt,Mn,dn[Mn]);return jt},Ke=(jt,dn)=>Tn(jt,Oe(dn)),bt=(jt,dn)=>{var Mn={};for(var ur in jt)he.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&me)for(var ur of me(jt))dn.indexOf(ur)<0&&ge.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const Wt=null,yn=(jt,dn)=>{var Mn=jt,{globalSetting:ur,loading:Qi,dispatch:dr,isEdit:ii,editData:si}=Mn,ki=bt(Mn,["globalSetting","loading","dispatch","isEdit","editData"]);const[Yi,Lr]=(0,E.useState)(""),[ia,Ha]=(0,E.useState)(""),[ro,Xi]=(0,E.useState)([]),[Wa,_i]=(0,E.useState)(""),[jr,li]=(0,E.useState)(),[va,tt]=(0,E.useState)(!1),[nt,Qt]=(0,E.useState)({}),[Kt,Bn]=(0,E.useState)([]);(0,E.useEffect)(()=>{!si||!ii||(Lr(si==null?void 0:si.name),Ha(si==null?void 0:si.analysis),li(si==null?void 0:si.is_ordered),Qt(si),tt(!0))},[si]),(0,E.useEffect)(()=>{if(!va)return;const ji=si==null?void 0:si.standard_answer.map(ea=>ea==null?void 0:ea.answer_text);Xi(ji);const Li=si==null?void 0:si.standard_answer.map(ea=>ea==null?void 0:ea.score);Bn(Li),tt(!1)},[va]),(0,E.useImperativeHandle)(dn,()=>({onSave:Gn,Clear:_n}));const Gn=()=>{let ji=[],Li=!1;return Yi?(ro.forEach((ea,Hi)=>{ji.push({position:Hi+1,answer_text:[],score:Kt[Hi]}),ea==null||ea.forEach((ka,vo)=>{ji[Hi].answer_text.push(ka),(!ka||!(0,ot.eR)(ka,1e4))&&(_i(`${Hi}-${vo}`),Se.ZP.info(ka?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Li=!0)})}),Li?!1:(ji==null?void 0:ji.length)>20?(Se.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:Yi,analysis:ia,standard_answers:ji,is_ordered:jr,downcase:nt==null?void 0:nt.downcase,no_space:nt==null?void 0:nt.no_space,use_blank_score:nt==null?void 0:nt.use_blank_score}):(Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},_n=()=>{Lr(""),Ha(""),Xi([]),li(!1)},Pr=(ji,Li,ea)=>{const Hi=ro.slice();if(Li&&Hi.splice(ji,Li),ea)for(let ka=0;ka<ea;ka++)Hi.splice(ji+ka,0,[""]);Xi(Hi)},Kr=(ji,Li,ea)=>{_i("");let Hi=ro.slice();Hi[ji][Li]=ea,Xi(Hi)},Er=ji=>{let Li=ro.slice();Li[ji]=[...Li[ji],""],Xi(Li)},ta=(ji,Li)=>{let ea=ro.slice();if(!ea[ji][Li]){ea[ji]=ea[ji].filter((Hi,ka)=>ka!==Li),Xi(ea);return}Be.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:_t.modal,onOk:()=>{ea[ji]=ea[ji].filter((Hi,ka)=>ka!==Li),Xi(ea)}})},zi=ji=>{Be.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:_t.modal,onOk:()=>{let Li=ro.slice();Li=ro.filter((ea,Hi)=>ji!==Hi),Xi(Li)}})};return pn.createElement("section",{className:_t.wrap},pn.createElement("p",{className:_t.titleWrap},pn.createElement("span",{className:_t.required},"*"),pn.createElement("span",{className:_t.title},"\u9898\u5E72\uFF1A")),pn.createElement("div",null,pn.createElement(Vn.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",height:155,defaultValue:Yi,onChange:ji=>Lr(ji),showNullButton:!0,onAddBlank:()=>Xi(ji=>[...ji,[""]])})),pn.createElement("div",{className:"mt20 flex flex-col gap-10px"},ro.map((ji,Li)=>pn.createElement("div",{style:{display:"flex"}},pn.createElement("div",{style:{flex:1}},pn.createElement(Pn.Z,{key:Li,answers:ji,index:Li,flex:1,is_md:!0,activeOptionErrorIndex:Wa,onAnswerChange:Kr,addChildAnswer:Er,deleteChildAnswer:ta,deleteChildAnswermain:zi})),nt.use_blank_score&&pn.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},pn.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",pn.createElement(de.Z,{style:{width:"100px"},size:"large",defaultValue:Kt[Li],onBlur:ea=>{Kt[Li]=ea.target.value,Bn([...Kt])}}))))),pn.createElement(xe.ZP,{className:"mt20",onClick:()=>Xi(ji=>[...ji,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),pn.createElement("div",null,pn.createElement(Xe.default,{className:`${_t.color333} font14 mt20`,checked:nt.use_blank_score,onChange:ji=>Qt(Ke(se({},nt),{use_blank_score:ji.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),pn.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),pn.createElement("div",null,pn.createElement(Xe.default,{className:`${_t.color333} font14 mt20`,checked:nt.downcase,onChange:ji=>Qt(Ke(se({},nt),{downcase:ji.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),pn.createElement("div",null,pn.createElement(Xe.default,{className:`${_t.color333} font14 mt20`,checked:nt.no_space,onChange:ji=>Qt(Ke(se({},nt),{no_space:ji.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),pn.createElement("div",{className:"mt20"},(ro==null?void 0:ro.length)>1&&pn.createElement("span",null,pn.createElement(Xe.default,{checked:jr,onChange:ji=>li(ji.target.checked),className:`${_t.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),pn.createElement("span",{className:`${_t.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),pn.createElement("p",{className:_t.titleWrap},pn.createElement("span",{className:_t.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),pn.createElement(Vn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ia,onChange:ji=>Ha(ji)}))};var bn=(0,Ne.connect)(({loading:jt,globalSetting:dn})=>({globalSetting:dn,loading:jt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(yn)),cn=te(78045),wn=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,fn=(jt,dn)=>{var Mn={};for(var ur in jt)Tt.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&wn)for(var ur of wn(jt))dn.indexOf(ur)<0&&nn.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const sn=null,an=(jt,dn)=>{var Mn=jt,{globalSetting:ur,loading:Qi,editData:dr,dispatch:ii,onRef:si=()=>{},isEdit:ki}=Mn,Yi=fn(Mn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Lr,ia]=(0,E.useState)(),[Ha,ro]=(0,E.useState)(""),[Xi,Wa]=(0,E.useState)("");(0,E.useEffect)(()=>{if(!dr||!ki)return;ro(dr==null?void 0:dr.name),Wa(dr==null?void 0:dr.analysis);const li=dr==null?void 0:dr.choices.find(va=>va.is_answer);ia(li.choice_text==="\u6B63\u786E"?"0":"1")},[dr]),(0,E.useImperativeHandle)(dn,()=>({onSave:_i,Clear:jr}));const _i=()=>Ha?Lr?{name:Ha,choices:[{choice_text:"\u6B63\u786E",is_answer:Lr==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Lr==="1"?1:0}],analysis:Xi}:(Se.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),jr=()=>{ro(""),Wa(""),ia("")};return E.createElement("section",{className:_t.wrap},E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.required},"*"),E.createElement("span",{className:_t.title},"\u9898\u5E72\uFF1A")),E.createElement(Vn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ha,onChange:li=>ro(li)}),E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.required},"*"),E.createElement("span",{className:_t.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:_t.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),E.createElement(cn.ZP.Group,{buttonStyle:"solid",value:Lr,onChange:li=>ia(li.target.value)},E.createElement(cn.ZP.Button,{value:"0",className:`${_t.radio} mr40`},"\u6B63\u786E"),E.createElement(cn.ZP.Button,{value:"1",className:_t.radio},"\u9519\u8BEF")),E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),E.createElement(Vn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Xi,onChange:li=>Wa(li)}))};var xr=(0,Ne.connect)(({loading:jt,globalSetting:dn})=>({globalSetting:dn,loading:jt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(an)),Lt=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,En=(jt,dn)=>{var Mn={};for(var ur in jt)Vt.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&Lt)for(var ur of Lt(jt))dn.indexOf(ur)<0&&cr.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const en=null,Fr=(jt,dn)=>{var Mn=jt,{globalSetting:ur,loading:Qi,editData:dr,dispatch:ii,onRef:si=()=>{},isEdit:ki}=Mn,Yi=En(Mn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Lr,ia]=(0,E.useState)([]);(0,E.useEffect)(()=>{var Wa;if(!dr||!ki)return;const _i=(Wa=dr==null?void 0:dr.shixun)==null?void 0:Wa.challenges.map(jr=>({id:jr==null?void 0:jr.id,score:jr.score}));ia(_i)},[dr]),(0,E.useImperativeHandle)(dn,()=>({onSave:Ha,Clear:ro}));const Ha=()=>({challenges:[...Lr]}),ro=()=>{ia([])};console.log("editData--",dr);const Xi=Wa=>{var _i,jr;return E.createElement("div",null,(jr=(_i=Wa==null?void 0:Wa.shixun)==null?void 0:_i.challenges)==null?void 0:jr.map((li,va)=>{var tt;return E.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},E.createElement("div",null,E.createElement("span",{className:"mr5"},"\u7B2C",va+1,"\u5173"),E.createElement(Te.Z,{key:va,title:li==null?void 0:li.challenge_name},E.createElement("span",null,(0,ot.Pq)(li==null?void 0:li.challenge_name,44)))),E.createElement("p",{style:{marginBottom:0}},E.createElement("span",{className:_t.required},"*"),E.createElement("span",{className:_t.title},"\u5206\u503C\uFF1A"),E.createElement(de.Z,{precision:1,min:1,max:100,className:_t.baseFormItem,style:{width:176},value:(tt=Lr.find(nt=>nt.id===li.id))==null?void 0:tt.score,onChange:nt=>{Lr.find(Qt=>Qt.id===li.id).score=nt,ia([...Lr])}})))}),E.createElement("div",{style:{clear:"both"}}))};return E.createElement("section",{className:_t.wrap},E.createElement(Ye.Z,{style:{paddingRight:10},className:_t.titleHtml,value:`${dr==null?void 0:dr.position}\u3001${dr==null?void 0:dr.name}`}),E.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},E.createElement("span",{className:_t.required},"*"),E.createElement("span",{className:_t.title},"\u5173\u5361")),Xi(dr))};var Ur=(0,Ne.connect)(({loading:jt,globalSetting:dn})=>({globalSetting:dn,loading:jt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Fr)),ai=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,ci=(jt,dn)=>{var Mn={};for(var ur in jt)ei.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&ai)for(var ur of ai(jt))dn.indexOf(ur)<0&&Mi.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const Qn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Or=(jt,dn)=>{var Mn=jt,{editData:ur,globalSetting:Qi,loading:dr,dispatch:ii,onRef:si=()=>{},isEdit:ki}=Mn,Yi=ci(Mn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Lr,ia]=(0,E.useState)([]),[Ha,ro]=(0,E.useState)(),[Xi,Wa]=(0,E.useState)([]),[_i,jr]=(0,E.useState)(""),[li,va]=(0,E.useState)("");(0,E.useEffect)(()=>{ia(["","","",""])},[]),(0,E.useEffect)(()=>{if(!ur||!ki)return;jr(ur==null?void 0:ur.name),va(ur==null?void 0:ur.analysis),ia(ur==null?void 0:ur.choices.map(Kt=>Kt.choice_text));const Qt=[];ur==null||ur.choices.map((Kt,Bn)=>{Kt.is_answer&&Qt.push(Bn)}),Wa(Qt)},[ur]),(0,E.useImperativeHandle)(dn,()=>({onSave:tt,Clear:nt}));const tt=()=>{if(!_i)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Qt=Lr.findIndex(Bn=>!Bn);if(Qt>-1)return Se.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Qn[Qt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Xi.length)return Se.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Xi.length<2)return Se.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const Kt=Lr.map((Bn,Gn)=>({choice_text:Bn,is_answer:Xi.includes(Gn)?1:0}));return{name:_i,choices:Kt,analysis:li}},nt=()=>{ia(["","","",""]),jr(""),va(""),Wa("")};return E.createElement("section",{className:_t.wrap},E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.required},"*"),E.createElement("span",{className:_t.title},"\u9898\u5E72\uFF1A")),E.createElement(Vn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:_i,onChange:Qt=>jr(Qt)}),E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.required},"*"),E.createElement("span",{className:_t.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:_t.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Lr.map((Qt,Kt)=>E.createElement("div",{className:_t.choiceWrap,key:Kt},E.createElement(Te.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${_t.answer} ${Xi.includes(Kt)?_t.activeAnswer:""}`,onClick:()=>{Xi.includes(Kt)?Wa(Xi.filter(Bn=>Bn!==Kt)):Wa([...Xi,Kt])}},Qn[Kt])),E.createElement("div",{className:_t.editorWrap},Ha===Kt?E.createElement(Vn.Z,{id:`single-question-option-${Kt}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Qt,onChange:Bn=>{Lr[Kt]=Bn,ia(Lr)}}):E.createElement("div",{className:_t.htmlWrap,onClick:()=>ro(Kt)},E.createElement(Ye.Z,{value:Qt}))),Kt>1&&E.createElement(Te.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${_t.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{ia(Lr.filter((Bn,Gn)=>Gn!==Kt)),Xi.includes(Kt)?Wa(Xi.filter(Bn=>Bn!==Kt)):Wa([...Xi,Kt])}})),Kt<7&&Kt===Lr.length-1&&E.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${_t.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>ia([...Lr,""])})))),E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),E.createElement(Vn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:li,onChange:Qt=>va(Qt)}))};var Hr=(0,Ne.connect)(({loading:jt,globalSetting:dn})=>({globalSetting:dn,loading:jt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Or)),vi=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,$n=(jt,dn)=>{var Mn={};for(var ur in jt)Zi.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&vi)for(var ur of vi(jt))dn.indexOf(ur)<0&&$t.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const mn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Yn=(jt,dn)=>{var Mn=jt,{editData:ur,globalSetting:Qi,loading:dr,dispatch:ii,onRef:si=()=>{},isEdit:ki}=Mn,Yi=$n(Mn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Lr,ia]=(0,E.useState)([]),[Ha,ro]=(0,E.useState)(),[Xi,Wa]=(0,E.useState)(),[_i,jr]=(0,E.useState)(""),[li,va]=(0,E.useState)("");(0,E.useEffect)(()=>{ia(["","","",""])},[]),(0,E.useEffect)(()=>{if(!ur||!ki)return;const Qt=[],Kt=[];ur==null||ur.choices.forEach((Bn,Gn)=>{Qt.push(Bn.choice_text),Bn.is_answer&&Kt.push(Gn)}),jr(ur==null?void 0:ur.name),va(ur==null?void 0:ur.analysis),ia(Qt),Wa(Kt)},[ur]),(0,E.useImperativeHandle)(dn,()=>({onSave:tt,Clear:nt}));const tt=()=>{if(!_i)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Qt=Lr.findIndex(Bn=>!Bn);if(Qt>-1)return Se.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${mn[Qt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(Xi))return Se.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const Kt=Lr.map((Bn,Gn)=>({choice_text:Bn,is_answer:Xi.includes(Gn)?1:0}));return{name:_i,choices:Kt,analysis:li}},nt=()=>{ia(["","","",""]),jr(""),va(""),Wa("")};return E.createElement("section",{className:_t.wrap},E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.required},"*"),E.createElement("span",{className:_t.title},"\u9898\u5E72\uFF1A")),E.createElement(Vn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:_i,onChange:Qt=>jr(Qt)}),E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.required},"*"),E.createElement("span",{className:_t.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:_t.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Lr.map((Qt,Kt)=>E.createElement("div",{className:_t.choiceWrap,key:Kt},E.createElement(Te.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${_t.answer} ${Xi!=null&&Xi.includes(Kt)?_t.activeAnswer:""}`,onClick:()=>Wa([Kt])},mn[Kt])),E.createElement("div",{className:_t.editorWrap},Ha===Kt?E.createElement(Vn.Z,{id:`single-question-option-${Kt}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Qt,onChange:Bn=>{Lr[Kt]=Bn,ia(Lr)}}):E.createElement("div",{className:_t.htmlWrap,onClick:()=>ro(Kt)},E.createElement(Ye.Z,{value:Qt}))),Kt>1&&E.createElement(Te.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${_t.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{ia(Lr.filter((Bn,Gn)=>Gn!==Kt)),Kt===Xi&&Wa(null)}})),Kt<7&&Kt===Lr.length-1&&E.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${_t.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>ia([...Lr,""])})))),E.createElement("p",{className:_t.titleWrap},E.createElement("span",{className:_t.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),E.createElement(Vn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:li,onChange:Qt=>va(Qt)}))};var Dr=(0,Ne.connect)(({loading:jt,globalSetting:dn})=>({globalSetting:dn,loading:jt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Yn)),hi=te(66309),oi=te(47897),Vr=te(17663),Ct=te(67294),hn=Object.defineProperty,An=Object.defineProperties,jn=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,Dn=(jt,dn,Mn)=>dn in jt?hn(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,rr=(jt,dn)=>{for(var Mn in dn||(dn={}))on.call(dn,Mn)&&Dn(jt,Mn,dn[Mn]);if(Bt)for(var Mn of Bt(dn))Kn.call(dn,Mn)&&Dn(jt,Mn,dn[Mn]);return jt},er=(jt,dn)=>An(jt,jn(dn)),Gr=(jt,dn)=>{var Mn={};for(var ur in jt)on.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&Bt)for(var ur of Bt(jt))dn.indexOf(ur)<0&&Kn.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn},ra=(jt,dn,Mn)=>new Promise((ur,Qi)=>{var dr=ki=>{try{si(Mn.next(ki))}catch(Yi){Qi(Yi)}},ii=ki=>{try{si(Mn.throw(ki))}catch(Yi){Qi(Yi)}},si=ki=>ki.done?ur(ki.value):Promise.resolve(ki.value).then(dr,ii);si((Mn=Mn.apply(jt,dn)).next())});const Oi=jt=>{if(!jt)return!1;if(/^s*$/.test(jt)||jt.trim()===""){Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let dn=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return jt==="|"?(Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},bi=({value:jt=[],onClose:dn})=>Ct.createElement(hi.Z,{closable:!0,onClose:dn,className:_t.keywordTag},Ct.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},jt.join(" \u6216 "))),Ji=(jt,dn)=>{var Mn=jt,{editData:ur,globalSetting:Qi,loading:dr,dispatch:ii,onRef:si=()=>{},isEdit:ki}=Mn,Yi=Gr(Mn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Lr,ia]=(0,E.useState)(""),[Ha,ro]=(0,E.useState)(""),[Xi,Wa]=(0,E.useState)(""),[_i,jr]=(0,E.useState)(""),[li]=Ie.default.useForm(),va=Ie.default.useWatch("use_keywords",li);(0,E.useEffect)(()=>{var Kt;!ur||!ki||(ia(ur==null?void 0:ur.name),ro(ur==null?void 0:ur.analysis),Wa((Kt=ur==null?void 0:ur.answer_texts)==null?void 0:Kt[0]),li.setFieldsValue(rr({},ur)))},[ur]),(0,E.useImperativeHandle)(dn,()=>({onSave:tt,Clear:nt}));const tt=()=>ra(void 0,null,function*(){if(!Lr)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield li.validateFields()}catch(Bn){Se.ZP.error(Bn.errorFields[0].errors[0]);return}const Kt=li.getFieldsValue();return console.log(Kt,"values"),rr({name:Lr,answer_texts:[Xi],analysis:Ha},Kt)}),nt=()=>{ia(""),ro(""),Wa(""),li.resetFields()},Qt=ur==null?void 0:ur.score;return Ct.createElement("section",{className:_t.wrap},Ct.createElement("p",{className:_t.titleWrap},Ct.createElement("span",{className:_t.required},"*"),Ct.createElement("span",{className:_t.title},"\u9898\u5E72\uFF1A")),Ct.createElement(Vn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Lr,onChange:Kt=>ia(Kt)}),Ct.createElement("p",{className:_t.titleWrap},Ct.createElement("span",{className:_t.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),Ct.createElement(Vn.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Xi,onChange:Kt=>Wa(Kt)}),Ct.createElement("p",{className:_t.titleWrap},Ct.createElement("span",{className:_t.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Ct.createElement(Vn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Ha,onChange:Kt=>ro(Kt)}),Ct.createElement(Ie.default,{form:li,size:"large",onFinishFailed:Kt=>ra(void 0,null,function*(){var Bn,Gn;Se.ZP.error(Kt.errorFields[0].errors[0]),li.scrollToField((Gn=(Bn=Kt==null?void 0:Kt.errorFields)==null?void 0:Bn[0])==null?void 0:Gn.name,{behavior:"smooth",block:"center"})})},Ct.createElement(Pe.Z,{align:"middle",className:"mb30 mt20"},Ct.createElement(Ie.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},Ct.createElement(oi.Z,null)),Ct.createElement(Ue.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Ct.createElement(Ue.Z,null,Ct.createElement(Te.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Ct.createElement(Vr.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),va&&Ct.createElement(Ie.default.List,{name:"keywords",rules:[{validator(Kt,Bn){return Bn!=null&&Bn.length?(Bn==null?void 0:Bn.reduce((_n,Pr)=>_n+Pr.score,0))>parseFloat(Qt)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(Kt,{add:Bn,remove:Gn})=>Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),Ct.createElement(Pe.Z,{align:"middle",className:"font14 mb30"},Ct.createElement(Ue.Z,{flex:1},Ct.createElement(pe.default,{value:_i,onChange:_n=>{jr(_n.target.value)},maxLength:50,allowClear:!0,onPressEnter:_n=>{var Pr,Kr,Er,ta;const zi=`${(Pr=_n.target)==null?void 0:Pr.value}`,ji=(Er=(Kr=zi==null?void 0:zi.split("|"))==null?void 0:Kr.filter(Hi=>!!Hi))==null?void 0:Er.map(Hi=>Hi==null?void 0:Hi.trim()),Li=li.getFieldValue("keywords"),ea=((ta=Li==null?void 0:Li.map(Hi=>Hi==null?void 0:Hi.keyword))==null?void 0:ta.flat())||[];for(const Hi of ji)if(ea.includes(Hi)){Se.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Oi(zi)&&(Bn({keyword:ji,score:1}),jr(""))},className:_t.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Ct.createElement(Ue.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Kt.map(_n=>{var Pr=_n,{key:Kr,name:Er}=Pr,ta=Gr(Pr,["key","name"]);return Ct.createElement(Pe.Z,{key:Kr,style:{marginRight:148}},Ct.createElement(Ue.Z,{flex:1},Ct.createElement(Pe.Z,{align:"middle",justify:"space-between"},Ct.createElement(Ie.default.Item,er(rr({},ta),{name:[Er,"keyword"]}),Ct.createElement(bi,{onClose:()=>Gn(Er)})),Ct.createElement(Ie.default.Item,er(rr({},ta),{name:[Er,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Ct.createElement(de.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var Ti=(0,Ne.connect)(({loading:jt,globalSetting:dn})=>({globalSetting:dn,loading:jt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Ji)),ua=te(47221),br={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},Di=te(40043),ni=te(24018),No=Object.defineProperty,xa=Object.defineProperties,za=Object.getOwnPropertyDescriptors,Lo=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable,gi=(jt,dn,Mn)=>dn in jt?No(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,Cl=(jt,dn)=>{for(var Mn in dn||(dn={}))Ea.call(dn,Mn)&&gi(jt,Mn,dn[Mn]);if(Lo)for(var Mn of Lo(dn))zo.call(dn,Mn)&&gi(jt,Mn,dn[Mn]);return jt},pl=(jt,dn)=>xa(jt,za(dn)),jl=(jt,dn)=>{var Mn={};for(var ur in jt)Ea.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&Lo)for(var ur of Lo(jt))dn.indexOf(ur)<0&&zo.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const Ko=jt=>{var dn=jt,{value:Mn,onChange:ur,scrollId:Qi}=dn,dr=jl(dn,["value","onChange","scrollId"]);return E.createElement("div",{id:Qi||""},E.createElement(Vn.Z,pl(Cl({},dr),{defaultValue:Mn,onChange:(ii,si)=>{si!=null&&si.length?ur(ii,si):ur(ii)}})))},Do=({value:jt,onChange:dn,placeholder:Mn,height:ur=140,isEdit:Qi})=>Qi?E.createElement(Vn.Z,{watch:!0,isFocus:!0,height:ur,placeholder:Mn,defaultValue:jt,onChange:dn}):E.createElement("div",{style:{cursor:"pointer"}},jt?E.createElement(Ye.Z,{className:br.inputBorder,value:jt}):E.createElement("div",{className:`${br.inputBorder} ${br.placeholder}`},Mn));var Na=te(67294),ml=Object.defineProperty,nl=Object.defineProperties,Sl=Object.getOwnPropertyDescriptors,Rl=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,Vl=(jt,dn,Mn)=>dn in jt?ml(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,_l=(jt,dn)=>{for(var Mn in dn||(dn={}))Ll.call(dn,Mn)&&Vl(jt,Mn,dn[Mn]);if(Rl)for(var Mn of Rl(dn))wl.call(dn,Mn)&&Vl(jt,Mn,dn[Mn]);return jt},Fl=(jt,dn)=>nl(jt,Sl(dn)),Vo=(jt,dn)=>{var Mn={};for(var ur in jt)Ll.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&Rl)for(var ur of Rl(jt))dn.indexOf(ur)<0&&wl.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const Wn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Nn=({value:jt,onChange:dn,choiceTextKey:Mn,answerKey:ur,index:Qi,isEdit:dr,setInputActive:ii,form:si,choiceOptionsPath:ki,allowChangeMode:Yi,showAddIcon:Lr,addItem:ia,deleteItem:Ha})=>{const ro=(jt==null?void 0:jt[ur])===!0,Xi=()=>{const _i=si.getFieldValue(ki);si.setFieldValue(ki,_i.map(jr=>Fl(_l({},jr),{[ur]:!1})))},Wa=()=>{ro?dn(Fl(_l({},jt),{[ur]:!1})):(Yi||Xi(),dn(Fl(_l({},jt),{[ur]:!0})))};return Na.createElement(Pe.Z,{className:br.choiceWrap,align:"middle",wrap:!1},Na.createElement(Ue.Z,{onClick:Wa,className:`${br.choiceIndex} ${ro?br.activeAnswer:""}`},Wn[Qi]),Na.createElement(Ue.Z,{flex:1,className:`${br.editorWrap} ml15`,onClick:ii},Na.createElement(Do,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:dr,value:jt==null?void 0:jt[Mn],onChange:_i=>{dn(Fl(_l({},jt),{[Mn]:_i}))}})),Na.createElement(Ue.Z,{flex:"0 0 auto",className:"ml15"},Na.createElement("div",{onClick:Wa,className:`${br.setAnswerBtn} ${ro?br.activeAnswer:""}`},ro?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Na.createElement(Ue.Z,{className:br.actionWrapper},Na.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Na.createElement(Di.Z,{className:br.addIcon,onClick:ia,style:{visibility:Lr?"visible":"hidden"}})),Na.createElement(Te.Z,{title:"\u5220\u9664"},Na.createElement(ni.Z,{className:br.deleteIcon,onClick:Ha,style:{visibility:Qi>1?"visible":"hidden"}}))))},Ir=({questionTitlePlaceholder:jt,titleKey:dn,choiceKey:Mn,analysisKey:ur,choiceTextKey:Qi,answerKey:dr,choiceOptionsPath:ii,allowChangeMode:si=!0,form:ki,showAnalysis:Yi=!0})=>{const[Lr,ia]=(0,E.useState)(),[Ha,ro]=(0,E.useState)(!1);return Na.createElement("div",{className:br.wrap},Na.createElement("div",{className:br.questionTitleEditorWrap},Na.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:dn,labelCol:{span:24},rules:[{required:!0}]},Na.createElement(Ko,{scrollId:Array.isArray(dn)?dn.join("_"):`${dn}`,watch:!0,height:140,placeholder:jt}))),Na.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Na.createElement(Ie.default.List,{name:Mn,rules:[{validator(Xi,Wa){const _i=Wa.some(li=>li[dr]),jr=Wa.findIndex(li=>{var va;return((va=li[Qi])==null?void 0:va.length)<=0});return jr!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Wn[jr]}\u9009\u9879\u7684\u5185\u5BB9`)):_i?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Xi,{add:Wa,remove:_i})=>Na.createElement("div",{id:Array.isArray(ii)?ii.join("_"):`${ii}`},Xi.map((jr,li)=>{var va=jr,{key:tt,name:nt}=va,Qt=Vo(va,["key","name"]);const Kt=Lr===tt,Bn=()=>{ia(tt)},Gn=li<7&&li===Xi.length-1,_n=()=>Wa({[Qi]:"",[dr]:0}),Pr=()=>_i(nt);return Na.createElement(Ie.default.Item,Fl(_l({},Qt),{key:tt,name:nt,noStyle:!0}),Na.createElement(Nn,{choiceTextKey:Qi,answerKey:dr,index:li,isEdit:Kt,setInputActive:Bn,form:ki,choiceOptionsPath:ii,allowChangeMode:si,showAddIcon:Gn,addItem:_n,deleteItem:Pr}))}),Xi.length<8&&Na.createElement("div",{className:`${br.addBtn} mb30`,onClick:()=>Wa({[Qi]:"",[dr]:0})},"\u6DFB\u52A0\u9009\u9879"))),Yi&&Na.createElement("div",{onClick:()=>ro(!0)},Na.createElement(Ie.default.Item,{name:ur,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Na.createElement(Do,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ha}))))};var Cr=te(67294),Ii=Object.defineProperty,Ma=Object.defineProperties,Ka=Object.getOwnPropertyDescriptors,Ya=Object.getOwnPropertySymbols,$a=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,Go=(jt,dn,Mn)=>dn in jt?Ii(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,Ho=(jt,dn)=>{for(var Mn in dn||(dn={}))$a.call(dn,Mn)&&Go(jt,Mn,dn[Mn]);if(Ya)for(var Mn of Ya(dn))Za.call(dn,Mn)&&Go(jt,Mn,dn[Mn]);return jt},Qo=(jt,dn)=>Ma(jt,Ka(dn)),vr=(jt,dn)=>{var Mn={};for(var ur in jt)$a.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&Ya)for(var ur of Ya(jt))dn.indexOf(ur)<0&&Za.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const Sr=({value:jt,onChange:dn,position:Mn,removeBlank:ur})=>{const Qi=ii=>{Be.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:br.modal,onOk:()=>{const si=[...jt];si.splice(ii,1),si.length===0?ur(Mn-1):dn(si)}})},dr=()=>{const ii=[...jt];ii.push(""),dn(ii)};return Cr.createElement(Pe.Z,{className:"ml20"},Cr.createElement(Ue.Z,{flex:1},jt==null?void 0:jt.map((ii,si)=>Cr.createElement(Pe.Z,{key:`${ii}_${si}`,className:"mb20"},Cr.createElement(pe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:ii,autoSize:{maxRows:3},maxLength:1e3,onBlur:ki=>{const Yi=[...jt],Lr=ki.target.value.trim();Yi[si]=Lr,dn(Yi)}}),Cr.createElement(Te.Z,{title:"\u5220\u9664"},Cr.createElement(ni.Z,{className:br.deleteIcon,style:{marginLeft:15,visibility:Mn===1&&si===0?"hidden":"visible"},onClick:()=>Qi(si)})),Cr.createElement(Te.Z,{title:"\u65B0\u589E\u7B54\u6848"},Cr.createElement(Di.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:si===0?"visible":"hidden"},onClick:()=>{dr()}}))))))},Tr=({value:jt=!0,onChange:dn})=>Cr.createElement(oi.Z,{checked:!jt,onChange:Mn=>{dn(!Mn)}}),Ae="\u2581",it=({questionTitlePlaceholder:jt,form:dn,name:Mn,scoreByBlank:ur="use_blank_score",answerKey:Qi,titleKey:dr="name",analysisKey:ii="analysis",isOrdered:si="is_ordered"})=>{var ki,Yi;const[Lr,ia]=(0,E.useState)(!1),Ha=()=>{const li=dn.getFieldValue(["sub_item_banks",...Qi]);dn.setFieldValue(["sub_item_banks",...Qi],li==null?void 0:li.map((va,tt)=>Qo(Ho({},va),{position:tt+1})))},ro=(0,E.useRef)(),Xi=(li,va)=>{for(let tt=0;tt<li;tt++)ro.current({position:null,answer_text:[""]},va+tt);Ha()},Wa=(0,E.useRef)(),_i=li=>{Wa.current(li),Ha()},jr=(Yi=(ki=dn.getFieldValue("sub_item_banks"))==null?void 0:ki[Qi==null?void 0:Qi[0]])==null?void 0:Yi[Qi==null?void 0:Qi[1]];return Cr.createElement("div",{className:br.wrap},Cr.createElement("div",{className:br.questionTitleEditorWrap},Cr.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:dr,labelCol:{span:24},rules:[{required:!0}]},Cr.createElement(Ko,{scrollId:"name",watch:!0,height:140,placeholder:jt,showNullButton:!0,onAddBlank:()=>{const li=dn.getFieldValue(["sub_item_banks",...Qi]);Xi(1,li==null?void 0:li.length)}}))),Cr.createElement(Ie.default.List,{name:Qi,rules:[{validator(li,va){if((va==null?void 0:va.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const tt of va){const{answer_text:nt}=tt||{};if(nt!=null&&nt.some(Qt=>(Qt==null?void 0:Qt.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(li,{add:va,remove:tt},{errors:nt})=>(ro.current=va,Wa.current=tt,Cr.createElement(Cr.Fragment,null,Cr.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),li.map((Qt,Kt)=>{var Bn=Qt,{key:Gn,name:_n}=Bn,Pr=vr(Bn,["key","name"]);return Cr.createElement(Pe.Z,{key:Gn,align:"top",wrap:!1},Cr.createElement(Ue.Z,{flex:"0 0 auto",className:`${br.blankIndex} pt5`},"\u586B\u7A7A\u9879",Kt+1),Cr.createElement(Ue.Z,{flex:1},Cr.createElement(Pe.Z,{align:"top",justify:"space-between",wrap:!1},Cr.createElement(Ue.Z,{flex:1},Cr.createElement(Ie.default.Item,Qo(Ho({},Pr),{name:[_n,"answer_text"],noStyle:!0}),Cr.createElement(Sr,{removeBlank:_i,position:Kt+1}))),(dn==null?void 0:dn.getFieldValue(["sub_item_banks",...ur]))&&Cr.createElement(Ue.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},Cr.createElement(Ie.default.Item,Qo(Ho({},Pr),{name:[_n,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:br.blankInputNumberWrapper}),Cr.createElement(de.Z,{className:br.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Cr.createElement(Ie.default.Item,Qo(Ho({},Pr),{name:[_n,"position"],noStyle:!0}),Cr.createElement(pe.default,{type:"hidden"}))))})))),Cr.createElement(xe.ZP,{className:"mb20",onClick:()=>Xi(1,jr==null?void 0:jr.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Cr.createElement(Pe.Z,{align:"middle"},Cr.createElement(Ie.default.Item,{name:[Mn,"downcase"],valuePropName:"checked"},Cr.createElement(oi.Z,null)),Cr.createElement(Ue.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Cr.createElement(Pe.Z,{align:"middle"},Cr.createElement(Ie.default.Item,{name:[Mn,"no_space"],valuePropName:"checked"},Cr.createElement(oi.Z,null)),Cr.createElement(Ue.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(jr==null?void 0:jr.length)>1&&Cr.createElement(Pe.Z,{align:"middle",className:(jr==null?void 0:jr.length)>1?"mb30":`${br.hide}`},Cr.createElement(Ie.default.Item,{name:si},Cr.createElement(Tr,null)),Cr.createElement(Ue.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Cr.createElement("div",{onClick:()=>ia(!0)},Cr.createElement(Ie.default.Item,{name:ii,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Cr.createElement(Do,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Lr}))))};var st=Object.defineProperty,yt=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Rn=(jt,dn,Mn)=>dn in jt?st(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,Nr=(jt,dn)=>{for(var Mn in dn||(dn={}))Nt.call(dn,Mn)&&Rn(jt,Mn,dn[Mn]);if(Ft)for(var Mn of Ft(dn))gn.call(dn,Mn)&&Rn(jt,Mn,dn[Mn]);return jt},Wr=(jt,dn)=>yt(jt,wt(dn)),Rr=(jt,dn)=>{var Mn={};for(var ur in jt)Nt.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&Ft)for(var ur of Ft(jt))dn.indexOf(ur)<0&&gn.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const Un={\u6B63\u786E:"T",\u9519\u8BEF:"F"},pr=({value:jt,onChange:dn,form:Mn,choiceKey:ur})=>{const Qi=(jt==null?void 0:jt.is_answer)===!0,dr=jt==null?void 0:jt.choice_text,ii=()=>{var si;const ki=(si=Mn==null?void 0:Mn.getFieldValue(["sub_item_banks",...ur]))==null?void 0:si.map(Yi=>({choice_text:Yi==null?void 0:Yi.choice_text,is_answer:!1}));Mn==null||Mn.setFieldValue(["sub_item_banks",...ur],ki),dn(Wr(Nr({},jt),{is_answer:!0}))};return E.createElement(Pe.Z,{className:br.choiceWrap,align:"middle",wrap:!1},E.createElement(Ue.Z,{onClick:ii,className:`${br.choiceIndex} ${br.judgementIndex} ${Qi?br.activeAnswer:""}`},Un[dr]),E.createElement(Ue.Z,{flex:1,className:`${br.editorWrap} ml15`},E.createElement("div",{className:`${br.inputBorder} ${br.placeholder} ${Qi?br.activeJudgementAnswer:""}`},dr)),E.createElement(Ue.Z,{flex:"0 0 auto",className:"ml15"},E.createElement("div",{onClick:ii,className:`${br.setAnswerBtn} ${Qi?br.activeAnswer:""}`},Qi?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Jn=({questionTitlePlaceholder:jt,choiceKey:dn="choices",form:Mn,titleKey:ur="name",analysisKey:Qi="analysis"})=>{const[dr,ii]=(0,E.useState)(!1);return E.createElement("div",{className:br.wrap},E.createElement("div",{className:br.questionTitleEditorWrap},E.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:ur,labelCol:{span:24},rules:[{required:!0}]},E.createElement(Ko,{scrollId:"name",watch:!0,height:140,placeholder:jt}))),E.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},E.createElement(Ie.default.List,{name:dn,rules:[{validator(si,ki){return ki.some(Lr=>(Lr==null?void 0:Lr.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},si=>E.createElement("div",{id:"choices"},si.map(ki=>{var Yi=ki,{key:Lr,name:ia}=Yi,Ha=Rr(Yi,["key","name"]);return E.createElement(Ie.default.Item,Wr(Nr({},Ha),{key:Lr,name:ia,noStyle:!0}),E.createElement(pr,{form:Mn,choiceKey:dn}))})))),E.createElement("div",{onClick:()=>ii(!0)},E.createElement(Ie.default.Item,{name:Qi,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Do,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:dr}))))};var _r=Object.defineProperty,yi=Object.defineProperties,Yr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,Ci=(jt,dn,Mn)=>dn in jt?_r(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,At=(jt,dn)=>{for(var Mn in dn||(dn={}))ti.call(dn,Mn)&&Ci(jt,Mn,dn[Mn]);if(Xr)for(var Mn of Xr(dn))fi.call(dn,Mn)&&Ci(jt,Mn,dn[Mn]);return jt},vt=(jt,dn)=>yi(jt,Yr(dn)),On=(jt,dn)=>{var Mn={};for(var ur in jt)ti.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&Xr)for(var ur of Xr(jt))dn.indexOf(ur)<0&&fi.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn};const Cn=jt=>{var dn=jt,{value:Mn,onChange:ur}=dn,Qi=On(dn,["value","onChange"]);const dr=ii=>{ur([ii])};return E.createElement(Vn.Z,vt(At({},Qi),{defaultValue:Mn==null?void 0:Mn[0],onChange:dr}))},mr=jt=>{if(!jt)return!1;let dn=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return jt==="|"?(Se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Zr=({value:jt=[],onClose:dn})=>E.createElement(hi.Z,{closable:!0,onClose:dn,className:br.keywordTag},jt==null?void 0:jt.join(" \u6216 ")),Zt=({questionTitlePlaceholder:jt,form:dn,showKeywords:Mn,isMustKeyWords:ur=Mn,titleKey:Qi="name",analysisKey:dr="analysis",answerTexts:ii="answer_texts",keywords:si="keywords",useKeywords:ki="use_keywords",indexs:Yi})=>{const[Lr,ia]=(0,E.useState)(!1),[Ha,ro]=(0,E.useState)(""),Xi=Ie.default.useWatch("sub_item_banks",dn),{use_keywords:Wa,score:_i}=(Xi==null?void 0:Xi[Yi])||{};return console.log(Wa,_i,"itemValues"),E.createElement("div",{className:br.wrap},E.createElement("div",{className:br.questionTitleEditorWrap},E.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:Qi,labelCol:{span:24},rules:[{required:!0}]},E.createElement(Ko,{scrollId:"name",watch:!0,height:140,placeholder:jt}))),E.createElement(Ie.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ii,labelCol:{span:24}},E.createElement(Cn,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Mn&&!ur&&E.createElement(Ie.default.Item,{hidden:!0,name:ki,valuePropName:"checked"},E.createElement(oi.Z,{defaultChecked:!0})),Mn&&ur&&E.createElement(Pe.Z,{align:"middle",className:"mb30"},E.createElement(Ie.default.Item,{name:ki,valuePropName:"checked"},E.createElement(oi.Z,null)),E.createElement(Ue.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(Ue.Z,null,E.createElement(Te.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(Vr.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Wa||!ur)&&E.createElement(Ie.default.List,{name:si,rules:[{validator(jr,li){return ur?li!=null&&li.length?(li==null?void 0:li.reduce((tt,nt)=>tt+nt.score,0))>parseFloat(_i)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(jr,{add:li,remove:va})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${br.title} mb10`},ur?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(Pe.Z,{align:"middle",className:"font14 mb30"},E.createElement(Ue.Z,{flex:1},E.createElement(pe.default,{value:Ha,onChange:tt=>{ro(tt.target.value)},maxLength:50,allowClear:!0,onPressEnter:tt=>{var nt,Qt,Kt,Bn;const Gn=`${(nt=tt.target)==null?void 0:nt.value}`,_n=(Kt=(Qt=Gn==null?void 0:Gn.split("|"))==null?void 0:Qt.filter(Er=>!!Er))==null?void 0:Kt.map(Er=>Er==null?void 0:Er.trim()),Pr=dn.getFieldValue(["sub_item_banks",...si]),Kr=((Bn=Pr==null?void 0:Pr.map(Er=>Er==null?void 0:Er.keyword))==null?void 0:Bn.flat())||[];for(const Er of _n)if(Kr.includes(Er)){Se.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}mr(Gn)&&(li({keyword:_n,score:1}),ro(""))},className:br.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(Ue.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),jr.map(tt=>{var nt=tt,{key:Qt,name:Kt}=nt,Bn=On(nt,["key","name"]);return E.createElement(Pe.Z,{key:Qt,className:"mb20",style:{marginRight:148}},E.createElement(Ue.Z,{flex:1},E.createElement(Pe.Z,{align:"middle",justify:"space-between"},E.createElement(Ie.default.Item,vt(At({},Bn),{name:[Kt,"keyword"]}),E.createElement(Zr,{onClose:()=>va(Kt)})),ur&&E.createElement(Ie.default.Item,vt(At({},Bn),{name:[Kt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:br.blankInputNumberWrapper}),E.createElement(de.Z,{className:br.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>ia(!0)},E.createElement(Ie.default.Item,{name:dr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Do,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Lr}))))};var Ht=te(67294),tn=Object.defineProperty,xn=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,di=(jt,dn,Mn)=>dn in jt?tn(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,Ni=(jt,dn)=>{for(var Mn in dn||(dn={}))lr.call(dn,Mn)&&di(jt,Mn,dn[Mn]);if(wr)for(var Mn of wr(dn))kr.call(dn,Mn)&&di(jt,Mn,dn[Mn]);return jt},Si=(jt,dn)=>xn(jt,fr(dn)),Jr=(jt,dn)=>{var Mn={};for(var ur in jt)lr.call(jt,ur)&&dn.indexOf(ur)<0&&(Mn[ur]=jt[ur]);if(jt!=null&&wr)for(var ur of wr(jt))dn.indexOf(ur)<0&&kr.call(jt,ur)&&(Mn[ur]=jt[ur]);return Mn},Bi=(jt,dn,Mn)=>new Promise((ur,Qi)=>{var dr=ki=>{try{si(Mn.next(ki))}catch(Yi){Qi(Yi)}},ii=ki=>{try{si(Mn.throw(ki))}catch(Yi){Qi(Yi)}},si=ki=>ki.done?ur(ki.value):Promise.resolve(ki.value).then(dr,ii);si((Mn=Mn.apply(jt,dn)).next())});const{Panel:Wi}=ua.default,da=null,Vi=(jt,dn)=>{var Mn=jt,{globalSetting:ur,loading:Qi,dispatch:dr,editData:ii,onRef:si=()=>{},isEdit:ki}=Mn,Yi=Jr(Mn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[Lr,ia]=(0,E.useState)(""),[Ha,ro]=(0,E.useState)([]),[Xi]=Ie.default.useForm();(0,E.useEffect)(()=>{!ii||!ki||(ia(ii==null?void 0:ii.name),ro(ii==null?void 0:ii.sub_item_banks),Xi.setFieldsValue(Ni({},ii)))},[ii]),(0,E.useEffect)(()=>{ro(Xi.getFieldValue("sub_item_banks"))},[Ie.default.useWatch("sub_item_banks",Xi)]),(0,E.useImperativeHandle)(dn,()=>({onSave:Wa,Clear:_i}));const Wa=()=>Bi(void 0,null,function*(){if(!Lr)return Se.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Xi.validateFields()}catch(Qt){return console.log(Qt,"errInfo"),Se.ZP.error(Qt.errorFields[0].errors[0]),!1}const nt=Ha.map(Qt=>Ni({id:Qt.id>1?Qt.id:null},Qt));return{name:Lr,sub_item_banks:nt}}),_i=()=>{ia(""),ro([])},jr={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},li=({value:nt})=>Ht.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},nt),[va,tt]=(0,E.useState)();return Ht.createElement("section",{className:_t.wrap},Ht.createElement("p",{className:_t.titleWrap},Ht.createElement("span",{className:_t.required},"*"),Ht.createElement("span",{className:_t.title},"\u9898\u5E72\uFF1A")),Ht.createElement(Vn.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Lr,onChange:nt=>ia(nt)}),Ht.createElement(Ie.default,{form:Xi,autoComplete:"off"},Ht.createElement(Ie.default.List,{name:"sub_item_banks",rules:[{validator(nt,Qt){return Qt?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(nt,{add:Qt,remove:Kt})=>{const Bn=Xi.getFieldValue("sub_item_banks");return Ht.createElement(Ht.Fragment,null,Ht.createElement(ua.default,{className:nt.length>0?_t.collapseWrapper:"",bordered:!1,expandIcon:({isActive:Gn})=>Ht.createElement("i",{className:`iconfont icon-weizhankai ${Gn?_t.open:_t.close}`,style:{fontSize:14,transition:"all .2s"}})},nt.map((Gn,_n)=>{var Pr=Gn,{key:Kr,name:Er}=Pr,ta=Jr(Pr,["key","name"]),zi,ji,Li,ea,Hi,ka,vo,Fo,Zo,Ao,qo,go;return Ht.createElement(Wi,{className:_t.panel,forceRender:!0,header:Ht.createElement("div",{className:_t.panelHeader},"\u7B2C",_n+1,"\u5C0F\u9898",Ht.createElement("span",null,"\uFF08",jr[(zi=Bn==null?void 0:Bn[Er])==null?void 0:zi.item_type],"\uFF09")),extra:Ht.createElement(Pe.Z,{align:"middle",onClick:Io=>Io.stopPropagation(),style:{display:"flex",alignItems:"center"}},((ji=Bn==null?void 0:Bn[Er])==null?void 0:ji.item_type)=="completion"&&Ht.createElement(Ie.default.Item,Si(Ni({},ta),{name:[Er,"score"],className:_t.blankInputNumberWrapper,style:{marginBottom:0}}),((Li=Bn==null?void 0:Bn[Er])==null?void 0:Li.item_type)=="completion"&&Ht.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",Ht.createElement(li,{value:(ea=Bn==null?void 0:Bn[Er])==null?void 0:ea.score}),"\u5206")),((Hi=Bn==null?void 0:Bn[Er])==null?void 0:Hi.item_type)=="completion"&&Ht.createElement(Ht.Fragment,null,Ht.createElement(cn.ZP.Group,{defaultValue:(ka=Bn==null?void 0:Bn[Er])==null?void 0:ka.use_blank_score,className:_t.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Io=>{var Xo;console.log(Xi.getFieldsValue()),Xi==null||Xi.setFieldValue(["sub_item_banks",Er,"use_blank_score"],(Xo=Io==null?void 0:Io.target)==null?void 0:Xo.value),tt(new Date)}}),Ht.createElement(Te.Z,{overlayInnerStyle:{width:460},title:Ht.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Ht.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Ht.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:Kr},Ht.createElement(Ie.default.Item,Si(Ni({},ta),{name:Er}),(((vo=Bn==null?void 0:Bn[Er])==null?void 0:vo.item_type)=="single"||((Fo=Bn==null?void 0:Bn[Er])==null?void 0:Fo.item_type)=="multiple")&&Ht.createElement(Ir,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Zo=Bn==null?void 0:Bn[Er])==null?void 0:Zo.item_type)!="single",form:Xi,choiceKey:[Er,"choices"],titleKey:[Er,"name"],analysisKey:[Er,"analysis"],choiceOptionsPath:["sub_item_banks",Er,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Ao=Bn==null?void 0:Bn[Er])==null?void 0:Ao.item_type)=="completion"&&Ht.createElement(it,{form:Xi,name:Er,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[Er,"use_blank_score"],titleKey:[Er,"name"],analysisKey:[Er,"analysis"],isOrdered:[Er,"is_ordered"],answerKey:[Er,"standard_answer"],key:va}),((qo=Bn==null?void 0:Bn[Er])==null?void 0:qo.item_type)=="judgement"&&Ht.createElement(Jn,{form:Xi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Er,"name"],analysisKey:[Er,"analysis"],choiceKey:[Er,"choices"]}),((go=Bn==null?void 0:Bn[Er])==null?void 0:go.item_type)=="subjective"&&Ht.createElement(Zt,{showKeywords:!0,form:Xi,titleKey:[Er,"name"],analysisKey:[Er,"analysis"],answerTexts:[Er,"answer_texts"],useKeywords:[Er,"use_keywords"],keywords:[Er,"keywords"],indexs:Er,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Ei=(0,Ne.connect)(({loading:jt,globalSetting:dn})=>({globalSetting:dn,loading:jt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Vi)),ga=te(60580),Ca=te(85546),fo=te(11713),Bo=te(9430),xo={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},Jt=te(64743),rn=te(99678),kn=te(89779),zr=te(9343),Mr=te(26194),tr=te(20670),Ln=({open:jt,onCancel:dn,onOk:Mn})=>{const ur=(0,rn.g)(),[Qi,dr,ii,si]=(0,zr.U)(kn.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[ki,Yi]=(0,E.useState)(!1);(0,E.useEffect)(()=>{jt&&ii({page:1,limit:10,type:0},!0).then(Xi=>{(Xi==null?void 0:Xi.shixuns_count)===0&&Yi(!0)})},[jt]);const[Lr,ia]=(0,E.useState)([]),[Ha,ro]=(0,E.useState)([]);return E.createElement(Be.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:jt,width:948,centered:!0,closable:!0,onCancel:dn,onOk:()=>Mn(Ha),destroyOnClose:!0},E.createElement(Pe.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},E.createElement(Ue.Z,null,E.createElement(Ca.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:ur,onChange:Xi=>{ii({page:1,discipline_id:Xi==null?void 0:Xi[0],sub_discipline_id:Xi==null?void 0:Xi[1]})}}),E.createElement(fo.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:Xi=>ii({page:1,diff:Xi})}),E.createElement(fo.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Xi=>ii({page:1,shixun_publish_status:Xi})})),E.createElement(Jt.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Xi=>{ii({keyword:Xi,page:1})}})),ki?E.createElement("div",null,E.createElement(Mr.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,ot.xg)("/shixuns")})):E.createElement(Bo.default,{loading:dr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Xi,Wa)=>E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("div",{className:Wa!=null&&Wa.high_resources_consume?xo.title:"",title:Xi||"--"},E.createElement(Ye.Z,{key:1,showLines:1,showTextOnly:!0,value:Xi||"--"})),(Wa==null?void 0:Wa.high_resources_consume)&&E.createElement(tr.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Xi,Wa,_i)=>E.createElement("span",null,Xi||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:E.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",E.createElement(Te.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},E.createElement(Vr.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Xi,Wa,_i)=>E.createElement("span",null,Xi||"- -")},{title:"\u64CD\u4F5C",render(Xi,Wa){const{title:_i,challenge_names:jr,author_name:li,identifier:va,author_school_name:tt,study_count:nt}=Wa||{};return E.createElement("div",null,E.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Be.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:E.createElement("div",null,E.createElement(Ye.Z,{value:_i,style:{marginBottom:18}}),E.createElement("div",{className:xo.challengeNameWrapper},jr.map((Qt,Kt)=>E.createElement("div",{className:xo.challengeName,key:Kt},"\u7B2C",(0,ot.EM)(Kt+1),"\u9898\xA0",Qt))),E.createElement(Pe.Z,{className:xo.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},E.createElement(Ue.Z,{className:xo.shixunInfoWrapper},E.createElement("span",null,"\u521B\u5EFA\u8005"),E.createElement("span",{className:xo.shixunInfo},li.split("\u3001")[0]),E.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{className:xo.shixunInfo},tt),E.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:xo.shixunInfo},nt)),E.createElement(xe.ZP,{type:"primary",className:xo.btnToDetail,onClick:()=>(0,ot.xg)(`/shixuns/${va}/challenges?exercise=true`)},E.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Wa==null?void 0:Wa.shixun_tag_num)===1&&E.createElement("a",{target:"_blank",href:`/shixuns/${Wa==null?void 0:Wa.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:si==null?void 0:si.items,rowSelection:{type:"radio",selectedRowKeys:Lr,preserveSelectedRowKeys:!0,getCheckboxProps:Xi=>({disabled:Xi.shixun_tag_num===1}),onChange(Xi,Wa){var _i,jr,li;console.log(Xi),ia(Xi);const va=[];for(const nt of Ha)Xi.includes(nt.id)&&va.push(nt);const tt=va.map(nt=>nt.id);for(const nt of Wa)nt&&Xi.includes(nt.id)&&!tt.includes(nt.id)&&va.push({id:nt.id,difficulty:nt.level,identifier:nt.identifier,name:nt.name,real_name:(_i=nt==null?void 0:nt.author_name)==null?void 0:_i.split("\u3001")[0],school_name:nt.author_school_name,challenge_names:nt.challenge_names,challenges:(jr=nt.challenge_names)==null?void 0:jr.map((Qt,Kt)=>({subject:Qt,id:Kt,score:5})),score:((li=nt.challenge_names)==null?void 0:li.length)*5,study_count:nt.study_count,challenges_count:nt.challenges_count});ro(va)}},pagination:{current:Qi.page,pageSize:Qi.limit,total:si==null?void 0:si.items_count,showTotal:Xi=>E.createElement("span",null,"\u5171\xA0",E.createElement("span",{style:{color:"#165DFF"}},Xi),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Xi,Wa){ii({page:Xi,limit:Wa})},size:"default"},scroll:{y:400}}))},Xn=te(96332),qr=te(93686),Pi=(jt,dn,Mn)=>new Promise((ur,Qi)=>{var dr=ki=>{try{si(Mn.next(ki))}catch(Yi){Qi(Yi)}},ii=ki=>{try{si(Mn.throw(ki))}catch(Yi){Qi(Yi)}},si=ki=>ki.done?ur(ki.value):Promise.resolve(ki.value).then(dr,ii);si((Mn=Mn.apply(jt,dn)).next())}),la=({visible:jt,getdata:dn,onCancel:Mn,onRandomExchange:ur,selectFromProblemSet:Qi,questionParams:dr})=>{const[ii,si]=(0,E.useState)(!1),[ki,Yi]=(0,E.useState)(!1),[Lr,ia]=(0,E.useState)({}),Ha=(0,Ne.useParams)(),[ro,Xi]=(0,E.useState)(),Wa=(_i,jr)=>Pi(void 0,null,function*(){Yi(!0);const li=yield(0,ct.ZP)(`/api/exercises/${Ha.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:dr.id,item_bank_id:_i,shixuns_info:[{id:_i,is_copy:jr!=1,is_use:jr!=1}]}});Yi(!1),li!=null&&li.status||(Se.ZP.info("\u6362\u9898\u6210\u529F"),Mn(),dn())});return E.createElement(Be.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:jt,onCancel:Mn,centered:!0,maskClosable:!0,footer:null},E.createElement(Pe.Z,{justify:"center",className:"pb20"},E.createElement(ga.Z,{onClick:ur},"\u968F\u673A\u66F4\u6362"),(dr==null?void 0:dr.type)!=="PRACTICAL"&&E.createElement(xe.ZP,{style:{marginLeft:24},onClick:Qi},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(dr==null?void 0:dr.type)==="PRACTICAL"&&E.createElement(xe.ZP,{style:{marginLeft:24},onClick:()=>{si(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),E.createElement(Ln,{open:ii,onCancel:()=>si(!1),onOk:_i=>Pi(void 0,null,function*(){if(console.log("----selectedRows",_i,Ha),(_i==null?void 0:_i.length)<=0){Se.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let jr=_i==null?void 0:_i.map(va=>va==null?void 0:va.id),li=yield(0,qr.Tr)({id:[...jr],course_id:Ha.coursesId,type:"shixun"});(li==null?void 0:li.student_count)===0?Wa(jr==null?void 0:jr[0],1):(Xi(jr),ia(li)),si(!1)})}),E.createElement(Xn.Z,{resdata:Lr,type:"shixun",okloading:ki,oktext:(Lr==null?void 0:Lr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:_i=>Pi(void 0,null,function*(){Wa(ro==null?void 0:ro[0],2)})}))},La=te(30351),mo=te(19575),Ui=te(2715),pi=te(48994),ri=te(52810),Xa=Object.defineProperty,ya=Object.defineProperties,to=Object.getOwnPropertyDescriptors,Ba=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,Va=(jt,dn,Mn)=>dn in jt?Xa(jt,dn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):jt[dn]=Mn,qi=(jt,dn)=>{for(var Mn in dn||(dn={}))Ua.call(dn,Mn)&&Va(jt,Mn,dn[Mn]);if(Ba)for(var Mn of Ba(dn))ko.call(dn,Mn)&&Va(jt,Mn,dn[Mn]);return jt},So=(jt,dn)=>ya(jt,to(dn)),Ro=(jt,dn,Mn)=>new Promise((ur,Qi)=>{var dr=ki=>{try{si(Mn.next(ki))}catch(Yi){Qi(Yi)}},ii=ki=>{try{si(Mn.throw(ki))}catch(Yi){Qi(Yi)}},si=ki=>ki.done?ur(ki.value):Promise.resolve(ki.value).then(dr,ii);si((Mn=Mn.apply(jt,dn)).next())}),Al=({data:jt,submit:dn,goBack:Mn,loading:ur,onTypeScore:Qi,editPreview:dr=!1,onSkipExamination:ii,selectValue:si,onExchange:ki,getdata:Yi,handleMarkWrongQuestion:Lr})=>{var ia,Ha,ro,Xi,Wa,_i,jr,li,va,tt,nt;const Qt=(0,E.useRef)(),[Kt,Bn]=(0,E.useState)(null),[Gn,_n]=(0,E.useState)(!1),[Pr,Kr]=(0,E.useState)(!1),Er=(0,E.useRef)(),[ta]=Ie.default.useForm(),zi=(0,Ne.useParams)(),[ji,Li]=(0,E.useState)(!1);(0,E.useEffect)(()=>{_n(!0)},[]),(0,E.useEffect)(()=>{dr||(0,ot.Dk)("\u8BD5\u5377\u9884\u89C8")},[dr]);const ea=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Hi={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},ka={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},vo=gr=>{var Gi;const ho=[];return E.createElement(E.Fragment,null,E.createElement("aside",{className:fe.single},(Gi=gr==null?void 0:gr.choices)==null?void 0:Gi.map((Ga,mi)=>(Ga.is_answer&&ho.push(ri.k4[mi]),E.createElement("ul",{key:mi},E.createElement("li",null,ri.k4[mi],"\u3001"),E.createElement("li",null,E.createElement(Ye.Z,{value:Ga.choice_text})))))),E.createElement("div",{className:fe.analysis},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",ho.join(""),E.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ea[gr.difficulty])),E.createElement("aside",null,E.createElement("span",{className:fe.text},"\u89E3\u6790:"),E.createElement(Ye.Z,{value:gr.analysis?gr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(gr==null?void 0:gr.discipline_name)||"--"}/${gr==null?void 0:gr.sub_discipline_name}`),E.createElement(Te.Z,{title:gr==null?void 0:gr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),gr==null?void 0:gr.tag_discipline_name)))))},Fo=(gr,Gi)=>{var ho;const Ga=(ho=gr==null?void 0:gr.standard_answer)==null?void 0:ho.map((mi,Sa)=>{var wa;return E.createElement("div",{key:Sa},`\u7B54\u6848\uFF08\u586B\u7A7A${mi==null?void 0:mi.position}\uFF09\uFF1A${(wa=mi==null?void 0:mi.answer_text)==null?void 0:wa.join("\u3001")}`)});return E.createElement(E.Fragment,null,E.createElement("div",{className:fe.analysis},E.createElement("div",{style:{display:"flex"}},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),E.createElement("div",null,Ga)),E.createElement("aside",null,E.createElement("span",{className:fe.text},"\u89E3\u6790:"),E.createElement(Ye.Z,{value:gr.analysis?gr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Gi?`${(Gi==null?void 0:Gi.discipline_name)||"--"}/${Gi==null?void 0:Gi.sub_discipline_name}`:`${(gr==null?void 0:gr.discipline_name)||"--"}/${gr==null?void 0:gr.sub_discipline_name}`),E.createElement(Te.Z,{title:Gi?Gi==null?void 0:Gi.tag_discipline_name:gr==null?void 0:gr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Gi?Gi==null?void 0:Gi.tag_discipline_name:gr==null?void 0:gr.tag_discipline_name)))))},Zo=gr=>{var Gi;const ho=(Gi=gr==null?void 0:gr.standard_answer)==null?void 0:Gi.map((Ga,mi)=>E.createElement("div",{key:mi},`\u7B54\u6848\uFF08\u586B\u7A7A${(Ga==null?void 0:Ga.position)||(Ga==null?void 0:Ga.exercise_choice_id)}\uFF09\uFF1A${Ga==null?void 0:Ga.answer_text}`));return E.createElement(E.Fragment,null,E.createElement("div",{className:fe.analysis},E.createElement("div",{style:{display:"flex"}},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),E.createElement("div",null,ho)),E.createElement("aside",null,E.createElement("span",{className:fe.text},"\u89E3\u6790:"),E.createElement(Ye.Z,{value:gr.analysis?gr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(gr==null?void 0:gr.discipline_name)||"--"}/${gr==null?void 0:gr.sub_discipline_name}`),E.createElement(Te.Z,{title:gr==null?void 0:gr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),gr==null?void 0:gr.tag_discipline_name)))))},Ao=(gr,Gi)=>{var ho;return E.createElement("div",{className:fe.analysis},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(ho=gr==null?void 0:gr.answer_texts)==null?void 0:ho[0]),E.createElement("aside",null,E.createElement("span",{className:fe.text},"\u89E3\u6790:"),E.createElement(Ye.Z,{value:gr.analysis?gr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Gi?`${(Gi==null?void 0:Gi.discipline_name)||"--"}/${Gi==null?void 0:Gi.sub_discipline_name}`:`${(gr==null?void 0:gr.discipline_name)||"--"}/${gr==null?void 0:gr.sub_discipline_name}`),E.createElement(Te.Z,{title:Gi?Gi==null?void 0:Gi.tag_discipline_name:gr==null?void 0:gr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Gi?Gi==null?void 0:Gi.tag_discipline_name:gr==null?void 0:gr.tag_discipline_name))))},qo=gr=>{var Gi,ho;return E.createElement("div",{className:fe.analysis},E.createElement("aside",null,E.createElement("span",{className:fe.text},"\u9884\u671F\u8F93\u51FA:"),E.createElement(Ye.Z,{value:(Gi=gr==null?void 0:gr.program_attr)==null?void 0:Gi.description})),E.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((ho=gr==null?void 0:gr.program_attr)==null?void 0:ho.answer_text)||"--"),E.createElement("aside",null,E.createElement("span",{className:fe.text},"\u89E3\u6790:"),E.createElement(Ye.Z,{value:gr.analysis?gr.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(gr==null?void 0:gr.discipline_name)||"--"}/${gr==null?void 0:gr.sub_discipline_name}`),E.createElement(Te.Z,{title:gr==null?void 0:gr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),gr==null?void 0:gr.tag_discipline_name))))},go=(gr,Gi)=>{var ho;return E.createElement("div",null,(ho=gr==null?void 0:gr.sub_item_banks)==null?void 0:ho.map((Ga,mi)=>{var Sa,wa;const Qa=[];return E.createElement(E.Fragment,null,E.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Gi+1+"."+(mi+1),"\uFF08",Hi[Ga.item_type]||ka[Ga.item_type],"\uFF09",Ga.name),(Ga.item_type=="SINGLE"||Ga.item_type=="MULTIPLE"||Ga.item_type=="JUDGMENT"||Ga.item_type=="single"||Ga.item_type=="multiple"||Ga.item_type=="judgement")&&E.createElement(E.Fragment,null,E.createElement("aside",{className:fe.single},(Sa=Ga==null?void 0:Ga.choices)==null?void 0:Sa.map((ca,ba)=>(ca.is_answer&&Qa.push(ri.k4[ba]),E.createElement("ul",{key:ba},E.createElement("li",null,ri.k4[ba],"\u3001"),E.createElement("li",null,E.createElement(Ye.Z,{value:ca.choice_text})))))),E.createElement("div",{className:fe.analysis},E.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Qa.join(""),E.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",ea[Ga.difficulty])),E.createElement("aside",null,E.createElement("span",{className:fe.text},"\u89E3\u6790:"),E.createElement(Ye.Z,{value:Ga.analysis?Ga.analysis:"\u6682\u65E0\u89E3\u6790"})),E.createElement("ul",null,E.createElement("li",null,E.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(gr==null?void 0:gr.discipline_name)||"--"}/${gr==null?void 0:gr.sub_discipline_name}`),E.createElement(Te.Z,{title:gr==null?void 0:gr.tag_discipline_name},E.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},E.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),gr==null?void 0:gr.tag_discipline_name))))),(Ga.item_type=="COMPLETION"||Ga.item_type=="completion")&&Fo(Ga,gr),(Ga.item_type=="SUBJECTIVE"||Ga.item_type=="subjective")&&Ao(Ga,gr),((wa=jt==null?void 0:jt.exam)==null?void 0:wa.exercise_status)===3&&E.createElement("div",{className:"flex gap-20px mt20"},E.createElement(Ui.Z,{state:Ga==null?void 0:Ga.is_wrong,onClick:()=>{Lr==null||Lr({value:So(qi({},Ga),{question_id:Ga==null?void 0:Ga.id,question_score:Ga==null?void 0:Ga.score})})}}),Ga.item_type=="single"&&E.createElement(xe.ZP,{style:{color:"#3061D0"},onClick:()=>{vl({value:Ga})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Io=gr=>{var Gi,ho,Ga;return E.createElement("div",{style:{marginTop:"12px"}},(ho=(Gi=gr==null?void 0:gr.shixun)==null?void 0:Gi.challenges)==null?void 0:ho.map((mi,Sa)=>E.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},E.createElement("div",null,E.createElement("span",{className:"mr5"},"\u7B2C",Sa+1,"\u5173"),E.createElement(Te.Z,{key:Sa,title:mi==null?void 0:mi.challenge_name},E.createElement("span",null,(0,ot.Pq)(mi==null?void 0:mi.challenge_name,44)))),dr&&E.createElement("div",null,"\u5206\u503C\uFF1A",mi.score,"\u5206"))),E.createElement(Ne.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Ga=gr==null?void 0:gr.shixun)==null?void 0:Ga.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),E.createElement("div",{style:{clear:"both"}}))},Xo=gr=>{let Gi=gr.questions_score/gr.questions_count;Be.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:E.createElement("div",{className:fe.modalColumn},E.createElement("div",{className:fe.modalRow,style:{justifyContent:"flex-start"}},E.createElement("sup",{className:fe.sup},"*"),E.createElement("span",null,gr==null?void 0:gr.name,"\uFF1A"),E.createElement(de.Z,{min:0,precision:1,defaultValue:Gi,onChange:ho=>{Gi=ho}}),E.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ro(void 0,null,function*(){var ho;if(!Gi)return Se.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Ga={type:gr==null?void 0:gr.type,score:Gi,scoreTotal:Number((ho=Gi*gr.questions_count)==null?void 0:ho.toFixed(1))};Qi(Ga)})})},Fa=()=>{let gr="";Be.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:E.createElement("div",{className:fe.modalColumn},E.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},E.createElement("img",{style:{marginRight:5},src:Yt.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),E.createElement("div",{className:fe.modalRow,style:{marginTop:20}},E.createElement("sup",{className:fe.sup},"*"),E.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),E.createElement(pe.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:gr,onChange:Gi=>{gr=Gi.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ro(void 0,null,function*(){var Gi;if(!gr)return Se.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const ho=[],Ga=[],mi=[],Sa=[];(Gi=jt==null?void 0:jt.questionList)==null||Gi.forEach(Qa=>{var ca;(ca=Qa.questions)==null||ca.forEach(ba=>{let Ta=Qa.questions_score/Qa.questions_count;Ta=Ta&&Ta.toFixed(1),Qa.type==="COMBINATION"&&mi.push({id:ba.id,sub_item_bank_ids:ba.sub_item_banks.map(Eo=>Eo.id)}),Qa.type==="PRACTICAL"?Sa.push(ba.id):(ho.push(ba.id),Ga.push(Ta))})}),console.log("-----",mi),yield dn({item_bank_ids:ho,item_bank_scores:Ga,name:gr,combination_item_banks:mi,shixun_ids:Sa})})})},_a=(gr,Gi,ho,Ga)=>{var mi;const Sa=`${location.pathname}${location.search}`,wa=(mi=Ga.questions)==null?void 0:mi.map(Qa=>Qa==null?void 0:Qa.id);if(Sa.includes("exercise"))Er.current={id:gr,ids:wa,type:Gi,index:ho},Kr(!0);else{let Qa=Be.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ro(void 0,null,function*(){Qa.update({cancelButtonProps:{disabled:!0}}),yield ki({single_question_id:gr,seleted_item_bank_ids:wa},{type:Gi,index:ho}),Qa.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},no=gr=>{var Gi;const ho=(Gi=gr.questions)==null?void 0:Gi.map(Sa=>Sa==null?void 0:Sa.id),Ga=gr.name;let mi=Be.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Ga}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ro(void 0,null,function*(){mi.update({cancelButtonProps:{disabled:!0}}),yield ki({seleted_item_bank_ids:ho},{type:gr.type}),mi.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Ga}\u8BD5\u9898`)})})},Yo=()=>{let gr=Be.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Ro(void 0,null,function*(){gr.update({cancelButtonProps:{disabled:!0}}),yield ki(),gr.update({cancelButtonProps:{disabled:!1}}),Se.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},Wo=gr=>{console.log(gr,"key"),ii(gr-1)},il=(gr,Gi)=>{var ho,Ga;if(Gi==="SINGLE")return E.createElement(E.Fragment,null,E.createElement(Dr,{ref:Qt,editData:gr,isEdit:!0}),E.createElement(De.Z,null));if(Gi==="MULTIPLE")return E.createElement(E.Fragment,null,E.createElement(Hr,{ref:Qt,editData:gr,isEdit:!0}),E.createElement(De.Z,null));if(Gi==="JUDGMENT")return E.createElement(E.Fragment,null,E.createElement(xr,{ref:Qt,editData:gr,isEdit:!0}),E.createElement(De.Z,null));if(Gi==="COMPLETION")return E.createElement(E.Fragment,null,E.createElement(bn,{ref:Qt,editData:gr,isEdit:!0}),E.createElement(De.Z,null));if(Gi==="SUBJECTIVE")return E.createElement(E.Fragment,null,E.createElement(Ti,{ref:Qt,editData:gr,isEdit:!0}),E.createElement(De.Z,null));if(Gi==="COMBINATION")return E.createElement(E.Fragment,null,E.createElement(Ei,{ref:Qt,editData:gr,isEdit:!0}),E.createElement(De.Z,null));if(Gi==="BPROGRAM")return E.createElement(E.Fragment,null,E.createElement(Ie.default,{form:ta,style:{marginTop:20},onFinishFailed:mi=>{var Sa,wa;mi.errorFields[0].name.includes("standard_answers")?Se.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Se.ZP.error(mi.errorFields[0].errors[0]),ta.scrollToField((wa=(Sa=mi==null?void 0:mi.errorFields)==null?void 0:Sa[0])==null?void 0:wa.name,{behavior:"smooth",block:"center"})},onFinish:mi=>Ro(void 0,null,function*(){var Sa;let wa=So(qi({question_score:gr.score},mi),{question_type:8,hack:So(qi({},mi.hack),{difficult:gr.program_attr.difficult}),hack_codes:So(qi({},mi.hack_codes),{code:mo.Base64.encode((Sa=mi.hack_codes)==null?void 0:Sa.code)})});ji&&(wa.is_cover=1);const Qa=yield(0,ct.ZP)(`/api/exercise_questions/${gr.id}.json`,{method:"put",body:wa});(Qa==null?void 0:Qa.status)===0&&(Se.ZP.success("\u7F16\u8F91\u6210\u529F"),Wo(si+1)),Bn(null)})},E.createElement(La.tc,{form:ta,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(ho=gr==null?void 0:gr.program_attr)==null?void 0:ho.identifier,answerKey:"standard_answers"}),E.createElement(De.Z,null)));if(Gi==="PROGRAM"&&Ne.history.push(`/problems/${(Ga=gr==null?void 0:gr.program_attr)==null?void 0:Ga.identifier}/edit?type=exercises&express_id=${zi.categoryId}&question_id=${gr==null?void 0:gr.id}&score=${gr==null?void 0:gr.score}&callback_url=${location.pathname}&select=${si}&exercise=true`),Gi==="PRACTICAL")return E.createElement(E.Fragment,null,E.createElement(Ur,{ref:Qt,editData:gr,isEdit:!0}),E.createElement(De.Z,null))},el=(gr,Gi)=>Ro(void 0,null,function*(){var ho,Ga,mi,Sa,wa,Qa;const ca=yield(ho=Qt.current)==null?void 0:ho.onSave();if(!ca)return;const ba=oa=>{const Jo=oa.map(ll=>ll.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(Jo).size!==Jo.length},Ta={question_score:Gi.score,analysis:ca.analysis};if(gr==="SINGLE"||gr==="MULTIPLE"||gr==="JUDGMENT"){if(gr!=="JUDGMENT"&&ba(ca==null?void 0:ca.choices)){Se.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const oa=[],Jo=[];Ta.question_type=gr==="JUDGMENT"?2:1,Ta.question_title=ca==null?void 0:ca.name,(Ga=ca==null?void 0:ca.choices)==null||Ga.forEach((Po,ll)=>{oa.push(Po.choice_text),Po!=null&&Po.is_answer&&Jo.push(ll+1)}),Ta.question_choices=oa,Ta.standard_answers=Jo}if(gr==="COMPLETION"){let oa=(mi=ca==null?void 0:ca.standard_answers)==null?void 0:mi.map((ll,Yl)=>Number(ll==null?void 0:ll.score)?null:Yl+1).filter(ll=>ll!==null);if((oa==null?void 0:oa.length)>0)return Se.ZP.warning(`\u7B2C${oa.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let Jo=(Sa=ca==null?void 0:ca.standard_answers)==null?void 0:Sa.reduce((ll,Yl)=>ll+(Number(Yl==null?void 0:Yl.score)||0),0);if(console.log(parseFloat(Jo.toFixed(2)),Ta==null?void 0:Ta.question_score,222),parseFloat(Jo.toFixed(2))!=(Ta==null?void 0:Ta.question_score))return Se.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Ta.is_ordered=ca.is_ordered,Ta.question_title=ca==null?void 0:ca.name,Ta.use_blank_score=ca==null?void 0:ca.use_blank_score,Ta.question_type=3;const Po=[];(wa=ca==null?void 0:ca.standard_answers)==null||wa.forEach((ll,Yl)=>{Po.push({choice_id:ll.position,answer_text:ll.answer_text,score:ll.score})}),Ta.standard_answers=Po,Ta.downcase=ca==null?void 0:ca.downcase,Ta.no_space=ca==null?void 0:ca.no_space}if(gr==="SUBJECTIVE"&&(console.log("editorData"),console.log(ca),Ta.question_title=ca==null?void 0:ca.name,Ta.question_type=4,Ta.answer_texts=ca==null?void 0:ca.answer_texts,Ta.use_keywords=ca==null?void 0:ca.use_keywords,Ta.keywords=ca==null?void 0:ca.keywords),gr==="COMBINATION"){Ta.question_title=ca==null?void 0:ca.name,Ta.question_type=7;try{Ta.sub_questions=(Qa=ca==null?void 0:ca.sub_item_banks)==null?void 0:Qa.map((oa,Jo)=>{var Po,ll,Yl;if((oa==null?void 0:oa.item_type)=="single"||(oa==null?void 0:oa.item_type)=="multiple"){if(ba(oa==null?void 0:oa.choices))throw new Error(`\u7B2C${Jo+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const $l=[],us=[];return(Po=oa==null?void 0:oa.choices)==null||Po.forEach((ds,as)=>{$l.push(ds.choice_text),ds!=null&&ds.is_answer&&us.push(as+1)}),{id:oa.id,question_id:oa.id,question_title:oa.name,difficulty:oa.difficulty,question_type:(oa==null?void 0:oa.item_type)=="single"?0:(oa==null?void 0:oa.item_type)=="multiple"?1:2,question_choices:$l,standard_answers:us,analysis:oa.analysis,question_score:oa==null?void 0:oa.score}}else if((oa==null?void 0:oa.item_type)=="completion"){let $l=(ll=oa==null?void 0:oa.standard_answer)==null?void 0:ll.reduce((ds,as)=>ds+(Number(as==null?void 0:as.score)||0),0);if(parseFloat($l.toFixed(2))!=(oa==null?void 0:oa.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const us=[];return(Yl=oa==null?void 0:oa.standard_answer)==null||Yl.forEach((ds,as)=>{us.push({choice_id:ds.position,answer_text:ds.answer_text,score:ds.score})}),{id:oa.id,question_id:oa.id,is_ordered:oa.is_ordered,question_title:oa.name,difficulty:oa.difficulty,question_type:3,standard_answers:us,use_blank_score:oa.use_blank_score,analysis:oa.analysis,downcase:oa==null?void 0:oa.downcase,no_space:oa==null?void 0:oa.no_space,question_score:oa==null?void 0:oa.score}}else if((oa==null?void 0:oa.item_type)=="subjective")return{id:oa.id,question_id:oa.id,question_title:oa.name,question_type:4,difficulty:oa.difficulty,answer_texts:oa==null?void 0:oa.answer_texts,analysis:oa.analysis,question_score:oa==null?void 0:oa.score,use_keywords:oa.use_keywords,keywords:oa==null?void 0:oa.keywords}})}catch(oa){Se.ZP.warning(oa.message);return}delete Ta.analysis}let Eo=!1;(Gi==null?void 0:Gi.is_my)===1&&(Eo=yield new Promise((Jo,Po)=>{Be.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{Jo(!0)},onCancel:()=>{Jo(!1)}})})),Eo&&(Ta.is_cover=1);const al=gr!=="PRACTICAL"?yield(0,ct.ZP)(`/api/exercise_questions/${Gi.id}.json`,{method:"put",body:Ta}):yield(0,ct.ZP)(`/api/exercise_questions/${Gi.id}/update_shixun_score.json`,{method:"post",body:qi({},ca)});(al==null?void 0:al.status)===0&&(Se.ZP.success("\u7F16\u8F91\u6210\u529F"),Wo(si+1),Bn(null))}),cl=()=>Ro(void 0,null,function*(){(0,Ne.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,ct.ZP)(`/api/exercises/${zi.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield ii(si),Se.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,Ne.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),vl=({value:gr}={})=>{var Gi;const ho=[];let Ga=[];const mi=(Gi=gr==null?void 0:gr.choices)==null?void 0:Gi.map((wa,Qa)=>{var ca;const ba=Qa+1;return wa!=null&&wa.is_answer&&(ho.push(ba),Ga.push(ba)),{value:ba,label:E.createElement(Ye.Z,{className:"c-black font14",value:`${(ca=ri.k4)==null?void 0:ca[Qa]}. ${wa==null?void 0:wa.choice_text}`}),disabled:wa==null?void 0:wa.origin_standard_answer}}),Sa=Be.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:E.createElement(E.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",ho==null?void 0:ho.map(wa=>{var Qa;return(Qa=ri.k4)==null?void 0:Qa[wa-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",E.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",E.createElement("br",null),E.createElement(Xe.default.Group,{className:"flex-col mt20",options:mi,defaultValue:Ga,onChange:wa=>{Ga=wa}})),onOk:()=>Ro(void 0,null,function*(){const wa=yield(0,ct.ZP)(`/api/exercises/${zi.categoryId}/questions/${gr==null?void 0:gr.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Ga}});(wa==null?void 0:wa.status)===0&&(Se.ZP.success("\u4FEE\u6539\u6210\u529F"),Wo(si+1))})})},gl=(ia=jt==null?void 0:jt.questionList)==null?void 0:ia.reduce((gr,Gi)=>gr+Number(Gi.questions_score),0),kl=dr&&((Ha=jt==null?void 0:jt.exam)==null?void 0:Ha.exercise_status)!==1;return E.createElement("section",{className:fe.wrap},E.createElement("div",{id:"id_left_preview",className:fe.left,onMouseEnter:gr=>{const Gi=document.getElementById("id_left_preview");Gi.style.overflowY="auto"},onMouseLeave:gr=>{const Gi=document.getElementById("id_left_preview");Gi.style.overflowY="hidden"}},E.createElement("div",{className:fe.title},E.createElement("div",{className:"body-overflow-initial"},E.createElement("b",null),E.createElement("span",null,"\u7B54\u9898\u5361"))),E.createElement("div",{className:fe.total},E.createElement("div",null,E.createElement("img",{src:kt}),E.createElement("span",null,"\u9898\u6570(\u9053)"),E.createElement("aside",null,jt==null?void 0:jt.all_questions_count)),E.createElement("div",{className:"mr30 ml30"},E.createElement("img",{src:zt}),E.createElement("span",null,"\u603B\u5206(\u5206)"),E.createElement("aside",null,gl&&gl.toFixed(1))),E.createElement("div",null,E.createElement("img",{src:Ee}),E.createElement("span",null,"\u65F6\u957F(\u5206)"),E.createElement("aside",null,((ro=jt==null?void 0:jt.exam)==null?void 0:ro.time)===-1||((Xi=jt==null?void 0:jt.exam)==null?void 0:Xi.time)===null?"\u4E0D\u9650":(Wa=jt==null?void 0:jt.exam)==null?void 0:Wa.time))),(_i=jt==null?void 0:jt.questionList)==null?void 0:_i.map((gr,Gi)=>{var ho;return E.createElement("div",{className:fe.list,key:Gi},E.createElement("div",{className:fe.name},E.createElement("b",null),E.createElement("span",null,gr.name)),E.createElement("aside",null,E.createElement("div",null,"\u5171",E.createElement("span",{className:fe.b},gr.questions_count),"\u9898 ",E.createElement("span",{className:fe.l},"|"),"\u5171",E.createElement("span",{className:fe.r},gr.questions_score),"\u5206"),E.createElement("div",{className:fe.answerSheet},(ho=gr==null?void 0:gr.questions)==null?void 0:ho.map((Ga,mi)=>E.createElement("div",{onClick:()=>{const Sa=`Anchor_${Ga==null?void 0:Ga.id}`;let wa=document.getElementById(Sa);wa&&setTimeout(()=>wa.scrollIntoView({block:"center",behavior:"smooth"}))},key:Ga==null?void 0:Ga.id,className:fe.tag},mi+1)))))})),E.createElement("div",{className:fe.right},E.createElement("div",{className:fe.examName,id:"examName"},E.createElement("div",{className:fe.name},E.createElement(Te.Z,{title:(jr=jt==null?void 0:jt.exam)==null?void 0:jr.name,getPopupContainer:gr=>gr.parentNode},E.createElement("span",{className:fe.t},(li=jt==null?void 0:jt.exam)==null?void 0:li.name))),dr&&((va=jt==null?void 0:jt.exam)==null?void 0:va.exercise_status)===1&&E.createElement(Jt.op,{openLoading:!0,shape:"default",onClick:()=>{Be.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{cl()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!dr&&E.createElement(xe.ZP,{onClick:Yo,type:"primary"},"\u968F\u673A\u66F4\u6362")),E.createElement("div",{className:fe.topWarp},(tt=jt==null?void 0:jt.questionList)==null?void 0:tt.map((gr,Gi)=>{var ho,Ga;return E.createElement(E.Fragment,{key:Gi},E.createElement("div",{className:fe.head,style:Gi===0?{border:0,marginTop:-16}:{}},E.createElement("div",{className:fe.name},E.createElement("b",null),E.createElement("span",null,gr.name)),E.createElement("div",{className:fe.so},"\u5171",E.createElement("span",{className:fe.b},gr.questions_count," "),"\u9898 ",gr.type==="COMBINATION"&&`\uFF08\u5305\u542B${(ho=gr==null?void 0:gr.questions)==null?void 0:ho.map(mi=>{var Sa;return(Sa=mi==null?void 0:mi.sub_item_banks)==null?void 0:Sa.length}).reduce((mi,Sa)=>mi+Sa)}\u5C0F\u9898\uFF09`,E.createElement("span",{className:fe.l},"|"),"\u5171",E.createElement("span",{className:fe.r},gr.questions_score),"\u5206"),!dr&&E.createElement("div",{className:fe.btn},E.createElement(xe.ZP,{onClick:()=>{Xo(gr)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),E.createElement(xe.ZP,{onClick:()=>no(gr),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Ga=gr==null?void 0:gr.questions)==null?void 0:Ga.map((mi,Sa)=>{var wa,Qa,ca,ba;return Kt===(mi==null?void 0:mi.id)?E.createElement("div",{id:`Anchor_${mi==null?void 0:mi.id}`,className:fe.content,style:{padding:0,marginTop:24},key:mi==null?void 0:mi.id},E.createElement("div",{style:{float:"right",marginTop:`${(gr==null?void 0:gr.type)==="PRACTICAL"?"-2px":"-6px"}`}},E.createElement(xe.ZP,{onClick:()=>Bn(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),E.createElement(xe.ZP,{onClick:()=>{el(gr==null?void 0:gr.type,mi)},type:"primary"},"\u4FDD\u5B58")),il(mi,gr.type)):E.createElement("div",{id:`Anchor_${mi==null?void 0:mi.id}`,className:fe.content,key:mi==null?void 0:mi.id},E.createElement("div",{className:fe.titleWrap},(mi==null?void 0:mi.item_type)==="bprogram"?E.createElement(Ye.Z,{style:{paddingRight:10},value:Sa+1+"\u3001"+((wa=mi==null?void 0:mi.program_attr)==null?void 0:wa.description)}):E.createElement(Ye.Z,{style:{paddingRight:10},className:fe.titleHtml,value:Sa+1+`\u3001${(mi==null?void 0:mi.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(mi==null?void 0:mi.name)}),dr&&E.createElement(xe.ZP,{onClick:()=>{var Ta,Eo,al;if(Kt){Se.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}ta.setFieldsValue({standard_answers:mi==null?void 0:mi.standard_answer,hack:qi(qi({},mi),mi==null?void 0:mi.program_attr),hack_codes:So(qi({},mi==null?void 0:mi.program_attr),{code:mo.Base64.decode(((Ta=mi==null?void 0:mi.program_attr)==null?void 0:Ta.code)||"")}),hack_sets:qi({},(Eo=mi==null?void 0:mi.hack_sets)==null?void 0:Eo[0])}),(mi==null?void 0:mi.item_type)=="program"?Ne.history.push(`/problems/newedit/${(al=mi==null?void 0:mi.program_attr)==null?void 0:al.identifier}?type=exercises&express_id=${zi.categoryId}&question_id=${mi==null?void 0:mi.id}&score=${mi==null?void 0:mi.score}&exercise=true&callback_url=/classrooms/${zi.coursesId}/exercise/${zi.categoryId}/detail?random=true`):Bn(mi==null?void 0:mi.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!kl&&E.createElement(xe.ZP,{disabled:kl,className:"ml20",onClick:()=>_a(mi==null?void 0:mi.id,gr.type,Sa,gr),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(mi==null?void 0:mi.item_type)==="bprogram"&&E.createElement(Ye.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:fe.titleHtml,value:mo.Base64.decode(((Qa=mi==null?void 0:mi.program_attr)==null?void 0:Qa.code)||"")}),(gr.type==="SINGLE"||gr.type==="JUDGMENT"||gr.type==="MULTIPLE")&&vo(mi),gr.type==="COMPLETION"&&Fo(mi),gr.type==="SUBJECTIVE"&&Ao(mi),gr.type==="PROGRAM"&&qo(mi),gr.type==="BPROGRAM"&&Zo(mi),gr.type==="COMBINATION"&&go(mi,Sa),gr.type==="PRACTICAL"&&Io(mi),E.createElement(Pe.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((ca=jt==null?void 0:jt.exam)==null?void 0:ca.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(gr.type)&&E.createElement(Ue.Z,null,E.createElement(Ui.Z,{state:mi==null?void 0:mi.is_wrong,onClick:()=>{Lr==null||Lr({value:So(qi({},mi),{question_id:mi==null?void 0:mi.id,question_score:mi==null?void 0:mi.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(gr.type)&&(mi==null?void 0:mi.show_resubmit)&&E.createElement(Ue.Z,null,E.createElement(pi.C,{dataSource:So(qi({},mi),{question_id:mi==null?void 0:mi.id})})),((ba=jt==null?void 0:jt.exam)==null?void 0:ba.exercise_status)===3&&["SINGLE"].includes(gr.type)&&E.createElement(Ue.Z,null,E.createElement(xe.ZP,{style:{color:"#3061D0"},onClick:()=>{vl({value:mi})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),dr?E.createElement(Jt.vr,null,E.createElement(rt.Z,{showTotal:ot.rU,total:(nt=jt==null?void 0:jt.exam)==null?void 0:nt.total_num,pageSize:1,current:si+1,showSizeChanger:!1,onChange:Wo,showQuickJumper:!1,hideOnSinglePage:!1})):E.createElement(Jt.vr,{LeftContent:E.createElement(Jt.op,{onClick:Mn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:E.createElement(Pe.Z,{align:"middle"},E.createElement(qe.Z,{color:"#55575D",overlayClassName:fe.popover,open:Gn,getPopupContainer:gr=>gr==null?void 0:gr.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},E.createElement(Jt.op,{onMouseEnter:()=>_n(!0),onMouseLeave:()=>_n(!1),onClick:()=>Ro(void 0,null,function*(){const gr=Number(gl);[100,120,150].includes(gr)||(yield new Promise((Gi,ho)=>{Be.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:E.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",E.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},gr),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Ro(void 0,null,function*(){Gi("")}),onCancel:()=>{ho()}})})),Fa()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),E.createElement(Jt.op,{shape:"default",type:"primary",onClick:()=>Ro(void 0,null,function*(){const gr=Number(gl);[100,120,150].includes(gr)||(yield new Promise((Gi,ho)=>{Be.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:E.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",E.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},gr),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Ro(void 0,null,function*(){Gi("")}),onCancel:()=>{ho()}})})),dn()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),E.createElement(la,{visible:Pr,questionParams:Er.current,getdata:Yi,onRandomExchange:()=>Ro(void 0,null,function*(){const gr=Er.current;yield ki({single_question_id:gr.id,seleted_item_bank_ids:gr.ids},{type:gr.type,index:gr.index}),Kr(!1)}),selectFromProblemSet:()=>{const gr=Er.current,Gi=`${location.pathname}${location.search}`;Gi.includes("exercise")&&Ne.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${gr.id}&qtype=${gr.type}&exerciseid=${zi.categoryId}&from=${Gi}`)},onCancel:()=>{Kr(!1)}}))}},83292:function(In,Ut,te){"use strict";te.r(Ut),te.d(Ut,{default:function(){return xo}});var E=te(67294),fe={wrapper:"wrapper___KtBVT",breadCrumbWrapper:"breadCrumbWrapper___k9tSB",baseInfo:"baseInfo____j5EY",radioBtnWrapper:"radioBtnWrapper___k9OCh",baseLineHeight:"baseLineHeight___O_QXK",radiogroup:"radiogroup___e2fW6",easy:"easy___WcUAp",medium:"medium___U_o3j",hard:"hard___dAXLS",formWrap:"formWrap___wt5tC",baseFormItem:"baseFormItem___zV64d",cascaderPopup:"cascaderPopup___qm63f",fixedBottom:"fixedBottom___liDZ4",cancelBtn:"cancelBtn___ZV9Mi",confirmBtn:"confirmBtn___DwH6m",previewBtn:"previewBtn___aLYCy",concat:"concat___ZuLMo"},Ie=te(2453),Te=te(22150),xe=te(85673),Be=te(35973),de=te(40950),Se=te(57953),pe=te(69677),De=te(85546),Xe=te(78045),Pe=te(71230),Ue=te(31795),rt=te(71577),qe=te(33170),He=Object.defineProperty,be=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Je=(Jt,rn,kn)=>rn in Jt?He(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,Ze=(Jt,rn)=>{for(var kn in rn||(rn={}))Qe.call(rn,kn)&&Je(Jt,kn,rn[kn]);if(be)for(var kn of be(rn))ht.call(rn,kn)&&Je(Jt,kn,rn[kn]);return Jt},ye=(Jt,rn,kn)=>new Promise((zr,Mr)=>{var tr=Xn=>{try{Ln(kn.next(Xn))}catch(qr){Mr(qr)}},yr=Xn=>{try{Ln(kn.throw(Xn))}catch(qr){Mr(qr)}},Ln=Xn=>Xn.done?zr(Xn.value):Promise.resolve(Xn.value).then(tr,yr);Ln((kn=kn.apply(Jt,rn)).next())});function Ee(Jt){return ye(this,null,function*(){return(0,qe.ZP)(`/api/examination_banks/${Jt}/edit_random_exam_new.json`,{method:"get"})})}function Ye(Jt,rn){return ye(this,null,function*(){return(0,qe.ZP)(`/api/examination_banks/${Jt}/update_random_exam.json`,{method:"post",body:rn})})}function Ne(Jt){return ye(this,null,function*(){return(0,qe.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:Jt})})}function ot(Jt){return ye(this,null,function*(){return(0,qe.ZP)("/api/disciplines.json",{method:"get",params:Jt})})}function ct(Jt){return ye(this,null,function*(){return(0,qe.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:Jt})})}function _e(Jt,rn){return ye(this,null,function*(){return(0,qe.ZP)(`/api/examination_banks/${Jt}/set_item_type_score.json`,{method:"post",body:rn})})}function Me(Jt,rn){return ye(this,null,function*(){return(0,qe.ZP)(`/api/exercises/${Jt}/set_item_type_score.json`,{method:"post",body:rn})})}function pt(Jt,rn){return ye(this,null,function*(){return(0,qe.ZP)(`/api/examination_banks/${Jt}/delete_item_type.json`,{method:"post",body:rn})})}function $e(Jt,rn){return ye(this,null,function*(){return(0,qe.ZP)(`/api/exercises/${Jt}/delete_item_type.json`,{method:"post",body:rn})})}function ft(Jt){return ye(this,null,function*(){return(0,qe.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:Jt})})}function We(Jt){return ye(this,null,function*(){return(0,qe.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:Jt})})}function gt(Jt){return ye(this,null,function*(){return(0,qe.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:Jt})})}function kt(Jt){return ye(this,null,function*(){return(0,qe.ZP)(`/api/exercises/${Jt.categoryId}/edit.json`,{method:"get",params:Ze({},Jt)})})}var xt=(Jt=>(Jt.OnlyFileFolder="1",Jt.OnlyKnowledge="2",Jt.OnlyDifficulty="3",Jt.FileFolderAndDiff="4",Jt.FileFolderAndKnowledge="5",Jt.KnowledgeAndDiff="6",Jt.All="7",Jt.Shixun="8",Jt))(xt||{}),et=te(96486),Fe=Object.defineProperty,Dt=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Yt=(Jt,rn,kn)=>rn in Jt?Fe(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,Vn=(Jt,rn)=>{for(var kn in rn||(rn={}))Et.call(rn,kn)&&Yt(Jt,kn,rn[kn]);if(Xt)for(var kn of Xt(rn))zt.call(rn,kn)&&Yt(Jt,kn,rn[kn]);return Jt},Pn=(Jt,rn)=>Dt(Jt,qt(rn)),_t=(Jt=>(Jt[Jt.FileFolder=1]="FileFolder",Jt[Jt.Difficulty=2]="Difficulty",Jt[Jt.Knowledge=3]="Knowledge",Jt))(_t||{});const pn=(0,E.createContext)(null),sr={[xt.OnlyFileFolder]:[1],[xt.OnlyKnowledge]:[3],[xt.OnlyDifficulty]:[2],[xt.FileFolderAndDiff]:[1,2],[xt.FileFolderAndKnowledge]:[1,3],[xt.KnowledgeAndDiff]:[3,2],[xt.All]:[3,2,1]},Tn=(Jt,rn)=>{if(Jt.length!==rn.length)return!1;for(const kn of rn)if(!Jt.includes(kn))return!1;return!0},Oe=Jt=>{for(const[rn,kn]of Object.entries(sr))if(Tn(Jt,kn))return rn},me={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",COMPLETION:"\u586B\u7A7A\u9898",JUDGMENT:"\u5224\u65AD\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898"},he={1:{label:"\u7B80\u5355",color:"#46B70E"},2:{label:"\u9002\u4E2D",color:"#165DFF"},3:{label:"\u56F0\u96BE",color:"#EE6F1A"}},ge=Jt=>Jt&&parseFloat(Jt.toFixed(1)),ve=(Jt,rn)=>{var kn,zr,Mr;switch(rn.type){case"init":return rn.payload;case"updateBaseInfo":return Pn(Vn({},Jt),{examination_bank:rn.payload});case"deleteQuestionType":{const{item_types:tr}=Jt,yr=tr.filter(Ln=>Ln.item_type!==rn.payload);return Jt.examination_bank.question_count=ge(yr.reduce((Ln,Xn)=>Ln+Xn.item_bank_count,0)),Jt.examination_bank.total_score=ge(yr.reduce((Ln,Xn)=>Ln+Xn.total_score,0)),Pn(Vn({},Jt),{item_types:yr})}case"setQuestionType":{const{item_types:tr=[]}=Jt,yr=tr.map(Xn=>Xn.item_type),Ln=tr.filter(Xn=>rn.payload.includes(Xn.item_type));for(const Xn of rn.payload)yr.includes(Xn)||(Xn==="PRACTICAL"?Ln.push({item_type:Xn,contents:[],item_banks:[],item_bank_count:0,item_bank_num:0,item_type_text:me[Xn],random_rule_type:xt.Shixun,score:0,total_score:0}):Ln.push({item_type:Xn,contents:[],item_bank_count:0,item_type_text:me[Xn],score:0,total_score:0}));return Pn(Vn({},Jt),{item_types:Ln})}case"updateItemTypes":return Pn(Vn({},Jt),{item_types:rn.payload});case"deleteRule":{const tr=(0,et.cloneDeep)(Jt),yr=tr.item_types.find(Xn=>Xn.item_type===rn.payload.itemType),Ln=yr.contents.find(Xn=>Xn.id===rn.payload.id&&Xn.is_share==rn.payload.is_share);return yr.contents=yr.contents.filter(Xn=>Xn!==Ln),((kn=yr.contents)==null?void 0:kn.length)===0&&(yr.random_rule_type=[]),yr.item_bank_count-=Ln==null?void 0:Ln.quanlity,tr.examination_bank.question_count-=Ln==null?void 0:Ln.quanlity,yr.total_score-=(Ln==null?void 0:Ln.quanlity)*yr.score,tr.examination_bank.total_score-=(Ln==null?void 0:Ln.quanlity)*yr.score,yr.total_score=ge(yr.total_score),tr.examination_bank.total_score=ge(tr.examination_bank.total_score),tr.contents=yr.contents,tr}case"changeQuestionNum":{const tr=(0,et.cloneDeep)(Jt),yr=tr.item_types.find(Da=>Da.item_type===rn.payload.itemType),Ln=(zr=yr==null?void 0:yr.contents)==null?void 0:zr.find(Da=>Da.id===rn.payload.id);if(rn.payload.itemType==="PRACTICAL")return rn.payload.num&&(tr.examination_bank.question_count=tr.examination_bank.question_count-yr.item_bank_count+rn.payload.num,tr.examination_bank.total_score=ge(tr.examination_bank.total_score-yr.total_score+rn.payload.num*yr.score)),rn.payload.score&&(tr.examination_bank.total_score=ge(tr.examination_bank.total_score-yr.total_score+rn.payload.num*yr.score)),yr.item_bank_count=rn.payload.num,yr.total_score=ge(yr.item_bank_count*yr.score),tr;tr.examination_bank.question_count=tr.examination_bank.question_count-(Ln==null?void 0:Ln.quanlity)+rn.payload.num;const Xn=yr.contents.find(Da=>Da.id===rn.payload.id&&Da.teacher_group_id===rn.payload.teacher_group_id);Xn.quanlity=rn.payload.num;let qr=0,Pi=0;for(const Da of yr.contents)qr+=Da==null?void 0:Da.quanlity,Pi+=(Da==null?void 0:Da.quanlity)*yr.score;return tr.examination_bank.total_score=ge(tr.examination_bank.total_score-yr.total_score+Pi),yr.item_bank_count=qr,yr.total_score=ge(Pi),tr}case"changeQuestionScore":{const tr=(0,et.cloneDeep)(Jt),yr=tr.item_types.find(Ln=>Ln.item_type===rn.payload.itemType);return yr.score=rn.payload.score,yr.total_score=ge(yr.item_bank_count*yr.score),tr.examination_bank.total_score=ge(tr.item_types.reduce((Ln,Xn)=>Ln+Xn.total_score,0)),tr}case"editRule":{const tr=(0,et.cloneDeep)(Jt),yr=tr.item_types.find(Ln=>Ln.item_type===rn.payload.itemType);return yr.contents=rn.payload.tableData.map(Ln=>Pn(Vn({},Ln),{item_type:rn.payload.itemType,random_rule_type:rn.payload.randomRuleType})),yr.random_rule_type=rn.payload.randomRuleType,yr.item_bank_count=yr.contents.reduce((Ln,Xn)=>Ln+(Xn==null?void 0:Xn.quanlity),0),yr.score=yr.score||1,yr.total_score=ge(yr.item_bank_count*yr.score),tr.examination_bank.question_count=tr.item_types.reduce((Ln,Xn)=>Ln+Xn.item_bank_count,0),tr.examination_bank.total_score=ge(tr.item_types.reduce((Ln,Xn)=>Ln+Xn.total_score,0)),tr}case"addShixun":{const tr=(0,et.cloneDeep)(Jt),yr=tr.item_types.find(Ln=>Ln.item_type==="PRACTICAL");return yr.item_banks=rn.payload.shixunList,tr.examination_bank.question_count=tr.examination_bank.question_count+1,yr.item_bank_num=yr.item_banks.length,yr.item_bank_count=yr.item_bank_count||1,yr.score=yr.score||1,yr.total_score=yr.total_score||yr.score*yr.item_bank_count,tr.examination_bank.total_score=(Mr=tr==null?void 0:tr.item_types)==null?void 0:Mr.map(Ln=>Ln.total_score).reduce((Ln,Xn)=>Ln+Xn),tr}case"deleteShixunQuestion":{const tr=(0,et.cloneDeep)(Jt),yr=tr.item_types.find(Ln=>Ln.item_type==="PRACTICAL");return yr.item_banks=yr.item_banks.filter(Ln=>Ln.id!==rn.payload.shixunId),yr.item_bank_num-=1,yr.item_bank_count>yr.item_bank_num&&(yr.item_bank_count-=1,yr.total_score-=yr.score,yr.total_score=ge(yr.total_score)),tr}}};var se=te(99640),Ke=Object.defineProperty,bt=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,wn=(Jt,rn,kn)=>rn in Jt?Ke(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,Tt=(Jt,rn)=>{for(var kn in rn||(rn={}))bn.call(rn,kn)&&wn(Jt,kn,rn[kn]);if(yn)for(var kn of yn(rn))cn.call(rn,kn)&&wn(Jt,kn,rn[kn]);return Jt},nn=(Jt,rn)=>bt(Jt,Wt(rn)),fn=(Jt,rn,kn)=>new Promise((zr,Mr)=>{var tr=Xn=>{try{Ln(kn.next(Xn))}catch(qr){Mr(qr)}},yr=Xn=>{try{Ln(kn.throw(Xn))}catch(qr){Mr(qr)}},Ln=Xn=>Xn.done?zr(Xn.value):Promise.resolve(Xn.value).then(tr,yr);Ln((kn=kn.apply(Jt,rn)).next())}),an=({courseOptions:Jt,setCurrentKey:rn,loading:kn,form:zr})=>{const{data:Mr,disabled:tr,dispatch:yr}=(0,E.useContext)(pn),Ln=(0,Be.useParams)(),Xn=(0,E.useRef)(!0),[qr,Pi]=(0,E.useState)(!1),Da=(0,E.useMemo)(()=>{var la,La,mo,Ui,pi;if(!Jt.length||!Mr)return;const ri=(la=Mr==null?void 0:Mr.examination_bank)==null?void 0:la.sub_discipline_id,Xa=((La=Mr==null?void 0:Mr.examination_bank)==null?void 0:La.time)===-1?void 0:Xn.current?Ln.id?(mo=Mr==null?void 0:Mr.examination_bank)==null?void 0:mo.time:((Ui=Mr==null?void 0:Mr.examination_bank)==null?void 0:Ui.time)||60:(pi=Mr==null?void 0:Mr.examination_bank)==null?void 0:pi.time;Xn.current=!1;let ya=[];for(const to of Jt)for(const Ba of to.children)Ba.value===ri&&(ya=[to.value,Ba.value]);return nn(Tt({},Mr.examination_bank),{time:Xa,course:ya})},[Mr,Jt]);return(0,E.useEffect)(()=>{zr.setFieldsValue(Tt({},Da))},[Da]),E.createElement(Se.Z,{spinning:kn,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},E.createElement("div",{className:fe.formWrap},E.createElement(Te.default,{form:zr,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:Da||{difficulty:2,time:60},onValuesChange:(la,La)=>{const{course:mo=[]}=La,Ui=nn(Tt({},La),{sub_discipline_id:mo[1]||0});yr({type:"updateBaseInfo",payload:Ui})}},E.createElement(Te.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:fe.baseLineHeight,rules:[{required:!0,validator:(la,La)=>{var mo;return((mo=La==null?void 0:La.replaceAll(" ",""))==null?void 0:mo.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},E.createElement(pe.default,{maxLength:60,className:fe.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),E.createElement(Te.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"course",className:fe.baseLineHeight},E.createElement(De.Z,{className:fe.baseFormItem,disabled:tr,size:"large",allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Jt,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),E.createElement("div",{className:fe.concat},"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",E.createElement("span",{onClick:()=>Pi(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406")),E.createElement(Te.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:fe.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},E.createElement(Xe.ZP.Group,{disabled:tr,className:fe.radiogroup},E.createElement(Xe.ZP.Button,{className:fe.easy,value:1},"\u7B80\u5355"),E.createElement(Xe.ZP.Button,{className:fe.medium,value:2},"\u9002\u4E2D"),E.createElement(Xe.ZP.Button,{className:fe.hard,value:3},"\u56F0\u96BE"))),E.createElement(Te.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:fe.baseLineHeight},E.createElement(Pe.Z,{align:"middle"},E.createElement(Te.default.Item,{name:"time",noStyle:!0},E.createElement(Ue.Z,{className:fe.baseFormItem,min:1,disabled:tr,size:"large",max:9999,style:{width:220},placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),E.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),E.createElement(Te.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exam_notes"},E.createElement(pe.default.TextArea,{rows:6,disabled:tr,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),E.createElement("div",{className:fe.fixedBottom},E.createElement(rt.ZP,{className:`${fe.cancelBtn} mr5`,onClick:()=>{Ln.id||window.location.href.indexOf("randompaper")>-1?Be.history.push("/paperlibrary"):Be.history.push(`/classrooms/${Ln.coursesId}/exercise`)}},"\u53D6\u6D88"),E.createElement(rt.ZP,{className:`${fe.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>fn(void 0,null,function*(){if(yield zr.validateFields(),!Ln.id&&!Ln.coursesId){const la=yield Ne(Mr);la.status===0&&(Be.history.replace(`/randompaper/edit/${la==null?void 0:la.examination_bank_id}?type=settings`),rn("settings"))}else rn("settings")})},"\u4E0B\u4E00\u6B65")),E.createElement(se.Z,{open:qr,onCancel:()=>{Pi(!1)}}))},xr=te(14446),Lt=te(15746),Vt={flex_box_center:"flex_box_center___NXYwj",flex_space_between:"flex_space_between___Oy2UZ",flex_box_vertical_center:"flex_box_vertical_center___ybBar",flex_box_center_end:"flex_box_center_end___yyQPf",flex_box_column:"flex_box_column____kuXY",questionInfo:"questionInfo___U9mnu",label:"label___PP7Ng",content:"content___PUXFl",leftPart:"leftPart___uoQeo",rightPart:"rightPart___mCG7H",dragItem:"dragItem___djmPG",blackText:"blackText___KqEaU",greyText:"greyText___VamKm",iconWrapper:"iconWrapper___o1C0y",contentArea:"contentArea___Fj7D0",dragging:"dragging___mX3Il",hidden:"hidden___KWDLK",dragIcon:"dragIcon___yPuB3",deleteIcon:"deleteIcon___go29y",disabled:"disabled___uSK9k",challengeNameWrapper:"challengeNameWrapper___DFjRy",challengeName:"challengeName___m7v0x",shixunPreviewFooter:"shixunPreviewFooter___iaciG",shixunInfoWrapper:"shixunInfoWrapper___aSihg",shixunInfo:"shixunInfo___WYBm1",btnToDetail:"btnToDetail___WVmtj",fixedBottom:"fixedBottom___oeMSX",cancelBtn:"cancelBtn___ac73V",confirmBtn:"confirmBtn___sYh2O",previewBtn:"previewBtn___c2uQz",setScoreModalTable:"setScoreModalTable___kPddX",title:"title___lP1E2",tipcontent:"tipcontent___tV6uE",name:"name___YLyPW",tip:"tip___FYIzt",info:"info___rSdr9",img:"img___ft7eS"},cr=te(26194),En=te(64743),en=te(84567);const Fr=[{label:"\u5355\u9009\u9898",value:"SINGLE"},{label:"\u591A\u9009\u9898",value:"MULTIPLE"},{label:"\u586B\u7A7A\u9898",value:"COMPLETION"},{label:"\u5224\u65AD\u9898",value:"JUDGMENT"},{label:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{label:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{label:"\u7EC4\u5408\u9898",value:"COMBINATION"},{label:"\u5B9E\u8BAD\u9898",value:"PRACTICAL"},{label:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}];var ai=({open:Jt,onCancel:rn,onOk:kn})=>{const{data:zr,dispatch:Mr}=(0,E.useContext)(pn);(0,E.useEffect)(()=>{if(Jt){const{item_types:Ln}=zr||{};yr(Ln==null?void 0:Ln.map(Xn=>Xn.item_type))}},[Jt,zr]);const[tr,yr]=(0,E.useState)([]);return E.createElement(xr.default,{title:E.createElement("div",null,"\u9898\u578B\u8BBE\u7F6E",E.createElement("span",{className:"c-grey-333",style:{fontSize:14,fontWeight:400}},"\uFF08\u901A\u8FC7\u52FE\u9009\u53EF\u5BF9\u9898\u578B\u8FDB\u884C\u6DFB\u52A0/\u5220\u9664\uFF09")),closable:!0,centered:!0,open:Jt,onCancel:rn,onOk:()=>kn(tr)},E.createElement(en.default.Group,{value:tr,onChange:Ln=>yr(Ln)},E.createElement(Pe.Z,{gutter:[0,20]},Fr.map(Ln=>E.createElement(Lt.Z,{key:Ln.value,span:6},E.createElement(en.default,{value:Ln.value},Ln.label))))))},ei=te(9430),Mi=Object.defineProperty,ci=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Hr=(Jt,rn,kn)=>rn in Jt?Mi(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,vi=(Jt,rn)=>{for(var kn in rn||(rn={}))Qn.call(rn,kn)&&Hr(Jt,kn,rn[kn]);if(ci)for(var kn of ci(rn))Or.call(rn,kn)&&Hr(Jt,kn,rn[kn]);return Jt},$t=({open:Jt,onCancel:rn,onOk:kn})=>{const{data:zr}=(0,E.useContext)(pn),[Mr,tr]=(0,E.useState)();console.log("--xxx-",Mr),(0,E.useEffect)(()=>{Jt&&tr((0,et.cloneDeep)(zr))},[Jt,zr]);const yr=(0,E.useMemo)(()=>{var Ln;let Xn;return Xn=(Ln=Mr==null?void 0:Mr.item_types)==null?void 0:Ln.map(qr=>qr.total_score).reduce((qr,Pi)=>parseFloat(qr)+parseFloat(Pi)),Xn==null?void 0:Xn.toFixed(1)},[Mr]);return Jt?E.createElement(xr.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Jt,width:640,centered:!0,closable:!0,onCancel:rn,onOk:()=>{kn(Mr)}},E.createElement("div",{className:"c-black mb20"},"\u603B\u5206",E.createElement("span",{className:"ml10 c-light-primary"},yr)),E.createElement(ei.default,{columns:[{title:"\u9898\u578B\u540D\u79F0",dataIndex:"item_type_text",width:130},{title:"\u5C0F\u9898\u603B\u6570",dataIndex:"item_bank_count",width:130},{title:"\u9898\u578B\u603B\u5206",dataIndex:"total_score",width:130},{title:"\u64CD\u4F5C",render(Ln,Xn){const{score:qr,item_type:Pi}=Xn;return E.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((Xn==null?void 0:Xn.item_type)==="PRACTICAL","\u9898"),E.createElement(Ue.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(Xn==null?void 0:Xn.item_bank_count)===0,max:100,onChange:Da=>{const la=Mr,La=la.item_types.find(Ui=>Ui.item_type===Pi);La.score=Number(Da);const mo=Da*La.item_bank_count;La.total_score=mo&&Number(mo.toFixed(1)),la.examination_bank.total_score=la.item_types.reduce((Ui,pi)=>Number(Ui)+Number(pi.total_score),0),tr(vi({},la))}}),"\u5206")}}],className:Vt.setScoreModalTable,dataSource:Mr==null?void 0:Mr.item_types,rowKey:"item_type",pagination:!1})):null},$n=te(66368),mn=te(11713),Yn=te(79870),Dr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtFJREFUWEftWL9rU1EYPffFpCCKEEEJVUQHB10qAUHFHwguDg4ORRDq4uDg4CBIJ6GD0D/B3UE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wOjUzeNfLZ141XPdbcpNX4F/ikyqlsA/6bwAAAABJRU5ErkJggg==",Ct={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},hn=te(38244),An=Object.defineProperty,jn=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,rr=(Jt,rn,kn)=>rn in Jt?An(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,er=(Jt,rn)=>{for(var kn in rn||(rn={}))Kn.call(rn,kn)&&rr(Jt,kn,rn[kn]);if(on)for(var kn of on(rn))Dn.call(rn,kn)&&rr(Jt,kn,rn[kn]);return Jt},Gr=(Jt,rn)=>jn(Jt,Bt(rn)),ra=(Jt,rn,kn)=>new Promise((zr,Mr)=>{var tr=Xn=>{try{Ln(kn.next(Xn))}catch(qr){Mr(qr)}},yr=Xn=>{try{Ln(kn.throw(Xn))}catch(qr){Mr(qr)}},Ln=Xn=>Xn.done?zr(Xn.value):Promise.resolve(Xn.value).then(tr,yr);Ln((kn=kn.apply(Jt,rn)).next())});const Oi=(Jt,rn,kn)=>Jt.map(zr=>zr.key===rn?er(er({},zr),kn):zr.children?Gr(er({},zr),{children:Oi(zr.children,rn,kn)}):zr),bi={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},Ji=(Jt,rn,kn)=>Jt.map(zr=>{var Mr;const tr=zr==null?void 0:zr.tag_disciplines.map(Ln=>{const Xn=Ln==null?void 0:Ln.difficulty_count.map(qr=>({label:qr==null?void 0:qr.name,value:bi[qr.name]}));return{title:Oe(rn)===xt.All&&Xn.length>0?E.createElement(Pe.Z,{justify:"space-between"},E.createElement(Lt.Z,null,`${Ln.name}\uFF08${Ln.child_count}\uFF09`),E.createElement(Lt.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}_${Ln.id}`,"diffValue"]},E.createElement(en.default.Group,{style:{columnGap:12},options:Xn})),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}_${Ln.id}`,"diffNum"],initialValue:Ln==null?void 0:Ln.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}_${Ln.id}`,"extra"],initialValue:Gr(er({},zr),{type:kn})},E.createElement("input",{type:"hidden"})))):`${Ln.name}\uFF08${Ln.child_count}\uFF09`,key:`${zr.id}_${Ln.id}`,name:Ln.name,parentName:zr.name,item_banks_count:Ln.child_count,icon:null,isLeaf:!0,checkable:Oe(rn)===xt.FileFolderAndKnowledge,disableCheckbox:Ln.child_count===0}}),yr=zr==null?void 0:zr.difficulty_count.map(Ln=>({label:Ln==null?void 0:Ln.name,value:bi[Ln.name]}));return{title:Oe(rn)===xt.FileFolderAndDiff&&yr.length>0?E.createElement(Pe.Z,{justify:"space-between"},E.createElement(Lt.Z,null,`${zr.name}\uFF08${zr.item_banks_count}\uFF09`),E.createElement(Lt.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}`,"diffValue"]},E.createElement(en.default.Group,{style:{columnGap:12},options:yr})),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}`,"diffNum"],initialValue:zr==null?void 0:zr.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}`,"extra"],initialValue:Gr(er({},zr),{type:kn})},E.createElement("input",{type:"hidden"})))):`${zr.name}\uFF08${zr.item_banks_count}\uFF09`,key:`${zr.id}`,name:zr.name,item_banks_count:zr.item_banks_count,icon:Ln=>Ln.expanded?kn==="0"?E.createElement("img",{src:hi,className:Ct.folderIcon}):E.createElement("img",{src:oi,className:Ct.shareFolderIcon}):kn==="0"?E.createElement("img",{src:Dr,className:Ct.folderIcon}):E.createElement("img",{src:Vr,className:Ct.shareFolderIcon}),isLeaf:!zr.have_child&&!((Mr=zr.tag_disciplines)!=null&&Mr.length),checkable:Oe(rn)===xt.OnlyFileFolder,disableCheckbox:zr.item_banks_count===0,children:zr.children.length?Oe(rn)===xt.All||Oe(rn)===xt.FileFolderAndKnowledge?[...Ji(zr.children,rn,kn),...tr]:Ji(zr.children,rn,kn):[]}}),Ti=(Jt,rn,kn)=>Jt.map(zr=>{var Mr;const tr=zr==null?void 0:zr.tag_disciplines.map(Ln=>{console.log("tagItem:",Ln);const Xn=Ln==null?void 0:Ln.difficulty_count.map(qr=>({label:qr==null?void 0:qr.name,value:bi[qr.name]}));return{title:Oe(rn)===xt.All&&Xn.length>0?E.createElement(Pe.Z,{justify:"space-between"},E.createElement(Lt.Z,null,`${Ln.name}\uFF08${Ln.child_count}\uFF09`),E.createElement(Lt.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}_${Ln.id}`,"diffValue"]},E.createElement(en.default.Group,{style:{columnGap:12},options:Xn})),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}_${Ln.id}`,"diffNum"],initialValue:Ln==null?void 0:Ln.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}_${Ln.id}`,"extra"],initialValue:Gr(er({},zr),{type:kn})},E.createElement("input",{type:"hidden"})))):`${Ln.name}\uFF08${Ln.child_count}\uFF09`,key:`${zr.id}_${Ln.id}`,name:Ln.name,parentName:zr.name,item_banks_count:Ln.child_count,icon:null,isLeaf:!0,checkable:Oe(rn)===xt.FileFolderAndKnowledge,disableCheckbox:Ln.child_count===0}}),yr=zr==null?void 0:zr.difficulty_count.map(Ln=>({label:Ln==null?void 0:Ln.name,value:bi[Ln.name]}));return{title:Oe(rn)===xt.FileFolderAndDiff&&yr.length>0?E.createElement(Pe.Z,{justify:"space-between"},E.createElement(Lt.Z,null,`${zr.name}\uFF08${zr.item_banks_count}\uFF09`),E.createElement(Lt.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}`,"diffValue"]},E.createElement(en.default.Group,{style:{columnGap:12},options:yr})),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}`,"diffNum"],initialValue:zr==null?void 0:zr.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Te.default.Item,{noStyle:!0,name:[`${zr.id}`,"extra"],initialValue:Gr(er({},zr),{type:kn})},E.createElement("input",{type:"hidden"})))):`${zr.name}\uFF08${zr.item_banks_count}\uFF09`,key:`${zr.id}`,name:zr.name,item_banks_count:zr.item_banks_count,icon:Ln=>Ln.expanded?kn==="0"?E.createElement("img",{src:hi,className:Ct.folderIcon}):E.createElement("img",{src:oi,className:Ct.shareFolderIcon}):kn==="0"?E.createElement("img",{src:Dr,className:Ct.folderIcon}):E.createElement("img",{src:Vr,className:Ct.shareFolderIcon}),isLeaf:!zr.have_child&&!((Mr=zr.tag_disciplines)!=null&&Mr.length),checkable:Oe(rn)===xt.OnlyFileFolder,disableCheckbox:zr.item_banks_count===0,children:[...Ti(zr.children,rn,kn),...tr]}});var br=({ruleValue:Jt,defaultData:rn,setSelectData:kn,currentItemType:zr,selectData:Mr})=>{const[tr,yr]=(0,E.useState)("1"),[Ln,Xn]=(0,E.useState)(!0),[qr]=Te.default.useForm(),[Pi,Da]=(0,E.useState)([]),[la,La]=(0,E.useState)("all"),mo=(dr,ii,si)=>{const{checkedNodes:ki}=ii;console.log("type:",si,ki,Mr),si==="0"?(pi(dr),Oe(Jt)===xt.OnlyFileFolder?(kn(Yi=>Gr(er({},Yi),{my:ki.map(Lr=>({id:Lr.key,group_id:Lr.key,group_name:Lr.name,item_bank_num:Lr.item_banks_count,folderType:"0",quanlity:1}))})),Qi(ki.reduce((Yi,Lr)=>Yi+Lr.item_banks_count,0))):(console.log(ki),kn(Yi=>Gr(er({},Yi),{my:ki.map(Lr=>{const[ia,Ha]=Lr.key.split("_");return{id:Lr.key,tag_discipline_name:Lr.name,group_id:ia,tag_discipline_id:Ha,folderType:"0",group_name:Lr.parentName,item_bank_num:Lr.item_banks_count,quanlity:1}})})),Qi(ki.reduce((Yi,Lr)=>Yi+Lr.item_banks_count,0)))):(Xa(dr),Oe(Jt)===xt.OnlyFileFolder?kn(Yi=>(console.log("pre:",Yi),Gr(er({},Yi),{public:ki.map(Lr=>({id:Lr.key==="0"?"00":Lr.key,teacher_group_name:Lr.name,teacher_group_id:Lr.key,folderType:"3",item_bank_num:Lr.item_banks_count,quanlity:1}))}))):kn(Yi=>Gr(er({},Yi),{public:ki.map(Lr=>{const[ia,Ha]=Lr.key.split("_");return{id:Lr.key==="0"?"00":Lr.key,tag_discipline_name:Lr.name,teacher_group_id:ia,tag_discipline_id:Ha,folderType:"3",teacher_group_name:Lr.parentName,item_bank_num:Lr.item_banks_count,quanlity:1}})})),Qi(ki.reduce((Yi,Lr)=>Yi+Lr.item_banks_count,0)))},[Ui,pi]=(0,E.useState)([]),[ri,Xa]=(0,E.useState)([]),[ya,to]=(0,E.useState)([]),[Ba,Ua]=(0,E.useState)([]),[ko,Va]=(0,E.useState)([]),[qi,So]=(0,E.useState)([]),[Ro,fl]=(0,E.useState)(!1),[Al,jt]=(0,E.useState)(!1);function dn(){return ra(this,null,function*(){let dr=yield(0,qe.ZP)("/api/teach_group_shares.json",{method:"get"});dr&&Da(dr==null?void 0:dr.groups)})}(0,E.useEffect)(()=>{dn()},[]);const Mn=dr=>ra(void 0,null,function*(){var ii,si,ki,Yi,Lr,ia,Ha,ro,Xi,Wa,_i,jr;dr.type==="0"?fl(!0):jt(!0);const li=yield(0,hn.ex)(dr);dr.type==="0"?fl(!1):jt(!1),dr.type==="0"?Va(li):So(li);const va=(ii=li.navigation[0])==null?void 0:ii.difficulty_count.map(nt=>({label:nt==null?void 0:nt.name,value:bi[nt.name]})),tt=(si=li.navigation[0])==null?void 0:si.tag_disciplines.map(nt=>{const Qt=nt==null?void 0:nt.difficulty_count.map(Kt=>({label:Kt==null?void 0:Kt.name,value:bi[Kt.name]}));return{title:Oe(Jt)===xt.All&&Qt.length>0?E.createElement(Pe.Z,{justify:"space-between",style:{color:"#232B40"}},E.createElement(Lt.Z,null,`${nt.name}\uFF08${nt.child_count}\uFF09`),E.createElement(Lt.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Te.default.Item,{noStyle:!0,name:[`0_${nt.id}`,"diffValue"]},E.createElement(en.default.Group,{style:{columnGap:12},options:Qt})),E.createElement(Te.default.Item,{noStyle:!0,name:[`0_${nt.id}`,"diffNum"],initialValue:nt==null?void 0:nt.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Te.default.Item,{noStyle:!0,name:[`0_${nt.id}`,"extra"],initialValue:{tag_discipline_name:nt.name,name:"\u6839\u76EE\u5F55",type:dr.type}},E.createElement("input",{type:"hidden"})))):E.createElement("span",{style:{color:"#232B40"}},nt.name,"\uFF08",nt.child_count,"\uFF09"),key:`0_${nt.id}`,name:nt.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:nt.child_count,icon:null,isLeaf:!0,checkable:Oe(Jt)===xt.FileFolderAndKnowledge,disableCheckbox:nt.child_count===0}});if(dr.type==="0"){const nt=Ji(li.data,Jt,"0"),Qt=Ti(li.data,Jt,"0");console.log("normalChildren2:",Qt),to([{title:Oe(Jt)===xt.FileFolderAndDiff?E.createElement(Pe.Z,{justify:"space-between",style:{color:"#232B40"}},E.createElement(Lt.Z,null,`\u6839\u76EE\u5F55\uFF08${(ki=li.navigation[0])==null?void 0:ki.child_count}\uFF09`),E.createElement(Lt.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Te.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},E.createElement(en.default.Group,{style:{columnGap:12},options:va})),E.createElement(Te.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Yi=li.navigation[0])==null?void 0:Yi.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Te.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"0",group_id:"0",name:"\u6839\u76EE\u5F55"}},E.createElement("input",{type:"hidden"})))):E.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(Lr=li.navigation[0])==null?void 0:Lr.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(ia=li.navigation[0])==null?void 0:ia.child_count,disabled:!(((Ha=li.navigation[0])==null?void 0:Ha.child_count)>0),checkable:Oe(Jt)===xt.OnlyFileFolder,icon:Kt=>Kt.expanded?E.createElement("img",{src:hi,className:Ct.folderIcon}):E.createElement("img",{src:Dr,className:Ct.folderIcon}),isLeaf:!1,children:Oe(Jt)===xt.OnlyFileFolder||Oe(Jt)===xt.FileFolderAndDiff?nt:[...Qt,...tt]}])}else{const nt=Ji(li.data,Jt,"3");Ua([{title:Oe(Jt)===xt.FileFolderAndDiff?E.createElement(Pe.Z,{justify:"space-between"},E.createElement(Lt.Z,null,`\u6839\u76EE\u5F55\uFF08${(ro=li.navigation[0])==null?void 0:ro.child_count}\uFF09`),E.createElement(Lt.Z,null,E.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(Te.default.Item,{noStyle:!0,name:["0","diffValue"]},E.createElement(en.default.Group,{style:{columnGap:12},options:va})),E.createElement(Te.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Xi=li.navigation[0])==null?void 0:Xi.difficulty_count},E.createElement("input",{type:"hidden"})),E.createElement(Te.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"3",group_id:"0",name:"\u6839\u76EE\u5F55"}},E.createElement("input",{type:"hidden"})))):E.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(Wa=li.navigation[0])==null?void 0:Wa.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(_i=li.navigation[0])==null?void 0:_i.child_count,checkable:Oe(Jt)===xt.OnlyFileFolder,icon:Qt=>Qt.expanded?E.createElement("img",{src:oi,className:Ct.shareFolderIcon}):E.createElement("img",{src:Vr,className:Ct.shareFolderIcon}),isLeaf:!1,disabled:!(((jr=li.navigation[0])==null?void 0:jr.child_count)>0),children:Oe(Jt)===xt.OnlyFileFolder||Oe(Jt)===xt.FileFolderAndDiff?nt:[...nt,...tt]}])}});(0,E.useEffect)(()=>{tr==="1"?Mn({type:"0",group_id:0,item_type:zr,show_children:!0}):tr==="2"&&Mn({type:"3",except_mine:!0,item_type:zr,show_children:!0,teach_group_id:la==="all"?"":la})},[Jt,tr,la]),(0,E.useEffect)(()=>{var dr,ii,si,ki,Yi,Lr,ia,Ha,ro,Xi,Wa,_i;console.log("selectData-active:",Mr,rn,tr),tr==="1"?(pi((dr=Mr==null?void 0:Mr.my)==null?void 0:dr.map(jr=>jr.id)),Qi(((si=(ii=Mr==null?void 0:Mr.my)==null?void 0:ii.reduce)==null?void 0:si.call(ii,(jr,li)=>jr+li.item_bank_num,0))||0)):tr==="2"&&(Xa((ki=Mr==null?void 0:Mr.public)==null?void 0:ki.map(jr=>jr.id)),Qi(((Lr=(Yi=Mr==null?void 0:Mr.public)==null?void 0:Yi.reduce)==null?void 0:Lr.call(Yi,(jr,li)=>jr+li.item_bank_num,0))||0)),Oe(Jt)===xt.All&&(tr==="1"?(pi((ia=Mr==null?void 0:Mr.my)==null?void 0:ia.map(jr=>jr.id)),Qi((Mr==null?void 0:Mr.filter(jr=>!jr.is_share).reduce((jr,li)=>jr+li.item_bank_num,0))||0),(Ha=Mr==null?void 0:Mr.filter(jr=>!jr.is_share))==null||Ha.forEach(jr=>{const li=qr.getFieldValue([`${jr.group_id||0}_${jr.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",li),li!=null&&li.includes[jr.difficulty]||qr.setFieldValue([`${jr.group_id||0}_${jr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...li,jr.difficulty])))})):tr==="2"&&(Xa((ro=Mr==null?void 0:Mr.public)==null?void 0:ro.map(jr=>jr.id)),Qi((Mr==null?void 0:Mr.filter(jr=>!!jr.is_share).reduce((jr,li)=>jr+li.item_bank_num,0))||0),(Xi=Mr==null?void 0:Mr.filter(jr=>!!jr.is_share))==null||Xi.forEach(jr=>{const li=qr.getFieldValue([`${jr.teacher_group_id||0}_${jr.tag_discipline_id}`,"diffValue"])||[];li!=null&&li.includes[jr.difficulty]||qr.setFieldValue([`${jr.teacher_group_id||0}_${jr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...li,jr.difficulty])))}))),Oe(Jt)===xt.FileFolderAndDiff&&(qr.resetFields(),setTimeout(()=>{kn(Mr)},300),tr==="1"?(Qi((Mr==null?void 0:Mr.filter(jr=>!jr.is_share).reduce((jr,li)=>jr+li.item_bank_num,0))||0),(Wa=Mr==null?void 0:Mr.filter(jr=>!jr.is_share))==null||Wa.forEach(jr=>{const li=qr.getFieldValue([`${jr.group_id}`,"diffValue"])||[];console.log("prev:",li),li!=null&&li.includes[jr.difficulty]||qr.setFieldValue([`${jr.group_id}`,"diffValue"],Array.from(new Set([...li,jr.difficulty])))})):(Qi((Mr==null?void 0:Mr.filter(jr=>!!jr.is_share).reduce((jr,li)=>jr+li.item_bank_num,0))||0),(_i=Mr==null?void 0:Mr.filter(jr=>!!jr.is_share))==null||_i.forEach(jr=>{const li=qr.getFieldValue([`${jr.teacher_group_id}`,"diffValue"])||[];li!=null&&li.includes[jr.difficulty]||qr.setFieldValue([`${jr.teacher_group_id}`,"diffValue"],Array.from(new Set([...li,jr.difficulty])))})))},[tr]),console.log("1111111111:",Ui,ri),(0,E.useEffect)(()=>{setTimeout(()=>{var dr,ii,si,ki,Yi;switch(Oe(Jt)){case xt.OnlyFileFolder:{const Lr=[],ia=[];for(const Ha of Mr.my||[])Lr.push(Ha);for(const Ha of Mr.public||[])ia.push(Ha);pi(Lr.map(Ha=>`${Ha.group_id}`)),Xa(ia.map(Ha=>`${Ha.teacher_group_id}`)),Qi(tr==="1"?Lr.reduce((Ha,ro)=>Ha+ro.item_bank_num,0):ia.reduce((Ha,ro)=>Ha+ro.item_bank_num,0));break}case xt.FileFolderAndKnowledge:{const Lr=[],ia=[];for(const Ha of(Mr==null?void 0:Mr.my)||[])Lr.push(Ha);for(const Ha of(Mr==null?void 0:Mr.public)||[])ia.push(Ha);Qi((dr=tr==="1"?Lr:ia)==null?void 0:dr.reduce((Ha,ro)=>Ha+ro.item_bank_num,0)),pi(Lr.map(Ha=>`${Ha.group_id}_${Ha.tag_discipline_id}`)),Xa(ia.map(Ha=>`${Ha.teacher_group_id}_${Ha.tag_discipline_id}`));break}case xt.All:{tr==="1"?(Qi((Mr==null?void 0:Mr.filter(Lr=>!Lr.is_share).reduce((Lr,ia)=>Lr+ia.item_bank_num,0))||0),(ii=Mr==null?void 0:Mr.filter(Lr=>!Lr.is_share))==null||ii.forEach(Lr=>{const ia=qr.getFieldValue([`${Lr.group_id||0}_${Lr.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ia,Lr.difficulty,Lr),ia!=null&&ia.includes[Lr.difficulty]||qr.setFieldValue([`${Lr.group_id||0}_${Lr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ia,Lr.difficulty])))})):(Qi((Mr==null?void 0:Mr.filter(Lr=>!!Lr.is_share).reduce((Lr,ia)=>Lr+ia.item_bank_num,0))||0),(si=Mr==null?void 0:Mr.filter(Lr=>!!Lr.is_share))==null||si.forEach(Lr=>{const ia=qr.getFieldValue([`${Lr.group_id||0}_${Lr.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ia,Lr.difficulty,Lr),ia!=null&&ia.includes[Lr.difficulty]||qr.setFieldValue([`${Lr.group_id||0}_${Lr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ia,Lr.difficulty])))}));break}case xt.FileFolderAndDiff:{tr==="1"?(Qi((Mr==null?void 0:Mr.filter(Lr=>!Lr.is_share).reduce((Lr,ia)=>Lr+ia.item_bank_num,0))||0),(ki=Mr==null?void 0:Mr.filter(Lr=>!Lr.is_share))==null||ki.forEach(Lr=>{const ia=qr.getFieldValue([`${Lr.group_id}`,"diffValue"])||[];console.log("prev:",ia,Lr.difficulty),ia!=null&&ia.includes[Lr.difficulty]||qr.setFieldValue([`${Lr.group_id}`,"diffValue"],Array.from(new Set([...ia,Lr.difficulty])))})):(Qi((Mr==null?void 0:Mr.filter(Lr=>!!Lr.is_share).reduce((Lr,ia)=>Lr+ia.item_bank_num,0))||0),(Yi=Mr==null?void 0:Mr.filter(Lr=>!!Lr.is_share))==null||Yi.forEach(Lr=>{const ia=qr.getFieldValue([`${Lr.group_id}`,"diffValue"])||[];ia!=null&&ia.includes[Lr.difficulty]||qr.setFieldValue([`${Lr.group_id}`,"diffValue"],Array.from(new Set([...ia,Lr.difficulty])))}));break}}},800)},[rn,Jt,ya,Ba]);const[ur,Qi]=(0,E.useState)(0);return E.createElement(Te.default,{form:qr,onValuesChange:(dr,ii)=>ra(void 0,null,function*(){var si,ki,Yi,Lr;console.log("onValuesChange:",ii,dr);let ia=0;if(Oe(Jt)===xt.FileFolderAndDiff){const Ha=yield qr.getFieldValue(),ro=[],Xi=[];for(const _i of Object.keys(Ha))if((ki=(si=Ha[_i])==null?void 0:si.diffValue)!=null&&ki.length&&_i!=="null"&&_i!==null){const jr=Ha[_i];ro.push(er({id:_i},jr))}const Wa={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};ro.map(_i=>{var jr,li,va,tt,nt;_i.id==0&&(_i.diffNum=tr==="1"?(li=(jr=ko==null?void 0:ko.navigation)==null?void 0:jr[0])==null?void 0:li.difficulty_count:(tt=(va=qi==null?void 0:qi.navigation)==null?void 0:va[0])==null?void 0:tt.difficulty_count),(nt=_i==null?void 0:_i.diffValue)==null||nt.map(Qt=>{var Kt,Bn,Gn,_n,Pr;const Kr={group_name:((Kt=_i.extra)==null?void 0:Kt.name)||"",teacher_group_name:"",id:`${_i.id}_${Qt}`,group_id:_i.id,difficulty:Qt,item_bank_num:(_n=(Gn=(Bn=_i.diffNum)==null?void 0:Bn.filter(Er=>Er.name===Wa[Qt]))==null?void 0:Gn[0])==null?void 0:_n.value};tr==="2"&&(Kr.is_share=!0,Kr.teacher_group_id=_i.id,Kr.teacher_group_name=(Pr=_i.extra)==null?void 0:Pr.name),Xi.push(Kr)})}),ia=Xi.reduce((_i,jr)=>_i+jr.item_bank_num,0),kn([...Xi,...Mr==null?void 0:Mr.filter(_i=>tr==="1"?_i.is_share:!_i.is_share)])}else if(Oe(Jt)===xt.All){const Ha=[];for(const ro of Object.keys(ii)){const{diffNum:Xi=[],diffValue:Wa=[],extra:_i={}}=ii[ro];console.log("---",_i);const[jr,li]=ro.split("_");let va=(Lr=(Yi=_i.tag_disciplines)==null?void 0:Yi.filter(tt=>parseInt(tt.id)===parseInt(li)))==null?void 0:Lr[0];Wa.forEach(tt=>{var nt;const Qt={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Kt=(nt=Xi==null?void 0:Xi.find(Gn=>Gn.name===Qt[tt]))==null?void 0:nt.value,Bn={group_name:"",teacher_group_name:"",tag_discipline_name:(va==null?void 0:va.name)||_i.tag_discipline_name,id:`${ro}_${tt}`,group_id:jr,is_share:!!(va!=null&&va.is_share||(_i==null?void 0:_i.type)==="3"),tag_discipline_id:li,difficulty:tt,item_bank_num:Kt};ia+=Kt,_i.type==="0"?Bn.group_name=_i.name:Bn.teacher_group_name=_i.name,tr==="2"&&(Bn.is_share=!0,Bn.teacher_group_id=_i.id||0,Bn.teacher_group_name=_i.name),Kt>0&&Ha.push(Bn)})}kn([...Ha,...Mr==null?void 0:Mr.filter(ro=>tr==="1"?ro.is_share:!ro.is_share)])}Qi(ia)})},E.createElement($n.default,{destroyInactiveTabPane:!0,activeKey:tr,onChange:dr=>yr(dr),style:{minHeight:260},tabBarExtraContent:{right:tr==="2"&&(Pi==null?void 0:Pi.length)>0&&E.createElement(mn.default,{onChange:dr=>{La(dr)},value:la,style:{width:120}},E.createElement(mn.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),Pi==null?void 0:Pi.map(dr=>E.createElement(mn.default.Option,{key:dr==null?void 0:dr.group_id,value:dr==null?void 0:dr.group_id},dr==null?void 0:dr.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(ya==null?void 0:ya.length)===0?E.createElement(Se.Z,{spinning:Ro},E.createElement(cr.Z,{ButtonTwo:E.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):E.createElement("div",{className:Ct.folderAreaWrapper},E.createElement(Pe.Z,{justify:"space-between",align:"middle",className:Ct.folderAreaHeader},E.createElement("span",null,"\u6587\u4EF6\u5939"),E.createElement("span",{className:"mr20"},"\u5DF2\u9009",E.createElement("span",{style:{color:"#3061D0"}}," ",ur," "),"\u9898")),E.createElement(Se.Z,{spinning:Ro},E.createElement("div",{style:{minHeight:200}},ya.length>0&&E.createElement(Yn.default,{checkable:!0,className:Ct.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(dr,ii)=>mo(dr,ii,"0"),checkedKeys:Ui,checkStrictly:!0,treeData:ya,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))},{key:"2",label:"\u56E2\u961F\u5171\u4EAB",children:(Ba==null?void 0:Ba.length)===0?E.createElement(Se.Z,{spinning:Al},E.createElement(cr.Z,{ButtonTwo:E.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):E.createElement("div",{className:Ct.folderAreaWrapper},E.createElement(Pe.Z,{justify:"space-between",align:"middle",className:Ct.folderAreaHeader},E.createElement("span",null,"\u6587\u4EF6\u5939"),E.createElement("span",{className:"mr20"},"\u5DF2\u9009",E.createElement("span",{style:{color:"#3061D0"}}," ",ur||0," "),"\u9898")),E.createElement(Se.Z,{spinning:Al},E.createElement("div",{style:{minHeight:200}},(Ba==null?void 0:Ba.length)>0&&E.createElement(Yn.default,{checkable:!0,className:Ct.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(dr,ii)=>mo(dr,ii,"3"),checkedKeys:ri,checkStrictly:!0,treeData:Ba,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},Di=te(53430),ni=te(9343),No=Object.defineProperty,xa=Object.defineProperties,za=Object.getOwnPropertyDescriptors,Lo=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable,gi=(Jt,rn,kn)=>rn in Jt?No(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,Cl=(Jt,rn)=>{for(var kn in rn||(rn={}))Ea.call(rn,kn)&&gi(Jt,kn,rn[kn]);if(Lo)for(var kn of Lo(rn))zo.call(rn,kn)&&gi(Jt,kn,rn[kn]);return Jt},pl=(Jt,rn)=>xa(Jt,za(rn)),jl=(Jt,rn,kn)=>new Promise((zr,Mr)=>{var tr=Xn=>{try{Ln(kn.next(Xn))}catch(qr){Mr(qr)}},yr=Xn=>{try{Ln(kn.throw(Xn))}catch(qr){Mr(qr)}},Ln=Xn=>Xn.done?zr(Xn.value):Promise.resolve(Xn.value).then(tr,yr);Ln((kn=kn.apply(Jt,rn)).next())});const Ko={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Na=({ruleValue:Jt,setSelectData:rn,currentItemType:kn,defaultData:zr,isFirst:Mr})=>{const[tr,yr]=(0,E.useState)([]),[Ln,Xn,qr,Pi]=(0,ni.U)(ot,{source:"question",page:1,per_page:10,group_id:0,keyword:"",group_type:0,clazz:"ItemBanksGroup",sub_discipline_id:void 0,item_type:kn,show_children:!0});(0,E.useEffect)(()=>{jl(void 0,null,function*(){const ri=yield qr({},!0);yr((0,Di.L)(ri.disciplines))})},[]),console.log(zr),(0,E.useEffect)(()=>{if(Mr)switch(Oe(Jt)){case xt.OnlyKnowledge:{Ui(zr.map(ri=>ri.tag_discipline_id));break}case xt.KnowledgeAndDiff:{const ri=new Map;zr.forEach(Xa=>{Xa&&(ri.has(Xa.tag_discipline_id)?ri.set(Xa.tag_discipline_id,[...ri.get(Xa.tag_discipline_id),Xa.difficulty]):ri.set(Xa.tag_discipline_id,[Xa.difficulty]))});for(const[Xa,ya]of ri.entries())Da.setFieldValue([Xa,"diff"],ya);break}}},[zr,Jt,Mr]);const[Da]=Te.default.useForm(),la=(0,E.useMemo)(()=>{const ri=[];let Xa="",ya="";const to={};for(const Ba of(Pi==null?void 0:Pi.disciplines)||[]){Xa=Ba.name;for(const Ua of Ba.sub_disciplines){ya=Ua.name;for(const ko of Ua.tag_disciplines){const Va={sub_discipline_name:`${Xa}&${ya}`,sub_discipline_id:Ua.id,tag_discipline_name:ko.name,id:ko.id,item_bank_num:ko.total_count,difficulty_count:ko.difficulty_count,tag_discipline_id:ko.id};ri.push(Va)}}}return ri},[Pi,zr]),La=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(ri,Xa)=>{const{item_bank_num:ya}=Xa;return E.createElement("div",null,ri,`(${ya})`)}},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:Jt.includes(_t.Difficulty),render:(ri,Xa)=>{const{id:ya,difficulty_count:to,total_count:Ba,sub_discipline_name:Ua,tag_discipline_name:ko}=Xa;return E.createElement(E.Fragment,null,E.createElement(Te.default.Item,{name:[ya,"diff"],noStyle:!0},E.createElement(en.default.Group,{style:{columnGap:12},options:to.map(Va=>({label:Va.name,value:Ko[Va.name]}))})),E.createElement(Te.default.Item,{name:[ya,"extra"],initialValue:{difficulty_count:to,total_count:Ba,sub_discipline_name:Ua,tag_discipline_name:ko},noStyle:!0},E.createElement("input",{type:"hidden"})))}}].filter(ri=>ri.show),[mo,Ui]=(0,E.useState)([]),pi=(0,E.useRef)(new Map);return E.createElement("div",{style:{marginTop:12}},E.createElement(Pe.Z,{className:"mb20",align:"middle",gutter:20},E.createElement(Lt.Z,null,E.createElement(De.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",size:"large",style:{width:240},options:tr,onChange:ri=>{qr({sub_discipline_id:ri==null?void 0:ri[1]})}})),E.createElement(Lt.Z,null,E.createElement(En.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:Ln.keyword,onChange:ri=>qr({keyword:ri})}))),E.createElement(Te.default,{form:Da,onValuesChange:(ri,Xa)=>{var ya;console.log(Xa),pi.current.clear();for(const to of Object.keys(Xa)){const Ba={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Ua=Xa[to],{difficulty_count:ko,total_count:Va}=Ua.extra||{};(ya=Ua==null?void 0:Ua.diff)==null||ya.forEach(qi=>{var So;const Ro=(So=ko==null?void 0:ko.find(Al=>Al.name===Ba[qi]))==null?void 0:So.value,fl=pl(Cl({},Ua.extra),{id:`${to}_${qi}`,difficulty:qi,item_bank_num:Ro,tag_discipline_id:to});Ro>0&&pi.current.set(`${to}_${qi}`,fl)})}rn([...pi.current.values()])}},(la==null?void 0:la.length)===0?E.createElement(cr.Z,{ButtonTwo:E.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):E.createElement(ei.default,{rowSelection:Oe(Jt)===xt.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(ri,Xa){console.log("table-selectedRowKeys:",ri,Xa),Ui(ri),rn(Xa)},getCheckboxProps:ri=>({disabled:ri.item_bank_num===0}),selectedRowKeys:mo}:void 0,columns:La,dataSource:la,loading:Xn,scroll:{y:480},rowKey:"id",pagination:!1})))},ml=Object.defineProperty,nl=Object.defineProperties,Sl=Object.getOwnPropertyDescriptors,Rl=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,wl=Object.prototype.propertyIsEnumerable,Vl=(Jt,rn,kn)=>rn in Jt?ml(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,_l=(Jt,rn)=>{for(var kn in rn||(rn={}))Ll.call(rn,kn)&&Vl(Jt,kn,rn[kn]);if(Rl)for(var kn of Rl(rn))wl.call(rn,kn)&&Vl(Jt,kn,rn[kn]);return Jt},Fl=(Jt,rn)=>nl(Jt,Sl(rn)),Vo=(Jt,rn,kn)=>new Promise((zr,Mr)=>{var tr=Xn=>{try{Ln(kn.next(Xn))}catch(qr){Mr(qr)}},yr=Xn=>{try{Ln(kn.throw(Xn))}catch(qr){Mr(qr)}},Ln=Xn=>Xn.done?zr(Xn.value):Promise.resolve(Xn.value).then(tr,yr);Ln((kn=kn.apply(Jt,rn)).next())});const Wn={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Ir=({open:Jt,onCancel:rn,setVisibleModalType:kn,currentItemType:zr})=>{var Mr;const{data:tr,dispatch:yr}=(0,E.useContext)(pn),[Ln,Xn]=(0,E.useState)([]),[qr,Pi]=(0,E.useState)(),Da=(Mr=tr==null?void 0:tr.item_types)==null?void 0:Mr.find(ya=>ya.item_type===zr);(0,E.useEffect)(()=>{var ya,to,Ba;if(Jt){const Ua=(ya=tr==null?void 0:tr.item_types)==null?void 0:ya.find(ko=>ko.item_type===zr);if((Ua==null?void 0:Ua.random_rule_type)!==xt.Shixun){const ko=sr[Ua==null?void 0:Ua.random_rule_type]||[];Xn(ko);const Va=(Ba=(to=tr==null?void 0:tr.item_types)==null?void 0:to.find(qi=>qi.item_type===zr))==null?void 0:Ba.contents;switch(console.log("----xxx",Oe(ko)),Oe(ko)){case xt.OnlyDifficulty:{Ui(Va.map(qi=>qi.difficulty));break}case xt.OnlyFileFolder:{Ui({my:Va==null?void 0:Va.filter(qi=>parseInt(qi.teacher_group_id)!=="NaN"&&!qi.teacher_group_id&&qi.teacher_group_id!==0),public:Va==null?void 0:Va.filter(qi=>parseInt(qi.teacher_group_id)>=0)}),Pi({my:Va==null?void 0:Va.filter(qi=>parseInt(qi.teacher_group_id)!=="NaN"&&!qi.teacher_group_id&&qi.teacher_group_id!==0),public:Va==null?void 0:Va.filter(qi=>parseInt(qi.teacher_group_id)>=0)});break}case xt.FileFolderAndKnowledge:{Ui({my:Va==null?void 0:Va.filter(qi=>parseInt(qi.teacher_group_id)!=="NaN"&&!qi.teacher_group_id&&qi.teacher_group_id!==0),public:Va==null?void 0:Va.filter(qi=>parseInt(qi.teacher_group_id)>=0)}),Pi({my:Va==null?void 0:Va.filter(qi=>parseInt(qi.teacher_group_id)!=="NaN"&&!qi.teacher_group_id&&qi.teacher_group_id!==0),public:Va==null?void 0:Va.filter(qi=>parseInt(qi.teacher_group_id)>=0)});break}case xt.FileFolderAndDiff:{Ui(Va),Pi(Va);break}case xt.All:{Ui(Va),Pi(Va);break}default:Ui(Va)}}}},[Jt]);const[la,La]=(0,E.useState)([]);(0,E.useEffect)(()=>{Jt&&ct({item_type:zr}).then(ya=>{ya.status===0&&La(ya.data)})},[Jt]),(0,E.useEffect)(()=>{console.log("selectData",qr)},[qr]);const[mo,Ui]=(0,E.useState)(),[pi,ri]=(0,E.useState)(!0);console.log("isFirst:",pi);const Xa=ya=>{Xn(ya),Pi([]),Ui([]),ri(!1)};return E.createElement(xr.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:Jt,onCancel:rn,destroyOnClose:!0,onOk:()=>Vo(void 0,null,function*(){var ya,to,Ba,Ua,ko,Va,qi;if(qr===void 0){kn("");return}if(Object.prototype.toString.call(qr)==="[object Object]"&&!((ya=qr.my)!=null&&ya.length)&&!((to=qr.public)!=null&&to.length)){Ie.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(qr).length&&!(qr!=null&&qr.length)){Ie.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const So=Oe(Ln);switch(So){case xt.OnlyFileFolder:{yr({type:"editRule",payload:{itemType:zr,tableData:[...qr.my||[],...qr.public||[]],randomRuleType:So}});break}case xt.OnlyDifficulty:{const Ro=(Ua=(Ba=tr==null?void 0:tr.item_types)==null?void 0:Ba.find(Al=>Al.item_type===zr))==null?void 0:Ua.contents;let fl=[{},{value:(ko=la.find(Al=>Al.name==="\u7B80\u5355"))==null?void 0:ko.value},{value:(Va=la.find(Al=>Al.name==="\u9002\u4E2D"))==null?void 0:Va.value},{value:(qi=la.find(Al=>Al.name==="\u56F0\u96BE"))==null?void 0:qi.value}];yr({type:"editRule",payload:{itemType:zr,tableData:qr.map((Al,jt)=>{var dn,Mn,ur,Qi;return{difficulty:Al,id:jt,quanlity:((Mn=(dn=Ro==null?void 0:Ro.filter(dr=>dr.id===jt))==null?void 0:dn[0])==null?void 0:Mn.quanlity)||1,item_bank_num:(la==null?void 0:la.length)===1?(ur=la[0])==null?void 0:ur.value:(Qi=fl==null?void 0:fl[Al])==null?void 0:Qi.value}}),randomRuleType:So}});break}case xt.OnlyKnowledge:{yr({type:"editRule",payload:{itemType:zr,tableData:qr.map(Ro=>Fl(_l({},Ro),{quanlity:Ro.quanlity||1})),randomRuleType:So}});break}case xt.KnowledgeAndDiff:{yr({type:"editRule",payload:{itemType:zr,tableData:qr.map(Ro=>Fl(_l({},Ro),{quanlity:Ro.quanlity||1})),randomRuleType:So}});break}case xt.FileFolderAndDiff:{yr({type:"editRule",payload:{itemType:zr,tableData:qr.map(Ro=>Fl(_l({},Ro),{quanlity:Ro.quanlity||1})),randomRuleType:So}});break}case xt.FileFolderAndKnowledge:{yr({type:"editRule",payload:{itemType:zr,tableData:[...qr.my||[],...qr.public||[]],randomRuleType:So}});break}case xt.All:{yr({type:"editRule",payload:{itemType:zr,tableData:qr.map(Ro=>Fl(_l({},Ro),{quanlity:Ro.quanlity||1})),randomRuleType:So}});break}}kn("")})},E.createElement(en.default.Group,{className:`${Ct.ruleCheckBox}`,style:{marginBottom:8},value:Ln,onChange:ya=>{var to;Ln!=null&&Ln.length&&((to=Da==null?void 0:Da.contents)==null?void 0:to.length)>0?xr.default.confirm({title:"\u63D0\u793A",content:"\u5207\u6362\u89C4\u5219\u540E\uFF0C\u4E4B\u524D\u7684\u62BD\u9898\u914D\u7F6E\u5C06\u88AB\u6E05\u7A7A\uFF01",okText:"\u7ACB\u5373\u5207\u6362",cancelText:"\u6682\u4E0D\u5207\u6362",onOk:()=>Xa(ya)}):Xa(ya)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:_t.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:_t.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:_t.Knowledge}]}),Ln.includes(_t.FileFolder)?E.createElement(br,{defaultData:mo,selectData:qr,ruleValue:Ln,setSelectData:Pi,currentItemType:zr}):Ln.includes(_t.Knowledge)?E.createElement(Na,{defaultData:mo,isFirst:pi,ruleValue:Ln,setSelectData:Pi,currentItemType:zr}):Ln.includes(_t.Difficulty)?E.createElement("div",{style:{marginTop:12}},E.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),E.createElement(en.default.Group,{style:{columnGap:12},options:la.map(ya=>({label:ya.name,value:Wn[ya.name]})),value:qr||mo,onChange:ya=>Pi(ya)})):null)},Ii=({open:Jt,onCancel:rn,setVisibleModalType:kn,currentItemType:zr})=>Jt?E.createElement(Ir,{open:Jt,onCancel:rn,setVisibleModalType:kn,currentItemType:zr}):null,Ma=te(83062),Ka=te(99678),Ya=te(89779),$a=te(35598),Za=te(28706),Go=te(17663),Ho=te(20670),vr=({open:Jt,onCancel:rn,onOk:kn})=>{const{data:zr}=(0,E.useContext)(pn),Mr=(0,Ka.g)(),[tr,yr,Ln,Xn]=(0,ni.U)(Ya.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[qr,Pi]=(0,E.useState)(!1);(0,E.useEffect)(()=>{if(Jt){Ln({page:1,limit:10,type:0},!0).then(pi=>{(pi==null?void 0:pi.shixuns_count)===0&&Pi(!0)});const Ui=zr.item_types.find(pi=>pi.item_type==="PRACTICAL");la(Ui.item_banks.map(pi=>pi.id)),mo(Ui.item_banks)}},[Jt,zr]);const[Da,la]=(0,E.useState)([]),[La,mo]=(0,E.useState)([]);return E.createElement(xr.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Jt,width:948,centered:!0,closable:!0,onCancel:rn,onOk:()=>kn(La),destroyOnClose:!0},E.createElement(Pe.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},E.createElement(Lt.Z,null,E.createElement(De.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Mr,onChange:Ui=>{Ln({page:1,discipline_id:Ui==null?void 0:Ui[0],sub_discipline_id:Ui==null?void 0:Ui[1]})}}),E.createElement(mn.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:Ui=>Ln({page:1,diff:Ui})}),E.createElement(mn.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Ui=>Ln({page:1,shixun_publish_status:Ui})})),E.createElement(En.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Ui=>{Ln({keyword:Ui,page:1})}})),qr?E.createElement("div",null,E.createElement(cr.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Za.xg)("/shixuns")})):E.createElement(ei.default,{loading:yr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Ui,pi)=>E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("div",{className:pi!=null&&pi.high_resources_consume?Vt.title:"",title:Ui||"--"},E.createElement($a.Z,{key:1,showLines:1,showTextOnly:!0,value:Ui||"--"})),(pi==null?void 0:pi.high_resources_consume)&&E.createElement(Ho.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Ui,pi,ri)=>E.createElement("span",null,Ui||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:E.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",E.createElement(Ma.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},E.createElement(Go.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Ui,pi,ri)=>E.createElement("span",null,Ui||"- -")},{title:"\u64CD\u4F5C",render(Ui,pi){const{title:ri,challenge_names:Xa,author_name:ya,identifier:to,author_school_name:Ba,study_count:Ua}=pi||{};return E.createElement("div",null,E.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{xr.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:E.createElement("div",null,E.createElement($a.Z,{value:ri,style:{marginBottom:18}}),E.createElement("div",{className:Vt.challengeNameWrapper},Xa.map((ko,Va)=>E.createElement("div",{className:Vt.challengeName,key:Va},"\u7B2C",(0,Za.EM)(Va+1),"\u9898\xA0",ko))),E.createElement(Pe.Z,{className:Vt.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},E.createElement(Lt.Z,{className:Vt.shixunInfoWrapper},E.createElement("span",null,"\u521B\u5EFA\u8005"),E.createElement("span",{className:Vt.shixunInfo},ya.split("\u3001")[0]),E.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{className:Vt.shixunInfo},Ba),E.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:Vt.shixunInfo},Ua)),E.createElement(rt.ZP,{type:"primary",className:Vt.btnToDetail,onClick:()=>(0,Za.xg)(`/shixuns/${to}/challenges?exercise=true`)},E.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(pi==null?void 0:pi.shixun_tag_num)===1&&E.createElement("a",{target:"_blank",href:`/shixuns/${pi==null?void 0:pi.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Xn==null?void 0:Xn.items,rowSelection:{selectedRowKeys:Da,preserveSelectedRowKeys:!0,getCheckboxProps:Ui=>({disabled:Ui.shixun_tag_num===1}),onChange(Ui,pi){var ri,Xa,ya;console.log(Ui),la(Ui);const to=[];for(const Ua of La)Ui.includes(Ua.id)&&to.push(Ua);const Ba=to.map(Ua=>Ua.id);for(const Ua of pi)Ua&&Ui.includes(Ua.id)&&!Ba.includes(Ua.id)&&to.push({id:Ua.id,difficulty:Ua.level,identifier:Ua.identifier,name:Ua.name,real_name:(ri=Ua==null?void 0:Ua.author_name)==null?void 0:ri.split("\u3001")[0],school_name:Ua.author_school_name,challenge_names:Ua.challenge_names,challenges:(Xa=Ua.challenge_names)==null?void 0:Xa.map((ko,Va)=>({subject:ko,id:Va,score:5})),score:((ya=Ua.challenge_names)==null?void 0:ya.length)*5,study_count:Ua.study_count,challenges_count:Ua.challenges_count});mo(to)}},pagination:{current:tr.page,pageSize:tr.limit,total:Xn==null?void 0:Xn.items_count,showTotal:Ui=>E.createElement("span",null,"\u5171\xA0",E.createElement("span",{style:{color:"#165DFF"}},Ui),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Ui,pi){Ln({page:Ui,limit:pi})},size:"default"},scroll:{y:400}}))},Sr=te(66012),Tr=te(67294),Ae=Object.defineProperty,it=Object.defineProperties,st=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Nt=(Jt,rn,kn)=>rn in Jt?Ae(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,gn=(Jt,rn)=>{for(var kn in rn||(rn={}))wt.call(rn,kn)&&Nt(Jt,kn,rn[kn]);if(yt)for(var kn of yt(rn))Ft.call(rn,kn)&&Nt(Jt,kn,rn[kn]);return Jt},Rn=(Jt,rn)=>it(Jt,st(rn)),Wr=({onDelete:Jt,list:rn,onSelect:kn})=>{const[zr,Mr]=(0,E.useState)(!1),{dispatch:tr,disabled:yr}=(0,E.useContext)(pn),Ln=(la,La,mo)=>{const Ui=Array.from(la),[pi]=Ui.splice(La,1);return Ui.splice(mo,0,pi),Ui},[Xn,qr]=(0,E.useState)(null),[Pi,Da]=(0,E.useState)(!1);return Tr.createElement(Sr.Z5,{onDragStart:()=>{Da(!0)},onDragEnd:la=>{if(Da(!1),!la.destination)return;const La=Ln(rn,la.source.index,la.destination.index);tr({type:"updateItemTypes",payload:La})}},Tr.createElement(Sr.bK,{droppableId:"droppable"},(la,La)=>Tr.createElement("div",Rn(gn({},la.droppableProps),{ref:la.innerRef}),Tr.createElement(Se.Z,{spinning:zr},rn.map((mo,Ui)=>Tr.createElement(Sr._l,{key:Ui,draggableId:Ui.toString(),index:Ui,isDragDisabled:Xn!==mo.item_type},(pi,ri)=>Tr.createElement(Pe.Z,Rn(gn(gn({align:"middle",wrap:!1,ref:pi.innerRef},pi.draggableProps),pi.dragHandleProps),{className:`${Vt.dragItem} ${Pi?Vt.dragging:""}`}),Tr.createElement(Lt.Z,{className:Vt.contentArea,onClick:()=>{kn(mo.item_type),(0,Za.k3)()}},Tr.createElement("span",{className:Vt.blackText},(0,Za.EM)(Ui+1),"\u3001\u3010",mo.item_type_text,"\u3011"),Tr.createElement(Ma.Z,{title:`\uFF08${mo.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(mo.total_score).toFixed(1)}\u5206\uFF09`},Tr.createElement("span",{className:Vt.greyText},`\uFF08${mo.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(mo.total_score).toFixed(1)}\u5206\uFF09`))),!yr&&Tr.createElement(Tr.Fragment,null,Tr.createElement(Ma.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:Xn===mo.item_type&&!Pi},Tr.createElement("div",{style:{cursor:"grab"},className:`${Vt.iconWrapper} ${Pi?Vt.hidden:""}`,onMouseEnter:()=>{qr(mo.item_type)},onMouseLeave:()=>qr(null)},Tr.createElement("i",{className:`iconfont icon-tuodong1 ${Vt.dragIcon}`}))),Tr.createElement(Ma.Z,{title:"\u5220\u9664"},Tr.createElement("div",{className:`${Vt.iconWrapper} ${Pi?Vt.hidden:""}`,style:{cursor:"pointer"},onClick:()=>Jt(mo.item_type)},Tr.createElement("i",{className:`iconfont icon-shanchu12 ${Vt.deleteIcon}`})))))))),la.placeholder)))},Rr=te(12845),Un={flex_box_center:"flex_box_center___ppkzA",flex_space_between:"flex_space_between___Z1syx",flex_box_vertical_center:"flex_box_vertical_center___twJ9S",flex_box_center_end:"flex_box_center_end___uI0uW",flex_box_column:"flex_box_column___JRp7D",timelineWrapper:"timelineWrapper___LP9aM",title:"title___KUHj_",desc:"desc___ubc8E",titles:"titles___njkjf",questionDetailWrapper:"questionDetailWrapper___p4SFM",questionTitle:"questionTitle___JC9X6",questionScoreInfo:"questionScoreInfo___NgOJI",deleteIcon:"deleteIcon___oMVTN",deleteBtn:"deleteBtn___JUPEl",normalText:"normalText___FW9Y_",folderIcon:"folderIcon___gvacQ",challengeNameWrapper:"challengeNameWrapper___fG7Vv",challengeName:"challengeName___Ia1Xs",shixunPreviewFooter:"shixunPreviewFooter___rKsnN",shixunInfoWrapper:"shixunInfoWrapper___FEnDb",shixunInfo:"shixunInfo___TbrA2",btnToDetail:"btnToDetail___dqLQP",q_title:"q_title___qnv4p"},pr=te(73631),Jn=te(31328);const _r=(Jt,rn,kn,zr)=>{const Mr={[xt.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(tr,yr){const{difficulty:Ln}=yr;return E.createElement("span",{style:{color:he[Ln].color}},he[Ln].label)}}],[xt.OnlyKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",width:180,ellipsis:{showTitle:!0},render(tr,yr){return`${tr}`}}],[xt.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(tr,yr,Ln){const{group_name:Xn,teacher_group_name:qr}=yr,Pi=Xn||qr,Da=qr?Jn:pr;return E.createElement("div",{style:{display:"flex"}},E.createElement("img",{src:Da,className:Un.folderIcon})," ",E.createElement(Ma.Z,{title:Pi},E.createElement("span",{className:Un.titles},Pi)))}},{title:"\u7C7B\u578B",render(tr,yr){const{teacher_group_name:Ln}=yr;return E.createElement("span",null,Ln?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[xt.KnowledgeAndDiff]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:{showTitle:!0}},{title:"\u65B9\u5411&\u8BFE\u7A0B",width:180,dataIndex:"sub_discipline_name",ellipsis:{showTitle:!0}},{title:"\u96BE\u5EA6",key:"difficulty",render(tr,yr){const{difficulty:Ln}=yr;return E.createElement("span",{style:{color:he[Ln].color}},he[Ln].label)}}],[xt.FileFolderAndKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(tr,yr){const{group_name:Ln,teacher_group_name:Xn}=yr,qr=Ln||Xn,Pi=Xn?Jn:pr;return E.createElement("div",{style:{display:"flex"}},E.createElement("img",{src:Pi,className:Un.folderIcon})," ",E.createElement(Ma.Z,{title:qr},E.createElement("span",{className:Un.titles},qr)))}},{title:"\u7C7B\u578B",render(tr,yr){const{teacher_group_name:Ln}=yr;return E.createElement("span",null,Ln?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[xt.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(tr,yr){const{group_name:Ln,teacher_group_name:Xn}=yr,qr=Ln||Xn,Pi=Xn?Jn:pr;return E.createElement("div",{style:{display:"flex"}},E.createElement("img",{src:Pi,className:Un.folderIcon})," ",E.createElement(Ma.Z,{title:qr},E.createElement("span",{className:Un.titles},qr)))}},{title:"\u7C7B\u578B",render(tr,yr){const{teacher_group_name:Ln}=yr;return E.createElement("span",null,Ln?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(tr,yr){const{difficulty:Ln}=yr;return E.createElement("span",{style:{color:he[Ln].color}},he[Ln].label)}}],[xt.All]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(tr,yr){const{group_name:Ln,teacher_group_name:Xn,teacher_group_id:qr}=yr,Pi=Ln||Xn,Da=qr||qr===0?Jn:pr;return E.createElement("div",{style:{display:"flex"}},E.createElement("img",{src:Da,className:Un.folderIcon})," ",E.createElement(Ma.Z,{title:Pi},E.createElement("span",{className:Un.titles},Pi)))}},{title:"\u7C7B\u578B",render(tr,yr){const{teacher_group_id:Ln}=yr;return E.createElement("span",null,Ln||Ln===0?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(tr,yr){const{difficulty:Ln}=yr;return E.createElement("span",{style:{color:he[Ln].color}},he[Ln].label)}}],[xt.Shixun]:[]};for(const tr of Object.values(Mr))tr.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(yr,Ln){const{item_bank_num:Xn,quanlity:qr,id:Pi,teacher_group_id:Da}=Ln||{};return E.createElement(Pe.Z,{align:"middle"},E.createElement(Ue.Z,{disabled:zr,min:1,max:Xn,size:"large",precision:0,value:qr,onChange:la=>{rn({type:"changeQuestionNum",payload:{itemType:kn,id:Pi,num:la,teacher_group_id:Da}})}}),E.createElement("span",{className:"ml10 font14",style:{color:"#333333"}},"/",Xn))}},{title:"\u64CD\u4F5C",key:"action",align:"right",render(yr,Ln){const{id:Xn,is_share:qr}=Ln;return zr?E.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):E.createElement("span",{className:Un.deleteBtn,onClick:()=>{rn({type:"deleteRule",payload:{itemType:kn,id:Xn,is_share:qr}})}},"\u5220\u9664")}});return Mr[Jt]},yi=({setVisibleModalType:Jt})=>{var rn,kn,zr,Mr;const{data:tr,dispatch:yr,disabled:Ln}=(0,E.useContext)(pn),Xn=(rn=tr==null?void 0:tr.item_types)==null?void 0:rn.find(qr=>qr.item_type==="PRACTICAL");return E.createElement(Rr.Z,{className:Un.timelineWrapper,items:[{children:E.createElement("div",{style:{transform:"translateY(-4px)"}},E.createElement(Pe.Z,{className:"mb20",align:"middle",justify:"space-between"},E.createElement(Lt.Z,null,E.createElement("span",{className:Un.title},"\u9898\u5E93\u9009\u9898"),E.createElement("span",{className:Un.desc},"\uFF08\u9700\u8981\u5148\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9\u5B9E\u8BAD\u9898\uFF0C\u518D\u8BBE\u7F6E\u4ECE\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898\u7684\u6570\u91CF\uFF09")),!Ln&&E.createElement(En.op,{style:{width:102},onClick:()=>Jt("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((kn=Xn==null?void 0:Xn.item_banks)==null?void 0:kn.length)===0?E.createElement(cr.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):E.createElement(ei.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(qr,Pi,Da){return E.createElement("span",null,Da+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(qr,Pi)=>E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("div",{className:Pi!=null&&Pi.high_resources_consume?Un.q_title:"",title:qr||"--"},E.createElement($a.Z,{key:1,showLines:1,showTextOnly:!0,value:qr})),(Pi==null?void 0:Pi.high_resources_consume)&&E.createElement(Ho.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(qr,Pi,Da)=>E.createElement("span",null,qr||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(qr,Pi,Da){const{id:la,identifier:La,name:mo,challenge_names:Ui=[],real_name:pi,school_name:ri,study_count:Xa,challenges:ya=[]}=Pi||{};return E.createElement("div",null,E.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{xr.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:E.createElement("div",null,E.createElement($a.Z,{value:mo,style:{marginBottom:18}}),E.createElement("div",{className:Un.challengeNameWrapper},ya==null?void 0:ya.map((to,Ba)=>E.createElement("div",{className:Un.challengeName,key:Ba},"\u7B2C",(0,Za.EM)(Ba+1),"\u9898\xA0",to==null?void 0:to.subject))),E.createElement(Pe.Z,{className:Un.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},E.createElement(Lt.Z,{className:Un.shixunInfoWrapper},E.createElement("span",null,"\u521B\u5EFA\u8005"),E.createElement("span",{className:Un.shixunInfo},pi),E.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{className:Un.shixunInfo},ri),E.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{className:Un.shixunInfo},Xa)),E.createElement(rt.ZP,{type:"primary",className:Un.btnToDetail,onClick:()=>(0,Za.xg)(`/shixuns/${La}/challenges?exercise=true`)},E.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),!Ln&&E.createElement("span",{onClick:()=>{yr({type:"deleteShixunQuestion",payload:{shixunId:la}})},className:`ml20 ${Un.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(Xn==null?void 0:Xn.item_banks)||[],pagination:!1}))},{children:E.createElement(Pe.Z,{style:{transform:(zr=Xn==null?void 0:Xn.item_banks)!=null&&zr.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},E.createElement("span",{className:Un.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((Mr=Xn==null?void 0:Xn.item_banks)!=null&&Mr.length)&&E.createElement(Lt.Z,null,E.createElement(Pe.Z,{align:"middle"},E.createElement("span",{className:Un.normalText},"\u62BD\u9898\u6570\u91CF"),E.createElement(Ue.Z,{min:0,disabled:Ln,max:Xn==null?void 0:Xn.item_bank_num,size:"large",precision:0,className:"ml10 mr10",value:(Xn==null?void 0:Xn.item_bank_count)||1,onChange:qr=>yr({type:"changeQuestionNum",payload:{num:qr||1,itemType:"PRACTICAL"}})}),E.createElement("span",{className:`${Un.normalText} mr30`},"/",Xn==null?void 0:Xn.item_bank_num),E.createElement("span",{className:Un.normalText},"\u6BCF\u9898\u5206\u503C"),E.createElement(Ue.Z,{disabled:Ln,min:0,max:100,precision:1,size:"large",precision:1,className:"ml10 mr10",value:Xn==null?void 0:Xn.score,onChange:qr=>yr({type:"changeQuestionScore",payload:{score:qr,itemType:"PRACTICAL"}})}),E.createElement("span",{className:Un.normalText},"\u5206"))))}]})};var Xr=({setVisibleModalType:Jt,currentItemType:rn,onDelete:kn})=>{var zr,Mr;const tr=(0,Be.useParams)(),{data:yr,dispatch:Ln,disabled:Xn}=(0,E.useContext)(pn),qr=((zr=yr==null?void 0:yr.item_types)==null?void 0:zr.findIndex(Da=>Da.item_type===rn))+1,Pi=(Mr=yr==null?void 0:yr.item_types)==null?void 0:Mr.find(Da=>Da.item_type===rn);return E.createElement("div",{className:Un.questionDetailWrapper},E.createElement(Pe.Z,{justify:"space-between",align:"middle",className:"mb30"},E.createElement(Lt.Z,null,E.createElement("span",{className:Un.questionTitle},`${(0,Za.EM)(qr)}\u3001${Pi==null?void 0:Pi.item_type_text}`),E.createElement("span",{className:Un.questionScoreInfo},"\uFF08",E.createElement("span",{style:{color:"#3061D0"}},Pi==null?void 0:Pi.item_bank_count),"\u5C0F\u9898 ",E.createElement("span",null,"\uFF0C\u5171",E.createElement("span",{style:{color:"#3061D0"}},Pi==null?void 0:Pi.total_score),"\u5206"),"\uFF09")),!Xn&&E.createElement("i",{className:`iconfont icon-shanchutimu ${Un.deleteIcon}`,onClick:()=>kn(rn)})),rn==="PRACTICAL"?E.createElement(yi,{setVisibleModalType:Jt}):E.createElement(E.Fragment,null,(Pi==null?void 0:Pi.contents.length)===0?E.createElement(cr.Z,{styles:{margin:"70px auto 100px auto"},customText:E.createElement("span",null,"\u6682\u65E0\u62BD\u9898\u89C4\u5219\uFF0C\u652F\u6301",E.createElement("span",{style:{color:"#EA9741"}},"\u6307\u5B9A\u6587\u4EF6\u5939\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9"),"\u8FDB\u884C\u62BD\u9898\uFF5E"),ButtonTwo:(tr==null?void 0:tr.id)&&E.createElement(Pe.Z,{justify:"center",className:"mt30"},E.createElement(En.op,{style:{width:136,marginTop:-10},onClick:()=>Jt("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):E.createElement(E.Fragment,null,E.createElement(Pe.Z,{justify:"space-between",align:"middle",className:"mb20"},E.createElement(Lt.Z,null,E.createElement(Pe.Z,{align:"middle"},E.createElement("span",{className:`${Un.normalText}`},"\u6BCF\u9898\u5206\u503C"),E.createElement(Ue.Z,{disabled:Xn,size:"large",className:"ml10 mr10",min:.1,max:100,value:Pi==null?void 0:Pi.score,precision:1,onChange:Da=>Ln({type:"changeQuestionScore",payload:{score:Da,itemType:rn}})}),E.createElement("span",{className:Un.normalText},"\u5206"))),(tr==null?void 0:tr.id)&&E.createElement(En.op,{onClick:()=>Jt("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),E.createElement(ei.default,{columns:_r(Pi==null?void 0:Pi.random_rule_type,Ln,rn,Xn),dataSource:Pi==null?void 0:Pi.contents,pagination:!1,rowKey:"id"}))))},ti=te(60580),fi=te(15835),Ci=te(52262),At=te(32637),vt=te(67294),On=Object.defineProperty,Cn=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,tn=(Jt,rn,kn)=>rn in Jt?On(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,xn=(Jt,rn)=>{for(var kn in rn||(rn={}))Zt.call(rn,kn)&&tn(Jt,kn,rn[kn]);if(Zr)for(var kn of Zr(rn))Ht.call(rn,kn)&&tn(Jt,kn,rn[kn]);return Jt},fr=(Jt,rn)=>Cn(Jt,mr(rn)),wr=(Jt,rn,kn)=>new Promise((zr,Mr)=>{var tr=Xn=>{try{Ln(kn.next(Xn))}catch(qr){Mr(qr)}},yr=Xn=>{try{Ln(kn.throw(Xn))}catch(qr){Mr(qr)}},Ln=Xn=>Xn.done?zr(Xn.value):Promise.resolve(Xn.value).then(tr,yr);Ln((kn=kn.apply(Jt,rn)).next())}),kr=({})=>{var Jt,rn,kn,zr,Mr,tr,yr,Ln,Xn,qr,Pi,Da,la,La,mo;const[Ui]=(0,Be.useSearchParams)(),pi=(0,Be.useParams)(),{data:ri,dispatch:Xa,setPreview:ya,getData:to,handlePreview:Ba,disabled:Ua}=(0,E.useContext)(pn),[ko,Va]=(0,E.useState)(""),[qi,So]=(0,E.useState)((rn=(Jt=ri==null?void 0:ri.item_types)==null?void 0:Jt[0])==null?void 0:rn.item_type),[Ro,fl]=(0,E.useState)(!0),[Al,jt]=(0,E.useState)(!1),dn=(dr,ii)=>wr(void 0,null,function*(){var si,ki,Yi,Lr,ia,Ha,ro;const Xi=ri.item_types.map(va=>va.item_type_text),Wa=(si=ri==null?void 0:ri.item_types)==null?void 0:si.filter(va=>{var tt,nt;return((tt=va.contents)==null?void 0:tt.length)>0||((nt=va==null?void 0:va.item_banks)==null?void 0:nt.length)>0});if(ri.sort_by_item_type=Xi,!((ki=ri.item_types)!=null&&ki.length)){Ie.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((Wa==null?void 0:Wa.length)===0){Ie.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!dr){const va=Number((Yi=ri==null?void 0:ri.examination_bank)==null?void 0:Yi.total_score);[100,120,150].includes(va)||(yield new Promise((tt,nt)=>{xr.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:vt.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",vt.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},va),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>wr(void 0,null,function*(){tt("")}),onCancel:()=>{nt()}})}))}let _i=()=>wr(void 0,null,function*(){const va=(0,et.cloneDeep)(ri),{item_types:tt}=va||{};va.item_types=tt.filter(Qt=>Qt.item_type===qi),(yield Ye(pi.id||pi.categoryId,va)).status===0&&(So(ii),Ie.ZP.success("\u4FDD\u5B58\u6210\u529F"),dr||Be.history.push("/paperlibrary"))}),jr=(ia=(Lr=ri==null?void 0:ri.item_types)==null?void 0:Lr.filter(va=>va.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:ia.item_banks,li=0;jr==null||jr.map(va=>{va.high_resources_consume&&(li=li+1)}),console.log(li),li>0?xr.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:vt.createElement("div",null,vt.createElement("div",{className:Vt.tipcontent},vt.createElement("div",null,vt.createElement("div",{className:Vt.name},"\u60A8\u597D\uFF01",(Ha=(0,Ci.eY)())==null?void 0:Ha.username,"\uFF08",(ro=(0,Ci.eY)())==null?void 0:ro.login,"\uFF09\uFF1A"),vt.createElement("div",{className:Vt.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",vt.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),vt.createElement("div",{className:Vt.info},vt.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),vt.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),vt.createElement("span",{style:{color:"#232B40"}},`${li}\u4E2A`))),vt.createElement("div",null,vt.createElement("div",{className:Vt.img},vt.createElement("img",{src:At,width:"124px",height:"124px"})),vt.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{_i()}}):_i()}),Mn=(dr,ii,si,ki=!1)=>wr(void 0,null,function*(){console.log(ri);const Yi=fr(xn(xn({},ri.exercise),pi),{exerciseId:pi.categoryId,sort_by_item_type:ri.sort_by_item_type,difficulty:ri.examination_bank.difficulty,exam_notes:ri.examination_bank.exam_notes,exercise_name:ri.examination_bank.name,time:ri.examination_bank.time,changed_item_type:qi,item_types:ri.item_types,changed_item_type:qi,sub_discipline_id:ri.examination_bank.sub_discipline_id});(!dr||ii===1)&&(Yi.is_reset=1);const Lr=yield(0,fi.wy)(Yi);return Lr.status===0&&(ki||Ie.ZP.success("\u4FEE\u6539\u6210\u529F "),So(si),dr||Be.history.push(`/classrooms/${pi.coursesId}/exercise/${pi.categoryId}/detail?random=true`)),Lr}),ur=dr=>{xr.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:vt.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>wr(void 0,null,function*(){var ii,si,ki,Yi;if(pi.id){if((yield pt(pi.id,{item_type:[dr]})).status!==0)return}else{const Lr=yield $e(pi.categoryId,{item_type:[dr]});if(to(),Lr.status!==0)return}if(Xa({type:"deleteQuestionType",payload:dr}),dr===qi){const Lr=ve(ri,{type:"deleteQuestionType",payload:dr});So(Lr.item_types.length?Lr.item_types[0].item_type:(si=(ii=ri==null?void 0:ri.item_types)==null?void 0:ii[0])==null?void 0:si.item_type)}else So((Yi=(ki=ri==null?void 0:ri.item_types)==null?void 0:ki[0])==null?void 0:Yi.item_type)})})};(0,E.useEffect)(()=>{var dr;(dr=ri==null?void 0:ri.examination_bank)!=null&&dr.name&&fl(!1),(0,Za.Dk)("\u968F\u673A\u7EC4\u5377")},[(kn=ri==null?void 0:ri.examination_bank)==null?void 0:kn.name]);const Qi=()=>wr(void 0,null,function*(){var dr;let ii=yield Mn(!0,1,qi,!0);if((ii==null?void 0:ii.status)===0){const si=yield(0,qe.ZP)(`/api/exercises/${pi==null?void 0:pi.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:pi==null?void 0:pi.coursesId,categoryId:pi==null?void 0:pi.categoryId}});(si==null?void 0:si.status)!=-1&&window.open(`/classrooms/${pi.coursesId}/exercise/${pi.categoryId}/${(dr=(0,Ci.eY)())==null?void 0:dr.login}/initate_answer`)}});return vt.createElement("div",{className:Vt.questionInfo},vt.createElement("div",{className:"tc mb20"},vt.createElement(de.VP,{defaultValue:(zr=ri==null?void 0:ri.examination_bank)==null?void 0:zr.name,onFinish:dr=>wr(void 0,null,function*(){return Xa({type:"updateBaseInfo",payload:fr(xn({},ri.examination_bank),{name:dr})}),(0,fi.wy)({exercise_name:dr,exerciseId:pi==null?void 0:pi.categoryId}),!0})})),vt.createElement(Pe.Z,{justify:"center",className:"mb20"},vt.createElement(Lt.Z,{className:"mr30"},vt.createElement("span",{className:Vt.label},"\u7B54\u9898\u65F6\u957F"),vt.createElement("span",null,((Mr=ri==null?void 0:ri.examination_bank)==null?void 0:Mr.time)===-1?"\u4E0D\u9650":((tr=ri==null?void 0:ri.examination_bank)==null?void 0:tr.time)||"\u4E0D\u9650")),vt.createElement(Lt.Z,{className:"mr30"},vt.createElement("span",{className:Vt.label},"\u96BE\u5EA6"),vt.createElement("span",null,(Ln=he[`${(yr=ri==null?void 0:ri.examination_bank)==null?void 0:yr.difficulty}`])==null?void 0:Ln.label)),vt.createElement(Lt.Z,{className:"mr30"},vt.createElement("span",{className:Vt.label},"\u8BD5\u9898\u603B\u6570"),vt.createElement("span",null,((Xn=ri==null?void 0:ri.examination_bank)==null?void 0:Xn.question_count)||0)),vt.createElement(Lt.Z,null,vt.createElement("span",{className:Vt.label},"\u603B\u5206"),vt.createElement("span",null,((Pi=(qr=ri==null?void 0:ri.examination_bank)==null?void 0:qr.total_score)==null?void 0:Pi.toFixed(1))||0))),vt.createElement("div",{className:Vt.content,style:{border:((Da=ri==null?void 0:ri.item_types)==null?void 0:Da.length)<=0&&"none"}},((la=ri==null?void 0:ri.item_types)==null?void 0:la.length)>0?vt.createElement(Pe.Z,{wrap:!1},vt.createElement(Lt.Z,{flex:"260px",className:Vt.leftPart},!Ua&&vt.createElement(Pe.Z,{className:"mb20"},vt.createElement(En.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>Va("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(pi==null?void 0:pi.id)&&vt.createElement(En.op,{shape:"default",onClick:()=>Va("questionType")},"\u6DFB\u52A0\u9898\u578B")),vt.createElement(Wr,{list:ri.item_types,onSelect:dr=>wr(void 0,null,function*(){if(dr===qi)return;fl(!0);const ii=ri.item_types.find(si=>si.item_type===qi);if(qi!=="PRACTICAL"&&ii.contents.length>0&&(pi!=null&&pi.id)){const si=(0,et.cloneDeep)(ri),{item_types:ki}=si||{};si.item_types=ki.filter(Yi=>Yi.item_type===qi);try{(yield Ye(pi.id||pi.categoryId,si)).status===0&&So(dr)}catch(Yi){}}else pi.categoryId?Mn(!0,2,dr):dn(!0,dr);fl(!1)}),onDelete:ur})),vt.createElement(Lt.Z,{flex:1,className:Vt.rightPart},vt.createElement(Se.Z,{spinning:Ro},vt.createElement(Xr,{setVisibleModalType:Va,currentItemType:qi,onDelete:ur})))):vt.createElement(cr.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:vt.createElement(Pe.Z,{justify:"center",className:"mt20"},(pi==null?void 0:pi.id)&&vt.createElement(En.op,{style:{width:88},onClick:()=>Va("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(pi!=null&&pi.id)&&vt.createElement("div",{className:Vt.fixedBottom},vt.createElement(ti.Z,{className:`${Vt.previewBtn} mr20`,onClick:()=>wr(void 0,null,function*(){var dr,ii;const si=(dr=ri==null?void 0:ri.item_types)==null?void 0:dr.filter(ki=>{var Yi,Lr;return((Yi=ki.contents)==null?void 0:Yi.length)>0||((Lr=ki==null?void 0:ki.item_banks)==null?void 0:Lr.length)>0});if(!((ii=ri.item_types)!=null&&ii.length)){Ie.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((si==null?void 0:si.length)===0){Ie.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield dn(!0,qi),Ba()})},"\u8BD5\u5377\u9884\u89C8"),vt.createElement(ti.Z,{type:"primary",className:Vt.confirmBtn,onClick:()=>dn()},vt.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(pi!=null&&pi.categoryId)&&vt.createElement("div",{className:Vt.fixedBottom,style:{justifyContent:((La=ri==null?void 0:ri.exercise)==null?void 0:La.exercise_status)!==1?"end":"center"}},vt.createElement(ti.Z,{className:`${Vt.previewBtn} mr20`,onClick:()=>wr(void 0,null,function*(){var dr,ii;document.body.scrollIntoView(),Be.history.push(`/classrooms/${pi.coursesId}/exercise/${(dr=ri==null?void 0:ri.exercise)==null?void 0:dr.id}/detail?random=${(ii=ri==null?void 0:ri.exercise)==null?void 0:ii.is_random}`)})},"\u8FD4\u56DE"),((mo=ri==null?void 0:ri.exercise)==null?void 0:mo.exercise_status)===1&&vt.createElement(ti.Z,{className:`${Vt.previewBtn} mr20`,onClick:Qi},"\u6A21\u62DF\u8003\u8BD5"),(ri==null?void 0:ri.exercise.exercise_status)===1&&vt.createElement(ti.Z,{type:"primary",className:Vt.confirmBtn,onClick:()=>wr(void 0,null,function*(){var dr;const ii=Number((dr=ri==null?void 0:ri.examination_bank)==null?void 0:dr.total_score);[100,120,150].includes(ii)||(yield new Promise((si,ki)=>{xr.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:vt.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",vt.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},ii),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>wr(void 0,null,function*(){si("")}),onCancel:()=>{ki()}})})),Mn()})},"\u63D0\u4EA4")),vt.createElement(ai,{open:ko==="questionType",onCancel:()=>Va(""),onOk:dr=>wr(void 0,null,function*(){var ii,si;const ki=[],Yi=ve(ri,{type:"setQuestionType",payload:dr}),Lr=((ii=Yi==null?void 0:Yi.item_types)==null?void 0:ii.map(ia=>ia.item_type))||[];for(const ia of((si=ri==null?void 0:ri.item_types)==null?void 0:si.map(Ha=>Ha.item_type))||[])Lr.includes(ia)||ki.push(ia);pi.id&&ki.length>0&&(yield pt(pi.id,{item_type:ki})).status!==0||(Xa({type:"setQuestionType",payload:dr}),So(qi||Yi.item_types[0].item_type),Va(""))})}),vt.createElement($t,{open:ko==="setScore",onCancel:()=>{Va("")},onOk:dr=>wr(void 0,null,function*(){console.log("---newData",dr);const ii=dr.item_types.map(si=>({item_type:si.item_type,score:si.score}));pi.id?(yield _e(pi.id,{score_settings:ii})).status===0&&Xa({type:"init",payload:dr}):(yield Me(pi.categoryId,{score_settings:ii})).status===0&&Xa({type:"init",payload:dr}),Va("")})}),vt.createElement(Ii,{open:ko==="rule",onCancel:()=>Va(""),currentItemType:qi,setVisibleModalType:Va}),Ui.get("type")==="settings"&&vt.createElement(vr,{open:ko==="selectShixun",onCancel:()=>Va(""),onOk:dr=>{if(console.log(dr),(dr==null?void 0:dr.length)<=0){Ie.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}Xa({type:"addShixun",payload:{shixunList:[...dr]}}),Va("")}}))},di=te(38884),Ni=te(67294),Si=Object.defineProperty,Jr=Object.defineProperties,Bi=Object.getOwnPropertyDescriptors,Wi=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,Ei=(Jt,rn,kn)=>rn in Jt?Si(Jt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Jt[rn]=kn,ga=(Jt,rn)=>{for(var kn in rn||(rn={}))da.call(rn,kn)&&Ei(Jt,kn,rn[kn]);if(Wi)for(var kn of Wi(rn))Vi.call(rn,kn)&&Ei(Jt,kn,rn[kn]);return Jt},Ca=(Jt,rn)=>Jr(Jt,Bi(rn)),fo=(Jt,rn,kn)=>new Promise((zr,Mr)=>{var tr=Xn=>{try{Ln(kn.next(Xn))}catch(qr){Mr(qr)}},yr=Xn=>{try{Ln(kn.throw(Xn))}catch(qr){Mr(qr)}},Ln=Xn=>Xn.done?zr(Xn.value):Promise.resolve(Xn.value).then(tr,yr);Ln((kn=kn.apply(Jt,rn)).next())}),xo=()=>{var Jt,rn,kn,zr;const[Mr,tr]=(0,E.useState)("baseInfo"),yr=(0,Be.useDispatch)();(0,E.useEffect)(()=>{yr({type:"globalSetting/footerToggle",payload:!1})},[]);const Ln=(0,Be.useParams)(),Xn=!!(Ln.id||Ln.categoryId),[qr]=(0,Be.useSearchParams)();(0,E.useEffect)(()=>{qr.get("type")==="settings"&&tr("settings")},[]);const[Pi,Da]=(0,E.useReducer)(ve,null),[la,La]=(0,E.useState)(!1),mo=()=>fo(void 0,null,function*(){La(!0);let qi;Ln.categoryId?qi=yield kt(Ln):qi=yield Ee(Ln.id),La(!1),qi.status===0&&Da({type:"init",payload:qi})});(0,E.useEffect)(()=>{Xn?mo():Da({type:"init",payload:{examination_bank:{difficulty:2}}})},[Ln]);const[Ui,pi]=(0,E.useState)(""),ri=(qi,So)=>fo(void 0,null,function*(){var Ro,fl,Al,jt;const dn=(Ro=Pi==null?void 0:Pi.item_types)==null?void 0:Ro.filter(Qi=>{var dr;return((dr=Qi==null?void 0:Qi.item_type)==null?void 0:dr.toUpperCase())===(So==null?void 0:So.type)}),Mn={sort_by_item_type:Pi.sort_by_item_type,difficulty:Pi.examination_bank.difficulty,exam_notes:Pi.examination_bank.exam_notes,name:Pi.examination_bank.name,time:Pi.examination_bank.time,item_types:Pi.item_types};if(qi!==void 0&&!(qi!=null&&qi.single_question_id)){Mn.seleted_item_bank_ids=qi==null?void 0:qi.seleted_item_bank_ids,Mn.item_types=dn;const Qi=yield We(Mn);if((Qi==null?void 0:Qi.status)===0){let dr=(0,et.cloneDeep)(Ua.data);dr.questionList=(fl=dr==null?void 0:dr.questionList)==null?void 0:fl.map(ii=>{var si;return ii.type===So.type?Ca(ga({},ii),{questions:((si=Qi==null?void 0:Qi.questions)==null?void 0:si.questions)||[]}):ii}),ko({show:!0,data:dr})}return}if(qi!==void 0&&(qi!=null&&qi.single_question_id)){Mn.seleted_item_bank_ids=qi==null?void 0:qi.seleted_item_bank_ids,Mn.single_question_id=qi==null?void 0:qi.single_question_id,Mn.item_types=dn;const Qi=yield We(Mn);if((Qi==null?void 0:Qi.status)===0){let dr=(0,et.cloneDeep)(Ua.data);dr.questionList=(Al=dr==null?void 0:dr.questionList)==null?void 0:Al.map(ii=>{var si,ki;if(ii.type===So.type){const Yi=(0,et.cloneDeep)(ii==null?void 0:ii.questions);return Yi.splice(So.index,1,(ki=(si=Qi==null?void 0:Qi.questions)==null?void 0:si.questions)==null?void 0:ki[0]),console.log(ii==null?void 0:ii.questions,Yi,So.index,"new_questions"),Ca(ga({},ii),{questions:Yi})}return ii}),ko({show:!0,data:dr})}return}const ur=yield ft(Mn);if((ur==null?void 0:ur.status)===0){const Qi=(0,Za.ad)(ur);let dr=[];(jt=Pi==null?void 0:Pi.item_types)==null||jt.forEach(ii=>{var si;const ki=(si=Qi==null?void 0:Qi.questionList)==null?void 0:si.find(Yi=>ii.item_type===Yi.type);dr.push(ki)}),console.log(Pi,"sortList"),dr=(0,et.compact)(dr),Qi.questionList=dr,ko({show:!0,data:Qi}),pi(new Date)}}),Xa=qi=>{var So;let Ro=(0,et.cloneDeep)(Ua.data);Ro.questionList=(So=Ro==null?void 0:Ro.questionList)==null?void 0:So.map(fl=>fl.type===qi.type?Ca(ga({},fl),{questions_score:qi.scoreTotal}):fl),Da({type:"changeQuestionScore",payload:{score:qi.score,itemType:qi.type}}),ko({show:!0,data:Ro})},ya=qi=>fo(void 0,null,function*(){const So={sort_by_item_type:Pi.sort_by_item_type,difficulty:Pi.examination_bank.difficulty,exam_notes:Pi.examination_bank.exam_notes,name:Pi.examination_bank.name,time:Pi.examination_bank.time,item_types:Pi.item_types,sub_discipline_id:Pi.examination_bank.sub_discipline_id};if(qi){(yield gt(ga(ga({},So),qi))).status===0&&Ie.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield Ye(Ln.id,So)).status===0&&(Ie.ZP.success("\u63D0\u4EA4\u6210\u529F"),Be.history.push("/paperlibrary?defaultActiveKey=0"))}),to=(0,Ka.g)(),[Ba]=Te.default.useForm(),[Ua,ko]=(0,E.useState)({show:!1,data:{}}),Va=!!((Jt=Pi==null?void 0:Pi.exercise)!=null&&Jt.exercise_status)&&((rn=Pi==null?void 0:Pi.exercise)==null?void 0:rn.exercise_status)!==1;return Ni.createElement(pn.Provider,{value:{data:Pi,disabled:Va,dispatch:Da,setPreview:ko,getData:mo,handlePreview:ri}},Ua.show?Ni.createElement(di.Z,{key:Ui,data:Ua.data,onExchange:ri,onTypeScore:Xa,submit:ya,goBack:()=>ko({show:!1,data:{}})}):Ni.createElement("div",{className:fe.wrapper},Ni.createElement("div",{className:"edu-container"},Ni.createElement(xe.Z,{className:fe.breadCrumbWrapper,separator:">",items:Ln!=null&&Ln.categoryId?[{title:Ni.createElement(Be.Link,{to:`/classrooms/${Ln.coursesId}/exercise`},(zr=(kn=(0,Ci.eY)())==null?void 0:kn.course)==null?void 0:zr.course_name)},{title:Ni.createElement(Be.Link,{to:`/classrooms/${Ln.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:Ni.createElement(Be.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),Ni.createElement(de.d4,{activeKey:Mr,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:qi=>fo(void 0,null,function*(){if(qi==="settings"&&(yield Ba.validateFields(),!Xn)){const So=yield Ne(Pi);So.status===0&&Be.history.replace(`/randompaper/edit/${So==null?void 0:So.examination_bank_id}?type=settings`)}tr(qi)})}),Mr==="baseInfo"&&Ni.createElement(an,{courseOptions:to,setCurrentKey:tr,loading:la,form:Ba}),Ni.createElement("div",{style:{display:Mr==="settings"?"block":"none"}},Pi&&Ni.createElement(kr,null)))))}},99640:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return De}});var E=te(14446),fe={ul:"ul___TdfYY"},Ie=te(32637),Te=te(67294),xe=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,Se=(Xe,Pe)=>{var Ue={};for(var rt in Xe)Be.call(Xe,rt)&&Pe.indexOf(rt)<0&&(Ue[rt]=Xe[rt]);if(Xe!=null&&xe)for(var rt of xe(Xe))Pe.indexOf(rt)<0&&de.call(Xe,rt)&&(Ue[rt]=Xe[rt]);return Ue},De=Xe=>{var Pe=Xe,{open:Ue,onCancel:rt}=Pe,qe=Se(Pe,["open","onCancel"]);return Te.createElement(E.default,{centered:!0,open:Ue,title:Te.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:rt,footer:null},Te.createElement("div",null,Te.createElement("div",{className:"tc"},Te.createElement("img",{className:"mt10",src:Ie,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Te.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Te.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Te.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Te.createElement("ul",{className:fe.ul},Te.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Te.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Te.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},99678:function(In,Ut,te){"use strict";te.d(Ut,{g:function(){return xe}});var E=te(67294),fe=te(56443),Ie=te(53430),Te=(Be,de,Se)=>new Promise((pe,De)=>{var Xe=rt=>{try{Ue(Se.next(rt))}catch(qe){De(qe)}},Pe=rt=>{try{Ue(Se.throw(rt))}catch(qe){De(qe)}},Ue=rt=>rt.done?pe(rt.value):Promise.resolve(rt.value).then(Xe,Pe);Ue((Se=Se.apply(Be,de)).next())});const xe=()=>{const[Be,de]=(0,E.useState)([]);return(0,E.useEffect)(()=>{Te(void 0,null,function*(){const pe=yield(0,fe.d1)({source:"question"});pe!=null&&pe.disciplines&&de((0,Ie.L)(pe==null?void 0:pe.disciplines))})},[]),Be}},9343:function(In,Ut,te){"use strict";te.d(Ut,{U:function(){return pe}});var E=te(67294),fe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Be=(De,Xe,Pe)=>Xe in De?fe(De,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):De[Xe]=Pe,de=(De,Xe)=>{for(var Pe in Xe||(Xe={}))Te.call(Xe,Pe)&&Be(De,Pe,Xe[Pe]);if(Ie)for(var Pe of Ie(Xe))xe.call(Xe,Pe)&&Be(De,Pe,Xe[Pe]);return De},Se=(De,Xe,Pe)=>new Promise((Ue,rt)=>{var qe=Qe=>{try{be(Pe.next(Qe))}catch(ht){rt(ht)}},He=Qe=>{try{be(Pe.throw(Qe))}catch(ht){rt(ht)}},be=Qe=>Qe.done?Ue(Qe.value):Promise.resolve(Qe.value).then(qe,He);be((Pe=Pe.apply(De,Xe)).next())});function pe(De,Xe){const[Pe,Ue]=(0,E.useState)(Xe),[rt,qe]=(0,E.useState)(!1),[He,be]=(0,E.useState)();return[Pe,rt,(ht,Je=!1)=>Se(this,null,function*(){const Ze=Je?Xe:de(de({},Pe),ht);qe(!0),Ue(Ze);const ye=yield De(Ze);return qe(!1),be(ye),ye}),He,be]}},38780:function(In,Ut){"use strict";function te(){const E=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let fe=1;fe<arguments.length;fe++){const Ie=fe<0||arguments.length<=fe?void 0:arguments[fe];Ie&&Object.keys(Ie).forEach(Te=>{const xe=Ie[Te];xe!==void 0&&(E[Te]=xe)})}return E}Ut.Z=te},81643:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return E}});const E=fe=>fe?typeof fe=="function"?fe():fe:null},66367:function(In,Ut,te){"use strict";te.d(Ut,{F:function(){return E},Z:function(){return fe}});function E(Ie){return Ie!=null&&Ie===Ie.window}function fe(Ie,Te){var xe,Be;if(typeof window=="undefined")return 0;const de=Te?"scrollTop":"scrollLeft";let Se=0;return E(Ie)?Se=Ie[Te?"pageYOffset":"pageXOffset"]:Ie instanceof Document?Se=Ie.documentElement[de]:(Ie instanceof HTMLElement||Ie)&&(Se=Ie[de]),Ie&&!E(Ie)&&typeof Se!="number"&&(Se=(Be=((xe=Ie.ownerDocument)!==null&&xe!==void 0?xe:Ie).documentElement)===null||Be===void 0?void 0:Be[de]),Se}},57838:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return fe}});var E=te(67294);function fe(){const[,Ie]=E.useReducer(Te=>Te+1,0);return Ie}},58375:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Te}});var E=te(96523);function fe(xe,Be,de,Se){const pe=de-Be;return xe/=Se/2,xe<1?pe/2*xe*xe*xe+Be:pe/2*((xe-=2)*xe*xe+2)+Be}var Ie=te(66367);function Te(xe){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:de=()=>window,callback:Se,duration:pe=450}=Be,De=de(),Xe=(0,Ie.Z)(De,!0),Pe=Date.now(),Ue=()=>{const qe=Date.now()-Pe,He=fe(qe>pe?pe:qe,Xe,xe,pe);(0,Ie.F)(De)?De.scrollTo(window.pageXOffset,He):De instanceof Document||De.constructor.name==="HTMLDocument"?De.documentElement.scrollTop=He:De.scrollTop=He,qe<pe?(0,E.Z)(Ue):typeof Se=="function"&&Se()};(0,E.Z)(Ue)}},9708:function(In,Ut,te){"use strict";te.d(Ut,{F:function(){return xe},Z:function(){return Te}});var E=te(94184),fe=te.n(E);const Ie=null;function Te(Be,de,Se){return fe()({[`${Be}-status-success`]:de==="success",[`${Be}-status-warning`]:de==="warning",[`${Be}-status-error`]:de==="error",[`${Be}-status-validating`]:de==="validating",[`${Be}-has-feedback`]:Se})}const xe=(Be,de)=>de||Be},85673:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return ft}});var E=te(94184),fe=te.n(E),Ie=te(37419),Te=te(1337),xe=te(67294),Be=te(96159),de=te(53124),Se=te(42922),pe=te(35874);const De=We=>{let{children:gt}=We;const{getPrefixCls:kt}=xe.useContext(de.E_),xt=kt("breadcrumb");return xe.createElement("li",{className:`${xt}-separator`,"aria-hidden":"true"},gt===""?gt:gt||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Xe=De,Pe=function(We,gt){var kt={};for(var xt in We)Object.prototype.hasOwnProperty.call(We,xt)&>.indexOf(xt)<0&&(kt[xt]=We[xt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,xt=Object.getOwnPropertySymbols(We);et<xt.length;et++)gt.indexOf(xt[et])<0&&Object.prototype.propertyIsEnumerable.call(We,xt[et])&&(kt[xt[et]]=We[xt[et]]);return kt};function Ue(We,gt){if(We.title===void 0||We.title===null)return null;const kt=Object.keys(gt).join("|");return typeof We.title=="object"?We.title:String(We.title).replace(new RegExp(`:(${kt})`,"g"),(xt,et)=>gt[et]||xt)}function rt(We,gt,kt,xt){if(kt==null)return null;const{className:et,onClick:Fe}=gt,Dt=Pe(gt,["className","onClick"]),qt=Object.assign(Object.assign({},(0,Te.Z)(Dt,{data:!0,aria:!0})),{onClick:Fe});return xt!==void 0?xe.createElement("a",Object.assign({},qt,{className:fe()(`${We}-link`,et),href:xt}),kt):xe.createElement("span",Object.assign({},qt,{className:fe()(`${We}-link`,et)}),kt)}function qe(We,gt){return(xt,et,Fe,Dt,qt)=>{if(gt)return gt(xt,et,Fe,Dt);const Xt=Ue(xt,et);return rt(We,xt,Xt,qt)}}var He=function(We,gt){var kt={};for(var xt in We)Object.prototype.hasOwnProperty.call(We,xt)&>.indexOf(xt)<0&&(kt[xt]=We[xt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,xt=Object.getOwnPropertySymbols(We);et<xt.length;et++)gt.indexOf(xt[et])<0&&Object.prototype.propertyIsEnumerable.call(We,xt[et])&&(kt[xt[et]]=We[xt[et]]);return kt};const be=We=>{const{prefixCls:gt,separator:kt="/",children:xt,menu:et,overlay:Fe,dropdownProps:Dt,href:qt}=We,Et=(zt=>{if(et||Fe){const Yt=Object.assign({},Dt);if(et){const Vn=et||{},{items:Pn}=Vn,_t=He(Vn,["items"]);Yt.menu=Object.assign(Object.assign({},_t),{items:Pn==null?void 0:Pn.map((pn,sr)=>{var{key:Tn,title:Oe,label:me,path:he}=pn,ge=He(pn,["key","title","label","path"]);let ve=me!=null?me:Oe;return he&&(ve=xe.createElement("a",{href:`${qt}${he}`},ve)),Object.assign(Object.assign({},ge),{key:Tn!=null?Tn:sr,label:ve})})})}else Fe&&(Yt.overlay=Fe);return xe.createElement(pe.Z,Object.assign({placement:"bottom"},Yt),xe.createElement("span",{className:`${gt}-overlay-link`},zt,xe.createElement(Se.Z,null)))}return zt})(xt);return Et!=null?xe.createElement(xe.Fragment,null,xe.createElement("li",null,Et),kt&&xe.createElement(Xe,null,kt)):null},Qe=We=>{const{prefixCls:gt,children:kt,href:xt}=We,et=He(We,["prefixCls","children","href"]),{getPrefixCls:Fe}=xe.useContext(de.E_),Dt=Fe("breadcrumb",gt);return xe.createElement(be,Object.assign({},et,{prefixCls:Dt}),rt(Dt,et,kt,xt))};Qe.__ANT_BREADCRUMB_ITEM=!0;var ht=Qe,Je=te(14747),Ze=te(67968),ye=te(45503);const Ee=We=>{const{componentCls:gt,iconCls:kt}=We;return{[gt]:Object.assign(Object.assign({},(0,Je.Wf)(We)),{color:We.itemColor,fontSize:We.fontSize,[kt]:{fontSize:We.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:We.linkColor,transition:`color ${We.motionDurationMid}`,padding:`0 ${We.paddingXXS}px`,borderRadius:We.borderRadiusSM,height:We.lineHeight*We.fontSize,display:"inline-block",marginInline:-We.marginXXS,"&:hover":{color:We.linkHoverColor,backgroundColor:We.colorBgTextHover}},(0,Je.Qy)(We)),"li:last-child":{color:We.lastItemColor},[`${gt}-separator`]:{marginInline:We.separatorMargin,color:We.separatorColor},[`${gt}-link`]:{[`
|
|
|
> ${kt} + span,
|
|
|
> ${kt} + a
|
|
|
`]:{marginInlineStart:We.marginXXS}},[`${gt}-overlay-link`]:{borderRadius:We.borderRadiusSM,height:We.lineHeight*We.fontSize,display:"inline-block",padding:`0 ${We.paddingXXS}px`,marginInline:-We.marginXXS,[`> ${kt}`]:{marginInlineStart:We.marginXXS,fontSize:We.fontSizeIcon},"&:hover":{color:We.linkHoverColor,backgroundColor:We.colorBgTextHover,a:{color:We.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${We.componentCls}-rtl`]:{direction:"rtl"}})}};var Ye=(0,Ze.Z)("Breadcrumb",We=>{const gt=(0,ye.TS)(We,{});return[Ee(gt)]},We=>({itemColor:We.colorTextDescription,lastItemColor:We.colorText,iconFontSize:We.fontSize,linkColor:We.colorTextDescription,linkHoverColor:We.colorText,separatorColor:We.colorTextDescription,separatorMargin:We.marginXS})),Ne=function(We,gt){var kt={};for(var xt in We)Object.prototype.hasOwnProperty.call(We,xt)&>.indexOf(xt)<0&&(kt[xt]=We[xt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,xt=Object.getOwnPropertySymbols(We);et<xt.length;et++)gt.indexOf(xt[et])<0&&Object.prototype.propertyIsEnumerable.call(We,xt[et])&&(kt[xt[et]]=We[xt[et]]);return kt};function ot(We){const{breadcrumbName:gt,children:kt}=We,xt=Ne(We,["breadcrumbName","children"]),et=Object.assign({title:gt},xt);return kt&&(et.menu={items:kt.map(Fe=>{var{breadcrumbName:Dt}=Fe,qt=Ne(Fe,["breadcrumbName"]);return Object.assign(Object.assign({},qt),{title:Dt})})}),et}function ct(We,gt){return(0,xe.useMemo)(()=>We||(gt?gt.map(ot):null),[We,gt])}var _e=function(We,gt){var kt={};for(var xt in We)Object.prototype.hasOwnProperty.call(We,xt)&>.indexOf(xt)<0&&(kt[xt]=We[xt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,xt=Object.getOwnPropertySymbols(We);et<xt.length;et++)gt.indexOf(xt[et])<0&&Object.prototype.propertyIsEnumerable.call(We,xt[et])&&(kt[xt[et]]=We[xt[et]]);return kt};const Me=(We,gt)=>{if(gt===void 0)return gt;let kt=(gt||"").replace(/^\//,"");return Object.keys(We).forEach(xt=>{kt=kt.replace(`:${xt}`,We[xt])}),kt},pt=We=>{const{prefixCls:gt,separator:kt="/",style:xt,className:et,rootClassName:Fe,routes:Dt,items:qt,children:Xt,itemRender:Et,params:zt={}}=We,Yt=_e(We,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Vn,direction:Pn,breadcrumb:_t}=xe.useContext(de.E_);let pn;const sr=Vn("breadcrumb",gt),[Tn,Oe]=Ye(sr),me=ct(qt,Dt),he=qe(sr,Et);if(me&&me.length>0){const se=[],Ke=qt||Dt;pn=me.map((bt,Wt)=>{const{path:yn,key:bn,type:cn,menu:wn,overlay:Tt,onClick:nn,className:fn,separator:sn,dropdownProps:an}=bt,xr=Me(zt,yn);xr!==void 0&&se.push(xr);const Lt=bn!=null?bn:Wt;if(cn==="separator")return xe.createElement(Xe,{key:Lt},sn);const Vt={},cr=Wt===me.length-1;wn?Vt.menu=wn:Tt&&(Vt.overlay=Tt);let{href:En}=bt;return se.length&&xr!==void 0&&(En=`#/${se.join("/")}`),xe.createElement(be,Object.assign({key:Lt},Vt,(0,Te.Z)(bt,{data:!0,aria:!0}),{className:fn,dropdownProps:an,href:En,separator:cr?"":kt,onClick:nn,prefixCls:sr}),he(bt,zt,Ke,se,En))})}else if(Xt){const se=(0,Ie.Z)(Xt).length;pn=(0,Ie.Z)(Xt).map((Ke,bt)=>{if(!Ke)return Ke;const Wt=bt===se-1;return(0,Be.Tm)(Ke,{separator:Wt?"":kt,key:bt})})}const ge=fe()(sr,_t==null?void 0:_t.className,{[`${sr}-rtl`]:Pn==="rtl"},et,Fe,Oe),ve=Object.assign(Object.assign({},_t==null?void 0:_t.style),xt);return Tn(xe.createElement("nav",Object.assign({className:ge,style:ve},Yt),xe.createElement("ol",null,pn)))};pt.Item=ht,pt.Separator=Xe;var $e=pt,ft=$e},85546:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return va}});var E=te(74902),fe=te(67294),Ie=te(22751),Te=te(3407),xe=te(91034),Be=te(94184),de=te.n(Be),Se=te(87462),pe=te(97685),De=te(45987),Xe=te(4942),Pe=te(1413),Ue=te(71002);function rt(tt){var nt=fe.useRef();nt.current=tt;var Qt=fe.useCallback(function(){for(var Kt,Bn=arguments.length,Gn=new Array(Bn),_n=0;_n<Bn;_n++)Gn[_n]=arguments[_n];return(Kt=nt.current)===null||Kt===void 0?void 0:Kt.call.apply(Kt,[nt].concat(Gn))},[]);return Qt}function qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var He=qe()?fe.useLayoutEffect:fe.useEffect,be=He,Qe=function(nt,Qt){var Kt=fe.useRef(!0);He(function(){if(!Kt.current)return nt()},Qt),He(function(){return Kt.current=!1,function(){Kt.current=!0}},[])};function ht(tt){var nt=fe.useRef(!1),Qt=fe.useState(tt),Kt=(0,pe.Z)(Qt,2),Bn=Kt[0],Gn=Kt[1];fe.useEffect(function(){return nt.current=!1,function(){nt.current=!0}},[]);function _n(Pr,Kr){Kr&&nt.current||Gn(Pr)}return[Bn,_n]}function Je(tt){return tt!==void 0}function Ze(tt,nt){var Qt=nt||{},Kt=Qt.defaultValue,Bn=Qt.value,Gn=Qt.onChange,_n=Qt.postState,Pr=ht(function(){return Je(Bn)?Bn:Je(Kt)?typeof Kt=="function"?Kt():Kt:typeof tt=="function"?tt():tt}),Kr=(0,pe.Z)(Pr,2),Er=Kr[0],ta=Kr[1],zi=Bn!==void 0?Bn:Er,ji=_n?_n(zi):zi,Li=rt(Gn),ea=ht([zi]),Hi=(0,pe.Z)(ea,2),ka=Hi[0],vo=Hi[1];Qe(function(){var Zo=ka[0];Er!==Zo&&Li(Er,Zo)},[ka]),Qe(function(){Je(Bn)||ta(Bn)},[Bn]);var Fo=rt(function(Zo,Ao){ta(Zo,Ao),vo([zi],Ao)});return[ji,Fo]}var ye={};function Ee(tt,nt){}function Ye(tt,nt){}function Ne(){ye={}}function ot(tt,nt,Qt){!nt&&!ye[Qt]&&(tt(!1,Qt),ye[Qt]=!0)}function ct(tt,nt){ot(Ee,tt,nt)}function _e(tt,nt){ot(Ye,tt,nt)}var Me=ct,pt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var tt=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(tt)||/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(tt==null?void 0:tt.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(nt){var Qt=nt.keyCode;if(nt.altKey&&!nt.ctrlKey||nt.metaKey||Qt>=$e.F1&&Qt<=$e.F12)return!1;switch(Qt){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(nt){if(nt>=$e.ZERO&&nt<=$e.NINE||nt>=$e.NUM_ZERO&&nt<=$e.NUM_MULTIPLY||nt>=$e.A&&nt<=$e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&nt===0)return!0;switch(nt){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}}},ft=$e,We=te(16357);function gt(tt,nt,Qt){var Kt=fe.useRef({});return(!("value"in Kt.current)||Qt(Kt.current.condition,nt))&&(Kt.current.value=tt(),Kt.current.condition=nt),Kt.current.value}function kt(tt,nt){typeof tt=="function"?tt(nt):(0,Ue.Z)(tt)==="object"&&tt&&"current"in tt&&(tt.current=nt)}function xt(){for(var tt=arguments.length,nt=new Array(tt),Qt=0;Qt<tt;Qt++)nt[Qt]=arguments[Qt];var Kt=nt.filter(function(Bn){return Bn});return Kt.length<=1?Kt[0]:function(Bn){nt.forEach(function(Gn){kt(Gn,Bn)})}}function et(){for(var tt=arguments.length,nt=new Array(tt),Qt=0;Qt<tt;Qt++)nt[Qt]=arguments[Qt];return gt(function(){return xt.apply(void 0,nt)},nt,function(Kt,Bn){return Kt.length===Bn.length&&Kt.every(function(Gn,_n){return Gn===Bn[_n]})})}function Fe(tt){var nt,Qt,Kt=isMemo(tt)?tt.type.type:tt.type;return!(typeof Kt=="function"&&!((nt=Kt.prototype)!==null&&nt!==void 0&&nt.render)||typeof tt=="function"&&!((Qt=tt.prototype)!==null&&Qt!==void 0&&Qt.render))}var Dt=function(nt){var Qt=nt.className,Kt=nt.customizeIcon,Bn=nt.customizeIconProps,Gn=nt.onMouseDown,_n=nt.onClick,Pr=nt.children,Kr;return typeof Kt=="function"?Kr=Kt(Bn):Kr=Kt,fe.createElement("span",{className:Qt,onMouseDown:function(ta){ta.preventDefault(),Gn&&Gn(ta)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:_n,"aria-hidden":!0},Kr!==void 0?Kr:fe.createElement("span",{className:de()(Qt.split(/\s+/).map(function(Er){return"".concat(Er,"-icon")}))},Pr))},qt=Dt;function Xt(tt,nt,Qt,Kt,Bn){var Gn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,_n=arguments.length>6?arguments[6]:void 0,Pr=arguments.length>7?arguments[7]:void 0,Kr=fe.useMemo(function(){if((0,Ue.Z)(Kt)==="object")return Kt.clearIcon;if(Bn)return Bn},[Kt,Bn]),Er=fe.useMemo(function(){return!!(!Gn&&Kt&&(Qt.length||_n)&&!(Pr==="combobox"&&_n===""))},[Kt,Gn,Qt.length,_n,Pr]);return{allowClear:Er,clearIcon:fe.createElement(qt,{className:"".concat(tt,"-clear"),onMouseDown:nt,customizeIcon:Kr},"\xD7")}}var Et=fe.createContext(null);function zt(){return fe.useContext(Et)}function Yt(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,nt=fe.useState(!1),Qt=(0,pe.Z)(nt,2),Kt=Qt[0],Bn=Qt[1],Gn=fe.useRef(null),_n=function(){window.clearTimeout(Gn.current)};fe.useEffect(function(){return _n},[]);var Pr=function(Er,ta){_n(),Gn.current=window.setTimeout(function(){Bn(Er),ta&&ta()},tt)};return[Kt,Pr,_n]}function Vn(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,nt=fe.useRef(null),Qt=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(Qt.current)}},[]);function Kt(Bn){(Bn||nt.current===null)&&(nt.current=Bn),window.clearTimeout(Qt.current),Qt.current=window.setTimeout(function(){nt.current=null},tt)}return[function(){return nt.current},Kt]}function Pn(tt,nt,Qt,Kt){var Bn=fe.useRef(null);Bn.current={open:nt,triggerOpen:Qt,customizedTrigger:Kt},fe.useEffect(function(){function Gn(_n){var Pr;if(!((Pr=Bn.current)!==null&&Pr!==void 0&&Pr.customizedTrigger)){var Kr=_n.target;Kr.shadowRoot&&_n.composed&&(Kr=_n.composedPath()[0]||Kr),Bn.current.open&&tt().filter(function(Er){return Er}).every(function(Er){return!Er.contains(Kr)&&Er!==Kr})&&Bn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Gn),function(){return window.removeEventListener("mousedown",Gn)}},[])}var _t=`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`,pn=`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`,sr="".concat(_t," ").concat(pn).split(/[\s\n]+/),Tn="aria-",Oe="data-";function me(tt,nt){return tt.indexOf(nt)===0}function he(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt;nt===!1?Qt={aria:!0,data:!0,attr:!0}:nt===!0?Qt={aria:!0}:Qt=(0,Pe.Z)({},nt);var Kt={};return Object.keys(tt).forEach(function(Bn){(Qt.aria&&(Bn==="role"||me(Bn,Tn))||Qt.data&&me(Bn,Oe)||Qt.attr&&sr.includes(Bn))&&(Kt[Bn]=tt[Bn])}),Kt}var ge=te(48555);function ve(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var se=ve()?fe.useLayoutEffect:fe.useEffect,Ke=function(nt,Qt){var Kt=fe.useRef(!0);se(function(){return nt(Kt.current)},Qt),se(function(){return Kt.current=!1,function(){Kt.current=!0}},[])},bt=function(nt,Qt){Ke(function(Kt){if(!Kt)return nt()},Qt)},Wt=Ke,yn=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],bn=void 0;function cn(tt,nt){var Qt=tt.prefixCls,Kt=tt.invalidate,Bn=tt.item,Gn=tt.renderItem,_n=tt.responsive,Pr=tt.responsiveDisabled,Kr=tt.registerSize,Er=tt.itemKey,ta=tt.className,zi=tt.style,ji=tt.children,Li=tt.display,ea=tt.order,Hi=tt.component,ka=Hi===void 0?"div":Hi,vo=(0,De.Z)(tt,yn),Fo=_n&&!Li;function Zo(Xo){Kr(Er,Xo)}fe.useEffect(function(){return function(){Zo(null)}},[]);var Ao=Gn&&Bn!==bn?Gn(Bn):ji,qo;Kt||(qo={opacity:Fo?0:1,height:Fo?0:bn,overflowY:Fo?"hidden":bn,order:_n?ea:bn,pointerEvents:Fo?"none":bn,position:Fo?"absolute":bn});var go={};Fo&&(go["aria-hidden"]=!0);var Io=fe.createElement(ka,(0,Se.Z)({className:de()(!Kt&&Qt,ta),style:(0,Pe.Z)((0,Pe.Z)({},qo),zi)},go,vo,{ref:nt}),Ao);return _n&&(Io=fe.createElement(ge.Z,{onResize:function(Fa){var _a=Fa.offsetWidth;Zo(_a)},disabled:Pr},Io)),Io}var wn=fe.forwardRef(cn);wn.displayName="Item";var Tt=wn;function nn(tt){var nt=fe.useRef();nt.current=tt;var Qt=fe.useCallback(function(){for(var Kt,Bn=arguments.length,Gn=new Array(Bn),_n=0;_n<Bn;_n++)Gn[_n]=arguments[_n];return(Kt=nt.current)===null||Kt===void 0?void 0:Kt.call.apply(Kt,[nt].concat(Gn))},[]);return Qt}var fn=te(73935),sn=function(nt){return+setTimeout(nt,16)},an=function(nt){return clearTimeout(nt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(sn=function(nt){return window.requestAnimationFrame(nt)},an=function(nt){return window.cancelAnimationFrame(nt)});var xr=0,Lt=new Map;function Vt(tt){Lt.delete(tt)}var cr=function(nt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;xr+=1;var Kt=xr;function Bn(Gn){if(Gn===0)Vt(Kt),nt();else{var _n=sn(function(){Bn(Gn-1)});Lt.set(Kt,_n)}}return Bn(Qt),Kt};cr.cancel=function(tt){var nt=Lt.get(tt);return Vt(nt),an(nt)};var En=cr;function en(tt){if(typeof MessageChannel=="undefined")En(tt);else{var nt=new MessageChannel;nt.port1.onmessage=function(){return tt()},nt.port2.postMessage(void 0)}}function Fr(){var tt=fe.useRef(null),nt=function(Kt){tt.current||(tt.current=[],en(function(){(0,fn.unstable_batchedUpdates)(function(){tt.current.forEach(function(Bn){Bn()}),tt.current=null})})),tt.current.push(Kt)};return nt}function Ur(tt,nt){var Qt=fe.useState(nt),Kt=(0,pe.Z)(Qt,2),Bn=Kt[0],Gn=Kt[1],_n=nn(function(Pr){tt(function(){Gn(Pr)})});return[Bn,_n]}var ai=fe.createContext(null),ei=["component"],Mi=["className"],ci=["className"],Qn=function(nt,Qt){var Kt=fe.useContext(ai);if(!Kt){var Bn=nt.component,Gn=Bn===void 0?"div":Bn,_n=(0,De.Z)(nt,ei);return fe.createElement(Gn,(0,Se.Z)({},_n,{ref:Qt}))}var Pr=Kt.className,Kr=(0,De.Z)(Kt,Mi),Er=nt.className,ta=(0,De.Z)(nt,ci);return fe.createElement(ai.Provider,{value:null},fe.createElement(Tt,(0,Se.Z)({ref:Qt,className:de()(Pr,Er)},Kr,ta)))},Or=fe.forwardRef(Qn);Or.displayName="RawItem";var Hr=Or,vi=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Zi="responsive",$t="invalidate";function $n(tt){return"+ ".concat(tt.length," ...")}function mn(tt,nt){var Qt=tt.prefixCls,Kt=Qt===void 0?"rc-overflow":Qt,Bn=tt.data,Gn=Bn===void 0?[]:Bn,_n=tt.renderItem,Pr=tt.renderRawItem,Kr=tt.itemKey,Er=tt.itemWidth,ta=Er===void 0?10:Er,zi=tt.ssr,ji=tt.style,Li=tt.className,ea=tt.maxCount,Hi=tt.renderRest,ka=tt.renderRawRest,vo=tt.suffix,Fo=tt.component,Zo=Fo===void 0?"div":Fo,Ao=tt.itemComponent,qo=tt.onVisibleChange,go=(0,De.Z)(tt,vi),Io=zi==="full",Xo=Fr(),Fa=Ur(Xo,null),_a=(0,pe.Z)(Fa,2),no=_a[0],Yo=_a[1],Wo=no||0,il=Ur(Xo,new Map),el=(0,pe.Z)(il,2),cl=el[0],vl=el[1],gl=Ur(Xo,0),kl=(0,pe.Z)(gl,2),gr=kl[0],Gi=kl[1],ho=Ur(Xo,0),Ga=(0,pe.Z)(ho,2),mi=Ga[0],Sa=Ga[1],wa=Ur(Xo,0),Qa=(0,pe.Z)(wa,2),ca=Qa[0],ba=Qa[1],Ta=(0,fe.useState)(null),Eo=(0,pe.Z)(Ta,2),al=Eo[0],oa=Eo[1],Jo=(0,fe.useState)(null),Po=(0,pe.Z)(Jo,2),ll=Po[0],Yl=Po[1],$l=fe.useMemo(function(){return ll===null&&Io?Number.MAX_SAFE_INTEGER:ll||0},[ll,no]),us=(0,fe.useState)(!1),ds=(0,pe.Z)(us,2),as=ds[0],uu=ds[1],Xs="".concat(Kt,"-item"),wu=Math.max(gr,mi),Rs=ea===Zi,ws=Gn.length&&Rs,Js=ea===$t,js=ws||typeof ea=="number"&&Gn.length>ea,Bs=(0,fe.useMemo)(function(){var Hl=Gn;return ws?no===null&&Io?Hl=Gn:Hl=Gn.slice(0,Math.min(Gn.length,Wo/ta)):typeof ea=="number"&&(Hl=Gn.slice(0,ea)),Hl},[Gn,ta,no,ea,ws]),yu=(0,fe.useMemo)(function(){return ws?Gn.slice($l+1):Gn.slice(Bs.length)},[Gn,Bs,ws,$l]),$s=(0,fe.useCallback)(function(Hl,qa){var jo;return typeof Kr=="function"?Kr(Hl):(jo=Kr&&(Hl==null?void 0:Hl[Kr]))!==null&&jo!==void 0?jo:qa},[Kr]),Fs=(0,fe.useCallback)(_n||function(Hl){return Hl},[_n]);function bu(Hl,qa,jo){ll===Hl&&(qa===void 0||qa===al)||(Yl(Hl),jo||(uu(Hl<Gn.length-1),qo==null||qo(Hl)),qa!==void 0&&oa(qa))}function fc(Hl,qa){Yo(qa.clientWidth)}function $u(Hl,qa){vl(function(jo){var hl=new Map(jo);return qa===null?hl.delete(Hl):hl.set(Hl,qa),hl})}function Hs(Hl,qa){Sa(qa),Gi(mi)}function rs(Hl,qa){ba(qa)}function Zs(Hl){return cl.get($s(Bs[Hl],Hl))}Wt(function(){if(Wo&&typeof wu=="number"&&Bs){var Hl=ca,qa=Bs.length,jo=qa-1;if(!qa){bu(0,null);return}for(var hl=0;hl<qa;hl+=1){var Il=Zs(hl);if(Io&&(Il=Il||0),Il===void 0){bu(hl-1,void 0,!0);break}if(Hl+=Il,jo===0&&Hl<=Wo||hl===jo-1&&Hl+Zs(jo)<=Wo){bu(jo,null);break}else if(Hl+wu>Wo){bu(hl-1,Hl-Il-ca+mi);break}}vo&&Zs(0)+ca>Wo&&oa(null)}},[Wo,cl,mi,ca,$s,Bs]);var Au=as&&!!yu.length,_u={};al!==null&&ws&&(_u={position:"absolute",left:al,top:0});var Os={prefixCls:Xs,responsive:ws,component:Ao,invalidate:Js},gs=Pr?function(Hl,qa){var jo=$s(Hl,qa);return fe.createElement(ai.Provider,{key:jo,value:(0,Pe.Z)((0,Pe.Z)({},Os),{},{order:qa,item:Hl,itemKey:jo,registerSize:$u,display:qa<=$l})},Pr(Hl,qa))}:function(Hl,qa){var jo=$s(Hl,qa);return fe.createElement(Tt,(0,Se.Z)({},Os,{order:qa,key:jo,item:Hl,renderItem:Fs,itemKey:jo,registerSize:$u,display:qa<=$l}))},fs,Mu={order:Au?$l:Number.MAX_SAFE_INTEGER,className:"".concat(Xs,"-rest"),registerSize:Hs,display:Au};if(ka)ka&&(fs=fe.createElement(ai.Provider,{value:(0,Pe.Z)((0,Pe.Z)({},Os),Mu)},ka(yu)));else{var Gs=Hi||$n;fs=fe.createElement(Tt,(0,Se.Z)({},Os,Mu),typeof Gs=="function"?Gs(yu):Gs)}var mu=fe.createElement(Zo,(0,Se.Z)({className:de()(!Js&&Kt,Li),style:ji,ref:nt},go),Bs.map(gs),js?fs:null,vo&&fe.createElement(Tt,(0,Se.Z)({},Os,{responsive:Rs,responsiveDisabled:!ws,order:$l,className:"".concat(Xs,"-suffix"),registerSize:rs,display:!0,style:_u}),vo));return Rs&&(mu=fe.createElement(ge.Z,{onResize:fc,disabled:!ws},mu)),mu}var Yn=fe.forwardRef(mn);Yn.displayName="Overflow",Yn.Item=Hr,Yn.RESPONSIVE=Zi,Yn.INVALIDATE=$t;var Dr=Yn,hi=Dr,oi=function(nt,Qt){var Kt,Bn,Gn=nt.prefixCls,_n=nt.id,Pr=nt.inputElement,Kr=nt.disabled,Er=nt.tabIndex,ta=nt.autoFocus,zi=nt.autoComplete,ji=nt.editable,Li=nt.activeDescendantId,ea=nt.value,Hi=nt.maxLength,ka=nt.onKeyDown,vo=nt.onMouseDown,Fo=nt.onChange,Zo=nt.onPaste,Ao=nt.onCompositionStart,qo=nt.onCompositionEnd,go=nt.open,Io=nt.attrs,Xo=Pr||fe.createElement("input",null),Fa=Xo,_a=Fa.ref,no=Fa.props,Yo=no.onKeyDown,Wo=no.onChange,il=no.onMouseDown,el=no.onCompositionStart,cl=no.onCompositionEnd,vl=no.style;return"maxLength"in Xo.props,Xo=fe.cloneElement(Xo,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({type:"search"},no),{},{id:_n,ref:xt(Qt,_a),disabled:Kr,tabIndex:Er,autoComplete:zi||"off",autoFocus:ta,className:de()("".concat(Gn,"-selection-search-input"),(Kt=Xo)===null||Kt===void 0||(Bn=Kt.props)===null||Bn===void 0?void 0:Bn.className),role:"combobox","aria-label":"Search","aria-expanded":go||!1,"aria-haspopup":"listbox","aria-owns":"".concat(_n,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(_n,"_list"),"aria-activedescendant":go?Li:void 0},Io),{},{value:ji?ea:"",maxLength:Hi,readOnly:!ji,unselectable:ji?null:"on",style:(0,Pe.Z)((0,Pe.Z)({},vl),{},{opacity:ji?null:0}),onKeyDown:function(kl){ka(kl),Yo&&Yo(kl)},onMouseDown:function(kl){vo(kl),il&&il(kl)},onChange:function(kl){Fo(kl),Wo&&Wo(kl)},onCompositionStart:function(kl){Ao(kl),el&&el(kl)},onCompositionEnd:function(kl){qo(kl),cl&&cl(kl)},onPaste:Zo})),Xo},Vr=fe.forwardRef(oi);Vr.displayName="Input";var Ct=Vr;function hn(tt){return Array.isArray(tt)?tt:tt!==void 0?[tt]:[]}var An=typeof window!="undefined"&&window.document&&window.document.documentElement,jn=An;function Bt(tt){return tt!=null}function on(tt){return!tt&&tt!==0}function Kn(tt){return["string","number"].includes((0,Ue.Z)(tt))}function Dn(tt){var nt=void 0;return tt&&(Kn(tt.title)?nt=tt.title.toString():Kn(tt.label)&&(nt=tt.label.toString())),nt}function rr(tt,nt){jn?fe.useLayoutEffect(tt,nt):fe.useEffect(tt,nt)}function er(tt){var nt;return(nt=tt.key)!==null&&nt!==void 0?nt:tt.value}var Gr=function(nt){nt.preventDefault(),nt.stopPropagation()},ra=function(nt){var Qt=nt.id,Kt=nt.prefixCls,Bn=nt.values,Gn=nt.open,_n=nt.searchValue,Pr=nt.autoClearSearchValue,Kr=nt.inputRef,Er=nt.placeholder,ta=nt.disabled,zi=nt.mode,ji=nt.showSearch,Li=nt.autoFocus,ea=nt.autoComplete,Hi=nt.activeDescendantId,ka=nt.tabIndex,vo=nt.removeIcon,Fo=nt.maxTagCount,Zo=nt.maxTagTextLength,Ao=nt.maxTagPlaceholder,qo=Ao===void 0?function(oa){return"+ ".concat(oa.length," ...")}:Ao,go=nt.tagRender,Io=nt.onToggleOpen,Xo=nt.onRemove,Fa=nt.onInputChange,_a=nt.onInputPaste,no=nt.onInputKeyDown,Yo=nt.onInputMouseDown,Wo=nt.onInputCompositionStart,il=nt.onInputCompositionEnd,el=fe.useRef(null),cl=(0,fe.useState)(0),vl=(0,pe.Z)(cl,2),gl=vl[0],kl=vl[1],gr=(0,fe.useState)(!1),Gi=(0,pe.Z)(gr,2),ho=Gi[0],Ga=Gi[1],mi="".concat(Kt,"-selection"),Sa=Gn||zi==="multiple"&&Pr===!1||zi==="tags"?_n:"",wa=zi==="tags"||zi==="multiple"&&Pr===!1||ji&&(Gn||ho);rr(function(){kl(el.current.scrollWidth)},[Sa]);function Qa(oa,Jo,Po,ll,Yl){return fe.createElement("span",{className:de()("".concat(mi,"-item"),(0,Xe.Z)({},"".concat(mi,"-item-disabled"),Po)),title:Dn(oa)},fe.createElement("span",{className:"".concat(mi,"-item-content")},Jo),ll&&fe.createElement(qt,{className:"".concat(mi,"-item-remove"),onMouseDown:Gr,onClick:Yl,customizeIcon:vo},"\xD7"))}function ca(oa,Jo,Po,ll,Yl){var $l=function(ds){Gr(ds),Io(!Gn)};return fe.createElement("span",{onMouseDown:$l},go({label:Jo,value:oa,disabled:Po,closable:ll,onClose:Yl}))}function ba(oa){var Jo=oa.disabled,Po=oa.label,ll=oa.value,Yl=!ta&&!Jo,$l=Po;if(typeof Zo=="number"&&(typeof Po=="string"||typeof Po=="number")){var us=String($l);us.length>Zo&&($l="".concat(us.slice(0,Zo),"..."))}var ds=function(uu){uu&&uu.stopPropagation(),Xo(oa)};return typeof go=="function"?ca(ll,$l,Jo,Yl,ds):Qa(oa,$l,Jo,Yl,ds)}function Ta(oa){var Jo=typeof qo=="function"?qo(oa):qo;return Qa({title:Jo},Jo,!1)}var Eo=fe.createElement("div",{className:"".concat(mi,"-search"),style:{width:gl},onFocus:function(){Ga(!0)},onBlur:function(){Ga(!1)}},fe.createElement(Ct,{ref:Kr,open:Gn,prefixCls:Kt,id:Qt,inputElement:null,disabled:ta,autoFocus:Li,autoComplete:ea,editable:wa,activeDescendantId:Hi,value:Sa,onKeyDown:no,onMouseDown:Yo,onChange:Fa,onPaste:_a,onCompositionStart:Wo,onCompositionEnd:il,tabIndex:ka,attrs:he(nt,!0)}),fe.createElement("span",{ref:el,className:"".concat(mi,"-search-mirror"),"aria-hidden":!0},Sa,"\xA0")),al=fe.createElement(hi,{prefixCls:"".concat(mi,"-overflow"),data:Bn,renderItem:ba,renderRest:Ta,suffix:Eo,itemKey:er,maxCount:Fo});return fe.createElement(fe.Fragment,null,al,!Bn.length&&!Sa&&fe.createElement("span",{className:"".concat(mi,"-placeholder")},Er))},Oi=ra,bi=function(nt){var Qt=nt.inputElement,Kt=nt.prefixCls,Bn=nt.id,Gn=nt.inputRef,_n=nt.disabled,Pr=nt.autoFocus,Kr=nt.autoComplete,Er=nt.activeDescendantId,ta=nt.mode,zi=nt.open,ji=nt.values,Li=nt.placeholder,ea=nt.tabIndex,Hi=nt.showSearch,ka=nt.searchValue,vo=nt.activeValue,Fo=nt.maxLength,Zo=nt.onInputKeyDown,Ao=nt.onInputMouseDown,qo=nt.onInputChange,go=nt.onInputPaste,Io=nt.onInputCompositionStart,Xo=nt.onInputCompositionEnd,Fa=nt.title,_a=fe.useState(!1),no=(0,pe.Z)(_a,2),Yo=no[0],Wo=no[1],il=ta==="combobox",el=il||Hi,cl=ji[0],vl=ka||"";il&&vo&&!Yo&&(vl=vo),fe.useEffect(function(){il&&Wo(!1)},[il,vo]);var gl=ta!=="combobox"&&!zi&&!Hi?!1:!!vl,kl=Fa===void 0?Dn(cl):Fa,gr=function(){if(cl)return null;var ho=gl?{visibility:"hidden"}:void 0;return fe.createElement("span",{className:"".concat(Kt,"-selection-placeholder"),style:ho},Li)};return fe.createElement(fe.Fragment,null,fe.createElement("span",{className:"".concat(Kt,"-selection-search")},fe.createElement(Ct,{ref:Gn,prefixCls:Kt,id:Bn,open:zi,inputElement:Qt,disabled:_n,autoFocus:Pr,autoComplete:Kr,editable:el,activeDescendantId:Er,value:vl,onKeyDown:Zo,onMouseDown:Ao,onChange:function(ho){Wo(!0),qo(ho)},onPaste:go,onCompositionStart:Io,onCompositionEnd:Xo,tabIndex:ea,attrs:he(nt,!0),maxLength:il?Fo:void 0})),!il&&cl?fe.createElement("span",{className:"".concat(Kt,"-selection-item"),title:kl,style:gl?{visibility:"hidden"}:void 0},cl.label):null,gr())},Ji=bi;function Ti(tt){return![ft.ESC,ft.SHIFT,ft.BACKSPACE,ft.TAB,ft.WIN_KEY,ft.ALT,ft.META,ft.WIN_KEY_RIGHT,ft.CTRL,ft.SEMICOLON,ft.EQUALS,ft.CAPS_LOCK,ft.CONTEXT_MENU,ft.F1,ft.F2,ft.F3,ft.F4,ft.F5,ft.F6,ft.F7,ft.F8,ft.F9,ft.F10,ft.F11,ft.F12].includes(tt)}var ua=function(nt,Qt){var Kt=(0,fe.useRef)(null),Bn=(0,fe.useRef)(!1),Gn=nt.prefixCls,_n=nt.open,Pr=nt.mode,Kr=nt.showSearch,Er=nt.tokenWithEnter,ta=nt.autoClearSearchValue,zi=nt.onSearch,ji=nt.onSearchSubmit,Li=nt.onToggleOpen,ea=nt.onInputKeyDown,Hi=nt.domRef;fe.useImperativeHandle(Qt,function(){return{focus:function(){Kt.current.focus()},blur:function(){Kt.current.blur()}}});var ka=Vn(0),vo=(0,pe.Z)(ka,2),Fo=vo[0],Zo=vo[1],Ao=function(vl){var gl=vl.which;(gl===ft.UP||gl===ft.DOWN)&&vl.preventDefault(),ea&&ea(vl),gl===ft.ENTER&&Pr==="tags"&&!Bn.current&&!_n&&(ji==null||ji(vl.target.value)),Ti(gl)&&Li(!0)},qo=function(){Zo(!0)},go=(0,fe.useRef)(null),Io=function(vl){zi(vl,!0,Bn.current)!==!1&&Li(!0)},Xo=function(){Bn.current=!0},Fa=function(vl){Bn.current=!1,Pr!=="combobox"&&Io(vl.target.value)},_a=function(vl){var gl=vl.target.value;if(Er&&go.current&&/[\r\n]/.test(go.current)){var kl=go.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");gl=gl.replace(kl,go.current)}go.current=null,Io(gl)},no=function(vl){var gl=vl.clipboardData,kl=gl.getData("text");go.current=kl},Yo=function(vl){var gl=vl.target;if(gl!==Kt.current){var kl=document.body.style.msTouchAction!==void 0;kl?setTimeout(function(){Kt.current.focus()}):Kt.current.focus()}},Wo=function(vl){var gl=Fo();vl.target!==Kt.current&&!gl&&Pr!=="combobox"&&vl.preventDefault(),(Pr!=="combobox"&&(!Kr||!gl)||!_n)&&(_n&&ta!==!1&&zi("",!0,!1),Li())},il={inputRef:Kt,onInputKeyDown:Ao,onInputMouseDown:qo,onInputChange:_a,onInputPaste:no,onInputCompositionStart:Xo,onInputCompositionEnd:Fa},el=Pr==="multiple"||Pr==="tags"?fe.createElement(Oi,(0,Se.Z)({},nt,il)):fe.createElement(Ji,(0,Se.Z)({},nt,il));return fe.createElement("div",{ref:Hi,className:"".concat(Gn,"-selector"),onClick:Yo,onMouseDown:Wo},el)},br=fe.forwardRef(ua);br.displayName="Selector";var Di=br,ni=te(62709),No=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xa=function(nt){var Qt=nt===!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"}}},za=function(nt,Qt){var Kt=nt.prefixCls,Bn=nt.disabled,Gn=nt.visible,_n=nt.children,Pr=nt.popupElement,Kr=nt.animation,Er=nt.transitionName,ta=nt.dropdownStyle,zi=nt.dropdownClassName,ji=nt.direction,Li=ji===void 0?"ltr":ji,ea=nt.placement,Hi=nt.builtinPlacements,ka=nt.dropdownMatchSelectWidth,vo=nt.dropdownRender,Fo=nt.dropdownAlign,Zo=nt.getPopupContainer,Ao=nt.empty,qo=nt.getTriggerDOMNode,go=nt.onPopupVisibleChange,Io=nt.onPopupMouseEnter,Xo=(0,De.Z)(nt,No),Fa="".concat(Kt,"-dropdown"),_a=Pr;vo&&(_a=vo(Pr));var no=fe.useMemo(function(){return Hi||xa(ka)},[Hi,ka]),Yo=Kr?"".concat(Fa,"-").concat(Kr):Er,Wo=typeof ka=="number",il=fe.useMemo(function(){return Wo?null:ka===!1?"minWidth":"width"},[ka,Wo]),el=ta;Wo&&(el=(0,Pe.Z)((0,Pe.Z)({},el),{},{width:ka}));var cl=fe.useRef(null);return fe.useImperativeHandle(Qt,function(){return{getPopupElement:function(){return cl.current}}}),fe.createElement(ni.Z,(0,Se.Z)({},Xo,{showAction:go?["click"]:[],hideAction:go?["click"]:[],popupPlacement:ea||(Li==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:no,prefixCls:Fa,popupTransitionName:Yo,popup:fe.createElement("div",{ref:cl,onMouseEnter:Io},_a),stretch:il,popupAlign:Fo,popupVisible:Gn,getPopupContainer:Zo,popupClassName:de()(zi,(0,Xe.Z)({},"".concat(Fa,"-empty"),Ao)),popupStyle:el,getTriggerDOMNode:qo,onPopupVisibleChange:go}),_n)},Lo=fe.forwardRef(za);Lo.displayName="SelectTrigger";var Ea=Lo,zo=te(84506);function gi(tt,nt){var Qt=tt.key,Kt;return"value"in tt&&(Kt=tt.value),Qt!=null?Qt:Kt!==void 0?Kt:"rc-index-key-".concat(nt)}function Cl(tt,nt){var Qt=tt||{},Kt=Qt.label,Bn=Qt.value,Gn=Qt.options,_n=Qt.groupLabel,Pr=Kt||(nt?"children":"label");return{label:Pr,value:Bn||"value",options:Gn||"options",groupLabel:_n||Pr}}function pl(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qt=nt.fieldNames,Kt=nt.childrenAsData,Bn=[],Gn=Cl(Qt,!1),_n=Gn.label,Pr=Gn.value,Kr=Gn.options,Er=Gn.groupLabel;function ta(zi,ji){zi.forEach(function(Li){if(ji||!(Kr in Li)){var ea=Li[Pr];Bn.push({key:gi(Li,Bn.length),groupOption:ji,data:Li,label:Li[_n],value:ea})}else{var Hi=Li[Er];Hi===void 0&&Kt&&(Hi=Li.label),Bn.push({key:gi(Li,Bn.length),group:!0,data:Li,label:Hi}),ta(Li[Kr],!0)}})}return ta(tt,!1),Bn}function jl(tt){var nt=(0,Pe.Z)({},tt);return"props"in nt||Object.defineProperty(nt,"props",{get:function(){return Me(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),nt}}),nt}function Ko(tt,nt){if(!nt||!nt.length)return null;var Qt=!1;function Kt(Gn,_n){var Pr=(0,zo.Z)(_n),Kr=Pr[0],Er=Pr.slice(1);if(!Kr)return[Gn];var ta=Gn.split(Kr);return Qt=Qt||ta.length>1,ta.reduce(function(zi,ji){return[].concat((0,E.Z)(zi),(0,E.Z)(Kt(ji,Er)))},[]).filter(function(zi){return zi})}var Bn=Kt(tt,nt);return Qt?Bn:null}var Do=["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"],Na=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ml(tt){return tt==="tags"||tt==="multiple"}var nl=fe.forwardRef(function(tt,nt){var Qt,Kt,Bn=tt.id,Gn=tt.prefixCls,_n=tt.className,Pr=tt.showSearch,Kr=tt.tagRender,Er=tt.direction,ta=tt.omitDomProps,zi=tt.displayValues,ji=tt.onDisplayValuesChange,Li=tt.emptyOptions,ea=tt.notFoundContent,Hi=ea===void 0?"Not Found":ea,ka=tt.onClear,vo=tt.mode,Fo=tt.disabled,Zo=tt.loading,Ao=tt.getInputElement,qo=tt.getRawInputElement,go=tt.open,Io=tt.defaultOpen,Xo=tt.onDropdownVisibleChange,Fa=tt.activeValue,_a=tt.onActiveValueChange,no=tt.activeDescendantId,Yo=tt.searchValue,Wo=tt.autoClearSearchValue,il=tt.onSearch,el=tt.onSearchSplit,cl=tt.tokenSeparators,vl=tt.allowClear,gl=tt.suffixIcon,kl=tt.clearIcon,gr=tt.OptionList,Gi=tt.animation,ho=tt.transitionName,Ga=tt.dropdownStyle,mi=tt.dropdownClassName,Sa=tt.dropdownMatchSelectWidth,wa=tt.dropdownRender,Qa=tt.dropdownAlign,ca=tt.placement,ba=tt.builtinPlacements,Ta=tt.getPopupContainer,Eo=tt.showAction,al=Eo===void 0?[]:Eo,oa=tt.onFocus,Jo=tt.onBlur,Po=tt.onKeyUp,ll=tt.onKeyDown,Yl=tt.onMouseDown,$l=(0,De.Z)(tt,Do),us=ml(vo),ds=(Pr!==void 0?Pr:us)||vo==="combobox",as=(0,Pe.Z)({},$l);Na.forEach(function(ma){delete as[ma]}),ta==null||ta.forEach(function(ma){delete as[ma]});var uu=fe.useState(!1),Xs=(0,pe.Z)(uu,2),wu=Xs[0],Rs=Xs[1];fe.useEffect(function(){Rs(pt())},[]);var ws=fe.useRef(null),Js=fe.useRef(null),js=fe.useRef(null),Bs=fe.useRef(null),yu=fe.useRef(null),$s=Yt(),Fs=(0,pe.Z)($s,3),bu=Fs[0],fc=Fs[1],$u=Fs[2];fe.useImperativeHandle(nt,function(){var ma,fa;return{focus:(ma=Bs.current)===null||ma===void 0?void 0:ma.focus,blur:(fa=Bs.current)===null||fa===void 0?void 0:fa.blur,scrollTo:function(so){var Mo;return(Mo=yu.current)===null||Mo===void 0?void 0:Mo.scrollTo(so)}}});var Hs=fe.useMemo(function(){var ma;if(vo!=="combobox")return Yo;var fa=(ma=zi[0])===null||ma===void 0?void 0:ma.value;return typeof fa=="string"||typeof fa=="number"?String(fa):""},[Yo,vo,zi]),rs=vo==="combobox"&&typeof Ao=="function"&&Ao()||null,Zs=typeof qo=="function"&&qo(),Au=et(Js,Zs==null||(Qt=Zs.props)===null||Qt===void 0?void 0:Qt.ref),_u=fe.useState(!1),Os=(0,pe.Z)(_u,2),gs=Os[0],fs=Os[1];be(function(){fs(!0)},[]);var Mu=Ze(!1,{defaultValue:Io,value:go}),Gs=(0,pe.Z)(Mu,2),mu=Gs[0],Hl=Gs[1],qa=gs?mu:!1,jo=!Hi&&Li;(Fo||jo&&qa&&vo==="combobox")&&(qa=!1);var hl=jo?!1:qa,Il=fe.useCallback(function(ma){var fa=ma!==void 0?ma:!qa;Fo||(Hl(fa),qa!==fa&&(Xo==null||Xo(fa)))},[Fo,qa,Hl,Xo]),Ds=fe.useMemo(function(){return(cl||[]).some(function(ma){return[`
|
|
|
`,`\r
|
|
|
`].includes(ma)})},[cl]),ks=function(fa,Aa,so){var Mo=!0,Dl=fa;_a==null||_a(null);var ol=so?null:Ko(fa,cl);return vo!=="combobox"&&ol&&(Dl="",el==null||el(ol),Il(!1),Mo=!1),il&&Hs!==Dl&&il(Dl,{source:Aa?"typing":"effect"}),Mo},cu=function(fa){!fa||!fa.trim()||il(fa,{source:"submit"})};fe.useEffect(function(){!qa&&!us&&vo!=="combobox"&&ks("",!1,!1)},[qa]),fe.useEffect(function(){mu&&Fo&&Hl(!1),Fo&&fc(!1)},[Fo]);var Du=Vn(),oc=(0,pe.Z)(Du,2),Re=oc[0],Ge=oc[1],St=function(fa){var Aa=Re(),so=fa.which;if(so===ft.ENTER&&(vo!=="combobox"&&fa.preventDefault(),qa||Il(!0)),Ge(!!Hs),so===ft.BACKSPACE&&!Aa&&us&&!Hs&&zi.length){for(var Mo=(0,E.Z)(zi),Dl=null,ol=Mo.length-1;ol>=0;ol-=1){var sl=Mo[ol];if(!sl.disabled){Mo.splice(ol,1),Dl=sl;break}}Dl&&ji(Mo,{type:"remove",values:[Dl]})}for(var Zl=arguments.length,Ul=new Array(Zl>1?Zl-1:0),ts=1;ts<Zl;ts++)Ul[ts-1]=arguments[ts];if(qa&&yu.current){var Jl;(Jl=yu.current).onKeyDown.apply(Jl,[fa].concat(Ul))}ll==null||ll.apply(void 0,[fa].concat(Ul))},Rt=function(fa){for(var Aa=arguments.length,so=new Array(Aa>1?Aa-1:0),Mo=1;Mo<Aa;Mo++)so[Mo-1]=arguments[Mo];if(qa&&yu.current){var Dl;(Dl=yu.current).onKeyUp.apply(Dl,[fa].concat(so))}Po==null||Po.apply(void 0,[fa].concat(so))},un=function(fa){var Aa=zi.filter(function(so){return so!==fa});ji(Aa,{type:"remove",values:[fa]})},vn=fe.useRef(!1),ir=function(){fc(!0),Fo||(oa&&!vn.current&&oa.apply(void 0,arguments),al.includes("focus")&&Il(!0)),vn.current=!0},Ar=function(){fc(!1,function(){vn.current=!1,Il(!1)}),!Fo&&(Hs&&(vo==="tags"?il(Hs,{source:"submit"}):vo==="multiple"&&il("",{source:"blur"})),Jo&&Jo.apply(void 0,arguments))},hr=[];fe.useEffect(function(){return function(){hr.forEach(function(ma){return clearTimeout(ma)}),hr.splice(0,hr.length)}},[]);var Qr=function(fa){var Aa,so=fa.target,Mo=(Aa=js.current)===null||Aa===void 0?void 0:Aa.getPopupElement();if(Mo&&Mo.contains(so)){var Dl=setTimeout(function(){var Ul=hr.indexOf(Dl);if(Ul!==-1&&hr.splice(Ul,1),$u(),!wu&&!Mo.contains(document.activeElement)){var ts;(ts=Bs.current)===null||ts===void 0||ts.focus()}});hr.push(Dl)}for(var ol=arguments.length,sl=new Array(ol>1?ol-1:0),Zl=1;Zl<ol;Zl++)sl[Zl-1]=arguments[Zl];Yl==null||Yl.apply(void 0,[fa].concat(sl))},xi=fe.useState({}),qn=(0,pe.Z)(xi,2),Ki=qn[1];function $i(){Ki({})}var na;Zs&&(na=function(fa){Il(fa)}),Pn(function(){var ma;return[ws.current,(ma=js.current)===null||ma===void 0?void 0:ma.getPopupElement()]},hl,Il,!!Zs);var Ia=fe.useMemo(function(){return(0,Pe.Z)((0,Pe.Z)({},tt),{},{notFoundContent:Hi,open:qa,triggerOpen:hl,id:Bn,showSearch:ds,multiple:us,toggleOpen:Il})},[tt,Hi,hl,qa,Bn,ds,us,Il]),sa=!!gl||Zo,ja;sa&&(ja=fe.createElement(qt,{className:de()("".concat(Gn,"-arrow"),(0,Xe.Z)({},"".concat(Gn,"-arrow-loading"),Zo)),customizeIcon:gl,customizeIconProps:{loading:Zo,searchValue:Hs,open:qa,focused:bu,showSearch:ds}}));var Ra=function(){var fa;ka==null||ka(),(fa=Bs.current)===null||fa===void 0||fa.focus(),ji([],{type:"clear",values:zi}),ks("",!1,!1)},oo=Xt(Gn,Ra,zi,vl,kl,Fo,Hs,vo),Uo=oo.allowClear,lo=oo.clearIcon,To=fe.createElement(gr,{ref:yu}),yl=de()(Gn,_n,(Kt={},(0,Xe.Z)(Kt,"".concat(Gn,"-focused"),bu),(0,Xe.Z)(Kt,"".concat(Gn,"-multiple"),us),(0,Xe.Z)(Kt,"".concat(Gn,"-single"),!us),(0,Xe.Z)(Kt,"".concat(Gn,"-allow-clear"),vl),(0,Xe.Z)(Kt,"".concat(Gn,"-show-arrow"),sa),(0,Xe.Z)(Kt,"".concat(Gn,"-disabled"),Fo),(0,Xe.Z)(Kt,"".concat(Gn,"-loading"),Zo),(0,Xe.Z)(Kt,"".concat(Gn,"-open"),qa),(0,Xe.Z)(Kt,"".concat(Gn,"-customize-input"),rs),(0,Xe.Z)(Kt,"".concat(Gn,"-show-search"),ds),Kt)),Kl=fe.createElement(Ea,{ref:js,disabled:Fo,prefixCls:Gn,visible:hl,popupElement:To,animation:Gi,transitionName:ho,dropdownStyle:Ga,dropdownClassName:mi,direction:Er,dropdownMatchSelectWidth:Sa,dropdownRender:wa,dropdownAlign:Qa,placement:ca,builtinPlacements:ba,getPopupContainer:Ta,empty:Li,getTriggerDOMNode:function(){return Js.current},onPopupVisibleChange:na,onPopupMouseEnter:$i},Zs?fe.cloneElement(Zs,{ref:Au}):fe.createElement(Di,(0,Se.Z)({},tt,{domRef:Js,prefixCls:Gn,inputElement:rs,ref:Bs,id:Bn,showSearch:ds,autoClearSearchValue:Wo,mode:vo,activeDescendantId:no,tagRender:Kr,values:zi,open:qa,onToggleOpen:Il,activeValue:Fa,searchValue:Hs,onSearch:ks,onSearchSubmit:cu,onRemove:un,tokenWithEnter:Ds}))),bo;return Zs?bo=Kl:bo=fe.createElement("div",(0,Se.Z)({className:yl},as,{ref:ws,onMouseDown:Qr,onKeyDown:St,onKeyUp:Rt,onFocus:ir,onBlur:Ar}),bu&&!qa&&fe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(zi.map(function(ma){var fa=ma.label,Aa=ma.value;return["number","string"].includes((0,Ue.Z)(fa))?fa:Aa}).join(", "))),Kl,ja,Uo&&lo),fe.createElement(Et.Provider,{value:Ia},bo)}),Sl=nl,Rl=function(tt,nt){var Qt=fe.useRef({values:new Map,options:new Map}),Kt=fe.useMemo(function(){var Gn=Qt.current,_n=Gn.values,Pr=Gn.options,Kr=tt.map(function(zi){if(zi.label===void 0){var ji;return(0,Pe.Z)((0,Pe.Z)({},zi),{},{label:(ji=_n.get(zi.value))===null||ji===void 0?void 0:ji.label})}return zi}),Er=new Map,ta=new Map;return Kr.forEach(function(zi){Er.set(zi.value,zi),ta.set(zi.value,nt.get(zi.value)||Pr.get(zi.value))}),Qt.current.values=Er,Qt.current.options=ta,Kr},[tt,nt]),Bn=fe.useCallback(function(Gn){return nt.get(Gn)||Qt.current.options.get(Gn)},[nt]);return[Kt,Bn]};function Ll(tt,nt){return hn(tt).join("").toUpperCase().includes(nt)}var wl=function(tt,nt,Qt,Kt,Bn){return fe.useMemo(function(){if(!Qt||Kt===!1)return tt;var Gn=nt.options,_n=nt.label,Pr=nt.value,Kr=[],Er=typeof Kt=="function",ta=Qt.toUpperCase(),zi=Er?Kt:function(Li,ea){return Bn?Ll(ea[Bn],ta):ea[Gn]?Ll(ea[_n!=="children"?_n:"label"],ta):Ll(ea[Pr],ta)},ji=Er?function(Li){return jl(Li)}:function(Li){return Li};return tt.forEach(function(Li){if(Li[Gn]){var ea=zi(Qt,ji(Li));if(ea)Kr.push(Li);else{var Hi=Li[Gn].filter(function(ka){return zi(Qt,ji(ka))});Hi.length&&Kr.push((0,Pe.Z)((0,Pe.Z)({},Li),{},(0,Xe.Z)({},Gn,Hi)))}return}zi(Qt,ji(Li))&&Kr.push(Li)}),Kr},[tt,Kt,Bn,Qt,nt])},Vl=0,_l=qe();function Fl(){var tt;return _l?(tt=Vl,Vl+=1):tt="TEST_OR_SSR",tt}function Vo(tt){var nt=fe.useState(),Qt=(0,pe.Z)(nt,2),Kt=Qt[0],Bn=Qt[1];return fe.useEffect(function(){Bn("rc_select_".concat(Fl()))},[]),tt||Kt}function Wn(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qt=[];return fe.Children.forEach(tt,function(Kt){Kt==null&&!nt.keepEmpty||(Array.isArray(Kt)?Qt=Qt.concat(Wn(Kt)):(0,We.isFragment)(Kt)&&Kt.props?Qt=Qt.concat(Wn(Kt.props.children,nt)):Qt.push(Kt))}),Qt}var Nn=["children","value"],Ir=["children"];function Cr(tt){var nt=tt,Qt=nt.key,Kt=nt.props,Bn=Kt.children,Gn=Kt.value,_n=(0,De.Z)(Kt,Nn);return(0,Pe.Z)({key:Qt,value:Gn!==void 0?Gn:Qt,children:Bn},_n)}function Ii(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Wn(tt).map(function(Qt,Kt){if(!fe.isValidElement(Qt)||!Qt.type)return null;var Bn=Qt,Gn=Bn.type.isSelectOptGroup,_n=Bn.key,Pr=Bn.props,Kr=Pr.children,Er=(0,De.Z)(Pr,Ir);return nt||!Gn?Cr(Qt):(0,Pe.Z)((0,Pe.Z)({key:"__RC_SELECT_GRP__".concat(_n===null?Kt:_n,"__"),label:_n},Er),{},{options:Ii(Kr)})}).filter(function(Qt){return Qt})}function Ma(tt,nt,Qt,Kt,Bn){return fe.useMemo(function(){var Gn=tt,_n=!tt;_n&&(Gn=Ii(nt));var Pr=new Map,Kr=new Map,Er=function(ji,Li,ea){ea&&typeof ea=="string"&&ji.set(Li[ea],Li)};function ta(zi){for(var ji=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Li=0;Li<zi.length;Li+=1){var ea=zi[Li];!ea[Qt.options]||ji?(Pr.set(ea[Qt.value],ea),Er(Kr,ea,Qt.label),Er(Kr,ea,Kt),Er(Kr,ea,Bn)):ta(ea[Qt.options],!0)}}return ta(Gn),{options:Gn,valueOptions:Pr,labelOptions:Kr}},[tt,nt,Qt,Kt,Bn])}function Ka(tt){var nt=fe.useRef();nt.current=tt;var Qt=fe.useCallback(function(){return nt.current.apply(nt,arguments)},[]);return Qt}var Ya=function(){return null};Ya.isSelectOptGroup=!0;var $a=Ya,Za=function(){return null};Za.isSelectOption=!0;var Go=Za;function Ho(tt,nt){var Qt=(0,Pe.Z)({},tt);return Array.isArray(nt)&&nt.forEach(function(Kt){delete Qt[Kt]}),Qt}var Qo=te(73299),vr=fe.createContext(null),Sr=vr;function Tr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ae=["disabled","title","children","style","className"];function it(tt){return typeof tt=="string"||typeof tt=="number"}var st=function(nt,Qt){var Kt=zt(),Bn=Kt.prefixCls,Gn=Kt.id,_n=Kt.open,Pr=Kt.multiple,Kr=Kt.mode,Er=Kt.searchValue,ta=Kt.toggleOpen,zi=Kt.notFoundContent,ji=Kt.onPopupScroll,Li=fe.useContext(Sr),ea=Li.flattenOptions,Hi=Li.onActiveValue,ka=Li.defaultActiveFirstOption,vo=Li.onSelect,Fo=Li.menuItemSelectedIcon,Zo=Li.rawValues,Ao=Li.fieldNames,qo=Li.virtual,go=Li.direction,Io=Li.listHeight,Xo=Li.listItemHeight,Fa="".concat(Bn,"-item"),_a=gt(function(){return ea},[_n,ea],function(Qa,ca){return ca[0]&&Qa[1]!==ca[1]}),no=fe.useRef(null),Yo=function(ca){ca.preventDefault()},Wo=function(ca){no.current&&no.current.scrollTo(typeof ca=="number"?{index:ca}:ca)},il=function(ca){for(var ba=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ta=_a.length,Eo=0;Eo<Ta;Eo+=1){var al=(ca+Eo*ba+Ta)%Ta,oa=_a[al],Jo=oa.group,Po=oa.data;if(!Jo&&!Po.disabled)return al}return-1},el=fe.useState(function(){return il(0)}),cl=(0,pe.Z)(el,2),vl=cl[0],gl=cl[1],kl=function(ca){var ba=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;gl(ca);var Ta={source:ba?"keyboard":"mouse"},Eo=_a[ca];if(!Eo){Hi(null,-1,Ta);return}Hi(Eo.value,ca,Ta)};(0,fe.useEffect)(function(){kl(ka!==!1?il(0):-1)},[_a.length,Er]);var gr=fe.useCallback(function(Qa){return Zo.has(Qa)&&Kr!=="combobox"},[Kr,(0,E.Z)(Zo).toString(),Zo.size]);(0,fe.useEffect)(function(){var Qa=setTimeout(function(){if(!Pr&&_n&&Zo.size===1){var ba=Array.from(Zo)[0],Ta=_a.findIndex(function(Eo){var al=Eo.data;return al.value===ba});Ta!==-1&&(kl(Ta),Wo(Ta))}});if(_n){var ca;(ca=no.current)===null||ca===void 0||ca.scrollTo(void 0)}return function(){return clearTimeout(Qa)}},[_n,Er,ea.length]);var Gi=function(ca){ca!==void 0&&vo(ca,{selected:!Zo.has(ca)}),Pr||ta(!1)};if(fe.useImperativeHandle(Qt,function(){return{onKeyDown:function(ca){var ba=ca.which,Ta=ca.ctrlKey;switch(ba){case ft.N:case ft.P:case ft.UP:case ft.DOWN:{var Eo=0;if(ba===ft.UP?Eo=-1:ba===ft.DOWN?Eo=1:Tr()&&Ta&&(ba===ft.N?Eo=1:ba===ft.P&&(Eo=-1)),Eo!==0){var al=il(vl+Eo,Eo);Wo(al),kl(al,!0)}break}case ft.ENTER:{var oa=_a[vl];oa&&!oa.data.disabled?Gi(oa.value):Gi(void 0),_n&&ca.preventDefault();break}case ft.ESC:ta(!1),_n&&ca.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ca){Wo(ca)}}}),_a.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(Gn,"_list"),className:"".concat(Fa,"-empty"),onMouseDown:Yo},zi);var ho=Object.keys(Ao).map(function(Qa){return Ao[Qa]}),Ga=function(ca){return ca.label};function mi(Qa,ca){var ba=Qa.group;return{role:ba?"presentation":"option",id:"".concat(Gn,"_list_").concat(ca)}}var Sa=function(ca){var ba=_a[ca];if(!ba)return null;var Ta=ba.data||{},Eo=Ta.value,al=ba.group,oa=he(Ta,!0),Jo=Ga(ba);return ba?fe.createElement("div",(0,Se.Z)({"aria-label":typeof Jo=="string"&&!al?Jo:null},oa,{key:ca},mi(ba,ca),{"aria-selected":gr(Eo)}),Eo):null},wa={role:"listbox",id:"".concat(Gn,"_list")};return fe.createElement(fe.Fragment,null,qo&&fe.createElement("div",(0,Se.Z)({},wa,{style:{height:0,width:0,overflow:"hidden"}}),Sa(vl-1),Sa(vl),Sa(vl+1)),fe.createElement(Qo.Z,{itemKey:"key",ref:no,data:_a,height:Io,itemHeight:Xo,fullHeight:!1,onMouseDown:Yo,onScroll:ji,virtual:qo,direction:go,innerProps:qo?null:wa},function(Qa,ca){var ba,Ta=Qa.group,Eo=Qa.groupOption,al=Qa.data,oa=Qa.label,Jo=Qa.value,Po=al.key;if(Ta){var ll,Yl=(ll=al.title)!==null&&ll!==void 0?ll:it(oa)?oa.toString():void 0;return fe.createElement("div",{className:de()(Fa,"".concat(Fa,"-group")),title:Yl},oa!==void 0?oa:Po)}var $l=al.disabled,us=al.title,ds=al.children,as=al.style,uu=al.className,Xs=(0,De.Z)(al,Ae),wu=Ho(Xs,ho),Rs=gr(Jo),ws="".concat(Fa,"-option"),Js=de()(Fa,ws,uu,(ba={},(0,Xe.Z)(ba,"".concat(ws,"-grouped"),Eo),(0,Xe.Z)(ba,"".concat(ws,"-active"),vl===ca&&!$l),(0,Xe.Z)(ba,"".concat(ws,"-disabled"),$l),(0,Xe.Z)(ba,"".concat(ws,"-selected"),Rs),ba)),js=Ga(Qa),Bs=!Fo||typeof Fo=="function"||Rs,yu=typeof js=="number"?js:js||Jo,$s=it(yu)?yu.toString():void 0;return us!==void 0&&($s=us),fe.createElement("div",(0,Se.Z)({},he(wu),qo?{}:mi(Qa,ca),{"aria-selected":Rs,className:Js,title:$s,onMouseMove:function(){vl===ca||$l||kl(ca)},onClick:function(){$l||Gi(Jo)},style:as}),fe.createElement("div",{className:"".concat(ws,"-content")},yu),fe.isValidElement(Fo)||Rs,Bs&&fe.createElement(qt,{className:"".concat(Fa,"-option-state"),customizeIcon:Fo,customizeIconProps:{isSelected:Rs}},Rs?"\u2713":null))}))},yt=fe.forwardRef(st);yt.displayName="OptionList";var wt=yt;function Ft(tt){var nt=tt.mode,Qt=tt.options,Kt=tt.children,Bn=tt.backfill,Gn=tt.allowClear,_n=tt.placeholder,Pr=tt.getInputElement,Kr=tt.showSearch,Er=tt.onSearch,ta=tt.defaultOpen,zi=tt.autoFocus,ji=tt.labelInValue,Li=tt.value,ea=tt.inputValue,Hi=tt.optionLabelProp,ka=isMultiple(nt),vo=Kr!==void 0?Kr:ka||nt==="combobox",Fo=Qt||convertChildrenToData(Kt);if(warning(nt!=="tags"||Fo.every(function(go){return!go.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),nt==="tags"||nt==="combobox"){var Zo=Fo.some(function(go){return go.options?go.options.some(function(Io){return typeof("value"in Io?Io.value:Io.key)=="number"}):typeof("value"in go?go.value:go.key)=="number"});warning(!Zo,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(nt!=="combobox"||!Hi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(nt==="combobox"||!Bn,"`backfill` only works with `combobox` mode."),warning(nt==="combobox"||!Pr,"`getInputElement` only work with `combobox` mode."),noteOnce(nt!=="combobox"||!Pr||!Gn||!_n,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Er&&!vo&&nt!=="combobox"&&nt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ta||zi,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Li!=null){var Ao=toArray(Li);warning(!ji||Ao.every(function(go){return _typeof(go)==="object"&&("key"in go||"value"in go)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ka||Array.isArray(Li),"`value` should be array when `mode` is `multiple` or `tags`")}if(Kt){var qo=null;toNodeArray(Kt).some(function(go){if(!React.isValidElement(go)||!go.type)return!1;var Io=go,Xo=Io.type;if(Xo.isSelectOption)return!1;if(Xo.isSelectOptGroup){var Fa=toNodeArray(go.props.children).every(function(_a){return!React.isValidElement(_a)||!go.type||_a.type.isSelectOption?!0:(qo=_a.type,!1)});return!Fa}return qo=Xo,!0}),qo&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(qo.displayName||qo.name||qo,"`.")),warning(ea===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Nt(tt,nt){if(tt){var Qt=function Kt(Bn){for(var Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_n=0;_n<Bn.length;_n++){var Pr=Bn[_n];if(Pr[nt==null?void 0:nt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Gn&&Array.isArray(Pr[nt==null?void 0:nt.options])&&Kt(Pr[nt==null?void 0:nt.options],!0))break}};Qt(tt)}}var gn=null,Rn=["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"],Nr=["inputValue"];function Wr(tt){return!tt||(0,Ue.Z)(tt)!=="object"}var Rr=fe.forwardRef(function(tt,nt){var Qt=tt.id,Kt=tt.mode,Bn=tt.prefixCls,Gn=Bn===void 0?"rc-select":Bn,_n=tt.backfill,Pr=tt.fieldNames,Kr=tt.inputValue,Er=tt.searchValue,ta=tt.onSearch,zi=tt.autoClearSearchValue,ji=zi===void 0?!0:zi,Li=tt.onSelect,ea=tt.onDeselect,Hi=tt.dropdownMatchSelectWidth,ka=Hi===void 0?!0:Hi,vo=tt.filterOption,Fo=tt.filterSort,Zo=tt.optionFilterProp,Ao=tt.optionLabelProp,qo=tt.options,go=tt.children,Io=tt.defaultActiveFirstOption,Xo=tt.menuItemSelectedIcon,Fa=tt.virtual,_a=tt.direction,no=tt.listHeight,Yo=no===void 0?200:no,Wo=tt.listItemHeight,il=Wo===void 0?20:Wo,el=tt.value,cl=tt.defaultValue,vl=tt.labelInValue,gl=tt.onChange,kl=(0,De.Z)(tt,Rn),gr=Vo(Qt),Gi=ml(Kt),ho=!!(!qo&&go),Ga=fe.useMemo(function(){return vo===void 0&&Kt==="combobox"?!1:vo},[vo,Kt]),mi=fe.useMemo(function(){return Cl(Pr,ho)},[JSON.stringify(Pr),ho]),Sa=Ze("",{value:Er!==void 0?Er:Kr,postState:function(jo){return jo||""}}),wa=(0,pe.Z)(Sa,2),Qa=wa[0],ca=wa[1],ba=Ma(qo,go,mi,Zo,Ao),Ta=ba.valueOptions,Eo=ba.labelOptions,al=ba.options,oa=fe.useCallback(function(qa){var jo=hn(qa);return jo.map(function(hl){var Il,Ds,ks,cu,Du;if(Wr(hl))Il=hl;else{var oc;ks=hl.key,Ds=hl.label,Il=(oc=hl.value)!==null&&oc!==void 0?oc:ks}var Re=Ta.get(Il);if(Re){var Ge;if(Ds===void 0&&(Ds=Re==null?void 0:Re[Ao||mi.label]),ks===void 0&&(ks=(Ge=Re==null?void 0:Re.key)!==null&&Ge!==void 0?Ge:Il),cu=Re==null?void 0:Re.disabled,Du=Re==null?void 0:Re.title,0)var St}return{label:Ds,value:Il,key:ks,disabled:cu,title:Du}})},[mi,Ao,Ta]),Jo=Ze(cl,{value:el}),Po=(0,pe.Z)(Jo,2),ll=Po[0],Yl=Po[1],$l=fe.useMemo(function(){var qa,jo=oa(ll);return Kt==="combobox"&&on((qa=jo[0])===null||qa===void 0?void 0:qa.value)?[]:jo},[ll,oa,Kt]),us=Rl($l,Ta),ds=(0,pe.Z)(us,2),as=ds[0],uu=ds[1],Xs=fe.useMemo(function(){if(!Kt&&as.length===1){var qa=as[0];if(qa.value===null&&(qa.label===null||qa.label===void 0))return[]}return as.map(function(jo){var hl;return(0,Pe.Z)((0,Pe.Z)({},jo),{},{label:(hl=jo.label)!==null&&hl!==void 0?hl:jo.value})})},[Kt,as]),wu=fe.useMemo(function(){return new Set(as.map(function(qa){return qa.value}))},[as]);fe.useEffect(function(){if(Kt==="combobox"){var qa,jo=(qa=as[0])===null||qa===void 0?void 0:qa.value;ca(Bt(jo)?String(jo):"")}},[as]);var Rs=Ka(function(qa,jo){var hl,Il=jo!=null?jo:qa;return hl={},(0,Xe.Z)(hl,mi.value,qa),(0,Xe.Z)(hl,mi.label,Il),hl}),ws=fe.useMemo(function(){if(Kt!=="tags")return al;var qa=(0,E.Z)(al),jo=function(Il){return Ta.has(Il)};return(0,E.Z)(as).sort(function(hl,Il){return hl.value<Il.value?-1:1}).forEach(function(hl){var Il=hl.value;jo(Il)||qa.push(Rs(Il,hl.label))}),qa},[Rs,al,Ta,as,Kt]),Js=wl(ws,mi,Qa,Ga,Zo),js=fe.useMemo(function(){return Kt!=="tags"||!Qa||Js.some(function(qa){return qa[Zo||"value"]===Qa})||Js.some(function(qa){return qa[mi.value]===Qa})?Js:[Rs(Qa)].concat((0,E.Z)(Js))},[Rs,Zo,Kt,Js,Qa,mi]),Bs=fe.useMemo(function(){return Fo?(0,E.Z)(js).sort(function(qa,jo){return Fo(qa,jo)}):js},[js,Fo]),yu=fe.useMemo(function(){return pl(Bs,{fieldNames:mi,childrenAsData:ho})},[Bs,mi,ho]),$s=function(jo){var hl=oa(jo);if(Yl(hl),gl&&(hl.length!==as.length||hl.some(function(ks,cu){var Du;return((Du=as[cu])===null||Du===void 0?void 0:Du.value)!==(ks==null?void 0:ks.value)}))){var Il=vl?hl:hl.map(function(ks){return ks.value}),Ds=hl.map(function(ks){return jl(uu(ks.value))});gl(Gi?Il:Il[0],Gi?Ds:Ds[0])}},Fs=fe.useState(null),bu=(0,pe.Z)(Fs,2),fc=bu[0],$u=bu[1],Hs=fe.useState(0),rs=(0,pe.Z)(Hs,2),Zs=rs[0],Au=rs[1],_u=Io!==void 0?Io:Kt!=="combobox",Os=fe.useCallback(function(qa,jo){var hl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Il=hl.source,Ds=Il===void 0?"keyboard":Il;Au(jo),_n&&Kt==="combobox"&&qa!==null&&Ds==="keyboard"&&$u(String(qa))},[_n,Kt]),gs=function(jo,hl,Il){var Ds=function(){var vn,ir=uu(jo);return[vl?{label:ir==null?void 0:ir[mi.label],value:jo,key:(vn=ir==null?void 0:ir.key)!==null&&vn!==void 0?vn:jo}:jo,jl(ir)]};if(hl&&Li){var ks=Ds(),cu=(0,pe.Z)(ks,2),Du=cu[0],oc=cu[1];Li(Du,oc)}else if(!hl&&ea&&Il!=="clear"){var Re=Ds(),Ge=(0,pe.Z)(Re,2),St=Ge[0],Rt=Ge[1];ea(St,Rt)}},fs=Ka(function(qa,jo){var hl,Il=Gi?jo.selected:!0;Il?hl=Gi?[].concat((0,E.Z)(as),[qa]):[qa]:hl=as.filter(function(Ds){return Ds.value!==qa}),$s(hl),gs(qa,Il),Kt==="combobox"?$u(""):(!ml||ji)&&(ca(""),$u(""))}),Mu=function(jo,hl){$s(jo);var Il=hl.type,Ds=hl.values;(Il==="remove"||Il==="clear")&&Ds.forEach(function(ks){gs(ks.value,!1,Il)})},Gs=function(jo,hl){if(ca(jo),$u(null),hl.source==="submit"){var Il=(jo||"").trim();if(Il){var Ds=Array.from(new Set([].concat((0,E.Z)(wu),[Il])));$s(Ds),gs(Il,!0),ca("")}return}hl.source!=="blur"&&(Kt==="combobox"&&$s(jo),ta==null||ta(jo))},mu=function(jo){var hl=jo;Kt!=="tags"&&(hl=jo.map(function(Ds){var ks=Eo.get(Ds);return ks==null?void 0:ks.value}).filter(function(Ds){return Ds!==void 0}));var Il=Array.from(new Set([].concat((0,E.Z)(wu),(0,E.Z)(hl))));$s(Il),Il.forEach(function(Ds){gs(Ds,!0)})},Hl=fe.useMemo(function(){var qa=Fa!==!1&&ka!==!1;return(0,Pe.Z)((0,Pe.Z)({},ba),{},{flattenOptions:yu,onActiveValue:Os,defaultActiveFirstOption:_u,onSelect:fs,menuItemSelectedIcon:Xo,rawValues:wu,fieldNames:mi,virtual:qa,direction:_a,listHeight:Yo,listItemHeight:il,childrenAsData:ho})},[ba,yu,Os,_u,fs,Xo,wu,mi,Fa,ka,Yo,il,ho]);return fe.createElement(Sr.Provider,{value:Hl},fe.createElement(Sl,(0,Se.Z)({},kl,{id:gr,prefixCls:Gn,ref:nt,omitDomProps:Nr,mode:Kt,displayValues:Xs,onDisplayValuesChange:Mu,direction:_a,searchValue:Qa,onSearch:Gs,autoClearSearchValue:ji,onSearchSplit:mu,dropdownMatchSelectWidth:ka,OptionList:wt,emptyOptions:!yu.length,activeValue:fc,activeDescendantId:"".concat(gr,"_list_").concat(Zs)})))}),Un=Rr;Un.Option=Go,Un.OptGroup=$a;var pr=null,Jn=null,_r=te(17341);function yi(tt){var nt=fe.useRef(!1),Qt=fe.useState(tt),Kt=(0,pe.Z)(Qt,2),Bn=Kt[0],Gn=Kt[1];fe.useEffect(function(){return nt.current=!1,function(){nt.current=!0}},[]);function _n(Pr,Kr){Kr&&nt.current||Gn(Pr)}return[Bn,_n]}function Yr(tt){return tt!==void 0}function Xr(tt,nt){var Qt=nt||{},Kt=Qt.defaultValue,Bn=Qt.value,Gn=Qt.onChange,_n=Qt.postState,Pr=yi(function(){return Yr(Bn)?Bn:Yr(Kt)?typeof Kt=="function"?Kt():Kt:typeof tt=="function"?tt():tt}),Kr=(0,pe.Z)(Pr,2),Er=Kr[0],ta=Kr[1],zi=Bn!==void 0?Bn:Er,ji=_n?_n(zi):zi,Li=nn(Gn),ea=yi([zi]),Hi=(0,pe.Z)(ea,2),ka=Hi[0],vo=Hi[1];bt(function(){var Zo=ka[0];Er!==Zo&&Li(Er,Zo)},[ka]),bt(function(){Yr(Bn)||ta(Bn)},[Bn]);var Fo=nn(function(Zo,Ao){ta(Zo,Ao),vo([zi],Ao)});return[ji,Fo]}var ti=fe.createContext(null),fi=ti,Ci="__rc_cascader_search_mark__",At=function(nt,Qt,Kt){var Bn=Kt.label;return Qt.some(function(Gn){return String(Gn[Bn]).toLowerCase().includes(nt.toLowerCase())})},vt=function(nt,Qt,Kt,Bn){return Qt.map(function(Gn){return Gn[Bn.label]}).join(" / ")},On=function(tt,nt,Qt,Kt,Bn,Gn){var _n=Bn.filter,Pr=_n===void 0?At:_n,Kr=Bn.render,Er=Kr===void 0?vt:Kr,ta=Bn.limit,zi=ta===void 0?50:ta,ji=Bn.sort;return fe.useMemo(function(){var Li=[];if(!tt)return[];function ea(Hi,ka){var vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Hi.forEach(function(Fo){if(!(!ji&&zi!==!1&&zi>0&&Li.length>=zi)){var Zo=[].concat((0,E.Z)(ka),[Fo]),Ao=Fo[Qt.children],qo=vo||Fo.disabled;if((!Ao||Ao.length===0||Gn)&&Pr(tt,Zo,{label:Qt.label})){var go;Li.push((0,Pe.Z)((0,Pe.Z)({},Fo),{},(go={disabled:qo},(0,Xe.Z)(go,Qt.label,Er(tt,Zo,Kt,Qt)),(0,Xe.Z)(go,Ci,Zo),(0,Xe.Z)(go,Qt.children,void 0),go)))}Ao&&ea(Fo[Qt.children],Zo,qo)}})}return ea(nt,[]),ji&&Li.sort(function(Hi,ka){return ji(Hi[Ci],ka[Ci],tt,Qt)}),zi!==!1&&zi>0?Li.slice(0,zi):Li},[tt,nt,Qt,Kt,Er,Gn,Pr,ji,zi])},Cn="__RC_CASCADER_SPLIT__",mr="SHOW_PARENT",Zr="SHOW_CHILD";function Zt(tt){return tt.join(Cn)}function Ht(tt){return tt.map(Zt)}function tn(tt){return tt.split(Cn)}function xn(tt){var nt=tt||{},Qt=nt.label,Kt=nt.value,Bn=nt.children,Gn=Kt||"value";return{label:Qt||"label",value:Gn,key:Gn,children:Bn||"children"}}function fr(tt,nt){var Qt,Kt;return(Qt=tt.isLeaf)!==null&&Qt!==void 0?Qt:!((Kt=tt[nt.children])!==null&&Kt!==void 0&&Kt.length)}function wr(tt){var nt=tt.parentElement;if(nt){var Qt=tt.offsetTop-nt.offsetTop;Qt-nt.scrollTop<0?nt.scrollTo({top:Qt}):Qt+tt.offsetHeight-nt.scrollTop>nt.offsetHeight&&nt.scrollTo({top:Qt+tt.offsetHeight-nt.offsetHeight})}}function lr(tt,nt){return tt.map(function(Qt){var Kt;return(Kt=Qt[Ci])===null||Kt===void 0?void 0:Kt.map(function(Bn){return Bn[nt.value]})})}function kr(tt,nt,Qt){var Kt=new Set(tt),Bn=nt();return tt.filter(function(Gn){var _n=Bn[Gn],Pr=_n?_n.parent:null,Kr=_n?_n.children:null;return _n&&_n.node.disabled?!0:Qt===Zr?!(Kr&&Kr.some(function(Er){return Er.key&&Kt.has(Er.key)})):!(Pr&&!Pr.node.disabled&&Kt.has(Pr.key))})}function di(tt,nt,Qt){for(var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Bn=nt,Gn=[],_n=function(){var Er,ta,zi,ji=tt[Pr],Li=(Er=Bn)===null||Er===void 0?void 0:Er.findIndex(function(Hi){var ka=Hi[Qt.value];return Kt?String(ka)===String(ji):ka===ji}),ea=Li!==-1?(ta=Bn)===null||ta===void 0?void 0:ta[Li]:null;Gn.push({value:(zi=ea==null?void 0:ea[Qt.value])!==null&&zi!==void 0?zi:ji,index:Li,option:ea}),Bn=ea==null?void 0:ea[Qt.children]},Pr=0;Pr<tt.length;Pr+=1)_n();return Gn}var Ni=function(tt,nt,Qt,Kt,Bn){return fe.useMemo(function(){var Gn=Bn||function(_n){var Pr=Kt?_n.slice(-1):_n,Kr=" / ";return Pr.every(function(Er){return["string","number"].includes((0,Ue.Z)(Er))})?Pr.join(Kr):Pr.reduce(function(Er,ta,zi){var ji=fe.isValidElement(ta)?fe.cloneElement(ta,{key:zi}):ta;return zi===0?[ji]:[].concat((0,E.Z)(Er),[Kr,ji])},[])};return tt.map(function(_n){var Pr,Kr,Er=di(_n,nt,Qt),ta=Gn(Er.map(function(ji){var Li,ea=ji.option,Hi=ji.value;return(Li=ea==null?void 0:ea[Qt.label])!==null&&Li!==void 0?Li:Hi}),Er.map(function(ji){var Li=ji.option;return Li})),zi=Zt(_n);return{label:ta,value:zi,key:zi,valueCells:_n,disabled:(Pr=Er[Er.length-1])===null||Pr===void 0||(Kr=Pr.option)===null||Kr===void 0?void 0:Kr.disabled}})},[tt,nt,Qt,Bn,Kt])},Si=te(1089),Jr=function(tt,nt){var Qt=fe.useRef({options:null,info:null}),Kt=fe.useCallback(function(){return Qt.current.options!==tt&&(Qt.current.options=tt,Qt.current.info=(0,Si.I8)(tt,{fieldNames:nt,initWrapper:function(Gn){return(0,Pe.Z)((0,Pe.Z)({},Gn),{},{pathKeyEntities:{}})},processEntity:function(Gn,_n){var Pr=Gn.nodes.map(function(Kr){return Kr[nt.value]}).join(Cn);_n.pathKeyEntities[Pr]=Gn,Gn.key=Pr}})),Qt.current.info.pathKeyEntities},[nt,tt]);return Kt},Bi=function(tt,nt){return fe.useCallback(function(Qt){var Kt=[],Bn=[];return Qt.forEach(function(Gn){var _n=di(Gn,tt,nt);_n.every(function(Pr){return Pr.option})?Bn.push(Gn):Kt.push(Gn)}),[Bn,Kt]},[tt,nt])},Wi={},da=[],Vi=function(nt){da.push(nt)};function Ei(tt,nt){if(0)var Qt}function ga(tt,nt){if(0)var Qt}function Ca(){Wi={}}function fo(tt,nt,Qt){!nt&&!Wi[Qt]&&(tt(!1,Qt),Wi[Qt]=!0)}function Bo(tt,nt){fo(Ei,tt,nt)}function xo(tt,nt){fo(ga,tt,nt)}Bo.preMessage=Vi,Bo.resetWarned=Ca,Bo.noteOnce=xo;var Jt=null;function rn(tt){return fe.useMemo(function(){if(!tt)return[!1,{}];var nt={matchInputWidth:!0,limit:50};return tt&&(0,Ue.Z)(tt)==="object"&&(nt=(0,Pe.Z)((0,Pe.Z)({},nt),tt)),nt.limit<=0&&delete nt.limit,[!0,nt]},[tt])}var kn=fe.memo(function(tt){var nt=tt.children;return nt},function(tt,nt){return!nt.open}),zr=kn;function Mr(tt){var nt,Qt=tt.prefixCls,Kt=tt.checked,Bn=tt.halfChecked,Gn=tt.disabled,_n=tt.onClick,Pr=tt.disableCheckbox,Kr=fe.useContext(fi),Er=Kr.checkable,ta=typeof Er!="boolean"?Er:null;return fe.createElement("span",{className:de()("".concat(Qt),(nt={},(0,Xe.Z)(nt,"".concat(Qt,"-checked"),Kt),(0,Xe.Z)(nt,"".concat(Qt,"-indeterminate"),!Kt&&Bn),(0,Xe.Z)(nt,"".concat(Qt,"-disabled"),Gn||Pr),nt)),onClick:_n},ta)}var tr="__cascader_fix_label__";function yr(tt){var nt=tt.prefixCls,Qt=tt.multiple,Kt=tt.options,Bn=tt.activeValue,Gn=tt.prevValuePath,_n=tt.onToggleOpen,Pr=tt.onSelect,Kr=tt.onActive,Er=tt.checkedSet,ta=tt.halfCheckedSet,zi=tt.loadingKeys,ji=tt.isSelectable,Li=tt.searchValue,ea="".concat(nt,"-menu"),Hi="".concat(nt,"-menu-item"),ka=fe.useContext(fi),vo=ka.fieldNames,Fo=ka.changeOnSelect,Zo=ka.expandTrigger,Ao=ka.expandIcon,qo=ka.loadingIcon,go=ka.dropdownMenuColumnStyle,Io=Zo==="hover",Xo=fe.useMemo(function(){return Kt.map(function(Fa){var _a,no=Fa.disabled,Yo=Fa.disableCheckbox,Wo=Fa[Ci],il=(_a=Fa[tr])!==null&&_a!==void 0?_a:Fa[vo.label],el=Fa[vo.value],cl=fr(Fa,vo),vl=Wo?Wo.map(function(ho){return ho[vo.value]}):[].concat((0,E.Z)(Gn),[el]),gl=Zt(vl),kl=zi.includes(gl),gr=Er.has(gl),Gi=ta.has(gl);return{disabled:no,label:il,value:el,isLeaf:cl,isLoading:kl,checked:gr,halfChecked:Gi,option:Fa,disableCheckbox:Yo,fullPath:vl,fullPathKey:gl}})},[Kt,Er,vo,ta,zi,Gn]);return fe.createElement("ul",{className:ea,role:"menu"},Xo.map(function(Fa){var _a,no=Fa.disabled,Yo=Fa.label,Wo=Fa.value,il=Fa.isLeaf,el=Fa.isLoading,cl=Fa.checked,vl=Fa.halfChecked,gl=Fa.option,kl=Fa.fullPath,gr=Fa.fullPathKey,Gi=Fa.disableCheckbox,ho=function(){if(!(no||Li)){var wa=(0,E.Z)(kl);Io&&il&&wa.pop(),Kr(wa)}},Ga=function(){ji(gl)&&Pr(kl,il)},mi;return typeof gl.title=="string"?mi=gl.title:typeof Yo=="string"&&(mi=Yo),fe.createElement("li",{key:gr,className:de()(Hi,(_a={},(0,Xe.Z)(_a,"".concat(Hi,"-expand"),!il),(0,Xe.Z)(_a,"".concat(Hi,"-active"),Bn===Wo||Bn===gr),(0,Xe.Z)(_a,"".concat(Hi,"-disabled"),no),(0,Xe.Z)(_a,"".concat(Hi,"-loading"),el),_a)),style:go,role:"menuitemcheckbox",title:mi,"aria-checked":cl,"data-path-key":gr,onClick:function(){ho(),!Gi&&(!Qt||il)&&Ga()},onDoubleClick:function(){Fo&&_n(!1)},onMouseEnter:function(){Io&&ho()},onMouseDown:function(wa){wa.preventDefault()}},Qt&&fe.createElement(Mr,{prefixCls:"".concat(nt,"-checkbox"),checked:cl,halfChecked:vl,disabled:no||Gi,disableCheckbox:Gi,onClick:function(wa){Gi||(wa.stopPropagation(),Ga())}}),fe.createElement("div",{className:"".concat(Hi,"-content")},Yo),!el&&Ao&&!il&&fe.createElement("div",{className:"".concat(Hi,"-expand-icon")},Ao),el&&qo&&fe.createElement("div",{className:"".concat(Hi,"-loading-icon")},qo))}))}var Ln=function(){var tt=zt(),nt=tt.multiple,Qt=tt.open,Kt=fe.useContext(fi),Bn=Kt.values,Gn=fe.useState([]),_n=(0,pe.Z)(Gn,2),Pr=_n[0],Kr=_n[1];return fe.useEffect(function(){if(Qt&&!nt){var Er=Bn[0];Kr(Er||[])}},[Qt]),[Pr,Kr]},Xn={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(nt){var Qt=nt.keyCode;if(nt.altKey&&!nt.ctrlKey||nt.metaKey||Qt>=Xn.F1&&Qt<=Xn.F12)return!1;switch(Qt){case Xn.ALT:case Xn.CAPS_LOCK:case Xn.CONTEXT_MENU:case Xn.CTRL:case Xn.DOWN:case Xn.END:case Xn.ESC:case Xn.HOME:case Xn.INSERT:case Xn.LEFT:case Xn.MAC_FF_META:case Xn.META:case Xn.NUMLOCK:case Xn.NUM_CENTER:case Xn.PAGE_DOWN:case Xn.PAGE_UP:case Xn.PAUSE:case Xn.PRINT_SCREEN:case Xn.RIGHT:case Xn.SHIFT:case Xn.UP:case Xn.WIN_KEY:case Xn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(nt){if(nt>=Xn.ZERO&&nt<=Xn.NINE||nt>=Xn.NUM_ZERO&&nt<=Xn.NUM_MULTIPLY||nt>=Xn.A&&nt<=Xn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&nt===0)return!0;switch(nt){case Xn.SPACE:case Xn.QUESTION_MARK:case Xn.NUM_PLUS:case Xn.NUM_MINUS:case Xn.NUM_PERIOD:case Xn.NUM_DIVISION:case Xn.SEMICOLON:case Xn.DASH:case Xn.EQUALS:case Xn.COMMA:case Xn.PERIOD:case Xn.SLASH:case Xn.APOSTROPHE:case Xn.SINGLE_QUOTE:case Xn.OPEN_SQUARE_BRACKET:case Xn.BACKSLASH:case Xn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},qr=Xn,Pi=function(tt,nt,Qt,Kt,Bn,Gn){var _n=zt(),Pr=_n.direction,Kr=_n.searchValue,Er=_n.toggleOpen,ta=_n.open,zi=Pr==="rtl",ji=fe.useMemo(function(){for(var go=-1,Io=nt,Xo=[],Fa=[],_a=Kt.length,no=lr(nt,Qt),Yo=function(gl){var kl=Io.findIndex(function(gr,Gi){return(no[Gi]?Zt(no[Gi]):gr[Qt.value])===Kt[gl]});if(kl===-1)return"break";go=kl,Xo.push(go),Fa.push(Kt[gl]),Io=Io[go][Qt.children]},Wo=0;Wo<_a&&Io;Wo+=1){var il=Yo(Wo);if(il==="break")break}for(var el=nt,cl=0;cl<Xo.length-1;cl+=1)el=el[Xo[cl]][Qt.children];return[Fa,go,el,no]},[Kt,Qt,nt]),Li=(0,pe.Z)(ji,4),ea=Li[0],Hi=Li[1],ka=Li[2],vo=Li[3],Fo=function(Io){Bn(Io)},Zo=function(Io){var Xo=ka.length,Fa=Hi;Fa===-1&&Io<0&&(Fa=Xo);for(var _a=0;_a<Xo;_a+=1){Fa=(Fa+Io+Xo)%Xo;var no=ka[Fa];if(no&&!no.disabled){var Yo=ea.slice(0,-1).concat(vo[Fa]?Zt(vo[Fa]):no[Qt.value]);Fo(Yo);return}}},Ao=function(){if(ea.length>1){var Io=ea.slice(0,-1);Fo(Io)}else Er(!1)},qo=function(){var Io,Xo=((Io=ka[Hi])===null||Io===void 0?void 0:Io[Qt.children])||[],Fa=Xo.find(function(no){return!no.disabled});if(Fa){var _a=[].concat((0,E.Z)(ea),[Fa[Qt.value]]);Fo(_a)}};fe.useImperativeHandle(tt,function(){return{onKeyDown:function(Io){var Xo=Io.which;switch(Xo){case qr.UP:case qr.DOWN:{var Fa=0;Xo===qr.UP?Fa=-1:Xo===qr.DOWN&&(Fa=1),Fa!==0&&Zo(Fa);break}case qr.LEFT:{if(Kr)break;zi?qo():Ao();break}case qr.RIGHT:{if(Kr)break;zi?Ao():qo();break}case qr.BACKSPACE:{Kr||Ao();break}case qr.ENTER:{if(ea.length){var _a=ka[Hi],no=(_a==null?void 0:_a[Ci])||[];no.length?Gn(no.map(function(Yo){return Yo[Qt.value]}),no[no.length-1]):Gn(ea,ka[Hi])}break}case qr.ESC:Er(!1),ta&&Io.stopPropagation()}},onKeyUp:function(){}}})},Da=fe.forwardRef(function(tt,nt){var Qt,Kt,Bn,Gn,_n=zt(),Pr=_n.prefixCls,Kr=_n.multiple,Er=_n.searchValue,ta=_n.toggleOpen,zi=_n.notFoundContent,ji=_n.direction,Li=_n.open,ea=fe.useRef(),Hi=ji==="rtl",ka=fe.useContext(fi),vo=ka.options,Fo=ka.values,Zo=ka.halfValues,Ao=ka.fieldNames,qo=ka.changeOnSelect,go=ka.onSelect,Io=ka.searchOptions,Xo=ka.dropdownPrefixCls,Fa=ka.loadData,_a=ka.expandTrigger,no=Xo||Pr,Yo=fe.useState([]),Wo=(0,pe.Z)(Yo,2),il=Wo[0],el=Wo[1],cl=function(Po){if(!(!Fa||Er)){var ll=di(Po,vo,Ao),Yl=ll.map(function(ds){var as=ds.option;return as}),$l=Yl[Yl.length-1];if($l&&!fr($l,Ao)){var us=Zt(Po);el(function(ds){return[].concat((0,E.Z)(ds),[us])}),Fa(Yl)}}};fe.useEffect(function(){il.length&&il.forEach(function(Jo){var Po=tn(Jo),ll=di(Po,vo,Ao,!0).map(function($l){var us=$l.option;return us}),Yl=ll[ll.length-1];(!Yl||Yl[Ao.children]||fr(Yl,Ao))&&el(function($l){return $l.filter(function(us){return us!==Jo})})})},[vo,il,Ao]);var vl=fe.useMemo(function(){return new Set(Ht(Fo))},[Fo]),gl=fe.useMemo(function(){return new Set(Ht(Zo))},[Zo]),kl=Ln(),gr=(0,pe.Z)(kl,2),Gi=gr[0],ho=gr[1],Ga=function(Po){ho(Po),cl(Po)},mi=function(Po){var ll=Po.disabled,Yl=fr(Po,Ao);return!ll&&(Yl||qo||Kr)},Sa=function(Po,ll){var Yl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;go(Po),!Kr&&(ll||qo&&(_a==="hover"||Yl))&&ta(!1)},wa=fe.useMemo(function(){return Er?Io:vo},[Er,Io,vo]),Qa=fe.useMemo(function(){for(var Jo=[{options:wa}],Po=wa,ll=lr(Po,Ao),Yl=function(){var as=Gi[$l],uu=Po.find(function(wu,Rs){return(ll[Rs]?Zt(ll[Rs]):wu[Ao.value])===as}),Xs=uu==null?void 0:uu[Ao.children];if(!(Xs!=null&&Xs.length))return"break";Po=Xs,Jo.push({options:Xs})},$l=0;$l<Gi.length;$l+=1){var us=Yl();if(us==="break")break}return Jo},[wa,Gi,Ao]),ca=function(Po,ll){mi(ll)&&Sa(Po,fr(ll,Ao),!0)};Pi(nt,wa,Ao,Gi,Ga,ca),fe.useEffect(function(){for(var Jo=0;Jo<Gi.length;Jo+=1){var Po,ll=Gi.slice(0,Jo+1),Yl=Zt(ll),$l=(Po=ea.current)===null||Po===void 0?void 0:Po.querySelector('li[data-path-key="'.concat(Yl.replace(/\\{0,2}"/g,'\\"'),'"]'));$l&&wr($l)}},[Gi]);var ba=!((Qt=Qa[0])!==null&&Qt!==void 0&&(Kt=Qt.options)!==null&&Kt!==void 0&&Kt.length),Ta=[(Bn={},(0,Xe.Z)(Bn,Ao.value,"__EMPTY__"),(0,Xe.Z)(Bn,tr,zi),(0,Xe.Z)(Bn,"disabled",!0),Bn)],Eo=(0,Pe.Z)((0,Pe.Z)({},tt),{},{multiple:!ba&&Kr,onSelect:Sa,onActive:Ga,onToggleOpen:ta,checkedSet:vl,halfCheckedSet:gl,loadingKeys:il,isSelectable:mi}),al=ba?[{options:Ta}]:Qa,oa=al.map(function(Jo,Po){var ll=Gi.slice(0,Po),Yl=Gi[Po];return fe.createElement(yr,(0,Se.Z)({key:Po},Eo,{searchValue:Er,prefixCls:no,options:Jo.options,prevValuePath:ll,activeValue:Yl}))});return fe.createElement(zr,{open:Li},fe.createElement("div",{className:de()("".concat(no,"-menus"),(Gn={},(0,Xe.Z)(Gn,"".concat(no,"-menu-empty"),ba),(0,Xe.Z)(Gn,"".concat(no,"-rtl"),Hi),Gn)),ref:ea},oa))}),la=Da;function La(tt){var nt=tt.onPopupVisibleChange,Qt=tt.popupVisible,Kt=tt.popupClassName,Bn=tt.popupPlacement;warning(!nt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Qt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Kt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Bn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function mo(tt,nt){if(tt){var Qt=function Kt(Bn){for(var Gn=0;Gn<Bn.length;Gn++){var _n=Bn[Gn];if(_n[nt==null?void 0:nt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(_n[nt==null?void 0:nt.children])&&Kt(_n[nt==null?void 0:nt.children]))return!0}};Qt(tt)}}var Ui=null,pi=["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 ri(tt){return Array.isArray(tt)&&Array.isArray(tt[0])}function Xa(tt){return tt?ri(tt)?tt:(tt.length===0?[]:[tt]).map(function(nt){return Array.isArray(nt)?nt:[nt]}):[]}var ya=fe.forwardRef(function(tt,nt){var Qt=tt.id,Kt=tt.prefixCls,Bn=Kt===void 0?"rc-cascader":Kt,Gn=tt.fieldNames,_n=tt.defaultValue,Pr=tt.value,Kr=tt.changeOnSelect,Er=tt.onChange,ta=tt.displayRender,zi=tt.checkable,ji=tt.autoClearSearchValue,Li=ji===void 0?!0:ji,ea=tt.searchValue,Hi=tt.onSearch,ka=tt.showSearch,vo=tt.expandTrigger,Fo=tt.options,Zo=tt.dropdownPrefixCls,Ao=tt.loadData,qo=tt.popupVisible,go=tt.open,Io=tt.popupClassName,Xo=tt.dropdownClassName,Fa=tt.dropdownMenuColumnStyle,_a=tt.popupPlacement,no=tt.placement,Yo=tt.onDropdownVisibleChange,Wo=tt.onPopupVisibleChange,il=tt.expandIcon,el=il===void 0?">":il,cl=tt.loadingIcon,vl=tt.children,gl=tt.dropdownMatchSelectWidth,kl=gl===void 0?!1:gl,gr=tt.showCheckedStrategy,Gi=gr===void 0?mr:gr,ho=(0,De.Z)(tt,pi),Ga=Vo(Qt),mi=!!zi,Sa=Xr(_n,{value:Pr,postState:Xa}),wa=(0,pe.Z)(Sa,2),Qa=wa[0],ca=wa[1],ba=fe.useMemo(function(){return xn(Gn)},[JSON.stringify(Gn)]),Ta=fe.useMemo(function(){return Fo||[]},[Fo]),Eo=Jr(Ta,ba),al=fe.useCallback(function(Os){var gs=Eo();return Os.map(function(fs){var Mu=gs[fs].nodes;return Mu.map(function(Gs){return Gs[ba.value]})})},[Eo,ba]),oa=Xr("",{value:ea,postState:function(gs){return gs||""}}),Jo=(0,pe.Z)(oa,2),Po=Jo[0],ll=Jo[1],Yl=function(gs,fs){ll(gs),fs.source!=="blur"&&Hi&&Hi(gs)},$l=rn(ka),us=(0,pe.Z)($l,2),ds=us[0],as=us[1],uu=On(Po,Ta,ba,Zo||Bn,as,Kr),Xs=Bi(Ta,ba),wu=fe.useMemo(function(){var Os=Xs(Qa),gs=(0,pe.Z)(Os,2),fs=gs[0],Mu=gs[1];if(!mi||!Qa.length)return[fs,[],Mu];var Gs=Ht(fs),mu=Eo(),Hl=(0,_r.S)(Gs,!0,mu),qa=Hl.checkedKeys,jo=Hl.halfCheckedKeys;return[al(qa),al(jo),Mu]},[mi,Qa,Eo,al,Xs]),Rs=(0,pe.Z)(wu,3),ws=Rs[0],Js=Rs[1],js=Rs[2],Bs=fe.useMemo(function(){var Os=Ht(ws),gs=kr(Os,Eo,Gi);return[].concat((0,E.Z)(js),(0,E.Z)(al(gs)))},[ws,Eo,al,js,Gi]),yu=Ni(Bs,Ta,ba,mi,ta),$s=nn(function(Os){if(ca(Os),Er){var gs=Xa(Os),fs=gs.map(function(mu){return di(mu,Ta,ba).map(function(Hl){return Hl.option})}),Mu=mi?gs:gs[0],Gs=mi?fs:fs[0];Er(Mu,Gs)}}),Fs=nn(function(Os){if((!mi||Li)&&ll(""),!mi)$s(Os);else{var gs=Zt(Os),fs=Ht(ws),Mu=Ht(Js),Gs=fs.includes(gs),mu=js.some(function(Du){return Zt(Du)===gs}),Hl=ws,qa=js;if(mu&&!Gs)qa=js.filter(function(Du){return Zt(Du)!==gs});else{var jo=Gs?fs.filter(function(Du){return Du!==gs}):[].concat((0,E.Z)(fs),[gs]),hl=Eo(),Il;if(Gs){var Ds=(0,_r.S)(jo,{checked:!1,halfCheckedKeys:Mu},hl);Il=Ds.checkedKeys}else{var ks=(0,_r.S)(jo,!0,hl);Il=ks.checkedKeys}var cu=kr(Il,Eo,Gi);Hl=al(cu)}$s([].concat((0,E.Z)(qa),(0,E.Z)(Hl)))}}),bu=function(gs,fs){if(fs.type==="clear"){$s([]);return}var Mu=fs.values[0],Gs=Mu.valueCells;Fs(Gs)},fc=go!==void 0?go:qo,$u=Xo||Io,Hs=no||_a,rs=function(gs){Yo==null||Yo(gs),Wo==null||Wo(gs)},Zs=fe.useMemo(function(){return{options:Ta,fieldNames:ba,values:ws,halfValues:Js,changeOnSelect:Kr,onSelect:Fs,checkable:zi,searchOptions:uu,dropdownPrefixCls:Zo,loadData:Ao,expandTrigger:vo,expandIcon:el,loadingIcon:cl,dropdownMenuColumnStyle:Fa}},[Ta,ba,ws,Js,Kr,Fs,zi,uu,Zo,Ao,vo,el,cl,Fa]),Au=!(Po?uu:Ta).length,_u=Po&&as.matchInputWidth||Au?{}:{minWidth:"auto"};return fe.createElement(fi.Provider,{value:Zs},fe.createElement(Sl,(0,Se.Z)({},ho,{ref:nt,id:Ga,prefixCls:Bn,autoClearSearchValue:Li,dropdownMatchSelectWidth:kl,dropdownStyle:_u,displayValues:yu,onDisplayValuesChange:bu,mode:mi?"multiple":void 0,searchValue:Po,onSearch:Yl,showSearch:ds,OptionList:la,emptyOptions:Au,open:fc,dropdownClassName:$u,placement:Hs,onDropdownVisibleChange:rs,getRawInputElement:function(){return vl}})))});ya.SHOW_PARENT=mr,ya.SHOW_CHILD=Zr;var to=ya,Ba=to,Ua=te(10366),ko=te(33603),Va=te(8745),qi=te(9708),So=te(53124),Ro=te(88258),fl=te(98866),Al=te(98675),jt=te(65223),dn=te(87244),Mn=te(13458),ur=te(78642),Qi=te(46163),dr=te(4173),ii=te(63185),si=te(14747),ki=te(80110),Yi=te(67968);const Lr=tt=>{const{prefixCls:nt,componentCls:Qt,antCls:Kt}=tt,Bn=`${Qt}-menu-item`,Gn=`
|
|
|
&${Bn}-expand ${Bn}-expand-icon,
|
|
|
${Bn}-loading-icon
|
|
|
`;return[{[Qt]:{width:tt.controlWidth}},{[`${Qt}-dropdown`]:[(0,ii.C2)(`${nt}-checkbox`,tt),{[`&${Kt}-select-dropdown`]:{padding:0}},{[Qt]:{"&-checkbox":{top:0,marginInlineEnd:tt.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Qt}-menu-empty`]:{[`${Qt}-menu`]:{width:"100%",height:"auto",[Bn]:{color:tt.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:tt.controlItemWidth,height:tt.dropdownHeight,margin:0,padding:tt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${tt.lineWidth}px ${tt.lineType} ${tt.colorSplit}`},"&-item":Object.assign(Object.assign({},si.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:tt.optionPadding,lineHeight:tt.lineHeight,cursor:"pointer",transition:`all ${tt.motionDurationMid}`,borderRadius:tt.borderRadiusSM,"&:hover":{background:tt.controlItemBgHover},"&-disabled":{color:tt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Gn]:{color:tt.colorTextDisabled}},[`&-active:not(${Bn}-disabled)`]:{"&, &:hover":{fontWeight:tt.optionSelectedFontWeight,backgroundColor:tt.optionSelectedBg}},"&-content":{flex:"auto"},[Gn]:{marginInlineStart:tt.paddingXXS,color:tt.colorTextDescription,fontSize:tt.fontSizeIcon},"&-keyword":{color:tt.colorHighlight}})}}}]},{[`${Qt}-dropdown-rtl`]:{direction:"rtl"}},(0,ki.c)(tt)]};var ia=(0,Yi.Z)("Cascader",tt=>[Lr(tt)],tt=>{const nt=Math.round((tt.controlHeight-tt.fontSize*tt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:tt.controlItemBgActive,optionSelectedFontWeight:tt.fontWeightStrong,optionPadding:`${nt}px ${tt.paddingSM}px`,menuPadding:tt.paddingXXS}}),Ha=function(tt,nt){var Qt={};for(var Kt in tt)Object.prototype.hasOwnProperty.call(tt,Kt)&&nt.indexOf(Kt)<0&&(Qt[Kt]=tt[Kt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,Kt=Object.getOwnPropertySymbols(tt);Bn<Kt.length;Bn++)nt.indexOf(Kt[Bn])<0&&Object.prototype.propertyIsEnumerable.call(tt,Kt[Bn])&&(Qt[Kt[Bn]]=tt[Kt[Bn]]);return Qt};const{SHOW_CHILD:ro,SHOW_PARENT:Xi}=Ba;function Wa(tt,nt,Qt){const Kt=tt.toLowerCase().split(nt).reduce((_n,Pr,Kr)=>Kr===0?[Pr]:[].concat((0,E.Z)(_n),[nt,Pr]),[]),Bn=[];let Gn=0;return Kt.forEach((_n,Pr)=>{const Kr=Gn+_n.length;let Er=tt.slice(Gn,Kr);Gn=Kr,Pr%2===1&&(Er=fe.createElement("span",{className:`${Qt}-menu-item-keyword`,key:`separator-${Pr}`},Er)),Bn.push(Er)}),Bn}const _i=(tt,nt,Qt,Kt)=>{const Bn=[],Gn=tt.toLowerCase();return nt.forEach((_n,Pr)=>{Pr!==0&&Bn.push(" / ");let Kr=_n[Kt.label];const Er=typeof Kr;(Er==="string"||Er==="number")&&(Kr=Wa(String(Kr),Gn,Qt)),Bn.push(Kr)}),Bn},jr=fe.forwardRef((tt,nt)=>{const{prefixCls:Qt,size:Kt,disabled:Bn,className:Gn,rootClassName:_n,multiple:Pr,bordered:Kr=!0,transitionName:Er,choiceTransitionName:ta="",popupClassName:zi,dropdownClassName:ji,expandIcon:Li,placement:ea,showSearch:Hi,allowClear:ka=!0,notFoundContent:vo,direction:Fo,getPopupContainer:Zo,status:Ao,showArrow:qo,builtinPlacements:go,style:Io}=tt,Xo=Ha(tt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Fa=(0,Ua.Z)(Xo,["suffixIcon"]),{getPopupContainer:_a,getPrefixCls:no,renderEmpty:Yo,direction:Wo,popupOverflow:il,cascader:el}=fe.useContext(So.E_),cl=Fo||Wo,vl=cl==="rtl",{status:gl,hasFeedback:kl,isFormItemInput:gr,feedbackIcon:Gi}=fe.useContext(jt.aM),ho=(0,qi.F)(gl,Ao),Ga=vo||(Yo==null?void 0:Yo("Cascader"))||fe.createElement(Ro.Z,{componentName:"Cascader"}),mi=no(),Sa=no("select",Qt),wa=no("cascader",Qt),[Qa,ca]=(0,dn.Z)(Sa),[ba]=ia(wa),{compactSize:Ta,compactItemClassnames:Eo}=(0,dr.ri)(Sa,Fo),al=de()(zi||ji,`${wa}-dropdown`,{[`${wa}-dropdown-rtl`]:cl==="rtl"},_n,ca),oa=fe.useMemo(()=>{if(!Hi)return Hi;let js={render:_i};return typeof Hi=="object"&&(js=Object.assign(Object.assign({},js),Hi)),js},[Hi]),Jo=(0,Al.Z)(js=>{var Bs;return(Bs=Kt!=null?Kt:Ta)!==null&&Bs!==void 0?Bs:js}),Po=fe.useContext(fl.Z),ll=Bn!=null?Bn:Po;let Yl=Li;Li||(Yl=vl?fe.createElement(Ie.Z,null):fe.createElement(xe.Z,null));const $l=fe.createElement("span",{className:`${Sa}-menu-item-loading-icon`},fe.createElement(Te.Z,{spin:!0})),us=fe.useMemo(()=>Pr?fe.createElement("span",{className:`${wa}-checkbox-inner`}):!1,[Pr]),ds=(0,ur.Z)(tt.suffixIcon,qo),{suffixIcon:as,removeIcon:uu,clearIcon:Xs}=(0,Qi.Z)(Object.assign(Object.assign({},tt),{hasFeedback:kl,feedbackIcon:Gi,showSuffixIcon:ds,multiple:Pr,prefixCls:Sa,componentName:"Cascader"})),wu=fe.useMemo(()=>ea!==void 0?ea:vl?"bottomRight":"bottomLeft",[ea,vl]),Rs=(0,Mn.Z)(go,il),ws=ka===!0?{clearIcon:Xs}:ka,Js=fe.createElement(Ba,Object.assign({prefixCls:Sa,className:de()(!Qt&&wa,{[`${Sa}-lg`]:Jo==="large",[`${Sa}-sm`]:Jo==="small",[`${Sa}-rtl`]:vl,[`${Sa}-borderless`]:!Kr,[`${Sa}-in-form-item`]:gr},(0,qi.Z)(Sa,ho,kl),Eo,el==null?void 0:el.className,Gn,_n,ca),disabled:ll,style:Object.assign(Object.assign({},el==null?void 0:el.style),Io)},Fa,{builtinPlacements:Rs,direction:cl,placement:wu,notFoundContent:Ga,allowClear:ws,showSearch:oa,expandIcon:Yl,suffixIcon:as,removeIcon:uu,loadingIcon:$l,checkable:us,dropdownClassName:al,dropdownPrefixCls:Qt||wa,choiceTransitionName:(0,ko.m)(mi,"",ta),transitionName:(0,ko.m)(mi,"slide-up",Er),getPopupContainer:Zo||_a,ref:nt}));return ba(Qa(Js))}),li=(0,Va.Z)(jr);jr.SHOW_PARENT=Xi,jr.SHOW_CHILD=ro,jr._InternalPanelDoNotUseOrYouWillBeFired=li;var va=jr},84567:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return Ye}});var E=te(94184),fe=te.n(E),Ie=te(95860),Te=te(67294),xe=te(53124),Be=te(98866),de=te(65223),pe=Te.createContext(null),De=te(63185),Xe=te(45353),Pe=te(92429),Ue=function(Ne,ot){var ct={};for(var _e in Ne)Object.prototype.hasOwnProperty.call(Ne,_e)&&ot.indexOf(_e)<0&&(ct[_e]=Ne[_e]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,_e=Object.getOwnPropertySymbols(Ne);Me<_e.length;Me++)ot.indexOf(_e[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,_e[Me])&&(ct[_e[Me]]=Ne[_e[Me]]);return ct};const rt=(Ne,ot)=>{var ct;const{prefixCls:_e,className:Me,rootClassName:pt,children:$e,indeterminate:ft=!1,style:We,onMouseEnter:gt,onMouseLeave:kt,skipGroup:xt=!1,disabled:et}=Ne,Fe=Ue(Ne,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Dt,direction:qt,checkbox:Xt}=Te.useContext(xe.E_),Et=Te.useContext(pe),{isFormItemInput:zt}=Te.useContext(de.aM),Yt=Te.useContext(Be.Z),Vn=(ct=(Et==null?void 0:Et.disabled)||et)!==null&&ct!==void 0?ct:Yt,Pn=Te.useRef(Fe.value);Te.useEffect(()=>{Et==null||Et.registerValue(Fe.value)},[]),Te.useEffect(()=>{if(!xt)return Fe.value!==Pn.current&&(Et==null||Et.cancelValue(Pn.current),Et==null||Et.registerValue(Fe.value),Pn.current=Fe.value),()=>Et==null?void 0:Et.cancelValue(Fe.value)},[Fe.value]);const _t=Dt("checkbox",_e),[pn,sr]=(0,De.ZP)(_t),Tn=Object.assign({},Fe);Et&&!xt&&(Tn.onChange=function(){Fe.onChange&&Fe.onChange.apply(Fe,arguments),Et.toggleOption&&Et.toggleOption({label:$e,value:Fe.value})},Tn.name=Et.name,Tn.checked=Et.value.includes(Fe.value));const Oe=fe()(`${_t}-wrapper`,{[`${_t}-rtl`]:qt==="rtl",[`${_t}-wrapper-checked`]:Tn.checked,[`${_t}-wrapper-disabled`]:Vn,[`${_t}-wrapper-in-form-item`]:zt},Xt==null?void 0:Xt.className,Me,pt,sr),me=fe()({[`${_t}-indeterminate`]:ft},Pe.A,sr),he=ft?"mixed":void 0;return pn(Te.createElement(Xe.Z,{component:"Checkbox",disabled:Vn},Te.createElement("label",{className:Oe,style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),We),onMouseEnter:gt,onMouseLeave:kt},Te.createElement(Ie.Z,Object.assign({"aria-checked":he},Tn,{prefixCls:_t,className:me,disabled:Vn,ref:ot})),$e!==void 0&&Te.createElement("span",null,$e))))};var He=Te.forwardRef(rt),be=te(74902),Qe=te(10366),ht=function(Ne,ot){var ct={};for(var _e in Ne)Object.prototype.hasOwnProperty.call(Ne,_e)&&ot.indexOf(_e)<0&&(ct[_e]=Ne[_e]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,_e=Object.getOwnPropertySymbols(Ne);Me<_e.length;Me++)ot.indexOf(_e[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,_e[Me])&&(ct[_e[Me]]=Ne[_e[Me]]);return ct};const Je=(Ne,ot)=>{const{defaultValue:ct,children:_e,options:Me=[],prefixCls:pt,className:$e,rootClassName:ft,style:We,onChange:gt}=Ne,kt=ht(Ne,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:xt,direction:et}=Te.useContext(xe.E_),[Fe,Dt]=Te.useState(kt.value||ct||[]),[qt,Xt]=Te.useState([]);Te.useEffect(()=>{"value"in kt&&Dt(kt.value||[])},[kt.value]);const Et=Te.useMemo(()=>Me.map(ge=>typeof ge=="string"||typeof ge=="number"?{label:ge,value:ge}:ge),[Me]),zt=ge=>{Xt(ve=>ve.filter(se=>se!==ge))},Yt=ge=>{Xt(ve=>[].concat((0,be.Z)(ve),[ge]))},Vn=ge=>{const ve=Fe.indexOf(ge.value),se=(0,be.Z)(Fe);ve===-1?se.push(ge.value):se.splice(ve,1),"value"in kt||Dt(se),gt==null||gt(se.filter(Ke=>qt.includes(Ke)).sort((Ke,bt)=>{const Wt=Et.findIndex(bn=>bn.value===Ke),yn=Et.findIndex(bn=>bn.value===bt);return Wt-yn}))},Pn=xt("checkbox",pt),_t=`${Pn}-group`,[pn,sr]=(0,De.ZP)(Pn),Tn=(0,Qe.Z)(kt,["value","disabled"]),Oe=Me.length?Et.map(ge=>Te.createElement(He,{prefixCls:Pn,key:ge.value.toString(),disabled:"disabled"in ge?ge.disabled:kt.disabled,value:ge.value,checked:Fe.includes(ge.value),onChange:ge.onChange,className:`${_t}-item`,style:ge.style,title:ge.title},ge.label)):_e,me={toggleOption:Vn,value:Fe,disabled:kt.disabled,name:kt.name,registerValue:Yt,cancelValue:zt},he=fe()(_t,{[`${_t}-rtl`]:et==="rtl"},$e,ft,sr);return pn(Te.createElement("div",Object.assign({className:he,style:We},Tn,{ref:ot}),Te.createElement(pe.Provider,{value:me},Oe)))},Ze=Te.forwardRef(Je);var ye=Te.memo(Ze);const Ee=He;Ee.Group=ye,Ee.__ANT_CHECKBOX=!0;var Ye=Ee},63185:function(In,Ut,te){"use strict";te.d(Ut,{C2:function(){return xe}});var E=te(14747),fe=te(45503),Ie=te(67968);const Te=Be=>{const{checkboxCls:de}=Be,Se=`${de}-wrapper`;return[{[`${de}-group`]:Object.assign(Object.assign({},(0,E.Wf)(Be)),{display:"inline-flex",flexWrap:"wrap",columnGap:Be.marginXS,[`> ${Be.antCls}-row`]:{flex:1}}),[Se]:Object.assign(Object.assign({},(0,E.Wf)(Be)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Se}`]:{marginInlineStart:0},[`&${Se}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[de]:Object.assign(Object.assign({},(0,E.Wf)(Be)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Be.borderRadiusSM,alignSelf:"center",[`${de}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${de}-inner`]:Object.assign({},(0,E.oN)(Be))},[`${de}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Be.checkboxSize,height:Be.checkboxSize,direction:"ltr",backgroundColor:Be.colorBgContainer,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadiusSM,borderCollapse:"separate",transition:`all ${Be.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Be.checkboxSize/14*5,height:Be.checkboxSize/14*8,border:`${Be.lineWidthBold}px solid ${Be.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Be.motionDurationFast} ${Be.motionEaseInBack}, opacity ${Be.motionDurationFast}`}},"& + span":{paddingInlineStart:Be.paddingXS,paddingInlineEnd:Be.paddingXS}})},{[`
|
|
|
${Se}:not(${Se}-disabled),
|
|
|
${de}:not(${de}-disabled)
|
|
|
`]:{[`&:hover ${de}-inner`]:{borderColor:Be.colorPrimary}},[`${Se}:not(${Se}-disabled)`]:{[`&:hover ${de}-checked:not(${de}-disabled) ${de}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${de}-checked:not(${de}-disabled):after`]:{borderColor:Be.colorPrimaryHover}}},{[`${de}-checked`]:{[`${de}-inner`]:{backgroundColor:Be.colorPrimary,borderColor:Be.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Be.motionDurationMid} ${Be.motionEaseOutBack} ${Be.motionDurationFast}`}}},[`
|
|
|
${Se}-checked:not(${Se}-disabled),
|
|
|
${de}-checked:not(${de}-disabled)
|
|
|
`]:{[`&:hover ${de}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"}}},{[de]:{"&-indeterminate":{[`${de}-inner`]:{backgroundColor:Be.colorBgContainer,borderColor:Be.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Be.fontSizeLG/2,height:Be.fontSizeLG/2,backgroundColor:Be.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Se}-disabled`]:{cursor:"not-allowed"},[`${de}-disabled`]:{[`&, ${de}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${de}-inner`]:{background:Be.colorBgContainerDisabled,borderColor:Be.colorBorder,"&:after":{borderColor:Be.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Be.colorTextDisabled},[`&${de}-indeterminate ${de}-inner::after`]:{background:Be.colorTextDisabled}}}]};function xe(Be,de){const Se=(0,fe.TS)(de,{checkboxCls:`.${Be}`,checkboxSize:de.controlInteractiveSize});return[Te(Se)]}Ut.ZP=(0,Ie.Z)("Checkbox",(Be,de)=>{let{prefixCls:Se}=de;return[xe(Se,Be)]})},47221:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return Tn}});var E=te(91034),fe=te(94184),Ie=te.n(fe),Te=te(97685),xe=te(74902),Be=te(71002),de=te(21770),Se=te(80334),pe=te(67294),De=te(87462),Xe=te(45987),Pe=te(50344),Ue=te(4942),rt=te(62874),qe=te(15105),He=pe.forwardRef(function(Oe,me){var he,ge=Oe.prefixCls,ve=Oe.forceRender,se=Oe.className,Ke=Oe.style,bt=Oe.children,Wt=Oe.isActive,yn=Oe.role,bn=pe.useState(Wt||ve),cn=(0,Te.Z)(bn,2),wn=cn[0],Tt=cn[1];return pe.useEffect(function(){(ve||Wt)&&Tt(!0)},[ve,Wt]),wn?pe.createElement("div",{ref:me,className:Ie()("".concat(ge,"-content"),(he={},(0,Ue.Z)(he,"".concat(ge,"-content-active"),Wt),(0,Ue.Z)(he,"".concat(ge,"-content-inactive"),!Wt),he),se),style:Ke,role:yn},pe.createElement("div",{className:"".concat(ge,"-content-box")},bt)):null});He.displayName="PanelContent";var be=He,Qe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ht=pe.forwardRef(function(Oe,me){var he,ge,ve=Oe.showArrow,se=ve===void 0?!0:ve,Ke=Oe.headerClass,bt=Oe.isActive,Wt=Oe.onItemClick,yn=Oe.forceRender,bn=Oe.className,cn=Oe.prefixCls,wn=Oe.collapsible,Tt=Oe.accordion,nn=Oe.panelKey,fn=Oe.extra,sn=Oe.header,an=Oe.expandIcon,xr=Oe.openMotion,Lt=Oe.destroyInactivePanel,Vt=Oe.children,cr=(0,Xe.Z)(Oe,Qe),En=wn==="disabled",en=wn==="header",Fr=wn==="icon",Ur=fn!=null&&typeof fn!="boolean",ai=function(){Wt==null||Wt(nn)},ei=function(vi){(vi.key==="Enter"||vi.keyCode===qe.Z.ENTER||vi.which===qe.Z.ENTER)&&ai()},Mi=typeof an=="function"?an(Oe):pe.createElement("i",{className:"arrow"});Mi&&(Mi=pe.createElement("div",{className:"".concat(cn,"-expand-icon"),onClick:["header","icon"].includes(wn)?ai:void 0},Mi));var ci=Ie()((he={},(0,Ue.Z)(he,"".concat(cn,"-item"),!0),(0,Ue.Z)(he,"".concat(cn,"-item-active"),bt),(0,Ue.Z)(he,"".concat(cn,"-item-disabled"),En),he),bn),Qn=Ie()(Ke,(ge={},(0,Ue.Z)(ge,"".concat(cn,"-header"),!0),(0,Ue.Z)(ge,"".concat(cn,"-header-collapsible-only"),en),(0,Ue.Z)(ge,"".concat(cn,"-icon-collapsible-only"),Fr),ge)),Or={className:Qn,"aria-expanded":bt,"aria-disabled":En,onKeyDown:ei};return!en&&!Fr&&(Or.onClick=ai,Or.role=Tt?"tab":"button",Or.tabIndex=En?-1:0),pe.createElement("div",(0,De.Z)({},cr,{ref:me,className:ci}),pe.createElement("div",Or,se&&Mi,pe.createElement("span",{className:"".concat(cn,"-header-text"),onClick:wn==="header"?ai:void 0},sn),Ur&&pe.createElement("div",{className:"".concat(cn,"-extra")},fn)),pe.createElement(rt.Z,(0,De.Z)({visible:bt,leavedClassName:"".concat(cn,"-content-hidden")},xr,{forceRender:yn,removeOnLeave:Lt}),function(Hr,vi){var Zi=Hr.className,$t=Hr.style;return pe.createElement(be,{ref:vi,prefixCls:cn,className:Zi,style:$t,isActive:bt,forceRender:yn,role:Tt?"tabpanel":void 0},Vt)}))}),Je=ht,Ze=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ye=function(me,he){var ge=he.prefixCls,ve=he.accordion,se=he.collapsible,Ke=he.destroyInactivePanel,bt=he.onItemClick,Wt=he.activeKey,yn=he.openMotion,bn=he.expandIcon;return me.map(function(cn,wn){var Tt=cn.children,nn=cn.label,fn=cn.key,sn=cn.collapsible,an=cn.onItemClick,xr=cn.destroyInactivePanel,Lt=(0,Xe.Z)(cn,Ze),Vt=String(fn!=null?fn:wn),cr=sn!=null?sn:se,En=xr!=null?xr:Ke,en=function(ai){cr!=="disabled"&&(bt(ai),an==null||an(ai))},Fr=!1;return ve?Fr=Wt[0]===Vt:Fr=Wt.indexOf(Vt)>-1,pe.createElement(Je,(0,De.Z)({},Lt,{prefixCls:ge,key:Vt,panelKey:Vt,isActive:Fr,accordion:ve,openMotion:yn,expandIcon:bn,header:nn,collapsible:cr,onItemClick:en,destroyInactivePanel:En}),Tt)})},Ee=function(me,he,ge){if(!me)return null;var ve=ge.prefixCls,se=ge.accordion,Ke=ge.collapsible,bt=ge.destroyInactivePanel,Wt=ge.onItemClick,yn=ge.activeKey,bn=ge.openMotion,cn=ge.expandIcon,wn=me.key||String(he),Tt=me.props,nn=Tt.header,fn=Tt.headerClass,sn=Tt.destroyInactivePanel,an=Tt.collapsible,xr=Tt.onItemClick,Lt=!1;se?Lt=yn[0]===wn:Lt=yn.indexOf(wn)>-1;var Vt=an!=null?an:Ke,cr=function(Fr){Vt!=="disabled"&&(Wt(Fr),xr==null||xr(Fr))},En={key:wn,panelKey:wn,header:nn,headerClass:fn,isActive:Lt,prefixCls:ve,destroyInactivePanel:sn!=null?sn:bt,openMotion:bn,accordion:se,children:me.props.children,onItemClick:cr,expandIcon:cn,collapsible:Vt};return typeof me.type=="string"?me:(Object.keys(En).forEach(function(en){typeof En[en]=="undefined"&&delete En[en]}),pe.cloneElement(me,En))};function Ye(Oe,me,he){return Array.isArray(Oe)?ye(Oe,he):(0,Pe.Z)(me).map(function(ge,ve){return Ee(ge,ve,he)})}var Ne=Ye;function ot(Oe){var me=Oe;if(!Array.isArray(me)){var he=(0,Be.Z)(me);me=he==="number"||he==="string"?[me]:[]}return me.map(function(ge){return String(ge)})}var ct=pe.forwardRef(function(Oe,me){var he=Oe.prefixCls,ge=he===void 0?"rc-collapse":he,ve=Oe.destroyInactivePanel,se=ve===void 0?!1:ve,Ke=Oe.style,bt=Oe.accordion,Wt=Oe.className,yn=Oe.children,bn=Oe.collapsible,cn=Oe.openMotion,wn=Oe.expandIcon,Tt=Oe.activeKey,nn=Oe.defaultActiveKey,fn=Oe.onChange,sn=Oe.items,an=Ie()(ge,Wt),xr=(0,de.Z)([],{value:Tt,onChange:function(Ur){return fn==null?void 0:fn(Ur)},defaultValue:nn,postState:ot}),Lt=(0,Te.Z)(xr,2),Vt=Lt[0],cr=Lt[1],En=function(Ur){return cr(function(){if(bt)return Vt[0]===Ur?[]:[Ur];var ai=Vt.indexOf(Ur),ei=ai>-1;return ei?Vt.filter(function(Mi){return Mi!==Ur}):[].concat((0,xe.Z)(Vt),[Ur])})};(0,Se.ZP)(!yn,"`children` will be removed in next major version. Please use `items` instead.");var en=Ne(sn,yn,{prefixCls:ge,accordion:bt,openMotion:cn,expandIcon:wn,collapsible:bn,destroyInactivePanel:se,onItemClick:En,activeKey:Vt});return pe.createElement("div",{ref:me,className:an,style:Ke,role:bt?"tablist":void 0},en)}),_e=Object.assign(ct,{Panel:Je}),Me=_e,pt=_e.Panel,$e=te(37419),ft=te(10366),We=te(33603),gt=te(96159),kt=te(53124),xt=te(98675),Fe=pe.forwardRef((Oe,me)=>{const{getPrefixCls:he}=pe.useContext(kt.E_),{prefixCls:ge,className:ve,showArrow:se=!0}=Oe,Ke=he("collapse",ge),bt=Ie()({[`${Ke}-no-arrow`]:!se},ve);return pe.createElement(Me.Panel,Object.assign({ref:me},Oe,{prefixCls:Ke,className:bt}))}),Dt=te(14747),qt=te(33507),Xt=te(67968),Et=te(45503);const zt=Oe=>{const{componentCls:me,contentBg:he,padding:ge,headerBg:ve,headerPadding:se,collapseHeaderPaddingSM:Ke,collapseHeaderPaddingLG:bt,collapsePanelBorderRadius:Wt,lineWidth:yn,lineType:bn,colorBorder:cn,colorText:wn,colorTextHeading:Tt,colorTextDisabled:nn,fontSize:fn,fontSizeLG:sn,lineHeight:an,marginSM:xr,paddingSM:Lt,paddingLG:Vt,paddingXS:cr,motionDurationSlow:En,fontSizeIcon:en,contentPadding:Fr}=Oe,Ur=`${yn}px ${bn} ${cn}`;return{[me]:Object.assign(Object.assign({},(0,Dt.Wf)(Oe)),{backgroundColor:ve,border:Ur,borderBottom:0,borderRadius:`${Wt}px`,"&-rtl":{direction:"rtl"},[`& > ${me}-item`]:{borderBottom:Ur,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${me}-header`]:{borderRadius:`0 0 ${Wt}px ${Wt}px`}},[`> ${me}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:se,color:Tt,lineHeight:an,cursor:"pointer",transition:`all ${En}, visibility 0s`,[`> ${me}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${me}-expand-icon`]:{height:fn*an,display:"flex",alignItems:"center",paddingInlineEnd:xr},[`${me}-arrow`]:Object.assign(Object.assign({},(0,Dt.Ro)()),{fontSize:en,svg:{transition:`transform ${En}`}}),[`${me}-header-text`]:{marginInlineEnd:"auto"}},[`${me}-header-collapsible-only`]:{cursor:"default",[`${me}-header-text`]:{flex:"none",cursor:"pointer"}},[`${me}-icon-collapsible-only`]:{cursor:"default",[`${me}-expand-icon`]:{cursor:"pointer"}}},[`${me}-content`]:{color:wn,backgroundColor:he,borderTop:Ur,[`& > ${me}-content-box`]:{padding:Fr},"&-hidden":{display:"none"}},"&-small":{[`> ${me}-item`]:{[`> ${me}-header`]:{padding:Ke,paddingInlineStart:cr,[`> ${me}-expand-icon`]:{marginInlineStart:Lt-cr}},[`> ${me}-content > ${me}-content-box`]:{padding:Lt}}},"&-large":{[`> ${me}-item`]:{fontSize:sn,[`> ${me}-header`]:{padding:bt,paddingInlineStart:ge,[`> ${me}-expand-icon`]:{height:sn*an,marginInlineStart:Vt-ge}},[`> ${me}-content > ${me}-content-box`]:{padding:Vt}}},[`${me}-item:last-child`]:{[`> ${me}-content`]:{borderRadius:`0 0 ${Wt}px ${Wt}px`}},[`& ${me}-item-disabled > ${me}-header`]:{"\n &,\n & > .arrow\n ":{color:nn,cursor:"not-allowed"}},[`&${me}-icon-position-end`]:{[`& > ${me}-item`]:{[`> ${me}-header`]:{[`${me}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:xr}}}}})}},Yt=Oe=>{const{componentCls:me}=Oe,he=`> ${me}-item > ${me}-header ${me}-arrow svg`;return{[`${me}-rtl`]:{[he]:{transform:"rotate(180deg)"}}}},Vn=Oe=>{const{componentCls:me,headerBg:he,paddingXXS:ge,colorBorder:ve}=Oe;return{[`${me}-borderless`]:{backgroundColor:he,border:0,[`> ${me}-item`]:{borderBottom:`1px solid ${ve}`},[`
|
|
|
> ${me}-item:last-child,
|
|
|
> ${me}-item:last-child ${me}-header
|
|
|
`]:{borderRadius:0},[`> ${me}-item:last-child`]:{borderBottom:0},[`> ${me}-item > ${me}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${me}-item > ${me}-content > ${me}-content-box`]:{paddingTop:ge}}}},Pn=Oe=>{const{componentCls:me,paddingSM:he}=Oe;return{[`${me}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${me}-item`]:{borderBottom:0,[`> ${me}-content`]:{backgroundColor:"transparent",border:0,[`> ${me}-content-box`]:{paddingBlock:he}}}}}};var _t=(0,Xt.Z)("Collapse",Oe=>{const me=(0,Et.TS)(Oe,{collapseHeaderPaddingSM:`${Oe.paddingXS}px ${Oe.paddingSM}px`,collapseHeaderPaddingLG:`${Oe.padding}px ${Oe.paddingLG}px`,collapsePanelBorderRadius:Oe.borderRadiusLG});return[zt(me),Vn(me),Pn(me),Yt(me),(0,qt.Z)(me)]},Oe=>({headerPadding:`${Oe.paddingSM}px ${Oe.padding}px`,headerBg:Oe.colorFillAlter,contentPadding:`${Oe.padding}px 16px`,contentBg:Oe.colorBgContainer})),sr=Object.assign(pe.forwardRef((Oe,me)=>{const{getPrefixCls:he,direction:ge,collapse:ve}=pe.useContext(kt.E_),{prefixCls:se,className:Ke,rootClassName:bt,style:Wt,bordered:yn=!0,ghost:bn,size:cn,expandIconPosition:wn="start",children:Tt,expandIcon:nn}=Oe,fn=(0,xt.Z)(Ur=>{var ai;return(ai=cn!=null?cn:Ur)!==null&&ai!==void 0?ai:"middle"}),sn=he("collapse",se),an=he(),[xr,Lt]=_t(sn),Vt=pe.useMemo(()=>wn==="left"?"start":wn==="right"?"end":wn,[wn]),cr=function(){let Ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ai=nn?nn(Ur):pe.createElement(E.Z,{rotate:Ur.isActive?90:void 0});return(0,gt.Tm)(ai,()=>({className:Ie()(ai.props.className,`${sn}-arrow`)}))},En=Ie()(`${sn}-icon-position-${Vt}`,{[`${sn}-borderless`]:!yn,[`${sn}-rtl`]:ge==="rtl",[`${sn}-ghost`]:!!bn,[`${sn}-${fn}`]:fn!=="middle"},ve==null?void 0:ve.className,Ke,bt,Lt),en=Object.assign(Object.assign({},(0,We.Z)(an)),{motionAppear:!1,leavedClassName:`${sn}-content-hidden`}),Fr=pe.useMemo(()=>Tt?(0,$e.Z)(Tt).map((Ur,ai)=>{var ei,Mi;if(!((ei=Ur.props)===null||ei===void 0)&&ei.disabled){const ci=(Mi=Ur.key)!==null&&Mi!==void 0?Mi:String(ai),{disabled:Qn,collapsible:Or}=Ur.props,Hr=Object.assign(Object.assign({},(0,ft.Z)(Ur.props,["disabled"])),{key:ci,collapsible:Or!=null?Or:Qn?"disabled":void 0});return(0,gt.Tm)(Ur,Hr)}return Ur}):null,[Tt]);return xr(pe.createElement(Me,Object.assign({ref:me,openMotion:en},(0,ft.Z)(Oe,["rootClassName"]),{expandIcon:cr,prefixCls:sn,className:En,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),Wt)}),Fr))}),{Panel:Fe}),Tn=sr},88258:function(In,Ut,te){"use strict";var E=te(67294),fe=te(53124),Ie=te(32983);const Te=xe=>{const{componentName:Be}=xe,{getPrefixCls:de}=(0,E.useContext)(fe.E_),Se=de("empty");switch(Be){case"Table":case"List":return E.createElement(Ie.Z,{image:Ie.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(Ie.Z,{image:Ie.Z.PRESENTED_IMAGE_SIMPLE,className:`${Se}-small`});default:return E.createElement(Ie.Z,null)}};Ut.Z=Te},96074:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Pe}});var E=te(94184),fe=te.n(E),Ie=te(67294),Te=te(53124),xe=te(14747),Be=te(67968),de=te(45503);const Se=Ue=>{const{componentCls:rt,sizePaddingEdgeHorizontal:qe,colorSplit:He,lineWidth:be,textPaddingInline:Qe,orientationMargin:ht,verticalMarginInline:Je}=Ue;return{[rt]:Object.assign(Object.assign({},(0,xe.Wf)(Ue)),{borderBlockStart:`${be}px solid ${He}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Je,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${be}px solid ${He}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ue.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${rt}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ue.dividerHorizontalWithTextGutterMargin}px 0`,color:Ue.colorTextHeading,fontWeight:500,fontSize:Ue.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${He}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${be}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${rt}-with-text-left`]:{"&::before":{width:`${ht*100}%`},"&::after":{width:`${100-ht*100}%`}},[`&-horizontal${rt}-with-text-right`]:{"&::before":{width:`${100-ht*100}%`},"&::after":{width:`${ht*100}%`}},[`${rt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Qe},"&-dashed":{background:"none",borderColor:He,borderStyle:"dashed",borderWidth:`${be}px 0 0`},[`&-horizontal${rt}-with-text${rt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${rt}-dashed`]:{borderInlineStartWidth:be,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${rt}-with-text`]:{color:Ue.colorText,fontWeight:"normal",fontSize:Ue.fontSize},[`&-horizontal${rt}-with-text-left${rt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${rt}-inner-text`]:{paddingInlineStart:qe}},[`&-horizontal${rt}-with-text-right${rt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${rt}-inner-text`]:{paddingInlineEnd:qe}}})}};var pe=(0,Be.Z)("Divider",Ue=>{const rt=(0,de.TS)(Ue,{dividerHorizontalWithTextGutterMargin:Ue.margin,dividerHorizontalGutterMargin:Ue.marginLG,sizePaddingEdgeHorizontal:0});return[Se(rt)]},Ue=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ue.marginXS})),De=function(Ue,rt){var qe={};for(var He in Ue)Object.prototype.hasOwnProperty.call(Ue,He)&&rt.indexOf(He)<0&&(qe[He]=Ue[He]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,He=Object.getOwnPropertySymbols(Ue);be<He.length;be++)rt.indexOf(He[be])<0&&Object.prototype.propertyIsEnumerable.call(Ue,He[be])&&(qe[He[be]]=Ue[He[be]]);return qe},Pe=Ue=>{const{getPrefixCls:rt,direction:qe,divider:He}=Ie.useContext(Te.E_),{prefixCls:be,type:Qe="horizontal",orientation:ht="center",orientationMargin:Je,className:Ze,rootClassName:ye,children:Ee,dashed:Ye,plain:Ne,style:ot}=Ue,ct=De(Ue,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),_e=rt("divider",be),[Me,pt]=pe(_e),$e=ht.length>0?`-${ht}`:ht,ft=!!Ee,We=ht==="left"&&Je!=null,gt=ht==="right"&&Je!=null,kt=fe()(_e,He==null?void 0:He.className,pt,`${_e}-${Qe}`,{[`${_e}-with-text`]:ft,[`${_e}-with-text${$e}`]:ft,[`${_e}-dashed`]:!!Ye,[`${_e}-plain`]:!!Ne,[`${_e}-rtl`]:qe==="rtl",[`${_e}-no-default-orientation-margin-left`]:We,[`${_e}-no-default-orientation-margin-right`]:gt},Ze,ye),xt=Ie.useMemo(()=>typeof Je=="number"?Je:/^\d+$/.test(Je)?Number(Je):Je,[Je]),et=Object.assign(Object.assign({},We&&{marginLeft:xt}),gt&&{marginRight:xt});return Me(Ie.createElement("div",Object.assign({className:kt,style:Object.assign(Object.assign({},He==null?void 0:He.style),ot)},ct,{role:"separator"}),Ee&&Qe!=="vertical"&&Ie.createElement("span",{className:`${_e}-inner-text`,style:et},Ee)))}},72565:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Vo}});var E=te(94184),fe=te.n(E),Ie=te(1413),Te=te(97685),xe=te(67294),Be=te(73935);function de(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Se={};function pe(Wn,Nn){}function De(Wn,Nn){}function Xe(){Se={}}function Pe(Wn,Nn,Ir){!Nn&&!Se[Ir]&&(Wn(!1,Ir),Se[Ir]=!0)}function Ue(Wn,Nn){Pe(pe,Wn,Nn)}function rt(Wn,Nn){Pe(De,Wn,Nn)}var qe=null,He=te(71002),be=te(18459);function Qe(Wn,Nn,Ir){var Cr=xe.useRef({});return(!("value"in Cr.current)||Ir(Cr.current.condition,Nn))&&(Cr.current.value=Wn(),Cr.current.condition=Nn),Cr.current.value}function ht(Wn,Nn){typeof Wn=="function"?Wn(Nn):(0,He.Z)(Wn)==="object"&&Wn&&"current"in Wn&&(Wn.current=Nn)}function Je(){for(var Wn=arguments.length,Nn=new Array(Wn),Ir=0;Ir<Wn;Ir++)Nn[Ir]=arguments[Ir];var Cr=Nn.filter(function(Ii){return Ii});return Cr.length<=1?Cr[0]:function(Ii){Nn.forEach(function(Ma){ht(Ma,Ii)})}}function Ze(){for(var Wn=arguments.length,Nn=new Array(Wn),Ir=0;Ir<Wn;Ir++)Nn[Ir]=arguments[Ir];return Qe(function(){return Je.apply(void 0,Nn)},Nn,function(Cr,Ii){return Cr.length===Ii.length&&Cr.every(function(Ma,Ka){return Ma===Ii[Ka]})})}function ye(Wn){var Nn,Ir,Cr=(0,be.isMemo)(Wn)?Wn.type.type:Wn.type;return!(typeof Cr=="function"&&!((Nn=Cr.prototype)!==null&&Nn!==void 0&&Nn.render)||typeof Wn=="function"&&!((Ir=Wn.prototype)!==null&&Ir!==void 0&&Ir.render))}var Ee=xe.createContext(null),Ye=Ee,Ne=te(74902),ot=de()?xe.useLayoutEffect:xe.useEffect,ct=ot,_e=function(Nn,Ir){var Cr=React.useRef(!0);ot(function(){if(!Cr.current)return Nn()},Ir),ot(function(){return Cr.current=!1,function(){Cr.current=!0}},[])},Me=[];function pt(Wn,Nn){var Ir=xe.useState(function(){if(!de())return null;var Sr=document.createElement("div");return Sr}),Cr=(0,Te.Z)(Ir,1),Ii=Cr[0],Ma=xe.useRef(!1),Ka=xe.useContext(Ye),Ya=xe.useState(Me),$a=(0,Te.Z)(Ya,2),Za=$a[0],Go=$a[1],Ho=Ka||(Ma.current?void 0:function(Sr){Go(function(Tr){var Ae=[Sr].concat((0,Ne.Z)(Tr));return Ae})});function Qo(){Ii.parentElement||document.body.appendChild(Ii),Ma.current=!0}function vr(){var Sr;(Sr=Ii.parentElement)===null||Sr===void 0||Sr.removeChild(Ii),Ma.current=!1}return ct(function(){return Wn?Ka?Ka(Qo):Qo():vr(),vr},[Wn]),ct(function(){Za.length&&(Za.forEach(function(Sr){return Sr()}),Go(Me))},[Za]),[Ii,Ho]}function $e(Wn,Nn){if(!Wn)return!1;if(Wn.contains)return Wn.contains(Nn);for(var Ir=Nn;Ir;){if(Ir===Wn)return!0;Ir=Ir.parentNode}return!1}var ft="data-rc-order",We="rc-util-key",gt=new Map;function kt(){var Wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Nn=Wn.mark;return Nn?Nn.startsWith("data-")?Nn:"data-".concat(Nn):We}function xt(Wn){if(Wn.attachTo)return Wn.attachTo;var Nn=document.querySelector("head");return Nn||document.body}function et(Wn){return Wn==="queue"?"prependQueue":Wn?"prepend":"append"}function Fe(Wn){return Array.from((gt.get(Wn)||Wn).children).filter(function(Nn){return Nn.tagName==="STYLE"})}function Dt(Wn){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!de())return null;var Ir=Nn.csp,Cr=Nn.prepend,Ii=document.createElement("style");Ii.setAttribute(ft,et(Cr)),Ir!=null&&Ir.nonce&&(Ii.nonce=Ir==null?void 0:Ir.nonce),Ii.innerHTML=Wn;var Ma=xt(Nn),Ka=Ma.firstChild;if(Cr){if(Cr==="queue"){var Ya=Fe(Ma).filter(function($a){return["prepend","prependQueue"].includes($a.getAttribute(ft))});if(Ya.length)return Ma.insertBefore(Ii,Ya[Ya.length-1].nextSibling),Ii}Ma.insertBefore(Ii,Ka)}else Ma.appendChild(Ii);return Ii}function qt(Wn){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ir=xt(Nn);return Fe(Ir).find(function(Cr){return Cr.getAttribute(kt(Nn))===Wn})}function Xt(Wn){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ir=qt(Wn,Nn);if(Ir){var Cr=xt(Nn);Cr.removeChild(Ir)}}function Et(Wn,Nn){var Ir=gt.get(Wn);if(!Ir||!$e(document,Ir)){var Cr=Dt("",Nn),Ii=Cr.parentNode;gt.set(Wn,Ii),Wn.removeChild(Cr)}}function zt(){gt.clear()}function Yt(Wn,Nn){var Ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Cr=xt(Ir);Et(Cr,Ir);var Ii=qt(Nn,Ir);if(Ii){var Ma,Ka;if((Ma=Ir.csp)!==null&&Ma!==void 0&&Ma.nonce&&Ii.nonce!==((Ka=Ir.csp)===null||Ka===void 0?void 0:Ka.nonce)){var Ya;Ii.nonce=(Ya=Ir.csp)===null||Ya===void 0?void 0:Ya.nonce}return Ii.innerHTML!==Wn&&(Ii.innerHTML=Wn),Ii}var $a=Dt(Wn,Ir);return $a.setAttribute(kt(Ir),Nn),$a}var Vn;function Pn(Wn){if(typeof document=="undefined")return 0;if(Wn||Vn===void 0){var Nn=document.createElement("div");Nn.style.width="100%",Nn.style.height="200px";var Ir=document.createElement("div"),Cr=Ir.style;Cr.position="absolute",Cr.top="0",Cr.left="0",Cr.pointerEvents="none",Cr.visibility="hidden",Cr.width="200px",Cr.height="150px",Cr.overflow="hidden",Ir.appendChild(Nn),document.body.appendChild(Ir);var Ii=Nn.offsetWidth;Ir.style.overflow="scroll";var Ma=Nn.offsetWidth;Ii===Ma&&(Ma=Ir.clientWidth),document.body.removeChild(Ir),Vn=Ii-Ma}return Vn}function _t(Wn){var Nn=Wn.match(/^(.*)px$/),Ir=Number(Nn==null?void 0:Nn[1]);return Number.isNaN(Ir)?Pn():Ir}function pn(Wn){if(typeof document=="undefined"||!Wn||!(Wn instanceof Element))return{width:0,height:0};var Nn=getComputedStyle(Wn,"::-webkit-scrollbar"),Ir=Nn.width,Cr=Nn.height;return{width:_t(Ir),height:_t(Cr)}}function sr(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Tn="rc-util-locker-".concat(Date.now()),Oe=0;function me(Wn){var Nn=!!Wn,Ir=xe.useState(function(){return Oe+=1,"".concat(Tn,"_").concat(Oe)}),Cr=(0,Te.Z)(Ir,1),Ii=Cr[0];ct(function(){if(Nn){var Ma=pn(document.body).width,Ka=sr();Yt(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(Ka?"width: calc(100% - ".concat(Ma,"px);"):"",`
|
|
|
}`),Ii)}else Xt(Ii);return function(){Xt(Ii)}},[Nn,Ii])}var he=!1;function ge(Wn){return typeof Wn=="boolean"&&(he=Wn),he}var ve=function(Nn){return Nn===!1?!1:!de()||!Nn?null:typeof Nn=="string"?document.querySelector(Nn):typeof Nn=="function"?Nn():Nn},se=xe.forwardRef(function(Wn,Nn){var Ir=Wn.open,Cr=Wn.autoLock,Ii=Wn.getContainer,Ma=Wn.debug,Ka=Wn.autoDestroy,Ya=Ka===void 0?!0:Ka,$a=Wn.children,Za=xe.useState(Ir),Go=(0,Te.Z)(Za,2),Ho=Go[0],Qo=Go[1],vr=Ho||Ir;xe.useEffect(function(){(Ya||Ir)&&Qo(Ir)},[Ir,Ya]);var Sr=xe.useState(function(){return ve(Ii)}),Tr=(0,Te.Z)(Sr,2),Ae=Tr[0],it=Tr[1];xe.useEffect(function(){var Un=ve(Ii);it(Un!=null?Un:null)});var st=pt(vr&&!Ae,Ma),yt=(0,Te.Z)(st,2),wt=yt[0],Ft=yt[1],Nt=Ae!=null?Ae:wt;me(Cr&&Ir&&de()&&(Nt===wt||Nt===document.body));var gn=null;if($a&&ye($a)&&Nn){var Rn=$a;gn=Rn.ref}var Nr=Ze(gn,Nn);if(!vr||!de()||Ae===void 0)return null;var Wr=Nt===!1||ge(),Rr=$a;return Nn&&(Rr=xe.cloneElement($a,{ref:Nr})),xe.createElement(Ye.Provider,{value:Ft},Wr?Rr:(0,Be.createPortal)(Rr,Nt))}),Ke=se,bt=Ke;function Wt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var yn=Wt()?xe.useLayoutEffect:xe.useEffect,bn=function(Nn,Ir){var Cr=xe.useRef(!0);yn(function(){return Nn(Cr.current)},Ir),yn(function(){return Cr.current=!1,function(){Cr.current=!0}},[])},cn=function(Nn,Ir){bn(function(Cr){if(!Cr)return Nn()},Ir)},wn=bn,Tt=xe.createContext(null),nn=xe.createContext({}),fn=Tt,sn=te(4942),an=te(87462),xr=te(62874),Lt={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(Nn){var Ir=Nn.keyCode;if(Nn.altKey&&!Nn.ctrlKey||Nn.metaKey||Ir>=Lt.F1&&Ir<=Lt.F12)return!1;switch(Ir){case Lt.ALT:case Lt.CAPS_LOCK:case Lt.CONTEXT_MENU:case Lt.CTRL:case Lt.DOWN:case Lt.END:case Lt.ESC:case Lt.HOME:case Lt.INSERT:case Lt.LEFT:case Lt.MAC_FF_META:case Lt.META:case Lt.NUMLOCK:case Lt.NUM_CENTER:case Lt.PAGE_DOWN:case Lt.PAGE_UP:case Lt.PAUSE:case Lt.PRINT_SCREEN:case Lt.RIGHT:case Lt.SHIFT:case Lt.UP:case Lt.WIN_KEY:case Lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Nn){if(Nn>=Lt.ZERO&&Nn<=Lt.NINE||Nn>=Lt.NUM_ZERO&&Nn<=Lt.NUM_MULTIPLY||Nn>=Lt.A&&Nn<=Lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Nn===0)return!0;switch(Nn){case Lt.SPACE:case Lt.QUESTION_MARK:case Lt.NUM_PLUS:case Lt.NUM_MINUS:case Lt.NUM_PERIOD:case Lt.NUM_DIVISION:case Lt.SEMICOLON:case Lt.DASH:case Lt.EQUALS:case Lt.COMMA:case Lt.PERIOD:case Lt.SLASH:case Lt.APOSTROPHE:case Lt.SINGLE_QUOTE:case Lt.OPEN_SQUARE_BRACKET:case Lt.BACKSLASH:case Lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Vt=Lt,cr=`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`,En=`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`,en="".concat(cr," ").concat(En).split(/[\s\n]+/),Fr="aria-",Ur="data-";function ai(Wn,Nn){return Wn.indexOf(Nn)===0}function ei(Wn){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ir;Nn===!1?Ir={aria:!0,data:!0,attr:!0}:Nn===!0?Ir={aria:!0}:Ir=(0,Ie.Z)({},Nn);var Cr={};return Object.keys(Wn).forEach(function(Ii){(Ir.aria&&(Ii==="role"||ai(Ii,Fr))||Ir.data&&ai(Ii,Ur)||Ir.attr&&en.includes(Ii))&&(Cr[Ii]=Wn[Ii])}),Cr}function Mi(Wn){var Nn=React.useRef();Nn.current=Wn;var Ir=React.useCallback(function(){for(var Cr,Ii=arguments.length,Ma=new Array(Ii),Ka=0;Ka<Ii;Ka++)Ma[Ka]=arguments[Ka];return(Cr=Nn.current)===null||Cr===void 0?void 0:Cr.call.apply(Cr,[Nn].concat(Ma))},[]);return Ir}function ci(Wn){var Nn=React.useRef(!1),Ir=React.useState(Wn),Cr=_slicedToArray(Ir,2),Ii=Cr[0],Ma=Cr[1];React.useEffect(function(){return Nn.current=!1,function(){Nn.current=!0}},[]);function Ka(Ya,$a){$a&&Nn.current||Ma(Ya)}return[Ii,Ka]}function Qn(Wn){return Wn!==void 0}function Or(Wn,Nn){var Ir=Nn||{},Cr=Ir.defaultValue,Ii=Ir.value,Ma=Ir.onChange,Ka=Ir.postState,Ya=useState(function(){return Qn(Ii)?Ii:Qn(Cr)?typeof Cr=="function"?Cr():Cr:typeof Wn=="function"?Wn():Wn}),$a=_slicedToArray(Ya,2),Za=$a[0],Go=$a[1],Ho=Ii!==void 0?Ii:Za,Qo=Ka?Ka(Ho):Ho,vr=useEvent(Ma),Sr=useState([Ho]),Tr=_slicedToArray(Sr,2),Ae=Tr[0],it=Tr[1];useLayoutUpdateEffect(function(){var yt=Ae[0];Za!==yt&&vr(Za,yt)},[Ae]),useLayoutUpdateEffect(function(){Qn(Ii)||Go(Ii)},[Ii]);var st=useEvent(function(yt,wt){Go(yt,wt),it([Ho],wt)});return[Qo,st]}var Hr=te(33993);function vi(Wn,Nn,Ir){var Cr=xe.useRef({});return(!("value"in Cr.current)||Ir(Cr.current.condition,Nn))&&(Cr.current.value=Wn(),Cr.current.condition=Nn),Cr.current.value}function Zi(Wn,Nn){typeof Wn=="function"?Wn(Nn):(0,He.Z)(Wn)==="object"&&Wn&&"current"in Wn&&(Wn.current=Nn)}function $t(){for(var Wn=arguments.length,Nn=new Array(Wn),Ir=0;Ir<Wn;Ir++)Nn[Ir]=arguments[Ir];var Cr=Nn.filter(function(Ii){return Ii});return Cr.length<=1?Cr[0]:function(Ii){Nn.forEach(function(Ma){Zi(Ma,Ii)})}}function $n(){for(var Wn=arguments.length,Nn=new Array(Wn),Ir=0;Ir<Wn;Ir++)Nn[Ir]=arguments[Ir];return vi(function(){return $t.apply(void 0,Nn)},Nn,function(Cr,Ii){return Cr.length!==Ii.length||Cr.every(function(Ma,Ka){return Ma!==Ii[Ka]})})}function mn(Wn){var Nn,Ir,Cr=isMemo(Wn)?Wn.type.type:Wn.type;return!(typeof Cr=="function"&&!((Nn=Cr.prototype)!==null&&Nn!==void 0&&Nn.render)||typeof Wn=="function"&&!((Ir=Wn.prototype)!==null&&Ir!==void 0&&Ir.render))}function Yn(Wn){return!isValidElement(Wn)||isFragment(Wn)?!1:mn(Wn)}function Dr(Wn,Nn,Ir,Cr){if(!Nn.length)return Ir;var Ii=_toArray(Nn),Ma=Ii[0],Ka=Ii.slice(1),Ya;return!Wn&&typeof Ma=="number"?Ya=[]:Array.isArray(Wn)?Ya=_toConsumableArray(Wn):Ya=_objectSpread({},Wn),Cr&&Ir===void 0&&Ka.length===1?delete Ya[Ma][Ka[0]]:Ya[Ma]=Dr(Ya[Ma],Ka,Ir,Cr),Ya}function hi(Wn,Nn,Ir){var Cr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Nn.length&&Cr&&Ir===void 0&&!get(Wn,Nn.slice(0,-1))?Wn:Dr(Wn,Nn,Ir,Cr)}function oi(Wn){return _typeof(Wn)==="object"&&Wn!==null&&Object.getPrototypeOf(Wn)===Object.prototype}function Vr(Wn){return Array.isArray(Wn)?[]:{}}var Ct=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function hn(){for(var Wn=arguments.length,Nn=new Array(Wn),Ir=0;Ir<Wn;Ir++)Nn[Ir]=arguments[Ir];var Cr=Vr(Nn[0]);return Nn.forEach(function(Ii){function Ma(Ka,Ya){var $a=new Set(Ya),Za=get(Ii,Ka),Go=Array.isArray(Za);if(Go||oi(Za)){if(!$a.has(Za)){$a.add(Za);var Ho=get(Cr,Ka);Go?Cr=hi(Cr,Ka,[]):(!Ho||_typeof(Ho)!=="object")&&(Cr=hi(Cr,Ka,Vr(Za))),Ct(Za).forEach(function(Qo){Ma([].concat(_toConsumableArray(Ka),[Qo]),$a)})}}else Cr=hi(Cr,Ka,Za)}Ma([])}),Cr}var An={},jn=[],Bt=function(Nn){jn.push(Nn)};function on(Wn,Nn){if(0)var Ir}function Kn(Wn,Nn){if(0)var Ir}function Dn(){An={}}function rr(Wn,Nn,Ir){!Nn&&!An[Ir]&&(Wn(!1,Ir),An[Ir]=!0)}function er(Wn,Nn){rr(on,Wn,Nn)}function Gr(Wn,Nn){rr(Kn,Wn,Nn)}er.preMessage=Bt,er.resetWarned=Dn,er.noteOnce=Gr;var ra=er,Oi=function(Nn){var Ir=Nn.prefixCls,Cr=Nn.className,Ii=Nn.style,Ma=Nn.children,Ka=Nn.containerRef,Ya=Nn.id,$a=Nn.onMouseEnter,Za=Nn.onMouseOver,Go=Nn.onMouseLeave,Ho=Nn.onClick,Qo=Nn.onKeyDown,vr=Nn.onKeyUp,Sr={onMouseEnter:$a,onMouseOver:Za,onMouseLeave:Go,onClick:Ho,onKeyDown:Qo,onKeyUp:vr},Tr=xe.useContext(nn),Ae=Tr.panel,it=$n(Ae,Ka);return xe.createElement(xe.Fragment,null,xe.createElement("div",(0,an.Z)({id:Ya,className:fe()("".concat(Ir,"-content"),Cr),style:(0,Ie.Z)({},Ii),"aria-modal":"true",role:"dialog",ref:it},Sr),Ma))},bi=Oi;function Ji(Wn){return typeof Wn=="string"&&String(Number(Wn))===Wn?(ra(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Wn)):Wn}function Ti(Wn){warning(!("wrapperClassName"in Wn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Wn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ua={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function br(Wn,Nn){var Ir,Cr,Ii,Ma,Ka=Wn.prefixCls,Ya=Wn.open,$a=Wn.placement,Za=Wn.inline,Go=Wn.push,Ho=Wn.forceRender,Qo=Wn.autoFocus,vr=Wn.keyboard,Sr=Wn.rootClassName,Tr=Wn.rootStyle,Ae=Wn.zIndex,it=Wn.className,st=Wn.id,yt=Wn.style,wt=Wn.motion,Ft=Wn.width,Nt=Wn.height,gn=Wn.children,Rn=Wn.contentWrapperStyle,Nr=Wn.mask,Wr=Wn.maskClosable,Rr=Wn.maskMotion,Un=Wn.maskClassName,pr=Wn.maskStyle,Jn=Wn.afterOpenChange,_r=Wn.onClose,yi=Wn.onMouseEnter,Yr=Wn.onMouseOver,Xr=Wn.onMouseLeave,ti=Wn.onClick,fi=Wn.onKeyDown,Ci=Wn.onKeyUp,At=xe.useRef(),vt=xe.useRef(),On=xe.useRef();xe.useImperativeHandle(Nn,function(){return At.current});var Cn=function(Wi){var da=Wi.keyCode,Vi=Wi.shiftKey;switch(da){case Vt.TAB:{if(da===Vt.TAB){if(!Vi&&document.activeElement===On.current){var Ei;(Ei=vt.current)===null||Ei===void 0||Ei.focus({preventScroll:!0})}else if(Vi&&document.activeElement===vt.current){var ga;(ga=On.current)===null||ga===void 0||ga.focus({preventScroll:!0})}}break}case Vt.ESC:{_r&&vr&&(Wi.stopPropagation(),_r(Wi));break}}};xe.useEffect(function(){if(Ya&&Qo){var Bi;(Bi=At.current)===null||Bi===void 0||Bi.focus({preventScroll:!0})}},[Ya]);var mr=xe.useState(!1),Zr=(0,Te.Z)(mr,2),Zt=Zr[0],Ht=Zr[1],tn=xe.useContext(fn),xn;Go===!1?xn={distance:0}:Go===!0?xn={}:xn=Go||{};var fr=(Ir=(Cr=(Ii=xn)===null||Ii===void 0?void 0:Ii.distance)!==null&&Cr!==void 0?Cr:tn==null?void 0:tn.pushDistance)!==null&&Ir!==void 0?Ir:180,wr=xe.useMemo(function(){return{pushDistance:fr,push:function(){Ht(!0)},pull:function(){Ht(!1)}}},[fr]);xe.useEffect(function(){if(Ya){var Bi;tn==null||(Bi=tn.push)===null||Bi===void 0||Bi.call(tn)}else{var Wi;tn==null||(Wi=tn.pull)===null||Wi===void 0||Wi.call(tn)}},[Ya]),xe.useEffect(function(){return function(){var Bi;tn==null||(Bi=tn.pull)===null||Bi===void 0||Bi.call(tn)}},[]);var lr=Nr&&xe.createElement(xr.Z,(0,an.Z)({key:"mask"},Rr,{visible:Ya}),function(Bi,Wi){var da=Bi.className,Vi=Bi.style;return xe.createElement("div",{className:fe()("".concat(Ka,"-mask"),da,Un),style:(0,Ie.Z)((0,Ie.Z)({},Vi),pr),onClick:Wr&&Ya?_r:void 0,ref:Wi})}),kr=typeof wt=="function"?wt($a):wt,di={};if(Zt&&fr)switch($a){case"top":di.transform="translateY(".concat(fr,"px)");break;case"bottom":di.transform="translateY(".concat(-fr,"px)");break;case"left":di.transform="translateX(".concat(fr,"px)");break;default:di.transform="translateX(".concat(-fr,"px)");break}$a==="left"||$a==="right"?di.width=Ji(Ft):di.height=Ji(Nt);var Ni={onMouseEnter:yi,onMouseOver:Yr,onMouseLeave:Xr,onClick:ti,onKeyDown:fi,onKeyUp:Ci},Si=xe.createElement(xr.Z,(0,an.Z)({key:"panel"},kr,{visible:Ya,forceRender:Ho,onVisibleChanged:function(Wi){Jn==null||Jn(Wi)},removeOnLeave:!1,leavedClassName:"".concat(Ka,"-content-wrapper-hidden")}),function(Bi,Wi){var da=Bi.className,Vi=Bi.style;return xe.createElement("div",(0,an.Z)({className:fe()("".concat(Ka,"-content-wrapper"),da),style:(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},di),Vi),Rn)},ei(Wn,{data:!0})),xe.createElement(bi,(0,an.Z)({id:st,containerRef:Wi,prefixCls:Ka,className:it,style:yt},Ni),gn))}),Jr=(0,Ie.Z)({},Tr);return Ae&&(Jr.zIndex=Ae),xe.createElement(fn.Provider,{value:wr},xe.createElement("div",{className:fe()(Ka,"".concat(Ka,"-").concat($a),Sr,(Ma={},(0,sn.Z)(Ma,"".concat(Ka,"-open"),Ya),(0,sn.Z)(Ma,"".concat(Ka,"-inline"),Za),Ma)),style:Jr,tabIndex:-1,ref:At,onKeyDown:Cn},lr,xe.createElement("div",{tabIndex:0,ref:vt,style:ua,"aria-hidden":"true","data-sentinel":"start"}),Si,xe.createElement("div",{tabIndex:0,ref:On,style:ua,"aria-hidden":"true","data-sentinel":"end"})))}var Di=xe.forwardRef(br),ni=Di,No=function(Nn){var Ir=Nn.open,Cr=Ir===void 0?!1:Ir,Ii=Nn.prefixCls,Ma=Ii===void 0?"rc-drawer":Ii,Ka=Nn.placement,Ya=Ka===void 0?"right":Ka,$a=Nn.autoFocus,Za=$a===void 0?!0:$a,Go=Nn.keyboard,Ho=Go===void 0?!0:Go,Qo=Nn.width,vr=Qo===void 0?378:Qo,Sr=Nn.mask,Tr=Sr===void 0?!0:Sr,Ae=Nn.maskClosable,it=Ae===void 0?!0:Ae,st=Nn.getContainer,yt=Nn.forceRender,wt=Nn.afterOpenChange,Ft=Nn.destroyOnClose,Nt=Nn.onMouseEnter,gn=Nn.onMouseOver,Rn=Nn.onMouseLeave,Nr=Nn.onClick,Wr=Nn.onKeyDown,Rr=Nn.onKeyUp,Un=Nn.panelRef,pr=xe.useState(!1),Jn=(0,Te.Z)(pr,2),_r=Jn[0],yi=Jn[1],Yr=xe.useState(!1),Xr=(0,Te.Z)(Yr,2),ti=Xr[0],fi=Xr[1];wn(function(){fi(!0)},[]);var Ci=ti?Cr:!1,At=xe.useRef(),vt=xe.useRef();wn(function(){Ci&&(vt.current=document.activeElement)},[Ci]);var On=function(Ht){var tn;if(yi(Ht),wt==null||wt(Ht),!Ht&&vt.current&&!((tn=At.current)!==null&&tn!==void 0&&tn.contains(vt.current))){var xn;(xn=vt.current)===null||xn===void 0||xn.focus({preventScroll:!0})}},Cn=xe.useMemo(function(){return{panel:Un}},[Un]);if(!yt&&!_r&&!Ci&&Ft)return null;var mr={onMouseEnter:Nt,onMouseOver:gn,onMouseLeave:Rn,onClick:Nr,onKeyDown:Wr,onKeyUp:Rr},Zr=(0,Ie.Z)((0,Ie.Z)({},Nn),{},{open:Ci,prefixCls:Ma,placement:Ya,autoFocus:Za,keyboard:Ho,width:vr,mask:Tr,maskClosable:it,inline:st===!1,afterOpenChange:On,ref:At},mr);return xe.createElement(nn.Provider,{value:Cn},xe.createElement(bt,{open:Ci||yt||_r,autoDestroy:!1,getContainer:st,autoLock:Tr&&(Ci||_r)},xe.createElement(ni,Zr)))},xa=No,za=xa,Lo=te(33603),Ea=te(53124),zo=te(65223),gi=te(69760),pl=Wn=>{const{prefixCls:Nn,title:Ir,footer:Cr,extra:Ii,closeIcon:Ma,closable:Ka,onClose:Ya,headerStyle:$a,drawerStyle:Za,bodyStyle:Go,footerStyle:Ho,children:Qo}=Wn,vr=xe.useCallback(st=>xe.createElement("button",{type:"button",onClick:Ya,"aria-label":"Close",className:`${Nn}-close`},st),[Ya]),[Sr,Tr]=(0,gi.Z)(Ka,Ma,vr,void 0,!0),Ae=xe.useMemo(()=>!Ir&&!Sr?null:xe.createElement("div",{style:$a,className:fe()(`${Nn}-header`,{[`${Nn}-header-close-only`]:Sr&&!Ir&&!Ii})},xe.createElement("div",{className:`${Nn}-header-title`},Tr,Ir&&xe.createElement("div",{className:`${Nn}-title`},Ir)),Ii&&xe.createElement("div",{className:`${Nn}-extra`},Ii)),[Sr,Tr,Ii,$a,Nn,Ir]),it=xe.useMemo(()=>{if(!Cr)return null;const st=`${Nn}-footer`;return xe.createElement("div",{className:st,style:Ho},Cr)},[Cr,Ho,Nn]);return xe.createElement("div",{className:`${Nn}-wrapper-body`,style:Za},Ae,xe.createElement("div",{className:`${Nn}-body`,style:Go},Qo),it)},jl=te(4173),Ko=te(67968),Do=te(45503),ml=Wn=>{const{componentCls:Nn,motionDurationSlow:Ir}=Wn,Cr={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ir}`}}};return{[Nn]:{[`${Nn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Ir}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Nn}-panel-motion`]:{"&-left":[Cr,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Cr,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Cr,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Cr,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const nl=Wn=>{const{componentCls:Nn,zIndexPopup:Ir,colorBgMask:Cr,colorBgElevated:Ii,motionDurationSlow:Ma,motionDurationMid:Ka,padding:Ya,paddingLG:$a,fontSizeLG:Za,lineHeightLG:Go,lineWidth:Ho,lineType:Qo,colorSplit:vr,marginSM:Sr,colorIcon:Tr,colorIconHover:Ae,colorText:it,fontWeightStrong:st,footerPaddingBlock:yt,footerPaddingInline:wt}=Wn,Ft=`${Nn}-content-wrapper`;return{[Nn]:{position:"fixed",inset:0,zIndex:Ir,pointerEvents:"none","&-pure":{position:"relative",background:Ii,[`&${Nn}-left`]:{boxShadow:Wn.boxShadowDrawerLeft},[`&${Nn}-right`]:{boxShadow:Wn.boxShadowDrawerRight},[`&${Nn}-top`]:{boxShadow:Wn.boxShadowDrawerUp},[`&${Nn}-bottom`]:{boxShadow:Wn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Nn}-mask`]:{position:"absolute",inset:0,zIndex:Ir,background:Cr,pointerEvents:"auto"},[Ft]:{position:"absolute",zIndex:Ir,maxWidth:"100vw",transition:`all ${Ma}`,"&-hidden":{display:"none"}},[`&-left > ${Ft}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Wn.boxShadowDrawerLeft},[`&-right > ${Ft}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Wn.boxShadowDrawerRight},[`&-top > ${Ft}`]:{top:0,insetInline:0,boxShadow:Wn.boxShadowDrawerUp},[`&-bottom > ${Ft}`]:{bottom:0,insetInline:0,boxShadow:Wn.boxShadowDrawerDown},[`${Nn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Ii,pointerEvents:"auto"},[`${Nn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Nn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ya}px ${$a}px`,fontSize:Za,lineHeight:Go,borderBottom:`${Ho}px ${Qo} ${vr}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Nn}-extra`]:{flex:"none"},[`${Nn}-close`]:{display:"inline-block",marginInlineEnd:Sr,color:Tr,fontWeight:st,fontSize:Za,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ka}`,textRendering:"auto","&:focus, &:hover":{color:Ae,textDecoration:"none"}},[`${Nn}-title`]:{flex:1,margin:0,color:it,fontWeight:Wn.fontWeightStrong,fontSize:Za,lineHeight:Go},[`${Nn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:$a,overflow:"auto"},[`${Nn}-footer`]:{flexShrink:0,padding:`${yt}px ${wt}px`,borderTop:`${Ho}px ${Qo} ${vr}`},"&-rtl":{direction:"rtl"}}}};var Sl=(0,Ko.Z)("Drawer",Wn=>{const Nn=(0,Do.TS)(Wn,{});return[nl(Nn),ml(Nn)]},Wn=>({zIndexPopup:Wn.zIndexPopupBase,footerPaddingBlock:Wn.paddingXS,footerPaddingInline:Wn.padding})),Rl=te(16569),Ll=function(Wn,Nn){var Ir={};for(var Cr in Wn)Object.prototype.hasOwnProperty.call(Wn,Cr)&&Nn.indexOf(Cr)<0&&(Ir[Cr]=Wn[Cr]);if(Wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ii=0,Cr=Object.getOwnPropertySymbols(Wn);Ii<Cr.length;Ii++)Nn.indexOf(Cr[Ii])<0&&Object.prototype.propertyIsEnumerable.call(Wn,Cr[Ii])&&(Ir[Cr[Ii]]=Wn[Cr[Ii]]);return Ir};const wl=null,Vl={distance:180},_l=Wn=>{var Nn;const{rootClassName:Ir,width:Cr,height:Ii,size:Ma="default",mask:Ka=!0,push:Ya=Vl,open:$a,afterOpenChange:Za,onClose:Go,prefixCls:Ho,getContainer:Qo,style:vr,className:Sr,visible:Tr,afterVisibleChange:Ae}=Wn,it=Ll(Wn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:st,getPrefixCls:yt,direction:wt,drawer:Ft}=xe.useContext(Ea.E_),Nt=yt("drawer",Ho),[gn,Rn]=Sl(Nt),Nr=Qo===void 0&&st?()=>st(document.body):Qo,Wr=fe()({"no-mask":!Ka,[`${Nt}-rtl`]:wt==="rtl"},Ir,Rn),Rr=xe.useMemo(()=>Cr!=null?Cr:Ma==="large"?736:378,[Cr,Ma]),Un=xe.useMemo(()=>Ii!=null?Ii:Ma==="large"?736:378,[Ii,Ma]),pr={motionName:(0,Lo.m)(Nt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Jn=yi=>({motionName:(0,Lo.m)(Nt,`panel-motion-${yi}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),_r=(0,Rl.H)();return gn(xe.createElement(jl.BR,null,xe.createElement(zo.Ux,{status:!0,override:!0},xe.createElement(za,Object.assign({prefixCls:Nt,onClose:Go,maskMotion:pr,motion:Jn},it,{open:$a!=null?$a:Tr,mask:Ka,push:Ya,width:Rr,height:Un,style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),vr),className:fe()(Ft==null?void 0:Ft.className,Sr),rootClassName:Wr,getContainer:Nr,afterOpenChange:Za!=null?Za:Ae,panelRef:_r}),xe.createElement(pl,Object.assign({prefixCls:Nt},it,{onClose:Go}))))))},Fl=Wn=>{const{prefixCls:Nn,style:Ir,className:Cr,placement:Ii="right"}=Wn,Ma=Ll(Wn,["prefixCls","style","className","placement"]),{getPrefixCls:Ka}=xe.useContext(Ea.E_),Ya=Ka("drawer",Nn),[$a,Za]=Sl(Ya),Go=fe()(Ya,`${Ya}-pure`,`${Ya}-${Ii}`,Za,Cr);return $a(xe.createElement("div",{className:Go,style:Ir},xe.createElement(pl,Object.assign({prefixCls:Ya},Ma))))};_l._InternalPanelDoNotUseOrYouWillBeFired=Fl;var Vo=_l},35874:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return ve}});var E=te(67294),fe=te(91034),Ie=te(94184),Te=te.n(Ie),xe=te(87462),Be=te(4942),de=te(97685),Se=te(45987),pe=te(62709),De=te(71002),Xe=te(12060);function Pe(se,Ke,bt){var Wt=React.useRef({});return(!("value"in Wt.current)||bt(Wt.current.condition,Ke))&&(Wt.current.value=se(),Wt.current.condition=Ke),Wt.current.value}function Ue(se,Ke){typeof se=="function"?se(Ke):(0,De.Z)(se)==="object"&&se&&"current"in se&&(se.current=Ke)}function rt(){for(var se=arguments.length,Ke=new Array(se),bt=0;bt<se;bt++)Ke[bt]=arguments[bt];var Wt=Ke.filter(function(yn){return yn});return Wt.length<=1?Wt[0]:function(yn){Ke.forEach(function(bn){Ue(bn,yn)})}}function qe(){for(var se=arguments.length,Ke=new Array(se),bt=0;bt<se;bt++)Ke[bt]=arguments[bt];return useMemo(function(){return rt.apply(void 0,Ke)},Ke,function(Wt,yn){return Wt.length===yn.length&&Wt.every(function(bn,cn){return bn===yn[cn]})})}function He(se){var Ke,bt,Wt=(0,Xe.isMemo)(se)?se.type.type:se.type;return!(typeof Wt=="function"&&!((Ke=Wt.prototype)!==null&&Ke!==void 0&&Ke.render)||typeof se=="function"&&!((bt=se.prototype)!==null&&bt!==void 0&&bt.render))}var be={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(Ke){var bt=Ke.keyCode;if(Ke.altKey&&!Ke.ctrlKey||Ke.metaKey||bt>=be.F1&&bt<=be.F12)return!1;switch(bt){case be.ALT:case be.CAPS_LOCK:case be.CONTEXT_MENU:case be.CTRL:case be.DOWN:case be.END:case be.ESC:case be.HOME:case be.INSERT:case be.LEFT:case be.MAC_FF_META:case be.META:case be.NUMLOCK:case be.NUM_CENTER:case be.PAGE_DOWN:case be.PAGE_UP:case be.PAUSE:case be.PRINT_SCREEN:case be.RIGHT:case be.SHIFT:case be.UP:case be.WIN_KEY:case be.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ke){if(Ke>=be.ZERO&&Ke<=be.NINE||Ke>=be.NUM_ZERO&&Ke<=be.NUM_MULTIPLY||Ke>=be.A&&Ke<=be.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ke===0)return!0;switch(Ke){case be.SPACE:case be.QUESTION_MARK:case be.NUM_PLUS:case be.NUM_MINUS:case be.NUM_PERIOD:case be.NUM_DIVISION:case be.SEMICOLON:case be.DASH:case be.EQUALS:case be.COMMA:case be.PERIOD:case be.SLASH:case be.APOSTROPHE:case be.SINGLE_QUOTE:case be.OPEN_SQUARE_BRACKET:case be.BACKSLASH:case be.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qe=be,ht=function(Ke){return+setTimeout(Ke,16)},Je=function(Ke){return clearTimeout(Ke)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ht=function(Ke){return window.requestAnimationFrame(Ke)},Je=function(Ke){return window.cancelAnimationFrame(Ke)});var Ze=0,ye=new Map;function Ee(se){ye.delete(se)}var Ye=function(Ke){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ze+=1;var Wt=Ze;function yn(bn){if(bn===0)Ee(Wt),Ke();else{var cn=ht(function(){yn(bn-1)});ye.set(Wt,cn)}}return yn(bt),Wt};Ye.cancel=function(se){var Ke=ye.get(se);return Ee(Ke),Je(Ke)};var Ne=Ye,ot=Qe.ESC,ct=Qe.TAB;function _e(se){var Ke=se.visible,bt=se.triggerRef,Wt=se.onVisibleChange,yn=se.autoFocus,bn=se.overlayRef,cn=E.useRef(!1),wn=function(){if(Ke){var sn,an;(sn=bt.current)===null||sn===void 0||(an=sn.focus)===null||an===void 0||an.call(sn),Wt==null||Wt(!1)}},Tt=function(){var sn;return(sn=bn.current)!==null&&sn!==void 0&&sn.focus?(bn.current.focus(),cn.current=!0,!0):!1},nn=function(sn){switch(sn.keyCode){case ot:wn();break;case ct:{var an=!1;cn.current||(an=Tt()),an?sn.preventDefault():wn();break}}};E.useEffect(function(){return Ke?(window.addEventListener("keydown",nn),yn&&Ne(Tt,3),function(){window.removeEventListener("keydown",nn),cn.current=!1}):function(){cn.current=!1}},[Ke])}var Me=(0,E.forwardRef)(function(se,Ke){var bt=se.overlay,Wt=se.arrow,yn=se.prefixCls,bn=(0,E.useMemo)(function(){var wn;return typeof bt=="function"?wn=bt():wn=bt,wn},[bt]),cn=rt(Ke,bn==null?void 0:bn.ref);return E.createElement(E.Fragment,null,Wt&&E.createElement("div",{className:"".concat(yn,"-arrow")}),E.cloneElement(bn,{ref:He(bn)?cn:void 0}))}),pt=Me,$e={adjustX:1,adjustY:1},ft=[0,0],We={topLeft:{points:["bl","tl"],overflow:$e,offset:[0,-4],targetOffset:ft},top:{points:["bc","tc"],overflow:$e,offset:[0,-4],targetOffset:ft},topRight:{points:["br","tr"],overflow:$e,offset:[0,-4],targetOffset:ft},bottomLeft:{points:["tl","bl"],overflow:$e,offset:[0,4],targetOffset:ft},bottom:{points:["tc","bc"],overflow:$e,offset:[0,4],targetOffset:ft},bottomRight:{points:["tr","br"],overflow:$e,offset:[0,4],targetOffset:ft}},gt=We,kt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function xt(se,Ke){var bt,Wt=se.arrow,yn=Wt===void 0?!1:Wt,bn=se.prefixCls,cn=bn===void 0?"rc-dropdown":bn,wn=se.transitionName,Tt=se.animation,nn=se.align,fn=se.placement,sn=fn===void 0?"bottomLeft":fn,an=se.placements,xr=an===void 0?gt:an,Lt=se.getPopupContainer,Vt=se.showAction,cr=se.hideAction,En=se.overlayClassName,en=se.overlayStyle,Fr=se.visible,Ur=se.trigger,ai=Ur===void 0?["hover"]:Ur,ei=se.autoFocus,Mi=se.overlay,ci=se.children,Qn=se.onVisibleChange,Or=(0,Se.Z)(se,kt),Hr=E.useState(),vi=(0,de.Z)(Hr,2),Zi=vi[0],$t=vi[1],$n="visible"in se?Fr:Zi,mn=E.useRef(null),Yn=E.useRef(null),Dr=E.useRef(null);E.useImperativeHandle(Ke,function(){return mn.current});var hi=function(Kn){$t(Kn),Qn==null||Qn(Kn)};_e({visible:$n,triggerRef:Dr,onVisibleChange:hi,autoFocus:ei,overlayRef:Yn});var oi=function(Kn){var Dn=se.onOverlayClick;$t(!1),Dn&&Dn(Kn)},Vr=function(){return E.createElement(pt,{ref:Yn,overlay:Mi,prefixCls:cn,arrow:yn})},Ct=function(){return typeof Mi=="function"?Vr:Vr()},hn=function(){var Kn=se.minOverlayWidthMatchTrigger,Dn=se.alignPoint;return"minOverlayWidthMatchTrigger"in se?Kn:!Dn},An=function(){var Kn=se.openClassName;return Kn!==void 0?Kn:"".concat(cn,"-open")},jn=E.cloneElement(ci,{className:Te()((bt=ci.props)===null||bt===void 0?void 0:bt.className,$n&&An()),ref:He(ci)?rt(Dr,ci.ref):void 0}),Bt=cr;return!Bt&&ai.indexOf("contextMenu")!==-1&&(Bt=["click"]),E.createElement(pe.Z,(0,xe.Z)({builtinPlacements:xr},Or,{prefixCls:cn,ref:mn,popupClassName:Te()(En,(0,Be.Z)({},"".concat(cn,"-show-arrow"),yn)),popupStyle:en,action:ai,showAction:Vt,hideAction:Bt,popupPlacement:sn,popupAlign:nn,popupTransitionName:wn,popupAnimation:Tt,popupVisible:$n,stretch:hn()?"minWidth":"",popup:Ct(),onPopupVisibleChange:hi,onPopupClick:oi,getPopupContainer:Lt}),jn)}var et=E.forwardRef(xt),Fe=et,Dt=te(60276),qt=te(5663),Xt=te(10366),Et=te(80636),zt=te(8745),Yt=te(96159),Vn=te(53124),Pn=te(68508),_t=te(76529),pn=te(29691),sr=te(66748);const Tn=null,Oe=se=>{const{menu:Ke,arrow:bt,prefixCls:Wt,children:yn,trigger:bn,disabled:cn,dropdownRender:wn,getPopupContainer:Tt,overlayClassName:nn,rootClassName:fn,open:sn,onOpenChange:an,visible:xr,onVisibleChange:Lt,mouseEnterDelay:Vt=.15,mouseLeaveDelay:cr=.1,autoAdjustOverflow:En=!0,placement:en="",overlay:Fr,transitionName:Ur}=se,{getPopupContainer:ai,getPrefixCls:ei,direction:Mi}=E.useContext(Vn.E_),ci=E.useMemo(()=>{const jn=ei();return Ur!==void 0?Ur:en.includes("top")?`${jn}-slide-down`:`${jn}-slide-up`},[ei,en,Ur]),Qn=E.useMemo(()=>en?en.includes("Center")?en.slice(0,en.indexOf("Center")):en:Mi==="rtl"?"bottomRight":"bottomLeft",[en,Mi]),Or=ei("dropdown",Wt),[Hr,vi]=(0,sr.Z)(Or),[,Zi]=(0,pn.Z)(),$t=E.Children.only(yn),$n=(0,Yt.Tm)($t,{className:Te()(`${Or}-trigger`,{[`${Or}-rtl`]:Mi==="rtl"},$t.props.className),disabled:cn}),mn=cn?[]:bn;let Yn;mn&&mn.includes("contextMenu")&&(Yn=!0);const[Dr,hi]=(0,qt.Z)(!1,{value:sn!=null?sn:xr}),oi=(0,Dt.useEvent)(jn=>{an==null||an(jn),Lt==null||Lt(jn),hi(jn)}),Vr=Te()(nn,fn,vi,{[`${Or}-rtl`]:Mi==="rtl"}),Ct=(0,Et.Z)({arrowPointAtCenter:typeof bt=="object"&&bt.pointAtCenter,autoAdjustOverflow:En,offset:Zi.marginXXS,arrowWidth:bt?Zi.sizePopupArrow:0,borderRadius:Zi.borderRadius}),hn=E.useCallback(()=>{hi(!1)},[]),An=()=>{let jn;return Ke!=null&&Ke.items?jn=E.createElement(Pn.default,Object.assign({},Ke)):typeof Fr=="function"?jn=Fr():jn=Fr,wn&&(jn=wn(jn)),jn=E.Children.only(typeof jn=="string"?E.createElement("span",null,jn):jn),E.createElement(_t.J,{prefixCls:`${Or}-menu`,expandIcon:E.createElement("span",{className:`${Or}-menu-submenu-arrow`},E.createElement(fe.Z,{className:`${Or}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:hn,validator:Bt=>{let{mode:on}=Bt}},jn)};return Hr(E.createElement(Fe,Object.assign({alignPoint:Yn},(0,Xt.Z)(se,["rootClassName"]),{mouseEnterDelay:Vt,mouseLeaveDelay:cr,visible:Dr,builtinPlacements:Ct,arrow:!!bt,overlayClassName:Vr,prefixCls:Or,getPopupContainer:Tt||ai,transitionName:ci,trigger:mn,overlay:An,placement:Qn,onVisibleChange:oi}),$n))};function me(se){return Object.assign(Object.assign({},se),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const he=(0,zt.Z)(Oe,"dropdown",se=>se,me),ge=se=>E.createElement(he,Object.assign({},se),E.createElement("span",null));Oe._InternalPanelDoNotUseOrYouWillBeFired=ge;var ve=Oe},85418:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return qe}});var E=te(35874),fe=te(94184),Ie=te.n(fe),Te=te(67294),xe=te(25877),Be=te(71577),de=te(53124),Se=te(93421),pe=te(4173),De=te(66748),Xe=function(He,be){var Qe={};for(var ht in He)Object.prototype.hasOwnProperty.call(He,ht)&&be.indexOf(ht)<0&&(Qe[ht]=He[ht]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ht=Object.getOwnPropertySymbols(He);Je<ht.length;Je++)be.indexOf(ht[Je])<0&&Object.prototype.propertyIsEnumerable.call(He,ht[Je])&&(Qe[ht[Je]]=He[ht[Je]]);return Qe};const Pe=He=>{const{getPopupContainer:be,getPrefixCls:Qe,direction:ht}=Te.useContext(de.E_),{prefixCls:Je,type:Ze="default",danger:ye,disabled:Ee,loading:Ye,onClick:Ne,htmlType:ot,children:ct,className:_e,menu:Me,arrow:pt,autoFocus:$e,overlay:ft,trigger:We,align:gt,open:kt,onOpenChange:xt,placement:et,getPopupContainer:Fe,href:Dt,icon:qt=Te.createElement(xe.Z,null),title:Xt,buttonsRender:Et=cn=>cn,mouseEnterDelay:zt,mouseLeaveDelay:Yt,overlayClassName:Vn,overlayStyle:Pn,destroyPopupOnHide:_t,dropdownRender:pn}=He,sr=Xe(He,["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"]),Tn=Qe("dropdown",Je),Oe=`${Tn}-button`,[me,he]=(0,De.Z)(Tn),ge={menu:Me,arrow:pt,autoFocus:$e,align:gt,disabled:Ee,trigger:Ee?[]:We,onOpenChange:xt,getPopupContainer:Fe||be,mouseEnterDelay:zt,mouseLeaveDelay:Yt,overlayClassName:Vn,overlayStyle:Pn,destroyPopupOnHide:_t,dropdownRender:pn},{compactSize:ve,compactItemClassnames:se}=(0,pe.ri)(Tn,ht),Ke=Ie()(Oe,se,_e,he);"overlay"in He&&(ge.overlay=ft),"open"in He&&(ge.open=kt),"placement"in He?ge.placement=et:ge.placement=ht==="rtl"?"bottomLeft":"bottomRight";const bt=Te.createElement(Be.ZP,{type:Ze,danger:ye,disabled:Ee,loading:Ye,onClick:Ne,htmlType:ot,href:Dt,title:Xt},ct),Wt=Te.createElement(Be.ZP,{type:Ze,danger:ye,icon:qt}),[yn,bn]=Et([bt,Wt]);return me(Te.createElement(Se.Z.Compact,Object.assign({className:Ke,size:ve,block:!0},sr),yn,Te.createElement(E.Z,Object.assign({},ge),bn)))};Pe.__ANT_BUTTON=!0;var Ue=Pe;const rt=E.Z;rt.Button=Ue;var qe=rt},66748:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Xe}});var E=te(14747),fe=te(67771),Ie=te(33297),Te=te(50438),xe=te(97414),Be=te(67968),de=te(45503),pe=Pe=>{const{componentCls:Ue,menuCls:rt,colorError:qe,colorTextLightSolid:He}=Pe,be=`${rt}-item`;return{[`${Ue}, ${Ue}-menu-submenu`]:{[`${rt} ${be}`]:{[`&${be}-danger:not(${be}-disabled)`]:{color:qe,"&:hover":{color:He,backgroundColor:qe}}}}}};const De=Pe=>{const{componentCls:Ue,menuCls:rt,zIndexPopup:qe,dropdownArrowDistance:He,sizePopupArrow:be,antCls:Qe,iconCls:ht,motionDurationMid:Je,dropdownPaddingVertical:Ze,fontSize:ye,dropdownEdgeChildPadding:Ee,colorTextDisabled:Ye,fontSizeIcon:Ne,controlPaddingHorizontal:ot,colorBgElevated:ct}=Pe;return[{[Ue]:Object.assign(Object.assign({},(0,E.Wf)(Pe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:qe,display:"block","&::before":{position:"absolute",insetBlock:-He+be/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Qe}-btn`]:{[`& > ${ht}-down, & > ${Qe}-btn-icon > ${ht}-down`]:{fontSize:Ne}},[`${Ue}-wrap`]:{position:"relative",[`${Qe}-btn > ${ht}-down`]:{fontSize:Ne},[`${ht}-down::before`]:{transition:`transform ${Je}`}},[`${Ue}-wrap-open`]:{[`${ht}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Qe}-slide-down-enter${Qe}-slide-down-enter-active${Ue}-placement-bottomLeft,
|
|
|
&${Qe}-slide-down-appear${Qe}-slide-down-appear-active${Ue}-placement-bottomLeft,
|
|
|
&${Qe}-slide-down-enter${Qe}-slide-down-enter-active${Ue}-placement-bottom,
|
|
|
&${Qe}-slide-down-appear${Qe}-slide-down-appear-active${Ue}-placement-bottom,
|
|
|
&${Qe}-slide-down-enter${Qe}-slide-down-enter-active${Ue}-placement-bottomRight,
|
|
|
&${Qe}-slide-down-appear${Qe}-slide-down-appear-active${Ue}-placement-bottomRight`]:{animationName:fe.fJ},[`&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ue}-placement-topLeft,
|
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ue}-placement-topLeft,
|
|
|
&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ue}-placement-top,
|
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ue}-placement-top,
|
|
|
&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ue}-placement-topRight,
|
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ue}-placement-topRight`]:{animationName:fe.Qt},[`&${Qe}-slide-down-leave${Qe}-slide-down-leave-active${Ue}-placement-bottomLeft,
|
|
|
&${Qe}-slide-down-leave${Qe}-slide-down-leave-active${Ue}-placement-bottom,
|
|
|
&${Qe}-slide-down-leave${Qe}-slide-down-leave-active${Ue}-placement-bottomRight`]:{animationName:fe.Uw},[`&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ue}-placement-topLeft,
|
|
|
&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ue}-placement-top,
|
|
|
&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ue}-placement-topRight`]:{animationName:fe.ly}})},(0,xe.ZP)(Pe,{colorBg:ct,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ue} ${rt}`]:{position:"relative",margin:0},[`${rt}-submenu-popup`]:{position:"absolute",zIndex:qe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ue}, ${Ue}-menu-submenu`]:{[rt]:Object.assign(Object.assign({padding:Ee,listStyleType:"none",backgroundColor:ct,backgroundClip:"padding-box",borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary},(0,E.Qy)(Pe)),{[`${rt}-item-group-title`]:{padding:`${Ze}px ${ot}px`,color:Pe.colorTextDescription,transition:`all ${Je}`},[`${rt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${rt}-item-icon`]:{minWidth:ye,marginInlineEnd:Pe.marginXS,fontSize:Pe.fontSizeSM},[`${rt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Je}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${rt}-item, ${rt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Ze}px ${ot}px`,color:Pe.colorText,fontWeight:"normal",fontSize:ye,lineHeight:Pe.lineHeight,cursor:"pointer",transition:`all ${Je}`,borderRadius:Pe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Pe.controlItemBgHover}},(0,E.Qy)(Pe)),{"&-selected":{color:Pe.colorPrimary,backgroundColor:Pe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Pe.controlItemBgActiveHover}},"&-disabled":{color:Ye,cursor:"not-allowed","&:hover":{color:Ye,backgroundColor:ct,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Pe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Pe.colorSplit},[`${Ue}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Pe.paddingXS,[`${Ue}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Pe.colorTextDescription,fontSize:Ne,fontStyle:"normal"}}}),[`${rt}-item-group-list`]:{margin:`0 ${Pe.marginXS}px`,padding:0,listStyle:"none"},[`${rt}-submenu-title`]:{paddingInlineEnd:ot+Pe.fontSizeSM},[`${rt}-submenu-vertical`]:{position:"relative"},[`${rt}-submenu${rt}-submenu-disabled ${Ue}-menu-submenu-title`]:{[`&, ${Ue}-menu-submenu-arrow-icon`]:{color:Ye,backgroundColor:ct,cursor:"not-allowed"}},[`${rt}-submenu-selected ${Ue}-menu-submenu-title`]:{color:Pe.colorPrimary}})}},[(0,fe.oN)(Pe,"slide-up"),(0,fe.oN)(Pe,"slide-down"),(0,Ie.Fm)(Pe,"move-up"),(0,Ie.Fm)(Pe,"move-down"),(0,Te._y)(Pe,"zoom-big")]]};var Xe=(0,Be.Z)("Dropdown",(Pe,Ue)=>{let{rootPrefixCls:rt}=Ue;const{marginXXS:qe,sizePopupArrow:He,controlHeight:be,fontSize:Qe,lineHeight:ht,paddingXXS:Je,componentCls:Ze,borderRadiusLG:ye}=Pe,Ee=(be-Qe*ht)/2,{dropdownArrowOffset:Ye}=(0,xe.fS)({contentRadius:ye}),Ne=(0,de.TS)(Pe,{menuCls:`${Ze}-menu`,rootPrefixCls:rt,dropdownArrowDistance:He/2+qe,dropdownArrowOffset:Ye,dropdownPaddingVertical:Ee,dropdownEdgeChildPadding:Je});return[De(Ne),pe(Ne)]},Pe=>({zIndexPopup:Pe.zIndexPopupBase+50}))},32983:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Je}});var E=te(94184),fe=te.n(E),Ie=te(67294),Te=te(53124),xe=te(10110),Be=te(84780),de=te(29691),pe=()=>{const[,Ze]=(0,de.Z)(),Ee=new Be.C(Ze.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ie.createElement("svg",{style:Ee,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ie.createElement("g",{fill:"none",fillRule:"evenodd"},Ie.createElement("g",{transform:"translate(24 31.67)"},Ie.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ie.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"}),Ie.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)"}),Ie.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"}),Ie.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"})),Ie.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"}),Ie.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ie.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ie.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Xe=()=>{const[,Ze]=(0,de.Z)(),{colorFill:ye,colorFillTertiary:Ee,colorFillQuaternary:Ye,colorBgContainer:Ne}=Ze,{borderColor:ot,shadowColor:ct,contentColor:_e}=(0,Ie.useMemo)(()=>({borderColor:new Be.C(ye).onBackground(Ne).toHexShortString(),shadowColor:new Be.C(Ee).onBackground(Ne).toHexShortString(),contentColor:new Be.C(Ye).onBackground(Ne).toHexShortString()}),[ye,Ee,Ye,Ne]);return Ie.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ie.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ie.createElement("ellipse",{fill:ct,cx:"32",cy:"33",rx:"32",ry:"7"}),Ie.createElement("g",{fillRule:"nonzero",stroke:ot},Ie.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"}),Ie.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:_e}))))},Pe=te(67968),Ue=te(45503);const rt=Ze=>{const{componentCls:ye,margin:Ee,marginXS:Ye,marginXL:Ne,fontSize:ot,lineHeight:ct}=Ze;return{[ye]:{marginInline:Ye,fontSize:ot,lineHeight:ct,textAlign:"center",[`${ye}-image`]:{height:Ze.emptyImgHeight,marginBottom:Ye,opacity:Ze.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ye}-description`]:{color:Ze.colorText},[`${ye}-footer`]:{marginTop:Ee},"&-normal":{marginBlock:Ne,color:Ze.colorTextDisabled,[`${ye}-description`]:{color:Ze.colorTextDisabled},[`${ye}-image`]:{height:Ze.emptyImgHeightMD}},"&-small":{marginBlock:Ye,color:Ze.colorTextDisabled,[`${ye}-image`]:{height:Ze.emptyImgHeightSM}}}}};var qe=(0,Pe.Z)("Empty",Ze=>{const{componentCls:ye,controlHeightLG:Ee}=Ze,Ye=(0,Ue.TS)(Ze,{emptyImgCls:`${ye}-img`,emptyImgHeight:Ee*2.5,emptyImgHeightMD:Ee,emptyImgHeightSM:Ee*.875});return[rt(Ye)]}),He=function(Ze,ye){var Ee={};for(var Ye in Ze)Object.prototype.hasOwnProperty.call(Ze,Ye)&&ye.indexOf(Ye)<0&&(Ee[Ye]=Ze[Ye]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ye=Object.getOwnPropertySymbols(Ze);Ne<Ye.length;Ne++)ye.indexOf(Ye[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Ye[Ne])&&(Ee[Ye[Ne]]=Ze[Ye[Ne]]);return Ee};const be=Ie.createElement(pe,null),Qe=Ie.createElement(Xe,null),ht=Ze=>{var{className:ye,rootClassName:Ee,prefixCls:Ye,image:Ne=be,description:ot,children:ct,imageStyle:_e,style:Me}=Ze,pt=He(Ze,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:$e,direction:ft,empty:We}=Ie.useContext(Te.E_),gt=$e("empty",Ye),[kt,xt]=qe(gt),[et]=(0,xe.Z)("Empty"),Fe=typeof ot!="undefined"?ot:et==null?void 0:et.description,Dt=typeof Fe=="string"?Fe:"empty";let qt=null;return typeof Ne=="string"?qt=Ie.createElement("img",{alt:Dt,src:Ne}):qt=Ne,kt(Ie.createElement("div",Object.assign({className:fe()(xt,gt,We==null?void 0:We.className,{[`${gt}-normal`]:Ne===Qe,[`${gt}-rtl`]:ft==="rtl"},ye,Ee),style:Object.assign(Object.assign({},We==null?void 0:We.style),Me)},pt),Ie.createElement("div",{className:`${gt}-image`,style:_e},qt),Fe&&Ie.createElement("div",{className:`${gt}-description`},Fe),ct&&Ie.createElement("div",{className:`${gt}-footer`},ct)))};ht.PRESENTED_IMAGE_DEFAULT=be,ht.PRESENTED_IMAGE_SIMPLE=Qe;var Je=ht},22150:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return jn}});var E=te(74902),fe=te(94184),Ie=te.n(fe),Te=te(38379),xe=te(67294),Be=te(33603),de=te(65223);function Se(Bt){const[on,Kn]=xe.useState(Bt);return xe.useEffect(()=>{const Dn=setTimeout(()=>{Kn(Bt)},Bt.length?0:10);return()=>{clearTimeout(Dn)}},[Bt]),on}var pe=te(14747),De=te(50438),Xe=te(33507),Pe=te(45503),Ue=te(67968),qe=Bt=>{const{componentCls:on}=Bt,Kn=`${on}-show-help`,Dn=`${on}-show-help-item`;return{[Kn]:{transition:`opacity ${Bt.motionDurationSlow} ${Bt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Dn]:{overflow:"hidden",transition:`height ${Bt.motionDurationSlow} ${Bt.motionEaseInOut},
|
|
|
opacity ${Bt.motionDurationSlow} ${Bt.motionEaseInOut},
|
|
|
transform ${Bt.motionDurationSlow} ${Bt.motionEaseInOut} !important`,[`&${Dn}-appear, &${Dn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Dn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const He=Bt=>({legend:{display:"block",width:"100%",marginBottom:Bt.marginLG,padding:0,color:Bt.colorTextDescription,fontSize:Bt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorBorder}`},label:{fontSize:Bt.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 ${Bt.controlOutlineWidth}px ${Bt.controlOutline}`},output:{display:"block",paddingTop:15,color:Bt.colorText,fontSize:Bt.fontSize,lineHeight:Bt.lineHeight}}),be=(Bt,on)=>{const{formItemCls:Kn}=Bt;return{[Kn]:{[`${Kn}-label > label`]:{height:on},[`${Kn}-control-input`]:{minHeight:on}}}},Qe=Bt=>{const{componentCls:on}=Bt;return{[Bt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Bt)),He(Bt)),{[`${on}-text`]:{display:"inline-block",paddingInlineEnd:Bt.paddingSM},"&-small":Object.assign({},be(Bt,Bt.controlHeightSM)),"&-large":Object.assign({},be(Bt,Bt.controlHeightLG))})}},ht=Bt=>{const{formItemCls:on,iconCls:Kn,componentCls:Dn,rootPrefixCls:rr,labelRequiredMarkColor:er,labelColor:Gr,labelFontSize:ra,labelHeight:Oi,labelColonMarginInlineStart:bi,labelColonMarginInlineEnd:Ji,itemMarginBottom:Ti}=Bt;return{[on]:Object.assign(Object.assign({},(0,pe.Wf)(Bt)),{marginBottom:Ti,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${rr}-row`]:{display:"none"},"&-has-warning":{[`${on}-split`]:{color:Bt.colorError}},"&-has-error":{[`${on}-split`]:{color:Bt.colorWarning}},[`${on}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Bt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Oi,color:Gr,fontSize:ra,[`> ${Kn}`]:{fontSize:Bt.fontSize,verticalAlign:"top"},[`&${on}-required:not(${on}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Bt.marginXXS,color:er,fontSize:Bt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Dn}-hide-required-mark &`]:{display:"none"}},[`${on}-optional`]:{display:"inline-block",marginInlineStart:Bt.marginXXS,color:Bt.colorTextDescription,[`${Dn}-hide-required-mark &`]:{display:"none"}},[`${on}-tooltip`]:{color:Bt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Bt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:bi,marginInlineEnd:Ji},[`&${on}-no-colon::after`]:{content:'"\\a0"'}}},[`${on}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${rr}-col-'"]):not([class*="' ${rr}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Bt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[on]:{"&-explain, &-extra":{clear:"both",color:Bt.colorTextDescription,fontSize:Bt.fontSize,lineHeight:Bt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Bt.controlHeightSM,transition:`color ${Bt.motionDurationMid} ${Bt.motionEaseOut}`},"&-explain":{"&-error":{color:Bt.colorError},"&-warning":{color:Bt.colorWarning}}},[`&-with-help ${on}-explain`]:{height:"auto",opacity:1},[`${on}-feedback-icon`]:{fontSize:Bt.fontSize,textAlign:"center",visibility:"visible",animationName:De.kr,animationDuration:Bt.motionDurationMid,animationTimingFunction:Bt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Bt.colorSuccess},"&-error":{color:Bt.colorError},"&-warning":{color:Bt.colorWarning},"&-validating":{color:Bt.colorPrimary}}})}},Je=Bt=>{const{componentCls:on,formItemCls:Kn}=Bt;return{[`${on}-horizontal`]:{[`${Kn}-label`]:{flexGrow:0},[`${Kn}-control`]:{flex:"1 1 0",minWidth:0},[`${Kn}-label[class$='-24'], ${Kn}-label[class*='-24 ']`]:{[`& + ${Kn}-control`]:{minWidth:"unset"}}}}},Ze=Bt=>{const{componentCls:on,formItemCls:Kn}=Bt;return{[`${on}-inline`]:{display:"flex",flexWrap:"wrap",[Kn]:{flex:"none",marginInlineEnd:Bt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Kn}-label,
|
|
|
> ${Kn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Kn}-label`]:{flex:"none"},[`${on}-text`]:{display:"inline-block"},[`${Kn}-has-feedback`]:{display:"inline-block"}}}}},ye=Bt=>({padding:Bt.verticalLabelPadding,margin:Bt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ee=Bt=>{const{componentCls:on,formItemCls:Kn,rootPrefixCls:Dn}=Bt;return{[`${Kn} ${Kn}-label`]:ye(Bt),[on]:{[Kn]:{flexWrap:"wrap",[`${Kn}-label, ${Kn}-control`]:{[`&:not([class*=" ${Dn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ye=Bt=>{const{componentCls:on,formItemCls:Kn,rootPrefixCls:Dn}=Bt;return{[`${on}-vertical`]:{[Kn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${on}-item-control`]:{width:"100%"}}},[`${on}-vertical ${Kn}-label,
|
|
|
.${Dn}-col-24${Kn}-label,
|
|
|
.${Dn}-col-xl-24${Kn}-label`]:ye(Bt),[`@media (max-width: ${Bt.screenXSMax}px)`]:[Ee(Bt),{[on]:{[`.${Dn}-col-xs-24${Kn}-label`]:ye(Bt)}}],[`@media (max-width: ${Bt.screenSMMax}px)`]:{[on]:{[`.${Dn}-col-sm-24${Kn}-label`]:ye(Bt)}},[`@media (max-width: ${Bt.screenMDMax}px)`]:{[on]:{[`.${Dn}-col-md-24${Kn}-label`]:ye(Bt)}},[`@media (max-width: ${Bt.screenLGMax}px)`]:{[on]:{[`.${Dn}-col-lg-24${Kn}-label`]:ye(Bt)}}}},Ne=(Bt,on)=>(0,Pe.TS)(Bt,{formItemCls:`${Bt.componentCls}-item`,rootPrefixCls:on});var ot=(0,Ue.Z)("Form",(Bt,on)=>{let{rootPrefixCls:Kn}=on;const Dn=Ne(Bt,Kn);return[Qe(Dn),ht(Dn),qe(Dn),Je(Dn),Ze(Dn),Ye(Dn),(0,Xe.Z)(Dn),De.kr]},Bt=>({labelRequiredMarkColor:Bt.colorError,labelColor:Bt.colorTextHeading,labelFontSize:Bt.fontSize,labelHeight:Bt.controlHeight,labelColonMarginInlineStart:Bt.marginXXS/2,labelColonMarginInlineEnd:Bt.marginXS,itemMarginBottom:Bt.marginLG,verticalLabelPadding:`0 0 ${Bt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ct=[];function _e(Bt,on,Kn){let Dn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Bt=="string"?Bt:`${on}-${Dn}`,error:Bt,errorStatus:Kn}}var pt=Bt=>{let{help:on,helpStatus:Kn,errors:Dn=ct,warnings:rr=ct,className:er,fieldId:Gr,onVisibleChanged:ra}=Bt;const{prefixCls:Oi}=xe.useContext(de.Rk),bi=`${Oi}-item-explain`,[,Ji]=ot(Oi),Ti=(0,xe.useMemo)(()=>(0,Be.Z)(Oi),[Oi]),ua=Se(Dn),br=Se(rr),Di=xe.useMemo(()=>on!=null?[_e(on,"help",Kn)]:[].concat((0,E.Z)(ua.map((No,xa)=>_e(No,"error","error",xa))),(0,E.Z)(br.map((No,xa)=>_e(No,"warning","warning",xa)))),[on,Kn,ua,br]),ni={};return Gr&&(ni.id=`${Gr}_help`),xe.createElement(Te.default,{motionDeadline:Ti.motionDeadline,motionName:`${Oi}-show-help`,visible:!!Di.length,onVisibleChanged:ra},No=>{const{className:xa,style:za}=No;return xe.createElement("div",Object.assign({},ni,{className:Ie()(bi,xa,er,Ji),style:za,role:"alert"}),xe.createElement(Te.CSSMotionList,Object.assign({keys:Di},(0,Be.Z)(Oi),{motionName:`${Oi}-show-help-item`,component:!1}),Lo=>{const{key:Ea,error:zo,errorStatus:gi,className:Cl,style:pl}=Lo;return xe.createElement("div",{key:Ea,className:Ie()(Cl,{[`${bi}-${gi}`]:gi}),style:pl},zo)}))})},$e=te(46660),ft=te(53124),We=te(98866),gt=te(97647),kt=te(98675),xt=te(17423);const et=["parentNode"],Fe="form_item";function Dt(Bt){return Bt===void 0||Bt===!1?[]:Array.isArray(Bt)?Bt:[Bt]}function qt(Bt,on){if(!Bt.length)return;const Kn=Bt.join("_");return on?`${on}_${Kn}`:et.includes(Kn)?`${Fe}_${Kn}`:Kn}function Xt(Bt,on,Kn,Dn,rr,er){let Gr=Dn;return er!==void 0?Gr=er:Kn.validating?Gr="validating":Bt.length?Gr="error":on.length?Gr="warning":(Kn.touched||rr&&Kn.validated)&&(Gr="success"),Gr}function Et(Bt){return Dt(Bt).join("_")}function zt(Bt){const[on]=(0,$e.useForm)(),Kn=xe.useRef({}),Dn=xe.useMemo(()=>Bt!=null?Bt:Object.assign(Object.assign({},on),{__INTERNAL__:{itemRef:rr=>er=>{const Gr=Et(rr);er?Kn.current[Gr]=er:delete Kn.current[Gr]}},scrollToField:function(rr){let er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Gr=Dt(rr),ra=qt(Gr,Dn.__INTERNAL__.name),Oi=ra?document.getElementById(ra):null;Oi&&(0,xt.Z)(Oi,Object.assign({scrollMode:"if-needed",block:"nearest"},er))},getFieldInstance:rr=>{const er=Et(rr);return Kn.current[er]}}),[Bt,on]);return[Dn]}var Yt=te(37920),Vn=function(Bt,on){var Kn={};for(var Dn in Bt)Object.prototype.hasOwnProperty.call(Bt,Dn)&&on.indexOf(Dn)<0&&(Kn[Dn]=Bt[Dn]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,Dn=Object.getOwnPropertySymbols(Bt);rr<Dn.length;rr++)on.indexOf(Dn[rr])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Dn[rr])&&(Kn[Dn[rr]]=Bt[Dn[rr]]);return Kn};const Pn=(Bt,on)=>{const Kn=xe.useContext(We.Z),{getPrefixCls:Dn,direction:rr,form:er}=xe.useContext(ft.E_),{prefixCls:Gr,className:ra,rootClassName:Oi,size:bi,disabled:Ji=Kn,form:Ti,colon:ua,labelAlign:br,labelWrap:Di,labelCol:ni,wrapperCol:No,hideRequiredMark:xa,layout:za="horizontal",scrollToFirstError:Lo,requiredMark:Ea,onFinishFailed:zo,name:gi,style:Cl,feedbackIcons:pl}=Bt,jl=Vn(Bt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ko=(0,kt.Z)(bi),Do=xe.useContext(Yt.Z),Na=(0,xe.useMemo)(()=>Ea!==void 0?Ea:er&&er.requiredMark!==void 0?er.requiredMark:!xa,[xa,Ea,er]),ml=ua!=null?ua:er==null?void 0:er.colon,nl=Dn("form",Gr),[Sl,Rl]=ot(nl),Ll=Ie()(nl,`${nl}-${za}`,{[`${nl}-hide-required-mark`]:Na===!1,[`${nl}-rtl`]:rr==="rtl",[`${nl}-${Ko}`]:Ko},Rl,er==null?void 0:er.className,ra,Oi),[wl]=zt(Ti),{__INTERNAL__:Vl}=wl;Vl.name=gi;const _l=(0,xe.useMemo)(()=>({name:gi,labelAlign:br,labelCol:ni,labelWrap:Di,wrapperCol:No,vertical:za==="vertical",colon:ml,requiredMark:Na,itemRef:Vl.itemRef,form:wl,feedbackIcons:pl}),[gi,br,ni,No,za,ml,Na,wl,pl]);xe.useImperativeHandle(on,()=>wl);const Fl=(Wn,Nn)=>{if(Wn){let Ir={block:"nearest"};typeof Wn=="object"&&(Ir=Wn),wl.scrollToField(Nn,Ir)}},Vo=Wn=>{if(zo==null||zo(Wn),Wn.errorFields.length){const Nn=Wn.errorFields[0].name;if(Lo!==void 0){Fl(Lo,Nn);return}er&&er.scrollToFirstError!==void 0&&Fl(er.scrollToFirstError,Nn)}};return Sl(xe.createElement(We.n,{disabled:Ji},xe.createElement(gt.q,{size:Ko},xe.createElement(de.RV,Object.assign({},{validateMessages:Do}),xe.createElement(de.q3.Provider,{value:_l},xe.createElement($e.default,Object.assign({id:gi},jl,{name:gi,onFinishFailed:Vo,form:wl,style:Object.assign(Object.assign({},er==null?void 0:er.style),Cl),className:Ll})))))))};var pn=xe.forwardRef(Pn),sr=te(9475),Tn=te(17799),Oe=te(96159),me=te(37419);function he(Bt){if(typeof Bt=="function")return Bt;const on=(0,me.Z)(Bt);return on.length<=1?on[0]:on}const ge=()=>{const{status:Bt,errors:on=[],warnings:Kn=[]}=(0,xe.useContext)(de.aM);return{status:Bt,errors:on,warnings:Kn}};ge.Context=de.aM;var ve=ge,se=te(96523);function Ke(Bt){const[on,Kn]=xe.useState(Bt),Dn=(0,xe.useRef)(null),rr=(0,xe.useRef)([]),er=(0,xe.useRef)(!1);xe.useEffect(()=>(er.current=!1,()=>{er.current=!0,se.Z.cancel(Dn.current),Dn.current=null}),[]);function Gr(ra){er.current||(Dn.current===null&&(rr.current=[],Dn.current=(0,se.Z)(()=>{Dn.current=null,Kn(Oi=>{let bi=Oi;return rr.current.forEach(Ji=>{bi=Ji(bi)}),bi})})),rr.current.push(ra))}return[on,Gr]}function bt(){const{itemRef:Bt}=xe.useContext(de.q3),on=xe.useRef({});function Kn(Dn,rr){const er=rr&&typeof rr=="object"&&rr.ref,Gr=Dn.join("_");return(on.current.name!==Gr||on.current.originRef!==er)&&(on.current.name=Gr,on.current.originRef=er,on.current.ref=(0,Tn.sQ)(Bt(Dn),er)),on.current.ref}return Kn}var Wt=te(48130),yn=te(14075),bn=te(10366),cn=te(92820),wn=te(21584);const Tt=Bt=>{const{formItemCls:on}=Bt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${on}-control`]:{display:"flex"}}}};var nn=(0,Ue.b)(["Form","item-item"],(Bt,on)=>{let{rootPrefixCls:Kn}=on;const Dn=Ne(Bt,Kn);return[Tt(Dn)]}),sn=Bt=>{const{prefixCls:on,status:Kn,wrapperCol:Dn,children:rr,errors:er,warnings:Gr,_internalItemRender:ra,extra:Oi,help:bi,fieldId:Ji,marginBottom:Ti,onErrorVisibleChanged:ua}=Bt,br=`${on}-item`,Di=xe.useContext(de.q3),ni=Dn||Di.wrapperCol||{},No=Ie()(`${br}-control`,ni.className),xa=xe.useMemo(()=>Object.assign({},Di),[Di]);delete xa.labelCol,delete xa.wrapperCol;const za=xe.createElement("div",{className:`${br}-control-input`},xe.createElement("div",{className:`${br}-control-input-content`},rr)),Lo=xe.useMemo(()=>({prefixCls:on,status:Kn}),[on,Kn]),Ea=Ti!==null||er.length||Gr.length?xe.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},xe.createElement(de.Rk.Provider,{value:Lo},xe.createElement(pt,{fieldId:Ji,errors:er,warnings:Gr,help:bi,helpStatus:Kn,className:`${br}-explain-connected`,onVisibleChanged:ua})),!!Ti&&xe.createElement("div",{style:{width:0,height:Ti}})):null,zo={};Ji&&(zo.id=`${Ji}_extra`);const gi=Oi?xe.createElement("div",Object.assign({},zo,{className:`${br}-extra`}),Oi):null,Cl=ra&&ra.mark==="pro_table_render"&&ra.render?ra.render(Bt,{input:za,errorList:Ea,extra:gi}):xe.createElement(xe.Fragment,null,za,Ea,gi);return xe.createElement(de.q3.Provider,{value:xa},xe.createElement(wn.Z,Object.assign({},ni,{className:No}),Cl),xe.createElement(nn,{prefixCls:on}))},an=te(17663),xr=te(24457),Lt=te(10110),Vt=te(83062),cr=function(Bt,on){var Kn={};for(var Dn in Bt)Object.prototype.hasOwnProperty.call(Bt,Dn)&&on.indexOf(Dn)<0&&(Kn[Dn]=Bt[Dn]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,Dn=Object.getOwnPropertySymbols(Bt);rr<Dn.length;rr++)on.indexOf(Dn[rr])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Dn[rr])&&(Kn[Dn[rr]]=Bt[Dn[rr]]);return Kn};function En(Bt){return Bt?typeof Bt=="object"&&!xe.isValidElement(Bt)?Bt:{title:Bt}:null}var Fr=Bt=>{let{prefixCls:on,label:Kn,htmlFor:Dn,labelCol:rr,labelAlign:er,colon:Gr,required:ra,requiredMark:Oi,tooltip:bi}=Bt;var Ji;const[Ti]=(0,Lt.Z)("Form"),{vertical:ua,labelAlign:br,labelCol:Di,labelWrap:ni,colon:No}=xe.useContext(de.q3);if(!Kn)return null;const xa=rr||Di||{},za=er||br,Lo=`${on}-item-label`,Ea=Ie()(Lo,za==="left"&&`${Lo}-left`,xa.className,{[`${Lo}-wrap`]:!!ni});let zo=Kn;const gi=Gr===!0||No!==!1&&Gr!==!1;gi&&!ua&&typeof Kn=="string"&&Kn.trim()!==""&&(zo=Kn.replace(/[:|:]\s*$/,""));const pl=En(bi);if(pl){const{icon:Na=xe.createElement(an.Z,null)}=pl,ml=cr(pl,["icon"]),nl=xe.createElement(Vt.Z,Object.assign({},ml),xe.cloneElement(Na,{className:`${on}-item-tooltip`,title:""}));zo=xe.createElement(xe.Fragment,null,zo,nl)}const jl=Oi==="optional",Ko=typeof Oi=="function";Ko?zo=Oi(zo,{required:!!ra}):jl&&!ra&&(zo=xe.createElement(xe.Fragment,null,zo,xe.createElement("span",{className:`${on}-item-optional`,title:""},(Ti==null?void 0:Ti.optional)||((Ji=xr.Z.Form)===null||Ji===void 0?void 0:Ji.optional))));const Do=Ie()({[`${on}-item-required`]:ra,[`${on}-item-required-mark-optional`]:jl||Ko,[`${on}-item-no-colon`]:!gi});return xe.createElement(wn.Z,Object.assign({},xa,{className:Ea}),xe.createElement("label",{htmlFor:Dn,className:Do,title:typeof Kn=="string"?Kn:""},zo))},Ur=te(87725),ai=te(16646),ei=te(87995),Mi=te(3407);const ci={success:Ur.Z,warning:ei.Z,error:ai.Z,validating:Mi.Z};function Qn(Bt){let{children:on,errors:Kn,warnings:Dn,hasFeedback:rr,validateStatus:er,prefixCls:Gr,meta:ra,noStyle:Oi}=Bt;const bi=`${Gr}-item`,{feedbackIcons:Ji}=xe.useContext(de.q3),Ti=Xt(Kn,Dn,ra,null,!!rr,er),{isFormItemInput:ua,status:br}=xe.useContext(de.aM),Di=xe.useMemo(()=>{var ni;let No;if(rr){const Lo=rr!==!0&&rr.icons||Ji,Ea=Ti&&((ni=Lo==null?void 0:Lo({status:Ti,errors:Kn,warnings:Dn}))===null||ni===void 0?void 0:ni[Ti]),zo=Ti&&ci[Ti];No=Ea!==!1&&zo?xe.createElement("span",{className:Ie()(`${bi}-feedback-icon`,`${bi}-feedback-icon-${Ti}`)},Ea||xe.createElement(zo,null)):null}let xa=!0,za=Ti||"";return Oi&&(xa=ua,za=(Ti!=null?Ti:br)||""),{status:za,errors:Kn,warnings:Dn,hasFeedback:!!rr,feedbackIcon:No,isFormItemInput:xa}},[Ti,rr,Oi,ua,br]);return xe.createElement(de.aM.Provider,{value:Di},on)}var Or=function(Bt,on){var Kn={};for(var Dn in Bt)Object.prototype.hasOwnProperty.call(Bt,Dn)&&on.indexOf(Dn)<0&&(Kn[Dn]=Bt[Dn]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,Dn=Object.getOwnPropertySymbols(Bt);rr<Dn.length;rr++)on.indexOf(Dn[rr])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Dn[rr])&&(Kn[Dn[rr]]=Bt[Dn[rr]]);return Kn};function Hr(Bt){const{prefixCls:on,className:Kn,rootClassName:Dn,style:rr,help:er,errors:Gr,warnings:ra,validateStatus:Oi,meta:bi,hasFeedback:Ji,hidden:Ti,children:ua,fieldId:br,required:Di,isRequired:ni,onSubItemMetaChange:No}=Bt,xa=Or(Bt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),za=`${on}-item`,{requiredMark:Lo}=xe.useContext(de.q3),Ea=xe.useRef(null),zo=Se(Gr),gi=Se(ra),Cl=er!=null,pl=!!(Cl||Gr.length||ra.length),jl=!!Ea.current&&(0,Wt.Z)(Ea.current),[Ko,Do]=xe.useState(null);(0,yn.Z)(()=>{if(pl&&Ea.current){const Rl=getComputedStyle(Ea.current);Do(parseInt(Rl.marginBottom,10))}},[pl,jl]);const Na=Rl=>{Rl||Do(null)},nl=function(){let Rl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ll=Rl?zo:bi.errors,wl=Rl?gi:bi.warnings;return Xt(Ll,wl,bi,"",!!Ji,Oi)}(),Sl=Ie()(za,Kn,Dn,{[`${za}-with-help`]:Cl||zo.length||gi.length,[`${za}-has-feedback`]:nl&&Ji,[`${za}-has-success`]:nl==="success",[`${za}-has-warning`]:nl==="warning",[`${za}-has-error`]:nl==="error",[`${za}-is-validating`]:nl==="validating",[`${za}-hidden`]:Ti});return xe.createElement("div",{className:Sl,style:rr,ref:Ea},xe.createElement(cn.Z,Object.assign({className:`${za}-row`},(0,bn.Z)(xa,["_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"])),xe.createElement(Fr,Object.assign({htmlFor:br},Bt,{requiredMark:Lo,required:Di!=null?Di:ni,prefixCls:on})),xe.createElement(sn,Object.assign({},Bt,bi,{errors:zo,warnings:gi,prefixCls:on,status:nl,help:er,marginBottom:Ko,onErrorVisibleChanged:Na}),xe.createElement(de.qI.Provider,{value:No},xe.createElement(Qn,{prefixCls:on,meta:bi,errors:bi.errors,warnings:bi.warnings,hasFeedback:Ji,validateStatus:nl},ua)))),!!Ko&&xe.createElement("div",{className:`${za}-margin-offset`,style:{marginBottom:-Ko}}))}const vi="__SPLIT__",Zi=null,$t=xe.memo(Bt=>{let{children:on}=Bt;return on},(Bt,on)=>Bt.value===on.value&&Bt.update===on.update&&Bt.childProps.length===on.childProps.length&&Bt.childProps.every((Kn,Dn)=>Kn===on.childProps[Dn]));function $n(Bt){return Bt!=null}function mn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Yn(Bt){const{name:on,noStyle:Kn,className:Dn,dependencies:rr,prefixCls:er,shouldUpdate:Gr,rules:ra,children:Oi,required:bi,label:Ji,messageVariables:Ti,trigger:ua="onChange",validateTrigger:br,hidden:Di,help:ni}=Bt,{getPrefixCls:No}=xe.useContext(ft.E_),{name:xa}=xe.useContext(de.q3),za=he(Oi),Lo=typeof za=="function",Ea=xe.useContext(de.qI),{validateTrigger:zo}=xe.useContext($e.FieldContext),gi=br!==void 0?br:zo,Cl=$n(on),pl=No("form",er),[jl,Ko]=ot(pl),Do=xe.useContext($e.ListContext),Na=xe.useRef(),[ml,nl]=Ke({}),[Sl,Rl]=(0,sr.Z)(()=>mn()),Ll=Nn=>{const Ir=Do==null?void 0:Do.getKey(Nn.name);if(Rl(Nn.destroy?mn():Nn,!0),Kn&&ni!==!1&&Ea){let Cr=Nn.name;if(Nn.destroy)Cr=Na.current||Cr;else if(Ir!==void 0){const[Ii,Ma]=Ir;Cr=[Ii].concat((0,E.Z)(Ma)),Na.current=Cr}Ea(Nn,Cr)}},wl=(Nn,Ir)=>{nl(Cr=>{const Ii=Object.assign({},Cr),Ka=[].concat((0,E.Z)(Nn.name.slice(0,-1)),(0,E.Z)(Ir)).join(vi);return Nn.destroy?delete Ii[Ka]:Ii[Ka]=Nn,Ii})},[Vl,_l]=xe.useMemo(()=>{const Nn=(0,E.Z)(Sl.errors),Ir=(0,E.Z)(Sl.warnings);return Object.values(ml).forEach(Cr=>{Nn.push.apply(Nn,(0,E.Z)(Cr.errors||[])),Ir.push.apply(Ir,(0,E.Z)(Cr.warnings||[]))}),[Nn,Ir]},[ml,Sl.errors,Sl.warnings]),Fl=bt();function Vo(Nn,Ir,Cr){return Kn&&!Di?xe.createElement(Qn,{prefixCls:pl,hasFeedback:Bt.hasFeedback,validateStatus:Bt.validateStatus,meta:Sl,errors:Vl,warnings:_l,noStyle:!0},Nn):xe.createElement(Hr,Object.assign({key:"row"},Bt,{className:Ie()(Dn,Ko),prefixCls:pl,fieldId:Ir,isRequired:Cr,errors:Vl,warnings:_l,meta:Sl,onSubItemMetaChange:wl}),Nn)}if(!Cl&&!Lo&&!rr)return jl(Vo(za));let Wn={};return typeof Ji=="string"?Wn.label=Ji:on&&(Wn.label=String(on)),Ti&&(Wn=Object.assign(Object.assign({},Wn),Ti)),jl(xe.createElement($e.Field,Object.assign({},Bt,{messageVariables:Wn,trigger:ua,validateTrigger:gi,onMetaChange:Ll}),(Nn,Ir,Cr)=>{const Ii=Dt(on).length&&Ir?Ir.name:[],Ma=qt(Ii,xa),Ka=bi!==void 0?bi:!!(ra&&ra.some(Za=>{if(Za&&typeof Za=="object"&&Za.required&&!Za.warningOnly)return!0;if(typeof Za=="function"){const Go=Za(Cr);return Go&&Go.required&&!Go.warningOnly}return!1})),Ya=Object.assign({},Nn);let $a=null;if(Array.isArray(za)&&Cl)$a=za;else if(!(Lo&&(!(Gr||rr)||Cl))){if(!(rr&&!Lo&&!Cl))if((0,Oe.l$)(za)){const Za=Object.assign(Object.assign({},za.props),Ya);if(Za.id||(Za.id=Ma),ni||Vl.length>0||_l.length>0||Bt.extra){const Qo=[];(ni||Vl.length>0)&&Qo.push(`${Ma}_help`),Bt.extra&&Qo.push(`${Ma}_extra`),Za["aria-describedby"]=Qo.join(" ")}Vl.length>0&&(Za["aria-invalid"]="true"),Ka&&(Za["aria-required"]="true"),(0,Tn.Yr)(za)&&(Za.ref=Fl(Ii,za)),new Set([].concat((0,E.Z)(Dt(ua)),(0,E.Z)(Dt(gi)))).forEach(Qo=>{Za[Qo]=function(){for(var vr,Sr,Tr,Ae,it,st=arguments.length,yt=new Array(st),wt=0;wt<st;wt++)yt[wt]=arguments[wt];(Tr=Ya[Qo])===null||Tr===void 0||(vr=Tr).call.apply(vr,[Ya].concat(yt)),(it=(Ae=za.props)[Qo])===null||it===void 0||(Sr=it).call.apply(Sr,[Ae].concat(yt))}});const Ho=[Za["aria-required"],Za["aria-invalid"],Za["aria-describedby"]];$a=xe.createElement($t,{value:Ya[Bt.valuePropName||"value"],update:za,childProps:Ho},(0,Oe.Tm)(za,Za))}else Lo&&(Gr||rr)&&!Cl?$a=za(Cr):$a=za}return Vo($a,Ma,Ka)}))}const Dr=Yn;Dr.useStatus=ve;var hi=Dr,oi=function(Bt,on){var Kn={};for(var Dn in Bt)Object.prototype.hasOwnProperty.call(Bt,Dn)&&on.indexOf(Dn)<0&&(Kn[Dn]=Bt[Dn]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,Dn=Object.getOwnPropertySymbols(Bt);rr<Dn.length;rr++)on.indexOf(Dn[rr])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Dn[rr])&&(Kn[Dn[rr]]=Bt[Dn[rr]]);return Kn},Ct=Bt=>{var{prefixCls:on,children:Kn}=Bt,Dn=oi(Bt,["prefixCls","children"]);const{getPrefixCls:rr}=xe.useContext(ft.E_),er=rr("form",on),Gr=xe.useMemo(()=>({prefixCls:er,status:"error"}),[er]);return xe.createElement($e.List,Object.assign({},Dn),(ra,Oi,bi)=>xe.createElement(de.Rk.Provider,{value:Gr},Kn(ra.map(Ji=>Object.assign(Object.assign({},Ji),{fieldKey:Ji.key})),Oi,{errors:bi.errors,warnings:bi.warnings})))};function hn(){const{form:Bt}=(0,xe.useContext)(de.q3);return Bt}const An=pn;An.Item=hi,An.List=Ct,An.ErrorList=pt,An.useForm=zt,An.useFormInstance=hn,An.useWatch=$e.useWatch,An.Provider=de.RV,An.create=()=>{};var jn=An},25378:function(In,Ut,te){"use strict";var E=te(67294),fe=te(14075),Ie=te(57838),Te=te(74443);function xe(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const de=(0,E.useRef)({}),Se=(0,Ie.Z)(),pe=(0,Te.ZP)();return(0,fe.Z)(()=>{const De=pe.subscribe(Xe=>{de.current=Xe,Be&&Se()});return()=>pe.unsubscribe(De)},[]),de.current}Ut.Z=xe},31795:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Vr}});var E=te(42922),fe=te(53978),Ie=te(94184),Te=te.n(Ie),xe=te(87462),Be=te(4942),de=te(71002),Se=te(97685),pe=te(45987),De=te(15671),Xe=te(43144);function Pe(){return typeof BigInt=="function"}function Ue(Ct){return!Ct&&Ct!==0&&!Number.isNaN(Ct)||!String(Ct).trim()}function rt(Ct){var hn=Ct.trim(),An=hn.startsWith("-");An&&(hn=hn.slice(1)),hn=hn.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),hn.startsWith(".")&&(hn="0".concat(hn));var jn=hn||"0",Bt=jn.split("."),on=Bt[0]||"0",Kn=Bt[1]||"0";on==="0"&&Kn==="0"&&(An=!1);var Dn=An?"-":"";return{negative:An,negativeStr:Dn,trimStr:jn,integerStr:on,decimalStr:Kn,fullStr:"".concat(Dn).concat(jn)}}function qe(Ct){var hn=String(Ct);return!Number.isNaN(Number(hn))&&hn.includes("e")}function He(Ct){var hn=String(Ct);if(qe(Ct)){var An=Number(hn.slice(hn.indexOf("e-")+2)),jn=hn.match(/\.(\d+)/);return jn!=null&&jn[1]&&(An+=jn[1].length),An}return hn.includes(".")&&Qe(hn)?hn.length-hn.indexOf(".")-1:0}function be(Ct){var hn=String(Ct);if(qe(Ct)){if(Ct>Number.MAX_SAFE_INTEGER)return String(Pe()?BigInt(Ct).toString():Number.MAX_SAFE_INTEGER);if(Ct<Number.MIN_SAFE_INTEGER)return String(Pe()?BigInt(Ct).toString():Number.MIN_SAFE_INTEGER);hn=Ct.toFixed(He(hn))}return rt(hn).fullStr}function Qe(Ct){return typeof Ct=="number"?!Number.isNaN(Ct):Ct?/^\s*-?\d+(\.\d+)?\s*$/.test(Ct)||/^\s*-?\d+\.\s*$/.test(Ct)||/^\s*-?\.\d+\s*$/.test(Ct):!1}var ht=function(){function Ct(hn){if((0,De.Z)(this,Ct),(0,Be.Z)(this,"origin",""),(0,Be.Z)(this,"negative",void 0),(0,Be.Z)(this,"integer",void 0),(0,Be.Z)(this,"decimal",void 0),(0,Be.Z)(this,"decimalLen",void 0),(0,Be.Z)(this,"empty",void 0),(0,Be.Z)(this,"nan",void 0),Ue(hn)){this.empty=!0;return}if(this.origin=String(hn),hn==="-"||Number.isNaN(hn)){this.nan=!0;return}var An=hn;if(qe(An)&&(An=Number(An)),An=typeof An=="string"?An:be(An),Qe(An)){var jn=rt(An);this.negative=jn.negative;var Bt=jn.trimStr.split(".");this.integer=BigInt(Bt[0]);var on=Bt[1]||"0";this.decimal=BigInt(on),this.decimalLen=on.length}else this.nan=!0}return(0,Xe.Z)(Ct,[{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(An){var jn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(An,"0"));return BigInt(jn)}},{key:"negate",value:function(){var An=new Ct(this.toString());return An.negative=!An.negative,An}},{key:"cal",value:function(An,jn,Bt){var on=Math.max(this.getDecimalStr().length,An.getDecimalStr().length),Kn=this.alignDecimal(on),Dn=An.alignDecimal(on),rr=jn(Kn,Dn).toString(),er=Bt(on),Gr=rt(rr),ra=Gr.negativeStr,Oi=Gr.trimStr,bi="".concat(ra).concat(Oi.padStart(er+1,"0"));return new Ct("".concat(bi.slice(0,-er),".").concat(bi.slice(-er)))}},{key:"add",value:function(An){if(this.isInvalidate())return new Ct(An);var jn=new Ct(An);return jn.isInvalidate()?this:this.cal(jn,function(Bt,on){return Bt+on},function(Bt){return Bt})}},{key:"multi",value:function(An){var jn=new Ct(An);return this.isInvalidate()||jn.isInvalidate()?new Ct(NaN):this.cal(jn,function(Bt,on){return Bt*on},function(Bt){return Bt*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(An){return this.toString()===(An==null?void 0:An.toString())}},{key:"lessEquals",value:function(An){return this.add(An.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var An=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return An?this.isInvalidate()?"":rt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ct}(),Je=function(){function Ct(hn){if((0,De.Z)(this,Ct),(0,Be.Z)(this,"origin",""),(0,Be.Z)(this,"number",void 0),(0,Be.Z)(this,"empty",void 0),Ue(hn)){this.empty=!0;return}this.origin=String(hn),this.number=Number(hn)}return(0,Xe.Z)(Ct,[{key:"negate",value:function(){return new Ct(-this.toNumber())}},{key:"add",value:function(An){if(this.isInvalidate())return new Ct(An);var jn=Number(An);if(Number.isNaN(jn))return this;var Bt=this.number+jn;if(Bt>Number.MAX_SAFE_INTEGER)return new Ct(Number.MAX_SAFE_INTEGER);if(Bt<Number.MIN_SAFE_INTEGER)return new Ct(Number.MIN_SAFE_INTEGER);var on=Math.max(He(this.number),He(jn));return new Ct(Bt.toFixed(on))}},{key:"multi",value:function(An){var jn=Number(An);if(this.isInvalidate()||Number.isNaN(jn))return new Ct(NaN);var Bt=this.number*jn;if(Bt>Number.MAX_SAFE_INTEGER)return new Ct(Number.MAX_SAFE_INTEGER);if(Bt<Number.MIN_SAFE_INTEGER)return new Ct(Number.MIN_SAFE_INTEGER);var on=Math.max(He(this.number),He(jn));return new Ct(Bt.toFixed(on))}},{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(An){return this.toNumber()===(An==null?void 0:An.toNumber())}},{key:"lessEquals",value:function(An){return this.add(An.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var An=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return An?this.isInvalidate()?"":be(this.number):this.origin}}]),Ct}();function Ze(Ct){return Pe()?new ht(Ct):new Je(Ct)}function ye(Ct,hn,An){var jn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ct==="")return"";var Bt=rt(Ct),on=Bt.negativeStr,Kn=Bt.integerStr,Dn=Bt.decimalStr,rr="".concat(hn).concat(Dn),er="".concat(on).concat(Kn);if(An>=0){var Gr=Number(Dn[An]);if(Gr>=5&&!jn){var ra=Ze(Ct).add("".concat(on,"0.").concat("0".repeat(An)).concat(10-Gr));return ye(ra.toString(),hn,An,jn)}return An===0?er:"".concat(er).concat(hn).concat(Dn.padEnd(An,"0").slice(0,An))}return rr===".0"?er:"".concat(er).concat(rr)}var Ee=Ze,Ye=te(67656),Ne=te(67294);function ot(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ct=ot()?Ne.useLayoutEffect:Ne.useEffect,_e=function(hn,An){var jn=Ne.useRef(!0);ct(function(){return hn(jn.current)},An),ct(function(){return jn.current=!1,function(){jn.current=!0}},[])},Me=function(hn,An){_e(function(jn){if(!jn)return hn()},An)},pt=_e,$e=te(27183);function ft(Ct,hn,An){var jn=React.useRef({});return(!("value"in jn.current)||An(jn.current.condition,hn))&&(jn.current.value=Ct(),jn.current.condition=hn),jn.current.value}function We(Ct,hn){typeof Ct=="function"?Ct(hn):(0,de.Z)(Ct)==="object"&&Ct&&"current"in Ct&&(Ct.current=hn)}function gt(){for(var Ct=arguments.length,hn=new Array(Ct),An=0;An<Ct;An++)hn[An]=arguments[An];var jn=hn.filter(function(Bt){return Bt});return jn.length<=1?jn[0]:function(Bt){hn.forEach(function(on){We(on,Bt)})}}function kt(){for(var Ct=arguments.length,hn=new Array(Ct),An=0;An<Ct;An++)hn[An]=arguments[An];return useMemo(function(){return gt.apply(void 0,hn)},hn,function(jn,Bt){return jn.length!==Bt.length||jn.every(function(on,Kn){return on!==Bt[Kn]})})}function xt(Ct){var hn,An,jn=isMemo(Ct)?Ct.type.type:Ct.type;return!(typeof jn=="function"&&!((hn=jn.prototype)!==null&&hn!==void 0&&hn.render)||typeof Ct=="function"&&!((An=Ct.prototype)!==null&&An!==void 0&&An.render))}function et(Ct){return!isValidElement(Ct)||isFragment(Ct)?!1:xt(Ct)}var Fe={},Dt=[],qt=function(hn){Dt.push(hn)};function Xt(Ct,hn){if(0)var An}function Et(Ct,hn){if(0)var An}function zt(){Fe={}}function Yt(Ct,hn,An){!hn&&!Fe[An]&&(Ct(!1,An),Fe[An]=!0)}function Vn(Ct,hn){Yt(Xt,Ct,hn)}function Pn(Ct,hn){Yt(Et,Ct,hn)}Vn.preMessage=qt,Vn.resetWarned=zt,Vn.noteOnce=Pn;var _t=Vn;function pn(Ct,hn){var An=(0,Ne.useRef)(null);function jn(){try{var on=Ct.selectionStart,Kn=Ct.selectionEnd,Dn=Ct.value,rr=Dn.substring(0,on),er=Dn.substring(Kn);An.current={start:on,end:Kn,value:Dn,beforeTxt:rr,afterTxt:er}}catch(Gr){}}function Bt(){if(Ct&&An.current&&hn)try{var on=Ct.value,Kn=An.current,Dn=Kn.beforeTxt,rr=Kn.afterTxt,er=Kn.start,Gr=on.length;if(on.endsWith(rr))Gr=on.length-An.current.afterTxt.length;else if(on.startsWith(Dn))Gr=Dn.length;else{var ra=Dn[er-1],Oi=on.indexOf(ra,er-1);Oi!==-1&&(Gr=Oi+1)}Ct.setSelectionRange(Gr,Gr)}catch(bi){_t(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(bi.message))}}return[jn,Bt]}var sr=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))},Tn=function(){var hn=(0,Ne.useState)(!1),An=(0,Se.Z)(hn,2),jn=An[0],Bt=An[1];return pt(function(){Bt(sr())},[]),jn},Oe=Tn,me=function(hn){return+setTimeout(hn,16)},he=function(hn){return clearTimeout(hn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(me=function(hn){return window.requestAnimationFrame(hn)},he=function(hn){return window.cancelAnimationFrame(hn)});var ge=0,ve=new Map;function se(Ct){ve.delete(Ct)}var Ke=function(hn){var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ge+=1;var jn=ge;function Bt(on){if(on===0)se(jn),hn();else{var Kn=me(function(){Bt(on-1)});ve.set(jn,Kn)}}return Bt(An),jn};Ke.cancel=function(Ct){var hn=ve.get(Ct);return se(hn),he(hn)};var bt=Ke,Wt=200,yn=600;function bn(Ct){var hn=Ct.prefixCls,An=Ct.upNode,jn=Ct.downNode,Bt=Ct.upDisabled,on=Ct.downDisabled,Kn=Ct.onStep,Dn=Ne.useRef(),rr=Ne.useRef([]),er=Ne.useRef();er.current=Kn;var Gr=function(){clearTimeout(Dn.current)},ra=function(ni,No){ni.preventDefault(),Gr(),er.current(No);function xa(){er.current(No),Dn.current=setTimeout(xa,Wt)}Dn.current=setTimeout(xa,yn)};Ne.useEffect(function(){return function(){Gr(),rr.current.forEach(function(Di){return bt.cancel(Di)})}},[]);var Oi=Oe();if(Oi)return null;var bi="".concat(hn,"-handler"),Ji=Te()(bi,"".concat(bi,"-up"),(0,Be.Z)({},"".concat(bi,"-up-disabled"),Bt)),Ti=Te()(bi,"".concat(bi,"-down"),(0,Be.Z)({},"".concat(bi,"-down-disabled"),on)),ua=function(){return rr.current.push(bt(Gr))},br={unselectable:"on",role:"button",onMouseUp:ua,onMouseLeave:ua};return Ne.createElement("div",{className:"".concat(bi,"-wrap")},Ne.createElement("span",(0,xe.Z)({},br,{onMouseDown:function(ni){ra(ni,!0)},"aria-label":"Increase Value","aria-disabled":Bt,className:Ji}),An||Ne.createElement("span",{unselectable:"on",className:"".concat(hn,"-handler-up-inner")})),Ne.createElement("span",(0,xe.Z)({},br,{onMouseDown:function(ni){ra(ni,!1)},"aria-label":"Decrease Value","aria-disabled":on,className:Ti}),jn||Ne.createElement("span",{unselectable:"on",className:"".concat(hn,"-handler-down-inner")})))}function cn(Ct){var hn=typeof Ct=="number"?be(Ct):rt(Ct).fullStr,An=hn.includes(".");return An?rt(hn.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ct+"0"}var wn=te(87887),Tt=function(){var Ct=(0,Ne.useRef)(0),hn=function(){bt.cancel(Ct.current)};return(0,Ne.useEffect)(function(){return hn},[]),function(An){hn(),Ct.current=bt(function(){An()})}},nn=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],fn=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],sn=function(hn,An){return hn||An.isEmpty()?An.toString():An.toNumber()},an=function(hn){var An=Ee(hn);return An.isInvalidate()?null:An},xr=Ne.forwardRef(function(Ct,hn){var An,jn=Ct.prefixCls,Bt=jn===void 0?"rc-input-number":jn,on=Ct.className,Kn=Ct.style,Dn=Ct.min,rr=Ct.max,er=Ct.step,Gr=er===void 0?1:er,ra=Ct.defaultValue,Oi=Ct.value,bi=Ct.disabled,Ji=Ct.readOnly,Ti=Ct.upHandler,ua=Ct.downHandler,br=Ct.keyboard,Di=Ct.controls,ni=Di===void 0?!0:Di,No=Ct.classNames,xa=Ct.stringMode,za=Ct.parser,Lo=Ct.formatter,Ea=Ct.precision,zo=Ct.decimalSeparator,gi=Ct.onChange,Cl=Ct.onInput,pl=Ct.onPressEnter,jl=Ct.onStep,Ko=(0,pe.Z)(Ct,nn),Do="".concat(Bt,"-input"),Na=Ne.useRef(null),ml=Ne.useState(!1),nl=(0,Se.Z)(ml,2),Sl=nl[0],Rl=nl[1],Ll=Ne.useRef(!1),wl=Ne.useRef(!1),Vl=Ne.useRef(!1),_l=Ne.useState(function(){return Ee(Oi!=null?Oi:ra)}),Fl=(0,Se.Z)(_l,2),Vo=Fl[0],Wn=Fl[1];function Nn(Yr){Oi===void 0&&Wn(Yr)}var Ir=Ne.useCallback(function(Yr,Xr){if(!Xr)return Ea>=0?Ea:Math.max(He(Yr),He(Gr))},[Ea,Gr]),Cr=Ne.useCallback(function(Yr){var Xr=String(Yr);if(za)return za(Xr);var ti=Xr;return zo&&(ti=ti.replace(zo,".")),ti.replace(/[^\w.-]+/g,"")},[za,zo]),Ii=Ne.useRef(""),Ma=Ne.useCallback(function(Yr,Xr){if(Lo)return Lo(Yr,{userTyping:Xr,input:String(Ii.current)});var ti=typeof Yr=="number"?be(Yr):Yr;if(!Xr){var fi=Ir(ti,Xr);if(Qe(ti)&&(zo||fi>=0)){var Ci=zo||".";ti=ye(ti,Ci,fi)}}return ti},[Lo,Ir,zo]),Ka=Ne.useState(function(){var Yr=ra!=null?ra:Oi;return Vo.isInvalidate()&&["string","number"].includes((0,de.Z)(Yr))?Number.isNaN(Yr)?"":Yr:Ma(Vo.toString(),!1)}),Ya=(0,Se.Z)(Ka,2),$a=Ya[0],Za=Ya[1];Ii.current=$a;function Go(Yr,Xr){Za(Ma(Yr.isInvalidate()?Yr.toString(!1):Yr.toString(!Xr),Xr))}var Ho=Ne.useMemo(function(){return an(rr)},[rr,Ea]),Qo=Ne.useMemo(function(){return an(Dn)},[Dn,Ea]),vr=Ne.useMemo(function(){return!Ho||!Vo||Vo.isInvalidate()?!1:Ho.lessEquals(Vo)},[Ho,Vo]),Sr=Ne.useMemo(function(){return!Qo||!Vo||Vo.isInvalidate()?!1:Vo.lessEquals(Qo)},[Qo,Vo]),Tr=pn(Na.current,Sl),Ae=(0,Se.Z)(Tr,2),it=Ae[0],st=Ae[1],yt=function(Xr){return Ho&&!Xr.lessEquals(Ho)?Ho:Qo&&!Qo.lessEquals(Xr)?Qo:null},wt=function(Xr){return!yt(Xr)},Ft=function(Xr,ti){var fi=Xr,Ci=wt(fi)||fi.isEmpty();if(!fi.isEmpty()&&!ti&&(fi=yt(fi)||fi,Ci=!0),!Ji&&!bi&&Ci){var At=fi.toString(),vt=Ir(At,ti);return vt>=0&&(fi=Ee(ye(At,".",vt)),wt(fi)||(fi=Ee(ye(At,".",vt,!0)))),fi.equals(Vo)||(Nn(fi),gi==null||gi(fi.isEmpty()?null:sn(xa,fi)),Oi===void 0&&Go(fi,ti)),fi}return Vo},Nt=Tt(),gn=function Yr(Xr){if(it(),Ii.current=Xr,Za(Xr),!wl.current){var ti=Cr(Xr),fi=Ee(ti);fi.isNaN()||Ft(fi,!0)}Cl==null||Cl(Xr),Nt(function(){var Ci=Xr;za||(Ci=Xr.replace(/。/g,".")),Ci!==Xr&&Yr(Ci)})},Rn=function(){wl.current=!0},Nr=function(){wl.current=!1,gn(Na.current.value)},Wr=function(Xr){gn(Xr.target.value)},Rr=function(Xr){var ti;if(!(Xr&&vr||!Xr&&Sr)){Ll.current=!1;var fi=Ee(Vl.current?cn(Gr):Gr);Xr||(fi=fi.negate());var Ci=(Vo||Ee(0)).add(fi.toString()),At=Ft(Ci,!1);jl==null||jl(sn(xa,At),{offset:Vl.current?cn(Gr):Gr,type:Xr?"up":"down"}),(ti=Na.current)===null||ti===void 0||ti.focus()}},Un=function(Xr){var ti=Ee(Cr($a)),fi=ti;ti.isNaN()?fi=Ft(Vo,Xr):fi=Ft(ti,Xr),Oi!==void 0?Go(Vo,!1):fi.isNaN()||Go(fi,!1)},pr=function(){Ll.current=!0},Jn=function(Xr){var ti=Xr.key,fi=Xr.shiftKey;Ll.current=!0,Vl.current=fi,ti==="Enter"&&(wl.current||(Ll.current=!1),Un(!1),pl==null||pl(Xr)),br!==!1&&!wl.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ti)&&(Rr(ti==="Up"||ti==="ArrowUp"),Xr.preventDefault())},_r=function(){Ll.current=!1,Vl.current=!1},yi=function(){Un(!1),Rl(!1),Ll.current=!1};return Me(function(){Vo.isInvalidate()||Go(Vo,!1)},[Ea]),Me(function(){var Yr=Ee(Oi);Wn(Yr);var Xr=Ee(Cr($a));(!Yr.equals(Xr)||!Ll.current||Lo)&&Go(Yr,Ll.current)},[Oi]),Me(function(){Lo&&st()},[$a]),Ne.createElement("div",{className:Te()(Bt,No==null?void 0:No.input,on,(An={},(0,Be.Z)(An,"".concat(Bt,"-focused"),Sl),(0,Be.Z)(An,"".concat(Bt,"-disabled"),bi),(0,Be.Z)(An,"".concat(Bt,"-readonly"),Ji),(0,Be.Z)(An,"".concat(Bt,"-not-a-number"),Vo.isNaN()),(0,Be.Z)(An,"".concat(Bt,"-out-of-range"),!Vo.isInvalidate()&&!wt(Vo)),An)),style:Kn,onFocus:function(){Rl(!0)},onBlur:yi,onKeyDown:Jn,onKeyUp:_r,onCompositionStart:Rn,onCompositionEnd:Nr,onBeforeInput:pr},ni&&Ne.createElement(bn,{prefixCls:Bt,upNode:Ti,downNode:ua,upDisabled:vr,downDisabled:Sr,onStep:Rr}),Ne.createElement("div",{className:"".concat(Do,"-wrap")},Ne.createElement("input",(0,xe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Dn,"aria-valuemax":rr,"aria-valuenow":Vo.isInvalidate()?null:Vo.toString(),step:Gr},Ko,{ref:gt(Na,hn),className:Do,value:$a,onChange:Wr,disabled:bi,readOnly:Ji}))))}),Lt=Ne.forwardRef(function(Ct,hn){var An=Ct.disabled,jn=Ct.style,Bt=Ct.prefixCls,on=Ct.value,Kn=Ct.prefix,Dn=Ct.suffix,rr=Ct.addonBefore,er=Ct.addonAfter,Gr=Ct.classes,ra=Ct.className,Oi=Ct.classNames,bi=(0,pe.Z)(Ct,fn),Ji=Ne.useRef(null),Ti=function(br){Ji.current&&(0,wn.nH)(Ji.current,br)};return Ne.createElement(Ye.BaseInput,{inputElement:Ne.createElement(xr,(0,xe.Z)({prefixCls:Bt,disabled:An,classNames:Oi,ref:gt(Ji,hn)},bi)),className:ra,triggerFocus:Ti,prefixCls:Bt,value:on,disabled:An,style:jn,prefix:Kn,suffix:Dn,addonAfter:er,addonBefore:rr,classes:Gr,classNames:Oi,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Lt.displayName="InputNumber";var Vt=Lt,cr=Vt,En=te(9708),en=te(53124),Fr=te(46735),Ur=te(98866),ai=te(98675),ei=te(65223),Mi=te(4173),ci=te(47673),Qn=te(14747),Or=te(80110),Hr=te(67968),vi=te(45503);const Zi=(Ct,hn)=>{let{componentCls:An,borderRadiusSM:jn,borderRadiusLG:Bt}=Ct;const on=hn==="lg"?Bt:jn;return{[`&-${hn}`]:{[`${An}-handler-wrap`]:{borderStartEndRadius:on,borderEndEndRadius:on},[`${An}-handler-up`]:{borderStartEndRadius:on},[`${An}-handler-down`]:{borderEndEndRadius:on}}}},$t=Ct=>{const{componentCls:hn,lineWidth:An,lineType:jn,colorBorder:Bt,borderRadius:on,fontSizeLG:Kn,controlHeightLG:Dn,controlHeightSM:rr,colorError:er,paddingInlineSM:Gr,colorTextDescription:ra,motionDurationMid:Oi,handleHoverColor:bi,paddingInline:Ji,paddingBlock:Ti,handleBg:ua,handleActiveBg:br,colorTextDisabled:Di,borderRadiusSM:ni,borderRadiusLG:No,controlWidth:xa,handleVisible:za,handleBorderColor:Lo}=Ct;return[{[hn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qn.Wf)(Ct)),(0,ci.ik)(Ct)),(0,ci.bi)(Ct,hn)),{display:"inline-block",width:xa,margin:0,padding:0,border:`${An}px ${jn} ${Bt}`,borderRadius:on,"&-rtl":{direction:"rtl",[`${hn}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Kn,borderRadius:No,[`input${hn}-input`]:{height:Dn-2*An}},"&-sm":{padding:0,borderRadius:ni,[`input${hn}-input`]:{height:rr-2*An,padding:`0 ${Gr}px`}},"&:hover":Object.assign({},(0,ci.pU)(Ct)),"&-focused":Object.assign({},(0,ci.M1)(Ct)),"&-out-of-range":{[`${hn}-input-wrap`]:{input:{color:er}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Qn.Wf)(Ct)),(0,ci.s7)(Ct)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${hn}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${hn}-group-addon`]:{borderRadius:No,fontSize:Ct.fontSizeLG}},"&-sm":{[`${hn}-group-addon`]:{borderRadius:ni}},[`${hn}-wrapper-disabled > ${hn}-group-addon`]:Object.assign({},(0,ci.Xy)(Ct))}}),[`&-disabled ${hn}-input`]:{cursor:"not-allowed"},[hn]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qn.Wf)(Ct)),{width:"100%",padding:`${Ti}px ${Ji}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:on,outline:0,transition:`all ${Oi} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ci.nz)(Ct.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[hn]:Object.assign(Object.assign(Object.assign({[`&:hover ${hn}-handler-wrap, &-focused ${hn}-handler-wrap`]:{opacity:1},[`${hn}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ct.handleWidth,height:"100%",background:ua,borderStartStartRadius:0,borderStartEndRadius:on,borderEndEndRadius:on,borderEndStartRadius:0,opacity:za===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Oi} linear ${Oi}`,[`${hn}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${hn}-handler-up-inner,
|
|
|
${hn}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Ct.handleFontSize}}},[`${hn}-handler`]:{height:"50%",overflow:"hidden",color:ra,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${An}px ${jn} ${Lo}`,transition:`all ${Oi} linear`,"&:active":{background:br},"&:hover":{height:"60%",[`
|
|
|
${hn}-handler-up-inner,
|
|
|
${hn}-handler-down-inner
|
|
|
`]:{color:bi}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Qn.Ro)()),{color:ra,transition:`all ${Oi} linear`,userSelect:"none"})},[`${hn}-handler-up`]:{borderStartEndRadius:on},[`${hn}-handler-down`]:{borderBlockStart:`${An}px ${jn} ${Lo}`,borderEndEndRadius:on}},Zi(Ct,"lg")),Zi(Ct,"sm")),{"&-disabled, &-readonly":{[`${hn}-handler-wrap`]:{display:"none"},[`${hn}-input`]:{color:"inherit"}},[`
|
|
|
${hn}-handler-up-disabled,
|
|
|
${hn}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${hn}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${hn}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Di}})},{[`${hn}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${hn}-handler-down`]:{borderBlockStartWidth:0}}}]},$n=Ct=>{const{componentCls:hn,paddingBlock:An,paddingInline:jn,inputAffixPadding:Bt,controlWidth:on,borderRadiusLG:Kn,borderRadiusSM:Dn}=Ct;return{[`${hn}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,ci.ik)(Ct)),(0,ci.bi)(Ct,`${hn}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:on,padding:0,paddingInlineStart:jn,"&-lg":{borderRadius:Kn},"&-sm":{borderRadius:Dn},[`&:not(${hn}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,ci.pU)(Ct)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${hn}-disabled`]:{background:"transparent"},[`> div${hn}`]:{width:"100%",border:"none",outline:"none",[`&${hn}-focused`]:{boxShadow:"none !important"}},[`input${hn}-input`]:{padding:`${An}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${hn}-handler-wrap`]:{zIndex:2},[hn]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Bt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:jn,marginInlineStart:Bt}}})}};var mn=(0,Hr.Z)("InputNumber",Ct=>{const hn=(0,vi.TS)(Ct,(0,ci.e5)(Ct));return[$t(hn),$n(hn),(0,Or.c)(hn)]},Ct=>Object.assign(Object.assign({},(0,ci.TM)(Ct)),{controlWidth:90,handleWidth:Ct.controlHeightSM-Ct.lineWidth*2,handleFontSize:Ct.fontSize/2,handleVisible:"auto",handleActiveBg:Ct.colorFillAlter,handleBg:Ct.colorBgContainer,handleHoverColor:Ct.colorPrimary,handleBorderColor:Ct.colorBorder})),Yn=function(Ct,hn){var An={};for(var jn in Ct)Object.prototype.hasOwnProperty.call(Ct,jn)&&hn.indexOf(jn)<0&&(An[jn]=Ct[jn]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,jn=Object.getOwnPropertySymbols(Ct);Bt<jn.length;Bt++)hn.indexOf(jn[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Ct,jn[Bt])&&(An[jn[Bt]]=Ct[jn[Bt]]);return An};const Dr=Ne.forwardRef((Ct,hn)=>{const{getPrefixCls:An,direction:jn}=Ne.useContext(en.E_),Bt=Ne.useRef(null);Ne.useImperativeHandle(hn,()=>Bt.current);const{className:on,rootClassName:Kn,size:Dn,disabled:rr,prefixCls:er,addonBefore:Gr,addonAfter:ra,prefix:Oi,bordered:bi=!0,readOnly:Ji,status:Ti,controls:ua}=Ct,br=Yn(Ct,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Di=An("input-number",er),[ni,No]=mn(Di),{compactSize:xa,compactItemClassnames:za}=(0,Mi.ri)(Di,jn);let Lo=Ne.createElement(fe.Z,{className:`${Di}-handler-up-inner`}),Ea=Ne.createElement(E.Z,{className:`${Di}-handler-down-inner`});const zo=typeof ua=="boolean"?ua:void 0;typeof ua=="object"&&(Lo=typeof ua.upIcon=="undefined"?Lo:Ne.createElement("span",{className:`${Di}-handler-up-inner`},ua.upIcon),Ea=typeof ua.downIcon=="undefined"?Ea:Ne.createElement("span",{className:`${Di}-handler-down-inner`},ua.downIcon));const{hasFeedback:gi,status:Cl,isFormItemInput:pl,feedbackIcon:jl}=Ne.useContext(ei.aM),Ko=(0,En.F)(Cl,Ti),Do=(0,ai.Z)(Ll=>{var wl;return(wl=Dn!=null?Dn:xa)!==null&&wl!==void 0?wl:Ll}),Na=Ne.useContext(Ur.Z),ml=rr!=null?rr:Na,nl=Te()({[`${Di}-lg`]:Do==="large",[`${Di}-sm`]:Do==="small",[`${Di}-rtl`]:jn==="rtl",[`${Di}-borderless`]:!bi,[`${Di}-in-form-item`]:pl},(0,En.Z)(Di,Ko),za,No),Sl=`${Di}-group`,Rl=Ne.createElement(cr,Object.assign({ref:Bt,disabled:ml,className:Te()(on,Kn),upHandler:Lo,downHandler:Ea,prefixCls:Di,readOnly:Ji,controls:zo,prefix:Oi,suffix:gi&&jl,addonAfter:ra&&Ne.createElement(Mi.BR,null,Ne.createElement(ei.Ux,{override:!0,status:!0},ra)),addonBefore:Gr&&Ne.createElement(Mi.BR,null,Ne.createElement(ei.Ux,{override:!0,status:!0},Gr)),classNames:{input:nl},classes:{affixWrapper:Te()((0,En.Z)(`${Di}-affix-wrapper`,Ko,gi),{[`${Di}-affix-wrapper-sm`]:Do==="small",[`${Di}-affix-wrapper-lg`]:Do==="large",[`${Di}-affix-wrapper-rtl`]:jn==="rtl",[`${Di}-affix-wrapper-borderless`]:!bi},No),wrapper:Te()({[`${Sl}-rtl`]:jn==="rtl",[`${Di}-wrapper-disabled`]:ml},No),group:Te()({[`${Di}-group-wrapper-sm`]:Do==="small",[`${Di}-group-wrapper-lg`]:Do==="large",[`${Di}-group-wrapper-rtl`]:jn==="rtl"},(0,En.Z)(`${Di}-group-wrapper`,Ko,gi),No)}},br));return ni(Rl)}),hi=Dr,oi=Ct=>Ne.createElement(Fr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ne.createElement(Dr,Object.assign({},Ct)));hi._InternalPanelDoNotUseOrYouWillBeFired=oi;var Vr=hi},82586:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return ht},n:function(){return be}});var E=te(16646),fe=te(94184),Ie=te.n(fe),Te=te(67656),xe=te(17799),Be=te(67294),de=te(9708),Se=te(53124),pe=te(98866),De=te(98675),Xe=te(65223),Pe=te(4173),Ue=te(72922),rt=te(47673);function qe(Je){return!!(Je.prefix||Je.suffix||Je.allowClear)}var He=function(Je,Ze){var ye={};for(var Ee in Je)Object.prototype.hasOwnProperty.call(Je,Ee)&&Ze.indexOf(Ee)<0&&(ye[Ee]=Je[Ee]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ee=Object.getOwnPropertySymbols(Je);Ye<Ee.length;Ye++)Ze.indexOf(Ee[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ee[Ye])&&(ye[Ee[Ye]]=Je[Ee[Ye]]);return ye};function be(Je,Ze){if(!Je)return;Je.focus(Ze);const{cursor:ye}=Ze||{};if(ye){const Ee=Je.value.length;switch(ye){case"start":Je.setSelectionRange(0,0);break;case"end":Je.setSelectionRange(Ee,Ee);break;default:Je.setSelectionRange(0,Ee);break}}}var ht=(0,Be.forwardRef)((Je,Ze)=>{var ye;const{prefixCls:Ee,bordered:Ye=!0,status:Ne,size:ot,disabled:ct,onBlur:_e,onFocus:Me,suffix:pt,allowClear:$e,addonAfter:ft,addonBefore:We,className:gt,style:kt,styles:xt,rootClassName:et,onChange:Fe,classNames:Dt}=Je,qt=He(Je,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Xt,direction:Et,input:zt}=Be.useContext(Se.E_),Yt=Xt("input",Ee),Vn=(0,Be.useRef)(null),[Pn,_t]=(0,rt.ZP)(Yt),{compactSize:pn,compactItemClassnames:sr}=(0,Pe.ri)(Yt,Et),Tn=(0,De.Z)(nn=>{var fn;return(fn=ot!=null?ot:pn)!==null&&fn!==void 0?fn:nn}),Oe=Be.useContext(pe.Z),me=ct!=null?ct:Oe,{status:he,hasFeedback:ge,feedbackIcon:ve}=(0,Be.useContext)(Xe.aM),se=(0,de.F)(he,Ne),Ke=qe(Je)||!!ge,bt=(0,Be.useRef)(Ke);(0,Be.useEffect)(()=>{var nn;Ke&&bt.current,bt.current=Ke},[Ke]);const Wt=(0,Ue.Z)(Vn,!0),yn=nn=>{Wt(),_e==null||_e(nn)},bn=nn=>{Wt(),Me==null||Me(nn)},cn=nn=>{Wt(),Fe==null||Fe(nn)},wn=(ge||pt)&&Be.createElement(Be.Fragment,null,pt,ge&&ve);let Tt;return typeof $e=="object"&&($e!=null&&$e.clearIcon)?Tt=$e:$e&&(Tt={clearIcon:Be.createElement(E.Z,null)}),Pn(Be.createElement(Te.default,Object.assign({ref:(0,xe.sQ)(Ze,Vn),prefixCls:Yt,autoComplete:zt==null?void 0:zt.autoComplete},qt,{disabled:me,onBlur:yn,onFocus:bn,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),kt),styles:Object.assign(Object.assign({},zt==null?void 0:zt.styles),xt),suffix:wn,allowClear:Tt,className:Ie()(gt,et,sr,zt==null?void 0:zt.className),onChange:cn,addonAfter:ft&&Be.createElement(Pe.BR,null,Be.createElement(Xe.Ux,{override:!0,status:!0},ft)),addonBefore:We&&Be.createElement(Pe.BR,null,Be.createElement(Xe.Ux,{override:!0,status:!0},We)),classNames:Object.assign(Object.assign(Object.assign({},Dt),zt==null?void 0:zt.classNames),{input:Ie()({[`${Yt}-sm`]:Tn==="small",[`${Yt}-lg`]:Tn==="large",[`${Yt}-rtl`]:Et==="rtl",[`${Yt}-borderless`]:!Ye},!Ke&&(0,de.Z)(Yt,se),Dt==null?void 0:Dt.input,(ye=zt==null?void 0:zt.classNames)===null||ye===void 0?void 0:ye.input,_t)}),classes:{affixWrapper:Ie()({[`${Yt}-affix-wrapper-sm`]:Tn==="small",[`${Yt}-affix-wrapper-lg`]:Tn==="large",[`${Yt}-affix-wrapper-rtl`]:Et==="rtl",[`${Yt}-affix-wrapper-borderless`]:!Ye},(0,de.Z)(`${Yt}-affix-wrapper`,se,ge),_t),wrapper:Ie()({[`${Yt}-group-rtl`]:Et==="rtl"},_t),group:Ie()({[`${Yt}-group-wrapper-sm`]:Tn==="small",[`${Yt}-group-wrapper-lg`]:Tn==="large",[`${Yt}-group-wrapper-rtl`]:Et==="rtl",[`${Yt}-group-wrapper-disabled`]:me},(0,de.Z)(`${Yt}-group-wrapper`,se,ge),_t)}})))})},96330:function(In,Ut,te){"use strict";var E=te(16646),fe=te(94184),Ie=te.n(fe),Te=te(64701),xe=te(67294),Be=te(9708),de=te(53124),Se=te(98866),pe=te(98675),De=te(65223),Xe=te(82586),Pe=te(47673),Ue=function(qe,He){var be={};for(var Qe in qe)Object.prototype.hasOwnProperty.call(qe,Qe)&&He.indexOf(Qe)<0&&(be[Qe]=qe[Qe]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Qe=Object.getOwnPropertySymbols(qe);ht<Qe.length;ht++)He.indexOf(Qe[ht])<0&&Object.prototype.propertyIsEnumerable.call(qe,Qe[ht])&&(be[Qe[ht]]=qe[Qe[ht]]);return be};const rt=(0,xe.forwardRef)((qe,He)=>{const{prefixCls:be,bordered:Qe=!0,size:ht,disabled:Je,status:Ze,allowClear:ye,showCount:Ee,classNames:Ye,rootClassName:Ne,className:ot}=qe,ct=Ue(qe,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:_e,direction:Me}=xe.useContext(de.E_),pt=(0,pe.Z)(ht),$e=xe.useContext(Se.Z),ft=Je!=null?Je:$e,{status:We,hasFeedback:gt,feedbackIcon:kt}=xe.useContext(De.aM),xt=(0,Be.F)(We,Ze),et=xe.useRef(null);xe.useImperativeHandle(He,()=>{var Et;return{resizableTextArea:(Et=et.current)===null||Et===void 0?void 0:Et.resizableTextArea,focus:zt=>{var Yt,Vn;(0,Xe.n)((Vn=(Yt=et.current)===null||Yt===void 0?void 0:Yt.resizableTextArea)===null||Vn===void 0?void 0:Vn.textArea,zt)},blur:()=>{var zt;return(zt=et.current)===null||zt===void 0?void 0:zt.blur()}}});const Fe=_e("input",be);let Dt;typeof ye=="object"&&(ye!=null&&ye.clearIcon)?Dt=ye:ye&&(Dt={clearIcon:xe.createElement(E.Z,null)});const[qt,Xt]=(0,Pe.ZP)(Fe);return qt(xe.createElement(Te.default,Object.assign({},ct,{disabled:ft,allowClear:Dt,className:Ie()(ot,Ne),classes:{affixWrapper:Ie()(`${Fe}-textarea-affix-wrapper`,{[`${Fe}-affix-wrapper-rtl`]:Me==="rtl",[`${Fe}-affix-wrapper-borderless`]:!Qe,[`${Fe}-affix-wrapper-sm`]:pt==="small",[`${Fe}-affix-wrapper-lg`]:pt==="large",[`${Fe}-textarea-show-count`]:Ee},(0,Be.Z)(`${Fe}-affix-wrapper`,xt),Xt)},classNames:Object.assign(Object.assign({},Ye),{textarea:Ie()({[`${Fe}-borderless`]:!Qe,[`${Fe}-sm`]:pt==="small",[`${Fe}-lg`]:pt==="large"},(0,Be.Z)(Fe,xt),Xt,Ye==null?void 0:Ye.textarea)}),prefixCls:Fe,suffix:gt&&xe.createElement("span",{className:`${Fe}-textarea-suffix`},kt),showCount:Ee,ref:et})))});Ut.Z=rt},72922:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return fe}});var E=te(67294);function fe(Ie,Te){const xe=(0,E.useRef)([]),Be=()=>{xe.current.push(setTimeout(()=>{var de,Se,pe,De;!((de=Ie.current)===null||de===void 0)&&de.input&&((Se=Ie.current)===null||Se===void 0?void 0:Se.input.getAttribute("type"))==="password"&&(!((pe=Ie.current)===null||pe===void 0)&&pe.input.hasAttribute("value"))&&((De=Ie.current)===null||De===void 0||De.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(Te&&Be(),()=>xe.current.forEach(de=>{de&&clearTimeout(de)})),[]),Be}},69677:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return pt}});var E=te(94184),fe=te.n(E),Ie=te(67294),Te=te(53124),xe=te(65223),Be=te(47673),Se=$e=>{const{getPrefixCls:ft,direction:We}=(0,Ie.useContext)(Te.E_),{prefixCls:gt,className:kt}=$e,xt=ft("input-group",gt),et=ft("input"),[Fe,Dt]=(0,Be.ZP)(et),qt=fe()(xt,{[`${xt}-lg`]:$e.size==="large",[`${xt}-sm`]:$e.size==="small",[`${xt}-compact`]:$e.compact,[`${xt}-rtl`]:We==="rtl"},Dt,kt),Xt=(0,Ie.useContext)(xe.aM),Et=(0,Ie.useMemo)(()=>Object.assign(Object.assign({},Xt),{isFormItemInput:!1}),[Xt]);return Fe(Ie.createElement("span",{className:qt,style:$e.style,onMouseEnter:$e.onMouseEnter,onMouseLeave:$e.onMouseLeave,onFocus:$e.onFocus,onBlur:$e.onBlur},Ie.createElement(xe.aM.Provider,{value:Et},$e.children)))},pe=te(82586),De=te(63237),Xe=te(99569),Pe=te(10366),Ue=te(17799),rt=te(72922),qe=function($e,ft){var We={};for(var gt in $e)Object.prototype.hasOwnProperty.call($e,gt)&&ft.indexOf(gt)<0&&(We[gt]=$e[gt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,gt=Object.getOwnPropertySymbols($e);kt<gt.length;kt++)ft.indexOf(gt[kt])<0&&Object.prototype.propertyIsEnumerable.call($e,gt[kt])&&(We[gt[kt]]=$e[gt[kt]]);return We};const He=$e=>$e?Ie.createElement(Xe.Z,null):Ie.createElement(De.Z,null),be={click:"onClick",hover:"onMouseOver"};var ht=Ie.forwardRef(($e,ft)=>{const{visibilityToggle:We=!0}=$e,gt=typeof We=="object"&&We.visible!==void 0,[kt,xt]=(0,Ie.useState)(()=>gt?We.visible:!1),et=(0,Ie.useRef)(null);Ie.useEffect(()=>{gt&&xt(We.visible)},[gt,We]);const Fe=(0,rt.Z)(et),Dt=()=>{const{disabled:me}=$e;me||(kt&&Fe(),xt(he=>{var ge;const ve=!he;return typeof We=="object"&&((ge=We.onVisibleChange)===null||ge===void 0||ge.call(We,ve)),ve}))},qt=me=>{const{action:he="click",iconRender:ge=He}=$e,ve=be[he]||"",se=ge(kt),Ke={[ve]:Dt,className:`${me}-icon`,key:"passwordIcon",onMouseDown:bt=>{bt.preventDefault()},onMouseUp:bt=>{bt.preventDefault()}};return Ie.cloneElement(Ie.isValidElement(se)?se:Ie.createElement("span",null,se),Ke)},{className:Xt,prefixCls:Et,inputPrefixCls:zt,size:Yt}=$e,Vn=qe($e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Pn}=Ie.useContext(Te.E_),_t=Pn("input",zt),pn=Pn("input-password",Et),sr=We&&qt(pn),Tn=fe()(pn,Xt,{[`${pn}-${Yt}`]:!!Yt}),Oe=Object.assign(Object.assign({},(0,Pe.Z)(Vn,["suffix","iconRender","visibilityToggle"])),{type:kt?"text":"password",className:Tn,prefixCls:_t,suffix:sr});return Yt&&(Oe.size=Yt),Ie.createElement(pe.Z,Object.assign({ref:(0,Ue.sQ)(ft,et)},Oe))}),Je=te(72395),Ze=te(96159),ye=te(71577),Ee=te(98675),Ye=te(4173),Ne=function($e,ft){var We={};for(var gt in $e)Object.prototype.hasOwnProperty.call($e,gt)&&ft.indexOf(gt)<0&&(We[gt]=$e[gt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,gt=Object.getOwnPropertySymbols($e);kt<gt.length;kt++)ft.indexOf(gt[kt])<0&&Object.prototype.propertyIsEnumerable.call($e,gt[kt])&&(We[gt[kt]]=$e[gt[kt]]);return We},ct=Ie.forwardRef(($e,ft)=>{const{prefixCls:We,inputPrefixCls:gt,className:kt,size:xt,suffix:et,enterButton:Fe=!1,addonAfter:Dt,loading:qt,disabled:Xt,onSearch:Et,onChange:zt,onCompositionStart:Yt,onCompositionEnd:Vn}=$e,Pn=Ne($e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:_t,direction:pn}=Ie.useContext(Te.E_),sr=Ie.useRef(!1),Tn=_t("input-search",We),Oe=_t("input",gt),{compactSize:me}=(0,Ye.ri)(Tn,pn),he=(0,Ee.Z)(sn=>{var an;return(an=xt!=null?xt:me)!==null&&an!==void 0?an:sn}),ge=Ie.useRef(null),ve=sn=>{sn&&sn.target&&sn.type==="click"&&Et&&Et(sn.target.value,sn,{source:"clear"}),zt&&zt(sn)},se=sn=>{var an;document.activeElement===((an=ge.current)===null||an===void 0?void 0:an.input)&&sn.preventDefault()},Ke=sn=>{var an,xr;Et&&Et((xr=(an=ge.current)===null||an===void 0?void 0:an.input)===null||xr===void 0?void 0:xr.value,sn,{source:"input"})},bt=sn=>{sr.current||qt||Ke(sn)},Wt=typeof Fe=="boolean"?Ie.createElement(Je.Z,null):null,yn=`${Tn}-button`;let bn;const cn=Fe||{},wn=cn.type&&cn.type.__ANT_BUTTON===!0;wn||cn.type==="button"?bn=(0,Ze.Tm)(cn,Object.assign({onMouseDown:se,onClick:sn=>{var an,xr;(xr=(an=cn==null?void 0:cn.props)===null||an===void 0?void 0:an.onClick)===null||xr===void 0||xr.call(an,sn),Ke(sn)},key:"enterButton"},wn?{className:yn,size:he}:{})):bn=Ie.createElement(ye.ZP,{className:yn,type:Fe?"primary":void 0,size:he,disabled:Xt,key:"enterButton",onMouseDown:se,onClick:Ke,loading:qt,icon:Wt},Fe),Dt&&(bn=[bn,(0,Ze.Tm)(Dt,{key:"addonAfter"})]);const Tt=fe()(Tn,{[`${Tn}-rtl`]:pn==="rtl",[`${Tn}-${he}`]:!!he,[`${Tn}-with-button`]:!!Fe},kt),nn=sn=>{sr.current=!0,Yt==null||Yt(sn)},fn=sn=>{sr.current=!1,Vn==null||Vn(sn)};return Ie.createElement(pe.Z,Object.assign({ref:(0,Ue.sQ)(ge,ft),onPressEnter:bt},Pn,{size:he,onCompositionStart:nn,onCompositionEnd:fn,prefixCls:Oe,addonAfter:bn,suffix:et,onChange:ve,className:Tt,disabled:Xt}))}),_e=te(96330);const Me=pe.Z;Me.Group=Se,Me.Search=ct,Me.TextArea=_e.Z,Me.Password=ht;var pt=Me},47673:function(In,Ut,te){"use strict";te.d(Ut,{M1:function(){return de},TM:function(){return Ze},Xy:function(){return Se},bi:function(){return Xe},e5:function(){return Je},ik:function(){return Pe},nz:function(){return xe},pU:function(){return Be},s7:function(){return Ue},x0:function(){return De}});var E=te(14747),fe=te(80110),Ie=te(45503),Te=te(67968);const xe=ye=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:ye,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Be=ye=>({borderColor:ye.hoverBorderColor}),de=ye=>({borderColor:ye.activeBorderColor,boxShadow:ye.activeShadow,outline:0}),Se=ye=>({color:ye.colorTextDisabled,backgroundColor:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Be((0,Ie.TS)(ye,{hoverBorderColor:ye.colorBorder})))}),pe=ye=>{const{paddingBlockLG:Ee,fontSizeLG:Ye,lineHeightLG:Ne,borderRadiusLG:ot,paddingInlineLG:ct}=ye;return{padding:`${Ee}px ${ct}px`,fontSize:Ye,lineHeight:Ne,borderRadius:ot}},De=ye=>({padding:`${ye.paddingBlockSM}px ${ye.paddingInlineSM}px`,borderRadius:ye.borderRadiusSM}),Xe=(ye,Ee)=>{const{componentCls:Ye,colorError:Ne,colorWarning:ot,errorActiveShadow:ct,warningActiveShadow:_e,colorErrorBorderHover:Me,colorWarningBorderHover:pt}=ye;return{[`&-status-error:not(${Ee}-disabled):not(${Ee}-borderless)${Ee}`]:{borderColor:Ne,"&:hover":{borderColor:Me},"&:focus, &-focused":Object.assign({},de((0,Ie.TS)(ye,{activeBorderColor:Ne,activeShadow:ct}))),[`${Ye}-prefix, ${Ye}-suffix`]:{color:Ne}},[`&-status-warning:not(${Ee}-disabled):not(${Ee}-borderless)${Ee}`]:{borderColor:ot,"&:hover":{borderColor:pt},"&:focus, &-focused":Object.assign({},de((0,Ie.TS)(ye,{activeBorderColor:ot,activeShadow:_e}))),[`${Ye}-prefix, ${Ye}-suffix`]:{color:ot}}}},Pe=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}`},xe(ye.colorTextPlaceholder)),{"&:hover":Object.assign({},Be(ye)),"&:focus, &-focused":Object.assign({},de(ye)),"&-disabled, &[disabled]":Object.assign({},Se(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({},pe(ye)),"&-sm":Object.assign({},De(ye)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ue=ye=>{const{componentCls:Ee,antCls:Ye}=ye;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:ye.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ee}, &-lg > ${Ee}-group-addon`]:Object.assign({},pe(ye)),[`&-sm ${Ee}, &-sm > ${Ee}-group-addon`]:Object.assign({},De(ye)),[`&-lg ${Ye}-select-single ${Ye}-select-selector`]:{height:ye.controlHeightLG},[`&-sm ${Ye}-select-single ${Ye}-select-selector`]:{height:ye.controlHeightSM},[`> ${Ee}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ee}-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,[`${Ye}-select`]:{margin:`-${ye.paddingBlock+1}px -${ye.paddingInline}px`,[`&${Ye}-select-single:not(${Ye}-select-customize-input)`]:{[`${Ye}-select-selector`]:{backgroundColor:"inherit",border:`${ye.lineWidth}px ${ye.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ye}-select-selector`]:{color:ye.colorPrimary}}},[`${Ye}-cascader-picker`]:{margin:`-9px -${ye.paddingInline}px`,backgroundColor:"transparent",[`${Ye}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ee}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ee}-search-with-button &`]:{zIndex:0}}},[`> ${Ee}:first-child, ${Ee}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ye}-select ${Ye}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ee}-affix-wrapper`]:{[`&:not(:first-child) ${Ee}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ee}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ee}:last-child, ${Ee}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ye}-select ${Ye}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ee}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ee}-search &`]:{borderStartStartRadius:ye.borderRadius,borderEndStartRadius:ye.borderRadius}},[`&:not(:first-child), ${Ee}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ee}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,E.dF)()),{[`${Ee}-group-addon, ${Ee}-group-wrap, > ${Ee}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:ye.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Ee}-affix-wrapper,
|
|
|
& > ${Ee}-number-affix-wrapper,
|
|
|
& > ${Ye}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-ye.lineWidth,borderInlineEndWidth:ye.lineWidth},[`${Ee}`]:{float:"none"},[`& > ${Ye}-select > ${Ye}-select-selector,
|
|
|
& > ${Ye}-select-auto-complete ${Ee},
|
|
|
& > ${Ye}-cascader-picker ${Ee},
|
|
|
& > ${Ee}-group-wrapper ${Ee}`]:{borderInlineEndWidth:ye.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ye}-select-focused`]:{zIndex:1},[`& > ${Ye}-select > ${Ye}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Ye}-select:first-child > ${Ye}-select-selector,
|
|
|
& > ${Ye}-select-auto-complete:first-child ${Ee},
|
|
|
& > ${Ye}-cascader-picker:first-child ${Ee}`]:{borderStartStartRadius:ye.borderRadius,borderEndStartRadius:ye.borderRadius},[`& > *:last-child,
|
|
|
& > ${Ye}-select:last-child > ${Ye}-select-selector,
|
|
|
& > ${Ye}-cascader-picker:last-child ${Ee},
|
|
|
& > ${Ye}-cascader-picker-focused:last-child ${Ee}`]:{borderInlineEndWidth:ye.lineWidth,borderStartEndRadius:ye.borderRadius,borderEndEndRadius:ye.borderRadius},[`& > ${Ye}-select-auto-complete ${Ee}`]:{verticalAlign:"top"},[`${Ee}-group-wrapper + ${Ee}-group-wrapper`]:{marginInlineStart:-ye.lineWidth,[`${Ee}-affix-wrapper`]:{borderRadius:0}},[`${Ee}-group-wrapper:not(:last-child)`]:{[`&${Ee}-search > ${Ee}-group`]:{[`& > ${Ee}-group-addon > ${Ee}-search-button`]:{borderRadius:0},[`& > ${Ee}`]:{borderStartStartRadius:ye.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ye.borderRadius}}}})}},rt=ye=>{const{componentCls:Ee,controlHeightSM:Ye,lineWidth:Ne}=ye,ct=(Ye-Ne*2-16)/2;return{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,E.Wf)(ye)),Pe(ye)),Xe(ye,Ee)),{'&[type="color"]':{height:ye.controlHeight,[`&${Ee}-lg`]:{height:ye.controlHeightLG},[`&${Ee}-sm`]:{height:Ye,paddingTop:ct,paddingBottom:ct}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},qe=ye=>{const{componentCls:Ee}=ye;return{[`${Ee}-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`}}}},He=ye=>{const{componentCls:Ee,inputAffixPadding:Ye,colorTextDescription:Ne,motionDurationSlow:ot,colorIcon:ct,colorIconHover:_e,iconCls:Me}=ye;return{[`${Ee}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pe(ye)),{display:"inline-flex",[`&:not(${Ee}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Be(ye)),{zIndex:1,[`${Ee}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ee}[disabled]`]:{background:"transparent"}},[`> input${Ee}`]:{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"'},[`${Ee}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:ye.paddingXS}},"&-show-count-suffix":{color:Ne},"&-show-count-has-suffix":{marginInlineEnd:ye.paddingXXS},"&-prefix":{marginInlineEnd:Ye},"&-suffix":{marginInlineStart:Ye}}}),qe(ye)),{[`${Me}${Ee}-password-icon`]:{color:ct,cursor:"pointer",transition:`all ${ot}`,"&:hover":{color:_e}}}),Xe(ye,`${Ee}-affix-wrapper`))}},be=ye=>{const{componentCls:Ee,colorError:Ye,colorWarning:Ne,borderRadiusLG:ot,borderRadiusSM:ct}=ye;return{[`${Ee}-group`]:Object.assign(Object.assign(Object.assign({},(0,E.Wf)(ye)),Ue(ye)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ee}-group-addon`]:{borderRadius:ot,fontSize:ye.fontSizeLG}},"&-sm":{[`${Ee}-group-addon`]:{borderRadius:ct}},"&-status-error":{[`${Ee}-group-addon`]:{color:Ye,borderColor:Ye}},"&-status-warning":{[`${Ee}-group-addon`]:{color:Ne,borderColor:Ne}},"&-disabled":{[`${Ee}-group-addon`]:Object.assign({},Se(ye))},[`&:not(${Ee}-compact-first-item):not(${Ee}-compact-last-item)${Ee}-compact-item`]:{[`${Ee}, ${Ee}-group-addon`]:{borderRadius:0}},[`&:not(${Ee}-compact-last-item)${Ee}-compact-first-item`]:{[`${Ee}, ${Ee}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ee}-compact-first-item)${Ee}-compact-last-item`]:{[`${Ee}, ${Ee}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Qe=ye=>{const{componentCls:Ee,antCls:Ye}=ye,Ne=`${Ee}-search`;return{[Ne]:{[`${Ee}`]:{"&:hover, &:focus":{borderColor:ye.colorPrimaryHover,[`+ ${Ee}-group-addon ${Ne}-button:not(${Ye}-btn-primary)`]:{borderInlineStartColor:ye.colorPrimaryHover}}},[`${Ee}-affix-wrapper`]:{borderRadius:0},[`${Ee}-lg`]:{lineHeight:ye.lineHeightLG-2e-4},[`> ${Ee}-group`]:{[`> ${Ee}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ne}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:ye.borderRadius,borderEndEndRadius:ye.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ne}-button:not(${Ye}-btn-primary)`]:{color:ye.colorTextDescription,"&:hover":{color:ye.colorPrimaryHover},"&:active":{color:ye.colorPrimaryActive},[`&${Ye}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ne}-button`]:{height:ye.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ne}-button`]:{height:ye.controlHeightLG},[`&-small ${Ne}-button`]:{height:ye.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ee}-compact-item`]:{[`&:not(${Ee}-compact-last-item)`]:{[`${Ee}-group-addon`]:{[`${Ee}-search-button`]:{marginInlineEnd:-ye.lineWidth,borderRadius:0}}},[`&:not(${Ee}-compact-first-item)`]:{[`${Ee},${Ee}-affix-wrapper`]:{borderRadius:0}},[`> ${Ee}-group-addon ${Ee}-search-button,
|
|
|
> ${Ee},
|
|
|
${Ee}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ee}-affix-wrapper-focused`]:{zIndex:2}}}}},ht=ye=>{const{componentCls:Ee,paddingLG:Ye}=ye,Ne=`${Ee}-textarea`;return{[Ne]:{position:"relative","&-show-count":{[`> ${Ee}`]:{height:"100%"},[`${Ee}-data-count`]:{position:"absolute",bottom:-ye.fontSize*ye.lineHeight,insetInlineEnd:0,color:ye.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ee}`]:{paddingInlineEnd:Ye}},[`&-affix-wrapper${Ne}-has-feedback`]:{[`${Ee}`]:{paddingInlineEnd:Ye}},[`&-affix-wrapper${Ee}-affix-wrapper`]:{padding:0,[`> textarea${Ee}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ee}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ee}-clear-icon`]:{position:"absolute",insetInlineEnd:ye.paddingXS,insetBlockStart:ye.paddingXS},[`${Ne}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ye.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Je(ye){return(0,Ie.TS)(ye,{inputAffixPadding:ye.paddingXXS})}const Ze=ye=>{const{controlHeight:Ee,fontSize:Ye,lineHeight:Ne,lineWidth:ot,controlHeightSM:ct,controlHeightLG:_e,fontSizeLG:Me,lineHeightLG:pt,paddingSM:$e,controlPaddingHorizontalSM:ft,controlPaddingHorizontal:We,colorFillAlter:gt,colorPrimaryHover:kt,controlOutlineWidth:xt,controlOutline:et,colorErrorOutline:Fe,colorWarningOutline:Dt}=ye;return{paddingBlock:Math.max(Math.round((Ee-Ye*Ne)/2*10)/10-ot,3),paddingBlockSM:Math.max(Math.round((ct-Ye*Ne)/2*10)/10-ot,0),paddingBlockLG:Math.ceil((_e-Me*pt)/2*10)/10-ot,paddingInline:$e-ot,paddingInlineSM:ft-ot,paddingInlineLG:We-ot,addonBg:gt,activeBorderColor:kt,hoverBorderColor:kt,activeShadow:`0 0 0 ${xt}px ${et}`,errorActiveShadow:`0 0 0 ${xt}px ${Fe}`,warningActiveShadow:`0 0 0 ${xt}px ${Dt}`}};Ut.ZP=(0,Te.Z)("Input",ye=>{const Ee=(0,Ie.TS)(ye,Je(ye));return[rt(Ee),ht(Ee),He(Ee),be(Ee),Qe(Ee),(0,fe.c)(Ee)]},Ze)},71322:function(In,Ut,te){"use strict";te.d(Ut,{D:function(){return ht},Z:function(){return ye}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(Ye,Ne){return fe.createElement(xe.Z,(0,E.Z)({},Ye,{ref:Ne,icon:Te}))},de=fe.forwardRef(Be),Se=te(22751),pe=te(91034),De=te(94184),Xe=te.n(De),Pe=te(10366),rt=Ee=>!isNaN(parseFloat(Ee))&&isFinite(Ee),qe=te(53124),He=te(84321),be=function(Ee,Ye){var Ne={};for(var ot in Ee)Object.prototype.hasOwnProperty.call(Ee,ot)&&Ye.indexOf(ot)<0&&(Ne[ot]=Ee[ot]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ot=Object.getOwnPropertySymbols(Ee);ct<ot.length;ct++)Ye.indexOf(ot[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ot[ct])&&(Ne[ot[ct]]=Ee[ot[ct]]);return Ne};const Qe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ht=fe.createContext({}),Je=(()=>{let Ee=0;return function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ee+=1,`${Ye}${Ee}`}})();var ye=fe.forwardRef((Ee,Ye)=>{const{prefixCls:Ne,className:ot,trigger:ct,children:_e,defaultCollapsed:Me=!1,theme:pt="dark",style:$e={},collapsible:ft=!1,reverseArrow:We=!1,width:gt=200,collapsedWidth:kt=80,zeroWidthTriggerStyle:xt,breakpoint:et,onCollapse:Fe,onBreakpoint:Dt}=Ee,qt=be(Ee,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Xt}=(0,fe.useContext)(He.Gs),[Et,zt]=(0,fe.useState)("collapsed"in Ee?Ee.collapsed:Me),[Yt,Vn]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in Ee&&zt(Ee.collapsed)},[Ee.collapsed]);const Pn=(me,he)=>{"collapsed"in Ee||zt(me),Fe==null||Fe(me,he)},_t=(0,fe.useRef)();_t.current=me=>{Vn(me.matches),Dt==null||Dt(me.matches),Et!==me.matches&&Pn(me.matches,"responsive")},(0,fe.useEffect)(()=>{function me(ge){return _t.current(ge)}let he;if(typeof window!="undefined"){const{matchMedia:ge}=window;if(ge&&et&&et in Qe){he=ge(`(max-width: ${Qe[et]})`);try{he.addEventListener("change",me)}catch(ve){he.addListener(me)}me(he)}}return()=>{try{he==null||he.removeEventListener("change",me)}catch(ge){he==null||he.removeListener(me)}}},[et]),(0,fe.useEffect)(()=>{const me=Je("ant-sider-");return Xt.addSider(me),()=>Xt.removeSider(me)},[]);const pn=()=>{Pn(!Et,"clickTrigger")},{getPrefixCls:sr}=(0,fe.useContext)(qe.E_),Tn=()=>{const me=sr("layout-sider",Ne),he=(0,Pe.Z)(qt,["collapsed"]),ge=Et?kt:gt,ve=rt(ge)?`${ge}px`:String(ge),se=parseFloat(String(kt||0))===0?fe.createElement("span",{onClick:pn,className:Xe()(`${me}-zero-width-trigger`,`${me}-zero-width-trigger-${We?"right":"left"}`),style:xt},ct||fe.createElement(de,null)):null,Wt={expanded:We?fe.createElement(pe.Z,null):fe.createElement(Se.Z,null),collapsed:We?fe.createElement(Se.Z,null):fe.createElement(pe.Z,null)}[Et?"collapsed":"expanded"],yn=ct!==null?se||fe.createElement("div",{className:`${me}-trigger`,onClick:pn,style:{width:ve}},ct||Wt):null,bn=Object.assign(Object.assign({},$e),{flex:`0 0 ${ve}`,maxWidth:ve,minWidth:ve,width:ve}),cn=Xe()(me,`${me}-${pt}`,{[`${me}-collapsed`]:!!Et,[`${me}-has-trigger`]:ft&&ct!==null&&!se,[`${me}-below`]:!!Yt,[`${me}-zero-width`]:parseFloat(ve)===0},ot);return fe.createElement("aside",Object.assign({className:cn},he,{style:bn,ref:Ye}),fe.createElement("div",{className:`${me}-children`},_e),ft||Yt&&se?yn:null)},Oe=fe.useMemo(()=>({siderCollapsed:Et}),[Et]);return fe.createElement(ht.Provider,{value:Oe},Tn())})},84321:function(In,Ut,te){"use strict";te.d(Ut,{VY:function(){return Je},$_:function(){return ht},h4:function(){return Qe},Gs:function(){return Ue},ZP:function(){return Ze}});var E=te(74902),fe=te(94184),Ie=te.n(fe),Te=te(10366),xe=te(67294),Be=te(53124),de=te(67968),pe=ye=>{const{componentCls:Ee,bodyBg:Ye,lightSiderBg:Ne,lightTriggerBg:ot,lightTriggerColor:ct}=ye;return{[`${Ee}-sider-light`]:{background:Ne,[`${Ee}-sider-trigger`]:{color:ct,background:ot},[`${Ee}-sider-zero-width-trigger`]:{color:ct,background:ot,border:`1px solid ${Ye}`,borderInlineStart:0}}}};const De=ye=>{const{antCls:Ee,componentCls:Ye,colorText:Ne,triggerColor:ot,footerBg:ct,triggerBg:_e,headerHeight:Me,headerPadding:pt,headerColor:$e,footerPadding:ft,triggerHeight:We,zeroTriggerHeight:gt,zeroTriggerWidth:kt,motionDurationMid:xt,motionDurationSlow:et,fontSize:Fe,borderRadius:Dt,bodyBg:qt,headerBg:Xt,siderBg:Et}=ye;return{[Ye]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:qt,"&, *":{boxSizing:"border-box"},[`&${Ye}-has-sider`]:{flexDirection:"row",[`> ${Ye}, > ${Ye}-content`]:{width:0}},[`${Ye}-header, &${Ye}-footer`]:{flex:"0 0 auto"},[`${Ye}-sider`]:{position:"relative",minWidth:0,background:Et,transition:`all ${xt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ee}-menu${Ee}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:We},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:We,color:ot,lineHeight:`${We}px`,textAlign:"center",background:_e,cursor:"pointer",transition:`all ${xt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-kt,zIndex:1,width:kt,height:gt,color:ot,fontSize:ye.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Et,borderStartStartRadius:0,borderStartEndRadius:Dt,borderEndEndRadius:Dt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${et} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${et}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-kt,borderStartStartRadius:Dt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Dt}}}}},pe(ye)),{"&-rtl":{direction:"rtl"}}),[`${Ye}-header`]:{height:Me,padding:pt,color:$e,lineHeight:`${Me}px`,background:Xt,[`${Ee}-menu`]:{lineHeight:"inherit"}},[`${Ye}-footer`]:{padding:ft,color:Ne,fontSize:Fe,background:ct},[`${Ye}-content`]:{flex:"auto",minHeight:0}}};var Xe=(0,de.Z)("Layout",ye=>[De(ye)],ye=>{const{colorBgLayout:Ee,controlHeight:Ye,controlHeightLG:Ne,colorText:ot,controlHeightSM:ct,marginXXS:_e,colorTextLightSolid:Me,colorBgContainer:pt}=ye,$e=Ne*1.25;return{colorBgHeader:"#001529",colorBgBody:Ee,colorBgTrigger:"#002140",bodyBg:Ee,headerBg:"#001529",headerHeight:Ye*2,headerPadding:`0 ${$e}px`,headerColor:ot,footerPadding:`${ct}px ${$e}px`,footerBg:Ee,siderBg:"#001529",triggerHeight:Ne+_e*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:Ne,zeroTriggerHeight:Ne,lightSiderBg:pt,lightTriggerBg:pt,lightTriggerColor:ot}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Pe=function(ye,Ee){var Ye={};for(var Ne in ye)Object.prototype.hasOwnProperty.call(ye,Ne)&&Ee.indexOf(Ne)<0&&(Ye[Ne]=ye[Ne]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ne=Object.getOwnPropertySymbols(ye);ot<Ne.length;ot++)Ee.indexOf(Ne[ot])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ne[ot])&&(Ye[Ne[ot]]=ye[Ne[ot]]);return Ye};const Ue=xe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function rt(ye){let{suffixCls:Ee,tagName:Ye,displayName:Ne}=ye;return ot=>xe.forwardRef((_e,Me)=>xe.createElement(ot,Object.assign({ref:Me,suffixCls:Ee,tagName:Ye},_e)))}const qe=xe.forwardRef((ye,Ee)=>{const{prefixCls:Ye,suffixCls:Ne,className:ot,tagName:ct}=ye,_e=Pe(ye,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=xe.useContext(Be.E_),pt=Me("layout",Ye),[$e,ft]=Xe(pt),We=Ne?`${pt}-${Ne}`:pt;return $e(xe.createElement(ct,Object.assign({className:Ie()(Ye||We,ot,ft),ref:Ee},_e)))}),He=xe.forwardRef((ye,Ee)=>{const{direction:Ye}=xe.useContext(Be.E_),[Ne,ot]=xe.useState([]),{prefixCls:ct,className:_e,rootClassName:Me,children:pt,hasSider:$e,tagName:ft,style:We}=ye,gt=Pe(ye,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),kt=(0,Te.Z)(gt,["suffixCls"]),{getPrefixCls:xt,layout:et}=xe.useContext(Be.E_),Fe=xt("layout",ct),[Dt,qt]=Xe(Fe),Xt=Ie()(Fe,{[`${Fe}-has-sider`]:typeof $e=="boolean"?$e:Ne.length>0,[`${Fe}-rtl`]:Ye==="rtl"},et==null?void 0:et.className,_e,Me,qt),Et=xe.useMemo(()=>({siderHook:{addSider:zt=>{ot(Yt=>[].concat((0,E.Z)(Yt),[zt]))},removeSider:zt=>{ot(Yt=>Yt.filter(Vn=>Vn!==zt))}}}),[]);return Dt(xe.createElement(Ue.Provider,{value:Et},xe.createElement(ft,Object.assign({ref:Ee,className:Xt,style:Object.assign(Object.assign({},et==null?void 0:et.style),We)},kt),pt)))}),be=rt({tagName:"div",displayName:"Layout"})(He),Qe=rt({suffixCls:"header",tagName:"header",displayName:"Header"})(qe),ht=rt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(qe),Je=rt({suffixCls:"content",tagName:"main",displayName:"Content"})(qe);var Ze=be},76529:function(In,Ut,te){"use strict";te.d(Ut,{J:function(){return Be}});var E=te(67294),fe=te(4173),Ie=te(60276),Te=function(de,Se){var pe={};for(var De in de)Object.prototype.hasOwnProperty.call(de,De)&&Se.indexOf(De)<0&&(pe[De]=de[De]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,De=Object.getOwnPropertySymbols(de);Xe<De.length;Xe++)Se.indexOf(De[Xe])<0&&Object.prototype.propertyIsEnumerable.call(de,De[Xe])&&(pe[De[Xe]]=de[De[Xe]]);return pe};const xe=E.createContext(null),Be=E.forwardRef((de,Se)=>{const{children:pe}=de,De=Te(de,["children"]),Xe=E.useContext(xe),Pe=E.useMemo(()=>Object.assign(Object.assign({},Xe),De),[Xe,De.prefixCls,De.mode,De.selectable]);return E.createElement(xe.Provider,{value:Pe},E.createElement(fe.BR,null,(0,Ie.supportNodeRef)(pe)?E.cloneElement(pe,{ref:Se}):pe))});Ut.Z=xe},68508:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return me}});var E=te(78595),fe=te(67294),Ie=te(71322),Te=te(94184),xe=te.n(Te),Be=te(53124),de=function(he,ge){var ve={};for(var se in he)Object.prototype.hasOwnProperty.call(he,se)&&ge.indexOf(se)<0&&(ve[se]=he[se]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,se=Object.getOwnPropertySymbols(he);Ke<se.length;Ke++)ge.indexOf(se[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,se[Ke])&&(ve[se[Ke]]=he[se[Ke]]);return ve},pe=he=>{const{prefixCls:ge,className:ve,dashed:se}=he,Ke=de(he,["prefixCls","className","dashed"]),{getPrefixCls:bt}=fe.useContext(Be.E_),Wt=bt("menu",ge),yn=xe()({[`${Wt}-item-divider-dashed`]:!!se},ve);return fe.createElement(E.iz,Object.assign({className:yn},Ke))},De=te(37419),Xe=te(10366),Pe=te(83062),Ue=te(96159),qe=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),be=he=>{var ge;const{className:ve,children:se,icon:Ke,title:bt,danger:Wt}=he,{prefixCls:yn,firstLevel:bn,direction:cn,disableMenuItemTitleTooltip:wn,inlineCollapsed:Tt}=fe.useContext(qe),nn=Vt=>{const cr=fe.createElement("span",{className:`${yn}-title-content`},se);return(!Ke||(0,Ue.l$)(se)&&se.type==="span")&&se&&Vt&&bn&&typeof se=="string"?fe.createElement("div",{className:`${yn}-inline-collapsed-noicon`},se.charAt(0)):cr},{siderCollapsed:fn}=fe.useContext(Ie.D);let sn=bt;typeof bt=="undefined"?sn=bn?se:"":bt===!1&&(sn="");const an={title:sn};!fn&&!Tt&&(an.title=null,an.open=!1);const xr=(0,De.Z)(se).length;let Lt=fe.createElement(E.ck,Object.assign({},(0,Xe.Z)(he,["title","icon","danger"]),{className:xe()({[`${yn}-item-danger`]:Wt,[`${yn}-item-only-child`]:(Ke?xr+1:xr)===1},ve),title:typeof bt=="string"?bt:void 0}),(0,Ue.Tm)(Ke,{className:xe()((0,Ue.l$)(Ke)?(ge=Ke.props)===null||ge===void 0?void 0:ge.className:"",`${yn}-item-icon`)}),nn(Tt));return wn||(Lt=fe.createElement(Pe.Z,Object.assign({},an,{placement:cn==="rtl"?"left":"right",overlayClassName:`${yn}-inline-collapsed-tooltip`}),Lt)),Lt},ht=he=>{var ge;const{popupClassName:ve,icon:se,title:Ke,theme:bt}=he,Wt=fe.useContext(qe),{prefixCls:yn,inlineCollapsed:bn,theme:cn}=Wt,wn=(0,E.Xl)();let Tt;if(!se)Tt=bn&&!wn.length&&Ke&&typeof Ke=="string"?fe.createElement("div",{className:`${yn}-inline-collapsed-noicon`},Ke.charAt(0)):fe.createElement("span",{className:`${yn}-title-content`},Ke);else{const fn=(0,Ue.l$)(Ke)&&Ke.type==="span";Tt=fe.createElement(fe.Fragment,null,(0,Ue.Tm)(se,{className:xe()((0,Ue.l$)(se)?(ge=se.props)===null||ge===void 0?void 0:ge.className:"",`${yn}-item-icon`)}),fn?Ke:fe.createElement("span",{className:`${yn}-title-content`},Ke))}const nn=fe.useMemo(()=>Object.assign(Object.assign({},Wt),{firstLevel:!1}),[Wt]);return fe.createElement(qe.Provider,{value:nn},fe.createElement(E.Wd,Object.assign({},(0,Xe.Z)(he,["icon"]),{title:Tt,popupClassName:xe()(yn,ve,`${yn}-${bt||cn}`)})))},Je=te(25877),Ze=te(60276),ye=te(33603),Ee=te(76529),Ye=function(he,ge){var ve={};for(var se in he)Object.prototype.hasOwnProperty.call(he,se)&&ge.indexOf(se)<0&&(ve[se]=he[se]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,se=Object.getOwnPropertySymbols(he);Ke<se.length;Ke++)ge.indexOf(se[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,se[Ke])&&(ve[se[Ke]]=he[se[Ke]]);return ve};function Ne(he){return(he||[]).map((ge,ve)=>{if(ge&&typeof ge=="object"){const se=ge,{label:Ke,children:bt,key:Wt,type:yn}=se,bn=Ye(se,["label","children","key","type"]),cn=Wt!=null?Wt:`tmp-${ve}`;return bt||yn==="group"?yn==="group"?fe.createElement(E.BW,Object.assign({key:cn},bn,{title:Ke}),Ne(bt)):fe.createElement(ht,Object.assign({key:cn},bn,{title:Ke}),Ne(bt)):yn==="divider"?fe.createElement(pe,Object.assign({key:cn},bn)):fe.createElement(be,Object.assign({key:cn},bn),Ke)}return null}).filter(ge=>ge)}function ot(he){return fe.useMemo(()=>he&&Ne(he),[he])}var ct=te(84780),_e=te(14747),Me=te(33507),pt=te(67771),$e=te(50438),ft=te(67968),We=te(45503),kt=he=>{const{componentCls:ge,motionDurationSlow:ve,horizontalLineHeight:se,colorSplit:Ke,lineWidth:bt,lineType:Wt,itemPaddingInline:yn}=he;return{[`${ge}-horizontal`]:{lineHeight:se,border:0,borderBottom:`${bt}px ${Wt} ${Ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ge}-item, ${ge}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yn},[`> ${ge}-item:hover,
|
|
|
> ${ge}-item-active,
|
|
|
> ${ge}-submenu ${ge}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ge}-item, ${ge}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${ge}-submenu-arrow`]:{display:"none"}}}},et=he=>{let{componentCls:ge,menuArrowOffset:ve}=he;return{[`${ge}-rtl`]:{direction:"rtl"},[`${ge}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ge}-rtl${ge}-vertical,
|
|
|
${ge}-submenu-rtl ${ge}-vertical`]:{[`${ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const Fe=he=>Object.assign({},(0,_e.oN)(he));var qt=(he,ge)=>{const{componentCls:ve,itemColor:se,itemSelectedColor:Ke,groupTitleColor:bt,itemBg:Wt,subMenuItemBg:yn,itemSelectedBg:bn,activeBarHeight:cn,activeBarWidth:wn,activeBarBorderWidth:Tt,motionDurationSlow:nn,motionEaseInOut:fn,motionEaseOut:sn,itemPaddingInline:an,motionDurationMid:xr,itemHoverColor:Lt,lineType:Vt,colorSplit:cr,itemDisabledColor:En,dangerItemColor:en,dangerItemHoverColor:Fr,dangerItemSelectedColor:Ur,dangerItemActiveBg:ai,dangerItemSelectedBg:ei,itemHoverBg:Mi,itemActiveBg:ci,menuSubMenuBg:Qn,horizontalItemSelectedColor:Or,horizontalItemSelectedBg:Hr,horizontalItemBorderRadius:vi,horizontalItemHoverBg:Zi,popupBg:$t}=he;return{[`${ve}-${ge}, ${ve}-${ge} > ${ve}`]:{color:se,background:Wt,[`&${ve}-root:focus-visible`]:Object.assign({},Fe(he)),[`${ve}-item-group-title`]:{color:bt},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:Ke}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${En} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:Lt}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:Mi},"&:active":{backgroundColor:ci}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:Mi},"&:active":{backgroundColor:ci}}},[`${ve}-item-danger`]:{color:en,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:Fr}},[`&${ve}-item:active`]:{background:ai}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:Ke,[`&${ve}-item-danger`]:{color:Ur},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:bn,[`&${ve}-item-danger`]:{backgroundColor:ei}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},Fe(he))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:Qn},[`&${ve}-popup > ${ve}`]:{backgroundColor:$t},[`&${ve}-horizontal`]:Object.assign(Object.assign({},ge==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-submenu`]:{top:Tt,marginTop:-Tt,marginBottom:0,borderRadius:vi,"&::after":{position:"absolute",insetInline:an,bottom:0,borderBottom:`${cn}px solid transparent`,transition:`border-color ${nn} ${fn}`,content:'""'},"&:hover, &-active, &-open":{background:Zi,"&::after":{borderBottomWidth:cn,borderBottomColor:Or}},"&-selected":{color:Or,backgroundColor:Hr,"&:hover":{backgroundColor:Hr},"&::after":{borderBottomWidth:cn,borderBottomColor:Or}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${Tt}px ${Vt} ${cr}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:yn},[`${ve}-item, ${ve}-submenu-title`]:Tt&&wn?{width:`calc(100% + ${Tt}px)`}:{},[`${ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wn}px solid ${Ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${xr} ${sn}`,`opacity ${xr} ${sn}`].join(","),content:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:Ur}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${xr} ${fn}`,`opacity ${xr} ${fn}`].join(",")}}}}}};const Xt=he=>{const{componentCls:ge,itemHeight:ve,itemMarginInline:se,padding:Ke,menuArrowSize:bt,marginXS:Wt,itemMarginBlock:yn}=he,bn=Ke+bt+Wt;return{[`${ge}-item`]:{position:"relative",overflow:"hidden"},[`${ge}-item, ${ge}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:Ke,overflow:"hidden",textOverflow:"ellipsis",marginInline:se,marginBlock:yn,width:`calc(100% - ${se*2}px)`},[`> ${ge}-item,
|
|
|
> ${ge}-submenu > ${ge}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${ge}-item-group-list ${ge}-submenu-title,
|
|
|
${ge}-submenu-title`]:{paddingInlineEnd:bn}}};var zt=he=>{const{componentCls:ge,iconCls:ve,itemHeight:se,colorTextLightSolid:Ke,dropdownWidth:bt,controlHeightLG:Wt,motionDurationMid:yn,motionEaseOut:bn,paddingXL:cn,itemMarginInline:wn,fontSizeLG:Tt,motionDurationSlow:nn,paddingXS:fn,boxShadowSecondary:sn,collapsedWidth:an,collapsedIconSize:xr}=he,Lt={height:se,lineHeight:`${se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ge]:{"&-inline, &-vertical":Object.assign({[`&${ge}-root`]:{boxShadow:"none"}},Xt(he))},[`${ge}-submenu-popup`]:{[`${ge}-vertical`]:Object.assign(Object.assign({},Xt(he)),{boxShadow:sn})}},{[`${ge}-submenu-popup ${ge}-vertical${ge}-sub`]:{minWidth:bt,maxHeight:`calc(100vh - ${Wt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ge}-inline`]:{width:"100%",[`&${ge}-root`]:{[`${ge}-item, ${ge}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${nn}`,`background ${nn}`,`padding ${yn} ${bn}`].join(","),[`> ${ge}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ge}-sub${ge}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ge}-submenu > ${ge}-submenu-title`]:Lt,[`& ${ge}-item-group-title`]:{paddingInlineStart:cn}},[`${ge}-item`]:Lt}},{[`${ge}-inline-collapsed`]:{width:an,[`&${ge}-root`]:{[`${ge}-item, ${ge}-submenu ${ge}-submenu-title`]:{[`> ${ge}-inline-collapsed-noicon`]:{fontSize:Tt,textAlign:"center"}}},[`> ${ge}-item,
|
|
|
> ${ge}-item-group > ${ge}-item-group-list > ${ge}-item,
|
|
|
> ${ge}-item-group > ${ge}-item-group-list > ${ge}-submenu > ${ge}-submenu-title,
|
|
|
> ${ge}-submenu > ${ge}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Tt/2}px - ${wn}px)`,textOverflow:"clip",[`
|
|
|
${ge}-submenu-arrow,
|
|
|
${ge}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${ge}-item-icon, ${ve}`]:{margin:0,fontSize:xr,lineHeight:`${se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ge}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ge}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:Ke}},[`${ge}-item-group-title`]:Object.assign(Object.assign({},_e.vS),{paddingInline:fn})}}]};const Yt=he=>{const{componentCls:ge,motionDurationSlow:ve,motionDurationMid:se,motionEaseInOut:Ke,motionEaseOut:bt,iconCls:Wt,iconSize:yn,iconMarginInlineEnd:bn}=he;return{[`${ge}-item, ${ge}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${Ke}`].join(","),[`${ge}-item-icon, ${Wt}`]:{minWidth:yn,fontSize:yn,transition:[`font-size ${se} ${bt}`,`margin ${ve} ${Ke}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:bn,opacity:1,transition:[`opacity ${ve} ${Ke}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${ge}-item-icon`]:Object.assign({},(0,_e.Ro)()),[`&${ge}-item-only-child`]:{[`> ${Wt}, > ${ge}-item-icon`]:{marginInlineEnd:0}}},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ge}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Vn=he=>{const{componentCls:ge,motionDurationSlow:ve,motionEaseInOut:se,borderRadius:Ke,menuArrowSize:bt,menuArrowOffset:Wt}=he;return{[`${ge}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:he.margin,width:bt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${se}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:bt*.6,height:bt*.15,backgroundColor:"currentcolor",borderRadius:Ke,transition:[`background ${ve} ${se}`,`transform ${ve} ${se}`,`top ${ve} ${se}`,`color ${ve} ${se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Wt})`},"&::after":{transform:`rotate(-45deg) translateY(${Wt})`}}}}},Pn=he=>{const{antCls:ge,componentCls:ve,fontSize:se,motionDurationSlow:Ke,motionDurationMid:bt,motionEaseInOut:Wt,paddingXS:yn,padding:bn,colorSplit:cn,lineWidth:wn,zIndexPopup:Tt,borderRadiusLG:nn,subMenuItemBorderRadius:fn,menuArrowSize:sn,menuArrowOffset:an,lineType:xr,menuPanelMaskInset:Lt,groupTitleLineHeight:Vt,groupTitleFontSize:cr}=he;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,_e.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(he)),(0,_e.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:he.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${yn}px ${bn}px`,fontSize:cr,lineHeight:Vt,transition:`all ${Ke}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${Ke} ${Wt}`,`background ${Ke} ${Wt}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${Ke} ${Wt}`,`background ${Ke} ${Wt}`,`padding ${bt} ${Wt}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${Ke} ${Wt}`,`padding ${Ke} ${Wt}`].join(",")},[`${ve}-title-content`]:{transition:`color ${Ke}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:cn,borderStyle:xr,borderWidth:0,borderTopWidth:wn,marginBlock:wn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Yt(he)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${se*2}px ${bn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Tt,borderRadius:nn,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Lt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Lt},"\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:he.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:he.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:he.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:he.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:nn},Yt(he)),Vn(he)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:fn},[`${ve}-submenu-title::after`]:{transition:`transform ${Ke} ${Wt}`}})}}),Vn(he)),{[`&-inline-collapsed ${ve}-submenu-arrow,
|
|
|
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${an})`},"&::after":{transform:`rotate(45deg) translateX(-${an})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${sn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${an})`},"&::before":{transform:`rotate(45deg) translateX(${an})`}}})},{[`${ge}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var _t=(he,ge)=>(0,ft.Z)("Menu",se=>{if(ge===!1)return[];const{colorBgElevated:Ke,colorPrimary:bt,colorTextLightSolid:Wt,controlHeightLG:yn,fontSize:bn,darkItemColor:cn,darkDangerItemColor:wn,darkItemBg:Tt,darkSubMenuItemBg:nn,darkItemSelectedColor:fn,darkItemSelectedBg:sn,darkDangerItemSelectedBg:an,darkItemHoverBg:xr,darkGroupTitleColor:Lt,darkItemHoverColor:Vt,darkItemDisabledColor:cr,darkDangerItemHoverColor:En,darkDangerItemSelectedColor:en,darkDangerItemActiveBg:Fr}=se,Ur=bn/7*5,ai=(0,We.TS)(se,{menuArrowSize:Ur,menuHorizontalHeight:yn*1.15,menuArrowOffset:`${Ur*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ke}),ei=(0,We.TS)(ai,{itemColor:cn,itemHoverColor:Vt,groupTitleColor:Lt,itemSelectedColor:fn,itemBg:Tt,popupBg:Tt,subMenuItemBg:nn,itemActiveBg:"transparent",itemSelectedBg:sn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:xr,itemDisabledColor:cr,dangerItemColor:wn,dangerItemHoverColor:En,dangerItemSelectedColor:en,dangerItemActiveBg:Fr,dangerItemSelectedBg:an,menuSubMenuBg:nn,horizontalItemSelectedColor:Wt,horizontalItemSelectedBg:bt});return[Pn(ai),kt(ai),zt(ai),qt(ai,"light"),qt(ei,"dark"),et(ai),(0,Me.Z)(ai),(0,pt.oN)(ai,"slide-up"),(0,pt.oN)(ai,"slide-down"),(0,$e._y)(ai,"zoom-big")]},se=>{const{colorPrimary:Ke,colorError:bt,colorTextDisabled:Wt,colorErrorBg:yn,colorText:bn,colorTextDescription:cn,colorBgContainer:wn,colorFillAlter:Tt,colorFillContent:nn,lineWidth:fn,lineWidthBold:sn,controlItemBgActive:an,colorBgTextHover:xr,controlHeightLG:Lt,lineHeight:Vt,colorBgElevated:cr,marginXXS:En,padding:en,fontSize:Fr,controlHeightSM:Ur,fontSizeLG:ai,colorTextLightSolid:ei,colorErrorHover:Mi}=se,ci=new ct.C(ei).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:se.zIndexPopupBase+50,radiusItem:se.borderRadiusLG,itemBorderRadius:se.borderRadiusLG,radiusSubMenuItem:se.borderRadiusSM,subMenuItemBorderRadius:se.borderRadiusSM,colorItemText:bn,itemColor:bn,colorItemTextHover:bn,itemHoverColor:bn,colorItemTextHoverHorizontal:Ke,horizontalItemHoverColor:Ke,colorGroupTitle:cn,groupTitleColor:cn,colorItemTextSelected:Ke,itemSelectedColor:Ke,colorItemTextSelectedHorizontal:Ke,horizontalItemSelectedColor:Ke,colorItemBg:wn,itemBg:wn,colorItemBgHover:xr,itemHoverBg:xr,colorItemBgActive:nn,itemActiveBg:an,colorSubItemBg:Tt,subMenuItemBg:Tt,colorItemBgSelected:an,itemSelectedBg:an,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:fn,activeBarBorderWidth:fn,colorItemTextDisabled:Wt,itemDisabledColor:Wt,colorDangerItemText:bt,dangerItemColor:bt,colorDangerItemTextHover:bt,dangerItemHoverColor:bt,colorDangerItemTextSelected:bt,dangerItemSelectedColor:bt,colorDangerItemBgActive:yn,dangerItemActiveBg:yn,colorDangerItemBgSelected:yn,dangerItemSelectedBg:yn,itemMarginInline:se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Lt,groupTitleLineHeight:Vt,collapsedWidth:Lt*2,popupBg:cr,itemMarginBlock:En,itemPaddingInline:en,horizontalLineHeight:`${Lt*1.15}px`,iconSize:Fr,iconMarginInlineEnd:Ur-Fr,collapsedIconSize:ai,groupTitleFontSize:Fr,darkItemDisabledColor:new ct.C(ei).setAlpha(.25).toRgbString(),darkItemColor:ci,darkDangerItemColor:bt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ei,darkItemSelectedBg:Ke,darkDangerItemSelectedBg:bt,darkItemHoverBg:"transparent",darkGroupTitleColor:ci,darkItemHoverColor:ei,darkDangerItemHoverColor:Mi,darkDangerItemSelectedColor:ei,darkDangerItemActiveBg:bt}},{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"]]})(he),pn=function(he,ge){var ve={};for(var se in he)Object.prototype.hasOwnProperty.call(he,se)&&ge.indexOf(se)<0&&(ve[se]=he[se]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,se=Object.getOwnPropertySymbols(he);Ke<se.length;Ke++)ge.indexOf(se[Ke])<0&&Object.prototype.propertyIsEnumerable.call(he,se[Ke])&&(ve[se[Ke]]=he[se[Ke]]);return ve},Tn=(0,fe.forwardRef)((he,ge)=>{var ve,se;const Ke=fe.useContext(Ee.Z),bt=Ke||{},{getPrefixCls:Wt,getPopupContainer:yn,direction:bn,menu:cn}=fe.useContext(Be.E_),wn=Wt(),{prefixCls:Tt,className:nn,style:fn,theme:sn="light",expandIcon:an,_internalDisableMenuItemTitleTooltip:xr,inlineCollapsed:Lt,siderCollapsed:Vt,items:cr,children:En,rootClassName:en,mode:Fr,selectable:Ur,onClick:ai,overflowedIndicatorPopupClassName:ei}=he,Mi=pn(he,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ci=(0,Xe.Z)(Mi,["collapsedWidth"]),Qn=ot(cr)||En;(ve=bt.validator)===null||ve===void 0||ve.call(bt,{mode:Fr});const Or=(0,Ze.useEvent)(function(){var Vr;ai==null||ai.apply(void 0,arguments),(Vr=bt.onClick)===null||Vr===void 0||Vr.call(bt)}),Hr=bt.mode||Fr,vi=Ur!=null?Ur:bt.selectable,Zi=fe.useMemo(()=>Vt!==void 0?Vt:Lt,[Lt,Vt]),$t={horizontal:{motionName:`${wn}-slide-up`},inline:(0,ye.Z)(wn),other:{motionName:`${wn}-zoom-big`}},$n=Wt("menu",Tt||bt.prefixCls),[mn,Yn]=_t($n,!Ke),Dr=xe()(`${$n}-${sn}`,cn==null?void 0:cn.className,nn);let hi;if(typeof an=="function")hi=an;else if(an===null||an===!1)hi=null;else if(bt.expandIcon===null||bt.expandIcon===!1)hi=null;else{const Vr=an!=null?an:bt.expandIcon;hi=(0,Ue.Tm)(Vr,{className:xe()(`${$n}-submenu-expand-icon`,(0,Ue.l$)(Vr)?(se=Vr.props)===null||se===void 0?void 0:se.className:"")})}const oi=fe.useMemo(()=>({prefixCls:$n,inlineCollapsed:Zi||!1,direction:bn,firstLevel:!0,theme:sn,mode:Hr,disableMenuItemTitleTooltip:xr}),[$n,Zi,bn,xr,sn]);return mn(fe.createElement(Ee.Z.Provider,{value:null},fe.createElement(qe.Provider,{value:oi},fe.createElement(E.ZP,Object.assign({getPopupContainer:yn,overflowedIndicator:fe.createElement(Je.Z,null),overflowedIndicatorPopupClassName:xe()($n,`${$n}-${sn}`,ei),mode:Hr,selectable:vi,onClick:Or},ci,{inlineCollapsed:Zi,style:Object.assign(Object.assign({},cn==null?void 0:cn.style),fn),className:Dr,prefixCls:$n,direction:bn,defaultMotions:$t,expandIcon:hi,ref:ge,rootClassName:xe()(en,Yn)}),Qn))))});const Oe=(0,fe.forwardRef)((he,ge)=>{const ve=(0,fe.useRef)(null),se=fe.useContext(Ie.D);return(0,fe.useImperativeHandle)(ge,()=>({menu:ve.current,focus:Ke=>{var bt;(bt=ve.current)===null||bt===void 0||bt.focus(Ke)}})),fe.createElement(Tn,Object.assign({ref:ve},he,se))});Oe.Item=be,Oe.SubMenu=ht,Oe.Divider=pe,Oe.ItemGroup=E.BW;var me=Oe},28452:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return wn}});var E=te(87462),fe=te(67294),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Te=Ie,xe=te(84089),Be=function(nn,fn){return fe.createElement(xe.Z,(0,E.Z)({},nn,{ref:fn,icon:Te}))},de=fe.forwardRef(Be),Se=te(81893),pe=te(22751),De=te(91034),Xe=te(94184),Pe=te.n(Xe),Ue=te(4942),rt=te(1413),qe=te(15671),He=te(43144),be=te(60136),Qe=te(51630),ht=`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`,Je=`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`,Ze="".concat(ht," ").concat(Je).split(/[\s\n]+/),ye="aria-",Ee="data-";function Ye(Tt,nn){return Tt.indexOf(nn)===0}function Ne(Tt){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn;nn===!1?fn={aria:!0,data:!0,attr:!0}:nn===!0?fn={aria:!0}:fn=(0,rt.Z)({},nn);var sn={};return Object.keys(Tt).forEach(function(an){(fn.aria&&(an==="role"||Ye(an,ye))||fn.data&&Ye(an,Ee)||fn.attr&&Ze.includes(an))&&(sn[an]=Tt[an])}),sn}var ot={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ct=ot,_e=te(81626),Me=function(Tt){(0,be.Z)(fn,Tt);var nn=(0,Qe.Z)(fn);function fn(){var sn;(0,qe.Z)(this,fn);for(var an=arguments.length,xr=new Array(an),Lt=0;Lt<an;Lt++)xr[Lt]=arguments[Lt];return sn=nn.call.apply(nn,[this].concat(xr)),sn.state={goInputText:""},sn.getValidValue=function(){var Vt=sn.state.goInputText;return!Vt||Number.isNaN(Vt)?void 0:Number(Vt)},sn.buildOptionText=function(Vt){return"".concat(Vt," ").concat(sn.props.locale.items_per_page)},sn.changeSize=function(Vt){sn.props.changeSize(Number(Vt))},sn.handleChange=function(Vt){sn.setState({goInputText:Vt.target.value})},sn.handleBlur=function(Vt){var cr=sn.props,En=cr.goButton,en=cr.quickGo,Fr=cr.rootPrefixCls,Ur=sn.state.goInputText;En||Ur===""||(sn.setState({goInputText:""}),!(Vt.relatedTarget&&(Vt.relatedTarget.className.indexOf("".concat(Fr,"-item-link"))>=0||Vt.relatedTarget.className.indexOf("".concat(Fr,"-item"))>=0))&&en(sn.getValidValue()))},sn.go=function(Vt){var cr=sn.state.goInputText;cr!==""&&(Vt.keyCode===ct.ENTER||Vt.type==="click")&&(sn.setState({goInputText:""}),sn.props.quickGo(sn.getValidValue()))},sn}return(0,He.Z)(fn,[{key:"getPageSizeOptions",value:function(){var an=this.props,xr=an.pageSize,Lt=an.pageSizeOptions;return Lt.some(function(Vt){return Vt.toString()===xr.toString()})?Lt:Lt.concat([xr.toString()]).sort(function(Vt,cr){var En=Number.isNaN(Number(Vt))?0:Number(Vt),en=Number.isNaN(Number(cr))?0:Number(cr);return En-en})}},{key:"render",value:function(){var an=this,xr=this.props,Lt=xr.pageSize,Vt=xr.locale,cr=xr.rootPrefixCls,En=xr.changeSize,en=xr.quickGo,Fr=xr.goButton,Ur=xr.selectComponentClass,ai=xr.buildOptionText,ei=xr.selectPrefixCls,Mi=xr.disabled,ci=this.state.goInputText,Qn="".concat(cr,"-options"),Or=Ur,Hr=null,vi=null,Zi=null;if(!En&&!en)return null;var $t=this.getPageSizeOptions();if(En&&Or){var $n=$t.map(function(mn,Yn){return fe.createElement(Or.Option,{key:Yn,value:mn.toString()},(ai||an.buildOptionText)(mn))});Hr=fe.createElement(Or,{disabled:Mi,prefixCls:ei,showSearch:!1,className:"".concat(Qn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Lt||$t[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Yn){return Yn.parentNode},"aria-label":Vt.page_size,defaultOpen:!1},$n)}return en&&(Fr&&(Zi=typeof Fr=="boolean"?fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Mi,className:"".concat(Qn,"-quick-jumper-button")},Vt.jump_to_confirm):fe.createElement("span",{onClick:this.go,onKeyUp:this.go},Fr)),vi=fe.createElement("div",{className:"".concat(Qn,"-quick-jumper")},Vt.jump_to,fe.createElement("input",{disabled:Mi,type:"text",value:ci,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Vt.page}),Vt.page,Zi)),fe.createElement("li",{className:"".concat(Qn)},Hr,vi)}}]),fn}(fe.Component);Me.defaultProps={pageSizeOptions:["10","20","50","100"]};var pt=Me,$e=function(nn){var fn,sn=nn.rootPrefixCls,an=nn.page,xr=nn.active,Lt=nn.className,Vt=nn.showTitle,cr=nn.onClick,En=nn.onKeyPress,en=nn.itemRender,Fr="".concat(sn,"-item"),Ur=Pe()(Fr,"".concat(Fr,"-").concat(an),(fn={},(0,Ue.Z)(fn,"".concat(Fr,"-active"),xr),(0,Ue.Z)(fn,"".concat(Fr,"-disabled"),!an),(0,Ue.Z)(fn,nn.className,Lt),fn)),ai=function(){cr(an)},ei=function(Qn){En(Qn,cr,an)},Mi=en(an,"page",fe.createElement("a",{rel:"nofollow"},an));return Mi?fe.createElement("li",{title:Vt?an.toString():null,className:Ur,onClick:ai,onKeyPress:ei,tabIndex:0},Mi):null},ft=$e;function We(){}function gt(Tt){var nn=Number(Tt);return typeof nn=="number"&&!Number.isNaN(nn)&&isFinite(nn)&&Math.floor(nn)===nn}var kt=function(nn,fn,sn){return sn};function xt(Tt,nn,fn){var sn=typeof Tt=="undefined"?nn.pageSize:Tt;return Math.floor((fn.total-1)/sn)+1}var et=function(Tt){(0,be.Z)(fn,Tt);var nn=(0,Qe.Z)(fn);function fn(sn){var an;(0,qe.Z)(this,fn),an=nn.call(this,sn),an.paginationNode=fe.createRef(),an.getJumpPrevPage=function(){return Math.max(1,an.state.current-(an.props.showLessItems?3:5))},an.getJumpNextPage=function(){return Math.min(xt(void 0,an.state,an.props),an.state.current+(an.props.showLessItems?3:5))},an.getItemIcon=function(En,en){var Fr=an.props.prefixCls,Ur=En||fe.createElement("button",{type:"button","aria-label":en,className:"".concat(Fr,"-item-link")});return typeof En=="function"&&(Ur=fe.createElement(En,(0,rt.Z)({},an.props))),Ur},an.isValid=function(En){var en=an.props.total;return gt(En)&&En!==an.state.current&>(en)&&en>0},an.shouldDisplayQuickJumper=function(){var En=an.props,en=En.showQuickJumper,Fr=En.total,Ur=an.state.pageSize;return Fr<=Ur?!1:en},an.handleKeyDown=function(En){(En.keyCode===ct.ARROW_UP||En.keyCode===ct.ARROW_DOWN)&&En.preventDefault()},an.handleKeyUp=function(En){var en=an.getValidValue(En),Fr=an.state.currentInputValue;en!==Fr&&an.setState({currentInputValue:en}),En.keyCode===ct.ENTER?an.handleChange(en):En.keyCode===ct.ARROW_UP?an.handleChange(en-1):En.keyCode===ct.ARROW_DOWN&&an.handleChange(en+1)},an.handleBlur=function(En){var en=an.getValidValue(En);an.handleChange(en)},an.changePageSize=function(En){var en=an.state.current,Fr=xt(En,an.state,an.props);en=en>Fr?Fr:en,Fr===0&&(en=an.state.current),typeof En=="number"&&("pageSize"in an.props||an.setState({pageSize:En}),"current"in an.props||an.setState({current:en,currentInputValue:en})),an.props.onShowSizeChange(en,En),"onChange"in an.props&&an.props.onChange&&an.props.onChange(en,En)},an.handleChange=function(En){var en=an.props,Fr=en.disabled,Ur=en.onChange,ai=an.state,ei=ai.pageSize,Mi=ai.current,ci=ai.currentInputValue;if(an.isValid(En)&&!Fr){var Qn=xt(void 0,an.state,an.props),Or=En;return En>Qn?Or=Qn:En<1&&(Or=1),"current"in an.props||an.setState({current:Or}),Or!==ci&&an.setState({currentInputValue:Or}),Ur(Or,ei),Or}return Mi},an.prev=function(){an.hasPrev()&&an.handleChange(an.state.current-1)},an.next=function(){an.hasNext()&&an.handleChange(an.state.current+1)},an.jumpPrev=function(){an.handleChange(an.getJumpPrevPage())},an.jumpNext=function(){an.handleChange(an.getJumpNextPage())},an.hasPrev=function(){return an.state.current>1},an.hasNext=function(){return an.state.current<xt(void 0,an.state,an.props)},an.runIfEnter=function(En,en){if(En.key==="Enter"||En.charCode===13){for(var Fr=arguments.length,Ur=new Array(Fr>2?Fr-2:0),ai=2;ai<Fr;ai++)Ur[ai-2]=arguments[ai];en.apply(void 0,Ur)}},an.runIfEnterPrev=function(En){an.runIfEnter(En,an.prev)},an.runIfEnterNext=function(En){an.runIfEnter(En,an.next)},an.runIfEnterJumpPrev=function(En){an.runIfEnter(En,an.jumpPrev)},an.runIfEnterJumpNext=function(En){an.runIfEnter(En,an.jumpNext)},an.handleGoTO=function(En){(En.keyCode===ct.ENTER||En.type==="click")&&an.handleChange(an.state.currentInputValue)},an.renderPrev=function(En){var en=an.props,Fr=en.prevIcon,Ur=en.itemRender,ai=Ur(En,"prev",an.getItemIcon(Fr,"prev page")),ei=!an.hasPrev();return(0,fe.isValidElement)(ai)?(0,fe.cloneElement)(ai,{disabled:ei}):ai},an.renderNext=function(En){var en=an.props,Fr=en.nextIcon,Ur=en.itemRender,ai=Ur(En,"next",an.getItemIcon(Fr,"next page")),ei=!an.hasNext();return(0,fe.isValidElement)(ai)?(0,fe.cloneElement)(ai,{disabled:ei}):ai};var xr=sn.onChange!==We,Lt="current"in sn;Lt&&!xr&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Vt=sn.defaultCurrent;"current"in sn&&(Vt=sn.current);var cr=sn.defaultPageSize;return"pageSize"in sn&&(cr=sn.pageSize),Vt=Math.min(Vt,xt(cr,void 0,sn)),an.state={current:Vt,currentInputValue:Vt,pageSize:cr},an}return(0,He.Z)(fn,[{key:"componentDidUpdate",value:function(an,xr){var Lt=this.props.prefixCls;if(xr.current!==this.state.current&&this.paginationNode.current){var Vt=this.paginationNode.current.querySelector(".".concat(Lt,"-item-").concat(xr.current));if(Vt&&document.activeElement===Vt){var cr;Vt==null||(cr=Vt.blur)===null||cr===void 0||cr.call(Vt)}}}},{key:"getValidValue",value:function(an){var xr=an.target.value,Lt=xt(void 0,this.state,this.props),Vt=this.state.currentInputValue,cr;return xr===""?cr=xr:Number.isNaN(Number(xr))?cr=Vt:xr>=Lt?cr=Lt:cr=Number(xr),cr}},{key:"getShowSizeChanger",value:function(){var an=this.props,xr=an.showSizeChanger,Lt=an.total,Vt=an.totalBoundaryShowSizeChanger;return typeof xr!="undefined"?xr:Lt>Vt}},{key:"render",value:function(){var an=this.props,xr=an.prefixCls,Lt=an.className,Vt=an.style,cr=an.disabled,En=an.hideOnSinglePage,en=an.total,Fr=an.locale,Ur=an.showQuickJumper,ai=an.showLessItems,ei=an.showTitle,Mi=an.showTotal,ci=an.simple,Qn=an.itemRender,Or=an.showPrevNextJumpers,Hr=an.jumpPrevIcon,vi=an.jumpNextIcon,Zi=an.selectComponentClass,$t=an.selectPrefixCls,$n=an.pageSizeOptions,mn=this.state,Yn=mn.current,Dr=mn.pageSize,hi=mn.currentInputValue;if(En===!0&&en<=Dr)return null;var oi=xt(void 0,this.state,this.props),Vr=[],Ct=null,hn=null,An=null,jn=null,Bt=null,on=Ur&&Ur.goButton,Kn=ai?1:2,Dn=Yn-1>0?Yn-1:0,rr=Yn+1<oi?Yn+1:oi,er=Ne(this.props,{aria:!0,data:!0}),Gr=Mi&&fe.createElement("li",{className:"".concat(xr,"-total-text")},Mi(en,[en===0?0:(Yn-1)*Dr+1,Yn*Dr>en?en:Yn*Dr]));if(ci){on&&(typeof on=="boolean"?Bt=fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Fr.jump_to_confirm):Bt=fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},on),Bt=fe.createElement("li",{title:ei?"".concat(Fr.jump_to).concat(Yn,"/").concat(oi):null,className:"".concat(xr,"-simple-pager")},Bt));var ra=this.renderPrev(Dn);return fe.createElement("ul",(0,E.Z)({className:Pe()(xr,"".concat(xr,"-simple"),(0,Ue.Z)({},"".concat(xr,"-disabled"),cr),Lt),style:Vt,ref:this.paginationNode},er),Gr,ra?fe.createElement("li",{title:ei?Fr.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Pe()("".concat(xr,"-prev"),(0,Ue.Z)({},"".concat(xr,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},ra):null,fe.createElement("li",{title:ei?"".concat(Yn,"/").concat(oi):null,className:"".concat(xr,"-simple-pager")},fe.createElement("input",{type:"text",value:hi,disabled:cr,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),fe.createElement("span",{className:"".concat(xr,"-slash")},"/"),oi),fe.createElement("li",{title:ei?Fr.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Pe()("".concat(xr,"-next"),(0,Ue.Z)({},"".concat(xr,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(rr)),Bt)}if(oi<=3+Kn*2){var Oi={locale:Fr,rootPrefixCls:xr,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:ei,itemRender:Qn};oi||Vr.push(fe.createElement(ft,(0,E.Z)({},Oi,{key:"noPager",page:1,className:"".concat(xr,"-item-disabled")})));for(var bi=1;bi<=oi;bi+=1){var Ji=Yn===bi;Vr.push(fe.createElement(ft,(0,E.Z)({},Oi,{key:bi,page:bi,active:Ji})))}}else{var Ti=ai?Fr.prev_3:Fr.prev_5,ua=ai?Fr.next_3:Fr.next_5,br=Qn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Hr,"prev page")),Di=Qn(this.getJumpNextPage(),"jump-next",this.getItemIcon(vi,"next page"));Or&&(Ct=br?fe.createElement("li",{title:ei?Ti:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Pe()("".concat(xr,"-jump-prev"),(0,Ue.Z)({},"".concat(xr,"-jump-prev-custom-icon"),!!Hr))},br):null,hn=Di?fe.createElement("li",{title:ei?ua:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Pe()("".concat(xr,"-jump-next"),(0,Ue.Z)({},"".concat(xr,"-jump-next-custom-icon"),!!vi))},Di):null),jn=fe.createElement(ft,{locale:Fr,last:!0,rootPrefixCls:xr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:oi,page:oi,active:!1,showTitle:ei,itemRender:Qn}),An=fe.createElement(ft,{locale:Fr,rootPrefixCls:xr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:ei,itemRender:Qn});var ni=Math.max(1,Yn-Kn),No=Math.min(Yn+Kn,oi);Yn-1<=Kn&&(No=1+Kn*2),oi-Yn<=Kn&&(ni=oi-Kn*2);for(var xa=ni;xa<=No;xa+=1){var za=Yn===xa;Vr.push(fe.createElement(ft,{locale:Fr,rootPrefixCls:xr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:xa,page:xa,active:za,showTitle:ei,itemRender:Qn}))}Yn-1>=Kn*2&&Yn!==3&&(Vr[0]=(0,fe.cloneElement)(Vr[0],{className:"".concat(xr,"-item-after-jump-prev")}),Vr.unshift(Ct)),oi-Yn>=Kn*2&&Yn!==oi-2&&(Vr[Vr.length-1]=(0,fe.cloneElement)(Vr[Vr.length-1],{className:"".concat(xr,"-item-before-jump-next")}),Vr.push(hn)),ni!==1&&Vr.unshift(An),No!==oi&&Vr.push(jn)}var Lo=!this.hasPrev()||!oi,Ea=!this.hasNext()||!oi,zo=this.renderPrev(Dn),gi=this.renderNext(rr);return fe.createElement("ul",(0,E.Z)({className:Pe()(xr,Lt,(0,Ue.Z)({},"".concat(xr,"-disabled"),cr)),style:Vt,ref:this.paginationNode},er),Gr,zo?fe.createElement("li",{title:ei?Fr.prev_page:null,onClick:this.prev,tabIndex:Lo?null:0,onKeyPress:this.runIfEnterPrev,className:Pe()("".concat(xr,"-prev"),(0,Ue.Z)({},"".concat(xr,"-disabled"),Lo)),"aria-disabled":Lo},zo):null,Vr,gi?fe.createElement("li",{title:ei?Fr.next_page:null,onClick:this.next,tabIndex:Ea?null:0,onKeyPress:this.runIfEnterNext,className:Pe()("".concat(xr,"-next"),(0,Ue.Z)({},"".concat(xr,"-disabled"),Ea)),"aria-disabled":Ea},gi):null,fe.createElement(pt,{disabled:cr,locale:Fr,rootPrefixCls:xr,selectComponentClass:Zi,selectPrefixCls:$t,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Yn,pageSize:Dr,pageSizeOptions:$n,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:on}))}}],[{key:"getDerivedStateFromProps",value:function(an,xr){var Lt={};if("current"in an&&(Lt.current=an.current,an.current!==xr.current&&(Lt.currentInputValue=Lt.current)),"pageSize"in an&&an.pageSize!==xr.pageSize){var Vt=xr.current,cr=xt(an.pageSize,xr,an);Vt=Vt>cr?cr:Vt,"current"in an||(Lt.current=Vt,Lt.currentInputValue=Vt),Lt.pageSize=an.pageSize}return Lt}}]),fn}(fe.Component);et.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:We,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:We,locale:_e.Z,style:{},itemRender:kt,totalBoundaryShowSizeChanger:50};var Fe=et,Dt=te(62906),qt=te(53124),Xt=te(98675),Et=te(25378),zt=te(10110),Yt=te(11713);const Vn=Tt=>fe.createElement(Yt.default,Object.assign({},Tt,{showSearch:!0,size:"small"})),Pn=Tt=>fe.createElement(Yt.default,Object.assign({},Tt,{showSearch:!0,size:"middle"}));Vn.Option=Yt.default.Option,Pn.Option=Yt.default.Option;var _t=te(47673),pn=te(14747),sr=te(67968),Tn=te(45503);const Oe=Tt=>{const{componentCls:nn}=Tt;return{[`${nn}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${nn}-item-link`]:{color:Tt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${nn}-item-link`]:{color:Tt.colorTextDisabled,cursor:"not-allowed"}}},[`&${nn}-disabled`]:{cursor:"not-allowed",[`${nn}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Tt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Tt.colorBorder,backgroundColor:Tt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Tt.itemActiveBgDisabled},a:{color:Tt.itemActiveColorDisabled}}},[`${nn}-item-link`]:{color:Tt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${nn}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${nn}-simple-pager`]:{color:Tt.colorTextDisabled},[`${nn}-jump-prev, ${nn}-jump-next`]:{[`${nn}-item-link-icon`]:{opacity:0},[`${nn}-item-ellipsis`]:{opacity:1}}},[`&${nn}-simple`]:{[`${nn}-prev, ${nn}-next`]:{[`&${nn}-disabled ${nn}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},me=Tt=>{const{componentCls:nn}=Tt;return{[`&${nn}-mini ${nn}-total-text, &${nn}-mini ${nn}-simple-pager`]:{height:Tt.itemSizeSM,lineHeight:`${Tt.itemSizeSM}px`},[`&${nn}-mini ${nn}-item`]:{minWidth:Tt.itemSizeSM,height:Tt.itemSizeSM,margin:0,lineHeight:`${Tt.itemSizeSM-2}px`},[`&${nn}-mini:not(${nn}-disabled) ${nn}-item:not(${nn}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Tt.colorBgTextHover},"&:active":{backgroundColor:Tt.colorBgTextActive}},[`&${nn}-mini ${nn}-prev, &${nn}-mini ${nn}-next`]:{minWidth:Tt.itemSizeSM,height:Tt.itemSizeSM,margin:0,lineHeight:`${Tt.itemSizeSM}px`},[`&${nn}-mini:not(${nn}-disabled)`]:{[`${nn}-prev, ${nn}-next`]:{[`&:hover ${nn}-item-link`]:{backgroundColor:Tt.colorBgTextHover},[`&:active ${nn}-item-link`]:{backgroundColor:Tt.colorBgTextActive},[`&${nn}-disabled:hover ${nn}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${nn}-mini ${nn}-prev ${nn}-item-link,
|
|
|
&${nn}-mini ${nn}-next ${nn}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Tt.itemSizeSM,lineHeight:`${Tt.itemSizeSM}px`}},[`&${nn}-mini ${nn}-jump-prev, &${nn}-mini ${nn}-jump-next`]:{height:Tt.itemSizeSM,marginInlineEnd:0,lineHeight:`${Tt.itemSizeSM}px`},[`&${nn}-mini ${nn}-options`]:{marginInlineStart:Tt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Tt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Tt.itemSizeSM,lineHeight:`${Tt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,_t.x0)(Tt)),{width:Tt.paginationMiniQuickJumperInputWidth,height:Tt.controlHeightSM})}}}},he=Tt=>{const{componentCls:nn}=Tt;return{[`
|
|
|
&${nn}-simple ${nn}-prev,
|
|
|
&${nn}-simple ${nn}-next
|
|
|
`]:{height:Tt.itemSizeSM,lineHeight:`${Tt.itemSizeSM}px`,verticalAlign:"top",[`${nn}-item-link`]:{height:Tt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Tt.colorBgTextHover},"&:active":{backgroundColor:Tt.colorBgTextActive},"&::after":{height:Tt.itemSizeSM,lineHeight:`${Tt.itemSizeSM}px`}}},[`&${nn}-simple ${nn}-simple-pager`]:{display:"inline-block",height:Tt.itemSizeSM,marginInlineEnd:Tt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Tt.marginXS,padding:`0 ${Tt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Tt.itemInputBg,border:`${Tt.lineWidth}px ${Tt.lineType} ${Tt.colorBorder}`,borderRadius:Tt.borderRadius,outline:"none",transition:`border-color ${Tt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Tt.colorPrimary},"&:focus":{borderColor:Tt.colorPrimaryHover,boxShadow:`${Tt.inputOutlineOffset}px 0 ${Tt.controlOutlineWidth}px ${Tt.controlOutline}`},"&[disabled]":{color:Tt.colorTextDisabled,backgroundColor:Tt.colorBgContainerDisabled,borderColor:Tt.colorBorder,cursor:"not-allowed"}}}}},ge=Tt=>{const{componentCls:nn}=Tt;return{[`${nn}-jump-prev, ${nn}-jump-next`]:{outline:0,[`${nn}-item-container`]:{position:"relative",[`${nn}-item-link-icon`]:{color:Tt.colorPrimary,fontSize:Tt.fontSizeSM,opacity:0,transition:`all ${Tt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${nn}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Tt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Tt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Tt.paginationEllipsisTextIndent,opacity:1,transition:`all ${Tt.motionDurationMid}`}},"&:hover":{[`${nn}-item-link-icon`]:{opacity:1},[`${nn}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${nn}-prev,
|
|
|
${nn}-jump-prev,
|
|
|
${nn}-jump-next
|
|
|
`]:{marginInlineEnd:Tt.marginXS},[`
|
|
|
${nn}-prev,
|
|
|
${nn}-next,
|
|
|
${nn}-jump-prev,
|
|
|
${nn}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Tt.itemSize,height:Tt.itemSize,color:Tt.colorText,fontFamily:Tt.fontFamily,lineHeight:`${Tt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Tt.borderRadius,cursor:"pointer",transition:`all ${Tt.motionDurationMid}`},[`${nn}-prev, ${nn}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Tt.colorText,cursor:"pointer",userSelect:"none"},[`${nn}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Tt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Tt.lineWidth}px ${Tt.lineType} transparent`,borderRadius:Tt.borderRadius,outline:"none",transition:`all ${Tt.motionDurationMid}`},[`&:hover ${nn}-item-link`]:{backgroundColor:Tt.colorBgTextHover},[`&:active ${nn}-item-link`]:{backgroundColor:Tt.colorBgTextActive},[`&${nn}-disabled:hover`]:{[`${nn}-item-link`]:{backgroundColor:"transparent"}}},[`${nn}-slash`]:{marginInlineEnd:Tt.paginationSlashMarginInlineEnd,marginInlineStart:Tt.paginationSlashMarginInlineStart},[`${nn}-options`]:{display:"inline-block",marginInlineStart:Tt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Tt.controlHeight,marginInlineStart:Tt.marginXS,lineHeight:`${Tt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,_t.ik)(Tt)),{width:Tt.controlHeightLG*1.25,height:Tt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Tt.marginXS,marginInlineEnd:Tt.marginXS})}}}},ve=Tt=>{const{componentCls:nn}=Tt;return{[`${nn}-item`]:{display:"inline-block",minWidth:Tt.itemSize,height:Tt.itemSize,marginInlineEnd:Tt.marginXS,fontFamily:Tt.fontFamily,lineHeight:`${Tt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Tt.lineWidth}px ${Tt.lineType} transparent`,borderRadius:Tt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Tt.paginationItemPaddingInline}px`,color:Tt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${nn}-item-active)`]:{"&:hover":{transition:`all ${Tt.motionDurationMid}`,backgroundColor:Tt.colorBgTextHover},"&:active":{backgroundColor:Tt.colorBgTextActive}},"&-active":{fontWeight:Tt.fontWeightStrong,backgroundColor:Tt.itemActiveBg,borderColor:Tt.colorPrimary,a:{color:Tt.colorPrimary},"&:hover":{borderColor:Tt.colorPrimaryHover},"&:hover a":{color:Tt.colorPrimaryHover}}}}},se=Tt=>{const{componentCls:nn}=Tt;return{[nn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pn.Wf)(Tt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${nn}-total-text`]:{display:"inline-block",height:Tt.itemSize,marginInlineEnd:Tt.marginXS,lineHeight:`${Tt.itemSize-2}px`,verticalAlign:"middle"}}),ve(Tt)),ge(Tt)),he(Tt)),me(Tt)),Oe(Tt)),{[`@media only screen and (max-width: ${Tt.screenLG}px)`]:{[`${nn}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Tt.screenSM}px)`]:{[`${nn}-options`]:{display:"none"}}}),[`&${Tt.componentCls}-rtl`]:{direction:"rtl"}}},Ke=Tt=>{const{componentCls:nn}=Tt;return{[`${nn}${nn}-disabled:not(${nn}-mini)`]:{"&, &:hover":{[`${nn}-item-link`]:{borderColor:Tt.colorBorder}},"&:focus-visible":{[`${nn}-item-link`]:{borderColor:Tt.colorBorder}},[`${nn}-item, ${nn}-item-link`]:{backgroundColor:Tt.colorBgContainerDisabled,borderColor:Tt.colorBorder,[`&:hover:not(${nn}-item-active)`]:{backgroundColor:Tt.colorBgContainerDisabled,borderColor:Tt.colorBorder,a:{color:Tt.colorTextDisabled}},[`&${nn}-item-active`]:{backgroundColor:Tt.itemActiveBgDisabled}},[`${nn}-prev, ${nn}-next`]:{"&:hover button":{backgroundColor:Tt.colorBgContainerDisabled,borderColor:Tt.colorBorder,color:Tt.colorTextDisabled},[`${nn}-item-link`]:{backgroundColor:Tt.colorBgContainerDisabled,borderColor:Tt.colorBorder}}},[`${nn}:not(${nn}-mini)`]:{[`${nn}-prev, ${nn}-next`]:{"&:hover button":{borderColor:Tt.colorPrimaryHover,backgroundColor:Tt.itemBg},[`${nn}-item-link`]:{backgroundColor:Tt.itemLinkBg,borderColor:Tt.colorBorder},[`&:hover ${nn}-item-link`]:{borderColor:Tt.colorPrimary,backgroundColor:Tt.itemBg,color:Tt.colorPrimary},[`&${nn}-disabled`]:{[`${nn}-item-link`]:{borderColor:Tt.colorBorder,color:Tt.colorTextDisabled}}},[`${nn}-item`]:{backgroundColor:Tt.itemBg,border:`${Tt.lineWidth}px ${Tt.lineType} ${Tt.colorBorder}`,[`&:hover:not(${nn}-item-active)`]:{borderColor:Tt.colorPrimary,backgroundColor:Tt.itemBg,a:{color:Tt.colorPrimary}},"&-active":{borderColor:Tt.colorPrimary}}}}},bt=Tt=>{const{componentCls:nn}=Tt;return{[`${nn}:not(${nn}-disabled)`]:{[`${nn}-item`]:Object.assign({},(0,pn.Qy)(Tt)),[`${nn}-jump-prev, ${nn}-jump-next`]:{"&:focus-visible":Object.assign({[`${nn}-item-link-icon`]:{opacity:1},[`${nn}-item-ellipsis`]:{opacity:0}},(0,pn.oN)(Tt))},[`${nn}-prev, ${nn}-next`]:{[`&:focus-visible ${nn}-item-link`]:Object.assign({},(0,pn.oN)(Tt))}}}};var Wt=(0,sr.Z)("Pagination",Tt=>{const nn=(0,Tn.TS)(Tt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Tt.marginXXS/2,paginationMiniQuickJumperInputWidth:Tt.controlHeightLG*1.1,paginationItemPaddingInline:Tt.marginXXS*1.5,paginationEllipsisLetterSpacing:Tt.marginXXS/2,paginationSlashMarginInlineStart:Tt.marginXXS,paginationSlashMarginInlineEnd:Tt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,_t.e5)(Tt),(0,_t.TM)(Tt));return[se(nn),bt(nn),Tt.wireframe&&Ke(nn)]},Tt=>({itemBg:Tt.colorBgContainer,itemSize:Tt.controlHeight,itemSizeSM:Tt.controlHeightSM,itemActiveBg:Tt.colorBgContainer,itemLinkBg:Tt.colorBgContainer,itemActiveColorDisabled:Tt.colorTextDisabled,itemActiveBgDisabled:Tt.controlItemBgActiveDisabled,itemInputBg:Tt.colorBgContainer,miniOptionsSizeChangerTop:0})),yn=function(Tt,nn){var fn={};for(var sn in Tt)Object.prototype.hasOwnProperty.call(Tt,sn)&&nn.indexOf(sn)<0&&(fn[sn]=Tt[sn]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,sn=Object.getOwnPropertySymbols(Tt);an<sn.length;an++)nn.indexOf(sn[an])<0&&Object.prototype.propertyIsEnumerable.call(Tt,sn[an])&&(fn[sn[an]]=Tt[sn[an]]);return fn},cn=Tt=>{const{prefixCls:nn,selectPrefixCls:fn,className:sn,rootClassName:an,style:xr,size:Lt,locale:Vt,selectComponentClass:cr,responsive:En,showSizeChanger:en}=Tt,Fr=yn(Tt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ur}=(0,Et.Z)(En),{getPrefixCls:ai,direction:ei,pagination:Mi={}}=fe.useContext(qt.E_),ci=ai("pagination",nn),[Qn,Or]=Wt(ci),Hr=en!=null?en:Mi.showSizeChanger,vi=fe.useMemo(()=>{const oi=fe.createElement("span",{className:`${ci}-item-ellipsis`},"\u2022\u2022\u2022"),Vr=fe.createElement("button",{className:`${ci}-item-link`,type:"button",tabIndex:-1},ei==="rtl"?fe.createElement(De.Z,null):fe.createElement(pe.Z,null)),Ct=fe.createElement("button",{className:`${ci}-item-link`,type:"button",tabIndex:-1},ei==="rtl"?fe.createElement(pe.Z,null):fe.createElement(De.Z,null)),hn=fe.createElement("a",{className:`${ci}-item-link`},fe.createElement("div",{className:`${ci}-item-container`},ei==="rtl"?fe.createElement(Se.Z,{className:`${ci}-item-link-icon`}):fe.createElement(de,{className:`${ci}-item-link-icon`}),oi)),An=fe.createElement("a",{className:`${ci}-item-link`},fe.createElement("div",{className:`${ci}-item-container`},ei==="rtl"?fe.createElement(de,{className:`${ci}-item-link-icon`}):fe.createElement(Se.Z,{className:`${ci}-item-link-icon`}),oi));return{prevIcon:Vr,nextIcon:Ct,jumpPrevIcon:hn,jumpNextIcon:An}},[ei,ci]),[Zi]=(0,zt.Z)("Pagination",Dt.Z),$t=Object.assign(Object.assign({},Zi),Vt),$n=(0,Xt.Z)(Lt),mn=$n==="small"||!!(Ur&&!$n&&En),Yn=ai("select",fn),Dr=Pe()({[`${ci}-mini`]:mn,[`${ci}-rtl`]:ei==="rtl"},Mi==null?void 0:Mi.className,sn,an,Or),hi=Object.assign(Object.assign({},Mi==null?void 0:Mi.style),xr);return Qn(fe.createElement(Fe,Object.assign({},vi,Fr,{style:hi,prefixCls:ci,selectPrefixCls:Yn,className:Dr,selectComponentClass:cr||(mn?Vn:Pn),locale:$t,showSizeChanger:Hr})))},wn=cn},66330:function(In,Ut,te){"use strict";te.d(Ut,{t5:function(){return De}});var E=te(94184),fe=te.n(E),Ie=te(92419),Te=te(67294),xe=te(53124),Be=te(81643),de=te(20136),Se=function(Pe,Ue){var rt={};for(var qe in Pe)Object.prototype.hasOwnProperty.call(Pe,qe)&&Ue.indexOf(qe)<0&&(rt[qe]=Pe[qe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,qe=Object.getOwnPropertySymbols(Pe);He<qe.length;He++)Ue.indexOf(qe[He])<0&&Object.prototype.propertyIsEnumerable.call(Pe,qe[He])&&(rt[qe[He]]=Pe[qe[He]]);return rt};const pe=(Pe,Ue,rt)=>{if(!(!Ue&&!rt))return Te.createElement(Te.Fragment,null,Ue&&Te.createElement("div",{className:`${Pe}-title`},(0,Be.Z)(Ue)),Te.createElement("div",{className:`${Pe}-inner-content`},(0,Be.Z)(rt)))},De=Pe=>{const{hashId:Ue,prefixCls:rt,className:qe,style:He,placement:be="top",title:Qe,content:ht,children:Je}=Pe;return Te.createElement("div",{className:fe()(Ue,rt,`${rt}-pure`,`${rt}-placement-${be}`,qe),style:He},Te.createElement("div",{className:`${rt}-arrow`}),Te.createElement(Ie.G,Object.assign({},Pe,{className:Ue,prefixCls:rt}),Je||pe(rt,Qe,ht)))},Xe=Pe=>{const{prefixCls:Ue}=Pe,rt=Se(Pe,["prefixCls"]),{getPrefixCls:qe}=Te.useContext(xe.E_),He=qe("popover",Ue),[be,Qe]=(0,de.Z)(He);return be(Te.createElement(De,Object.assign({},rt,{prefixCls:He,hashId:Qe})))};Ut.ZP=Xe},55241:function(In,Ut,te){"use strict";var E=te(94184),fe=te.n(E),Ie=te(67294),Te=te(81643),xe=te(33603),Be=te(53124),de=te(83062),Se=te(66330),pe=te(20136),De=function(Ue,rt){var qe={};for(var He in Ue)Object.prototype.hasOwnProperty.call(Ue,He)&&rt.indexOf(He)<0&&(qe[He]=Ue[He]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,He=Object.getOwnPropertySymbols(Ue);be<He.length;be++)rt.indexOf(He[be])<0&&Object.prototype.propertyIsEnumerable.call(Ue,He[be])&&(qe[He[be]]=Ue[He[be]]);return qe};const Xe=Ue=>{let{title:rt,content:qe,prefixCls:He}=Ue;return Ie.createElement(Ie.Fragment,null,rt&&Ie.createElement("div",{className:`${He}-title`},(0,Te.Z)(rt)),Ie.createElement("div",{className:`${He}-inner-content`},(0,Te.Z)(qe)))},Pe=Ie.forwardRef((Ue,rt)=>{const{prefixCls:qe,title:He,content:be,overlayClassName:Qe,placement:ht="top",trigger:Je="hover",mouseEnterDelay:Ze=.1,mouseLeaveDelay:ye=.1,overlayStyle:Ee={}}=Ue,Ye=De(Ue,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Ne}=Ie.useContext(Be.E_),ot=Ne("popover",qe),[ct,_e]=(0,pe.Z)(ot),Me=Ne(),pt=fe()(Qe,_e);return ct(Ie.createElement(de.Z,Object.assign({placement:ht,trigger:Je,mouseEnterDelay:Ze,mouseLeaveDelay:ye,overlayStyle:Ee},Ye,{prefixCls:ot,overlayClassName:pt,ref:rt,overlay:He||be?Ie.createElement(Xe,{prefixCls:ot,title:He,content:be}):null,transitionName:(0,xe.m)(Me,"zoom-big",Ye.transitionName),"data-popover-inject":!0})))});Pe._InternalPanelDoNotUseOrYouWillBeFired=Se.ZP,Ut.Z=Pe},20136:function(In,Ut,te){"use strict";var E=te(14747),fe=te(50438),Ie=te(97414),Te=te(8796),xe=te(67968),Be=te(45503);const de=De=>{const{componentCls:Xe,popoverColor:Pe,minWidth:Ue,fontWeightStrong:rt,popoverPadding:qe,boxShadowSecondary:He,colorTextHeading:be,borderRadiusLG:Qe,zIndexPopup:ht,marginXS:Je,colorBgElevated:Ze,popoverBg:ye}=De;return[{[Xe]:Object.assign(Object.assign({},(0,E.Wf)(De)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ht,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Ze,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Xe}-content`]:{position:"relative"},[`${Xe}-inner`]:{backgroundColor:ye,backgroundClip:"padding-box",borderRadius:Qe,boxShadow:He,padding:qe},[`${Xe}-title`]:{minWidth:Ue,marginBottom:Je,color:be,fontWeight:rt},[`${Xe}-inner-content`]:{color:Pe}})},(0,Ie.ZP)(De,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Xe}-pure`]:{position:"relative",maxWidth:"none",margin:De.sizePopupArrow,display:"inline-block",[`${Xe}-content`]:{display:"inline-block"}}}]},Se=De=>{const{componentCls:Xe}=De;return{[Xe]:Te.i.map(Pe=>{const Ue=De[`${Pe}6`];return{[`&${Xe}-${Pe}`]:{"--antd-arrow-background-color":Ue,[`${Xe}-inner`]:{backgroundColor:Ue},[`${Xe}-arrow`]:{background:"transparent"}}}})}},pe=De=>{const{componentCls:Xe,lineWidth:Pe,lineType:Ue,colorSplit:rt,paddingSM:qe,controlHeight:He,fontSize:be,lineHeight:Qe,padding:ht}=De,Je=He-Math.round(be*Qe),Ze=Je/2,ye=Je/2-Pe,Ee=ht;return{[Xe]:{[`${Xe}-inner`]:{padding:0},[`${Xe}-title`]:{margin:0,padding:`${Ze}px ${Ee}px ${ye}px`,borderBottom:`${Pe}px ${Ue} ${rt}`},[`${Xe}-inner-content`]:{padding:`${qe}px ${Ee}px`}}}};Ut.Z=(0,xe.Z)("Popover",De=>{const{colorBgElevated:Xe,colorText:Pe,wireframe:Ue}=De,rt=(0,Be.TS)(De,{popoverPadding:12,popoverBg:Xe,popoverColor:Pe});return[de(rt),Se(rt),Ue&&pe(rt),(0,fe._y)(rt,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return xr}});var E=te(67294),fe=te(87725),Ie=te(18299),Te=te(16646),xe=te(73475),Be=te(94184),de=te.n(Be),Se=te(10366),pe=te(53124),De=te(87462),Xe=te(1413),Pe=te(45987),Ue={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},rt=function(){var Vt=(0,E.useRef)([]),cr=(0,E.useRef)(null);return(0,E.useEffect)(function(){var En=Date.now(),en=!1;Vt.current.forEach(function(Fr){if(Fr){en=!0;var Ur=Fr.style;Ur.transitionDuration=".3s, .3s, .3s, .06s",cr.current&&En-cr.current<100&&(Ur.transitionDuration="0s, 0s")}}),en&&(cr.current=Date.now())}),Vt.current},qe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],He=function(Vt){var cr=(0,Xe.Z)((0,Xe.Z)({},Ue),Vt),En=cr.className,en=cr.percent,Fr=cr.prefixCls,Ur=cr.strokeColor,ai=cr.strokeLinecap,ei=cr.strokeWidth,Mi=cr.style,ci=cr.trailColor,Qn=cr.trailWidth,Or=cr.transition,Hr=(0,Pe.Z)(cr,qe);delete Hr.gapPosition;var vi=Array.isArray(en)?en:[en],Zi=Array.isArray(Ur)?Ur:[Ur],$t=rt(),$n=ei/2,mn=100-ei/2,Yn="M ".concat(ai==="round"?$n:0,",").concat($n,`
|
|
|
L `).concat(ai==="round"?mn:100,",").concat($n),Dr="0 0 100 ".concat(ei),hi=0;return E.createElement("svg",(0,De.Z)({className:de()("".concat(Fr,"-line"),En),viewBox:Dr,preserveAspectRatio:"none",style:Mi},Hr),E.createElement("path",{className:"".concat(Fr,"-line-trail"),d:Yn,strokeLinecap:ai,stroke:ci,strokeWidth:Qn||ei,fillOpacity:"0"}),vi.map(function(oi,Vr){var Ct=1;switch(ai){case"round":Ct=1-ei/100;break;case"square":Ct=1-ei/2/100;break;default:Ct=1;break}var hn={strokeDasharray:"".concat(oi*Ct,"px, 100px"),strokeDashoffset:"-".concat(hi,"px"),transition:Or||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},An=Zi[Vr]||Zi[Zi.length-1];return hi+=oi,E.createElement("path",{key:Vr,className:"".concat(Fr,"-line-path"),d:Yn,strokeLinecap:ai,stroke:An,strokeWidth:ei,fillOpacity:"0",ref:function(Bt){$t[Vr]=Bt},style:hn})}))},be=He,Qe=te(71002),ht=te(97685),Je=te(98924),Ze=0,ye=(0,Je.Z)();function Ee(){var Lt;return ye?(Lt=Ze,Ze+=1):Lt="TEST_OR_SSR",Lt}var Ye=function(Lt){var Vt=E.useState(),cr=(0,ht.Z)(Vt,2),En=cr[0],en=cr[1];return E.useEffect(function(){en("rc_progress_".concat(Ee()))},[]),Lt||En},Ne=function(Vt){var cr=Vt.bg,En=Vt.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:cr}},En)};function ot(Lt,Vt){return Object.keys(Lt).map(function(cr){var En=parseFloat(cr),en="".concat(Math.floor(En*Vt),"%");return"".concat(Lt[cr]," ").concat(en)})}var ct=E.forwardRef(function(Lt,Vt){var cr=Lt.prefixCls,En=Lt.color,en=Lt.gradientId,Fr=Lt.radius,Ur=Lt.style,ai=Lt.ptg,ei=Lt.strokeLinecap,Mi=Lt.strokeWidth,ci=Lt.size,Qn=Lt.gapDegree,Or=En&&(0,Qe.Z)(En)==="object",Hr=Or?"#FFF":void 0,vi=ci/2,Zi=E.createElement("circle",{className:"".concat(cr,"-circle-path"),r:Fr,cx:vi,cy:vi,stroke:Hr,strokeLinecap:ei,strokeWidth:Mi,opacity:ai===0?0:1,style:Ur,ref:Vt});if(!Or)return Zi;var $t="".concat(en,"-conic"),$n=Qn?"".concat(180+Qn/2,"deg"):"0deg",mn=ot(En,(360-Qn)/360),Yn=ot(En,1),Dr="conic-gradient(from ".concat($n,", ").concat(mn.join(", "),")"),hi="linear-gradient(to ".concat(Qn?"bottom":"top",", ").concat(Yn.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:$t},Zi),E.createElement("foreignObject",{x:0,y:0,width:ci,height:ci,mask:"url(#".concat($t,")")},E.createElement(Ne,{bg:hi},E.createElement(Ne,{bg:Dr}))))}),_e=ct,Me=100,pt=function(Vt,cr,En,en,Fr,Ur,ai,ei,Mi,ci){var Qn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Or=En/100*360*((360-Ur)/360),Hr=Ur===0?0:{bottom:0,top:180,left:90,right:-90}[ai],vi=(100-en)/100*cr;Mi==="round"&&en!==100&&(vi+=ci/2,vi>=cr&&(vi=cr-.01));var Zi=Me/2;return{stroke:typeof ei=="string"?ei:void 0,strokeDasharray:"".concat(cr,"px ").concat(Vt),strokeDashoffset:vi+Qn,transform:"rotate(".concat(Fr+Or+Hr,"deg)"),transformOrigin:"".concat(Zi,"px ").concat(Zi,"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 ft(Lt){var Vt=Lt!=null?Lt:[];return Array.isArray(Vt)?Vt:[Vt]}var We=function(Vt){var cr=(0,Xe.Z)((0,Xe.Z)({},Ue),Vt),En=cr.id,en=cr.prefixCls,Fr=cr.steps,Ur=cr.strokeWidth,ai=cr.trailWidth,ei=cr.gapDegree,Mi=ei===void 0?0:ei,ci=cr.gapPosition,Qn=cr.trailColor,Or=cr.strokeLinecap,Hr=cr.style,vi=cr.className,Zi=cr.strokeColor,$t=cr.percent,$n=(0,Pe.Z)(cr,$e),mn=Me/2,Yn=Ye(En),Dr="".concat(Yn,"-gradient"),hi=mn-Ur/2,oi=Math.PI*2*hi,Vr=Mi>0?90+Mi/2:-90,Ct=oi*((360-Mi)/360),hn=(0,Qe.Z)(Fr)==="object"?Fr:{count:Fr,space:2},An=hn.count,jn=hn.space,Bt=ft($t),on=ft(Zi),Kn=on.find(function(bi){return bi&&(0,Qe.Z)(bi)==="object"}),Dn=Kn&&(0,Qe.Z)(Kn)==="object",rr=Dn?"butt":Or,er=pt(oi,Ct,0,100,Vr,Mi,ci,Qn,rr,Ur),Gr=rt(),ra=function(){var Ji=0;return Bt.map(function(Ti,ua){var br=on[ua]||on[on.length-1],Di=pt(oi,Ct,Ji,Ti,Vr,Mi,ci,br,rr,Ur);return Ji+=Ti,E.createElement(_e,{key:ua,color:br,ptg:Ti,radius:hi,prefixCls:en,gradientId:Dr,style:Di,strokeLinecap:rr,strokeWidth:Ur,gapDegree:Mi,ref:function(No){Gr[ua]=No},size:Me})}).reverse()},Oi=function(){var Ji=Math.round(An*(Bt[0]/100)),Ti=100/An,ua=0;return new Array(An).fill(null).map(function(br,Di){var ni=Di<=Ji-1?on[0]:Qn,No=ni&&(0,Qe.Z)(ni)==="object"?"url(#".concat(Dr,")"):void 0,xa=pt(oi,Ct,ua,Ti,Vr,Mi,ci,ni,"butt",Ur,jn);return ua+=(Ct-xa.strokeDashoffset+jn)*100/Ct,E.createElement("circle",{key:Di,className:"".concat(en,"-circle-path"),r:hi,cx:mn,cy:mn,stroke:No,strokeWidth:Ur,opacity:1,style:xa,ref:function(Lo){Gr[Di]=Lo}})})};return E.createElement("svg",(0,De.Z)({className:de()("".concat(en,"-circle"),vi),viewBox:"0 0 ".concat(Me," ").concat(Me),style:Hr,id:En,role:"presentation"},$n),!An&&E.createElement("circle",{className:"".concat(en,"-circle-trail"),r:hi,cx:mn,cy:mn,stroke:Qn,strokeLinecap:rr,strokeWidth:ai||Ur,style:er}),An?Oi():ra())},gt=We,kt={Line:be,Circle:gt},xt=te(83062),et=te(16397);function Fe(Lt){return!Lt||Lt<0?0:Lt>100?100:Lt}function Dt(Lt){let{success:Vt,successPercent:cr}=Lt,En=cr;return Vt&&"progress"in Vt&&(En=Vt.progress),Vt&&"percent"in Vt&&(En=Vt.percent),En}const qt=Lt=>{let{percent:Vt,success:cr,successPercent:En}=Lt;const en=Fe(Dt({success:cr,successPercent:En}));return[en,Fe(Fe(Vt)-en)]},Xt=Lt=>{let{success:Vt={},strokeColor:cr}=Lt;const{strokeColor:En}=Vt;return[En||et.presetPrimaryColors.green,cr||null]},Et=(Lt,Vt,cr)=>{var En,en,Fr,Ur;let ai=-1,ei=-1;if(Vt==="step"){const Mi=cr.steps,ci=cr.strokeWidth;typeof Lt=="string"||typeof Lt=="undefined"?(ai=Lt==="small"?2:14,ei=ci!=null?ci:8):typeof Lt=="number"?[ai,ei]=[Lt,Lt]:[ai=14,ei=8]=Lt,ai*=Mi}else if(Vt==="line"){const Mi=cr==null?void 0:cr.strokeWidth;typeof Lt=="string"||typeof Lt=="undefined"?ei=Mi||(Lt==="small"?6:8):typeof Lt=="number"?[ai,ei]=[Lt,Lt]:[ai=-1,ei=8]=Lt}else(Vt==="circle"||Vt==="dashboard")&&(typeof Lt=="string"||typeof Lt=="undefined"?[ai,ei]=Lt==="small"?[60,60]:[120,120]:typeof Lt=="number"?[ai,ei]=[Lt,Lt]:(ai=(en=(En=Lt[0])!==null&&En!==void 0?En:Lt[1])!==null&&en!==void 0?en:120,ei=(Ur=(Fr=Lt[0])!==null&&Fr!==void 0?Fr:Lt[1])!==null&&Ur!==void 0?Ur:120));return[ai,ei]},zt=3,Yt=Lt=>zt/Lt*100;var Pn=Lt=>{const{prefixCls:Vt,trailColor:cr=null,strokeLinecap:En="round",gapPosition:en,gapDegree:Fr,width:Ur=120,type:ai,children:ei,success:Mi,size:ci=Ur}=Lt,[Qn,Or]=Et(ci,"circle");let{strokeWidth:Hr}=Lt;Hr===void 0&&(Hr=Math.max(Yt(Qn),6));const vi={width:Qn,height:Or,fontSize:Qn*.15+6},Zi=E.useMemo(()=>{if(Fr||Fr===0)return Fr;if(ai==="dashboard")return 75},[Fr,ai]),$t=en||ai==="dashboard"&&"bottom"||void 0,$n=Object.prototype.toString.call(Lt.strokeColor)==="[object Object]",mn=Xt({success:Mi,strokeColor:Lt.strokeColor}),Yn=de()(`${Vt}-inner`,{[`${Vt}-circle-gradient`]:$n}),Dr=E.createElement(gt,{percent:qt(Lt),strokeWidth:Hr,trailWidth:Hr,strokeColor:mn,strokeLinecap:En,trailColor:cr,prefixCls:Vt,gapDegree:Zi,gapPosition:$t});return E.createElement("div",{className:Yn,style:vi},Qn<=20?E.createElement(xt.Z,{title:ei},E.createElement("span",null,Dr)):E.createElement(E.Fragment,null,Dr,ei))},_t=function(Lt,Vt){var cr={};for(var En in Lt)Object.prototype.hasOwnProperty.call(Lt,En)&&Vt.indexOf(En)<0&&(cr[En]=Lt[En]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,En=Object.getOwnPropertySymbols(Lt);en<En.length;en++)Vt.indexOf(En[en])<0&&Object.prototype.propertyIsEnumerable.call(Lt,En[en])&&(cr[En[en]]=Lt[En[en]]);return cr};const pn=Lt=>{let Vt=[];return Object.keys(Lt).forEach(cr=>{const En=parseFloat(cr.replace(/%/g,""));isNaN(En)||Vt.push({key:En,value:Lt[cr]})}),Vt=Vt.sort((cr,En)=>cr.key-En.key),Vt.map(cr=>{let{key:En,value:en}=cr;return`${en} ${En}%`}).join(", ")},sr=(Lt,Vt)=>{const{from:cr=et.presetPrimaryColors.blue,to:En=et.presetPrimaryColors.blue,direction:en=Vt==="rtl"?"to left":"to right"}=Lt,Fr=_t(Lt,["from","to","direction"]);if(Object.keys(Fr).length!==0){const Ur=pn(Fr);return{backgroundImage:`linear-gradient(${en}, ${Ur})`}}return{backgroundImage:`linear-gradient(${en}, ${cr}, ${En})`}};var Oe=Lt=>{const{prefixCls:Vt,direction:cr,percent:En,size:en,strokeWidth:Fr,strokeColor:Ur,strokeLinecap:ai="round",children:ei,trailColor:Mi=null,success:ci}=Lt,Qn=Ur&&typeof Ur!="string"?sr(Ur,cr):{backgroundColor:Ur},Or=ai==="square"||ai==="butt"?0:void 0,Hr={backgroundColor:Mi||void 0,borderRadius:Or},vi=en!=null?en:[-1,Fr||(en==="small"?6:8)],[Zi,$t]=Et(vi,"line",{strokeWidth:Fr}),$n=Object.assign({width:`${Fe(En)}%`,height:$t,borderRadius:Or},Qn),mn=Dt(Lt),Yn={width:`${Fe(mn)}%`,height:$t,borderRadius:Or,backgroundColor:ci==null?void 0:ci.strokeColor},Dr={width:Zi<0?"100%":Zi,height:$t};return E.createElement(E.Fragment,null,E.createElement("div",{className:`${Vt}-outer`,style:Dr},E.createElement("div",{className:`${Vt}-inner`,style:Hr},E.createElement("div",{className:`${Vt}-bg`,style:$n}),mn!==void 0?E.createElement("div",{className:`${Vt}-success-bg`,style:Yn}):null)),ei)},he=Lt=>{const{size:Vt,steps:cr,percent:En=0,strokeWidth:en=8,strokeColor:Fr,trailColor:Ur=null,prefixCls:ai,children:ei}=Lt,Mi=Math.round(cr*(En/100)),ci=Vt==="small"?2:14,Qn=Vt!=null?Vt:[ci,en],[Or,Hr]=Et(Qn,"step",{steps:cr,strokeWidth:en}),vi=Or/cr,Zi=new Array(cr);for(let $t=0;$t<cr;$t++){const $n=Array.isArray(Fr)?Fr[$t]:Fr;Zi[$t]=E.createElement("div",{key:$t,className:de()(`${ai}-steps-item`,{[`${ai}-steps-item-active`]:$t<=Mi-1}),style:{backgroundColor:$t<=Mi-1?$n:Ur,width:vi,height:Hr}})}return E.createElement("div",{className:`${ai}-steps-outer`},Zi,ei)},ge=te(34367),ve=te(14747),se=te(67968),Ke=te(45503);const bt=Lt=>{const Vt=Lt?"100%":"-100%";return new ge.Keyframes(`antProgress${Lt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Vt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Vt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Wt=Lt=>{const{componentCls:Vt,iconCls:cr}=Lt;return{[Vt]:Object.assign(Object.assign({},(0,ve.Wf)(Lt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Lt.fontSize,marginInlineEnd:Lt.marginXS,marginBottom:Lt.marginXS},[`${Vt}-outer`]:{display:"inline-block",width:"100%"},[`&${Vt}-show-info`]:{[`${Vt}-outer`]:{marginInlineEnd:`calc(-2em - ${Lt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Lt.paddingXS}px)`}},[`${Vt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Lt.remainingColor,borderRadius:Lt.lineBorderRadius},[`${Vt}-inner:not(${Vt}-circle-gradient)`]:{[`${Vt}-circle-path`]:{stroke:Lt.defaultColor}},[`${Vt}-success-bg, ${Vt}-bg`]:{position:"relative",backgroundColor:Lt.defaultColor,borderRadius:Lt.lineBorderRadius,transition:`all ${Lt.motionDurationSlow} ${Lt.motionEaseInOutCirc}`},[`${Vt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Lt.colorSuccess},[`${Vt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Lt.marginXS,color:Lt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[cr]:{fontSize:Lt.fontSize}},[`&${Vt}-status-active`]:{[`${Vt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Lt.colorBgContainer,borderRadius:Lt.lineBorderRadius,opacity:0,animationName:bt(),animationDuration:Lt.progressActiveMotionDuration,animationTimingFunction:Lt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Vt}-rtl${Vt}-status-active`]:{[`${Vt}-bg::before`]:{animationName:bt(!0)}},[`&${Vt}-status-exception`]:{[`${Vt}-bg`]:{backgroundColor:Lt.colorError},[`${Vt}-text`]:{color:Lt.colorError}},[`&${Vt}-status-exception ${Vt}-inner:not(${Vt}-circle-gradient)`]:{[`${Vt}-circle-path`]:{stroke:Lt.colorError}},[`&${Vt}-status-success`]:{[`${Vt}-bg`]:{backgroundColor:Lt.colorSuccess},[`${Vt}-text`]:{color:Lt.colorSuccess}},[`&${Vt}-status-success ${Vt}-inner:not(${Vt}-circle-gradient)`]:{[`${Vt}-circle-path`]:{stroke:Lt.colorSuccess}}})}},yn=Lt=>{const{componentCls:Vt,iconCls:cr}=Lt;return{[Vt]:{[`${Vt}-circle-trail`]:{stroke:Lt.remainingColor},[`&${Vt}-circle ${Vt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Vt}-circle ${Vt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Lt.circleTextColor,fontSize:Lt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[cr]:{fontSize:`${Lt.fontSize/Lt.fontSizeSM}em`}},[`${Vt}-circle&-status-exception`]:{[`${Vt}-text`]:{color:Lt.colorError}},[`${Vt}-circle&-status-success`]:{[`${Vt}-text`]:{color:Lt.colorSuccess}}},[`${Vt}-inline-circle`]:{lineHeight:1,[`${Vt}-inner`]:{verticalAlign:"bottom"}}}},bn=Lt=>{const{componentCls:Vt}=Lt;return{[Vt]:{[`${Vt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Lt.progressStepMinWidth,marginInlineEnd:Lt.progressStepMarginInlineEnd,backgroundColor:Lt.remainingColor,transition:`all ${Lt.motionDurationSlow}`,"&-active":{backgroundColor:Lt.defaultColor}}}}}},cn=Lt=>{const{componentCls:Vt,iconCls:cr}=Lt;return{[Vt]:{[`${Vt}-small&-line, ${Vt}-small&-line ${Vt}-text ${cr}`]:{fontSize:Lt.fontSizeSM}}}};var wn=(0,se.Z)("Progress",Lt=>{const Vt=Lt.marginXXS/2,cr=(0,Ke.TS)(Lt,{progressStepMarginInlineEnd:Vt,progressStepMinWidth:Vt,progressActiveMotionDuration:"2.4s"});return[Wt(cr),yn(cr),bn(cr),cn(cr)]},Lt=>({circleTextColor:Lt.colorText,defaultColor:Lt.colorInfo,remainingColor:Lt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Tt=function(Lt,Vt){var cr={};for(var En in Lt)Object.prototype.hasOwnProperty.call(Lt,En)&&Vt.indexOf(En)<0&&(cr[En]=Lt[En]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,En=Object.getOwnPropertySymbols(Lt);en<En.length;en++)Vt.indexOf(En[en])<0&&Object.prototype.propertyIsEnumerable.call(Lt,En[en])&&(cr[En[en]]=Lt[En[en]]);return cr};const nn=null,fn=["normal","exception","active","success"];var an=E.forwardRef((Lt,Vt)=>{const{prefixCls:cr,className:En,rootClassName:en,steps:Fr,strokeColor:Ur,percent:ai=0,size:ei="default",showInfo:Mi=!0,type:ci="line",status:Qn,format:Or,style:Hr}=Lt,vi=Tt(Lt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Zi=E.useMemo(()=>{var Bt,on;const Kn=Dt(Lt);return parseInt(Kn!==void 0?(Bt=Kn!=null?Kn:0)===null||Bt===void 0?void 0:Bt.toString():(on=ai!=null?ai:0)===null||on===void 0?void 0:on.toString(),10)},[ai,Lt.success,Lt.successPercent]),$t=E.useMemo(()=>!fn.includes(Qn)&&Zi>=100?"success":Qn||"normal",[Qn,Zi]),{getPrefixCls:$n,direction:mn,progress:Yn}=E.useContext(pe.E_),Dr=$n("progress",cr),[hi,oi]=wn(Dr),Vr=E.useMemo(()=>{if(!Mi)return null;const Bt=Dt(Lt);let on;const Kn=Or||(rr=>`${rr}%`),Dn=ci==="line";return Or||$t!=="exception"&&$t!=="success"?on=Kn(Fe(ai),Fe(Bt)):$t==="exception"?on=Dn?E.createElement(Te.Z,null):E.createElement(xe.Z,null):$t==="success"&&(on=Dn?E.createElement(fe.Z,null):E.createElement(Ie.Z,null)),E.createElement("span",{className:`${Dr}-text`,title:typeof on=="string"?on:void 0},on)},[Mi,ai,Zi,$t,ci,Dr,Or]),Ct=Array.isArray(Ur)?Ur[0]:Ur,hn=typeof Ur=="string"||Array.isArray(Ur)?Ur:void 0;let An;ci==="line"?An=Fr?E.createElement(he,Object.assign({},Lt,{strokeColor:hn,prefixCls:Dr,steps:Fr}),Vr):E.createElement(Oe,Object.assign({},Lt,{strokeColor:Ct,prefixCls:Dr,direction:mn}),Vr):(ci==="circle"||ci==="dashboard")&&(An=E.createElement(Pn,Object.assign({},Lt,{strokeColor:Ct,prefixCls:Dr,progressStatus:$t}),Vr));const jn=de()(Dr,`${Dr}-status-${$t}`,`${Dr}-${ci==="dashboard"&&"circle"||Fr&&"steps"||ci}`,{[`${Dr}-inline-circle`]:ci==="circle"&&Et(ei,"circle")[0]<=20,[`${Dr}-show-info`]:Mi,[`${Dr}-${ei}`]:typeof ei=="string",[`${Dr}-rtl`]:mn==="rtl"},Yn==null?void 0:Yn.className,En,en,oi);return hi(E.createElement("div",Object.assign({ref:Vt,style:Object.assign(Object.assign({},Yn==null?void 0:Yn.style),Hr),className:jn,role:"progressbar","aria-valuenow":Zi},(0,Se.Z)(vi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),An))}),xr=an},78045:function(In,Ut,te){"use strict";te.d(Ut,{ZP:function(){return et}});var E=te(94184),fe=te.n(E),Ie=te(5663),Te=te(1337),xe=te(67294),Be=te(53124),de=te(98675);const Se=xe.createContext(null),pe=Se.Provider;var De=Se;const Xe=xe.createContext(null),Pe=Xe.Provider;var Ue=te(95860),rt=te(17799),qe=te(98866),He=te(65223),be=te(14747),Qe=te(67968),ht=te(45503);const Je=Fe=>{const{componentCls:Dt,antCls:qt}=Fe,Xt=`${Dt}-group`;return{[Xt]:Object.assign(Object.assign({},(0,be.Wf)(Fe)),{display:"inline-block",fontSize:0,[`&${Xt}-rtl`]:{direction:"rtl"},[`${qt}-badge ${qt}-badge-count`]:{zIndex:1},[`> ${qt}-badge:not(:first-child) > ${qt}-button-wrapper`]:{borderInlineStart:"none"}})}},Ze=Fe=>{const{componentCls:Dt,wrapperMarginInlineEnd:qt,colorPrimary:Xt,radioSize:Et,motionDurationSlow:zt,motionDurationMid:Yt,motionEaseInOutCirc:Vn,colorBgContainer:Pn,colorBorder:_t,lineWidth:pn,dotSize:sr,colorBgContainerDisabled:Tn,colorTextDisabled:Oe,paddingXS:me,dotColorDisabled:he,lineType:ge,radioDotDisabledSize:ve,wireframe:se,colorWhite:Ke}=Fe,bt=`${Dt}-inner`;return{[`${Dt}-wrapper`]:Object.assign(Object.assign({},(0,be.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:qt,cursor:"pointer",[`&${Dt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Fe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Dt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${pn}px ${ge} ${Xt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Dt]:Object.assign(Object.assign({},(0,be.Wf)(Fe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Dt}-wrapper:hover &,
|
|
|
&:hover ${bt}`]:{borderColor:Xt},[`${Dt}-input:focus-visible + ${bt}`]:Object.assign({},(0,be.oN)(Fe)),[`${Dt}:hover::after, ${Dt}-wrapper:hover &::after`]:{visibility:"visible"},[`${Dt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Et,height:Et,marginBlockStart:Et/-2,marginInlineStart:Et/-2,backgroundColor:se?Xt:Ke,borderBlockStart:0,borderInlineStart:0,borderRadius:Et,transform:"scale(0)",opacity:0,transition:`all ${zt} ${Vn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Et,height:Et,backgroundColor:Pn,borderColor:_t,borderStyle:"solid",borderWidth:pn,borderRadius:"50%",transition:`all ${Yt}`},[`${Dt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Dt}-checked`]:{[bt]:{borderColor:Xt,backgroundColor:se?Pn:Xt,"&::after":{transform:`scale(${sr/Et})`,opacity:1,transition:`all ${zt} ${Vn}`}}},[`${Dt}-disabled`]:{cursor:"not-allowed",[bt]:{backgroundColor:Tn,borderColor:_t,cursor:"not-allowed","&::after":{backgroundColor:he}},[`${Dt}-input`]:{cursor:"not-allowed"},[`${Dt}-disabled + span`]:{color:Oe,cursor:"not-allowed"},[`&${Dt}-checked`]:{[bt]:{"&::after":{transform:`scale(${ve/Et})`}}}},[`span${Dt} + *`]:{paddingInlineStart:me,paddingInlineEnd:me}})}},ye=Fe=>{const{buttonColor:Dt,controlHeight:qt,componentCls:Xt,lineWidth:Et,lineType:zt,colorBorder:Yt,motionDurationSlow:Vn,motionDurationMid:Pn,buttonPaddingInline:_t,fontSize:pn,buttonBg:sr,fontSizeLG:Tn,controlHeightLG:Oe,controlHeightSM:me,paddingXS:he,borderRadius:ge,borderRadiusSM:ve,borderRadiusLG:se,buttonCheckedBg:Ke,buttonSolidCheckedColor:bt,colorTextDisabled:Wt,colorBgContainerDisabled:yn,buttonCheckedBgDisabled:bn,buttonCheckedColorDisabled:cn,colorPrimary:wn,colorPrimaryHover:Tt,colorPrimaryActive:nn,buttonSolidCheckedBg:fn,buttonSolidCheckedHoverBg:sn,buttonSolidCheckedActiveBg:an}=Fe;return{[`${Xt}-button-wrapper`]:{position:"relative",display:"inline-block",height:qt,margin:0,paddingInline:_t,paddingBlock:0,color:Dt,fontSize:pn,lineHeight:`${qt-Et*2}px`,background:sr,border:`${Et}px ${zt} ${Yt}`,borderBlockStartWidth:Et+.02,borderInlineStartWidth:0,borderInlineEndWidth:Et,cursor:"pointer",transition:[`color ${Pn}`,`background ${Pn}`,`box-shadow ${Pn}`].join(","),a:{color:Dt},[`> ${Xt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Et,insetInlineStart:-Et,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Et,paddingInline:0,backgroundColor:Yt,transition:`background-color ${Vn}`,content:'""'}},"&:first-child":{borderInlineStart:`${Et}px ${zt} ${Yt}`,borderStartStartRadius:ge,borderEndStartRadius:ge},"&:last-child":{borderStartEndRadius:ge,borderEndEndRadius:ge},"&:first-child:last-child":{borderRadius:ge},[`${Xt}-group-large &`]:{height:Oe,fontSize:Tn,lineHeight:`${Oe-Et*2}px`,"&:first-child":{borderStartStartRadius:se,borderEndStartRadius:se},"&:last-child":{borderStartEndRadius:se,borderEndEndRadius:se}},[`${Xt}-group-small &`]:{height:me,paddingInline:he-Et,paddingBlock:0,lineHeight:`${me-Et*2}px`,"&:first-child":{borderStartStartRadius:ve,borderEndStartRadius:ve},"&:last-child":{borderStartEndRadius:ve,borderEndEndRadius:ve}},"&:hover":{position:"relative",color:wn},"&:has(:focus-visible)":Object.assign({},(0,be.oN)(Fe)),[`${Xt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Xt}-button-wrapper-disabled)`]:{zIndex:1,color:wn,background:Ke,borderColor:wn,"&::before":{backgroundColor:wn},"&:first-child":{borderColor:wn},"&:hover":{color:Tt,borderColor:Tt,"&::before":{backgroundColor:Tt}},"&:active":{color:nn,borderColor:nn,"&::before":{backgroundColor:nn}}},[`${Xt}-group-solid &-checked:not(${Xt}-button-wrapper-disabled)`]:{color:bt,background:fn,borderColor:fn,"&:hover":{color:bt,background:sn,borderColor:sn},"&:active":{color:bt,background:an,borderColor:an}},"&-disabled":{color:Wt,backgroundColor:yn,borderColor:Yt,cursor:"not-allowed","&:first-child, &:hover":{color:Wt,backgroundColor:yn,borderColor:Yt}},[`&-disabled${Xt}-button-wrapper-checked`]:{color:cn,backgroundColor:bn,borderColor:Yt,boxShadow:"none"}}}},Ee=Fe=>Fe-4*2;var Ye=(0,Qe.Z)("Radio",Fe=>{const{controlOutline:Dt,controlOutlineWidth:qt,radioSize:Xt}=Fe,Et=`0 0 0 ${qt}px ${Dt}`,zt=Et,Yt=Ee(Xt),Vn=(0,ht.TS)(Fe,{radioDotDisabledSize:Yt,radioFocusShadow:Et,radioButtonFocusShadow:zt});return[Je(Vn),Ze(Vn),ye(Vn)]},Fe=>{const{wireframe:Dt,padding:qt,marginXS:Xt,lineWidth:Et,fontSizeLG:zt,colorText:Yt,colorBgContainer:Vn,colorTextDisabled:Pn,controlItemBgActiveDisabled:_t,colorTextLightSolid:pn,colorPrimary:sr,colorPrimaryHover:Tn,colorPrimaryActive:Oe}=Fe,me=4,he=zt,ge=Dt?Ee(he):he-(me+Et)*2;return{radioSize:he,dotSize:ge,dotColorDisabled:Pn,buttonSolidCheckedColor:pn,buttonSolidCheckedBg:sr,buttonSolidCheckedHoverBg:Tn,buttonSolidCheckedActiveBg:Oe,buttonBg:Vn,buttonCheckedBg:Vn,buttonColor:Yt,buttonCheckedBgDisabled:_t,buttonCheckedColorDisabled:Pn,buttonPaddingInline:qt-Et,wrapperMarginInlineEnd:Xt}}),Ne=te(45353),ot=te(92429),ct=function(Fe,Dt){var qt={};for(var Xt in Fe)Object.prototype.hasOwnProperty.call(Fe,Xt)&&Dt.indexOf(Xt)<0&&(qt[Xt]=Fe[Xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Xt=Object.getOwnPropertySymbols(Fe);Et<Xt.length;Et++)Dt.indexOf(Xt[Et])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Xt[Et])&&(qt[Xt[Et]]=Fe[Xt[Et]]);return qt};const _e=(Fe,Dt)=>{var qt,Xt;const Et=xe.useContext(De),zt=xe.useContext(Xe),{getPrefixCls:Yt,direction:Vn,radio:Pn}=xe.useContext(Be.E_),_t=xe.useRef(null),pn=(0,rt.sQ)(Dt,_t),{isFormItemInput:sr}=xe.useContext(He.aM),Tn=nn=>{var fn,sn;(fn=Fe.onChange)===null||fn===void 0||fn.call(Fe,nn),(sn=Et==null?void 0:Et.onChange)===null||sn===void 0||sn.call(Et,nn)},{prefixCls:Oe,className:me,rootClassName:he,children:ge,style:ve}=Fe,se=ct(Fe,["prefixCls","className","rootClassName","children","style"]),Ke=Yt("radio",Oe),bt=((Et==null?void 0:Et.optionType)||zt)==="button",Wt=bt?`${Ke}-button`:Ke,[yn,bn]=Ye(Ke),cn=Object.assign({},se),wn=xe.useContext(qe.Z);Et&&(cn.name=Et.name,cn.onChange=Tn,cn.checked=Fe.value===Et.value,cn.disabled=(qt=cn.disabled)!==null&&qt!==void 0?qt:Et.disabled),cn.disabled=(Xt=cn.disabled)!==null&&Xt!==void 0?Xt:wn;const Tt=fe()(`${Wt}-wrapper`,{[`${Wt}-wrapper-checked`]:cn.checked,[`${Wt}-wrapper-disabled`]:cn.disabled,[`${Wt}-wrapper-rtl`]:Vn==="rtl",[`${Wt}-wrapper-in-form-item`]:sr},Pn==null?void 0:Pn.className,me,he,bn);return yn(xe.createElement(Ne.Z,{component:"Radio",disabled:cn.disabled},xe.createElement("label",{className:Tt,style:Object.assign(Object.assign({},Pn==null?void 0:Pn.style),ve),onMouseEnter:Fe.onMouseEnter,onMouseLeave:Fe.onMouseLeave},xe.createElement(Ue.Z,Object.assign({},cn,{className:fe()(cn.className,!bt&&ot.A),type:"radio",prefixCls:Wt,ref:pn})),ge!==void 0?xe.createElement("span",null,ge):null)))};var pt=xe.forwardRef(_e);const $e=xe.forwardRef((Fe,Dt)=>{const{getPrefixCls:qt,direction:Xt}=xe.useContext(Be.E_),[Et,zt]=(0,Ie.Z)(Fe.defaultValue,{value:Fe.value}),Yt=fn=>{const sn=Et,an=fn.target.value;"value"in Fe||zt(an);const{onChange:xr}=Fe;xr&&an!==sn&&xr(fn)},{prefixCls:Vn,className:Pn,rootClassName:_t,options:pn,buttonStyle:sr="outline",disabled:Tn,children:Oe,size:me,style:he,id:ge,onMouseEnter:ve,onMouseLeave:se,onFocus:Ke,onBlur:bt}=Fe,Wt=qt("radio",Vn),yn=`${Wt}-group`,[bn,cn]=Ye(Wt);let wn=Oe;pn&&pn.length>0&&(wn=pn.map(fn=>typeof fn=="string"||typeof fn=="number"?xe.createElement(pt,{key:fn.toString(),prefixCls:Wt,disabled:Tn,value:fn,checked:Et===fn},fn):xe.createElement(pt,{key:`radio-group-value-options-${fn.value}`,prefixCls:Wt,disabled:fn.disabled||Tn,value:fn.value,checked:Et===fn.value,title:fn.title,style:fn.style},fn.label)));const Tt=(0,de.Z)(me),nn=fe()(yn,`${yn}-${sr}`,{[`${yn}-${Tt}`]:Tt,[`${yn}-rtl`]:Xt==="rtl"},Pn,_t,cn);return bn(xe.createElement("div",Object.assign({},(0,Te.Z)(Fe,{aria:!0,data:!0}),{className:nn,style:he,onMouseEnter:ve,onMouseLeave:se,onFocus:Ke,onBlur:bt,id:ge,ref:Dt}),xe.createElement(pe,{value:{onChange:Yt,value:Et,disabled:Fe.disabled,name:Fe.name,optionType:Fe.optionType}},wn)))});var ft=xe.memo($e),We=function(Fe,Dt){var qt={};for(var Xt in Fe)Object.prototype.hasOwnProperty.call(Fe,Xt)&&Dt.indexOf(Xt)<0&&(qt[Xt]=Fe[Xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Xt=Object.getOwnPropertySymbols(Fe);Et<Xt.length;Et++)Dt.indexOf(Xt[Et])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Xt[Et])&&(qt[Xt[Et]]=Fe[Xt[Et]]);return qt};const gt=(Fe,Dt)=>{const{getPrefixCls:qt}=xe.useContext(Be.E_),{prefixCls:Xt}=Fe,Et=We(Fe,["prefixCls"]),zt=qt("radio",Xt);return xe.createElement(Pe,{value:"button"},xe.createElement(pt,Object.assign({prefixCls:zt},Et,{type:"radio",ref:Dt})))};var kt=xe.forwardRef(gt);const xt=pt;xt.Button=kt,xt.Group=ft,xt.__ANT_RADIO=!0;var et=xt},12604:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return et}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(Dt,qt){return fe.createElement(xe.Z,(0,E.Z)({},Dt,{ref:qt,icon:Te}))},de=fe.forwardRef(Be),Se=te(94184),pe=te.n(Se),De=te(4942),Xe=te(97685),Pe=te(45987),Ue=te(21770),rt=te(15105),qe=te(64217);function He(Fe,Dt){var qt=Fe.disabled,Xt=Fe.prefixCls,Et=Fe.character,zt=Fe.characterRender,Yt=Fe.index,Vn=Fe.count,Pn=Fe.value,_t=Fe.allowHalf,pn=Fe.focused,sr=Fe.onHover,Tn=Fe.onClick,Oe=function(Wt){sr(Wt,Yt)},me=function(Wt){Tn(Wt,Yt)},he=function(Wt){Wt.keyCode===rt.Z.ENTER&&Tn(Wt,Yt)},ge=Yt+1,ve=new Set([Xt]);Pn===0&&Yt===0&&pn?ve.add("".concat(Xt,"-focused")):_t&&Pn+.5>=ge&&Pn<ge?(ve.add("".concat(Xt,"-half")),ve.add("".concat(Xt,"-active")),pn&&ve.add("".concat(Xt,"-focused"))):(ge<=Pn?ve.add("".concat(Xt,"-full")):ve.add("".concat(Xt,"-zero")),ge===Pn&&pn&&ve.add("".concat(Xt,"-focused")));var se=typeof Et=="function"?Et(Fe):Et,Ke=fe.createElement("li",{className:pe()(Array.from(ve)),ref:Dt},fe.createElement("div",{onClick:qt?null:me,onKeyDown:qt?null:he,onMouseMove:qt?null:Oe,role:"radio","aria-checked":Pn>Yt?"true":"false","aria-posinset":Yt+1,"aria-setsize":Vn,tabIndex:qt?-1:0},fe.createElement("div",{className:"".concat(Xt,"-first")},se),fe.createElement("div",{className:"".concat(Xt,"-second")},se)));return zt&&(Ke=zt(Ke,Fe)),Ke}var be=fe.forwardRef(He);function Qe(){var Fe=fe.useRef({});function Dt(Xt){return Fe.current[Xt]}function qt(Xt){return function(Et){Fe.current[Xt]=Et}}return[Dt,qt]}function ht(Fe){var Dt=Fe.pageXOffset,qt="scrollLeft";if(typeof Dt!="number"){var Xt=Fe.document;Dt=Xt.documentElement[qt],typeof Dt!="number"&&(Dt=Xt.body[qt])}return Dt}function Je(Fe){var Dt,qt,Xt=Fe.ownerDocument,Et=Xt.body,zt=Xt&&Xt.documentElement,Yt=Fe.getBoundingClientRect();return Dt=Yt.left,qt=Yt.top,Dt-=zt.clientLeft||Et.clientLeft||0,qt-=zt.clientTop||Et.clientTop||0,{left:Dt,top:qt}}function Ze(Fe){var Dt=Je(Fe),qt=Fe.ownerDocument,Xt=qt.defaultView||qt.parentWindow;return Dt.left+=ht(Xt),Dt.left}var ye=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ee(Fe,Dt){var qt,Xt=Fe.prefixCls,Et=Xt===void 0?"rc-rate":Xt,zt=Fe.className,Yt=Fe.defaultValue,Vn=Fe.value,Pn=Fe.count,_t=Pn===void 0?5:Pn,pn=Fe.allowHalf,sr=pn===void 0?!1:pn,Tn=Fe.allowClear,Oe=Tn===void 0?!0:Tn,me=Fe.character,he=me===void 0?"\u2605":me,ge=Fe.characterRender,ve=Fe.disabled,se=Fe.direction,Ke=se===void 0?"ltr":se,bt=Fe.tabIndex,Wt=bt===void 0?0:bt,yn=Fe.autoFocus,bn=Fe.onHoverChange,cn=Fe.onChange,wn=Fe.onFocus,Tt=Fe.onBlur,nn=Fe.onKeyDown,fn=Fe.onMouseLeave,sn=(0,Pe.Z)(Fe,ye),an=Qe(),xr=(0,Xe.Z)(an,2),Lt=xr[0],Vt=xr[1],cr=fe.useRef(null),En=function(){if(!ve){var Dn;(Dn=cr.current)===null||Dn===void 0||Dn.focus()}};fe.useImperativeHandle(Dt,function(){return{focus:En,blur:function(){if(!ve){var Dn;(Dn=cr.current)===null||Dn===void 0||Dn.blur()}}}});var en=(0,Ue.Z)(Yt||0,{value:Vn}),Fr=(0,Xe.Z)(en,2),Ur=Fr[0],ai=Fr[1],ei=(0,Ue.Z)(null),Mi=(0,Xe.Z)(ei,2),ci=Mi[0],Qn=Mi[1],Or=function(Dn,rr){var er=Ke==="rtl",Gr=Dn+1;if(sr){var ra=Lt(Dn),Oi=Ze(ra),bi=ra.clientWidth;(er&&rr-Oi>bi/2||!er&&rr-Oi<bi/2)&&(Gr-=.5)}return Gr},Hr=function(Dn){ai(Dn),cn==null||cn(Dn)},vi=fe.useState(!1),Zi=(0,Xe.Z)(vi,2),$t=Zi[0],$n=Zi[1],mn=function(){$n(!0),wn==null||wn()},Yn=function(){$n(!1),Tt==null||Tt()},Dr=fe.useState(null),hi=(0,Xe.Z)(Dr,2),oi=hi[0],Vr=hi[1],Ct=function(Dn,rr){var er=Or(rr,Dn.pageX);er!==ci&&(Vr(er),Qn(null)),bn==null||bn(er)},hn=function(Dn){ve||(Vr(null),Qn(null),bn==null||bn(void 0)),Dn&&(fn==null||fn(Dn))},An=function(Dn,rr){var er=Or(rr,Dn.pageX),Gr=!1;Oe&&(Gr=er===Ur),hn(),Hr(Gr?0:er),Qn(Gr?er:null)},jn=function(Dn){var rr=Dn.keyCode,er=Ke==="rtl",Gr=Ur;rr===rt.Z.RIGHT&&Gr<_t&&!er?(sr?Gr+=.5:Gr+=1,Hr(Gr),Dn.preventDefault()):rr===rt.Z.LEFT&&Gr>0&&!er||rr===rt.Z.RIGHT&&Gr>0&&er?(sr?Gr-=.5:Gr-=1,Hr(Gr),Dn.preventDefault()):rr===rt.Z.LEFT&&Gr<_t&&er&&(sr?Gr+=.5:Gr+=1,Hr(Gr),Dn.preventDefault()),nn==null||nn(Dn)};fe.useEffect(function(){yn&&!ve&&En()},[]);var Bt=new Array(_t).fill(0).map(function(Kn,Dn){return fe.createElement(be,{ref:Vt(Dn),index:Dn,count:_t,disabled:ve,prefixCls:"".concat(Et,"-star"),allowHalf:sr,value:oi===null?Ur:oi,onClick:An,onHover:Ct,key:Kn||Dn,character:he,characterRender:ge,focused:$t})}),on=pe()(Et,zt,(qt={},(0,De.Z)(qt,"".concat(Et,"-disabled"),ve),(0,De.Z)(qt,"".concat(Et,"-rtl"),Ke==="rtl"),qt));return fe.createElement("ul",(0,E.Z)({className:on,onMouseLeave:hn,tabIndex:ve?-1:Wt,onFocus:ve?null:mn,onBlur:ve?null:Yn,onKeyDown:ve?null:jn,ref:cr,role:"radiogroup"},(0,qe.Z)(sn,{aria:!0,data:!0,attr:!0})),Bt)}var Ye=fe.forwardRef(Ee),Ne=Ye,ot=te(53124),ct=te(83062),_e=te(14747),Me=te(67968),pt=te(45503);const $e=Fe=>{const{componentCls:Dt}=Fe;return{[`${Dt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Fe.marginXS},"> div":{transition:`all ${Fe.motionDurationMid}, outline 0s`,"&:hover":{transform:Fe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Fe.lineWidth}px dashed ${Fe.starColor}`,transform:Fe.starHoverScale}},"&-first, &-second":{color:Fe.starBg,transition:`all ${Fe.motionDurationMid}`,userSelect:"none",[Fe.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Dt}-star-first, &-half ${Dt}-star-second`]:{opacity:1},[`&-half ${Dt}-star-first, &-full ${Dt}-star-second`]:{color:"inherit"}}}},ft=Fe=>({[`&-rtl${Fe.componentCls}`]:{direction:"rtl"}}),We=Fe=>{const{componentCls:Dt}=Fe;return{[Dt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(Fe)),{display:"inline-block",margin:0,padding:0,color:Fe.starColor,fontSize:Fe.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Dt} ${Dt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),$e(Fe)),{[`+ ${Dt}-text`]:{display:"inline-block",marginInlineStart:Fe.marginXS,fontSize:Fe.fontSize}}),ft(Fe))}};var gt=(0,Me.Z)("Rate",Fe=>{const Dt=(0,pt.TS)(Fe,{});return[We(Dt)]},Fe=>({starColor:Fe.yellow6,starSize:Fe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Fe.colorFillContent})),kt=function(Fe,Dt){var qt={};for(var Xt in Fe)Object.prototype.hasOwnProperty.call(Fe,Xt)&&Dt.indexOf(Xt)<0&&(qt[Xt]=Fe[Xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Xt=Object.getOwnPropertySymbols(Fe);Et<Xt.length;Et++)Dt.indexOf(Xt[Et])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Xt[Et])&&(qt[Xt[Et]]=Fe[Xt[Et]]);return qt},et=fe.forwardRef((Fe,Dt)=>{const{prefixCls:qt,className:Xt,rootClassName:Et,style:zt,tooltips:Yt,character:Vn=fe.createElement(de,null)}=Fe,Pn=kt(Fe,["prefixCls","className","rootClassName","style","tooltips","character"]),_t=(ve,se)=>{let{index:Ke}=se;return Yt?fe.createElement(ct.Z,{title:Yt[Ke]},ve):ve},{getPrefixCls:pn,direction:sr,rate:Tn}=fe.useContext(ot.E_),Oe=pn("rate",qt),[me,he]=gt(Oe),ge=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),zt);return me(fe.createElement(Ne,Object.assign({ref:Dt,character:Vn,characterRender:_t},Pn,{className:pe()(Xt,Et,he,Tn==null?void 0:Tn.className),style:ge,prefixCls:Oe,direction:sr})))})},11713:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return Ci}});var E=te(94184),fe=te.n(E),Ie=te(87462),Te=te(74902),xe=te(4942),Be=te(1413),de=te(97685),Se=te(45987),pe=te(71002),De=te(67294);function Xe(At){var vt=De.useRef();vt.current=At;var On=De.useCallback(function(){for(var Cn,mr=arguments.length,Zr=new Array(mr),Zt=0;Zt<mr;Zt++)Zr[Zt]=arguments[Zt];return(Cn=vt.current)===null||Cn===void 0?void 0:Cn.call.apply(Cn,[vt].concat(Zr))},[]);return On}function Pe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ue=Pe()?De.useLayoutEffect:De.useEffect,rt=Ue,qe=function(vt,On){var Cn=De.useRef(!0);Ue(function(){if(!Cn.current)return vt()},On),Ue(function(){return Cn.current=!1,function(){Cn.current=!0}},[])};function He(At){var vt=De.useRef(!1),On=De.useState(At),Cn=(0,de.Z)(On,2),mr=Cn[0],Zr=Cn[1];De.useEffect(function(){return vt.current=!1,function(){vt.current=!0}},[]);function Zt(Ht,tn){tn&&vt.current||Zr(Ht)}return[mr,Zt]}function be(At){return At!==void 0}function Qe(At,vt){var On=vt||{},Cn=On.defaultValue,mr=On.value,Zr=On.onChange,Zt=On.postState,Ht=He(function(){return be(mr)?mr:be(Cn)?typeof Cn=="function"?Cn():Cn:typeof At=="function"?At():At}),tn=(0,de.Z)(Ht,2),xn=tn[0],fr=tn[1],wr=mr!==void 0?mr:xn,lr=Zt?Zt(wr):wr,kr=Xe(Zr),di=He([wr]),Ni=(0,de.Z)(di,2),Si=Ni[0],Jr=Ni[1];qe(function(){var Wi=Si[0];xn!==Wi&&kr(xn,Wi)},[Si]),qe(function(){be(mr)||fr(mr)},[mr]);var Bi=Xe(function(Wi,da){fr(Wi,da),Jr([wr],da)});return[lr,Bi]}var ht={};function Je(At,vt){}function Ze(At,vt){}function ye(){ht={}}function Ee(At,vt,On){!vt&&!ht[On]&&(At(!1,On),ht[On]=!0)}function Ye(At,vt){Ee(Je,At,vt)}function Ne(At,vt){Ee(Ze,At,vt)}var ot=Ye,ct=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var At=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(At)||/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(At==null?void 0:At.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(vt){var On=vt.keyCode;if(vt.altKey&&!vt.ctrlKey||vt.metaKey||On>=_e.F1&&On<=_e.F12)return!1;switch(On){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(vt){if(vt>=_e.ZERO&&vt<=_e.NINE||vt>=_e.NUM_ZERO&&vt<=_e.NUM_MULTIPLY||vt>=_e.A&&vt<=_e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&vt===0)return!0;switch(vt){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}}},Me=_e,pt=te(47655);function $e(At,vt,On){var Cn=De.useRef({});return(!("value"in Cn.current)||On(Cn.current.condition,vt))&&(Cn.current.value=At(),Cn.current.condition=vt),Cn.current.value}function ft(At,vt){typeof At=="function"?At(vt):(0,pe.Z)(At)==="object"&&At&&"current"in At&&(At.current=vt)}function We(){for(var At=arguments.length,vt=new Array(At),On=0;On<At;On++)vt[On]=arguments[On];var Cn=vt.filter(function(mr){return mr});return Cn.length<=1?Cn[0]:function(mr){vt.forEach(function(Zr){ft(Zr,mr)})}}function gt(){for(var At=arguments.length,vt=new Array(At),On=0;On<At;On++)vt[On]=arguments[On];return $e(function(){return We.apply(void 0,vt)},vt,function(Cn,mr){return Cn.length===mr.length&&Cn.every(function(Zr,Zt){return Zr===mr[Zt]})})}function kt(At){var vt,On,Cn=isMemo(At)?At.type.type:At.type;return!(typeof Cn=="function"&&!((vt=Cn.prototype)!==null&&vt!==void 0&&vt.render)||typeof At=="function"&&!((On=At.prototype)!==null&&On!==void 0&&On.render))}var xt=function(vt){var On=vt.className,Cn=vt.customizeIcon,mr=vt.customizeIconProps,Zr=vt.onMouseDown,Zt=vt.onClick,Ht=vt.children,tn;return typeof Cn=="function"?tn=Cn(mr):tn=Cn,De.createElement("span",{className:On,onMouseDown:function(fr){fr.preventDefault(),Zr&&Zr(fr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Zt,"aria-hidden":!0},tn!==void 0?tn:De.createElement("span",{className:fe()(On.split(/\s+/).map(function(xn){return"".concat(xn,"-icon")}))},Ht))},et=xt;function Fe(At,vt,On,Cn,mr){var Zr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Zt=arguments.length>6?arguments[6]:void 0,Ht=arguments.length>7?arguments[7]:void 0,tn=De.useMemo(function(){if((0,pe.Z)(Cn)==="object")return Cn.clearIcon;if(mr)return mr},[Cn,mr]),xn=De.useMemo(function(){return!!(!Zr&&Cn&&(On.length||Zt)&&!(Ht==="combobox"&&Zt===""))},[Cn,Zr,On.length,Zt,Ht]);return{allowClear:xn,clearIcon:De.createElement(et,{className:"".concat(At,"-clear"),onMouseDown:vt,customizeIcon:tn},"\xD7")}}var Dt=De.createContext(null);function qt(){return De.useContext(Dt)}function Xt(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,vt=De.useState(!1),On=(0,de.Z)(vt,2),Cn=On[0],mr=On[1],Zr=De.useRef(null),Zt=function(){window.clearTimeout(Zr.current)};De.useEffect(function(){return Zt},[]);var Ht=function(xn,fr){Zt(),Zr.current=window.setTimeout(function(){mr(xn),fr&&fr()},At)};return[Cn,Ht,Zt]}function Et(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,vt=De.useRef(null),On=De.useRef(null);De.useEffect(function(){return function(){window.clearTimeout(On.current)}},[]);function Cn(mr){(mr||vt.current===null)&&(vt.current=mr),window.clearTimeout(On.current),On.current=window.setTimeout(function(){vt.current=null},At)}return[function(){return vt.current},Cn]}function zt(At,vt,On,Cn){var mr=De.useRef(null);mr.current={open:vt,triggerOpen:On,customizedTrigger:Cn},De.useEffect(function(){function Zr(Zt){var Ht;if(!((Ht=mr.current)!==null&&Ht!==void 0&&Ht.customizedTrigger)){var tn=Zt.target;tn.shadowRoot&&Zt.composed&&(tn=Zt.composedPath()[0]||tn),mr.current.open&&At().filter(function(xn){return xn}).every(function(xn){return!xn.contains(tn)&&xn!==tn})&&mr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Zr),function(){return window.removeEventListener("mousedown",Zr)}},[])}var Yt=`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`,Vn=`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`,Pn="".concat(Yt," ").concat(Vn).split(/[\s\n]+/),_t="aria-",pn="data-";function sr(At,vt){return At.indexOf(vt)===0}function Tn(At){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On;vt===!1?On={aria:!0,data:!0,attr:!0}:vt===!0?On={aria:!0}:On=(0,Be.Z)({},vt);var Cn={};return Object.keys(At).forEach(function(mr){(On.aria&&(mr==="role"||sr(mr,_t))||On.data&&sr(mr,pn)||On.attr&&Pn.includes(mr))&&(Cn[mr]=At[mr])}),Cn}var Oe=te(48555),me=te(14075),he=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ge=void 0;function ve(At,vt){var On=At.prefixCls,Cn=At.invalidate,mr=At.item,Zr=At.renderItem,Zt=At.responsive,Ht=At.responsiveDisabled,tn=At.registerSize,xn=At.itemKey,fr=At.className,wr=At.style,lr=At.children,kr=At.display,di=At.order,Ni=At.component,Si=Ni===void 0?"div":Ni,Jr=(0,Se.Z)(At,he),Bi=Zt&&!kr;function Wi(Ca){tn(xn,Ca)}De.useEffect(function(){return function(){Wi(null)}},[]);var da=Zr&&mr!==ge?Zr(mr):lr,Vi;Cn||(Vi={opacity:Bi?0:1,height:Bi?0:ge,overflowY:Bi?"hidden":ge,order:Zt?di:ge,pointerEvents:Bi?"none":ge,position:Bi?"absolute":ge});var Ei={};Bi&&(Ei["aria-hidden"]=!0);var ga=De.createElement(Si,(0,Ie.Z)({className:fe()(!Cn&&On,fr),style:(0,Be.Z)((0,Be.Z)({},Vi),wr)},Ei,Jr,{ref:vt}),da);return Zt&&(ga=De.createElement(Oe.Z,{onResize:function(fo){var Bo=fo.offsetWidth;Wi(Bo)},disabled:Ht},ga)),ga}var se=De.forwardRef(ve);se.displayName="Item";var Ke=se,bt=te(77527),Wt=te(73935),yn=te(96523);function bn(At){if(typeof MessageChannel=="undefined")(0,yn.Z)(At);else{var vt=new MessageChannel;vt.port1.onmessage=function(){return At()},vt.port2.postMessage(void 0)}}function cn(){var At=De.useRef(null),vt=function(Cn){At.current||(At.current=[],bn(function(){(0,Wt.unstable_batchedUpdates)(function(){At.current.forEach(function(mr){mr()}),At.current=null})})),At.current.push(Cn)};return vt}function wn(At,vt){var On=De.useState(vt),Cn=(0,de.Z)(On,2),mr=Cn[0],Zr=Cn[1],Zt=(0,bt.Z)(function(Ht){At(function(){Zr(Ht)})});return[mr,Zt]}var Tt=De.createContext(null),nn=["component"],fn=["className"],sn=["className"],an=function(vt,On){var Cn=De.useContext(Tt);if(!Cn){var mr=vt.component,Zr=mr===void 0?"div":mr,Zt=(0,Se.Z)(vt,nn);return De.createElement(Zr,(0,Ie.Z)({},Zt,{ref:On}))}var Ht=Cn.className,tn=(0,Se.Z)(Cn,fn),xn=vt.className,fr=(0,Se.Z)(vt,sn);return De.createElement(Tt.Provider,{value:null},De.createElement(Ke,(0,Ie.Z)({ref:On,className:fe()(Ht,xn)},tn,fr)))},xr=De.forwardRef(an);xr.displayName="RawItem";var Lt=xr,Vt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],cr="responsive",En="invalidate";function en(At){return"+ ".concat(At.length," ...")}function Fr(At,vt){var On=At.prefixCls,Cn=On===void 0?"rc-overflow":On,mr=At.data,Zr=mr===void 0?[]:mr,Zt=At.renderItem,Ht=At.renderRawItem,tn=At.itemKey,xn=At.itemWidth,fr=xn===void 0?10:xn,wr=At.ssr,lr=At.style,kr=At.className,di=At.maxCount,Ni=At.renderRest,Si=At.renderRawRest,Jr=At.suffix,Bi=At.component,Wi=Bi===void 0?"div":Bi,da=At.itemComponent,Vi=At.onVisibleChange,Ei=(0,Se.Z)(At,Vt),ga=wr==="full",Ca=cn(),fo=wn(Ca,null),Bo=(0,de.Z)(fo,2),xo=Bo[0],Jt=Bo[1],rn=xo||0,kn=wn(Ca,new Map),zr=(0,de.Z)(kn,2),Mr=zr[0],tr=zr[1],yr=wn(Ca,0),Ln=(0,de.Z)(yr,2),Xn=Ln[0],qr=Ln[1],Pi=wn(Ca,0),Da=(0,de.Z)(Pi,2),la=Da[0],La=Da[1],mo=wn(Ca,0),Ui=(0,de.Z)(mo,2),pi=Ui[0],ri=Ui[1],Xa=(0,De.useState)(null),ya=(0,de.Z)(Xa,2),to=ya[0],Ba=ya[1],Ua=(0,De.useState)(null),ko=(0,de.Z)(Ua,2),Va=ko[0],qi=ko[1],So=De.useMemo(function(){return Va===null&&ga?Number.MAX_SAFE_INTEGER:Va||0},[Va,xo]),Ro=(0,De.useState)(!1),fl=(0,de.Z)(Ro,2),Al=fl[0],jt=fl[1],dn="".concat(Cn,"-item"),Mn=Math.max(Xn,la),ur=di===cr,Qi=Zr.length&&ur,dr=di===En,ii=Qi||typeof di=="number"&&Zr.length>di,si=(0,De.useMemo)(function(){var Gn=Zr;return Qi?xo===null&&ga?Gn=Zr:Gn=Zr.slice(0,Math.min(Zr.length,rn/fr)):typeof di=="number"&&(Gn=Zr.slice(0,di)),Gn},[Zr,fr,xo,di,Qi]),ki=(0,De.useMemo)(function(){return Qi?Zr.slice(So+1):Zr.slice(si.length)},[Zr,si,Qi,So]),Yi=(0,De.useCallback)(function(Gn,_n){var Pr;return typeof tn=="function"?tn(Gn):(Pr=tn&&(Gn==null?void 0:Gn[tn]))!==null&&Pr!==void 0?Pr:_n},[tn]),Lr=(0,De.useCallback)(Zt||function(Gn){return Gn},[Zt]);function ia(Gn,_n,Pr){Va===Gn&&(_n===void 0||_n===to)||(qi(Gn),Pr||(jt(Gn<Zr.length-1),Vi==null||Vi(Gn)),_n!==void 0&&Ba(_n))}function Ha(Gn,_n){Jt(_n.clientWidth)}function ro(Gn,_n){tr(function(Pr){var Kr=new Map(Pr);return _n===null?Kr.delete(Gn):Kr.set(Gn,_n),Kr})}function Xi(Gn,_n){La(_n),qr(la)}function Wa(Gn,_n){ri(_n)}function _i(Gn){return Mr.get(Yi(si[Gn],Gn))}(0,me.Z)(function(){if(rn&&typeof Mn=="number"&&si){var Gn=pi,_n=si.length,Pr=_n-1;if(!_n){ia(0,null);return}for(var Kr=0;Kr<_n;Kr+=1){var Er=_i(Kr);if(ga&&(Er=Er||0),Er===void 0){ia(Kr-1,void 0,!0);break}if(Gn+=Er,Pr===0&&Gn<=rn||Kr===Pr-1&&Gn+_i(Pr)<=rn){ia(Pr,null);break}else if(Gn+Mn>rn){ia(Kr-1,Gn-Er-pi+la);break}}Jr&&_i(0)+pi>rn&&Ba(null)}},[rn,Mr,la,pi,Yi,si]);var jr=Al&&!!ki.length,li={};to!==null&&Qi&&(li={position:"absolute",left:to,top:0});var va={prefixCls:dn,responsive:Qi,component:da,invalidate:dr},tt=Ht?function(Gn,_n){var Pr=Yi(Gn,_n);return De.createElement(Tt.Provider,{key:Pr,value:(0,Be.Z)((0,Be.Z)({},va),{},{order:_n,item:Gn,itemKey:Pr,registerSize:ro,display:_n<=So})},Ht(Gn,_n))}:function(Gn,_n){var Pr=Yi(Gn,_n);return De.createElement(Ke,(0,Ie.Z)({},va,{order:_n,key:Pr,item:Gn,renderItem:Lr,itemKey:Pr,registerSize:ro,display:_n<=So}))},nt,Qt={order:jr?So:Number.MAX_SAFE_INTEGER,className:"".concat(dn,"-rest"),registerSize:Xi,display:jr};if(Si)Si&&(nt=De.createElement(Tt.Provider,{value:(0,Be.Z)((0,Be.Z)({},va),Qt)},Si(ki)));else{var Kt=Ni||en;nt=De.createElement(Ke,(0,Ie.Z)({},va,Qt),typeof Kt=="function"?Kt(ki):Kt)}var Bn=De.createElement(Wi,(0,Ie.Z)({className:fe()(!dr&&Cn,kr),style:lr,ref:vt},Ei),si.map(tt),ii?nt:null,Jr&&De.createElement(Ke,(0,Ie.Z)({},va,{responsive:ur,responsiveDisabled:!Qi,order:So,className:"".concat(dn,"-suffix"),registerSize:Wa,display:!0,style:li}),Jr));return ur&&(Bn=De.createElement(Oe.Z,{onResize:Ha,disabled:!Qi},Bn)),Bn}var Ur=De.forwardRef(Fr);Ur.displayName="Overflow",Ur.Item=Lt,Ur.RESPONSIVE=cr,Ur.INVALIDATE=En;var ai=Ur,ei=ai,Mi=function(vt,On){var Cn,mr,Zr=vt.prefixCls,Zt=vt.id,Ht=vt.inputElement,tn=vt.disabled,xn=vt.tabIndex,fr=vt.autoFocus,wr=vt.autoComplete,lr=vt.editable,kr=vt.activeDescendantId,di=vt.value,Ni=vt.maxLength,Si=vt.onKeyDown,Jr=vt.onMouseDown,Bi=vt.onChange,Wi=vt.onPaste,da=vt.onCompositionStart,Vi=vt.onCompositionEnd,Ei=vt.open,ga=vt.attrs,Ca=Ht||De.createElement("input",null),fo=Ca,Bo=fo.ref,xo=fo.props,Jt=xo.onKeyDown,rn=xo.onChange,kn=xo.onMouseDown,zr=xo.onCompositionStart,Mr=xo.onCompositionEnd,tr=xo.style;return"maxLength"in Ca.props,Ca=De.cloneElement(Ca,(0,Be.Z)((0,Be.Z)((0,Be.Z)({type:"search"},xo),{},{id:Zt,ref:We(On,Bo),disabled:tn,tabIndex:xn,autoComplete:wr||"off",autoFocus:fr,className:fe()("".concat(Zr,"-selection-search-input"),(Cn=Ca)===null||Cn===void 0||(mr=Cn.props)===null||mr===void 0?void 0:mr.className),role:"combobox","aria-label":"Search","aria-expanded":Ei||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Zt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Zt,"_list"),"aria-activedescendant":Ei?kr:void 0},ga),{},{value:lr?di:"",maxLength:Ni,readOnly:!lr,unselectable:lr?null:"on",style:(0,Be.Z)((0,Be.Z)({},tr),{},{opacity:lr?null:0}),onKeyDown:function(Ln){Si(Ln),Jt&&Jt(Ln)},onMouseDown:function(Ln){Jr(Ln),kn&&kn(Ln)},onChange:function(Ln){Bi(Ln),rn&&rn(Ln)},onCompositionStart:function(Ln){da(Ln),zr&&zr(Ln)},onCompositionEnd:function(Ln){Vi(Ln),Mr&&Mr(Ln)},onPaste:Wi})),Ca},ci=De.forwardRef(Mi);ci.displayName="Input";var Qn=ci;function Or(At){return Array.isArray(At)?At:At!==void 0?[At]:[]}var Hr=typeof window!="undefined"&&window.document&&window.document.documentElement,vi=Hr;function Zi(At){return At!=null}function $t(At){return!At&&At!==0}function $n(At){return["string","number"].includes((0,pe.Z)(At))}function mn(At){var vt=void 0;return At&&($n(At.title)?vt=At.title.toString():$n(At.label)&&(vt=At.label.toString())),vt}function Yn(At,vt){vi?De.useLayoutEffect(At,vt):De.useEffect(At,vt)}function Dr(At){var vt;return(vt=At.key)!==null&&vt!==void 0?vt:At.value}var hi=function(vt){vt.preventDefault(),vt.stopPropagation()},oi=function(vt){var On=vt.id,Cn=vt.prefixCls,mr=vt.values,Zr=vt.open,Zt=vt.searchValue,Ht=vt.autoClearSearchValue,tn=vt.inputRef,xn=vt.placeholder,fr=vt.disabled,wr=vt.mode,lr=vt.showSearch,kr=vt.autoFocus,di=vt.autoComplete,Ni=vt.activeDescendantId,Si=vt.tabIndex,Jr=vt.removeIcon,Bi=vt.maxTagCount,Wi=vt.maxTagTextLength,da=vt.maxTagPlaceholder,Vi=da===void 0?function(Ba){return"+ ".concat(Ba.length," ...")}:da,Ei=vt.tagRender,ga=vt.onToggleOpen,Ca=vt.onRemove,fo=vt.onInputChange,Bo=vt.onInputPaste,xo=vt.onInputKeyDown,Jt=vt.onInputMouseDown,rn=vt.onInputCompositionStart,kn=vt.onInputCompositionEnd,zr=De.useRef(null),Mr=(0,De.useState)(0),tr=(0,de.Z)(Mr,2),yr=tr[0],Ln=tr[1],Xn=(0,De.useState)(!1),qr=(0,de.Z)(Xn,2),Pi=qr[0],Da=qr[1],la="".concat(Cn,"-selection"),La=Zr||wr==="multiple"&&Ht===!1||wr==="tags"?Zt:"",mo=wr==="tags"||wr==="multiple"&&Ht===!1||lr&&(Zr||Pi);Yn(function(){Ln(zr.current.scrollWidth)},[La]);function Ui(Ba,Ua,ko,Va,qi){return De.createElement("span",{className:fe()("".concat(la,"-item"),(0,xe.Z)({},"".concat(la,"-item-disabled"),ko)),title:mn(Ba)},De.createElement("span",{className:"".concat(la,"-item-content")},Ua),Va&&De.createElement(et,{className:"".concat(la,"-item-remove"),onMouseDown:hi,onClick:qi,customizeIcon:Jr},"\xD7"))}function pi(Ba,Ua,ko,Va,qi){var So=function(fl){hi(fl),ga(!Zr)};return De.createElement("span",{onMouseDown:So},Ei({label:Ua,value:Ba,disabled:ko,closable:Va,onClose:qi}))}function ri(Ba){var Ua=Ba.disabled,ko=Ba.label,Va=Ba.value,qi=!fr&&!Ua,So=ko;if(typeof Wi=="number"&&(typeof ko=="string"||typeof ko=="number")){var Ro=String(So);Ro.length>Wi&&(So="".concat(Ro.slice(0,Wi),"..."))}var fl=function(jt){jt&&jt.stopPropagation(),Ca(Ba)};return typeof Ei=="function"?pi(Va,So,Ua,qi,fl):Ui(Ba,So,Ua,qi,fl)}function Xa(Ba){var Ua=typeof Vi=="function"?Vi(Ba):Vi;return Ui({title:Ua},Ua,!1)}var ya=De.createElement("div",{className:"".concat(la,"-search"),style:{width:yr},onFocus:function(){Da(!0)},onBlur:function(){Da(!1)}},De.createElement(Qn,{ref:tn,open:Zr,prefixCls:Cn,id:On,inputElement:null,disabled:fr,autoFocus:kr,autoComplete:di,editable:mo,activeDescendantId:Ni,value:La,onKeyDown:xo,onMouseDown:Jt,onChange:fo,onPaste:Bo,onCompositionStart:rn,onCompositionEnd:kn,tabIndex:Si,attrs:Tn(vt,!0)}),De.createElement("span",{ref:zr,className:"".concat(la,"-search-mirror"),"aria-hidden":!0},La,"\xA0")),to=De.createElement(ei,{prefixCls:"".concat(la,"-overflow"),data:mr,renderItem:ri,renderRest:Xa,suffix:ya,itemKey:Dr,maxCount:Bi});return De.createElement(De.Fragment,null,to,!mr.length&&!La&&De.createElement("span",{className:"".concat(la,"-placeholder")},xn))},Vr=oi,Ct=function(vt){var On=vt.inputElement,Cn=vt.prefixCls,mr=vt.id,Zr=vt.inputRef,Zt=vt.disabled,Ht=vt.autoFocus,tn=vt.autoComplete,xn=vt.activeDescendantId,fr=vt.mode,wr=vt.open,lr=vt.values,kr=vt.placeholder,di=vt.tabIndex,Ni=vt.showSearch,Si=vt.searchValue,Jr=vt.activeValue,Bi=vt.maxLength,Wi=vt.onInputKeyDown,da=vt.onInputMouseDown,Vi=vt.onInputChange,Ei=vt.onInputPaste,ga=vt.onInputCompositionStart,Ca=vt.onInputCompositionEnd,fo=vt.title,Bo=De.useState(!1),xo=(0,de.Z)(Bo,2),Jt=xo[0],rn=xo[1],kn=fr==="combobox",zr=kn||Ni,Mr=lr[0],tr=Si||"";kn&&Jr&&!Jt&&(tr=Jr),De.useEffect(function(){kn&&rn(!1)},[kn,Jr]);var yr=fr!=="combobox"&&!wr&&!Ni?!1:!!tr,Ln=fo===void 0?mn(Mr):fo,Xn=function(){if(Mr)return null;var Pi=yr?{visibility:"hidden"}:void 0;return De.createElement("span",{className:"".concat(Cn,"-selection-placeholder"),style:Pi},kr)};return De.createElement(De.Fragment,null,De.createElement("span",{className:"".concat(Cn,"-selection-search")},De.createElement(Qn,{ref:Zr,prefixCls:Cn,id:mr,open:wr,inputElement:On,disabled:Zt,autoFocus:Ht,autoComplete:tn,editable:zr,activeDescendantId:xn,value:tr,onKeyDown:Wi,onMouseDown:da,onChange:function(Pi){rn(!0),Vi(Pi)},onPaste:Ei,onCompositionStart:ga,onCompositionEnd:Ca,tabIndex:di,attrs:Tn(vt,!0),maxLength:kn?Bi:void 0})),!kn&&Mr?De.createElement("span",{className:"".concat(Cn,"-selection-item"),title:Ln,style:yr?{visibility:"hidden"}:void 0},Mr.label):null,Xn())},hn=Ct;function An(At){return![Me.ESC,Me.SHIFT,Me.BACKSPACE,Me.TAB,Me.WIN_KEY,Me.ALT,Me.META,Me.WIN_KEY_RIGHT,Me.CTRL,Me.SEMICOLON,Me.EQUALS,Me.CAPS_LOCK,Me.CONTEXT_MENU,Me.F1,Me.F2,Me.F3,Me.F4,Me.F5,Me.F6,Me.F7,Me.F8,Me.F9,Me.F10,Me.F11,Me.F12].includes(At)}var jn=function(vt,On){var Cn=(0,De.useRef)(null),mr=(0,De.useRef)(!1),Zr=vt.prefixCls,Zt=vt.open,Ht=vt.mode,tn=vt.showSearch,xn=vt.tokenWithEnter,fr=vt.autoClearSearchValue,wr=vt.onSearch,lr=vt.onSearchSubmit,kr=vt.onToggleOpen,di=vt.onInputKeyDown,Ni=vt.domRef;De.useImperativeHandle(On,function(){return{focus:function(){Cn.current.focus()},blur:function(){Cn.current.blur()}}});var Si=Et(0),Jr=(0,de.Z)(Si,2),Bi=Jr[0],Wi=Jr[1],da=function(tr){var yr=tr.which;(yr===Me.UP||yr===Me.DOWN)&&tr.preventDefault(),di&&di(tr),yr===Me.ENTER&&Ht==="tags"&&!mr.current&&!Zt&&(lr==null||lr(tr.target.value)),An(yr)&&kr(!0)},Vi=function(){Wi(!0)},Ei=(0,De.useRef)(null),ga=function(tr){wr(tr,!0,mr.current)!==!1&&kr(!0)},Ca=function(){mr.current=!0},fo=function(tr){mr.current=!1,Ht!=="combobox"&&ga(tr.target.value)},Bo=function(tr){var yr=tr.target.value;if(xn&&Ei.current&&/[\r\n]/.test(Ei.current)){var Ln=Ei.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yr=yr.replace(Ln,Ei.current)}Ei.current=null,ga(yr)},xo=function(tr){var yr=tr.clipboardData,Ln=yr.getData("text");Ei.current=Ln},Jt=function(tr){var yr=tr.target;if(yr!==Cn.current){var Ln=document.body.style.msTouchAction!==void 0;Ln?setTimeout(function(){Cn.current.focus()}):Cn.current.focus()}},rn=function(tr){var yr=Bi();tr.target!==Cn.current&&!yr&&Ht!=="combobox"&&tr.preventDefault(),(Ht!=="combobox"&&(!tn||!yr)||!Zt)&&(Zt&&fr!==!1&&wr("",!0,!1),kr())},kn={inputRef:Cn,onInputKeyDown:da,onInputMouseDown:Vi,onInputChange:Bo,onInputPaste:xo,onInputCompositionStart:Ca,onInputCompositionEnd:fo},zr=Ht==="multiple"||Ht==="tags"?De.createElement(Vr,(0,Ie.Z)({},vt,kn)):De.createElement(hn,(0,Ie.Z)({},vt,kn));return De.createElement("div",{ref:Ni,className:"".concat(Zr,"-selector"),onClick:Jt,onMouseDown:rn},zr)},Bt=De.forwardRef(jn);Bt.displayName="Selector";var on=Bt,Kn=te(62709),Dn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],rr=function(vt){var On=vt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:On,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:On,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:On,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:On,adjustY:1},htmlRegion:"scroll"}}},er=function(vt,On){var Cn=vt.prefixCls,mr=vt.disabled,Zr=vt.visible,Zt=vt.children,Ht=vt.popupElement,tn=vt.animation,xn=vt.transitionName,fr=vt.dropdownStyle,wr=vt.dropdownClassName,lr=vt.direction,kr=lr===void 0?"ltr":lr,di=vt.placement,Ni=vt.builtinPlacements,Si=vt.dropdownMatchSelectWidth,Jr=vt.dropdownRender,Bi=vt.dropdownAlign,Wi=vt.getPopupContainer,da=vt.empty,Vi=vt.getTriggerDOMNode,Ei=vt.onPopupVisibleChange,ga=vt.onPopupMouseEnter,Ca=(0,Se.Z)(vt,Dn),fo="".concat(Cn,"-dropdown"),Bo=Ht;Jr&&(Bo=Jr(Ht));var xo=De.useMemo(function(){return Ni||rr(Si)},[Ni,Si]),Jt=tn?"".concat(fo,"-").concat(tn):xn,rn=typeof Si=="number",kn=De.useMemo(function(){return rn?null:Si===!1?"minWidth":"width"},[Si,rn]),zr=fr;rn&&(zr=(0,Be.Z)((0,Be.Z)({},zr),{},{width:Si}));var Mr=De.useRef(null);return De.useImperativeHandle(On,function(){return{getPopupElement:function(){return Mr.current}}}),De.createElement(Kn.Z,(0,Ie.Z)({},Ca,{showAction:Ei?["click"]:[],hideAction:Ei?["click"]:[],popupPlacement:di||(kr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:xo,prefixCls:fo,popupTransitionName:Jt,popup:De.createElement("div",{ref:Mr,onMouseEnter:ga},Bo),stretch:kn,popupAlign:Bi,popupVisible:Zr,getPopupContainer:Wi,popupClassName:fe()(wr,(0,xe.Z)({},"".concat(fo,"-empty"),da)),popupStyle:zr,getTriggerDOMNode:Vi,onPopupVisibleChange:Ei}),Zt)},Gr=De.forwardRef(er);Gr.displayName="SelectTrigger";var ra=Gr,Oi=te(84506);function bi(At,vt){var On=At.key,Cn;return"value"in At&&(Cn=At.value),On!=null?On:Cn!==void 0?Cn:"rc-index-key-".concat(vt)}function Ji(At,vt){var On=At||{},Cn=On.label,mr=On.value,Zr=On.options,Zt=On.groupLabel,Ht=Cn||(vt?"children":"label");return{label:Ht,value:mr||"value",options:Zr||"options",groupLabel:Zt||Ht}}function Ti(At){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},On=vt.fieldNames,Cn=vt.childrenAsData,mr=[],Zr=Ji(On,!1),Zt=Zr.label,Ht=Zr.value,tn=Zr.options,xn=Zr.groupLabel;function fr(wr,lr){wr.forEach(function(kr){if(lr||!(tn in kr)){var di=kr[Ht];mr.push({key:bi(kr,mr.length),groupOption:lr,data:kr,label:kr[Zt],value:di})}else{var Ni=kr[xn];Ni===void 0&&Cn&&(Ni=kr.label),mr.push({key:bi(kr,mr.length),group:!0,data:kr,label:Ni}),fr(kr[tn],!0)}})}return fr(At,!1),mr}function ua(At){var vt=(0,Be.Z)({},At);return"props"in vt||Object.defineProperty(vt,"props",{get:function(){return ot(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),vt}}),vt}function br(At,vt){if(!vt||!vt.length)return null;var On=!1;function Cn(Zr,Zt){var Ht=(0,Oi.Z)(Zt),tn=Ht[0],xn=Ht.slice(1);if(!tn)return[Zr];var fr=Zr.split(tn);return On=On||fr.length>1,fr.reduce(function(wr,lr){return[].concat((0,Te.Z)(wr),(0,Te.Z)(Cn(lr,xn)))},[]).filter(function(wr){return wr})}var mr=Cn(At,vt);return On?mr:null}var Di=["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"],ni=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function No(At){return At==="tags"||At==="multiple"}var xa=De.forwardRef(function(At,vt){var On,Cn,mr=At.id,Zr=At.prefixCls,Zt=At.className,Ht=At.showSearch,tn=At.tagRender,xn=At.direction,fr=At.omitDomProps,wr=At.displayValues,lr=At.onDisplayValuesChange,kr=At.emptyOptions,di=At.notFoundContent,Ni=di===void 0?"Not Found":di,Si=At.onClear,Jr=At.mode,Bi=At.disabled,Wi=At.loading,da=At.getInputElement,Vi=At.getRawInputElement,Ei=At.open,ga=At.defaultOpen,Ca=At.onDropdownVisibleChange,fo=At.activeValue,Bo=At.onActiveValueChange,xo=At.activeDescendantId,Jt=At.searchValue,rn=At.autoClearSearchValue,kn=At.onSearch,zr=At.onSearchSplit,Mr=At.tokenSeparators,tr=At.allowClear,yr=At.suffixIcon,Ln=At.clearIcon,Xn=At.OptionList,qr=At.animation,Pi=At.transitionName,Da=At.dropdownStyle,la=At.dropdownClassName,La=At.dropdownMatchSelectWidth,mo=At.dropdownRender,Ui=At.dropdownAlign,pi=At.placement,ri=At.builtinPlacements,Xa=At.getPopupContainer,ya=At.showAction,to=ya===void 0?[]:ya,Ba=At.onFocus,Ua=At.onBlur,ko=At.onKeyUp,Va=At.onKeyDown,qi=At.onMouseDown,So=(0,Se.Z)(At,Di),Ro=No(Jr),fl=(Ht!==void 0?Ht:Ro)||Jr==="combobox",Al=(0,Be.Z)({},So);ni.forEach(function(Sa){delete Al[Sa]}),fr==null||fr.forEach(function(Sa){delete Al[Sa]});var jt=De.useState(!1),dn=(0,de.Z)(jt,2),Mn=dn[0],ur=dn[1];De.useEffect(function(){ur(ct())},[]);var Qi=De.useRef(null),dr=De.useRef(null),ii=De.useRef(null),si=De.useRef(null),ki=De.useRef(null),Yi=Xt(),Lr=(0,de.Z)(Yi,3),ia=Lr[0],Ha=Lr[1],ro=Lr[2];De.useImperativeHandle(vt,function(){var Sa,wa;return{focus:(Sa=si.current)===null||Sa===void 0?void 0:Sa.focus,blur:(wa=si.current)===null||wa===void 0?void 0:wa.blur,scrollTo:function(ca){var ba;return(ba=ki.current)===null||ba===void 0?void 0:ba.scrollTo(ca)}}});var Xi=De.useMemo(function(){var Sa;if(Jr!=="combobox")return Jt;var wa=(Sa=wr[0])===null||Sa===void 0?void 0:Sa.value;return typeof wa=="string"||typeof wa=="number"?String(wa):""},[Jt,Jr,wr]),Wa=Jr==="combobox"&&typeof da=="function"&&da()||null,_i=typeof Vi=="function"&&Vi(),jr=gt(dr,_i==null||(On=_i.props)===null||On===void 0?void 0:On.ref),li=De.useState(!1),va=(0,de.Z)(li,2),tt=va[0],nt=va[1];rt(function(){nt(!0)},[]);var Qt=Qe(!1,{defaultValue:ga,value:Ei}),Kt=(0,de.Z)(Qt,2),Bn=Kt[0],Gn=Kt[1],_n=tt?Bn:!1,Pr=!Ni&&kr;(Bi||Pr&&_n&&Jr==="combobox")&&(_n=!1);var Kr=Pr?!1:_n,Er=De.useCallback(function(Sa){var wa=Sa!==void 0?Sa:!_n;Bi||(Gn(wa),_n!==wa&&(Ca==null||Ca(wa)))},[Bi,_n,Gn,Ca]),ta=De.useMemo(function(){return(Mr||[]).some(function(Sa){return[`
|
|
|
`,`\r
|
|
|
`].includes(Sa)})},[Mr]),zi=function(wa,Qa,ca){var ba=!0,Ta=wa;Bo==null||Bo(null);var Eo=ca?null:br(wa,Mr);return Jr!=="combobox"&&Eo&&(Ta="",zr==null||zr(Eo),Er(!1),ba=!1),kn&&Xi!==Ta&&kn(Ta,{source:Qa?"typing":"effect"}),ba},ji=function(wa){!wa||!wa.trim()||kn(wa,{source:"submit"})};De.useEffect(function(){!_n&&!Ro&&Jr!=="combobox"&&zi("",!1,!1)},[_n]),De.useEffect(function(){Bn&&Bi&&Gn(!1),Bi&&Ha(!1)},[Bi]);var Li=Et(),ea=(0,de.Z)(Li,2),Hi=ea[0],ka=ea[1],vo=function(wa){var Qa=Hi(),ca=wa.which;if(ca===Me.ENTER&&(Jr!=="combobox"&&wa.preventDefault(),_n||Er(!0)),ka(!!Xi),ca===Me.BACKSPACE&&!Qa&&Ro&&!Xi&&wr.length){for(var ba=(0,Te.Z)(wr),Ta=null,Eo=ba.length-1;Eo>=0;Eo-=1){var al=ba[Eo];if(!al.disabled){ba.splice(Eo,1),Ta=al;break}}Ta&&lr(ba,{type:"remove",values:[Ta]})}for(var oa=arguments.length,Jo=new Array(oa>1?oa-1:0),Po=1;Po<oa;Po++)Jo[Po-1]=arguments[Po];if(_n&&ki.current){var ll;(ll=ki.current).onKeyDown.apply(ll,[wa].concat(Jo))}Va==null||Va.apply(void 0,[wa].concat(Jo))},Fo=function(wa){for(var Qa=arguments.length,ca=new Array(Qa>1?Qa-1:0),ba=1;ba<Qa;ba++)ca[ba-1]=arguments[ba];if(_n&&ki.current){var Ta;(Ta=ki.current).onKeyUp.apply(Ta,[wa].concat(ca))}ko==null||ko.apply(void 0,[wa].concat(ca))},Zo=function(wa){var Qa=wr.filter(function(ca){return ca!==wa});lr(Qa,{type:"remove",values:[wa]})},Ao=De.useRef(!1),qo=function(){Ha(!0),Bi||(Ba&&!Ao.current&&Ba.apply(void 0,arguments),to.includes("focus")&&Er(!0)),Ao.current=!0},go=function(){Ha(!1,function(){Ao.current=!1,Er(!1)}),!Bi&&(Xi&&(Jr==="tags"?kn(Xi,{source:"submit"}):Jr==="multiple"&&kn("",{source:"blur"})),Ua&&Ua.apply(void 0,arguments))},Io=[];De.useEffect(function(){return function(){Io.forEach(function(Sa){return clearTimeout(Sa)}),Io.splice(0,Io.length)}},[]);var Xo=function(wa){var Qa,ca=wa.target,ba=(Qa=ii.current)===null||Qa===void 0?void 0:Qa.getPopupElement();if(ba&&ba.contains(ca)){var Ta=setTimeout(function(){var Jo=Io.indexOf(Ta);if(Jo!==-1&&Io.splice(Jo,1),ro(),!Mn&&!ba.contains(document.activeElement)){var Po;(Po=si.current)===null||Po===void 0||Po.focus()}});Io.push(Ta)}for(var Eo=arguments.length,al=new Array(Eo>1?Eo-1:0),oa=1;oa<Eo;oa++)al[oa-1]=arguments[oa];qi==null||qi.apply(void 0,[wa].concat(al))},Fa=De.useState({}),_a=(0,de.Z)(Fa,2),no=_a[1];function Yo(){no({})}var Wo;_i&&(Wo=function(wa){Er(wa)}),zt(function(){var Sa;return[Qi.current,(Sa=ii.current)===null||Sa===void 0?void 0:Sa.getPopupElement()]},Kr,Er,!!_i);var il=De.useMemo(function(){return(0,Be.Z)((0,Be.Z)({},At),{},{notFoundContent:Ni,open:_n,triggerOpen:Kr,id:mr,showSearch:fl,multiple:Ro,toggleOpen:Er})},[At,Ni,Kr,_n,mr,fl,Ro,Er]),el=!!yr||Wi,cl;el&&(cl=De.createElement(et,{className:fe()("".concat(Zr,"-arrow"),(0,xe.Z)({},"".concat(Zr,"-arrow-loading"),Wi)),customizeIcon:yr,customizeIconProps:{loading:Wi,searchValue:Xi,open:_n,focused:ia,showSearch:fl}}));var vl=function(){var wa;Si==null||Si(),(wa=si.current)===null||wa===void 0||wa.focus(),lr([],{type:"clear",values:wr}),zi("",!1,!1)},gl=Fe(Zr,vl,wr,tr,Ln,Bi,Xi,Jr),kl=gl.allowClear,gr=gl.clearIcon,Gi=De.createElement(Xn,{ref:ki}),ho=fe()(Zr,Zt,(Cn={},(0,xe.Z)(Cn,"".concat(Zr,"-focused"),ia),(0,xe.Z)(Cn,"".concat(Zr,"-multiple"),Ro),(0,xe.Z)(Cn,"".concat(Zr,"-single"),!Ro),(0,xe.Z)(Cn,"".concat(Zr,"-allow-clear"),tr),(0,xe.Z)(Cn,"".concat(Zr,"-show-arrow"),el),(0,xe.Z)(Cn,"".concat(Zr,"-disabled"),Bi),(0,xe.Z)(Cn,"".concat(Zr,"-loading"),Wi),(0,xe.Z)(Cn,"".concat(Zr,"-open"),_n),(0,xe.Z)(Cn,"".concat(Zr,"-customize-input"),Wa),(0,xe.Z)(Cn,"".concat(Zr,"-show-search"),fl),Cn)),Ga=De.createElement(ra,{ref:ii,disabled:Bi,prefixCls:Zr,visible:Kr,popupElement:Gi,animation:qr,transitionName:Pi,dropdownStyle:Da,dropdownClassName:la,direction:xn,dropdownMatchSelectWidth:La,dropdownRender:mo,dropdownAlign:Ui,placement:pi,builtinPlacements:ri,getPopupContainer:Xa,empty:kr,getTriggerDOMNode:function(){return dr.current},onPopupVisibleChange:Wo,onPopupMouseEnter:Yo},_i?De.cloneElement(_i,{ref:jr}):De.createElement(on,(0,Ie.Z)({},At,{domRef:dr,prefixCls:Zr,inputElement:Wa,ref:si,id:mr,showSearch:fl,autoClearSearchValue:rn,mode:Jr,activeDescendantId:xo,tagRender:tn,values:wr,open:_n,onToggleOpen:Er,activeValue:fo,searchValue:Xi,onSearch:zi,onSearchSubmit:ji,onRemove:Zo,tokenWithEnter:ta}))),mi;return _i?mi=Ga:mi=De.createElement("div",(0,Ie.Z)({className:ho},Al,{ref:Qi,onMouseDown:Xo,onKeyDown:vo,onKeyUp:Fo,onFocus:qo,onBlur:go}),ia&&!_n&&De.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(wr.map(function(Sa){var wa=Sa.label,Qa=Sa.value;return["number","string"].includes((0,pe.Z)(wa))?wa:Qa}).join(", "))),Ga,cl,kl&&gr),De.createElement(Dt.Provider,{value:il},mi)}),za=xa,Lo=function(At,vt){var On=De.useRef({values:new Map,options:new Map}),Cn=De.useMemo(function(){var Zr=On.current,Zt=Zr.values,Ht=Zr.options,tn=At.map(function(wr){if(wr.label===void 0){var lr;return(0,Be.Z)((0,Be.Z)({},wr),{},{label:(lr=Zt.get(wr.value))===null||lr===void 0?void 0:lr.label})}return wr}),xn=new Map,fr=new Map;return tn.forEach(function(wr){xn.set(wr.value,wr),fr.set(wr.value,vt.get(wr.value)||Ht.get(wr.value))}),On.current.values=xn,On.current.options=fr,tn},[At,vt]),mr=De.useCallback(function(Zr){return vt.get(Zr)||On.current.options.get(Zr)},[vt]);return[Cn,mr]};function Ea(At,vt){return Or(At).join("").toUpperCase().includes(vt)}var zo=function(At,vt,On,Cn,mr){return De.useMemo(function(){if(!On||Cn===!1)return At;var Zr=vt.options,Zt=vt.label,Ht=vt.value,tn=[],xn=typeof Cn=="function",fr=On.toUpperCase(),wr=xn?Cn:function(kr,di){return mr?Ea(di[mr],fr):di[Zr]?Ea(di[Zt!=="children"?Zt:"label"],fr):Ea(di[Ht],fr)},lr=xn?function(kr){return ua(kr)}:function(kr){return kr};return At.forEach(function(kr){if(kr[Zr]){var di=wr(On,lr(kr));if(di)tn.push(kr);else{var Ni=kr[Zr].filter(function(Si){return wr(On,lr(Si))});Ni.length&&tn.push((0,Be.Z)((0,Be.Z)({},kr),{},(0,xe.Z)({},Zr,Ni)))}return}wr(On,lr(kr))&&tn.push(kr)}),tn},[At,Cn,mr,On,vt])},gi=0,Cl=Pe();function pl(){var At;return Cl?(At=gi,gi+=1):At="TEST_OR_SSR",At}function jl(At){var vt=De.useState(),On=(0,de.Z)(vt,2),Cn=On[0],mr=On[1];return De.useEffect(function(){mr("rc_select_".concat(pl()))},[]),At||Cn}function Ko(At){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},On=[];return De.Children.forEach(At,function(Cn){Cn==null&&!vt.keepEmpty||(Array.isArray(Cn)?On=On.concat(Ko(Cn)):(0,pt.isFragment)(Cn)&&Cn.props?On=On.concat(Ko(Cn.props.children,vt)):On.push(Cn))}),On}var Do=["children","value"],Na=["children"];function ml(At){var vt=At,On=vt.key,Cn=vt.props,mr=Cn.children,Zr=Cn.value,Zt=(0,Se.Z)(Cn,Do);return(0,Be.Z)({key:On,value:Zr!==void 0?Zr:On,children:mr},Zt)}function nl(At){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ko(At).map(function(On,Cn){if(!De.isValidElement(On)||!On.type)return null;var mr=On,Zr=mr.type.isSelectOptGroup,Zt=mr.key,Ht=mr.props,tn=Ht.children,xn=(0,Se.Z)(Ht,Na);return vt||!Zr?ml(On):(0,Be.Z)((0,Be.Z)({key:"__RC_SELECT_GRP__".concat(Zt===null?Cn:Zt,"__"),label:Zt},xn),{},{options:nl(tn)})}).filter(function(On){return On})}function Sl(At,vt,On,Cn,mr){return De.useMemo(function(){var Zr=At,Zt=!At;Zt&&(Zr=nl(vt));var Ht=new Map,tn=new Map,xn=function(lr,kr,di){di&&typeof di=="string"&&lr.set(kr[di],kr)};function fr(wr){for(var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kr=0;kr<wr.length;kr+=1){var di=wr[kr];!di[On.options]||lr?(Ht.set(di[On.value],di),xn(tn,di,On.label),xn(tn,di,Cn),xn(tn,di,mr)):fr(di[On.options],!0)}}return fr(Zr),{options:Zr,valueOptions:Ht,labelOptions:tn}},[At,vt,On,Cn,mr])}function Rl(At){var vt=De.useRef();vt.current=At;var On=De.useCallback(function(){return vt.current.apply(vt,arguments)},[]);return On}var Ll=function(){return null};Ll.isSelectOptGroup=!0;var wl=Ll,Vl=function(){return null};Vl.isSelectOption=!0;var _l=Vl;function Fl(At,vt){var On=(0,Be.Z)({},At);return Array.isArray(vt)&&vt.forEach(function(Cn){delete On[Cn]}),On}var Vo=te(73299),Wn=De.createContext(null),Nn=Wn;function Ir(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Cr=["disabled","title","children","style","className"];function Ii(At){return typeof At=="string"||typeof At=="number"}var Ma=function(vt,On){var Cn=qt(),mr=Cn.prefixCls,Zr=Cn.id,Zt=Cn.open,Ht=Cn.multiple,tn=Cn.mode,xn=Cn.searchValue,fr=Cn.toggleOpen,wr=Cn.notFoundContent,lr=Cn.onPopupScroll,kr=De.useContext(Nn),di=kr.flattenOptions,Ni=kr.onActiveValue,Si=kr.defaultActiveFirstOption,Jr=kr.onSelect,Bi=kr.menuItemSelectedIcon,Wi=kr.rawValues,da=kr.fieldNames,Vi=kr.virtual,Ei=kr.direction,ga=kr.listHeight,Ca=kr.listItemHeight,fo="".concat(mr,"-item"),Bo=$e(function(){return di},[Zt,di],function(Ui,pi){return pi[0]&&Ui[1]!==pi[1]}),xo=De.useRef(null),Jt=function(pi){pi.preventDefault()},rn=function(pi){xo.current&&xo.current.scrollTo(typeof pi=="number"?{index:pi}:pi)},kn=function(pi){for(var ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xa=Bo.length,ya=0;ya<Xa;ya+=1){var to=(pi+ya*ri+Xa)%Xa,Ba=Bo[to],Ua=Ba.group,ko=Ba.data;if(!Ua&&!ko.disabled)return to}return-1},zr=De.useState(function(){return kn(0)}),Mr=(0,de.Z)(zr,2),tr=Mr[0],yr=Mr[1],Ln=function(pi){var ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;yr(pi);var Xa={source:ri?"keyboard":"mouse"},ya=Bo[pi];if(!ya){Ni(null,-1,Xa);return}Ni(ya.value,pi,Xa)};(0,De.useEffect)(function(){Ln(Si!==!1?kn(0):-1)},[Bo.length,xn]);var Xn=De.useCallback(function(Ui){return Wi.has(Ui)&&tn!=="combobox"},[tn,(0,Te.Z)(Wi).toString(),Wi.size]);(0,De.useEffect)(function(){var Ui=setTimeout(function(){if(!Ht&&Zt&&Wi.size===1){var ri=Array.from(Wi)[0],Xa=Bo.findIndex(function(ya){var to=ya.data;return to.value===ri});Xa!==-1&&(Ln(Xa),rn(Xa))}});if(Zt){var pi;(pi=xo.current)===null||pi===void 0||pi.scrollTo(void 0)}return function(){return clearTimeout(Ui)}},[Zt,xn,di.length]);var qr=function(pi){pi!==void 0&&Jr(pi,{selected:!Wi.has(pi)}),Ht||fr(!1)};if(De.useImperativeHandle(On,function(){return{onKeyDown:function(pi){var ri=pi.which,Xa=pi.ctrlKey;switch(ri){case Me.N:case Me.P:case Me.UP:case Me.DOWN:{var ya=0;if(ri===Me.UP?ya=-1:ri===Me.DOWN?ya=1:Ir()&&Xa&&(ri===Me.N?ya=1:ri===Me.P&&(ya=-1)),ya!==0){var to=kn(tr+ya,ya);rn(to),Ln(to,!0)}break}case Me.ENTER:{var Ba=Bo[tr];Ba&&!Ba.data.disabled?qr(Ba.value):qr(void 0),Zt&&pi.preventDefault();break}case Me.ESC:fr(!1),Zt&&pi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pi){rn(pi)}}}),Bo.length===0)return De.createElement("div",{role:"listbox",id:"".concat(Zr,"_list"),className:"".concat(fo,"-empty"),onMouseDown:Jt},wr);var Pi=Object.keys(da).map(function(Ui){return da[Ui]}),Da=function(pi){return pi.label};function la(Ui,pi){var ri=Ui.group;return{role:ri?"presentation":"option",id:"".concat(Zr,"_list_").concat(pi)}}var La=function(pi){var ri=Bo[pi];if(!ri)return null;var Xa=ri.data||{},ya=Xa.value,to=ri.group,Ba=Tn(Xa,!0),Ua=Da(ri);return ri?De.createElement("div",(0,Ie.Z)({"aria-label":typeof Ua=="string"&&!to?Ua:null},Ba,{key:pi},la(ri,pi),{"aria-selected":Xn(ya)}),ya):null},mo={role:"listbox",id:"".concat(Zr,"_list")};return De.createElement(De.Fragment,null,Vi&&De.createElement("div",(0,Ie.Z)({},mo,{style:{height:0,width:0,overflow:"hidden"}}),La(tr-1),La(tr),La(tr+1)),De.createElement(Vo.Z,{itemKey:"key",ref:xo,data:Bo,height:ga,itemHeight:Ca,fullHeight:!1,onMouseDown:Jt,onScroll:lr,virtual:Vi,direction:Ei,innerProps:Vi?null:mo},function(Ui,pi){var ri,Xa=Ui.group,ya=Ui.groupOption,to=Ui.data,Ba=Ui.label,Ua=Ui.value,ko=to.key;if(Xa){var Va,qi=(Va=to.title)!==null&&Va!==void 0?Va:Ii(Ba)?Ba.toString():void 0;return De.createElement("div",{className:fe()(fo,"".concat(fo,"-group")),title:qi},Ba!==void 0?Ba:ko)}var So=to.disabled,Ro=to.title,fl=to.children,Al=to.style,jt=to.className,dn=(0,Se.Z)(to,Cr),Mn=Fl(dn,Pi),ur=Xn(Ua),Qi="".concat(fo,"-option"),dr=fe()(fo,Qi,jt,(ri={},(0,xe.Z)(ri,"".concat(Qi,"-grouped"),ya),(0,xe.Z)(ri,"".concat(Qi,"-active"),tr===pi&&!So),(0,xe.Z)(ri,"".concat(Qi,"-disabled"),So),(0,xe.Z)(ri,"".concat(Qi,"-selected"),ur),ri)),ii=Da(Ui),si=!Bi||typeof Bi=="function"||ur,ki=typeof ii=="number"?ii:ii||Ua,Yi=Ii(ki)?ki.toString():void 0;return Ro!==void 0&&(Yi=Ro),De.createElement("div",(0,Ie.Z)({},Tn(Mn),Vi?{}:la(Ui,pi),{"aria-selected":ur,className:dr,title:Yi,onMouseMove:function(){tr===pi||So||Ln(pi)},onClick:function(){So||qr(Ua)},style:Al}),De.createElement("div",{className:"".concat(Qi,"-content")},ki),De.isValidElement(Bi)||ur,si&&De.createElement(et,{className:"".concat(fo,"-option-state"),customizeIcon:Bi,customizeIconProps:{isSelected:ur}},ur?"\u2713":null))}))},Ka=De.forwardRef(Ma);Ka.displayName="OptionList";var Ya=Ka;function $a(At){var vt=At.mode,On=At.options,Cn=At.children,mr=At.backfill,Zr=At.allowClear,Zt=At.placeholder,Ht=At.getInputElement,tn=At.showSearch,xn=At.onSearch,fr=At.defaultOpen,wr=At.autoFocus,lr=At.labelInValue,kr=At.value,di=At.inputValue,Ni=At.optionLabelProp,Si=isMultiple(vt),Jr=tn!==void 0?tn:Si||vt==="combobox",Bi=On||convertChildrenToData(Cn);if(warning(vt!=="tags"||Bi.every(function(Ei){return!Ei.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),vt==="tags"||vt==="combobox"){var Wi=Bi.some(function(Ei){return Ei.options?Ei.options.some(function(ga){return typeof("value"in ga?ga.value:ga.key)=="number"}):typeof("value"in Ei?Ei.value:Ei.key)=="number"});warning(!Wi,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(vt!=="combobox"||!Ni,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(vt==="combobox"||!mr,"`backfill` only works with `combobox` mode."),warning(vt==="combobox"||!Ht,"`getInputElement` only work with `combobox` mode."),noteOnce(vt!=="combobox"||!Ht||!Zr||!Zt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xn&&!Jr&&vt!=="combobox"&&vt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!fr||wr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),kr!=null){var da=toArray(kr);warning(!lr||da.every(function(Ei){return _typeof(Ei)==="object"&&("key"in Ei||"value"in Ei)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Si||Array.isArray(kr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Cn){var Vi=null;toNodeArray(Cn).some(function(Ei){if(!React.isValidElement(Ei)||!Ei.type)return!1;var ga=Ei,Ca=ga.type;if(Ca.isSelectOption)return!1;if(Ca.isSelectOptGroup){var fo=toNodeArray(Ei.props.children).every(function(Bo){return!React.isValidElement(Bo)||!Ei.type||Bo.type.isSelectOption?!0:(Vi=Bo.type,!1)});return!fo}return Vi=Ca,!0}),Vi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Vi.displayName||Vi.name||Vi,"`.")),warning(di===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Za(At,vt){if(At){var On=function Cn(mr){for(var Zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zt=0;Zt<mr.length;Zt++){var Ht=mr[Zt];if(Ht[vt==null?void 0:vt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Zr&&Array.isArray(Ht[vt==null?void 0:vt.options])&&Cn(Ht[vt==null?void 0:vt.options],!0))break}};On(At)}}var Go=null,Ho=["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"],Qo=["inputValue"];function vr(At){return!At||(0,pe.Z)(At)!=="object"}var Sr=De.forwardRef(function(At,vt){var On=At.id,Cn=At.mode,mr=At.prefixCls,Zr=mr===void 0?"rc-select":mr,Zt=At.backfill,Ht=At.fieldNames,tn=At.inputValue,xn=At.searchValue,fr=At.onSearch,wr=At.autoClearSearchValue,lr=wr===void 0?!0:wr,kr=At.onSelect,di=At.onDeselect,Ni=At.dropdownMatchSelectWidth,Si=Ni===void 0?!0:Ni,Jr=At.filterOption,Bi=At.filterSort,Wi=At.optionFilterProp,da=At.optionLabelProp,Vi=At.options,Ei=At.children,ga=At.defaultActiveFirstOption,Ca=At.menuItemSelectedIcon,fo=At.virtual,Bo=At.direction,xo=At.listHeight,Jt=xo===void 0?200:xo,rn=At.listItemHeight,kn=rn===void 0?20:rn,zr=At.value,Mr=At.defaultValue,tr=At.labelInValue,yr=At.onChange,Ln=(0,Se.Z)(At,Ho),Xn=jl(On),qr=No(Cn),Pi=!!(!Vi&&Ei),Da=De.useMemo(function(){return Jr===void 0&&Cn==="combobox"?!1:Jr},[Jr,Cn]),la=De.useMemo(function(){return Ji(Ht,Pi)},[JSON.stringify(Ht),Pi]),La=Qe("",{value:xn!==void 0?xn:tn,postState:function(Pr){return Pr||""}}),mo=(0,de.Z)(La,2),Ui=mo[0],pi=mo[1],ri=Sl(Vi,Ei,la,Wi,da),Xa=ri.valueOptions,ya=ri.labelOptions,to=ri.options,Ba=De.useCallback(function(_n){var Pr=Or(_n);return Pr.map(function(Kr){var Er,ta,zi,ji,Li;if(vr(Kr))Er=Kr;else{var ea;zi=Kr.key,ta=Kr.label,Er=(ea=Kr.value)!==null&&ea!==void 0?ea:zi}var Hi=Xa.get(Er);if(Hi){var ka;if(ta===void 0&&(ta=Hi==null?void 0:Hi[da||la.label]),zi===void 0&&(zi=(ka=Hi==null?void 0:Hi.key)!==null&&ka!==void 0?ka:Er),ji=Hi==null?void 0:Hi.disabled,Li=Hi==null?void 0:Hi.title,0)var vo}return{label:ta,value:Er,key:zi,disabled:ji,title:Li}})},[la,da,Xa]),Ua=Qe(Mr,{value:zr}),ko=(0,de.Z)(Ua,2),Va=ko[0],qi=ko[1],So=De.useMemo(function(){var _n,Pr=Ba(Va);return Cn==="combobox"&&$t((_n=Pr[0])===null||_n===void 0?void 0:_n.value)?[]:Pr},[Va,Ba,Cn]),Ro=Lo(So,Xa),fl=(0,de.Z)(Ro,2),Al=fl[0],jt=fl[1],dn=De.useMemo(function(){if(!Cn&&Al.length===1){var _n=Al[0];if(_n.value===null&&(_n.label===null||_n.label===void 0))return[]}return Al.map(function(Pr){var Kr;return(0,Be.Z)((0,Be.Z)({},Pr),{},{label:(Kr=Pr.label)!==null&&Kr!==void 0?Kr:Pr.value})})},[Cn,Al]),Mn=De.useMemo(function(){return new Set(Al.map(function(_n){return _n.value}))},[Al]);De.useEffect(function(){if(Cn==="combobox"){var _n,Pr=(_n=Al[0])===null||_n===void 0?void 0:_n.value;pi(Zi(Pr)?String(Pr):"")}},[Al]);var ur=Rl(function(_n,Pr){var Kr,Er=Pr!=null?Pr:_n;return Kr={},(0,xe.Z)(Kr,la.value,_n),(0,xe.Z)(Kr,la.label,Er),Kr}),Qi=De.useMemo(function(){if(Cn!=="tags")return to;var _n=(0,Te.Z)(to),Pr=function(Er){return Xa.has(Er)};return(0,Te.Z)(Al).sort(function(Kr,Er){return Kr.value<Er.value?-1:1}).forEach(function(Kr){var Er=Kr.value;Pr(Er)||_n.push(ur(Er,Kr.label))}),_n},[ur,to,Xa,Al,Cn]),dr=zo(Qi,la,Ui,Da,Wi),ii=De.useMemo(function(){return Cn!=="tags"||!Ui||dr.some(function(_n){return _n[Wi||"value"]===Ui})||dr.some(function(_n){return _n[la.value]===Ui})?dr:[ur(Ui)].concat((0,Te.Z)(dr))},[ur,Wi,Cn,dr,Ui,la]),si=De.useMemo(function(){return Bi?(0,Te.Z)(ii).sort(function(_n,Pr){return Bi(_n,Pr)}):ii},[ii,Bi]),ki=De.useMemo(function(){return Ti(si,{fieldNames:la,childrenAsData:Pi})},[si,la,Pi]),Yi=function(Pr){var Kr=Ba(Pr);if(qi(Kr),yr&&(Kr.length!==Al.length||Kr.some(function(zi,ji){var Li;return((Li=Al[ji])===null||Li===void 0?void 0:Li.value)!==(zi==null?void 0:zi.value)}))){var Er=tr?Kr:Kr.map(function(zi){return zi.value}),ta=Kr.map(function(zi){return ua(jt(zi.value))});yr(qr?Er:Er[0],qr?ta:ta[0])}},Lr=De.useState(null),ia=(0,de.Z)(Lr,2),Ha=ia[0],ro=ia[1],Xi=De.useState(0),Wa=(0,de.Z)(Xi,2),_i=Wa[0],jr=Wa[1],li=ga!==void 0?ga:Cn!=="combobox",va=De.useCallback(function(_n,Pr){var Kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Er=Kr.source,ta=Er===void 0?"keyboard":Er;jr(Pr),Zt&&Cn==="combobox"&&_n!==null&&ta==="keyboard"&&ro(String(_n))},[Zt,Cn]),tt=function(Pr,Kr,Er){var ta=function(){var Ao,qo=jt(Pr);return[tr?{label:qo==null?void 0:qo[la.label],value:Pr,key:(Ao=qo==null?void 0:qo.key)!==null&&Ao!==void 0?Ao:Pr}:Pr,ua(qo)]};if(Kr&&kr){var zi=ta(),ji=(0,de.Z)(zi,2),Li=ji[0],ea=ji[1];kr(Li,ea)}else if(!Kr&&di&&Er!=="clear"){var Hi=ta(),ka=(0,de.Z)(Hi,2),vo=ka[0],Fo=ka[1];di(vo,Fo)}},nt=Rl(function(_n,Pr){var Kr,Er=qr?Pr.selected:!0;Er?Kr=qr?[].concat((0,Te.Z)(Al),[_n]):[_n]:Kr=Al.filter(function(ta){return ta.value!==_n}),Yi(Kr),tt(_n,Er),Cn==="combobox"?ro(""):(!No||lr)&&(pi(""),ro(""))}),Qt=function(Pr,Kr){Yi(Pr);var Er=Kr.type,ta=Kr.values;(Er==="remove"||Er==="clear")&&ta.forEach(function(zi){tt(zi.value,!1,Er)})},Kt=function(Pr,Kr){if(pi(Pr),ro(null),Kr.source==="submit"){var Er=(Pr||"").trim();if(Er){var ta=Array.from(new Set([].concat((0,Te.Z)(Mn),[Er])));Yi(ta),tt(Er,!0),pi("")}return}Kr.source!=="blur"&&(Cn==="combobox"&&Yi(Pr),fr==null||fr(Pr))},Bn=function(Pr){var Kr=Pr;Cn!=="tags"&&(Kr=Pr.map(function(ta){var zi=ya.get(ta);return zi==null?void 0:zi.value}).filter(function(ta){return ta!==void 0}));var Er=Array.from(new Set([].concat((0,Te.Z)(Mn),(0,Te.Z)(Kr))));Yi(Er),Er.forEach(function(ta){tt(ta,!0)})},Gn=De.useMemo(function(){var _n=fo!==!1&&Si!==!1;return(0,Be.Z)((0,Be.Z)({},ri),{},{flattenOptions:ki,onActiveValue:va,defaultActiveFirstOption:li,onSelect:nt,menuItemSelectedIcon:Ca,rawValues:Mn,fieldNames:la,virtual:_n,direction:Bo,listHeight:Jt,listItemHeight:kn,childrenAsData:Pi})},[ri,ki,va,li,nt,Ca,Mn,la,fo,Si,Jt,kn,Pi]);return De.createElement(Nn.Provider,{value:Gn},De.createElement(za,(0,Ie.Z)({},Ln,{id:Xn,prefixCls:Zr,ref:vt,omitDomProps:Qo,mode:Cn,displayValues:dn,onDisplayValuesChange:Qt,direction:Bo,searchValue:Ui,onSearch:Kt,autoClearSearchValue:lr,onSearchSplit:Bn,dropdownMatchSelectWidth:Si,OptionList:Ya,emptyOptions:!ki.length,activeValue:Ha,activeDescendantId:"".concat(Xn,"_list_").concat(_i)})))}),Tr=Sr;Tr.Option=_l,Tr.OptGroup=wl;var Ae=Tr,it=Ae,st=te(10366),yt=te(8745),wt=te(33603),Ft=te(9708),Nt=te(53124),gn=te(98866),Rn=te(88258),Nr=te(98675),Wr=te(65223),Rr=te(4173),Un=te(87244),pr=te(13458),Jn=te(78642),_r=te(46163),yi=function(At,vt){var On={};for(var Cn in At)Object.prototype.hasOwnProperty.call(At,Cn)&&vt.indexOf(Cn)<0&&(On[Cn]=At[Cn]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mr=0,Cn=Object.getOwnPropertySymbols(At);mr<Cn.length;mr++)vt.indexOf(Cn[mr])<0&&Object.prototype.propertyIsEnumerable.call(At,Cn[mr])&&(On[Cn[mr]]=At[Cn[mr]]);return On};const Yr="SECRET_COMBOBOX_MODE_DO_NOT_USE",Xr=(At,vt)=>{var On,{prefixCls:Cn,bordered:mr=!0,className:Zr,rootClassName:Zt,getPopupContainer:Ht,popupClassName:tn,dropdownClassName:xn,listHeight:fr=256,placement:wr,listItemHeight:lr=24,size:kr,disabled:di,notFoundContent:Ni,status:Si,builtinPlacements:Jr,dropdownMatchSelectWidth:Bi,popupMatchSelectWidth:Wi,direction:da,style:Vi,allowClear:Ei}=At,ga=yi(At,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ca,getPrefixCls:fo,renderEmpty:Bo,direction:xo,virtual:Jt,popupMatchSelectWidth:rn,popupOverflow:kn,select:zr}=De.useContext(Nt.E_),Mr=fo("select",Cn),tr=fo(),yr=da!=null?da:xo,{compactSize:Ln,compactItemClassnames:Xn}=(0,Rr.ri)(Mr,yr),[qr,Pi]=(0,Un.Z)(Mr),Da=De.useMemo(()=>{const{mode:Qi}=ga;if(Qi!=="combobox")return Qi===Yr?"combobox":Qi},[ga.mode]),la=Da==="multiple"||Da==="tags",La=(0,Jn.Z)(ga.suffixIcon,ga.showArrow),mo=(On=Wi!=null?Wi:Bi)!==null&&On!==void 0?On:rn,{status:Ui,hasFeedback:pi,isFormItemInput:ri,feedbackIcon:Xa}=De.useContext(Wr.aM),ya=(0,Ft.F)(Ui,Si);let to;Ni!==void 0?to=Ni:Da==="combobox"?to=null:to=(Bo==null?void 0:Bo("Select"))||De.createElement(Rn.Z,{componentName:"Select"});const{suffixIcon:Ba,itemIcon:Ua,removeIcon:ko,clearIcon:Va}=(0,_r.Z)(Object.assign(Object.assign({},ga),{multiple:la,hasFeedback:pi,feedbackIcon:Xa,showSuffixIcon:La,prefixCls:Mr,showArrow:ga.showArrow,componentName:"Select"})),qi=Ei===!0?{clearIcon:Va}:Ei,So=(0,st.Z)(ga,["suffixIcon","itemIcon"]),Ro=fe()(tn||xn,{[`${Mr}-dropdown-${yr}`]:yr==="rtl"},Zt,Pi),fl=(0,Nr.Z)(Qi=>{var dr;return(dr=kr!=null?kr:Ln)!==null&&dr!==void 0?dr:Qi}),Al=De.useContext(gn.Z),jt=di!=null?di:Al,dn=fe()({[`${Mr}-lg`]:fl==="large",[`${Mr}-sm`]:fl==="small",[`${Mr}-rtl`]:yr==="rtl",[`${Mr}-borderless`]:!mr,[`${Mr}-in-form-item`]:ri},(0,Ft.Z)(Mr,ya,pi),Xn,zr==null?void 0:zr.className,Zr,Zt,Pi),Mn=De.useMemo(()=>wr!==void 0?wr:yr==="rtl"?"bottomRight":"bottomLeft",[wr,yr]),ur=(0,pr.Z)(Jr,kn);return qr(De.createElement(it,Object.assign({ref:vt,virtual:Jt,showSearch:zr==null?void 0:zr.showSearch},So,{style:Object.assign(Object.assign({},zr==null?void 0:zr.style),Vi),dropdownMatchSelectWidth:mo,builtinPlacements:ur,transitionName:(0,wt.m)(tr,"slide-up",ga.transitionName),listHeight:fr,listItemHeight:lr,mode:Da,prefixCls:Mr,placement:Mn,direction:yr,suffixIcon:Ba,menuItemSelectedIcon:Ua,removeIcon:ko,allowClear:qi,notFoundContent:to,className:dn,getPopupContainer:Ht||Ca,dropdownClassName:Ro,disabled:jt})))},ti=De.forwardRef(Xr),fi=(0,yt.Z)(ti);ti.SECRET_COMBOBOX_MODE_DO_NOT_USE=Yr,ti.Option=_l,ti.OptGroup=wl,ti._InternalPanelDoNotUseOrYouWillBeFired=fi;var Ci=ti},87244:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return ye}});var E=te(14747),fe=te(80110),Ie=te(45503),Te=te(67968),xe=te(67771),Be=te(33297);const de=Ee=>{const{optionHeight:Ye,optionFontSize:Ne,optionLineHeight:ot,optionPadding:ct}=Ee;return{position:"relative",display:"block",minHeight:Ye,padding:ct,color:Ee.colorText,fontWeight:"normal",fontSize:Ne,lineHeight:ot,boxSizing:"border-box"}};var pe=Ee=>{const{antCls:Ye,componentCls:Ne}=Ee,ot=`${Ne}-item`,ct=`&${Ye}-slide-up-enter${Ye}-slide-up-enter-active`,_e=`&${Ye}-slide-up-appear${Ye}-slide-up-appear-active`,Me=`&${Ye}-slide-up-leave${Ye}-slide-up-leave-active`,pt=`${Ne}-dropdown-placement-`;return[{[`${Ne}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(Ee)),{position:"absolute",top:-9999,zIndex:Ee.zIndexPopup,boxSizing:"border-box",padding:Ee.paddingXXS,overflow:"hidden",fontSize:Ee.fontSize,fontVariant:"initial",backgroundColor:Ee.colorBgElevated,borderRadius:Ee.borderRadiusLG,outline:"none",boxShadow:Ee.boxShadowSecondary,[`
|
|
|
${ct}${pt}bottomLeft,
|
|
|
${_e}${pt}bottomLeft
|
|
|
`]:{animationName:xe.fJ},[`
|
|
|
${ct}${pt}topLeft,
|
|
|
${_e}${pt}topLeft,
|
|
|
${ct}${pt}topRight,
|
|
|
${_e}${pt}topRight
|
|
|
`]:{animationName:xe.Qt},[`${Me}${pt}bottomLeft`]:{animationName:xe.Uw},[`
|
|
|
${Me}${pt}topLeft,
|
|
|
${Me}${pt}topRight
|
|
|
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[`${ot}`]:Object.assign(Object.assign({},de(Ee)),{cursor:"pointer",transition:`background ${Ee.motionDurationSlow} ease`,borderRadius:Ee.borderRadiusSM,"&-group":{color:Ee.colorTextDescription,fontSize:Ee.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ot}-option-disabled)`]:{backgroundColor:Ee.optionActiveBg},[`&-selected:not(${ot}-option-disabled)`]:{color:Ee.optionSelectedColor,fontWeight:Ee.optionSelectedFontWeight,backgroundColor:Ee.optionSelectedBg,[`${ot}-option-state`]:{color:Ee.colorPrimary}},"&-disabled":{[`&${ot}-option-selected`]:{backgroundColor:Ee.colorBgContainerDisabled},color:Ee.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ee.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,xe.oN)(Ee,"slide-up"),(0,xe.oN)(Ee,"slide-down"),(0,Be.Fm)(Ee,"move-up"),(0,Be.Fm)(Ee,"move-down")]};const De=2,Xe=Ee=>{let{controlHeightSM:Ye,controlHeight:Ne,lineWidth:ot}=Ee;const ct=(Ne-Ye)/2-ot,_e=Math.ceil(ct/2);return[ct,_e]};function Pe(Ee,Ye){const{componentCls:Ne,iconCls:ot}=Ee,ct=`${Ne}-selection-overflow`,_e=Ee.multipleSelectItemHeight,[Me]=Xe(Ee),pt=Ye?`${Ne}-${Ye}`:"";return{[`${Ne}-multiple${pt}`]:{fontSize:Ee.fontSize,[ct]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ne}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Me-De}px ${De*2}px`,borderRadius:Ee.borderRadius,[`${Ne}-show-search&`]:{cursor:"text"},[`${Ne}-disabled&`]:{background:Ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${De}px 0`,lineHeight:`${_e}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ne}-show-arrow ${Ne}-selector,
|
|
|
&${Ne}-allow-clear ${Ne}-selector
|
|
|
`]:{paddingInlineEnd:Ee.fontSizeIcon+Ee.controlPaddingHorizontal},[`${Ne}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:_e,marginTop:De,marginBottom:De,lineHeight:`${_e-Ee.lineWidth*2}px`,background:Ee.multipleItemBg,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.multipleItemBorderColor}`,borderRadius:Ee.borderRadiusSM,cursor:"default",transition:`font-size ${Ee.motionDurationSlow}, line-height ${Ee.motionDurationSlow}, height ${Ee.motionDurationSlow}`,userSelect:"none",marginInlineEnd:De*2,paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS/2,[`${Ne}-disabled&`]:{color:Ee.multipleItemColorDisabled,borderColor:Ee.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ee.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,E.Ro)()),{display:"inline-flex",alignItems:"center",color:Ee.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ot}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ee.colorIconHover}})},[`${ct}-item + ${ct}-item`]:{[`${Ne}-selection-search`]:{marginInlineStart:0}},[`${Ne}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ee.inputPaddingHorizontalBase-Me,"\n &-input,\n &-mirror\n ":{height:_e,fontFamily:Ee.fontFamily,lineHeight:`${_e}px`,transition:`all ${Ee.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ne}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ee.inputPaddingHorizontalBase,insetInlineEnd:Ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ee.motionDurationSlow}`}}}}var rt=Ee=>{const{componentCls:Ye}=Ee,Ne=(0,Ie.TS)(Ee,{controlHeight:Ee.controlHeightSM,multipleSelectItemHeight:Ee.controlHeightXS,borderRadius:Ee.borderRadiusSM,borderRadiusSM:Ee.borderRadiusXS}),ot=(0,Ie.TS)(Ee,{fontSize:Ee.fontSizeLG,controlHeight:Ee.controlHeightLG,multipleSelectItemHeight:Ee.multipleItemHeightLG,borderRadius:Ee.borderRadiusLG,borderRadiusSM:Ee.borderRadius}),[,ct]=Xe(Ee);return[Pe(Ee),Pe(Ne,"sm"),{[`${Ye}-multiple${Ye}-sm`]:{[`${Ye}-selection-placeholder`]:{insetInline:Ee.controlPaddingHorizontalSM-Ee.lineWidth},[`${Ye}-selection-search`]:{marginInlineStart:ct}}},Pe(ot,"lg")]};function qe(Ee,Ye){const{componentCls:Ne,inputPaddingHorizontalBase:ot,borderRadius:ct}=Ee,_e=Ee.controlHeight-Ee.lineWidth*2,Me=Math.ceil(Ee.fontSize*1.25),pt=Ye?`${Ne}-${Ye}`:"";return{[`${Ne}-single${pt}`]:{fontSize:Ee.fontSize,[`${Ne}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(Ee)),{display:"flex",borderRadius:ct,[`${Ne}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ot,insetInlineEnd:ot,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ne}-selection-item,
|
|
|
${Ne}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${_e}px`,transition:`all ${Ee.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${_e}px`}},[`${Ne}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ne}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ne}-selection-item:after`,`${Ne}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ne}-show-arrow ${Ne}-selection-item,
|
|
|
&${Ne}-show-arrow ${Ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Me},[`&${Ne}-open ${Ne}-selection-item`]:{color:Ee.colorTextPlaceholder},[`&:not(${Ne}-customize-input)`]:{[`${Ne}-selector`]:{width:"100%",height:Ee.controlHeight,padding:`0 ${ot}px`,[`${Ne}-selection-search-input`]:{height:_e},"&:after":{lineHeight:`${_e}px`}}},[`&${Ne}-customize-input`]:{[`${Ne}-selector`]:{"&:after":{display:"none"},[`${Ne}-selection-search`]:{position:"static",width:"100%"},[`${Ne}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ot}px`,"&:after":{display:"none"}}}}}}}function He(Ee){const{componentCls:Ye}=Ee,Ne=Ee.controlPaddingHorizontalSM-Ee.lineWidth;return[qe(Ee),qe((0,Ie.TS)(Ee,{controlHeight:Ee.controlHeightSM,borderRadius:Ee.borderRadiusSM}),"sm"),{[`${Ye}-single${Ye}-sm`]:{[`&:not(${Ye}-customize-input)`]:{[`${Ye}-selection-search`]:{insetInlineStart:Ne,insetInlineEnd:Ne},[`${Ye}-selector`]:{padding:`0 ${Ne}px`},[`&${Ye}-show-arrow ${Ye}-selection-search`]:{insetInlineEnd:Ne+Ee.fontSize*1.5},[`
|
|
|
&${Ye}-show-arrow ${Ye}-selection-item,
|
|
|
&${Ye}-show-arrow ${Ye}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ee.fontSize*1.5}}}},qe((0,Ie.TS)(Ee,{controlHeight:Ee.singleItemHeightLG,fontSize:Ee.fontSizeLG,borderRadius:Ee.borderRadiusLG}),"lg")]}const be=Ee=>{const{componentCls:Ye,selectorBg:Ne}=Ee;return{position:"relative",backgroundColor:Ne,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.colorBorder}`,transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ye}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ye}-disabled&`]:{color:Ee.colorTextDisabled,background:Ee.colorBgContainerDisabled,cursor:"not-allowed",[`${Ye}-multiple&`]:{background:Ee.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Qe=function(Ee,Ye){let Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ot,borderHoverColor:ct,outlineColor:_e,antCls:Me}=Ye,pt=Ne?{[`${ot}-selector`]:{borderColor:ct}}:{};return{[Ee]:{[`&:not(${ot}-disabled):not(${ot}-customize-input):not(${Me}-pagination-size-changer)`]:Object.assign(Object.assign({},pt),{[`${ot}-focused& ${ot}-selector`]:{borderColor:ct,boxShadow:`0 0 0 ${Ye.controlOutlineWidth}px ${_e}`,outline:0},[`&:hover ${ot}-selector`]:{borderColor:ct}})}}},ht=Ee=>{const{componentCls:Ye}=Ee;return{[`${Ye}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Je=Ee=>{const{componentCls:Ye,inputPaddingHorizontalBase:Ne,iconCls:ot}=Ee;return{[Ye]:Object.assign(Object.assign({},(0,E.Wf)(Ee)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ye}-customize-input) ${Ye}-selector`]:Object.assign(Object.assign({},be(Ee)),ht(Ee)),[`${Ye}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},E.vS),[`${Ye}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:Ee.colorTextPlaceholder,pointerEvents:"none"}),[`${Ye}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ne,height:Ee.fontSizeIcon,marginTop:-Ee.fontSizeIcon/2,color:Ee.colorTextQuaternary,fontSize:Ee.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ot]:{verticalAlign:"top",transition:`transform ${Ee.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ye}-suffix)`]:{pointerEvents:"auto"}},[`${Ye}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ye}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ne,zIndex:1,display:"inline-block",width:Ee.fontSizeIcon,height:Ee.fontSizeIcon,marginTop:-Ee.fontSizeIcon/2,color:Ee.colorTextQuaternary,fontSize:Ee.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ee.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ee.motionDurationMid} ease, opacity ${Ee.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ee.colorTextTertiary}},"&:hover":{[`${Ye}-clear`]:{opacity:1}}}),[`${Ye}-has-feedback`]:{[`${Ye}-clear`]:{insetInlineEnd:Ne+Ee.fontSize+Ee.paddingXS}}}},Ze=Ee=>{const{componentCls:Ye}=Ee;return[{[Ye]:{[`&-borderless ${Ye}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ye}-in-form-item`]:{width:"100%"}}},Je(Ee),He(Ee),rt(Ee),pe(Ee),{[`${Ye}-rtl`]:{direction:"rtl"}},Qe(Ye,(0,Ie.TS)(Ee,{borderHoverColor:Ee.colorPrimaryHover,outlineColor:Ee.controlOutline})),Qe(`${Ye}-status-error`,(0,Ie.TS)(Ee,{borderHoverColor:Ee.colorErrorHover,outlineColor:Ee.colorErrorOutline}),!0),Qe(`${Ye}-status-warning`,(0,Ie.TS)(Ee,{borderHoverColor:Ee.colorWarningHover,outlineColor:Ee.colorWarningOutline}),!0),(0,fe.c)(Ee,{borderElCls:`${Ye}-selector`,focusElCls:`${Ye}-focused`})]};var ye=(0,Te.Z)("Select",(Ee,Ye)=>{let{rootPrefixCls:Ne}=Ye;const ot=(0,Ie.TS)(Ee,{rootPrefixCls:Ne,inputPaddingHorizontalBase:Ee.paddingSM-1,multipleSelectItemHeight:Ee.multipleItemHeight});return[Ze(ot)]},Ee=>{const{fontSize:Ye,lineHeight:Ne,controlHeight:ot,controlPaddingHorizontal:ct,zIndexPopupBase:_e,colorText:Me,fontWeightStrong:pt,controlItemBgActive:$e,controlItemBgHover:ft,colorBgContainer:We,colorFillSecondary:gt,controlHeightLG:kt,controlHeightSM:xt,colorBgContainerDisabled:et,colorTextDisabled:Fe}=Ee;return{zIndexPopup:_e+50,optionSelectedColor:Me,optionSelectedFontWeight:pt,optionSelectedBg:$e,optionActiveBg:ft,optionPadding:`${(ot-Ye*Ne)/2}px ${ct}px`,optionFontSize:Ye,optionLineHeight:Ne,optionHeight:ot,selectorBg:We,clearBg:We,singleItemHeightLG:kt,multipleItemBg:gt,multipleItemBorderColor:"transparent",multipleItemHeight:xt,multipleItemHeightLG:ot,multipleSelectorBgDisabled:et,multipleItemColorDisabled:Fe,multipleItemBorderColorDisabled:"transparent"}})},13458:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return fe}});const E=Ie=>{const xe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ie==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},xe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},xe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},xe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},xe),{points:["br","tr"],offset:[0,-4]})}};function fe(Ie,Te){return Ie||E(Te)}},78642:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return E}});function E(fe,Ie){return Ie!==void 0?Ie:fe!==null}},46163:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Se}});var E=te(18299),fe=te(16646),Ie=te(73475),Te=te(42922),xe=te(3407),Be=te(72395),de=te(67294);function Se(pe){let{suffixIcon:De,clearIcon:Xe,menuItemSelectedIcon:Pe,removeIcon:Ue,loading:rt,multiple:qe,hasFeedback:He,prefixCls:be,showSuffixIcon:Qe,feedbackIcon:ht,showArrow:Je,componentName:Ze}=pe;const ye=Xe!=null?Xe:de.createElement(fe.Z,null),Ee=ct=>De===null&&!He&&!Je?null:de.createElement(de.Fragment,null,Qe!==!1&&ct,He&&ht);let Ye=null;if(De!==void 0)Ye=Ee(De);else if(rt)Ye=Ee(de.createElement(xe.Z,{spin:!0}));else{const ct=`${be}-suffix`;Ye=_e=>{let{open:Me,showSearch:pt}=_e;return Ee(Me&&pt?de.createElement(Be.Z,{className:ct}):de.createElement(Te.Z,{className:ct}))}}let Ne=null;Pe!==void 0?Ne=Pe:qe?Ne=de.createElement(E.Z,null):Ne=null;let ot=null;return Ue!==void 0?ot=Ue:ot=de.createElement(Ie.Z,null),{clearIcon:ye,suffixIcon:Ye,itemIcon:Ne,removeIcon:ot}}},46303:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return he}});var E=te(94184),fe=te.n(E),Ie=te(67294),Te=te(53124),xe=te(10366),de=ge=>{const{prefixCls:ve,className:se,style:Ke,size:bt,shape:Wt}=ge,yn=fe()({[`${ve}-lg`]:bt==="large",[`${ve}-sm`]:bt==="small"}),bn=fe()({[`${ve}-circle`]:Wt==="circle",[`${ve}-square`]:Wt==="square",[`${ve}-round`]:Wt==="round"}),cn=Ie.useMemo(()=>typeof bt=="number"?{width:bt,height:bt,lineHeight:`${bt}px`}:{},[bt]);return Ie.createElement("span",{className:fe()(ve,yn,bn,se),style:Object.assign(Object.assign({},cn),Ke)})},Se=te(34367),pe=te(67968),De=te(45503);const Xe=new Se.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Pe=ge=>({height:ge,lineHeight:`${ge}px`}),Ue=ge=>Object.assign({width:ge},Pe(ge)),rt=ge=>({background:ge.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Xe,animationDuration:ge.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),qe=ge=>Object.assign({width:ge*5,minWidth:ge*5},Pe(ge)),He=ge=>{const{skeletonAvatarCls:ve,gradientFromColor:se,controlHeight:Ke,controlHeightLG:bt,controlHeightSM:Wt}=ge;return{[`${ve}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:se},Ue(Ke)),[`${ve}${ve}-circle`]:{borderRadius:"50%"},[`${ve}${ve}-lg`]:Object.assign({},Ue(bt)),[`${ve}${ve}-sm`]:Object.assign({},Ue(Wt))}},be=ge=>{const{controlHeight:ve,borderRadiusSM:se,skeletonInputCls:Ke,controlHeightLG:bt,controlHeightSM:Wt,gradientFromColor:yn}=ge;return{[`${Ke}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yn,borderRadius:se},qe(ve)),[`${Ke}-lg`]:Object.assign({},qe(bt)),[`${Ke}-sm`]:Object.assign({},qe(Wt))}},Qe=ge=>Object.assign({width:ge},Pe(ge)),ht=ge=>{const{skeletonImageCls:ve,imageSizeBase:se,gradientFromColor:Ke,borderRadiusSM:bt}=ge;return{[`${ve}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ke,borderRadius:bt},Qe(se*2)),{[`${ve}-path`]:{fill:"#bfbfbf"},[`${ve}-svg`]:Object.assign(Object.assign({},Qe(se)),{maxWidth:se*4,maxHeight:se*4}),[`${ve}-svg${ve}-svg-circle`]:{borderRadius:"50%"}}),[`${ve}${ve}-circle`]:{borderRadius:"50%"}}},Je=(ge,ve,se)=>{const{skeletonButtonCls:Ke}=ge;return{[`${se}${Ke}-circle`]:{width:ve,minWidth:ve,borderRadius:"50%"},[`${se}${Ke}-round`]:{borderRadius:ve}}},Ze=ge=>Object.assign({width:ge*2,minWidth:ge*2},Pe(ge)),ye=ge=>{const{borderRadiusSM:ve,skeletonButtonCls:se,controlHeight:Ke,controlHeightLG:bt,controlHeightSM:Wt,gradientFromColor:yn}=ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yn,borderRadius:ve,width:Ke*2,minWidth:Ke*2},Ze(Ke))},Je(ge,Ke,se)),{[`${se}-lg`]:Object.assign({},Ze(bt))}),Je(ge,bt,`${se}-lg`)),{[`${se}-sm`]:Object.assign({},Ze(Wt))}),Je(ge,Wt,`${se}-sm`))},Ee=ge=>{const{componentCls:ve,skeletonAvatarCls:se,skeletonTitleCls:Ke,skeletonParagraphCls:bt,skeletonButtonCls:Wt,skeletonInputCls:yn,skeletonImageCls:bn,controlHeight:cn,controlHeightLG:wn,controlHeightSM:Tt,gradientFromColor:nn,padding:fn,marginSM:sn,borderRadius:an,titleHeight:xr,blockRadius:Lt,paragraphLiHeight:Vt,controlHeightXS:cr,paragraphMarginTop:En}=ge;return{[`${ve}`]:{display:"table",width:"100%",[`${ve}-header`]:{display:"table-cell",paddingInlineEnd:fn,verticalAlign:"top",[`${se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:nn},Ue(cn)),[`${se}-circle`]:{borderRadius:"50%"},[`${se}-lg`]:Object.assign({},Ue(wn)),[`${se}-sm`]:Object.assign({},Ue(Tt))},[`${ve}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ke}`]:{width:"100%",height:xr,background:nn,borderRadius:Lt,[`+ ${bt}`]:{marginBlockStart:Tt}},[`${bt}`]:{padding:0,"> li":{width:"100%",height:Vt,listStyle:"none",background:nn,borderRadius:Lt,"+ li":{marginBlockStart:cr}}},[`${bt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ve}-content`]:{[`${Ke}, ${bt} > li`]:{borderRadius:an}}},[`${ve}-with-avatar ${ve}-content`]:{[`${Ke}`]:{marginBlockStart:sn,[`+ ${bt}`]:{marginBlockStart:En}}},[`${ve}${ve}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ye(ge)),He(ge)),be(ge)),ht(ge)),[`${ve}${ve}-block`]:{width:"100%",[`${Wt}`]:{width:"100%"},[`${yn}`]:{width:"100%"}},[`${ve}${ve}-active`]:{[`
|
|
|
${Ke},
|
|
|
${bt} > li,
|
|
|
${se},
|
|
|
${Wt},
|
|
|
${yn},
|
|
|
${bn}
|
|
|
`]:Object.assign({},rt(ge))}}};var Ye=(0,pe.Z)("Skeleton",ge=>{const{componentCls:ve}=ge,se=(0,De.TS)(ge,{skeletonAvatarCls:`${ve}-avatar`,skeletonTitleCls:`${ve}-title`,skeletonParagraphCls:`${ve}-paragraph`,skeletonButtonCls:`${ve}-button`,skeletonInputCls:`${ve}-input`,skeletonImageCls:`${ve}-image`,imageSizeBase:ge.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ge.gradientFromColor} 25%, ${ge.gradientToColor} 37%, ${ge.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ee(se)]},ge=>{const{colorFillContent:ve,colorFill:se}=ge,Ke=ve,bt=se;return{color:Ke,colorGradientEnd:bt,gradientFromColor:Ke,gradientToColor:bt,titleHeight:ge.controlHeight/2,blockRadius:ge.borderRadiusSM,paragraphMarginTop:ge.marginLG+ge.marginXXS,paragraphLiHeight:ge.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ot=ge=>{const{prefixCls:ve,className:se,rootClassName:Ke,active:bt,shape:Wt="circle",size:yn="default"}=ge,{getPrefixCls:bn}=Ie.useContext(Te.E_),cn=bn("skeleton",ve),[wn,Tt]=Ye(cn),nn=(0,xe.Z)(ge,["prefixCls","className"]),fn=fe()(cn,`${cn}-element`,{[`${cn}-active`]:bt},se,Ke,Tt);return wn(Ie.createElement("div",{className:fn},Ie.createElement(de,Object.assign({prefixCls:`${cn}-avatar`,shape:Wt,size:yn},nn))))},_e=ge=>{const{prefixCls:ve,className:se,rootClassName:Ke,active:bt,block:Wt=!1,size:yn="default"}=ge,{getPrefixCls:bn}=Ie.useContext(Te.E_),cn=bn("skeleton",ve),[wn,Tt]=Ye(cn),nn=(0,xe.Z)(ge,["prefixCls"]),fn=fe()(cn,`${cn}-element`,{[`${cn}-active`]:bt,[`${cn}-block`]:Wt},se,Ke,Tt);return wn(Ie.createElement("div",{className:fn},Ie.createElement(de,Object.assign({prefixCls:`${cn}-button`,size:yn},nn))))};const Me="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=ge=>{const{prefixCls:ve,className:se,rootClassName:Ke,style:bt,active:Wt}=ge,{getPrefixCls:yn}=Ie.useContext(Te.E_),bn=yn("skeleton",ve),[cn,wn]=Ye(bn),Tt=fe()(bn,`${bn}-element`,{[`${bn}-active`]:Wt},se,Ke,wn);return cn(Ie.createElement("div",{className:Tt},Ie.createElement("div",{className:fe()(`${bn}-image`,se),style:bt},Ie.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${bn}-image-svg`},Ie.createElement("path",{d:Me,className:`${bn}-image-path`})))))},We=ge=>{const{prefixCls:ve,className:se,rootClassName:Ke,active:bt,block:Wt,size:yn="default"}=ge,{getPrefixCls:bn}=Ie.useContext(Te.E_),cn=bn("skeleton",ve),[wn,Tt]=Ye(cn),nn=(0,xe.Z)(ge,["prefixCls"]),fn=fe()(cn,`${cn}-element`,{[`${cn}-active`]:bt,[`${cn}-block`]:Wt},se,Ke,Tt);return wn(Ie.createElement("div",{className:fn},Ie.createElement(de,Object.assign({prefixCls:`${cn}-input`,size:yn},nn))))},gt=te(87462),kt={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"},xt=kt,et=te(84089),Fe=function(ve,se){return Ie.createElement(et.Z,(0,gt.Z)({},ve,{ref:se,icon:xt}))},Dt=Ie.forwardRef(Fe),Xt=ge=>{const{prefixCls:ve,className:se,rootClassName:Ke,style:bt,active:Wt,children:yn}=ge,{getPrefixCls:bn}=Ie.useContext(Te.E_),cn=bn("skeleton",ve),[wn,Tt]=Ye(cn),nn=fe()(cn,`${cn}-element`,{[`${cn}-active`]:Wt},Tt,se,Ke),fn=yn!=null?yn:Ie.createElement(Dt,null);return wn(Ie.createElement("div",{className:nn},Ie.createElement("div",{className:fe()(`${cn}-image`,se),style:bt},fn)))},Et=te(74902),Yt=ge=>{const ve=bn=>{const{width:cn,rows:wn=2}=ge;if(Array.isArray(cn))return cn[bn];if(wn-1===bn)return cn},{prefixCls:se,className:Ke,style:bt,rows:Wt}=ge,yn=(0,Et.Z)(Array(Wt)).map((bn,cn)=>Ie.createElement("li",{key:cn,style:{width:ve(cn)}}));return Ie.createElement("ul",{className:fe()(se,Ke),style:bt},yn)},Pn=ge=>{let{prefixCls:ve,className:se,width:Ke,style:bt}=ge;return Ie.createElement("h3",{className:fe()(ve,se),style:Object.assign({width:Ke},bt)})};function _t(ge){return ge&&typeof ge=="object"?ge:{}}function pn(ge,ve){return ge&&!ve?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function sr(ge,ve){return!ge&&ve?{width:"38%"}:ge&&ve?{width:"50%"}:{}}function Tn(ge,ve){const se={};return(!ge||!ve)&&(se.width="61%"),!ge&&ve?se.rows=3:se.rows=2,se}const Oe=ge=>{const{prefixCls:ve,loading:se,className:Ke,rootClassName:bt,style:Wt,children:yn,avatar:bn=!1,title:cn=!0,paragraph:wn=!0,active:Tt,round:nn}=ge,{getPrefixCls:fn,direction:sn,skeleton:an}=Ie.useContext(Te.E_),xr=fn("skeleton",ve),[Lt,Vt]=Ye(xr);if(se||!("loading"in ge)){const cr=!!bn,En=!!cn,en=!!wn;let Fr;if(cr){const ei=Object.assign(Object.assign({prefixCls:`${xr}-avatar`},pn(En,en)),_t(bn));Fr=Ie.createElement("div",{className:`${xr}-header`},Ie.createElement(de,Object.assign({},ei)))}let Ur;if(En||en){let ei;if(En){const ci=Object.assign(Object.assign({prefixCls:`${xr}-title`},sr(cr,en)),_t(cn));ei=Ie.createElement(Pn,Object.assign({},ci))}let Mi;if(en){const ci=Object.assign(Object.assign({prefixCls:`${xr}-paragraph`},Tn(cr,En)),_t(wn));Mi=Ie.createElement(Yt,Object.assign({},ci))}Ur=Ie.createElement("div",{className:`${xr}-content`},ei,Mi)}const ai=fe()(xr,{[`${xr}-with-avatar`]:cr,[`${xr}-active`]:Tt,[`${xr}-rtl`]:sn==="rtl",[`${xr}-round`]:nn},an==null?void 0:an.className,Ke,bt,Vt);return Lt(Ie.createElement("div",{className:ai,style:Object.assign(Object.assign({},an==null?void 0:an.style),Wt)},Fr,Ur))}return typeof yn!="undefined"?yn:null};Oe.Button=_e,Oe.Avatar=ot,Oe.Input=We,Oe.Image=$e,Oe.Node=Xt;var me=Oe,he=me},55054:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return Ye}});var E=te(67294),fe=te(57838),Ie=te(96159),Te=te(94184),xe=te.n(Te),Be=te(53124),de=te(46303),pe=Ne=>{const{value:ot,formatter:ct,precision:_e,decimalSeparator:Me,groupSeparator:pt="",prefixCls:$e}=Ne;let ft;if(typeof ct=="function")ft=ct(ot);else{const We=String(ot),gt=We.match(/^(-?)(\d*)(\.(\d+))?$/);if(!gt||We==="-")ft=We;else{const kt=gt[1];let xt=gt[2]||"0",et=gt[4]||"";xt=xt.replace(/\B(?=(\d{3})+(?!\d))/g,pt),typeof _e=="number"&&(et=et.padEnd(_e,"0").slice(0,_e>0?_e:0)),et&&(et=`${Me}${et}`),ft=[E.createElement("span",{key:"int",className:`${$e}-content-value-int`},kt,xt),et&&E.createElement("span",{key:"decimal",className:`${$e}-content-value-decimal`},et)]}}return E.createElement("span",{className:`${$e}-content-value`},ft)},De=te(14747),Xe=te(67968),Pe=te(45503);const Ue=Ne=>{const{componentCls:ot,marginXXS:ct,padding:_e,colorTextDescription:Me,titleFontSize:pt,colorTextHeading:$e,contentFontSize:ft,fontFamily:We}=Ne;return{[`${ot}`]:Object.assign(Object.assign({},(0,De.Wf)(Ne)),{[`${ot}-title`]:{marginBottom:ct,color:Me,fontSize:pt},[`${ot}-skeleton`]:{paddingTop:_e},[`${ot}-content`]:{color:$e,fontSize:ft,fontFamily:We,[`${ot}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ot}-content-prefix, ${ot}-content-suffix`]:{display:"inline-block"},[`${ot}-content-prefix`]:{marginInlineEnd:ct},[`${ot}-content-suffix`]:{marginInlineStart:ct}}})}};var rt=(0,Xe.Z)("Statistic",Ne=>{const ot=(0,Pe.TS)(Ne,{});return[Ue(ot)]},Ne=>{const{fontSizeHeading3:ot,fontSize:ct}=Ne;return{titleFontSize:ct,contentFontSize:ot}}),He=Ne=>{const{prefixCls:ot,className:ct,rootClassName:_e,style:Me,valueStyle:pt,value:$e=0,title:ft,valueRender:We,prefix:gt,suffix:kt,loading:xt=!1,onMouseEnter:et,onMouseLeave:Fe,decimalSeparator:Dt=".",groupSeparator:qt=","}=Ne,{getPrefixCls:Xt,direction:Et,statistic:zt}=E.useContext(Be.E_),Yt=Xt("statistic",ot),[Vn,Pn]=rt(Yt),_t=E.createElement(pe,Object.assign({decimalSeparator:Dt,groupSeparator:qt,prefixCls:Yt},Ne,{value:$e})),pn=xe()(Yt,{[`${Yt}-rtl`]:Et==="rtl"},zt==null?void 0:zt.className,ct,_e,Pn);return Vn(E.createElement("div",{className:pn,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),Me),onMouseEnter:et,onMouseLeave:Fe},ft&&E.createElement("div",{className:`${Yt}-title`},ft),E.createElement(de.Z,{paragraph:!1,loading:xt,className:`${Yt}-skeleton`},E.createElement("div",{style:pt,className:`${Yt}-content`},gt&&E.createElement("span",{className:`${Yt}-content-prefix`},gt),We?We(_t):_t,kt&&E.createElement("span",{className:`${Yt}-content-suffix`},kt)))))};const be=[["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 Qe(Ne,ot){let ct=Ne;const _e=/\[[^\]]*]/g,Me=(ot.match(_e)||[]).map(We=>We.slice(1,-1)),pt=ot.replace(_e,"[]"),$e=be.reduce((We,gt)=>{let[kt,xt]=gt;if(We.includes(kt)){const et=Math.floor(ct/xt);return ct-=et*xt,We.replace(new RegExp(`${kt}+`,"g"),Fe=>{const Dt=Fe.length;return et.toString().padStart(Dt,"0")})}return We},pt);let ft=0;return $e.replace(_e,()=>{const We=Me[ft];return ft+=1,We})}function ht(Ne,ot){const{format:ct=""}=ot,_e=new Date(Ne).getTime(),Me=Date.now(),pt=Math.max(_e-Me,0);return Qe(pt,ct)}const Je=1e3/30;function Ze(Ne){return new Date(Ne).getTime()}const ye=Ne=>{const{value:ot,format:ct="HH:mm:ss",onChange:_e,onFinish:Me}=Ne,pt=(0,fe.Z)(),$e=E.useRef(null),ft=()=>{Me==null||Me(),$e.current&&(clearInterval($e.current),$e.current=null)},We=()=>{const xt=Ze(ot);xt>=Date.now()&&($e.current=setInterval(()=>{pt(),_e==null||_e(xt-Date.now()),xt<Date.now()&&ft()},Je))};E.useEffect(()=>(We(),()=>{$e.current&&(clearInterval($e.current),$e.current=null)}),[ot]);const gt=(xt,et)=>ht(xt,Object.assign(Object.assign({},et),{format:ct})),kt=xt=>(0,Ie.Tm)(xt,{title:void 0});return E.createElement(He,Object.assign({},Ne,{valueRender:kt,formatter:gt}))};var Ee=E.memo(ye);He.Countdown=Ee;var Ye=He},33507:function(In,Ut){"use strict";const te=E=>({[E.componentCls]:{[`${E.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${E.motionDurationMid} ${E.motionEaseInOut},
|
|
|
opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}},[`${E.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${E.motionDurationMid} ${E.motionEaseInOut},
|
|
|
opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}}});Ut.Z=te},33297:function(In,Ut,te){"use strict";te.d(Ut,{Fm:function(){return Pe}});var E=te(34367),fe=te(93590);const Ie=new E.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 E.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),xe=new E.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Be=new E.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),de=new E.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Se=new E.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pe=new E.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),De=new E.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Xe={"move-up":{inKeyframes:pe,outKeyframes:De},"move-down":{inKeyframes:Ie,outKeyframes:Te},"move-left":{inKeyframes:xe,outKeyframes:Be},"move-right":{inKeyframes:de,outKeyframes:Se}},Pe=(Ue,rt)=>{const{antCls:qe}=Ue,He=`${qe}-${rt}`,{inKeyframes:be,outKeyframes:Qe}=Xe[rt];return[(0,fe.R)(He,be,Qe,Ue.motionDurationMid),{[`
|
|
|
${He}-enter,
|
|
|
${He}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:Ue.motionEaseOutCirc},[`${He}-leave`]:{animationTimingFunction:Ue.motionEaseInOutCirc}}]}},67771:function(In,Ut,te){"use strict";te.d(Ut,{Qt:function(){return xe},Uw:function(){return Te},fJ:function(){return Ie},ly:function(){return Be},oN:function(){return Pe}});var E=te(34367),fe=te(93590);const Ie=new E.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Te=new E.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),xe=new E.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Be=new E.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),de=new E.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Se=new E.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pe=new E.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),De=new E.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Xe={"slide-up":{inKeyframes:Ie,outKeyframes:Te},"slide-down":{inKeyframes:xe,outKeyframes:Be},"slide-left":{inKeyframes:de,outKeyframes:Se},"slide-right":{inKeyframes:pe,outKeyframes:De}},Pe=(Ue,rt)=>{const{antCls:qe}=Ue,He=`${qe}-${rt}`,{inKeyframes:be,outKeyframes:Qe}=Xe[rt];return[(0,fe.R)(He,be,Qe,Ue.motionDurationMid),{[`
|
|
|
${He}-enter,
|
|
|
${He}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Ue.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${He}-leave`]:{animationTimingFunction:Ue.motionEaseInQuint}}]}},49867:function(In,Ut,te){"use strict";te.d(Ut,{N:function(){return E}});const E=fe=>({color:fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${fe.motionDurationSlow}`,"&:focus, &:hover":{color:fe.colorLinkHover},"&:active":{color:fe.colorLinkActive}})},47897:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return ge}});var E=te(3407),fe=te(94184),Ie=te.n(fe);function Te(){return Te=Object.assign?Object.assign.bind():function(ve){for(var se=1;se<arguments.length;se++){var Ke=arguments[se];for(var bt in Ke)Object.prototype.hasOwnProperty.call(Ke,bt)&&(ve[bt]=Ke[bt])}return ve},Te.apply(this,arguments)}function xe(ve){"@babel/helpers - typeof";return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},xe(ve)}function Be(ve,se){if(xe(ve)!=="object"||ve===null)return ve;var Ke=ve[Symbol.toPrimitive];if(Ke!==void 0){var bt=Ke.call(ve,se||"default");if(xe(bt)!=="object")return bt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(se==="string"?String:Number)(ve)}function de(ve){var se=Be(ve,"string");return xe(se)==="symbol"?se:String(se)}function Se(ve,se,Ke){return se=de(se),se in ve?Object.defineProperty(ve,se,{value:Ke,enumerable:!0,configurable:!0,writable:!0}):ve[se]=Ke,ve}function pe(ve){if(Array.isArray(ve))return ve}function De(ve,se){var Ke=ve==null?null:typeof Symbol!="undefined"&&ve[Symbol.iterator]||ve["@@iterator"];if(Ke!=null){var bt,Wt,yn,bn,cn=[],wn=!0,Tt=!1;try{if(yn=(Ke=Ke.call(ve)).next,se===0){if(Object(Ke)!==Ke)return;wn=!1}else for(;!(wn=(bt=yn.call(Ke)).done)&&(cn.push(bt.value),cn.length!==se);wn=!0);}catch(nn){Tt=!0,Wt=nn}finally{try{if(!wn&&Ke.return!=null&&(bn=Ke.return(),Object(bn)!==bn))return}finally{if(Tt)throw Wt}}return cn}}function Xe(ve,se){(se==null||se>ve.length)&&(se=ve.length);for(var Ke=0,bt=new Array(se);Ke<se;Ke++)bt[Ke]=ve[Ke];return bt}function Pe(ve,se){if(ve){if(typeof ve=="string")return Xe(ve,se);var Ke=Object.prototype.toString.call(ve).slice(8,-1);if(Ke==="Object"&&ve.constructor&&(Ke=ve.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(ve);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return Xe(ve,se)}}function Ue(){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 rt(ve,se){return pe(ve)||De(ve,se)||Pe(ve,se)||Ue()}function qe(ve,se){if(ve==null)return{};var Ke={},bt=Object.keys(ve),Wt,yn;for(yn=0;yn<bt.length;yn++)Wt=bt[yn],!(se.indexOf(Wt)>=0)&&(Ke[Wt]=ve[Wt]);return Ke}function He(ve,se){if(ve==null)return{};var Ke=qe(ve,se),bt,Wt;if(Object.getOwnPropertySymbols){var yn=Object.getOwnPropertySymbols(ve);for(Wt=0;Wt<yn.length;Wt++)bt=yn[Wt],!(se.indexOf(bt)>=0)&&Object.prototype.propertyIsEnumerable.call(ve,bt)&&(Ke[bt]=ve[bt])}return Ke}var be=te(67294);function Qe(ve){if(Array.isArray(ve))return ve}function ht(ve,se){var Ke=ve==null?null:typeof Symbol!="undefined"&&ve[Symbol.iterator]||ve["@@iterator"];if(Ke!=null){var bt,Wt,yn,bn,cn=[],wn=!0,Tt=!1;try{if(yn=(Ke=Ke.call(ve)).next,se===0){if(Object(Ke)!==Ke)return;wn=!1}else for(;!(wn=(bt=yn.call(Ke)).done)&&(cn.push(bt.value),cn.length!==se);wn=!0);}catch(nn){Tt=!0,Wt=nn}finally{try{if(!wn&&Ke.return!=null&&(bn=Ke.return(),Object(bn)!==bn))return}finally{if(Tt)throw Wt}}return cn}}function Je(ve,se){(se==null||se>ve.length)&&(se=ve.length);for(var Ke=0,bt=new Array(se);Ke<se;Ke++)bt[Ke]=ve[Ke];return bt}function Ze(ve,se){if(ve){if(typeof ve=="string")return Je(ve,se);var Ke=Object.prototype.toString.call(ve).slice(8,-1);if(Ke==="Object"&&ve.constructor&&(Ke=ve.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(ve);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return Je(ve,se)}}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 Ee(ve,se){return Qe(ve)||ht(ve,se)||Ze(ve,se)||ye()}function Ye(ve){var se=be.useRef();se.current=ve;var Ke=be.useCallback(function(){for(var bt,Wt=arguments.length,yn=new Array(Wt),bn=0;bn<Wt;bn++)yn[bn]=arguments[bn];return(bt=se.current)===null||bt===void 0?void 0:bt.call.apply(bt,[se].concat(yn))},[]);return Ke}function Ne(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ot=Ne()?be.useLayoutEffect:be.useEffect,ct=function(se,Ke){var bt=be.useRef(!0);ot(function(){return se(bt.current)},Ke),ot(function(){return bt.current=!1,function(){bt.current=!0}},[])},_e=function(se,Ke){ct(function(bt){if(!bt)return se()},Ke)},Me=null;function pt(ve){var se=be.useRef(!1),Ke=be.useState(ve),bt=Ee(Ke,2),Wt=bt[0],yn=bt[1];be.useEffect(function(){return se.current=!1,function(){se.current=!0}},[]);function bn(cn,wn){wn&&se.current||yn(cn)}return[Wt,bn]}function $e(ve){return ve!==void 0}function ft(ve,se){var Ke=se||{},bt=Ke.defaultValue,Wt=Ke.value,yn=Ke.onChange,bn=Ke.postState,cn=pt(function(){return $e(Wt)?Wt:$e(bt)?typeof bt=="function"?bt():bt:typeof ve=="function"?ve():ve}),wn=Ee(cn,2),Tt=wn[0],nn=wn[1],fn=Wt!==void 0?Wt:Tt,sn=bn?bn(fn):fn,an=Ye(yn),xr=pt([fn]),Lt=Ee(xr,2),Vt=Lt[0],cr=Lt[1];_e(function(){var en=Vt[0];Tt!==en&&an(Tt,en)},[Vt]),_e(function(){$e(Wt)||nn(Wt)},[Wt]);var En=Ye(function(en,Fr){nn(en,Fr),cr([fn],Fr)});return[sn,En]}var We={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(se){var Ke=se.keyCode;if(se.altKey&&!se.ctrlKey||se.metaKey||Ke>=We.F1&&Ke<=We.F12)return!1;switch(Ke){case We.ALT:case We.CAPS_LOCK:case We.CONTEXT_MENU:case We.CTRL:case We.DOWN:case We.END:case We.ESC:case We.HOME:case We.INSERT:case We.LEFT:case We.MAC_FF_META:case We.META:case We.NUMLOCK:case We.NUM_CENTER:case We.PAGE_DOWN:case We.PAGE_UP:case We.PAUSE:case We.PRINT_SCREEN:case We.RIGHT:case We.SHIFT:case We.UP:case We.WIN_KEY:case We.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(se){if(se>=We.ZERO&&se<=We.NINE||se>=We.NUM_ZERO&&se<=We.NUM_MULTIPLY||se>=We.A&&se<=We.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&se===0)return!0;switch(se){case We.SPACE:case We.QUESTION_MARK:case We.NUM_PLUS:case We.NUM_MINUS:case We.NUM_PERIOD:case We.NUM_DIVISION:case We.SEMICOLON:case We.DASH:case We.EQUALS:case We.COMMA:case We.PERIOD:case We.SLASH:case We.APOSTROPHE:case We.SINGLE_QUOTE:case We.OPEN_SQUARE_BRACKET:case We.BACKSLASH:case We.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gt=We,kt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xt=be.forwardRef(function(ve,se){var Ke,bt=ve.prefixCls,Wt=bt===void 0?"rc-switch":bt,yn=ve.className,bn=ve.checked,cn=ve.defaultChecked,wn=ve.disabled,Tt=ve.loadingIcon,nn=ve.checkedChildren,fn=ve.unCheckedChildren,sn=ve.onClick,an=ve.onChange,xr=ve.onKeyDown,Lt=He(ve,kt),Vt=ft(!1,{value:bn,defaultValue:cn}),cr=rt(Vt,2),En=cr[0],en=cr[1];function Fr(Mi,ci){var Qn=En;return wn||(Qn=Mi,en(Qn),an==null||an(Qn,ci)),Qn}function Ur(Mi){Mi.which===gt.LEFT?Fr(!1,Mi):Mi.which===gt.RIGHT&&Fr(!0,Mi),xr==null||xr(Mi)}function ai(Mi){var ci=Fr(!En,Mi);sn==null||sn(ci,Mi)}var ei=Ie()(Wt,yn,(Ke={},Se(Ke,"".concat(Wt,"-checked"),En),Se(Ke,"".concat(Wt,"-disabled"),wn),Ke));return be.createElement("button",Te({},Lt,{type:"button",role:"switch","aria-checked":En,disabled:wn,className:ei,ref:se,onKeyDown:Ur,onClick:ai}),Tt,be.createElement("span",{className:"".concat(Wt,"-inner")},be.createElement("span",{className:"".concat(Wt,"-inner-checked")},nn),be.createElement("span",{className:"".concat(Wt,"-inner-unchecked")},fn)))});xt.displayName="Switch";var et=xt,Fe=te(45353),Dt=te(53124),qt=te(98866),Xt=te(98675),Et=te(84780),zt=te(14747),Yt=te(67968),Vn=te(45503);const Pn=ve=>{const{componentCls:se,trackHeightSM:Ke,trackPadding:bt,trackMinWidthSM:Wt,innerMinMarginSM:yn,innerMaxMarginSM:bn,handleSizeSM:cn}=ve,wn=`${se}-inner`;return{[se]:{[`&${se}-small`]:{minWidth:Wt,height:Ke,lineHeight:`${Ke}px`,[`${se}-inner`]:{paddingInlineStart:bn,paddingInlineEnd:yn,[`${wn}-checked`]:{marginInlineStart:`calc(-100% + ${cn+bt*2}px - ${bn*2}px)`,marginInlineEnd:`calc(100% - ${cn+bt*2}px + ${bn*2}px)`},[`${wn}-unchecked`]:{marginTop:-Ke,marginInlineStart:0,marginInlineEnd:0}},[`${se}-handle`]:{width:cn,height:cn},[`${se}-loading-icon`]:{top:(cn-ve.switchLoadingIconSize)/2,fontSize:ve.switchLoadingIconSize},[`&${se}-checked`]:{[`${se}-inner`]:{paddingInlineStart:yn,paddingInlineEnd:bn,[`${wn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${wn}-unchecked`]:{marginInlineStart:`calc(100% - ${cn+bt*2}px + ${bn*2}px)`,marginInlineEnd:`calc(-100% + ${cn+bt*2}px - ${bn*2}px)`}},[`${se}-handle`]:{insetInlineStart:`calc(100% - ${cn+bt}px)`}},[`&:not(${se}-disabled):active`]:{[`&:not(${se}-checked) ${wn}`]:{[`${wn}-unchecked`]:{marginInlineStart:ve.marginXXS/2,marginInlineEnd:-ve.marginXXS/2}},[`&${se}-checked ${wn}`]:{[`${wn}-checked`]:{marginInlineStart:-ve.marginXXS/2,marginInlineEnd:ve.marginXXS/2}}}}}}},_t=ve=>{const{componentCls:se,handleSize:Ke}=ve;return{[se]:{[`${se}-loading-icon${ve.iconCls}`]:{position:"relative",top:(Ke-ve.fontSize)/2,color:ve.switchLoadingIconColor,verticalAlign:"top"},[`&${se}-checked ${se}-loading-icon`]:{color:ve.switchColor}}}},pn=ve=>{const{componentCls:se,motion:Ke,trackPadding:bt,handleBg:Wt,handleShadow:yn,handleSize:bn}=ve,cn=`${se}-handle`;return{[se]:{[cn]:{position:"absolute",top:bt,insetInlineStart:bt,width:bn,height:bn,transition:`all ${ve.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Wt,borderRadius:bn/2,boxShadow:yn,transition:`all ${ve.switchDuration} ease-in-out`,content:'""'}},[`&${se}-checked ${cn}`]:{insetInlineStart:`calc(100% - ${bn+bt}px)`},[`&:not(${se}-disabled):active`]:Ke?{[`${cn}::before`]:{insetInlineEnd:ve.switchHandleActiveInset,insetInlineStart:0},[`&${se}-checked ${cn}::before`]:{insetInlineEnd:0,insetInlineStart:ve.switchHandleActiveInset}}:{}}}},sr=ve=>{const{componentCls:se,trackHeight:Ke,trackPadding:bt,innerMinMargin:Wt,innerMaxMargin:yn,handleSize:bn}=ve,cn=`${se}-inner`;return{[se]:{[cn]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:yn,paddingInlineEnd:Wt,transition:`padding-inline-start ${ve.switchDuration} ease-in-out, padding-inline-end ${ve.switchDuration} ease-in-out`,[`${cn}-checked, ${cn}-unchecked`]:{display:"block",color:ve.colorTextLightSolid,fontSize:ve.fontSizeSM,transition:`margin-inline-start ${ve.switchDuration} ease-in-out, margin-inline-end ${ve.switchDuration} ease-in-out`,pointerEvents:"none"},[`${cn}-checked`]:{marginInlineStart:`calc(-100% + ${bn+bt*2}px - ${yn*2}px)`,marginInlineEnd:`calc(100% - ${bn+bt*2}px + ${yn*2}px)`},[`${cn}-unchecked`]:{marginTop:-Ke,marginInlineStart:0,marginInlineEnd:0}},[`&${se}-checked ${cn}`]:{paddingInlineStart:Wt,paddingInlineEnd:yn,[`${cn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${cn}-unchecked`]:{marginInlineStart:`calc(100% - ${bn+bt*2}px + ${yn*2}px)`,marginInlineEnd:`calc(-100% + ${bn+bt*2}px - ${yn*2}px)`}},[`&:not(${se}-disabled):active`]:{[`&:not(${se}-checked) ${cn}`]:{[`${cn}-unchecked`]:{marginInlineStart:bt*2,marginInlineEnd:-bt*2}},[`&${se}-checked ${cn}`]:{[`${cn}-checked`]:{marginInlineStart:-bt*2,marginInlineEnd:bt*2}}}}}},Tn=ve=>{const{componentCls:se,trackHeight:Ke,trackMinWidth:bt}=ve;return{[se]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(ve)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:bt,height:Ke,lineHeight:`${Ke}px`,verticalAlign:"middle",background:ve.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ve.motionDurationMid}`,userSelect:"none",[`&:hover:not(${se}-disabled)`]:{background:ve.colorTextTertiary}}),(0,zt.Qy)(ve)),{[`&${se}-checked`]:{background:ve.switchColor,[`&:hover:not(${se}-disabled)`]:{background:ve.colorPrimaryHover}},[`&${se}-loading, &${se}-disabled`]:{cursor:"not-allowed",opacity:ve.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${se}-rtl`]:{direction:"rtl"}})}};var Oe=(0,Yt.Z)("Switch",ve=>{const se=(0,Vn.TS)(ve,{switchDuration:ve.motionDurationMid,switchColor:ve.colorPrimary,switchDisabledOpacity:ve.opacityLoading,switchLoadingIconSize:ve.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ve.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Tn(se),sr(se),pn(se),_t(se),Pn(se)]},ve=>{const{fontSize:se,lineHeight:Ke,controlHeight:bt,colorWhite:Wt}=ve,yn=se*Ke,bn=bt/2,cn=2,wn=yn-cn*2,Tt=bn-cn*2;return{trackHeight:yn,trackHeightSM:bn,trackMinWidth:wn*2+cn*4,trackMinWidthSM:Tt*2+cn*2,trackPadding:cn,handleBg:Wt,handleSize:wn,handleSizeSM:Tt,handleShadow:`0 2px 4px 0 ${new Et.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:wn/2,innerMaxMargin:wn+cn+cn*2,innerMinMarginSM:Tt/2,innerMaxMarginSM:Tt+cn+cn*2}}),me=function(ve,se){var Ke={};for(var bt in ve)Object.prototype.hasOwnProperty.call(ve,bt)&&se.indexOf(bt)<0&&(Ke[bt]=ve[bt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,bt=Object.getOwnPropertySymbols(ve);Wt<bt.length;Wt++)se.indexOf(bt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(ve,bt[Wt])&&(Ke[bt[Wt]]=ve[bt[Wt]]);return Ke};const he=be.forwardRef((ve,se)=>{const{prefixCls:Ke,size:bt,disabled:Wt,loading:yn,className:bn,rootClassName:cn,style:wn}=ve,Tt=me(ve,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:nn,direction:fn,switch:sn}=be.useContext(Dt.E_),an=be.useContext(qt.Z),xr=(Wt!=null?Wt:an)||yn,Lt=nn("switch",Ke),Vt=be.createElement("div",{className:`${Lt}-handle`},yn&&be.createElement(E.Z,{className:`${Lt}-loading-icon`})),[cr,En]=Oe(Lt),en=(0,Xt.Z)(bt),Fr=Ie()(sn==null?void 0:sn.className,{[`${Lt}-small`]:en==="small",[`${Lt}-loading`]:yn,[`${Lt}-rtl`]:fn==="rtl"},bn,cn,En),Ur=Object.assign(Object.assign({},sn==null?void 0:sn.style),wn);return cr(be.createElement(Fe.Z,{component:"Switch"},be.createElement(et,Object.assign({},Tt,{prefixCls:Lt,className:Fr,style:Ur,disabled:xr,ref:se,loadingIcon:Vt}))))});he.__ANT_SWITCH=!0;var ge=he},9430:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return oc}});var E={},fe="rc-table-internal-hook",Ie=te(97685),Te=te(66680),xe=te(8410),Be=te(91881),de=te(67294),Se=te(73935);function pe(Re){var Ge=de.createContext(void 0),St=function(un){var vn=un.value,ir=un.children,Ar=de.useRef(vn);Ar.current=vn;var hr=de.useState(function(){return{getValue:function(){return Ar.current},listeners:new Set}}),Qr=(0,Ie.Z)(hr,1),xi=Qr[0];return(0,xe.Z)(function(){(0,Se.unstable_batchedUpdates)(function(){xi.listeners.forEach(function(qn){qn(vn)})})},[vn]),de.createElement(Ge.Provider,{value:xi},ir)};return{Context:Ge,Provider:St,defaultValue:Re}}function De(Re,Ge){var St=(0,Te.Z)(typeof Ge=="function"?Ge:function(qn){if(Ge===void 0)return qn;if(!Array.isArray(Ge))return qn[Ge];var Ki={};return Ge.forEach(function($i){Ki[$i]=qn[$i]}),Ki}),Rt=de.useContext(Re==null?void 0:Re.Context),un=Rt||{},vn=un.listeners,ir=un.getValue,Ar=de.useRef();Ar.current=St(Rt?ir():Re==null?void 0:Re.defaultValue);var hr=de.useState({}),Qr=(0,Ie.Z)(hr,2),xi=Qr[1];return(0,xe.Z)(function(){if(!Rt)return;function qn(Ki){var $i=St(Ki);(0,Be.Z)(Ar.current,$i,!0)||xi({})}return vn.add(qn),function(){vn.delete(qn)}},[Rt]),Ar.current}var Xe=te(87462),Pe=te(42550);function Ue(){var Re=de.createContext(null);function Ge(){return de.useContext(Re)}function St(un,vn){var ir=(0,Pe.Yr)(un),Ar=function(Qr,xi){var qn=ir?{ref:xi}:{},Ki=de.useRef(0),$i=de.useRef(Qr),na=Ge();return na!==null?de.createElement(un,(0,Xe.Z)({},Qr,qn)):((!vn||vn($i.current,Qr))&&(Ki.current+=1),$i.current=Qr,de.createElement(Re.Provider,{value:Ki.current},de.createElement(un,(0,Xe.Z)({},Qr,qn))))};return ir?de.forwardRef(Ar):Ar}function Rt(un,vn){var ir=(0,Pe.Yr)(un),Ar=function(Qr,xi){var qn=ir?{ref:xi}:{};return Ge(),de.createElement(un,(0,Xe.Z)({},Qr,qn))};return ir?de.memo(de.forwardRef(Ar),vn):de.memo(Ar,vn)}return{makeImmutable:St,responseImmutable:Rt,useImmutableMark:Ge}}var rt=Ue(),qe=rt.makeImmutable,He=rt.responseImmutable,be=rt.useImmutableMark,Qe=Ue(),ht=Qe.makeImmutable,Je=Qe.responseImmutable,Ze=Qe.useImmutableMark,ye=pe(),Ee=ye;function Ye(Re,Ge){var St=de.useRef(0);St.current+=1;var Rt=de.useRef(Re),un=[];Object.keys(Re||{}).map(function(ir){var Ar;(Re==null?void 0:Re[ir])!==((Ar=Rt.current)===null||Ar===void 0?void 0:Ar[ir])&&un.push(ir)}),Rt.current=Re;var vn=de.useRef([]);return un.length&&(vn.current=un),de.useDebugValue(St.current),de.useDebugValue(vn.current.join(", ")),Ge&&console.log("".concat(Ge,":"),St.current,vn.current),St.current}var Ne=null,ot=de.memo(function(){var Re=Ye();return de.createElement("h1",null,"Render Times: ",Re)});ot.displayName="RenderBlock";var ct=te(71002),_e=te(1413),Me=te(4942),pt=te(94184),$e=te.n(pt);function ft(Re,Ge,St){var Rt=de.useRef({});return(!("value"in Rt.current)||St(Rt.current.condition,Ge))&&(Rt.current.value=Re(),Rt.current.condition=Ge),Rt.current.value}var We={},gt=[],kt=function(Ge){gt.push(Ge)};function xt(Re,Ge){if(0)var St}function et(Re,Ge){if(0)var St}function Fe(){We={}}function Dt(Re,Ge,St){!Ge&&!We[St]&&(Re(!1,St),We[St]=!0)}function qt(Re,Ge){Dt(xt,Re,Ge)}function Xt(Re,Ge){Dt(et,Re,Ge)}qt.preMessage=kt,qt.resetWarned=Fe,qt.noteOnce=Xt;var Et=qt;function zt(Re,Ge){var St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Rt=new Set;function un(vn,ir){var Ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,hr=Rt.has(vn);if(Et(!hr,"Warning: There may be circular references"),hr)return!1;if(vn===ir)return!0;if(St&&Ar>1)return!1;Rt.add(vn);var Qr=Ar+1;if(Array.isArray(vn)){if(!Array.isArray(ir)||vn.length!==ir.length)return!1;for(var xi=0;xi<vn.length;xi++)if(!un(vn[xi],ir[xi],Qr))return!1;return!0}if(vn&&ir&&(0,ct.Z)(vn)==="object"&&(0,ct.Z)(ir)==="object"){var qn=Object.keys(vn);return qn.length!==Object.keys(ir).length?!1:qn.every(function(Ki){return un(vn[Ki],ir[Ki],Qr)})}return!1}return un(Re,Ge)}var Yt=zt;function Vn(Re,Ge){for(var St=Re,Rt=0;Rt<Ge.length;Rt+=1){if(St==null)return;St=St[Ge[Rt]]}return St}var Pn=de.createContext({renderWithProps:!1}),_t=Pn,pn="RC_TABLE_KEY";function sr(Re){return Re==null?[]:Array.isArray(Re)?Re:[Re]}function Tn(Re){var Ge=[],St={};return Re.forEach(function(Rt){for(var un=Rt||{},vn=un.key,ir=un.dataIndex,Ar=vn||sr(ir).join("-")||pn;St[Ar];)Ar="".concat(Ar,"_next");St[Ar]=!0,Ge.push(Ar)}),Ge}function Oe(Re){return Re!=null}function me(Re){return Re&&(0,ct.Z)(Re)==="object"&&!Array.isArray(Re)&&!de.isValidElement(Re)}function he(Re,Ge,St,Rt,un,vn){var ir=de.useContext(_t),Ar=Ze(),hr=ft(function(){if(Oe(Rt))return[Rt];var Qr=Ge==null||Ge===""?[]:Array.isArray(Ge)?Ge:[Ge],xi=Vn(Re,Qr),qn=xi,Ki=void 0;if(un){var $i=un(xi,Re,St);me($i)?(qn=$i.children,Ki=$i.props,ir.renderWithProps=!0):qn=$i}return[qn,Ki]},[Ar,Re,Rt,Ge,un,St],function(Qr,xi){if(vn){var qn=(0,Ie.Z)(Qr,2),Ki=qn[1],$i=(0,Ie.Z)(xi,2),na=$i[1];return vn(na,Ki)}return ir.renderWithProps?!0:!Yt(Qr,xi,!0)});return hr}function ge(Re,Ge,St,Rt){var un=Re+Ge-1;return Re<=Rt&&un>=St}function ve(Re,Ge){return De(Ee,function(St){var Rt=ge(Re,Ge||1,St.hoverStartRow,St.hoverEndRow);return[Rt,St.onHover]})}var se=function(Ge){var St=Ge.ellipsis,Rt=Ge.rowType,un=Ge.children,vn,ir=St===!0?{showTitle:!0}:St;return ir&&(ir.showTitle||Rt==="header")&&(typeof un=="string"||typeof un=="number"?vn=un.toString():de.isValidElement(un)&&typeof un.props.children=="string"&&(vn=un.props.children)),vn};function Ke(Re){var Ge,St,Rt,un,vn,ir,Ar,hr,Qr=Re.component,xi=Re.children,qn=Re.ellipsis,Ki=Re.scope,$i=Re.prefixCls,na=Re.className,Ia=Re.align,sa=Re.record,ja=Re.render,Ra=Re.dataIndex,oo=Re.renderIndex,Uo=Re.shouldCellUpdate,lo=Re.index,To=Re.rowType,yl=Re.colSpan,Kl=Re.rowSpan,bo=Re.fixLeft,ma=Re.fixRight,fa=Re.firstFixLeft,Aa=Re.lastFixLeft,so=Re.firstFixRight,Mo=Re.lastFixRight,Dl=Re.appendNode,ol=Re.additionalProps,sl=ol===void 0?{}:ol,Zl=Re.isSticky,Ul="".concat($i,"-cell"),ts=De(Ee,["supportSticky","allColumnsFixedLeft"]),Jl=ts.supportSticky,Ls=ts.allColumnsFixedLeft,Is=he(sa,Ra,oo,xi,ja,Uo),Ql=(0,Ie.Z)(Is,2),du=Ql[0],os=Ql[1],As={},xs=typeof bo=="number"&&Jl,zl=typeof ma=="number"&&Jl;xs&&(As.position="sticky",As.left=bo),zl&&(As.position="sticky",As.right=ma);var wo=(Ge=(St=(Rt=os==null?void 0:os.colSpan)!==null&&Rt!==void 0?Rt:sl.colSpan)!==null&&St!==void 0?St:yl)!==null&&Ge!==void 0?Ge:1,dl=(un=(vn=(ir=os==null?void 0:os.rowSpan)!==null&&ir!==void 0?ir:sl.rowSpan)!==null&&vn!==void 0?vn:Kl)!==null&&un!==void 0?un:1,Ml=ve(lo,dl),_o=(0,Ie.Z)(Ml,2),ys=_o[0],co=_o[1],Wl=function(qs){var Ku;sa&&co(lo,lo+dl-1),sl==null||(Ku=sl.onMouseEnter)===null||Ku===void 0||Ku.call(sl,qs)},ls=function(qs){var Ku;sa&&co(-1,-1),sl==null||(Ku=sl.onMouseLeave)===null||Ku===void 0||Ku.call(sl,qs)};if(wo===0||dl===0)return null;var ss=(Ar=sl.title)!==null&&Ar!==void 0?Ar:se({rowType:To,ellipsis:qn,children:du}),Nu=$e()(Ul,na,(hr={},(0,Me.Z)(hr,"".concat(Ul,"-fix-left"),xs&&Jl),(0,Me.Z)(hr,"".concat(Ul,"-fix-left-first"),fa&&Jl),(0,Me.Z)(hr,"".concat(Ul,"-fix-left-last"),Aa&&Jl),(0,Me.Z)(hr,"".concat(Ul,"-fix-left-all"),Aa&&Ls&&Jl),(0,Me.Z)(hr,"".concat(Ul,"-fix-right"),zl&&Jl),(0,Me.Z)(hr,"".concat(Ul,"-fix-right-first"),so&&Jl),(0,Me.Z)(hr,"".concat(Ul,"-fix-right-last"),Mo&&Jl),(0,Me.Z)(hr,"".concat(Ul,"-ellipsis"),qn),(0,Me.Z)(hr,"".concat(Ul,"-with-append"),Dl),(0,Me.Z)(hr,"".concat(Ul,"-fix-sticky"),(xs||zl)&&Zl&&Jl),(0,Me.Z)(hr,"".concat(Ul,"-row-hover"),!os&&ys),hr),sl.className,os==null?void 0:os.className),fu={};Ia&&(fu.textAlign=Ia);var zu=(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({},As),sl.style),fu),os==null?void 0:os.style),ha=du;return(0,ct.Z)(ha)==="object"&&!Array.isArray(ha)&&!de.isValidElement(ha)&&(ha=null),qn&&(Aa||so)&&(ha=de.createElement("span",{className:"".concat(Ul,"-content")},ha)),de.createElement(Qr,(0,Xe.Z)({},os,sl,{className:Nu,style:zu,title:ss,scope:Ki,onMouseEnter:Wl,onMouseLeave:ls,colSpan:wo!==1?wo:null,rowSpan:dl!==1?dl:null}),Dl,ha)}var bt=de.memo(Ke);function Wt(Re,Ge,St,Rt,un,vn){var ir=St[Re]||{},Ar=St[Ge]||{},hr,Qr;ir.fixed==="left"?hr=Rt.left[un==="rtl"?Ge:Re]:Ar.fixed==="right"&&(Qr=Rt.right[un==="rtl"?Re:Ge]);var xi=!1,qn=!1,Ki=!1,$i=!1,na=St[Ge+1],Ia=St[Re-1],sa=!(vn!=null&&vn.children);if(un==="rtl"){if(hr!==void 0){var ja=Ia&&Ia.fixed==="left";$i=!ja&&sa}else if(Qr!==void 0){var Ra=na&&na.fixed==="right";Ki=!Ra&&sa}}else if(hr!==void 0){var oo=na&&na.fixed==="left";xi=!oo&&sa}else if(Qr!==void 0){var Uo=Ia&&Ia.fixed==="right";qn=!Uo&&sa}return{fixLeft:hr,fixRight:Qr,lastFixLeft:xi,firstFixRight:qn,lastFixRight:Ki,firstFixLeft:$i,isSticky:Rt.isSticky}}var yn=de.createContext({}),bn=yn;function cn(Re){var Ge=Re.className,St=Re.index,Rt=Re.children,un=Re.colSpan,vn=un===void 0?1:un,ir=Re.rowSpan,Ar=Re.align,hr=De(Ee,["prefixCls","direction"]),Qr=hr.prefixCls,xi=hr.direction,qn=de.useContext(bn),Ki=qn.scrollColumnIndex,$i=qn.stickyOffsets,na=qn.flattenColumns,Ia=qn.columns,sa=St+vn-1,ja=sa+1===Ki?vn+1:vn,Ra=Wt(St,St+ja-1,na,$i,xi,Ia==null?void 0:Ia[St]);return de.createElement(bt,(0,Xe.Z)({className:Ge,index:St,component:"td",prefixCls:Qr,record:null,dataIndex:null,align:Ar,colSpan:ja,rowSpan:ir,render:function(){return Rt}},Ra))}var wn=te(45987),Tt=["children"];function nn(Re){var Ge=Re.children,St=(0,wn.Z)(Re,Tt);return de.createElement("tr",St,Ge)}function fn(Re){var Ge=Re.children;return Ge}fn.Row=nn,fn.Cell=cn;var sn=fn;function an(Re){var Ge=Re.children,St=Re.stickyOffsets,Rt=Re.flattenColumns,un=Re.columns,vn=De(Ee,"prefixCls"),ir=Rt.length-1,Ar=Rt[ir],hr=de.useMemo(function(){return{stickyOffsets:St,flattenColumns:Rt,scrollColumnIndex:Ar!=null&&Ar.scrollbar?ir:null,columns:un}},[Ar,Rt,ir,St,un]);return de.createElement(bn.Provider,{value:hr},de.createElement("tfoot",{className:"".concat(vn,"-summary")},Ge))}var xr=Je(an),Lt=sn;function Vt(Re){var Ge=de.useRef();Ge.current=Re;var St=de.useCallback(function(){for(var Rt,un=arguments.length,vn=new Array(un),ir=0;ir<un;ir++)vn[ir]=arguments[ir];return(Rt=Ge.current)===null||Rt===void 0?void 0:Rt.call.apply(Rt,[Ge].concat(vn))},[]);return St}function cr(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var En=cr()?de.useLayoutEffect:de.useEffect,en=function(Ge,St){var Rt=React.useRef(!0);En(function(){return Ge(Rt.current)},St),En(function(){return Rt.current=!1,function(){Rt.current=!0}},[])},Fr=function(Ge,St){en(function(Rt){if(!Rt)return Ge()},St)},Ur=null;function ai(Re){var Ge=React.useRef(!1),St=React.useState(Re),Rt=_slicedToArray(St,2),un=Rt[0],vn=Rt[1];React.useEffect(function(){return Ge.current=!1,function(){Ge.current=!0}},[]);function ir(Ar,hr){hr&&Ge.current||vn(Ar)}return[un,ir]}function ei(Re){return Re!==void 0}function Mi(Re,Ge){var St=Ge||{},Rt=St.defaultValue,un=St.value,vn=St.onChange,ir=St.postState,Ar=useState(function(){return ei(un)?un:ei(Rt)?typeof Rt=="function"?Rt():Rt:typeof Re=="function"?Re():Re}),hr=_slicedToArray(Ar,2),Qr=hr[0],xi=hr[1],qn=un!==void 0?un:Qr,Ki=ir?ir(qn):qn,$i=useEvent(vn),na=useState([qn]),Ia=_slicedToArray(na,2),sa=Ia[0],ja=Ia[1];useLayoutUpdateEffect(function(){var oo=sa[0];Qr!==oo&&$i(Qr,oo)},[sa]),useLayoutUpdateEffect(function(){ei(un)||xi(un)},[un]);var Ra=useEvent(function(oo,Uo){xi(oo,Uo),ja([qn],Uo)});return[Ki,Ra]}var ci=te(35110);function Qn(Re,Ge){typeof Re=="function"?Re(Ge):(0,ct.Z)(Re)==="object"&&Re&&"current"in Re&&(Re.current=Ge)}function Or(){for(var Re=arguments.length,Ge=new Array(Re),St=0;St<Re;St++)Ge[St]=arguments[St];var Rt=Ge.filter(function(un){return un});return Rt.length<=1?Rt[0]:function(un){Ge.forEach(function(vn){Qn(vn,un)})}}function Hr(){for(var Re=arguments.length,Ge=new Array(Re),St=0;St<Re;St++)Ge[St]=arguments[St];return useMemo(function(){return Or.apply(void 0,Ge)},Ge,function(Rt,un){return Rt.length!==un.length||Rt.every(function(vn,ir){return vn!==un[ir]})})}function vi(Re){var Ge,St,Rt=isMemo(Re)?Re.type.type:Re.type;return!(typeof Rt=="function"&&!((Ge=Rt.prototype)!==null&&Ge!==void 0&&Ge.render)||typeof Re=="function"&&!((St=Re.prototype)!==null&&St!==void 0&&St.render))}function Zi(Re){return!isValidElement(Re)||isFragment(Re)?!1:vi(Re)}function $t(Re,Ge,St,Rt){if(!Ge.length)return St;var un=_toArray(Ge),vn=un[0],ir=un.slice(1),Ar;return!Re&&typeof vn=="number"?Ar=[]:Array.isArray(Re)?Ar=_toConsumableArray(Re):Ar=_objectSpread({},Re),Rt&&St===void 0&&ir.length===1?delete Ar[vn][ir[0]]:Ar[vn]=$t(Ar[vn],ir,St,Rt),Ar}function $n(Re,Ge,St){var Rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ge.length&&Rt&&St===void 0&&!get(Re,Ge.slice(0,-1))?Re:$t(Re,Ge,St,Rt)}function mn(Re){return _typeof(Re)==="object"&&Re!==null&&Object.getPrototypeOf(Re)===Object.prototype}function Yn(Re){return Array.isArray(Re)?[]:{}}var Dr=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function hi(){for(var Re=arguments.length,Ge=new Array(Re),St=0;St<Re;St++)Ge[St]=arguments[St];var Rt=Yn(Ge[0]);return Ge.forEach(function(un){function vn(ir,Ar){var hr=new Set(Ar),Qr=get(un,ir),xi=Array.isArray(Qr);if(xi||mn(Qr)){if(!hr.has(Qr)){hr.add(Qr);var qn=get(Rt,ir);xi?Rt=$n(Rt,ir,[]):(!qn||_typeof(qn)!=="object")&&(Rt=$n(Rt,ir,Yn(Qr))),Dr(Qr).forEach(function(Ki){vn([].concat(_toConsumableArray(ir),[Ki]),hr)})}}else Rt=$n(Rt,ir,Qr)}vn([])}),Rt}var oi=te(48555),Vr=function(Re){if(!Re)return!1;if(Re instanceof Element){if(Re.offsetParent)return!0;if(Re.getBBox){var Ge=Re.getBBox(),St=Ge.width,Rt=Ge.height;if(St||Rt)return!0}if(Re.getBoundingClientRect){var un=Re.getBoundingClientRect(),vn=un.width,ir=un.height;if(vn||ir)return!0}}return!1},Ct=function(Ge){if(cr()&&window.document.documentElement){var St=Array.isArray(Ge)?Ge:[Ge],Rt=window.document.documentElement;return St.some(function(un){return un in Rt.style})}return!1},hn=function(Ge,St){if(!Ct(Ge))return!1;var Rt=document.createElement("div"),un=Rt.style[Ge];return Rt.style[Ge]=St,Rt.style[Ge]!==un};function An(Re,Ge){return!Array.isArray(Re)&&Ge!==void 0?hn(Re,Ge):Ct(Re)}var jn;function Bt(Re){if(typeof document=="undefined")return 0;if(Re||jn===void 0){var Ge=document.createElement("div");Ge.style.width="100%",Ge.style.height="200px";var St=document.createElement("div"),Rt=St.style;Rt.position="absolute",Rt.top="0",Rt.left="0",Rt.pointerEvents="none",Rt.visibility="hidden",Rt.width="200px",Rt.height="150px",Rt.overflow="hidden",St.appendChild(Ge),document.body.appendChild(St);var un=Ge.offsetWidth;St.style.overflow="scroll";var vn=Ge.offsetWidth;un===vn&&(vn=St.clientWidth),document.body.removeChild(St),jn=un-vn}return jn}function on(Re){var Ge=Re.match(/^(.*)px$/),St=Number(Ge==null?void 0:Ge[1]);return Number.isNaN(St)?Bt():St}function Kn(Re){if(typeof document=="undefined"||!Re||!(Re instanceof Element))return{width:0,height:0};var Ge=getComputedStyle(Re,"::-webkit-scrollbar"),St=Ge.width,Rt=Ge.height;return{width:on(St),height:on(Rt)}}var Dn=`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`,rr=`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`,er="".concat(Dn," ").concat(rr).split(/[\s\n]+/),Gr="aria-",ra="data-";function Oi(Re,Ge){return Re.indexOf(Ge)===0}function bi(Re){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,St;Ge===!1?St={aria:!0,data:!0,attr:!0}:Ge===!0?St={aria:!0}:St=(0,_e.Z)({},Ge);var Rt={};return Object.keys(Re).forEach(function(un){(St.aria&&(un==="role"||Oi(un,Gr))||St.data&&Oi(un,ra)||St.attr&&er.includes(un))&&(Rt[un]=Re[un])}),Rt}function Ji(Re,Ge,St,Rt,un,vn,ir){Re.push({record:Ge,indent:St,index:ir});var Ar=vn(Ge),hr=un==null?void 0:un.has(Ar);if(Ge&&Array.isArray(Ge[Rt])&&hr)for(var Qr=0;Qr<Ge[Rt].length;Qr+=1)Ji(Re,Ge[Rt][Qr],St+1,Rt,un,vn,Qr)}function Ti(Re,Ge,St,Rt){var un=de.useMemo(function(){if(St!=null&&St.size){for(var vn=[],ir=0;ir<(Re==null?void 0:Re.length);ir+=1){var Ar=Re[ir];Ji(vn,Ar,0,Ge,St,Rt,ir)}return vn}return Re==null?void 0:Re.map(function(hr,Qr){return{record:hr,indent:0,index:Qr}})},[Re,Ge,St,Rt]);return un}function ua(Re){var Ge=Re.prefixCls,St=Re.children,Rt=Re.component,un=Re.cellComponent,vn=Re.className,ir=Re.expanded,Ar=Re.colSpan,hr=Re.isEmpty,Qr=De(Ee,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),xi=Qr.scrollbarSize,qn=Qr.fixHeader,Ki=Qr.fixColumn,$i=Qr.componentWidth,na=Qr.horizonScroll,Ia=St;return(hr?na&&$i:Ki)&&(Ia=de.createElement("div",{style:{width:$i-(qn?xi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ge,"-expanded-row-fixed")},Ia)),de.createElement(Rt,{className:vn,style:{display:ir?null:"none"}},de.createElement(bt,{component:un,prefixCls:Ge,colSpan:Ar},Ia))}var br=ua;function Di(Re,Ge,St,Rt){var un=De(Ee,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),vn=un.flattenColumns,ir=un.expandableType,Ar=un.expandedKeys,hr=un.childrenColumnName,Qr=un.onTriggerExpand,xi=un.rowExpandable,qn=un.onRow,Ki=un.expandRowByClick,$i=un.rowClassName,na=ir==="nest",Ia=ir==="row"&&(!xi||xi(Re)),sa=Ia||na,ja=Ar&&Ar.has(Ge),Ra=hr&&Re&&Re[hr],oo=Vt(Qr),Uo=qn==null?void 0:qn(Re,St),lo=Uo==null?void 0:Uo.onClick,To=function(ma){Ki&&sa&&Qr(Re,ma);for(var fa=arguments.length,Aa=new Array(fa>1?fa-1:0),so=1;so<fa;so++)Aa[so-1]=arguments[so];lo==null||lo.apply(void 0,[ma].concat(Aa))},yl;typeof $i=="string"?yl=$i:typeof $i=="function"&&(yl=$i(Re,St,Rt));var Kl=Tn(vn);return(0,_e.Z)((0,_e.Z)({},un),{},{columnsKey:Kl,nestExpandable:na,expanded:ja,hasNestChildren:Ra,record:Re,onTriggerExpand:oo,rowSupportExpand:Ia,expandable:sa,rowProps:(0,_e.Z)((0,_e.Z)({},Uo),{},{className:$e()(yl,Uo==null?void 0:Uo.className),onClick:To})})}function ni(Re,Ge,St,Rt,un){var vn=Re.record,ir=Re.prefixCls,Ar=Re.columnsKey,hr=Re.fixedInfoList,Qr=Re.expandIconColumnIndex,xi=Re.nestExpandable,qn=Re.indentSize,Ki=Re.expandIcon,$i=Re.expanded,na=Re.hasNestChildren,Ia=Re.onTriggerExpand,sa=Ar[St],ja=hr[St],Ra;St===(Qr||0)&&xi&&(Ra=de.createElement(de.Fragment,null,de.createElement("span",{style:{paddingLeft:"".concat(qn*Rt,"px")},className:"".concat(ir,"-row-indent indent-level-").concat(Rt)}),Ki({prefixCls:ir,expanded:$i,expandable:na,record:vn,onExpand:Ia})));var oo;return Ge.onCell&&(oo=Ge.onCell(vn,un)),{key:sa,fixedInfo:ja,appendCellNode:Ra,additionalCellProps:oo||{}}}function No(Re){var Ge=Re.className,St=Re.style,Rt=Re.record,un=Re.index,vn=Re.renderIndex,ir=Re.rowKey,Ar=Re.indent,hr=Ar===void 0?0:Ar,Qr=Re.rowComponent,xi=Re.cellComponent,qn=Re.scopeCellComponent,Ki=Di(Rt,ir,un,hr),$i=Ki.prefixCls,na=Ki.flattenColumns,Ia=Ki.expandedRowClassName,sa=Ki.expandedRowRender,ja=Ki.rowProps,Ra=Ki.expanded,oo=Ki.rowSupportExpand,Uo=de.useState(!1),lo=(0,Ie.Z)(Uo,2),To=lo[0],yl=lo[1];de.useEffect(function(){Ra&&yl(!0)},[Ra]);var Kl=de.createElement(Qr,(0,Xe.Z)({},ja,{"data-row-key":ir,className:$e()(Ge,"".concat($i,"-row"),"".concat($i,"-row-level-").concat(hr),ja==null?void 0:ja.className),style:(0,_e.Z)((0,_e.Z)({},St),ja==null?void 0:ja.style)}),na.map(function(Aa,so){var Mo=Aa.render,Dl=Aa.dataIndex,ol=Aa.className,sl=ni(Ki,Aa,so,hr,un),Zl=sl.key,Ul=sl.fixedInfo,ts=sl.appendCellNode,Jl=sl.additionalCellProps;return de.createElement(bt,(0,Xe.Z)({className:ol,ellipsis:Aa.ellipsis,align:Aa.align,scope:Aa.rowScope,component:Aa.rowScope?qn:xi,prefixCls:$i,key:Zl,record:Rt,index:un,renderIndex:vn,dataIndex:Dl,render:Mo,shouldCellUpdate:Aa.shouldCellUpdate},Ul,{appendNode:ts,additionalProps:Jl}))})),bo;if(oo&&(To||Ra)){var ma=sa(Rt,un,hr+1,Ra),fa=Ia&&Ia(Rt,un,hr);bo=de.createElement(br,{expanded:Ra,className:$e()("".concat($i,"-expanded-row"),"".concat($i,"-expanded-row-level-").concat(hr+1),fa),prefixCls:$i,component:Qr,cellComponent:xi,colSpan:na.length,isEmpty:!1},ma)}return de.createElement(de.Fragment,null,Kl,bo)}No.displayName="BodyRow";var xa=Je(No);function za(Re){var Ge=Re.columnKey,St=Re.onColumnResize,Rt=de.useRef();return de.useEffect(function(){Rt.current&&St(Ge,Rt.current.offsetWidth)},[]),de.createElement(oi.Z,{data:Ge},de.createElement("td",{ref:Rt,style:{padding:0,border:0,height:0}},de.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Lo(Re){var Ge=Re.prefixCls,St=Re.columnsKey,Rt=Re.onColumnResize;return de.createElement("tr",{"aria-hidden":"true",className:"".concat(Ge,"-measure-row"),style:{height:0,fontSize:0}},de.createElement(oi.Z.Collection,{onBatchResize:function(vn){vn.forEach(function(ir){var Ar=ir.data,hr=ir.size;Rt(Ar,hr.offsetWidth)})}},St.map(function(un){return de.createElement(za,{key:un,columnKey:un,onColumnResize:Rt})})))}function Ea(Re){var Ge=Re.data,St=Re.measureColumnWidth,Rt=De(Ee,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),un=Rt.prefixCls,vn=Rt.getComponent,ir=Rt.onColumnResize,Ar=Rt.flattenColumns,hr=Rt.getRowKey,Qr=Rt.expandedKeys,xi=Rt.childrenColumnName,qn=Rt.emptyNode,Ki=Ti(Ge,xi,Qr,hr),$i=de.useRef({renderWithProps:!1}),na=vn(["body","wrapper"],"tbody"),Ia=vn(["body","row"],"tr"),sa=vn(["body","cell"],"td"),ja=vn(["body","cell"],"th"),Ra;Ge.length?Ra=Ki.map(function(Uo,lo){var To=Uo.record,yl=Uo.indent,Kl=Uo.index,bo=hr(To,lo);return de.createElement(xa,{key:bo,rowKey:bo,record:To,index:lo,renderIndex:Kl,rowComponent:Ia,cellComponent:sa,scopeCellComponent:ja,getRowKey:hr,indent:yl})}):Ra=de.createElement(br,{expanded:!0,className:"".concat(un,"-placeholder"),prefixCls:un,component:Ia,cellComponent:sa,colSpan:Ar.length,isEmpty:!0},qn);var oo=Tn(Ar);return de.createElement(_t.Provider,{value:$i.current},de.createElement(na,{className:"".concat(un,"-tbody")},St&&de.createElement(Lo,{prefixCls:un,columnsKey:oo,onColumnResize:ir}),Ra))}Ea.displayName="Body";var zo=Je(Ea),gi=["expandable"],Cl="RC_TABLE_INTERNAL_COL_DEFINE";function pl(Re){var Ge=Re.expandable,St=(0,wn.Z)(Re,gi),Rt;return"expandable"in Re?Rt=(0,_e.Z)((0,_e.Z)({},St),Ge):Rt=St,Rt.showExpandColumn===!1&&(Rt.expandIconColumnIndex=-1),Rt}var jl=["columnType"];function Ko(Re){for(var Ge=Re.colWidths,St=Re.columns,Rt=Re.columCount,un=[],vn=Rt||St.length,ir=!1,Ar=vn-1;Ar>=0;Ar-=1){var hr=Ge[Ar],Qr=St&&St[Ar],xi=Qr&&Qr[Cl];if(hr||xi||ir){var qn=xi||{},Ki=qn.columnType,$i=(0,wn.Z)(qn,jl);un.unshift(de.createElement("col",(0,Xe.Z)({key:Ar,style:{width:hr}},$i))),ir=!0}}return de.createElement("colgroup",null,un)}var Do=Ko,Na=te(74902),ml=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function nl(Re,Ge){return(0,de.useMemo)(function(){for(var St=[],Rt=0;Rt<Ge;Rt+=1){var un=Re[Rt];if(un!==void 0)St[Rt]=un;else return null}return St},[Re.join("_"),Ge])}var Sl=de.forwardRef(function(Re,Ge){var St=Re.className,Rt=Re.noData,un=Re.columns,vn=Re.flattenColumns,ir=Re.colWidths,Ar=Re.columCount,hr=Re.stickyOffsets,Qr=Re.direction,xi=Re.fixHeader,qn=Re.stickyTopOffset,Ki=Re.stickyBottomOffset,$i=Re.stickyClassName,na=Re.onScroll,Ia=Re.maxContentScroll,sa=Re.children,ja=(0,wn.Z)(Re,ml),Ra=De(Ee,["prefixCls","scrollbarSize","isSticky"]),oo=Ra.prefixCls,Uo=Ra.scrollbarSize,lo=Ra.isSticky,To=lo&&!xi?0:Uo,yl=de.useRef(null),Kl=de.useCallback(function(ol){Qn(Ge,ol),Qn(yl,ol)},[]);de.useEffect(function(){var ol;function sl(Zl){var Ul=Zl,ts=Ul.currentTarget,Jl=Ul.deltaX;Jl&&(na({currentTarget:ts,scrollLeft:ts.scrollLeft+Jl}),Zl.preventDefault())}return(ol=yl.current)===null||ol===void 0||ol.addEventListener("wheel",sl),function(){var Zl;(Zl=yl.current)===null||Zl===void 0||Zl.removeEventListener("wheel",sl)}},[]);var bo=de.useMemo(function(){return vn.every(function(ol){return ol.width})},[vn]),ma=vn[vn.length-1],fa={fixed:ma?ma.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(oo,"-cell-scrollbar")}}},Aa=(0,de.useMemo)(function(){return To?[].concat((0,Na.Z)(un),[fa]):un},[To,un]),so=(0,de.useMemo)(function(){return To?[].concat((0,Na.Z)(vn),[fa]):vn},[To,vn]),Mo=(0,de.useMemo)(function(){var ol=hr.right,sl=hr.left;return(0,_e.Z)((0,_e.Z)({},hr),{},{left:Qr==="rtl"?[].concat((0,Na.Z)(sl.map(function(Zl){return Zl+To})),[0]):sl,right:Qr==="rtl"?ol:[].concat((0,Na.Z)(ol.map(function(Zl){return Zl+To})),[0]),isSticky:lo})},[To,hr,lo]),Dl=nl(ir,Ar);return de.createElement("div",{style:(0,_e.Z)({overflow:"hidden"},lo?{top:qn,bottom:Ki}:{}),ref:Kl,className:$e()(St,(0,Me.Z)({},$i,!!$i))},de.createElement("table",{style:{tableLayout:"fixed",visibility:Rt||Dl?null:"hidden"}},(!Rt||!Ia||bo)&&de.createElement(Do,{colWidths:Dl?[].concat((0,Na.Z)(Dl),[To]):[],columCount:Ar+1,columns:so}),sa((0,_e.Z)((0,_e.Z)({},ja),{},{stickyOffsets:Mo,columns:Aa,flattenColumns:so}))))});Sl.displayName="FixedHolder";var Rl=de.memo(Sl);function Ll(Re){var Ge=Re.cells,St=Re.stickyOffsets,Rt=Re.flattenColumns,un=Re.rowComponent,vn=Re.cellComponent,ir=Re.tdCellComponent,Ar=Re.onHeaderRow,hr=Re.index,Qr=De(Ee,["prefixCls","direction"]),xi=Qr.prefixCls,qn=Qr.direction,Ki;Ar&&(Ki=Ar(Ge.map(function(na){return na.column}),hr));var $i=Tn(Ge.map(function(na){return na.column}));return de.createElement(un,Ki,Ge.map(function(na,Ia){var sa=na.column,ja=Wt(na.colStart,na.colEnd,Rt,St,qn,sa),Ra;return sa&&sa.onHeaderCell&&(Ra=na.column.onHeaderCell(sa)),de.createElement(bt,(0,Xe.Z)({},na,{scope:sa.title?na.colSpan>1?"colgroup":"col":null,ellipsis:sa.ellipsis,align:sa.align,component:sa.title?vn:ir,prefixCls:xi,key:$i[Ia]},ja,{additionalProps:Ra,rowType:"header"}))}))}Ll.displayName="HeaderRow";var wl=Ll;function Vl(Re){var Ge=[];function St(ir,Ar){var hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ge[hr]=Ge[hr]||[];var Qr=Ar,xi=ir.filter(Boolean).map(function(qn){var Ki={key:qn.key,className:qn.className||"",children:qn.title,column:qn,colStart:Qr},$i=1,na=qn.children;return na&&na.length>0&&($i=St(na,Qr,hr+1).reduce(function(Ia,sa){return Ia+sa},0),Ki.hasSubColumns=!0),"colSpan"in qn&&($i=qn.colSpan),"rowSpan"in qn&&(Ki.rowSpan=qn.rowSpan),Ki.colSpan=$i,Ki.colEnd=Ki.colStart+$i-1,Ge[hr].push(Ki),Qr+=$i,$i});return xi}St(Re,0);for(var Rt=Ge.length,un=function(Ar){Ge[Ar].forEach(function(hr){!("rowSpan"in hr)&&!hr.hasSubColumns&&(hr.rowSpan=Rt-Ar)})},vn=0;vn<Rt;vn+=1)un(vn);return Ge}function _l(Re){var Ge=Re.stickyOffsets,St=Re.columns,Rt=Re.flattenColumns,un=Re.onHeaderRow,vn=De(Ee,["prefixCls","getComponent"]),ir=vn.prefixCls,Ar=vn.getComponent,hr=de.useMemo(function(){return Vl(St)},[St]),Qr=Ar(["header","wrapper"],"thead"),xi=Ar(["header","row"],"tr"),qn=Ar(["header","cell"],"th"),Ki=Ar(["header","cell"],"td");return de.createElement(Qr,{className:"".concat(ir,"-thead")},hr.map(function($i,na){var Ia=de.createElement(wl,{key:na,flattenColumns:Rt,cells:$i,stickyOffsets:Ge,rowComponent:xi,cellComponent:qn,tdCellComponent:Ki,onHeaderRow:un,index:na});return Ia}))}var Fl=Je(_l);function Vo(Re){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},St=[];return de.Children.forEach(Re,function(Rt){Rt==null&&!Ge.keepEmpty||(Array.isArray(Rt)?St=St.concat(Vo(Rt)):(0,ci.isFragment)(Rt)&&Rt.props?St=St.concat(Vo(Rt.props.children,Ge)):St.push(Rt))}),St}function Wn(Re){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ge=="number"?Ge:Ge.endsWith("%")?Re*parseFloat(Ge)/100:null}function Nn(Re,Ge){return de.useMemo(function(){if(Ge&&Ge>0){var St=0,Rt=0;Re.forEach(function(Qr){var xi=Wn(Ge,Qr.width);xi?St+=xi:Rt+=1});var un=Ge-St,vn=Rt,ir=un/Rt,Ar=0,hr=Re.map(function(Qr){var xi=(0,_e.Z)({},Qr),qn=Wn(Ge,xi.width);if(qn)xi.width=qn;else{var Ki=Math.floor(ir);xi.width=vn===1?un:Ki,un-=Ki,vn-=1}return Ar+=xi.width,xi});return[hr,Ar]}return[Re,Ge]},[Re,Ge])}var Ir=["children"],Cr=["fixed"];function Ii(Re){return Vo(Re).filter(function(Ge){return de.isValidElement(Ge)}).map(function(Ge){var St=Ge.key,Rt=Ge.props,un=Rt.children,vn=(0,wn.Z)(Rt,Ir),ir=(0,_e.Z)({key:St},vn);return un&&(ir.children=Ii(un)),ir})}function Ma(Re){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Re.filter(function(St){return St&&(0,ct.Z)(St)==="object"}).reduce(function(St,Rt,un){var vn=Rt.fixed,ir=vn===!0?"left":vn,Ar="".concat(Ge,"-").concat(un),hr=Rt.children;return hr&&hr.length>0?[].concat((0,Na.Z)(St),(0,Na.Z)(Ma(hr,Ar).map(function(Qr){return(0,_e.Z)({fixed:ir},Qr)}))):[].concat((0,Na.Z)(St),[(0,_e.Z)((0,_e.Z)({key:Ar},Rt),{},{fixed:ir})])},[])}function Ka(Re){for(var Ge=!0,St=0;St<Re.length;St+=1){var Rt=Re[St];if(Ge&&Rt.fixed!=="left")Ge=!1;else if(!Ge&&Rt.fixed==="left"){warning(!1,"Index ".concat(St-1," of `columns` missing `fixed='left'` prop."));break}}for(var un=!0,vn=Re.length-1;vn>=0;vn-=1){var ir=Re[vn];if(un&&ir.fixed!=="right")un=!1;else if(!un&&ir.fixed==="right"){warning(!1,"Index ".concat(vn+1," of `columns` missing `fixed='right'` prop."));break}}}function Ya(Re){return Re.map(function(Ge){var St=Ge.fixed,Rt=(0,wn.Z)(Ge,Cr),un=St;return St==="left"?un="right":St==="right"&&(un="left"),(0,_e.Z)({fixed:un},Rt)})}function $a(Re,Ge){var St=Re.prefixCls,Rt=Re.columns,un=Re.children,vn=Re.expandable,ir=Re.expandedKeys,Ar=Re.columnTitle,hr=Re.getRowKey,Qr=Re.onTriggerExpand,xi=Re.expandIcon,qn=Re.rowExpandable,Ki=Re.expandIconColumnIndex,$i=Re.direction,na=Re.expandRowByClick,Ia=Re.columnWidth,sa=Re.fixed,ja=Re.scrollWidth,Ra=de.useMemo(function(){return Rt||Ii(un)},[Rt,un]),oo=de.useMemo(function(){if(vn){var ma,fa=Ra.slice();if(!fa.includes(E)){var Aa=Ki||0;Aa>=0&&fa.splice(Aa,0,E)}var so=fa.indexOf(E);fa=fa.filter(function(sl,Zl){return sl!==E||Zl===so});var Mo=Ra[so],Dl;(sa==="left"||sa)&&!Ki?Dl="left":(sa==="right"||sa)&&Ki===Ra.length?Dl="right":Dl=Mo?Mo.fixed:null;var ol=(ma={},(0,Me.Z)(ma,Cl,{className:"".concat(St,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Me.Z)(ma,"title",Ar),(0,Me.Z)(ma,"fixed",Dl),(0,Me.Z)(ma,"className","".concat(St,"-row-expand-icon-cell")),(0,Me.Z)(ma,"width",Ia),(0,Me.Z)(ma,"render",function(Zl,Ul,ts){var Jl=hr(Ul,ts),Ls=ir.has(Jl),Is=qn?qn(Ul):!0,Ql=xi({prefixCls:St,expanded:Ls,expandable:Is,record:Ul,onExpand:Qr});return na?de.createElement("span",{onClick:function(os){return os.stopPropagation()}},Ql):Ql}),ma);return fa.map(function(sl){return sl===E?ol:sl})}return Ra.filter(function(sl){return sl!==E})},[vn,Ra,hr,ir,xi,$i]),Uo=de.useMemo(function(){var ma=oo;return Ge&&(ma=Ge(ma)),ma.length||(ma=[{render:function(){return null}}]),ma},[Ge,oo,$i]),lo=de.useMemo(function(){return $i==="rtl"?Ya(Ma(Uo)):Ma(Uo)},[Uo,$i,ja]),To=Nn(lo,ja),yl=(0,Ie.Z)(To,2),Kl=yl[0],bo=yl[1];return[Uo,Kl,bo]}var Za=$a;function Go(Re){var Ge,St=Re.prefixCls,Rt=Re.record,un=Re.onExpand,vn=Re.expanded,ir=Re.expandable,Ar="".concat(St,"-row-expand-icon");if(!ir)return de.createElement("span",{className:$e()(Ar,"".concat(St,"-row-spaced"))});var hr=function(xi){un(Rt,xi),xi.stopPropagation()};return de.createElement("span",{className:$e()(Ar,(Ge={},(0,Me.Z)(Ge,"".concat(St,"-row-expanded"),vn),(0,Me.Z)(Ge,"".concat(St,"-row-collapsed"),!vn),Ge)),onClick:hr})}function Ho(Re,Ge,St){var Rt=[];function un(vn){(vn||[]).forEach(function(ir,Ar){Rt.push(Ge(ir,Ar)),un(ir[St])})}return un(Re),Rt}function Qo(Re,Ge,St){var Rt=pl(Re),un=Rt.expandIcon,vn=Rt.expandedRowKeys,ir=Rt.defaultExpandedRowKeys,Ar=Rt.defaultExpandAllRows,hr=Rt.expandedRowRender,Qr=Rt.onExpand,xi=Rt.onExpandedRowsChange,qn=Rt.childrenColumnName,Ki=un||Go,$i=qn||"children",na=de.useMemo(function(){return hr?"row":Re.expandable&&Re.internalHooks===fe&&Re.expandable.__PARENT_RENDER_ICON__||Ge.some(function(lo){return lo&&(0,ct.Z)(lo)==="object"&&lo[$i]})?"nest":!1},[!!hr,Ge]),Ia=de.useState(function(){return ir||(Ar?Ho(Ge,St,$i):[])}),sa=(0,Ie.Z)(Ia,2),ja=sa[0],Ra=sa[1],oo=de.useMemo(function(){return new Set(vn||ja||[])},[vn,ja]),Uo=de.useCallback(function(lo){var To=St(lo,Ge.indexOf(lo)),yl,Kl=oo.has(To);Kl?(oo.delete(To),yl=(0,Na.Z)(oo)):yl=[].concat((0,Na.Z)(oo),[To]),Ra(yl),Qr&&Qr(!Kl,lo),xi&&xi(yl)},[St,oo,Ge,Qr,xi]);return[Rt,na,oo,Ki,$i,Uo]}function vr(Re,Ge,St,Rt){var un=Re.map(function(vn,ir){return Wt(ir,ir,Re,Ge,St,Rt==null?void 0:Rt[ir])});return ft(function(){return un},[un],function(vn,ir){return!Yt(vn,ir)})}function Sr(Re){var Ge=(0,de.useRef)(Re),St=(0,de.useState)({}),Rt=(0,Ie.Z)(St,2),un=Rt[1],vn=(0,de.useRef)(null),ir=(0,de.useRef)([]);function Ar(hr){ir.current.push(hr);var Qr=Promise.resolve();vn.current=Qr,Qr.then(function(){if(vn.current===Qr){var xi=ir.current,qn=Ge.current;ir.current=[],xi.forEach(function(Ki){Ge.current=Ki(Ge.current)}),vn.current=null,qn!==Ge.current&&un({})}})}return(0,de.useEffect)(function(){return function(){vn.current=null}},[]),[Ge.current,Ar]}function Tr(Re){var Ge=(0,de.useRef)(Re||null),St=(0,de.useRef)();function Rt(){window.clearTimeout(St.current)}function un(ir){Ge.current=ir,Rt(),St.current=window.setTimeout(function(){Ge.current=null,St.current=void 0},100)}function vn(){return Ge.current}return(0,de.useEffect)(function(){return Rt},[]),[un,vn]}function Ae(){var Re=de.useState(-1),Ge=(0,Ie.Z)(Re,2),St=Ge[0],Rt=Ge[1],un=de.useState(-1),vn=(0,Ie.Z)(un,2),ir=vn[0],Ar=vn[1],hr=de.useCallback(function(Qr,xi){Rt(Qr),Ar(xi)},[]);return[St,ir,hr]}var it=cr()?window:null;function st(Re,Ge){var St=(0,ct.Z)(Re)==="object"?Re:{},Rt=St.offsetHeader,un=Rt===void 0?0:Rt,vn=St.offsetSummary,ir=vn===void 0?0:vn,Ar=St.offsetScroll,hr=Ar===void 0?0:Ar,Qr=St.getContainer,xi=Qr===void 0?function(){return it}:Qr,qn=xi()||it;return de.useMemo(function(){var Ki=!!Re;return{isSticky:Ki,stickyClassName:Ki?"".concat(Ge,"-sticky-holder"):"",offsetHeader:un,offsetSummary:ir,offsetScroll:hr,container:qn}},[hr,un,ir,Ge,qn])}function yt(Re,Ge,St){var Rt=(0,de.useMemo)(function(){for(var un=[],vn=[],ir=0,Ar=0,hr=0;hr<Ge;hr+=1)if(St==="rtl"){vn[hr]=Ar,Ar+=Re[hr]||0;var Qr=Ge-hr-1;un[Qr]=ir,ir+=Re[Qr]||0}else{un[hr]=ir,ir+=Re[hr]||0;var xi=Ge-hr-1;vn[xi]=Ar,Ar+=Re[xi]||0}return{left:un,right:vn}},[Re,Ge,St]);return Rt}var wt=yt;function Ft(Re){var Ge=Re.className,St=Re.children;return de.createElement("div",{className:Ge},St)}var Nt=Ft;function gn(Re,Ge,St,Rt){var un=Se.unstable_batchedUpdates?function(ir){Se.unstable_batchedUpdates(St,ir)}:St;return Re!=null&&Re.addEventListener&&Re.addEventListener(Ge,un,Rt),{remove:function(){Re!=null&&Re.removeEventListener&&Re.removeEventListener(Ge,un,Rt)}}}var Rn=/margin|padding|width|height|max|min|offset/,Nr={left:!0,top:!0},Wr={cssFloat:1,styleFloat:1,float:1};function Rr(Re){return Re.nodeType===1?Re.ownerDocument.defaultView.getComputedStyle(Re,null):{}}function Un(Re,Ge,St){if(Ge=Ge.toLowerCase(),St==="auto"){if(Ge==="height")return Re.offsetHeight;if(Ge==="width")return Re.offsetWidth}return Ge in Nr||(Nr[Ge]=Rn.test(Ge)),Nr[Ge]?parseFloat(St)||0:St}function pr(Re,Ge){var St=arguments.length,Rt=Rr(Re);return Ge=Wr[Ge]?"cssFloat"in Re.style?"cssFloat":"styleFloat":Ge,St===1?Rt:Un(Re,Ge,Rt[Ge]||Re.style[Ge])}function Jn(Re,Ge,St){var Rt=arguments.length;if(Ge=Wr[Ge]?"cssFloat"in Re.style?"cssFloat":"styleFloat":Ge,Rt===3)return typeof St=="number"&&Rn.test(Ge)&&(St="".concat(St,"px")),Re.style[Ge]=St,St;for(var un in Ge)Ge.hasOwnProperty(un)&&Jn(Re,un,Ge[un]);return Rr(Re)}function _r(Re){return Re===document.body?document.documentElement.clientWidth:Re.offsetWidth}function yi(Re){return Re===document.body?window.innerHeight||document.documentElement.clientHeight:Re.offsetHeight}function Yr(){var Re=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ge=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Re,height:Ge}}function Xr(){var Re=document.documentElement.clientWidth,Ge=window.innerHeight||document.documentElement.clientHeight;return{width:Re,height:Ge}}function ti(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function fi(Re){var Ge=Re.getBoundingClientRect(),St=document.documentElement;return{left:Ge.left+(window.pageXOffset||St.scrollLeft)-(St.clientLeft||document.body.clientLeft||0),top:Ge.top+(window.pageYOffset||St.scrollTop)-(St.clientTop||document.body.clientTop||0)}}var Ci=function(Ge,St){var Rt,un,vn=Ge.scrollBodyRef,ir=Ge.onScroll,Ar=Ge.offsetScroll,hr=Ge.container,Qr=De(Ee,"prefixCls"),xi=((Rt=vn.current)===null||Rt===void 0?void 0:Rt.scrollWidth)||0,qn=((un=vn.current)===null||un===void 0?void 0:un.clientWidth)||0,Ki=xi&&qn*(qn/xi),$i=de.useRef(),na=Sr({scrollLeft:0,isHiddenScrollBar:!1}),Ia=(0,Ie.Z)(na,2),sa=Ia[0],ja=Ia[1],Ra=de.useRef({delta:0,x:0}),oo=de.useState(!1),Uo=(0,Ie.Z)(oo,2),lo=Uo[0],To=Uo[1],yl=function(){To(!1)},Kl=function(so){so.persist(),Ra.current.delta=so.pageX-sa.scrollLeft,Ra.current.x=0,To(!0),so.preventDefault()},bo=function(so){var Mo,Dl=so||((Mo=window)===null||Mo===void 0?void 0:Mo.event),ol=Dl.buttons;if(!lo||ol===0){lo&&To(!1);return}var sl=Ra.current.x+so.pageX-Ra.current.x-Ra.current.delta;sl<=0&&(sl=0),sl+Ki>=qn&&(sl=qn-Ki),ir({scrollLeft:sl/qn*(xi+2)}),Ra.current.x=so.pageX},ma=function(){if(vn.current){var so=fi(vn.current).top,Mo=so+vn.current.offsetHeight,Dl=hr===window?document.documentElement.scrollTop+window.innerHeight:fi(hr).top+hr.clientHeight;Mo-Bt()<=Dl||so>=Dl-Ar?ja(function(ol){return(0,_e.Z)((0,_e.Z)({},ol),{},{isHiddenScrollBar:!0})}):ja(function(ol){return(0,_e.Z)((0,_e.Z)({},ol),{},{isHiddenScrollBar:!1})})}},fa=function(so){ja(function(Mo){return(0,_e.Z)((0,_e.Z)({},Mo),{},{scrollLeft:so/xi*qn||0})})};return de.useImperativeHandle(St,function(){return{setScrollLeft:fa}}),de.useEffect(function(){var Aa=gn(document.body,"mouseup",yl,!1),so=gn(document.body,"mousemove",bo,!1);return ma(),function(){Aa.remove(),so.remove()}},[Ki,lo]),de.useEffect(function(){var Aa=gn(hr,"scroll",ma,!1),so=gn(window,"resize",ma,!1);return function(){Aa.remove(),so.remove()}},[hr]),de.useEffect(function(){sa.isHiddenScrollBar||ja(function(Aa){var so=vn.current;return so?(0,_e.Z)((0,_e.Z)({},Aa),{},{scrollLeft:so.scrollLeft/so.scrollWidth*so.clientWidth}):Aa})},[sa.isHiddenScrollBar]),xi<=qn||!Ki||sa.isHiddenScrollBar?null:de.createElement("div",{style:{height:Bt(),width:qn,bottom:Ar},className:"".concat(Qr,"-sticky-scroll")},de.createElement("div",{onMouseDown:Kl,ref:$i,className:$e()("".concat(Qr,"-sticky-scroll-bar"),(0,Me.Z)({},"".concat(Qr,"-sticky-scroll-bar-active"),lo)),style:{width:"".concat(Ki,"px"),transform:"translate3d(".concat(sa.scrollLeft,"px, 0, 0)")}}))},At=de.forwardRef(Ci);function vt(Re){return null}var On=vt;function Cn(Re){return null}var mr=Cn,Zr="rc-table",Zt=[],Ht={};function tn(){return"No Data"}function xn(Re){var Ge,St=(0,_e.Z)({rowKey:"key",prefixCls:Zr,emptyText:tn},Re),Rt=St.prefixCls,un=St.className,vn=St.rowClassName,ir=St.style,Ar=St.data,hr=St.rowKey,Qr=St.scroll,xi=St.tableLayout,qn=St.direction,Ki=St.title,$i=St.footer,na=St.summary,Ia=St.caption,sa=St.id,ja=St.showHeader,Ra=St.components,oo=St.emptyText,Uo=St.onRow,lo=St.onHeaderRow,To=St.internalHooks,yl=St.transformColumns,Kl=St.internalRefs,bo=St.tailor,ma=St.sticky,fa=Ar||Zt,Aa=!!fa.length,so=To===fe,Mo=de.useCallback(function(Es,_s){return Vn(Ra,Es)||_s},[Ra]),Dl=de.useMemo(function(){return typeof hr=="function"?hr:function(Es){var _s=Es&&Es[hr];return _s}},[hr]),ol=Mo(["body"]),sl=Ae(),Zl=(0,Ie.Z)(sl,3),Ul=Zl[0],ts=Zl[1],Jl=Zl[2],Ls=Qo(St,fa,Dl),Is=(0,Ie.Z)(Ls,6),Ql=Is[0],du=Is[1],os=Is[2],As=Is[3],xs=Is[4],zl=Is[5],wo=Qr==null?void 0:Qr.x,dl=de.useState(0),Ml=(0,Ie.Z)(dl,2),_o=Ml[0],ys=Ml[1],co=Za((0,_e.Z)((0,_e.Z)((0,_e.Z)({},St),Ql),{},{expandable:!!Ql.expandedRowRender,columnTitle:Ql.columnTitle,expandedKeys:os,getRowKey:Dl,onTriggerExpand:zl,expandIcon:As,expandIconColumnIndex:Ql.expandIconColumnIndex,direction:qn,scrollWidth:so&&bo&&typeof wo=="number"?wo:null}),so?yl:null),Wl=(0,Ie.Z)(co,3),ls=Wl[0],ss=Wl[1],Nu=Wl[2],fu=Nu!=null?Nu:wo,zu=de.useMemo(function(){return{columns:ls,flattenColumns:ss}},[ls,ss]),ha=de.useRef(),ec=de.useRef(),qs=de.useRef(),Ku=de.useRef(),Wu=de.useRef(),hs=de.useState(!1),bs=(0,Ie.Z)(hs,2),Ts=bs[0],Xl=bs[1],iu=de.useState(!1),ns=(0,Ie.Z)(iu,2),au=ns[0],hu=ns[1],xu=Sr(new Map),ju=(0,Ie.Z)(xu,2),eu=ju[0],Uu=ju[1],tu=Tn(ss),Bu=tu.map(function(Es){return eu.get(Es)}),nu=de.useMemo(function(){return Bu},[Bu.join("_")]),ou=wt(nu,ss.length,qn),Qs=Qr&&Oe(Qr.y),Ws=Qr&&Oe(fu)||!!Ql.fixed,hc=Ws&&ss.some(function(Es){var _s=Es.fixed;return _s}),bc=de.useRef(),Us=st(ma,Rt),Lu=Us.isSticky,pd=Us.offsetHeader,Oc=Us.offsetSummary,is=Us.offsetScroll,bl=Us.stickyClassName,vu=Us.container,Ss=de.useMemo(function(){return na==null?void 0:na(fa)},[na,fa]),ku=(Qs||Lu)&&de.isValidElement(Ss)&&Ss.type===sn&&Ss.props.fixed,Ri,Yu,xc;Qs&&(Yu={overflowY:"scroll",maxHeight:Qr.y}),Ws&&(Ri={overflowX:"auto"},Qs||(Yu={overflowY:"hidden"}),xc={width:fu===!0?"auto":fu,minWidth:"100%"});var rd=de.useCallback(function(Es,_s){Vr(ha.current)&&Uu(function(qu){if(qu.get(Es)!==_s){var wc=new Map(qu);return wc.set(Es,_s),wc}return qu})},[]),Od=Tr(null),Ec=(0,Ie.Z)(Od,2),id=Ec[0],Wd=Ec[1];function Iu(Es,_s){_s&&(typeof _s=="function"?_s(Es):_s.scrollLeft!==Es&&(_s.scrollLeft=Es,_s.scrollLeft!==Es&&setTimeout(function(){_s.scrollLeft=Es},0)))}var lc=Vt(function(Es){var _s=Es.currentTarget,qu=Es.scrollLeft,wc=qn==="rtl",ps=typeof qu=="number"?qu:_s.scrollLeft,Yc=_s||Ht;if(!Wd()||Wd()===Yc){var Rd;id(Yc),Iu(ps,ec.current),Iu(ps,qs.current),Iu(ps,Wu.current),Iu(ps,(Rd=bc.current)===null||Rd===void 0?void 0:Rd.setScrollLeft)}var Ac=_s||ec.current;if(Ac){var bd=Ac.scrollWidth,Xc=Ac.clientWidth;if(bd===Xc){Xl(!1),hu(!1);return}wc?(Xl(-ps<bd-Xc),hu(-ps>0)):(Xl(ps>0),hu(ps<bd-Xc))}}),Nc=function(){Ws&&qs.current?lc({currentTarget:qs.current}):(Xl(!1),hu(!1))},ad=function(_s){var qu=_s.width;qu!==_o&&(Nc(),ys(ha.current?ha.current.offsetWidth:qu))},jd=de.useRef(!1);de.useEffect(function(){jd.current&&Nc()},[Ws,Ar,ls.length]),de.useEffect(function(){jd.current=!0},[]);var Ud=de.useState(0),md=(0,Ie.Z)(Ud,2),od=md[0],Cc=md[1],Vu=de.useState(!0),Sc=(0,Ie.Z)(Vu,2),Nd=Sc[0],Ld=Sc[1];de.useEffect(function(){(!bo||!so)&&(qs.current instanceof Element?Cc(Kn(qs.current).width):Cc(Kn(Ku.current).width)),Ld(An("position","sticky"))},[]),de.useEffect(function(){so&&Kl&&(Kl.body.current=qs.current)});var zc=de.useCallback(function(Es){return de.createElement(de.Fragment,null,de.createElement(Fl,Es),ku==="top"&&de.createElement(xr,Es,Ss))},[ku,Ss]),Vd=de.useCallback(function(Es){return de.createElement(xr,Es,Ss)},[Ss]),Kc=Mo(["table"],"table"),vd=de.useMemo(function(){return xi||(hc?fu==="max-content"?"auto":"fixed":Qs||Lu||ss.some(function(Es){var _s=Es.ellipsis;return _s})?"fixed":"auto")},[Qs,hc,ss,xi,Lu]),Td,gd={colWidths:nu,columCount:ss.length,stickyOffsets:ou,onHeaderRow:lo,fixHeader:Qs,scroll:Qr},Gl=de.useMemo(function(){return Aa?null:typeof oo=="function"?oo():oo},[Aa,oo]),Gd=de.createElement(zo,{data:fa,measureColumnWidth:Qs||Ws||Lu}),ld=de.createElement(Do,{colWidths:ss.map(function(Es){var _s=Es.width;return _s}),columns:ss}),pc=Ia!=null?de.createElement("caption",{className:"".concat(Rt,"-caption")},Ia):void 0,mc=bi(St,{data:!0}),Lc=bi(St,{aria:!0});if(Qs||Lu){var Hc;typeof ol=="function"?(Hc=ol(fa,{scrollbarSize:od,ref:qs,onScroll:lc}),gd.colWidths=ss.map(function(Es,_s){var qu=Es.width,wc=_s===ss.length-1?qu-od:qu;return typeof wc=="number"&&!Number.isNaN(wc)?wc:0})):Hc=de.createElement("div",{style:(0,_e.Z)((0,_e.Z)({},Ri),Yu),onScroll:lc,ref:qs,className:$e()("".concat(Rt,"-body"))},de.createElement(Kc,(0,Xe.Z)({style:(0,_e.Z)((0,_e.Z)({},xc),{},{tableLayout:vd})},Lc),pc,ld,Gd,!ku&&Ss&&de.createElement(xr,{stickyOffsets:ou,flattenColumns:ss,columns:ls},Ss)));var yd=(0,_e.Z)((0,_e.Z)((0,_e.Z)({noData:!fa.length,maxContentScroll:Ws&&fu==="max-content"},gd),zu),{},{direction:qn,stickyClassName:bl,onScroll:lc});Td=de.createElement(de.Fragment,null,ja!==!1&&de.createElement(Rl,(0,Xe.Z)({},yd,{stickyTopOffset:pd,className:"".concat(Rt,"-header"),ref:ec}),zc),Hc,ku&&ku!=="top"&&de.createElement(Rl,(0,Xe.Z)({},yd,{stickyBottomOffset:Oc,className:"".concat(Rt,"-summary"),ref:Wu}),Vd),Lu&&de.createElement(At,{ref:bc,offsetScroll:is,scrollBodyRef:qs,onScroll:lc,container:vu}))}else Td=de.createElement("div",{style:(0,_e.Z)((0,_e.Z)({},Ri),Yu),className:$e()("".concat(Rt,"-content")),onScroll:lc,ref:qs},de.createElement(Kc,(0,Xe.Z)({style:(0,_e.Z)((0,_e.Z)({},xc),{},{tableLayout:vd})},Lc),pc,ld,ja!==!1&&de.createElement(Fl,(0,Xe.Z)({},gd,zu)),Gd,Ss&&de.createElement(xr,{stickyOffsets:ou,flattenColumns:ss,columns:ls},Ss)));var sd=de.createElement("div",(0,Xe.Z)({className:$e()(Rt,un,(Ge={},(0,Me.Z)(Ge,"".concat(Rt,"-rtl"),qn==="rtl"),(0,Me.Z)(Ge,"".concat(Rt,"-ping-left"),Ts),(0,Me.Z)(Ge,"".concat(Rt,"-ping-right"),au),(0,Me.Z)(Ge,"".concat(Rt,"-layout-fixed"),xi==="fixed"),(0,Me.Z)(Ge,"".concat(Rt,"-fixed-header"),Qs),(0,Me.Z)(Ge,"".concat(Rt,"-fixed-column"),hc),(0,Me.Z)(Ge,"".concat(Rt,"-scroll-horizontal"),Ws),(0,Me.Z)(Ge,"".concat(Rt,"-has-fix-left"),ss[0]&&ss[0].fixed),(0,Me.Z)(Ge,"".concat(Rt,"-has-fix-right"),ss[ss.length-1]&&ss[ss.length-1].fixed==="right"),Ge)),style:ir,id:sa,ref:ha},mc),Ki&&de.createElement(Nt,{className:"".concat(Rt,"-title")},Ki(fa)),de.createElement("div",{ref:Ku,className:"".concat(Rt,"-container")},Td),$i&&de.createElement(Nt,{className:"".concat(Rt,"-footer")},$i(fa)));Ws&&(sd=de.createElement(oi.Z,{onResize:ad},sd));var Zc=vr(ss,ou,qn,ls),Qd=de.useMemo(function(){return{scrollX:fu,prefixCls:Rt,getComponent:Mo,scrollbarSize:od,direction:qn,fixedInfoList:Zc,isSticky:Lu,supportSticky:Nd,componentWidth:_o,fixHeader:Qs,fixColumn:hc,horizonScroll:Ws,tableLayout:vd,rowClassName:vn,expandedRowClassName:Ql.expandedRowClassName,expandIcon:As,expandableType:du,expandRowByClick:Ql.expandRowByClick,expandedRowRender:Ql.expandedRowRender,onTriggerExpand:zl,expandIconColumnIndex:Ql.expandIconColumnIndex,indentSize:Ql.indentSize,allColumnsFixedLeft:ss.every(function(Es){return Es.fixed==="left"}),emptyNode:Gl,columns:ls,flattenColumns:ss,onColumnResize:rd,hoverStartRow:Ul,hoverEndRow:ts,onHover:Jl,rowExpandable:Ql.rowExpandable,onRow:Uo,getRowKey:Dl,expandedKeys:os,childrenColumnName:xs}},[fu,Rt,Mo,od,qn,Zc,Lu,Nd,_o,Qs,hc,Ws,vd,vn,Ql.expandedRowClassName,As,du,Ql.expandRowByClick,Ql.expandedRowRender,zl,Ql.expandIconColumnIndex,Ql.indentSize,Gl,ls,ss,rd,Ul,ts,Jl,Ql.rowExpandable,Uo,Dl,os,xs]);return de.createElement(Ee.Provider,{value:Qd},sd)}function fr(Re){return ht(xn,Re)}var wr=fr();wr.EXPAND_COLUMN=E,wr.INTERNAL_HOOKS=fe,wr.Column=On,wr.ColumnGroup=mr,wr.Summary=Lt;var lr=wr,kr=te(73299),di=pe(null),Ni=pe(null);function Si(Re,Ge,St){var Rt=Ge||1;return St[Re+Rt]-(St[Re]||0)}function Jr(Re){var Ge=Re.rowInfo,St=Re.column,Rt=Re.colIndex,un=Re.indent,vn=Re.index,ir=Re.renderIndex,Ar=Re.record,hr=Re.style,Qr=Re.className,xi=Re.inverse,qn=Re.getHeight,Ki=St.render,$i=St.dataIndex,na=St.className,Ia=St.width,sa=De(Ni,["columnsOffset"]),ja=sa.columnsOffset,Ra=ni(Ge,St,Rt,un,vn),oo=Ra.key,Uo=Ra.fixedInfo,lo=Ra.appendCellNode,To=Ra.additionalCellProps,yl=To.style,Kl=To.colSpan,bo=Kl===void 0?1:Kl,ma=To.rowSpan,fa=ma===void 0?1:ma,Aa=Rt-1,so=Si(Aa,bo,ja),Mo=bo>1?Ia-so:0,Dl=(0,_e.Z)((0,_e.Z)((0,_e.Z)({},yl),hr),{},{flex:"0 0 ".concat(so,"px"),width:"".concat(so,"px"),marginRight:Mo,pointerEvents:"auto"}),ol=de.useMemo(function(){return xi?fa<=1:bo===0||fa===0||fa>1},[fa,bo,xi]);ol?Dl.visibility="hidden":xi&&(Dl.height=qn==null?void 0:qn(fa));var sl=ol?function(){return null}:Ki,Zl={};return(fa===0||bo===0)&&(Zl.rowSpan=1,Zl.colSpan=1),de.createElement(bt,(0,Xe.Z)({className:$e()(na,Qr),ellipsis:St.ellipsis,align:St.align,scope:St.rowScope,component:"div",prefixCls:Ge.prefixCls,key:oo,record:Ar,index:vn,renderIndex:ir,dataIndex:$i,render:sl,shouldCellUpdate:St.shouldCellUpdate},Uo,{appendNode:lo,additionalProps:(0,_e.Z)((0,_e.Z)({},To),{},{style:Dl},Zl)}))}var Bi=Jr,Wi=["data","index","className","rowKey","style","extra","getHeight"],da=de.forwardRef(function(Re,Ge){var St=Re.data,Rt=Re.index,un=Re.className,vn=Re.rowKey,ir=Re.style,Ar=Re.extra,hr=Re.getHeight,Qr=(0,wn.Z)(Re,Wi),xi=St.record,qn=St.indent,Ki=St.index,$i=De(Ee,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),na=$i.scrollX,Ia=$i.flattenColumns,sa=$i.prefixCls,ja=$i.fixColumn,Ra=$i.componentWidth,oo=Di(xi,vn,Rt,qn),Uo=oo.rowSupportExpand,lo=oo.expanded,To=oo.rowProps,yl=oo.expandedRowRender,Kl=oo.expandedRowClassName,bo;if(Uo&&lo){var ma=yl(xi,Rt,qn+1,lo),fa=Kl==null?void 0:Kl(xi,Rt,qn),Aa={};ja&&(Aa={style:(0,Me.Z)({},"--virtual-width","".concat(Ra,"px"))});var so="".concat(sa,"-expanded-row-cell");bo=de.createElement("div",{className:$e()("".concat(sa,"-expanded-row"),"".concat(sa,"-expanded-row-level-").concat(qn+1),fa)},de.createElement(bt,{component:"div",prefixCls:sa,className:$e()(so,(0,Me.Z)({},"".concat(so,"-fixed"),ja)),additionalProps:Aa},ma))}var Mo=(0,_e.Z)((0,_e.Z)({},ir),{},{width:na});Ar&&(Mo.position="absolute",Mo.pointerEvents="none");var Dl=de.createElement("div",(0,Xe.Z)({},To,Qr,{ref:Uo?null:Ge,className:$e()(un,"".concat(sa,"-row"),To==null?void 0:To.className,(0,Me.Z)({},"".concat(sa,"-row-extra"),Ar)),style:(0,_e.Z)((0,_e.Z)({},Mo),To==null?void 0:To.style)}),Ia.map(function(ol,sl){return de.createElement(Bi,{key:sl,rowInfo:oo,column:ol,colIndex:sl,indent:qn,index:Rt,renderIndex:Ki,record:xi,inverse:Ar,getHeight:hr})}));return Uo?de.createElement("div",{ref:Ge},Dl,bo):Dl}),Vi=Je(da),Ei=Vi,ga=de.forwardRef(function(Re,Ge){var St=Re.data,Rt=Re.onScroll,un=De(Ee,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),vn=un.flattenColumns,ir=un.onColumnResize,Ar=un.getRowKey,hr=un.expandedKeys,Qr=un.prefixCls,xi=un.childrenColumnName,qn=un.emptyNode,Ki=un.scrollX,$i=De(di),na=$i.scrollY,Ia=$i.listItemHeight,sa=de.useRef(),ja=Ti(St,xi,hr,Ar),Ra=de.useMemo(function(){var bo=0;return vn.map(function(ma){var fa=ma.width,Aa=ma.key;return bo+=fa,[Aa,fa,bo]})},[vn]),oo=de.useMemo(function(){return Ra.map(function(bo){return bo[2]})},[Ra]);de.useEffect(function(){Ra.forEach(function(bo){var ma=(0,Ie.Z)(bo,2),fa=ma[0],Aa=ma[1];ir(fa,Aa)})},[Ra]),de.useImperativeHandle(Ge,function(){var bo={};return Object.defineProperty(bo,"scrollLeft",{get:function(){var fa;return((fa=sa.current)===null||fa===void 0?void 0:fa.getScrollInfo().x)||0},set:function(fa){var Aa;(Aa=sa.current)===null||Aa===void 0||Aa.scrollTo({left:fa})}}),bo});var Uo=function(ma,fa){var Aa,so=(Aa=ja[fa])===null||Aa===void 0?void 0:Aa.record,Mo=ma.onCell;if(Mo){var Dl,ol=Mo(so,fa);return(Dl=ol==null?void 0:ol.rowSpan)!==null&&Dl!==void 0?Dl:1}return 1},lo=function(ma){var fa=ma.start,Aa=ma.end,so=ma.getSize,Mo=ma.offsetY;if(Aa<0)return null;for(var Dl=vn.filter(function(wo){return Uo(wo,fa)===0}),ol=fa,sl=function(dl){if(Dl=Dl.filter(function(Ml){return Uo(Ml,dl)===0}),!Dl.length)return ol=dl,"break"},Zl=fa;Zl>=0;Zl-=1){var Ul=sl(Zl);if(Ul==="break")break}for(var ts=vn.filter(function(wo){return Uo(wo,Aa)!==1}),Jl=Aa,Ls=function(dl){if(ts=ts.filter(function(Ml){return Uo(Ml,dl)!==1}),!ts.length)return Jl=Math.max(dl-1,Aa),"break"},Is=Aa;Is<ja.length;Is+=1){var Ql=Ls(Is);if(Ql==="break")break}for(var du=[],os=function(dl){var Ml=ja[dl];if(!Ml)return"continue";vn.some(function(_o){return Uo(_o,dl)>1})&&du.push(dl)},As=ol;As<=Jl;As+=1)var xs=os(As);var zl=du.map(function(wo){var dl=ja[wo],Ml=Ar(dl.record,wo),_o=function(Wl){var ls=wo+Wl-1,ss=Ar(ja[ls].record,ls),Nu=so(Ml,ss);return Nu.bottom-Nu.top},ys=so(Ml);return de.createElement(Ei,{key:wo,data:dl,rowKey:Ml,index:wo,style:{top:-Mo+ys.top},extra:!0,getHeight:_o})});return zl},To=de.useMemo(function(){return{columnsOffset:oo}},[oo]),yl="".concat(Qr,"-tbody"),Kl;return ja.length?Kl=de.createElement(kr.Z,{fullHeight:!1,ref:sa,className:$e()(yl,"".concat(yl,"-virtual")),height:na,itemHeight:Ia||24,data:ja,itemKey:function(ma){return Ar(ma.record)},scrollWidth:Ki,onVirtualScroll:function(ma){var fa=ma.x;Rt({scrollLeft:fa})},extraRender:lo},function(bo,ma,fa){var Aa=Ar(bo.record,ma);return de.createElement(Ei,(0,Xe.Z)({data:bo,rowKey:Aa,index:ma},fa))}):Kl=de.createElement("div",{className:$e()("".concat(Qr,"-placeholder"))},de.createElement(bt,{component:"div",prefixCls:Qr},qn)),de.createElement(Ni.Provider,{value:To},Kl)}),Ca=Je(ga),fo=Ca,Bo=function(Ge,St){var Rt=St.ref,un=St.onScroll;return de.createElement(fo,{ref:Rt,data:Ge,onScroll:un})},xo=100;function Jt(Re){var Ge=Re.columns,St=Re.scroll,Rt=Re.prefixCls,un=Rt===void 0?Zr:Rt,vn=Re.className,ir=Re.listItemHeight,Ar=St||{},hr=Ar.x,Qr=Ar.y;typeof hr!="number"&&(hr=((Ge||[]).length+1)*xo),typeof Qr!="number"&&(Qr=500);var xi=de.useMemo(function(){return{scrollY:Qr,listItemHeight:ir}},[Qr,ir]);return de.createElement(di.Provider,{value:xi},de.createElement(lr,(0,Xe.Z)({},Re,{className:$e()(vn,"".concat(un,"-virtual")),scroll:(0,_e.Z)((0,_e.Z)({},St),{},{x:hr}),components:{body:Bo},columns:Ge,internalHooks:fe,tailor:!0})))}function rn(Re){return ht(Jt,Re)}var kn=rn(),zr=null;function Mr(Re){return null}var tr=Mr;function yr(Re){return null}var Ln=yr,Xn=te(10366),qr=te(58375),Pi=te(53124),Da=te(88258),la=te(98675),La=te(25378),mo=te(24457),Ui=te(28452),pi=te(57953),ri=te(29691);function Xa(Re){return function(St){let{prefixCls:Rt,onExpand:un,record:vn,expanded:ir,expandable:Ar}=St;const hr=`${Rt}-row-expand-icon`;return de.createElement("button",{type:"button",onClick:Qr=>{un(vn,Qr),Qr.stopPropagation()},className:$e()(hr,{[`${hr}-spaced`]:!Ar,[`${hr}-expanded`]:Ar&&ir,[`${hr}-collapsed`]:Ar&&!ir}),"aria-label":ir?Re.collapse:Re.expand,"aria-expanded":ir})}}var ya=Xa;function to(Re,Ge){return"key"in Re&&Re.key!==void 0&&Re.key!==null?Re.key:Re.dataIndex?Array.isArray(Re.dataIndex)?Re.dataIndex.join("."):Re.dataIndex:Ge}function Ba(Re,Ge){return Ge?`${Ge}-${Re}`:`${Re}`}function Ua(Re,Ge){return typeof Re=="function"?Re(Ge):Re}function ko(Re,Ge){const St=Ua(Re,Ge);return Object.prototype.toString.call(St)==="[object Object]"?"":St}var Va={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},qi=Va,So=te(84089),Ro=function(Ge,St){return de.createElement(So.Z,(0,Xe.Z)({},Ge,{ref:St,icon:qi}))},fl=de.forwardRef(Ro),Al=te(7699),jt=te(57838);function dn(Re){const Ge=de.useRef(Re),St=(0,jt.Z)();return[()=>Ge.current,Rt=>{Ge.current=Rt,St()}]}var Mn=te(71577),ur=te(84567),Qi=te(85418),dr=te(32983),ii=te(68508),si=te(76529),ki=te(78045),Yi=te(79870),Lr=te(72395),ia=te(69677);function Ha(Re){let{value:Ge,onChange:St,filterSearch:Rt,tablePrefixCls:un,locale:vn}=Re;return Rt?de.createElement("div",{className:`${un}-filter-dropdown-search`},de.createElement(ia.default,{prefix:de.createElement(Lr.Z,null),placeholder:vn.filterSearchPlaceholder,onChange:St,value:Ge,htmlSize:1,className:`${un}-filter-dropdown-search-input`})):null}var ro=Ha,Xi=te(92389);const Wa=Re=>{const{keyCode:Ge}=Re;Ge===Xi.Z.ENTER&&Re.stopPropagation()};var jr=de.forwardRef((Re,Ge)=>de.createElement("div",{className:Re.className,onClick:St=>St.stopPropagation(),onKeyDown:Wa,ref:Ge},Re.children));function li(Re){let Ge=[];return(Re||[]).forEach(St=>{let{value:Rt,children:un}=St;Ge.push(Rt),un&&(Ge=[].concat((0,Na.Z)(Ge),(0,Na.Z)(li(un))))}),Ge}function va(Re){return Re.some(Ge=>{let{children:St}=Ge;return St})}function tt(Re,Ge){return typeof Ge=="string"||typeof Ge=="number"?Ge==null?void 0:Ge.toString().toLowerCase().includes(Re.trim().toLowerCase()):!1}function nt(Re){let{filters:Ge,prefixCls:St,filteredKeys:Rt,filterMultiple:un,searchValue:vn,filterSearch:ir}=Re;return Ge.map((Ar,hr)=>{const Qr=String(Ar.value);if(Ar.children)return{key:Qr||hr,label:Ar.text,popupClassName:`${St}-dropdown-submenu`,children:nt({filters:Ar.children,prefixCls:St,filteredKeys:Rt,filterMultiple:un,searchValue:vn,filterSearch:ir})};const xi=un?ur.default:ki.ZP,qn={key:Ar.value!==void 0?Qr:hr,label:de.createElement(de.Fragment,null,de.createElement(xi,{checked:Rt.includes(Qr)}),de.createElement("span",null,Ar.text))};return vn.trim()?typeof ir=="function"?ir(vn,Ar)?qn:null:tt(vn,Ar.text)?qn:null:qn})}function Qt(Re){var Ge,St;const{tablePrefixCls:Rt,prefixCls:un,column:vn,dropdownPrefixCls:ir,columnKey:Ar,filterMultiple:hr,filterMode:Qr="menu",filterSearch:xi=!1,filterState:qn,triggerFilter:Ki,locale:$i,children:na,getPopupContainer:Ia}=Re,{filterDropdownOpen:sa,onFilterDropdownOpenChange:ja,filterResetToDefaultFilteredValue:Ra,defaultFilteredValue:oo,filterDropdownVisible:Uo,onFilterDropdownVisibleChange:lo}=vn,[To,yl]=de.useState(!1),Kl=!!(qn&&(!((Ge=qn.filteredKeys)===null||Ge===void 0)&&Ge.length||qn.forceFiltered)),bo=co=>{yl(co),ja==null||ja(co),lo==null||lo(co)},ma=(St=sa!=null?sa:Uo)!==null&&St!==void 0?St:To,fa=qn==null?void 0:qn.filteredKeys,[Aa,so]=dn(fa||[]),Mo=co=>{let{selectedKeys:Wl}=co;so(Wl)},Dl=(co,Wl)=>{let{node:ls,checked:ss}=Wl;Mo(hr?{selectedKeys:co}:{selectedKeys:ss&&ls.key?[ls.key]:[]})};de.useEffect(()=>{To&&Mo({selectedKeys:fa||[]})},[fa]);const[ol,sl]=de.useState([]),Zl=co=>{sl(co)},[Ul,ts]=de.useState(""),Jl=co=>{const{value:Wl}=co.target;ts(Wl)};de.useEffect(()=>{To||ts("")},[To]);const Ls=co=>{const Wl=co&&co.length?co:null;if(Wl===null&&(!qn||!qn.filteredKeys)||(0,Al.Z)(Wl,qn==null?void 0:qn.filteredKeys,!0))return null;Ki({column:vn,key:Ar,filteredKeys:Wl})},Is=()=>{bo(!1),Ls(Aa())},Ql=function(){let{confirm:co,closeDropdown:Wl}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};co&&Ls([]),Wl&&bo(!1),ts(""),so(Ra?(oo||[]).map(ls=>String(ls)):[])},du=function(){let{closeDropdown:co}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};co&&bo(!1),Ls(Aa())},os=co=>{co&&fa!==void 0&&so(fa||[]),bo(co),!co&&!vn.filterDropdown&&Is()},As=$e()({[`${ir}-menu-without-submenu`]:!va(vn.filters||[])}),xs=co=>{if(co.target.checked){const Wl=li(vn==null?void 0:vn.filters).map(ls=>String(ls));so(Wl)}else so([])},zl=co=>{let{filters:Wl}=co;return(Wl||[]).map((ls,ss)=>{const Nu=String(ls.value),fu={title:ls.text,key:ls.value!==void 0?Nu:ss};return ls.children&&(fu.children=zl({filters:ls.children})),fu})},wo=co=>{var Wl;return Object.assign(Object.assign({},co),{text:co.title,value:co.key,children:((Wl=co.children)===null||Wl===void 0?void 0:Wl.map(ls=>wo(ls)))||[]})};let dl;if(typeof vn.filterDropdown=="function")dl=vn.filterDropdown({prefixCls:`${ir}-custom`,setSelectedKeys:co=>Mo({selectedKeys:co}),selectedKeys:Aa(),confirm:du,clearFilters:Ql,filters:vn.filters,visible:ma,close:()=>{bo(!1)}});else if(vn.filterDropdown)dl=vn.filterDropdown;else{const co=Aa()||[],Wl=()=>(vn.filters||[]).length===0?de.createElement(dr.Z,{image:dr.Z.PRESENTED_IMAGE_SIMPLE,description:$i.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qr==="tree"?de.createElement(de.Fragment,null,de.createElement(ro,{filterSearch:xi,value:Ul,onChange:Jl,tablePrefixCls:Rt,locale:$i}),de.createElement("div",{className:`${Rt}-filter-dropdown-tree`},hr?de.createElement(ur.default,{checked:co.length===li(vn.filters).length,indeterminate:co.length>0&&co.length<li(vn.filters).length,className:`${Rt}-filter-dropdown-checkall`,onChange:xs},$i.filterCheckall):null,de.createElement(Yi.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:hr,checkStrictly:!hr,className:`${ir}-menu`,onCheck:Dl,checkedKeys:co,selectedKeys:co,showIcon:!1,treeData:zl({filters:vn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ul.trim()?ss=>typeof xi=="function"?xi(Ul,wo(ss)):tt(Ul,ss.title):void 0}))):de.createElement(de.Fragment,null,de.createElement(ro,{filterSearch:xi,value:Ul,onChange:Jl,tablePrefixCls:Rt,locale:$i}),de.createElement(ii.default,{selectable:!0,multiple:hr,prefixCls:`${ir}-menu`,className:As,onSelect:Mo,onDeselect:Mo,selectedKeys:co,getPopupContainer:Ia,openKeys:ol,onOpenChange:Zl,items:nt({filters:vn.filters||[],filterSearch:xi,prefixCls:un,filteredKeys:Aa(),filterMultiple:hr,searchValue:Ul})})),ls=()=>Ra?(0,Al.Z)((oo||[]).map(ss=>String(ss)),co,!0):co.length===0;dl=de.createElement(de.Fragment,null,Wl(),de.createElement("div",{className:`${un}-dropdown-btns`},de.createElement(Mn.ZP,{type:"link",size:"small",disabled:ls(),onClick:()=>Ql()},$i.filterReset),de.createElement(Mn.ZP,{type:"primary",size:"small",onClick:Is},$i.filterConfirm)))}vn.filterDropdown&&(dl=de.createElement(si.J,{selectable:void 0},dl));const Ml=()=>de.createElement(jr,{className:`${un}-dropdown`},dl);let _o;typeof vn.filterIcon=="function"?_o=vn.filterIcon(Kl):vn.filterIcon?_o=vn.filterIcon:_o=de.createElement(fl,null);const{direction:ys}=de.useContext(Pi.E_);return de.createElement("div",{className:`${un}-column`},de.createElement("span",{className:`${Rt}-column-title`},na),de.createElement(Qi.Z,{dropdownRender:Ml,trigger:["click"],open:ma,onOpenChange:os,getPopupContainer:Ia,placement:ys==="rtl"?"bottomLeft":"bottomRight"},de.createElement("span",{role:"button",tabIndex:-1,className:$e()(`${un}-trigger`,{active:Kl}),onClick:co=>{co.stopPropagation()}},_o)))}var Kt=Qt;function Bn(Re,Ge,St){let Rt=[];return(Re||[]).forEach((un,vn)=>{var ir;const Ar=Ba(vn,St);if(un.filters||"filterDropdown"in un||"onFilter"in un)if("filteredValue"in un){let hr=un.filteredValue;"filterDropdown"in un||(hr=(ir=hr==null?void 0:hr.map(String))!==null&&ir!==void 0?ir:hr),Rt.push({column:un,key:to(un,Ar),filteredKeys:hr,forceFiltered:un.filtered})}else Rt.push({column:un,key:to(un,Ar),filteredKeys:Ge&&un.defaultFilteredValue?un.defaultFilteredValue:void 0,forceFiltered:un.filtered});"children"in un&&(Rt=[].concat((0,Na.Z)(Rt),(0,Na.Z)(Bn(un.children,Ge,Ar))))}),Rt}function Gn(Re,Ge,St,Rt,un,vn,ir,Ar){return St.map((hr,Qr)=>{const xi=Ba(Qr,Ar),{filterMultiple:qn=!0,filterMode:Ki,filterSearch:$i}=hr;let na=hr;if(na.filters||na.filterDropdown){const Ia=to(na,xi),sa=Rt.find(ja=>{let{key:Ra}=ja;return Ia===Ra});na=Object.assign(Object.assign({},na),{title:ja=>de.createElement(Kt,{tablePrefixCls:Re,prefixCls:`${Re}-filter`,dropdownPrefixCls:Ge,column:na,columnKey:Ia,filterState:sa,filterMultiple:qn,filterMode:Ki,filterSearch:$i,triggerFilter:vn,locale:un,getPopupContainer:ir},Ua(hr.title,ja))})}return"children"in na&&(na=Object.assign(Object.assign({},na),{children:Gn(Re,Ge,na.children,Rt,un,vn,ir,xi)})),na})}function _n(Re){const Ge={};return Re.forEach(St=>{let{key:Rt,filteredKeys:un,column:vn}=St;const{filters:ir,filterDropdown:Ar}=vn;if(Ar)Ge[Rt]=un||null;else if(Array.isArray(un)){const hr=li(ir);Ge[Rt]=hr.filter(Qr=>un.includes(String(Qr)))}else Ge[Rt]=null}),Ge}function Pr(Re,Ge){return Ge.reduce((St,Rt)=>{const{column:{onFilter:un,filters:vn},filteredKeys:ir}=Rt;return un&&ir&&ir.length?St.filter(Ar=>ir.some(hr=>{const Qr=li(vn),xi=Qr.findIndex(Ki=>String(Ki)===String(hr)),qn=xi!==-1?Qr[xi]:hr;return un(qn,Ar)})):St},Re)}const Kr=Re=>Re.flatMap(Ge=>"children"in Ge?[Ge].concat((0,Na.Z)(Kr(Ge.children||[]))):[Ge]);function Er(Re){let{prefixCls:Ge,dropdownPrefixCls:St,mergedColumns:Rt,onFilterChange:un,getPopupContainer:vn,locale:ir}=Re;const Ar=de.useMemo(()=>Kr(Rt||[]),[Rt]),[hr,Qr]=de.useState(()=>Bn(Ar,!0)),xi=de.useMemo(()=>{const na=Bn(Ar,!1);if(na.length===0)return na;let Ia=!0,sa=!0;if(na.forEach(ja=>{let{filteredKeys:Ra}=ja;Ra!==void 0?Ia=!1:sa=!1}),Ia){const ja=(Ar||[]).map((Ra,oo)=>to(Ra,Ba(oo)));return hr.filter(Ra=>{let{key:oo}=Ra;return ja.includes(oo)}).map(Ra=>{const oo=Ar[ja.findIndex(Uo=>Uo===Ra.key)];return Object.assign(Object.assign({},Ra),{column:Object.assign(Object.assign({},Ra.column),oo),forceFiltered:oo.filtered})})}return na},[Ar,hr]),qn=de.useMemo(()=>_n(xi),[xi]),Ki=na=>{const Ia=xi.filter(sa=>{let{key:ja}=sa;return ja!==na.key});Ia.push(na),Qr(Ia),un(_n(Ia),Ia)};return[na=>Gn(Ge,St,na,xi,ir,Ki,vn),xi,qn]}var ta=Er;function zi(Re,Ge,St){const Rt=de.useRef({});function un(vn){if(!Rt.current||Rt.current.data!==Re||Rt.current.childrenColumnName!==Ge||Rt.current.getRowKey!==St){let Ar=function(hr){hr.forEach((Qr,xi)=>{const qn=St(Qr,xi);ir.set(qn,Qr),Qr&&typeof Qr=="object"&&Ge in Qr&&Ar(Qr[Ge]||[])})};const ir=new Map;Ar(Re),Rt.current={data:Re,childrenColumnName:Ge,kvMap:ir,getRowKey:St}}return Rt.current.kvMap.get(vn)}return[un]}var ji=te(38780),Li=function(Re,Ge){var St={};for(var Rt in Re)Object.prototype.hasOwnProperty.call(Re,Rt)&&Ge.indexOf(Rt)<0&&(St[Rt]=Re[Rt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Rt=Object.getOwnPropertySymbols(Re);un<Rt.length;un++)Ge.indexOf(Rt[un])<0&&Object.prototype.propertyIsEnumerable.call(Re,Rt[un])&&(St[Rt[un]]=Re[Rt[un]]);return St};const ea=10;function Hi(Re,Ge){const St={current:Re.current,pageSize:Re.pageSize};return Object.keys(Ge&&typeof Ge=="object"?Ge:{}).forEach(un=>{const vn=Re[un];typeof vn!="function"&&(St[un]=vn)}),St}function ka(Re,Ge,St){const Rt=St&&typeof St=="object"?St:{},{total:un=0}=Rt,vn=Li(Rt,["total"]),[ir,Ar]=(0,de.useState)(()=>({current:"defaultCurrent"in vn?vn.defaultCurrent:1,pageSize:"defaultPageSize"in vn?vn.defaultPageSize:ea})),hr=(0,ji.Z)(ir,vn,{total:un>0?un:Re}),Qr=Math.ceil((un||Re)/hr.pageSize);hr.current>Qr&&(hr.current=Qr||1);const xi=(Ki,$i)=>{Ar({current:Ki!=null?Ki:1,pageSize:$i||hr.pageSize})},qn=(Ki,$i)=>{var na;St&&((na=St.onChange)===null||na===void 0||na.call(St,Ki,$i)),xi(Ki,$i),Ge(Ki,$i||(hr==null?void 0:hr.pageSize))};return St===!1?[{},()=>{}]:[Object.assign(Object.assign({},hr),{onChange:qn}),xi]}var vo=ka,Fo=te(42922),Zo=te(29873),Ao=te(97153),qo=te(83898),go=te(5663);const Io={},Xo="SELECT_ALL",Fa="SELECT_INVERT",_a="SELECT_NONE",no=[],Yo=(Re,Ge)=>{let St=[];return(Ge||[]).forEach(Rt=>{St.push(Rt),Rt&&typeof Rt=="object"&&Re in Rt&&(St=[].concat((0,Na.Z)(St),(0,Na.Z)(Yo(Re,Rt[Re]))))}),St};var il=(Re,Ge)=>{const{preserveSelectedRowKeys:St,selectedRowKeys:Rt,defaultSelectedRowKeys:un,getCheckboxProps:vn,onChange:ir,onSelect:Ar,onSelectAll:hr,onSelectInvert:Qr,onSelectNone:xi,onSelectMultiple:qn,columnWidth:Ki,type:$i,selections:na,fixed:Ia,renderCell:sa,hideSelectAll:ja,checkStrictly:Ra=!0}=Ge||{},{prefixCls:oo,data:Uo,pageData:lo,getRecordByKey:To,getRowKey:yl,expandType:Kl,childrenColumnName:bo,locale:ma,getPopupContainer:fa}=Re,[Aa,so]=(0,go.Z)(Rt||un||no,{value:Rt}),Mo=de.useRef(new Map),Dl=(0,de.useCallback)(wo=>{if(St){const dl=new Map;wo.forEach(Ml=>{let _o=To(Ml);!_o&&Mo.current.has(Ml)&&(_o=Mo.current.get(Ml)),dl.set(Ml,_o)}),Mo.current=dl}},[To,St]);de.useEffect(()=>{Dl(Aa)},[Aa]);const{keyEntities:ol}=(0,de.useMemo)(()=>{if(Ra)return{keyEntities:null};let wo=Uo;if(St){const dl=new Set(Uo.map((_o,ys)=>yl(_o,ys))),Ml=Array.from(Mo.current).reduce((_o,ys)=>{let[co,Wl]=ys;return dl.has(co)?_o:_o.concat(Wl)},[]);wo=[].concat((0,Na.Z)(wo),(0,Na.Z)(Ml))}return(0,qo.I8)(wo,{externalGetKey:yl,childrenPropName:bo})},[Uo,yl,Ra,bo,St]),sl=(0,de.useMemo)(()=>Yo(bo,lo),[bo,lo]),Zl=(0,de.useMemo)(()=>{const wo=new Map;return sl.forEach((dl,Ml)=>{const _o=yl(dl,Ml),ys=(vn?vn(dl):null)||{};wo.set(_o,ys)}),wo},[sl,yl,vn]),Ul=(0,de.useCallback)(wo=>{var dl;return!!(!((dl=Zl.get(yl(wo)))===null||dl===void 0)&&dl.disabled)},[Zl,yl]),[ts,Jl]=(0,de.useMemo)(()=>{if(Ra)return[Aa||[],[]];const{checkedKeys:wo,halfCheckedKeys:dl}=(0,Ao.S)(Aa,!0,ol,Ul);return[wo||[],dl]},[Aa,Ra,ol,Ul]),Ls=(0,de.useMemo)(()=>{const wo=$i==="radio"?ts.slice(0,1):ts;return new Set(wo)},[ts,$i]),Is=(0,de.useMemo)(()=>$i==="radio"?new Set:new Set(Jl),[Jl,$i]),[Ql,du]=(0,de.useState)(null);de.useEffect(()=>{Ge||so(no)},[!!Ge]);const os=(0,de.useCallback)((wo,dl)=>{let Ml,_o;Dl(wo),St?(Ml=wo,_o=wo.map(ys=>Mo.current.get(ys))):(Ml=[],_o=[],wo.forEach(ys=>{const co=To(ys);co!==void 0&&(Ml.push(ys),_o.push(co))})),so(Ml),ir==null||ir(Ml,_o,{type:dl})},[so,To,ir,St]),As=(0,de.useCallback)((wo,dl,Ml,_o)=>{if(Ar){const ys=Ml.map(co=>To(co));Ar(To(wo),dl,ys,_o)}os(Ml,"single")},[Ar,To,os]),xs=(0,de.useMemo)(()=>!na||ja?null:(na===!0?[Xo,Fa,_a]:na).map(dl=>dl===Xo?{key:"all",text:ma.selectionAll,onSelect(){os(Uo.map((Ml,_o)=>yl(Ml,_o)).filter(Ml=>{const _o=Zl.get(Ml);return!(_o!=null&&_o.disabled)||Ls.has(Ml)}),"all")}}:dl===Fa?{key:"invert",text:ma.selectInvert,onSelect(){const Ml=new Set(Ls);lo.forEach((ys,co)=>{const Wl=yl(ys,co),ls=Zl.get(Wl);ls!=null&&ls.disabled||(Ml.has(Wl)?Ml.delete(Wl):Ml.add(Wl))});const _o=Array.from(Ml);Qr&&Qr(_o),os(_o,"invert")}}:dl===_a?{key:"none",text:ma.selectNone,onSelect(){xi==null||xi(),os(Array.from(Ls).filter(Ml=>{const _o=Zl.get(Ml);return _o==null?void 0:_o.disabled}),"none")}}:dl).map(dl=>Object.assign(Object.assign({},dl),{onSelect:function(){for(var Ml,_o,ys=arguments.length,co=new Array(ys),Wl=0;Wl<ys;Wl++)co[Wl]=arguments[Wl];(_o=dl.onSelect)===null||_o===void 0||(Ml=_o).call.apply(Ml,[dl].concat(co)),du(null)}})),[na,Ls,lo,yl,Qr,os]);return[(0,de.useCallback)(wo=>{var dl;if(!Ge)return wo.filter(hs=>hs!==Io);let Ml=(0,Na.Z)(wo);const _o=new Set(Ls),ys=sl.map(yl).filter(hs=>!Zl.get(hs).disabled),co=ys.every(hs=>_o.has(hs)),Wl=ys.some(hs=>_o.has(hs)),ls=()=>{const hs=[];co?ys.forEach(Ts=>{_o.delete(Ts),hs.push(Ts)}):ys.forEach(Ts=>{_o.has(Ts)||(_o.add(Ts),hs.push(Ts))});const bs=Array.from(_o);hr==null||hr(!co,bs.map(Ts=>To(Ts)),hs.map(Ts=>To(Ts))),os(bs,"all"),du(null)};let ss;if($i!=="radio"){let hs;if(xs){const ns={getPopupContainer:fa,items:xs.map((au,hu)=>{const{key:xu,text:ju,onSelect:eu}=au;return{key:xu!=null?xu:hu,onClick:()=>{eu==null||eu(ys)},label:ju}})};hs=de.createElement("div",{className:`${oo}-selection-extra`},de.createElement(Qi.Z,{menu:ns,getPopupContainer:fa},de.createElement("span",null,de.createElement(Fo.Z,null))))}const bs=sl.map((ns,au)=>{const hu=yl(ns,au),xu=Zl.get(hu)||{};return Object.assign({checked:_o.has(hu)},xu)}).filter(ns=>{let{disabled:au}=ns;return au}),Ts=!!bs.length&&bs.length===sl.length,Xl=Ts&&bs.every(ns=>{let{checked:au}=ns;return au}),iu=Ts&&bs.some(ns=>{let{checked:au}=ns;return au});ss=!ja&&de.createElement("div",{className:`${oo}-selection`},de.createElement(ur.default,{checked:Ts?Xl:!!sl.length&&co,indeterminate:Ts?!Xl&&iu:!co&&Wl,onChange:ls,disabled:sl.length===0||Ts,"aria-label":hs?"Custom selection":"Select all",skipGroup:!0}),hs)}let Nu;$i==="radio"?Nu=(hs,bs,Ts)=>{const Xl=yl(bs,Ts),iu=_o.has(Xl);return{node:de.createElement(ki.ZP,Object.assign({},Zl.get(Xl),{checked:iu,onClick:ns=>ns.stopPropagation(),onChange:ns=>{_o.has(Xl)||As(Xl,!0,[Xl],ns.nativeEvent)}})),checked:iu}}:Nu=(hs,bs,Ts)=>{var Xl;const iu=yl(bs,Ts),ns=_o.has(iu),au=Is.has(iu),hu=Zl.get(iu);let xu;return Kl==="nest"?xu=au:xu=(Xl=hu==null?void 0:hu.indeterminate)!==null&&Xl!==void 0?Xl:au,{node:de.createElement(ur.default,Object.assign({},hu,{indeterminate:xu,checked:ns,skipGroup:!0,onClick:ju=>ju.stopPropagation(),onChange:ju=>{let{nativeEvent:eu}=ju;const{shiftKey:Uu}=eu;let tu=-1,Bu=-1;if(Uu&&Ra){const nu=new Set([Ql,iu]);ys.some((ou,Qs)=>{if(nu.has(ou))if(tu===-1)tu=Qs;else return Bu=Qs,!0;return!1})}if(Bu!==-1&&tu!==Bu&&Ra){const nu=ys.slice(tu,Bu+1),ou=[];ns?nu.forEach(Ws=>{_o.has(Ws)&&(ou.push(Ws),_o.delete(Ws))}):nu.forEach(Ws=>{_o.has(Ws)||(ou.push(Ws),_o.add(Ws))});const Qs=Array.from(_o);qn==null||qn(!ns,Qs.map(Ws=>To(Ws)),ou.map(Ws=>To(Ws))),os(Qs,"multiple")}else{const nu=ts;if(Ra){const ou=ns?(0,Zo._5)(nu,iu):(0,Zo.L0)(nu,iu);As(iu,!ns,ou,eu)}else{const ou=(0,Ao.S)([].concat((0,Na.Z)(nu),[iu]),!0,ol,Ul),{checkedKeys:Qs,halfCheckedKeys:Ws}=ou;let hc=Qs;if(ns){const bc=new Set(Qs);bc.delete(iu),hc=(0,Ao.S)(Array.from(bc),{checked:!1,halfCheckedKeys:Ws},ol,Ul).checkedKeys}As(iu,!ns,hc,eu)}}du(ns?null:iu)}})),checked:ns}};const fu=(hs,bs,Ts)=>{const{node:Xl,checked:iu}=Nu(hs,bs,Ts);return sa?sa(iu,bs,Ts,Xl):Xl};if(!Ml.includes(Io))if(Ml.findIndex(hs=>{var bs;return((bs=hs[Cl])===null||bs===void 0?void 0:bs.columnType)==="EXPAND_COLUMN"})===0){const[hs,...bs]=Ml;Ml=[hs,Io].concat((0,Na.Z)(bs))}else Ml=[Io].concat((0,Na.Z)(Ml));const zu=Ml.indexOf(Io);Ml=Ml.filter((hs,bs)=>hs!==Io||bs===zu);const ha=Ml[zu-1],ec=Ml[zu+1];let qs=Ia;qs===void 0&&((ec==null?void 0:ec.fixed)!==void 0?qs=ec.fixed:(ha==null?void 0:ha.fixed)!==void 0&&(qs=ha.fixed)),qs&&ha&&((dl=ha[Cl])===null||dl===void 0?void 0:dl.columnType)==="EXPAND_COLUMN"&&ha.fixed===void 0&&(ha.fixed=qs);const Ku=$e()(`${oo}-selection-col`,{[`${oo}-selection-col-with-dropdown`]:na&&$i==="checkbox"}),Wu={fixed:qs,width:Ki,className:`${oo}-selection-column`,title:Ge.columnTitle||ss,render:fu,onCell:Ge.onCell,[Cl]:{className:Ku}};return Ml.map(hs=>hs===Io?Wu:hs)},[yl,sl,Ge,ts,Ls,Is,Ki,xs,Kl,Ql,Zl,qn,As,Ul]),Ls]},el=te(33463),cl=te(28575),vl=te(83062);const gl="ascend",kl="descend";function gr(Re){return typeof Re.sorter=="object"&&typeof Re.sorter.multiple=="number"?Re.sorter.multiple:!1}function Gi(Re){return typeof Re=="function"?Re:Re&&typeof Re=="object"&&Re.compare?Re.compare:!1}function ho(Re,Ge){return Ge?Re[Re.indexOf(Ge)+1]:Re[0]}function Ga(Re,Ge,St){let Rt=[];function un(vn,ir){Rt.push({column:vn,key:to(vn,ir),multiplePriority:gr(vn),sortOrder:vn.sortOrder})}return(Re||[]).forEach((vn,ir)=>{const Ar=Ba(ir,St);vn.children?("sortOrder"in vn&&un(vn,Ar),Rt=[].concat((0,Na.Z)(Rt),(0,Na.Z)(Ga(vn.children,Ge,Ar)))):vn.sorter&&("sortOrder"in vn?un(vn,Ar):Ge&&vn.defaultSortOrder&&Rt.push({column:vn,key:to(vn,Ar),multiplePriority:gr(vn),sortOrder:vn.defaultSortOrder}))}),Rt}function mi(Re,Ge,St,Rt,un,vn,ir,Ar){return(Ge||[]).map((hr,Qr)=>{const xi=Ba(Qr,Ar);let qn=hr;if(qn.sorter){const Ki=qn.sortDirections||un,$i=qn.showSorterTooltip===void 0?ir:qn.showSorterTooltip,na=to(qn,xi),Ia=St.find(Kl=>{let{key:bo}=Kl;return bo===na}),sa=Ia?Ia.sortOrder:null,ja=ho(Ki,sa);let Ra;if(hr.sortIcon)Ra=hr.sortIcon({sortOrder:sa});else{const Kl=Ki.includes(gl)&&de.createElement(cl.Z,{className:$e()(`${Re}-column-sorter-up`,{active:sa===gl})}),bo=Ki.includes(kl)&&de.createElement(el.Z,{className:$e()(`${Re}-column-sorter-down`,{active:sa===kl})});Ra=de.createElement("span",{className:$e()(`${Re}-column-sorter`,{[`${Re}-column-sorter-full`]:!!(Kl&&bo)})},de.createElement("span",{className:`${Re}-column-sorter-inner`,"aria-hidden":"true"},Kl,bo))}const{cancelSort:oo,triggerAsc:Uo,triggerDesc:lo}=vn||{};let To=oo;ja===kl?To=lo:ja===gl&&(To=Uo);const yl=typeof $i=="object"?$i:{title:To};qn=Object.assign(Object.assign({},qn),{className:$e()(qn.className,{[`${Re}-column-sort`]:sa}),title:Kl=>{const bo=de.createElement("div",{className:`${Re}-column-sorters`},de.createElement("span",{className:`${Re}-column-title`},Ua(hr.title,Kl)),Ra);return $i?de.createElement(vl.Z,Object.assign({},yl),bo):bo},onHeaderCell:Kl=>{const bo=hr.onHeaderCell&&hr.onHeaderCell(Kl)||{},ma=bo.onClick,fa=bo.onKeyDown;bo.onClick=Mo=>{Rt({column:hr,key:na,sortOrder:ja,multiplePriority:gr(hr)}),ma==null||ma(Mo)},bo.onKeyDown=Mo=>{Mo.keyCode===Xi.Z.ENTER&&(Rt({column:hr,key:na,sortOrder:ja,multiplePriority:gr(hr)}),fa==null||fa(Mo))};const Aa=ko(hr.title,{}),so=Aa==null?void 0:Aa.toString();return sa?bo["aria-sort"]=sa==="ascend"?"ascending":"descending":bo["aria-label"]=so||"",bo.className=$e()(bo.className,`${Re}-column-has-sorters`),bo.tabIndex=0,hr.ellipsis&&(bo.title=(Aa!=null?Aa:"").toString()),bo}})}return"children"in qn&&(qn=Object.assign(Object.assign({},qn),{children:mi(Re,qn.children,St,Rt,un,vn,ir,xi)})),qn})}function Sa(Re){const{column:Ge,sortOrder:St}=Re;return{column:Ge,order:St,field:Ge.dataIndex,columnKey:Ge.key}}function wa(Re){const Ge=Re.filter(St=>{let{sortOrder:Rt}=St;return Rt}).map(Sa);return Ge.length===0&&Re.length?Object.assign(Object.assign({},Sa(Re[Re.length-1])),{column:void 0}):Ge.length<=1?Ge[0]||{}:Ge}function Qa(Re,Ge,St){const Rt=Ge.slice().sort((ir,Ar)=>Ar.multiplePriority-ir.multiplePriority),un=Re.slice(),vn=Rt.filter(ir=>{let{column:{sorter:Ar},sortOrder:hr}=ir;return Gi(Ar)&&hr});return vn.length?un.sort((ir,Ar)=>{for(let hr=0;hr<vn.length;hr+=1){const Qr=vn[hr],{column:{sorter:xi},sortOrder:qn}=Qr,Ki=Gi(xi);if(Ki&&qn){const $i=Ki(ir,Ar,qn);if($i!==0)return qn===gl?$i:-$i}}return 0}).map(ir=>{const Ar=ir[St];return Ar?Object.assign(Object.assign({},ir),{[St]:Qa(Ar,Ge,St)}):ir}):un}function ca(Re){let{prefixCls:Ge,mergedColumns:St,onSorterChange:Rt,sortDirections:un,tableLocale:vn,showSorterTooltip:ir}=Re;const[Ar,hr]=de.useState(Ga(St,!0)),Qr=de.useMemo(()=>{let na=!0;const Ia=Ga(St,!1);if(!Ia.length)return Ar;const sa=[];function ja(oo){na?sa.push(oo):sa.push(Object.assign(Object.assign({},oo),{sortOrder:null}))}let Ra=null;return Ia.forEach(oo=>{Ra===null?(ja(oo),oo.sortOrder&&(oo.multiplePriority===!1?na=!1:Ra=!0)):(Ra&&oo.multiplePriority!==!1||(na=!1),ja(oo))}),sa},[St,Ar]),xi=de.useMemo(()=>{const na=Qr.map(Ia=>{let{column:sa,sortOrder:ja}=Ia;return{column:sa,order:ja}});return{sortColumns:na,sortColumn:na[0]&&na[0].column,sortOrder:na[0]&&na[0].order}},[Qr]);function qn(na){let Ia;na.multiplePriority===!1||!Qr.length||Qr[0].multiplePriority===!1?Ia=[na]:Ia=[].concat((0,Na.Z)(Qr.filter(sa=>{let{key:ja}=sa;return ja!==na.key})),[na]),hr(Ia),Rt(wa(Ia),Ia)}return[na=>mi(Ge,na,Qr,qn,un,vn,ir),Qr,xi,()=>wa(Qr)]}function ba(Re,Ge){return Re.map(St=>{const Rt=Object.assign({},St);return Rt.title=Ua(St.title,Ge),"children"in Rt&&(Rt.children=ba(Rt.children,Ge)),Rt})}function Ta(Re){return[de.useCallback(St=>ba(St,Re),[Re])]}var Eo=fr((Re,Ge)=>{const{_renderTimes:St}=Re,{_renderTimes:Rt}=Ge;return St!==Rt}),al=rn((Re,Ge)=>{const{_renderTimes:St}=Re,{_renderTimes:Rt}=Ge;return St!==Rt}),oa=te(84780),Jo=te(14747),Po=te(67968),ll=te(45503),$l=Re=>{const{componentCls:Ge}=Re,St=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`,Rt=(un,vn,ir)=>({[`&${Ge}-${un}`]:{[`> ${Ge}-container`]:{[`> ${Ge}-content, > ${Ge}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ge}-expanded-row-fixed`]:{margin:`-${vn}px -${ir+Re.lineWidth}px`}}}}}});return{[`${Ge}-wrapper`]:{[`${Ge}${Ge}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ge}-title`]:{border:St,borderBottom:0},[`> ${Ge}-container`]:{borderInlineStart:St,borderTop:St,[`
|
|
|
> ${Ge}-content,
|
|
|
> ${Ge}-header,
|
|
|
> ${Ge}-body,
|
|
|
> ${Ge}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:St},"> thead":{"> tr:not(:last-child) > th":{borderBottom:St},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ge}-cell-fix-right-first::after`]:{borderInlineEnd:St}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ge}-expanded-row-fixed`]:{margin:`-${Re.tablePaddingVertical}px -${Re.tablePaddingHorizontal+Re.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Re.lineWidth,bottom:0,borderInlineEnd:St,content:'""'}}}}}},[`&${Ge}-scroll-horizontal`]:{[`> ${Ge}-container > ${Ge}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ge}-expanded-row,
|
|
|
> tr${Ge}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Rt("middle",Re.tablePaddingVerticalMiddle,Re.tablePaddingHorizontalMiddle)),Rt("small",Re.tablePaddingVerticalSmall,Re.tablePaddingHorizontalSmall)),{[`> ${Ge}-footer`]:{border:St,borderTop:0}}),[`${Ge}-cell`]:{[`${Ge}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Re.lineWidth}px 0 ${Re.lineWidth}px ${Re.tableHeaderBg}`}},[`${Ge}-bordered ${Ge}-cell-scrollbar`]:{borderInlineEnd:St}}}},ds=Re=>{const{componentCls:Ge}=Re;return{[`${Ge}-wrapper`]:{[`${Ge}-cell-ellipsis`]:Object.assign(Object.assign({},Jo.vS),{wordBreak:"keep-all",[`
|
|
|
&${Ge}-cell-fix-left-last,
|
|
|
&${Ge}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Ge}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ge}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},uu=Re=>{const{componentCls:Ge}=Re;return{[`${Ge}-wrapper`]:{[`${Ge}-tbody > tr${Ge}-placeholder`]:{textAlign:"center",color:Re.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Re.colorBgContainer}}}}},Xs=te(49867),Rs=Re=>{const{componentCls:Ge,antCls:St,controlInteractiveSize:Rt,motionDurationSlow:un,lineWidth:vn,paddingXS:ir,lineType:Ar,tableBorderColor:hr,tableExpandIconBg:Qr,tableExpandColumnWidth:xi,borderRadius:qn,fontSize:Ki,fontSizeSM:$i,lineHeight:na,tablePaddingVertical:Ia,tablePaddingHorizontal:sa,tableExpandedRowBg:ja,paddingXXS:Ra}=Re,oo=Rt/2-vn,Uo=oo*2+vn*3,lo=`${vn}px ${Ar} ${hr}`,To=Ra-vn;return{[`${Ge}-wrapper`]:{[`${Ge}-expand-icon-col`]:{width:xi},[`${Ge}-row-expand-icon-cell`]:{textAlign:"center",[`${Ge}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ge}-row-indent`]:{height:1,float:"left"},[`${Ge}-row-expand-icon`]:Object.assign(Object.assign({},(0,Xs.N)(Re)),{position:"relative",float:"left",boxSizing:"border-box",width:Uo,height:Uo,padding:0,color:"inherit",lineHeight:`${Uo}px`,background:Qr,border:lo,borderRadius:qn,transform:`scale(${Rt/Uo})`,transition:`all ${un}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${un} ease-out`,content:'""'},"&::before":{top:oo,insetInlineEnd:To,insetInlineStart:To,height:vn},"&::after":{top:To,bottom:To,insetInlineStart:oo,width:vn,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Ge}-row-indent + ${Ge}-row-expand-icon`]:{marginTop:(Ki*na-vn*3)/2-Math.ceil(($i*1.4-vn*3)/2),marginInlineEnd:ir},[`tr${Ge}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ja}},[`${St}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ge}-expanded-row-fixed`]:{position:"relative",margin:`-${Ia}px -${sa}px`,padding:`${Ia}px ${sa}px`}}}},Js=Re=>{const{componentCls:Ge,antCls:St,iconCls:Rt,tableFilterDropdownWidth:un,tableFilterDropdownSearchWidth:vn,paddingXXS:ir,paddingXS:Ar,colorText:hr,lineWidth:Qr,lineType:xi,tableBorderColor:qn,tableHeaderIconColor:Ki,fontSizeSM:$i,tablePaddingHorizontal:na,borderRadius:Ia,motionDurationSlow:sa,colorTextDescription:ja,colorPrimary:Ra,tableHeaderFilterActiveBg:oo,colorTextDisabled:Uo,tableFilterDropdownBg:lo,tableFilterDropdownHeight:To,controlItemBgHover:yl,controlItemBgActive:Kl,boxShadowSecondary:bo,filterDropdownMenuBg:ma}=Re,fa=`${St}-dropdown`,Aa=`${Ge}-filter-dropdown`,so=`${St}-tree`,Mo=`${Qr}px ${xi} ${qn}`;return[{[`${Ge}-wrapper`]:{[`${Ge}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ge}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ir,marginInline:`${ir}px ${-na/2}px`,padding:`0 ${ir}px`,color:Ki,fontSize:$i,borderRadius:Ia,cursor:"pointer",transition:`all ${sa}`,"&:hover":{color:ja,background:oo},"&.active":{color:Ra}}}},{[`${St}-dropdown`]:{[Aa]:Object.assign(Object.assign({},(0,Jo.Wf)(Re)),{minWidth:un,backgroundColor:lo,borderRadius:Ia,boxShadow:bo,overflow:"hidden",[`${fa}-menu`]:{maxHeight:To,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ma,"&:empty::after":{display:"block",padding:`${Ar}px 0`,color:Uo,fontSize:$i,textAlign:"center",content:'"Not Found"'}},[`${Aa}-tree`]:{paddingBlock:`${Ar}px 0`,paddingInline:Ar,[so]:{padding:0},[`${so}-treenode ${so}-node-content-wrapper:hover`]:{backgroundColor:yl},[`${so}-treenode-checkbox-checked ${so}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Kl}}},[`${Aa}-search`]:{padding:Ar,borderBottom:Mo,"&-input":{input:{minWidth:vn},[Rt]:{color:Uo}}},[`${Aa}-checkall`]:{width:"100%",marginBottom:ir,marginInlineStart:ir},[`${Aa}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Ar-Qr}px ${Ar}px`,overflow:"hidden",borderTop:Mo}})}},{[`${St}-dropdown ${Aa}, ${Aa}-submenu`]:{[`${St}-checkbox-wrapper + span`]:{paddingInlineStart:Ar,color:hr},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Bs=Re=>{const{componentCls:Ge,lineWidth:St,colorSplit:Rt,motionDurationSlow:un,zIndexTableFixed:vn,tableBg:ir,zIndexTableSticky:Ar}=Re,hr=Rt;return{[`${Ge}-wrapper`]:{[`
|
|
|
${Ge}-cell-fix-left,
|
|
|
${Ge}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:vn,background:ir},[`
|
|
|
${Ge}-cell-fix-left-first::after,
|
|
|
${Ge}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-St,width:30,transform:"translateX(100%)",transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},[`${Ge}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Ge}-cell-fix-right-first::after,
|
|
|
${Ge}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-St,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},[`${Ge}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Ar+1,width:30,transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ge}-ping-left`]:{[`&:not(${Ge}-has-fix-left) ${Ge}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${hr}`}},[`
|
|
|
${Ge}-cell-fix-left-first::after,
|
|
|
${Ge}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${hr}`},[`${Ge}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ge}-ping-right`]:{[`&:not(${Ge}-has-fix-right) ${Ge}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${hr}`}},[`
|
|
|
${Ge}-cell-fix-right-first::after,
|
|
|
${Ge}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${hr}`}}}}},$s=Re=>{const{componentCls:Ge,antCls:St}=Re;return{[`${Ge}-wrapper`]:{[`${Ge}-pagination${St}-pagination`]:{margin:`${Re.margin}px 0`},[`${Ge}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Re.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},bu=Re=>{const{componentCls:Ge,tableRadius:St}=Re;return{[`${Ge}-wrapper`]:{[Ge]:{[`${Ge}-title, ${Ge}-header`]:{borderRadius:`${St}px ${St}px 0 0`},[`${Ge}-title + ${Ge}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ge}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:St,borderStartEndRadius:St,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:St},"> *:last-child":{borderStartEndRadius:St}}},"&-footer":{borderRadius:`0 0 ${St}px ${St}px`}}}}},$u=Re=>{const{componentCls:Ge}=Re;return{[`${Ge}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ge}-pagination-left`]:{justifyContent:"flex-end"},[`${Ge}-pagination-right`]:{justifyContent:"flex-start"},[`${Ge}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ge}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ge}-row-indent`]:{float:"right"}}}}},rs=Re=>{const{componentCls:Ge,antCls:St,iconCls:Rt,fontSizeIcon:un,padding:vn,paddingXS:ir,tableHeaderIconColor:Ar,tableHeaderIconColorHover:hr,tableSelectionColumnWidth:Qr}=Re;return{[`${Ge}-wrapper`]:{[`${Ge}-selection-col`]:{width:Qr,[`&${Ge}-selection-col-with-dropdown`]:{width:Qr+un+vn/4}},[`${Ge}-bordered ${Ge}-selection-col`]:{width:Qr+ir*2,[`&${Ge}-selection-col-with-dropdown`]:{width:Qr+un+vn/4+ir*2}},[`
|
|
|
table tr th${Ge}-selection-column,
|
|
|
table tr td${Ge}-selection-column
|
|
|
`]:{paddingInlineEnd:Re.paddingXS,paddingInlineStart:Re.paddingXS,textAlign:"center",[`${St}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ge}-selection-column${Ge}-cell-fix-left`]:{zIndex:Re.zIndexTableFixed+1},[`table tr th${Ge}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ge}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ge}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Re.tablePaddingHorizontal/4}px`,[Rt]:{color:Ar,fontSize:un,verticalAlign:"baseline","&:hover":{color:hr}}}}}},Au=Re=>{const{componentCls:Ge}=Re,St=(Rt,un,vn,ir)=>({[`${Ge}${Ge}-${Rt}`]:{fontSize:ir,[`
|
|
|
${Ge}-title,
|
|
|
${Ge}-footer,
|
|
|
${Ge}-cell,
|
|
|
${Ge}-thead > tr > th,
|
|
|
${Ge}-tbody > tr > th,
|
|
|
${Ge}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${un}px ${vn}px`},[`${Ge}-filter-trigger`]:{marginInlineEnd:`-${vn/2}px`},[`${Ge}-expanded-row-fixed`]:{margin:`-${un}px -${vn}px`},[`${Ge}-tbody`]:{[`${Ge}-wrapper:only-child ${Ge}`]:{marginBlock:`-${un}px`,marginInline:`${Re.tableExpandColumnWidth-vn}px -${vn}px`}},[`${Ge}-selection-column`]:{paddingInlineStart:`${vn/4}px`}}});return{[`${Ge}-wrapper`]:Object.assign(Object.assign({},St("middle",Re.tablePaddingVerticalMiddle,Re.tablePaddingHorizontalMiddle,Re.tableFontSizeMiddle)),St("small",Re.tablePaddingVerticalSmall,Re.tablePaddingHorizontalSmall,Re.tableFontSizeSmall))}},Os=Re=>{const{componentCls:Ge,marginXXS:St,fontSizeIcon:Rt,tableHeaderIconColor:un,tableHeaderIconColorHover:vn}=Re;return{[`${Ge}-wrapper`]:{[`${Ge}-thead th${Ge}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,"&:hover":{background:Re.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Re.colorPrimary},[`
|
|
|
&${Ge}-cell-fix-left:hover,
|
|
|
&${Ge}-cell-fix-right:hover
|
|
|
`]:{background:Re.tableFixedHeaderSortActiveBg}},[`${Ge}-thead th${Ge}-column-sort`]:{background:Re.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ge}-column-sort`]:{background:Re.tableBodySortBg},[`${Ge}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ge}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ge}-column-sorter`]:{marginInlineStart:St,color:un,fontSize:0,transition:`color ${Re.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Rt,"&.active":{color:Re.colorPrimary}},[`${Ge}-column-sorter-up + ${Ge}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ge}-column-sorters:hover ${Ge}-column-sorter`]:{color:vn}}}},fs=Re=>{const{componentCls:Ge,opacityLoading:St,tableScrollThumbBg:Rt,tableScrollThumbBgHover:un,tableScrollThumbSize:vn,tableScrollBg:ir,zIndexTableSticky:Ar,stickyScrollBarBorderRadius:hr}=Re,Qr=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`;return{[`${Ge}-wrapper`]:{[`${Ge}-sticky`]:{"&-holder":{position:"sticky",zIndex:Ar,background:Re.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${vn}px !important`,zIndex:Ar,display:"flex",alignItems:"center",background:ir,borderTop:Qr,opacity:St,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:vn,backgroundColor:Rt,borderRadius:hr,transition:`all ${Re.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:un}}}}}}},Gs=Re=>{const{componentCls:Ge,lineWidth:St,tableBorderColor:Rt}=Re,un=`${St}px ${Re.lineType} ${Rt}`;return{[`${Ge}-wrapper`]:{[`${Ge}-summary`]:{position:"relative",zIndex:Re.zIndexTableFixed,background:Re.tableBg,"> tr":{"> th, > td":{borderBottom:un}}},[`div${Ge}-summary`]:{boxShadow:`0 -${St}px 0 ${Rt}`}}}},Hl=Re=>{const{componentCls:Ge}=Re,St=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`,Rt=`${Ge}-expanded-row-cell`;return{[`${Ge}-wrapper`]:{[`${Ge}-tbody-virtual`]:{[`${Ge}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ge}-cell`]:{borderBottom:St},[`${Ge}-expanded-row`]:{[`${Rt}${Rt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Re.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ge}-bordered`]:{[`${Ge}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:St,position:"absolute"},[`${Ge}-cell`]:{borderInlineEnd:St,[`&${Ge}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Re.lineWidth,borderInlineStart:St}}}}}}};const qa=Re=>{const{componentCls:Ge,fontWeightStrong:St,tablePaddingVertical:Rt,tablePaddingHorizontal:un,lineWidth:vn,lineType:ir,tableBorderColor:Ar,tableFontSize:hr,tableBg:Qr,tableRadius:xi,tableHeaderTextColor:qn,motionDurationMid:Ki,tableHeaderBg:$i,tableHeaderCellSplitColor:na,tableRowHoverBg:Ia,tableSelectedRowBg:sa,tableSelectedRowHoverBg:ja,tableFooterTextColor:Ra,tableFooterBg:oo,paddingContentVerticalLG:Uo}=Re,lo=`${vn}px ${ir} ${Ar}`;return{[`${Ge}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Jo.dF)()),{[Ge]:Object.assign(Object.assign({},(0,Jo.Wf)(Re)),{fontSize:hr,background:Qr,borderRadius:`${xi}px ${xi}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${xi}px ${xi}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Ge}-cell,
|
|
|
${Ge}-thead > tr > th,
|
|
|
${Ge}-tbody > tr > th,
|
|
|
${Ge}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Uo}px ${un}px`,overflowWrap:"break-word"},[`${Ge}-title`]:{padding:`${Rt}px ${un}px`},[`${Ge}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:qn,fontWeight:St,textAlign:"start",background:$i,borderBottom:lo,transition:`background ${Ki} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ge}-selection-column):not(${Ge}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:na,transform:"translateY(-50%)",transition:`background-color ${Ki}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ge}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ki}, border-color ${Ki}`,borderBottom:lo,[`
|
|
|
> ${Ge}-wrapper:only-child,
|
|
|
> ${Ge}-expanded-row-fixed > ${Ge}-wrapper:only-child
|
|
|
`]:{[Ge]:{marginBlock:`-${Rt}px`,marginInline:`${Re.tableExpandColumnWidth-un}px -${un}px`,[`${Ge}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:qn,fontWeight:St,textAlign:"start",background:$i,borderBottom:lo,transition:`background ${Ki} ease`},[`
|
|
|
&${Ge}-row:hover > th,
|
|
|
&${Ge}-row:hover > td,
|
|
|
> th${Ge}-cell-row-hover,
|
|
|
> td${Ge}-cell-row-hover
|
|
|
`]:{background:Ia},[`&${Ge}-row-selected`]:{"> th, > td":{background:sa},"&:hover > th, &:hover > td":{background:ja}}}},[`${Ge}-footer`]:{padding:`${Rt}px ${un}px`,color:Ra,background:oo}})}};var jo=(0,Po.Z)("Table",Re=>{const{colorTextHeading:Ge,colorSplit:St,colorIcon:Rt,colorIconHover:un,opacityLoading:vn,colorBgContainer:ir,controlInteractiveSize:Ar,headerBg:hr,headerColor:Qr,headerSortActiveBg:xi,headerSortHoverBg:qn,bodySortBg:Ki,rowHoverBg:$i,rowSelectedBg:na,rowSelectedHoverBg:Ia,rowExpandedBg:sa,cellPaddingBlock:ja,cellPaddingInline:Ra,cellPaddingBlockMD:oo,cellPaddingInlineMD:Uo,cellPaddingBlockSM:lo,cellPaddingInlineSM:To,borderColor:yl,footerBg:Kl,footerColor:bo,headerBorderRadius:ma,cellFontSize:fa,cellFontSizeMD:Aa,cellFontSizeSM:so,headerSplitColor:Mo,fixedHeaderSortActiveBg:Dl,headerFilterHoverBg:ol,filterDropdownBg:sl,expandIconBg:Zl,selectionColumnWidth:Ul,stickyScrollBarBg:ts}=Re,Jl=new oa.C(Rt),Ls=new oa.C(un),Is=2,Ql=(0,ll.TS)(Re,{tableFontSize:fa,tableBg:ir,tableRadius:ma,tablePaddingVertical:ja,tablePaddingHorizontal:Ra,tablePaddingVerticalMiddle:oo,tablePaddingHorizontalMiddle:Uo,tablePaddingVerticalSmall:lo,tablePaddingHorizontalSmall:To,tableBorderColor:yl,tableHeaderTextColor:Qr,tableHeaderBg:hr,tableFooterTextColor:bo,tableFooterBg:Kl,tableHeaderCellSplitColor:Mo,tableHeaderSortBg:xi,tableHeaderSortHoverBg:qn,tableHeaderIconColor:Jl.clone().setAlpha(Jl.getAlpha()*vn).toRgbString(),tableHeaderIconColorHover:Ls.clone().setAlpha(Ls.getAlpha()*vn).toRgbString(),tableBodySortBg:Ki,tableFixedHeaderSortActiveBg:Dl,tableHeaderFilterActiveBg:ol,tableFilterDropdownBg:sl,tableRowHoverBg:$i,tableSelectedRowBg:na,tableSelectedRowHoverBg:Ia,zIndexTableFixed:Is,zIndexTableSticky:Is+1,tableFontSizeMiddle:Aa,tableFontSizeSmall:so,tableSelectionColumnWidth:Ul,tableExpandIconBg:Zl,tableExpandColumnWidth:Ar+2*Re.padding,tableExpandedRowBg:sa,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ts,tableScrollThumbBgHover:Ge,tableScrollBg:St});return[qa(Ql),$s(Ql),Gs(Ql),Os(Ql),Js(Ql),$l(Ql),bu(Ql),Rs(Ql),Gs(Ql),uu(Ql),rs(Ql),Bs(Ql),fs(Ql),ds(Ql),Au(Ql),$u(Ql),Hl(Ql)]},Re=>{const{colorFillAlter:Ge,colorBgContainer:St,colorTextHeading:Rt,colorFillSecondary:un,colorFillContent:vn,controlItemBgActive:ir,controlItemBgActiveHover:Ar,padding:hr,paddingSM:Qr,paddingXS:xi,colorBorderSecondary:qn,borderRadiusLG:Ki,fontSize:$i,controlHeight:na,colorTextPlaceholder:Ia}=Re,sa=new oa.C(un).onBackground(St).toHexShortString(),ja=new oa.C(vn).onBackground(St).toHexShortString(),Ra=new oa.C(Ge).onBackground(St).toHexShortString();return{headerBg:Ra,headerColor:Rt,headerSortActiveBg:sa,headerSortHoverBg:ja,bodySortBg:Ra,rowHoverBg:Ra,rowSelectedBg:ir,rowSelectedHoverBg:Ar,rowExpandedBg:Ge,cellPaddingBlock:hr,cellPaddingInline:hr,cellPaddingBlockMD:Qr,cellPaddingInlineMD:xi,cellPaddingBlockSM:xi,cellPaddingInlineSM:xi,borderColor:qn,headerBorderRadius:Ki,footerBg:Ra,footerColor:Rt,cellFontSize:$i,cellFontSizeMD:$i,cellFontSizeSM:$i,headerSplitColor:qn,fixedHeaderSortActiveBg:sa,headerFilterHoverBg:vn,filterDropdownMenuBg:St,filterDropdownBg:St,expandIconBg:St,selectionColumnWidth:na,stickyScrollBarBg:Ia,stickyScrollBarBorderRadius:100}});const hl=[],Il=(Re,Ge)=>{const{prefixCls:St,className:Rt,rootClassName:un,style:vn,size:ir,bordered:Ar,dropdownPrefixCls:hr,dataSource:Qr,pagination:xi,rowSelection:qn,rowKey:Ki="key",rowClassName:$i,columns:na,children:Ia,childrenColumnName:sa,onChange:ja,getPopupContainer:Ra,loading:oo,expandIcon:Uo,expandable:lo,expandedRowRender:To,expandIconColumnIndex:yl,indentSize:Kl,scroll:bo,sortDirections:ma,locale:fa,showSorterTooltip:Aa=!0,virtual:so}=Re,Mo=de.useMemo(()=>na||Ii(Ia),[na,Ia]),Dl=de.useMemo(()=>Mo.some(is=>is.responsive),[Mo]),ol=(0,La.Z)(Dl),sl=de.useMemo(()=>{const is=new Set(Object.keys(ol).filter(bl=>ol[bl]));return Mo.filter(bl=>!bl.responsive||bl.responsive.some(vu=>is.has(vu)))},[Mo,ol]),Zl=(0,Xn.Z)(Re,["className","style","columns"]),{locale:Ul=mo.Z,direction:ts,table:Jl,renderEmpty:Ls,getPrefixCls:Is,getPopupContainer:Ql}=de.useContext(Pi.E_),du=(0,la.Z)(ir),os=Object.assign(Object.assign({},Ul.Table),fa),As=Qr||hl,xs=Is("table",St),zl=Is("dropdown",hr),wo=Object.assign({childrenColumnName:sa,expandIconColumnIndex:yl},lo),{childrenColumnName:dl="children"}=wo,Ml=de.useMemo(()=>As.some(is=>is==null?void 0:is[dl])?"nest":To||lo&&lo.expandedRowRender?"row":null,[As]),_o={body:de.useRef()},ys=de.useMemo(()=>typeof Ki=="function"?Ki:is=>is==null?void 0:is[Ki],[Ki]),[co]=zi(As,dl,ys),Wl={},ls=function(is,bl){let vu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ss,ku,Ri;const Yu=Object.assign(Object.assign({},Wl),is);vu&&((Ss=Wl.resetPagination)===null||Ss===void 0||Ss.call(Wl),!((ku=Yu.pagination)===null||ku===void 0)&&ku.current&&(Yu.pagination.current=1),xi&&xi.onChange&&xi.onChange(1,(Ri=Yu.pagination)===null||Ri===void 0?void 0:Ri.pageSize)),bo&&bo.scrollToFirstRowOnChange!==!1&&_o.body.current&&(0,qr.Z)(0,{getContainer:()=>_o.body.current}),ja==null||ja(Yu.pagination,Yu.filters,Yu.sorter,{currentDataSource:Pr(Qa(As,Yu.sorterStates,dl),Yu.filterStates),action:bl})},ss=(is,bl)=>{ls({sorter:is,sorterStates:bl},"sort",!1)},[Nu,fu,zu,ha]=ca({prefixCls:xs,mergedColumns:sl,onSorterChange:ss,sortDirections:ma||["ascend","descend"],tableLocale:os,showSorterTooltip:Aa}),ec=de.useMemo(()=>Qa(As,fu,dl),[As,fu]);Wl.sorter=ha(),Wl.sorterStates=fu;const qs=(is,bl)=>{ls({filters:is,filterStates:bl},"filter",!0)},[Ku,Wu,hs]=ta({prefixCls:xs,locale:os,dropdownPrefixCls:zl,mergedColumns:sl,onFilterChange:qs,getPopupContainer:Ra||Ql}),bs=Pr(ec,Wu);Wl.filters=hs,Wl.filterStates=Wu;const Ts=de.useMemo(()=>{const is={};return Object.keys(hs).forEach(bl=>{hs[bl]!==null&&(is[bl]=hs[bl])}),Object.assign(Object.assign({},zu),{filters:is})},[zu,hs]),[Xl]=Ta(Ts),iu=(is,bl)=>{ls({pagination:Object.assign(Object.assign({},Wl.pagination),{current:is,pageSize:bl})},"paginate")},[ns,au]=vo(bs.length,iu,xi);Wl.pagination=xi===!1?{}:Hi(ns,xi),Wl.resetPagination=au;const hu=de.useMemo(()=>{if(xi===!1||!ns.pageSize)return bs;const{current:is=1,total:bl,pageSize:vu=ea}=ns;return bs.length<bl?bs.length>vu?bs.slice((is-1)*vu,is*vu):bs:bs.slice((is-1)*vu,is*vu)},[!!xi,bs,ns&&ns.current,ns&&ns.pageSize,ns&&ns.total]),[xu,ju]=il({prefixCls:xs,data:bs,pageData:hu,getRowKey:ys,getRecordByKey:co,expandType:Ml,childrenColumnName:dl,locale:os,getPopupContainer:Ra||Ql},qn),eu=(is,bl,vu)=>{let Ss;return typeof $i=="function"?Ss=$e()($i(is,bl,vu)):Ss=$e()($i),$e()({[`${xs}-row-selected`]:ju.has(ys(is,bl))},Ss)};wo.__PARENT_RENDER_ICON__=wo.expandIcon,wo.expandIcon=wo.expandIcon||Uo||ya(os),Ml==="nest"&&wo.expandIconColumnIndex===void 0?wo.expandIconColumnIndex=qn?1:0:wo.expandIconColumnIndex>0&&qn&&(wo.expandIconColumnIndex-=1),typeof wo.indentSize!="number"&&(wo.indentSize=typeof Kl=="number"?Kl:15);const Uu=de.useCallback(is=>Xl(xu(Ku(Nu(is)))),[Nu,Ku,xu]);let tu,Bu;if(xi!==!1&&(ns!=null&&ns.total)){let is;ns.size?is=ns.size:is=du==="small"||du==="middle"?"small":void 0;const bl=ku=>de.createElement(Ui.Z,Object.assign({},ns,{className:$e()(`${xs}-pagination ${xs}-pagination-${ku}`,ns.className),size:is})),vu=ts==="rtl"?"left":"right",{position:Ss}=ns;if(Ss!==null&&Array.isArray(Ss)){const ku=Ss.find(xc=>xc.includes("top")),Ri=Ss.find(xc=>xc.includes("bottom")),Yu=Ss.every(xc=>`${xc}`=="none");!ku&&!Ri&&!Yu&&(Bu=bl(vu)),ku&&(tu=bl(ku.toLowerCase().replace("top",""))),Ri&&(Bu=bl(Ri.toLowerCase().replace("bottom","")))}else Bu=bl(vu)}let nu;typeof oo=="boolean"?nu={spinning:oo}:typeof oo=="object"&&(nu=Object.assign({spinning:!0},oo));const[ou,Qs]=jo(xs),[,Ws]=(0,ri.Z)(),hc=$e()(`${xs}-wrapper`,Jl==null?void 0:Jl.className,{[`${xs}-wrapper-rtl`]:ts==="rtl"},Rt,un,Qs),bc=Object.assign(Object.assign({},Jl==null?void 0:Jl.style),vn),Us=fa&&fa.emptyText||(Ls==null?void 0:Ls("Table"))||de.createElement(Da.Z,{componentName:"Table"}),Lu=so?al:Eo,pd={},Oc=de.useMemo(()=>{const{fontSize:is,lineHeight:bl,padding:vu,paddingXS:Ss,paddingSM:ku}=Ws,Ri=Math.floor(is*bl);switch(du){case"large":return vu*2+Ri;case"small":return Ss*2+Ri;default:return ku*2+Ri}},[Ws,du]);return so&&(pd.listItemHeight=Oc),ou(de.createElement("div",{ref:Ge,className:hc,style:bc},de.createElement(pi.Z,Object.assign({spinning:!1},nu),tu,de.createElement(Lu,Object.assign({},pd,Zl,{columns:sl,direction:ts,expandable:wo,prefixCls:xs,className:$e()({[`${xs}-middle`]:du==="middle",[`${xs}-small`]:du==="small",[`${xs}-bordered`]:Ar,[`${xs}-empty`]:As.length===0}),data:hu,rowKey:ys,rowClassName:eu,emptyText:Us,internalHooks:fe,internalRefs:_o,transformColumns:Uu})),Bu)))};var Ds=de.forwardRef(Il);const ks=(Re,Ge)=>{const St=de.useRef(0);return St.current+=1,de.createElement(Ds,Object.assign({},Re,{ref:Ge,_renderTimes:St.current}))},cu=de.forwardRef(ks);cu.SELECTION_COLUMN=Io,cu.EXPAND_COLUMN=E,cu.SELECTION_ALL=Xo,cu.SELECTION_INVERT=Fa,cu.SELECTION_NONE=_a,cu.Column=tr,cu.ColumnGroup=Ln,cu.Summary=Lt;var Du=cu,oc=Du},66368:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return Tr}});var E=te(73475),fe=te(25877),Ie=te(38308),Te=te(94184),xe=te.n(Te),Be=te(87462),de=te(4942),Se=te(1413),pe=te(97685),De=te(71002),Xe=te(45987),Pe=te(67294),Ue=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ae=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(Ae)||/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(Ae==null?void 0:Ae.substr(0,4))};function rt(Ae){var it=Pe.useRef();it.current=Ae;var st=Pe.useCallback(function(){for(var yt,wt=arguments.length,Ft=new Array(wt),Nt=0;Nt<wt;Nt++)Ft[Nt]=arguments[Nt];return(yt=it.current)===null||yt===void 0?void 0:yt.call.apply(yt,[it].concat(Ft))},[]);return st}function qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var He=qe()?Pe.useLayoutEffect:Pe.useEffect,be=function(it,st){var yt=Pe.useRef(!0);He(function(){return it(yt.current)},st),He(function(){return yt.current=!1,function(){yt.current=!0}},[])},Qe=function(it,st){be(function(yt){if(!yt)return it()},st)},ht=null;function Je(Ae){var it=Pe.useRef(!1),st=Pe.useState(Ae),yt=(0,pe.Z)(st,2),wt=yt[0],Ft=yt[1];Pe.useEffect(function(){return it.current=!1,function(){it.current=!0}},[]);function Nt(gn,Rn){Rn&&it.current||Ft(gn)}return[wt,Nt]}function Ze(Ae){return Ae!==void 0}function ye(Ae,it){var st=it||{},yt=st.defaultValue,wt=st.value,Ft=st.onChange,Nt=st.postState,gn=Je(function(){return Ze(wt)?wt:Ze(yt)?typeof yt=="function"?yt():yt:typeof Ae=="function"?Ae():Ae}),Rn=(0,pe.Z)(gn,2),Nr=Rn[0],Wr=Rn[1],Rr=wt!==void 0?wt:Nr,Un=Nt?Nt(Rr):Rr,pr=rt(Ft),Jn=Je([Rr]),_r=(0,pe.Z)(Jn,2),yi=_r[0],Yr=_r[1];Qe(function(){var ti=yi[0];Nr!==ti&&pr(Nr,ti)},[yi]),Qe(function(){Ze(wt)||Wr(wt)},[wt]);var Xr=rt(function(ti,fi){Wr(ti,fi),Yr([Rr],fi)});return[Un,Xr]}var Ee=te(62874),Ye=(0,Pe.createContext)(null),Ne=Pe.forwardRef(function(Ae,it){var st=Ae.prefixCls,yt=Ae.className,wt=Ae.style,Ft=Ae.id,Nt=Ae.active,gn=Ae.tabKey,Rn=Ae.children;return Pe.createElement("div",{id:Ft&&"".concat(Ft,"-panel-").concat(gn),role:"tabpanel",tabIndex:Nt?0:-1,"aria-labelledby":Ft&&"".concat(Ft,"-tab-").concat(gn),"aria-hidden":!Nt,style:wt,className:xe()(st,Nt&&"".concat(st,"-active"),yt),ref:it},Rn)}),ot=Ne,ct=["key","forceRender","style","className"];function _e(Ae){var it=Ae.id,st=Ae.activeKey,yt=Ae.animated,wt=Ae.tabPosition,Ft=Ae.destroyInactiveTabPane,Nt=Pe.useContext(Ye),gn=Nt.prefixCls,Rn=Nt.tabs,Nr=yt.tabPane,Wr="".concat(gn,"-tabpane");return Pe.createElement("div",{className:xe()("".concat(gn,"-content-holder"))},Pe.createElement("div",{className:xe()("".concat(gn,"-content"),"".concat(gn,"-content-").concat(wt),(0,de.Z)({},"".concat(gn,"-content-animated"),Nr))},Rn.map(function(Rr){var Un=Rr.key,pr=Rr.forceRender,Jn=Rr.style,_r=Rr.className,yi=(0,Xe.Z)(Rr,ct),Yr=Un===st;return Pe.createElement(Ee.Z,(0,Be.Z)({key:Un,visible:Yr,forceRender:pr,removeOnLeave:!!Ft,leavedClassName:"".concat(Wr,"-hidden")},yt.tabPaneMotion),function(Xr,ti){var fi=Xr.style,Ci=Xr.className;return Pe.createElement(ot,(0,Be.Z)({},yi,{prefixCls:Wr,id:it,tabKey:Un,animated:Nr,active:Yr,style:(0,Se.Z)((0,Se.Z)({},Jn),fi),className:xe()(_r,Ci),ref:ti}))})})))}var Me=te(74902),pt=te(48555),$e=te(59864);function ft(Ae,it,st){var yt=Pe.useRef({});return(!("value"in yt.current)||st(yt.current.condition,it))&&(yt.current.value=Ae(),yt.current.condition=it),yt.current.value}function We(Ae,it){typeof Ae=="function"?Ae(it):(0,De.Z)(Ae)==="object"&&Ae&&"current"in Ae&&(Ae.current=it)}function gt(){for(var Ae=arguments.length,it=new Array(Ae),st=0;st<Ae;st++)it[st]=arguments[st];var yt=it.filter(function(wt){return wt});return yt.length<=1?yt[0]:function(wt){it.forEach(function(Ft){We(Ft,wt)})}}function kt(){for(var Ae=arguments.length,it=new Array(Ae),st=0;st<Ae;st++)it[st]=arguments[st];return ft(function(){return gt.apply(void 0,it)},it,function(yt,wt){return yt.length===wt.length&&yt.every(function(Ft,Nt){return Ft===wt[Nt]})})}function xt(Ae){var it,st,yt=isMemo(Ae)?Ae.type.type:Ae.type;return!(typeof yt=="function"&&!((it=yt.prototype)!==null&&it!==void 0&&it.render)||typeof Ae=="function"&&!((st=Ae.prototype)!==null&&st!==void 0&&st.render))}var et={width:0,height:0,left:0,top:0};function Fe(Ae,it,st){return(0,Pe.useMemo)(function(){for(var yt,wt=new Map,Ft=it.get((yt=Ae[0])===null||yt===void 0?void 0:yt.key)||et,Nt=Ft.left+Ft.width,gn=0;gn<Ae.length;gn+=1){var Rn=Ae[gn].key,Nr=it.get(Rn);if(!Nr){var Wr;Nr=it.get((Wr=Ae[gn-1])===null||Wr===void 0?void 0:Wr.key)||et}var Rr=wt.get(Rn)||(0,Se.Z)({},Nr);Rr.right=Nt-Rr.left-Rr.width,wt.set(Rn,Rr)}return wt},[Ae.map(function(yt){return yt.key}).join("_"),it,st])}function Dt(Ae,it){var st=Pe.useRef(Ae),yt=Pe.useState({}),wt=(0,pe.Z)(yt,2),Ft=wt[1];function Nt(gn){var Rn=typeof gn=="function"?gn(st.current):gn;Rn!==st.current&&it(Rn,st.current),st.current=Rn,Ft({})}return[st.current,Nt]}var qt=.1,Xt=.01,Et=20,zt=Math.pow(.995,Et);function Yt(Ae,it){var st=(0,Pe.useState)(),yt=(0,pe.Z)(st,2),wt=yt[0],Ft=yt[1],Nt=(0,Pe.useState)(0),gn=(0,pe.Z)(Nt,2),Rn=gn[0],Nr=gn[1],Wr=(0,Pe.useState)(0),Rr=(0,pe.Z)(Wr,2),Un=Rr[0],pr=Rr[1],Jn=(0,Pe.useState)(),_r=(0,pe.Z)(Jn,2),yi=_r[0],Yr=_r[1],Xr=(0,Pe.useRef)();function ti(Cn){var mr=Cn.touches[0],Zr=mr.screenX,Zt=mr.screenY;Ft({x:Zr,y:Zt}),window.clearInterval(Xr.current)}function fi(Cn){if(wt){Cn.preventDefault();var mr=Cn.touches[0],Zr=mr.screenX,Zt=mr.screenY;Ft({x:Zr,y:Zt});var Ht=Zr-wt.x,tn=Zt-wt.y;it(Ht,tn);var xn=Date.now();Nr(xn),pr(xn-Rn),Yr({x:Ht,y:tn})}}function Ci(){if(wt&&(Ft(null),Yr(null),yi)){var Cn=yi.x/Un,mr=yi.y/Un,Zr=Math.abs(Cn),Zt=Math.abs(mr);if(Math.max(Zr,Zt)<qt)return;var Ht=Cn,tn=mr;Xr.current=window.setInterval(function(){if(Math.abs(Ht)<Xt&&Math.abs(tn)<Xt){window.clearInterval(Xr.current);return}Ht*=zt,tn*=zt,it(Ht*Et,tn*Et)},Et)}}var At=(0,Pe.useRef)();function vt(Cn){var mr=Cn.deltaX,Zr=Cn.deltaY,Zt=0,Ht=Math.abs(mr),tn=Math.abs(Zr);Ht===tn?Zt=At.current==="x"?mr:Zr:Ht>tn?(Zt=mr,At.current="x"):(Zt=Zr,At.current="y"),it(-Zt,-Zt)&&Cn.preventDefault()}var On=(0,Pe.useRef)(null);On.current={onTouchStart:ti,onTouchMove:fi,onTouchEnd:Ci,onWheel:vt},Pe.useEffect(function(){function Cn(Ht){On.current.onTouchStart(Ht)}function mr(Ht){On.current.onTouchMove(Ht)}function Zr(Ht){On.current.onTouchEnd(Ht)}function Zt(Ht){On.current.onWheel(Ht)}return document.addEventListener("touchmove",mr,{passive:!1}),document.addEventListener("touchend",Zr,{passive:!1}),Ae.current.addEventListener("touchstart",Cn,{passive:!1}),Ae.current.addEventListener("wheel",Zt),function(){document.removeEventListener("touchmove",mr),document.removeEventListener("touchend",Zr)}},[])}function Vn(Ae){var it=(0,Pe.useState)(0),st=(0,pe.Z)(it,2),yt=st[0],wt=st[1],Ft=(0,Pe.useRef)(0),Nt=(0,Pe.useRef)();return Nt.current=Ae,Qe(function(){var gn;(gn=Nt.current)===null||gn===void 0||gn.call(Nt)},[yt]),function(){Ft.current===yt&&(Ft.current+=1,wt(Ft.current))}}function Pn(Ae){var it=(0,Pe.useRef)([]),st=(0,Pe.useState)({}),yt=(0,pe.Z)(st,2),wt=yt[1],Ft=(0,Pe.useRef)(typeof Ae=="function"?Ae():Ae),Nt=Vn(function(){var Rn=Ft.current;it.current.forEach(function(Nr){Rn=Nr(Rn)}),it.current=[],Ft.current=Rn,wt({})});function gn(Rn){it.current.push(Rn),Nt()}return[Ft.current,gn]}var _t={width:0,height:0,left:0,top:0,right:0};function pn(Ae,it,st,yt,wt,Ft,Nt){var gn=Nt.tabs,Rn=Nt.tabPosition,Nr=Nt.rtl,Wr,Rr,Un;return["top","bottom"].includes(Rn)?(Wr="width",Rr=Nr?"right":"left",Un=Math.abs(st)):(Wr="height",Rr="top",Un=-st),(0,Pe.useMemo)(function(){if(!gn.length)return[0,0];for(var pr=gn.length,Jn=pr,_r=0;_r<pr;_r+=1){var yi=Ae.get(gn[_r].key)||_t;if(yi[Rr]+yi[Wr]>Un+it){Jn=_r-1;break}}for(var Yr=0,Xr=pr-1;Xr>=0;Xr-=1){var ti=Ae.get(gn[Xr].key)||_t;if(ti[Rr]<Un){Yr=Xr+1;break}}return Yr>=Jn?[0,0]:[Yr,Jn]},[Ae,it,yt,wt,Ft,Un,Rn,gn.map(function(pr){return pr.key}).join("_"),Nr])}function sr(Ae){var it;return Ae instanceof Map?(it={},Ae.forEach(function(st,yt){it[yt]=st})):it=Ae,JSON.stringify(it)}var Tn="TABS_DQ";function Oe(Ae){return String(Ae).replace(/"/g,Tn)}function me(Ae,it,st,yt){return!(!st||yt||Ae===!1||Ae===void 0&&(it===!1||it===null))}function he(Ae,it){var st=Ae.prefixCls,yt=Ae.editable,wt=Ae.locale,Ft=Ae.style;return!yt||yt.showAdd===!1?null:Pe.createElement("button",{ref:it,type:"button",className:"".concat(st,"-nav-add"),style:Ft,"aria-label":(wt==null?void 0:wt.addAriaLabel)||"Add tab",onClick:function(gn){yt.onEdit("add",{event:gn})}},yt.addIcon||"+")}var ge=Pe.forwardRef(he),ve=Pe.forwardRef(function(Ae,it){var st=Ae.position,yt=Ae.prefixCls,wt=Ae.extra;if(!wt)return null;var Ft,Nt={};return(0,De.Z)(wt)==="object"&&!Pe.isValidElement(wt)?Nt=wt:Nt.right=wt,st==="right"&&(Ft=Nt.right),st==="left"&&(Ft=Nt.left),Ft?Pe.createElement("div",{className:"".concat(yt,"-extra-content"),ref:it},Ft):null}),se=ve,Ke=te(62709);function bt(Ae,it,st){var yt=React.useRef({});return(!("value"in yt.current)||st(yt.current.condition,it))&&(yt.current.value=Ae(),yt.current.condition=it),yt.current.value}function Wt(Ae,it){typeof Ae=="function"?Ae(it):(0,De.Z)(Ae)==="object"&&Ae&&"current"in Ae&&(Ae.current=it)}function yn(){for(var Ae=arguments.length,it=new Array(Ae),st=0;st<Ae;st++)it[st]=arguments[st];var yt=it.filter(function(wt){return wt});return yt.length<=1?yt[0]:function(wt){it.forEach(function(Ft){Wt(Ft,wt)})}}function bn(){for(var Ae=arguments.length,it=new Array(Ae),st=0;st<Ae;st++)it[st]=arguments[st];return useMemo(function(){return yn.apply(void 0,it)},it,function(yt,wt){return yt.length===wt.length&&yt.every(function(Ft,Nt){return Ft===wt[Nt]})})}function cn(Ae){var it,st,yt=(0,$e.isMemo)(Ae)?Ae.type.type:Ae.type;return!(typeof yt=="function"&&!((it=yt.prototype)!==null&&it!==void 0&&it.render)||typeof Ae=="function"&&!((st=Ae.prototype)!==null&&st!==void 0&&st.render))}var wn={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 st=it.keyCode;if(it.altKey&&!it.ctrlKey||it.metaKey||st>=wn.F1&&st<=wn.F12)return!1;switch(st){case wn.ALT:case wn.CAPS_LOCK:case wn.CONTEXT_MENU:case wn.CTRL:case wn.DOWN:case wn.END:case wn.ESC:case wn.HOME:case wn.INSERT:case wn.LEFT:case wn.MAC_FF_META:case wn.META:case wn.NUMLOCK:case wn.NUM_CENTER:case wn.PAGE_DOWN:case wn.PAGE_UP:case wn.PAUSE:case wn.PRINT_SCREEN:case wn.RIGHT:case wn.SHIFT:case wn.UP:case wn.WIN_KEY:case wn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(it){if(it>=wn.ZERO&&it<=wn.NINE||it>=wn.NUM_ZERO&&it<=wn.NUM_MULTIPLY||it>=wn.A&&it<=wn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&it===0)return!0;switch(it){case wn.SPACE:case wn.QUESTION_MARK:case wn.NUM_PLUS:case wn.NUM_MINUS:case wn.NUM_PERIOD:case wn.NUM_DIVISION:case wn.SEMICOLON:case wn.DASH:case wn.EQUALS:case wn.COMMA:case wn.PERIOD:case wn.SLASH:case wn.APOSTROPHE:case wn.SINGLE_QUOTE:case wn.OPEN_SQUARE_BRACKET:case wn.BACKSLASH:case wn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Tt=wn,nn=function(it){return+setTimeout(it,16)},fn=function(it){return clearTimeout(it)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(nn=function(it){return window.requestAnimationFrame(it)},fn=function(it){return window.cancelAnimationFrame(it)});var sn=0,an=new Map;function xr(Ae){an.delete(Ae)}var Lt=function(it){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;sn+=1;var yt=sn;function wt(Ft){if(Ft===0)xr(yt),it();else{var Nt=nn(function(){wt(Ft-1)});an.set(yt,Nt)}}return wt(st),yt};Lt.cancel=function(Ae){var it=an.get(Ae);return xr(it),fn(it)};var Vt=Lt,cr=Tt.ESC,En=Tt.TAB;function en(Ae){var it=Ae.visible,st=Ae.triggerRef,yt=Ae.onVisibleChange,wt=Ae.autoFocus,Ft=Ae.overlayRef,Nt=Pe.useRef(!1),gn=function(){if(it){var Rr,Un;(Rr=st.current)===null||Rr===void 0||(Un=Rr.focus)===null||Un===void 0||Un.call(Rr),yt==null||yt(!1)}},Rn=function(){var Rr;return(Rr=Ft.current)!==null&&Rr!==void 0&&Rr.focus?(Ft.current.focus(),Nt.current=!0,!0):!1},Nr=function(Rr){switch(Rr.keyCode){case cr:gn();break;case En:{var Un=!1;Nt.current||(Un=Rn()),Un?Rr.preventDefault():gn();break}}};Pe.useEffect(function(){return it?(window.addEventListener("keydown",Nr),wt&&Vt(Rn,3),function(){window.removeEventListener("keydown",Nr),Nt.current=!1}):function(){Nt.current=!1}},[it])}var Fr=(0,Pe.forwardRef)(function(Ae,it){var st=Ae.overlay,yt=Ae.arrow,wt=Ae.prefixCls,Ft=(0,Pe.useMemo)(function(){var gn;return typeof st=="function"?gn=st():gn=st,gn},[st]),Nt=yn(it,Ft==null?void 0:Ft.ref);return Pe.createElement(Pe.Fragment,null,yt&&Pe.createElement("div",{className:"".concat(wt,"-arrow")}),Pe.cloneElement(Ft,{ref:cn(Ft)?Nt:void 0}))}),Ur=Fr,ai={adjustX:1,adjustY:1},ei=[0,0],Mi={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-4],targetOffset:ei},top:{points:["bc","tc"],overflow:ai,offset:[0,-4],targetOffset:ei},topRight:{points:["br","tr"],overflow:ai,offset:[0,-4],targetOffset:ei},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,4],targetOffset:ei},bottom:{points:["tc","bc"],overflow:ai,offset:[0,4],targetOffset:ei},bottomRight:{points:["tr","br"],overflow:ai,offset:[0,4],targetOffset:ei}},ci=Mi,Qn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Or(Ae,it){var st,yt=Ae.arrow,wt=yt===void 0?!1:yt,Ft=Ae.prefixCls,Nt=Ft===void 0?"rc-dropdown":Ft,gn=Ae.transitionName,Rn=Ae.animation,Nr=Ae.align,Wr=Ae.placement,Rr=Wr===void 0?"bottomLeft":Wr,Un=Ae.placements,pr=Un===void 0?ci:Un,Jn=Ae.getPopupContainer,_r=Ae.showAction,yi=Ae.hideAction,Yr=Ae.overlayClassName,Xr=Ae.overlayStyle,ti=Ae.visible,fi=Ae.trigger,Ci=fi===void 0?["hover"]:fi,At=Ae.autoFocus,vt=Ae.overlay,On=Ae.children,Cn=Ae.onVisibleChange,mr=(0,Xe.Z)(Ae,Qn),Zr=Pe.useState(),Zt=(0,pe.Z)(Zr,2),Ht=Zt[0],tn=Zt[1],xn="visible"in Ae?ti:Ht,fr=Pe.useRef(null),wr=Pe.useRef(null),lr=Pe.useRef(null);Pe.useImperativeHandle(it,function(){return fr.current});var kr=function(Ei){tn(Ei),Cn==null||Cn(Ei)};en({visible:xn,triggerRef:lr,onVisibleChange:kr,autoFocus:At,overlayRef:wr});var di=function(Ei){var ga=Ae.onOverlayClick;tn(!1),ga&&ga(Ei)},Ni=function(){return Pe.createElement(Ur,{ref:wr,overlay:vt,prefixCls:Nt,arrow:wt})},Si=function(){return typeof vt=="function"?Ni:Ni()},Jr=function(){var Ei=Ae.minOverlayWidthMatchTrigger,ga=Ae.alignPoint;return"minOverlayWidthMatchTrigger"in Ae?Ei:!ga},Bi=function(){var Ei=Ae.openClassName;return Ei!==void 0?Ei:"".concat(Nt,"-open")},Wi=Pe.cloneElement(On,{className:xe()((st=On.props)===null||st===void 0?void 0:st.className,xn&&Bi()),ref:cn(On)?yn(lr,On.ref):void 0}),da=yi;return!da&&Ci.indexOf("contextMenu")!==-1&&(da=["click"]),Pe.createElement(Ke.Z,(0,Be.Z)({builtinPlacements:pr},mr,{prefixCls:Nt,ref:fr,popupClassName:xe()(Yr,(0,de.Z)({},"".concat(Nt,"-show-arrow"),wt)),popupStyle:Xr,action:Ci,showAction:_r,hideAction:da,popupPlacement:Rr,popupAlign:Nr,popupTransitionName:gn,popupAnimation:Rn,popupVisible:xn,stretch:Jr()?"minWidth":"",popup:Si(),onPopupVisibleChange:kr,onPopupClick:di,getPopupContainer:Jn}),Wi)}var Hr=Pe.forwardRef(Or),vi=Hr,Zi=te(78595),$t={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 st=it.keyCode;if(it.altKey&&!it.ctrlKey||it.metaKey||st>=$t.F1&&st<=$t.F12)return!1;switch(st){case $t.ALT:case $t.CAPS_LOCK:case $t.CONTEXT_MENU:case $t.CTRL:case $t.DOWN:case $t.END:case $t.ESC:case $t.HOME:case $t.INSERT:case $t.LEFT:case $t.MAC_FF_META:case $t.META:case $t.NUMLOCK:case $t.NUM_CENTER:case $t.PAGE_DOWN:case $t.PAGE_UP:case $t.PAUSE:case $t.PRINT_SCREEN:case $t.RIGHT:case $t.SHIFT:case $t.UP:case $t.WIN_KEY:case $t.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(it){if(it>=$t.ZERO&&it<=$t.NINE||it>=$t.NUM_ZERO&&it<=$t.NUM_MULTIPLY||it>=$t.A&&it<=$t.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&it===0)return!0;switch(it){case $t.SPACE:case $t.QUESTION_MARK:case $t.NUM_PLUS:case $t.NUM_MINUS:case $t.NUM_PERIOD:case $t.NUM_DIVISION:case $t.SEMICOLON:case $t.DASH:case $t.EQUALS:case $t.COMMA:case $t.PERIOD:case $t.SLASH:case $t.APOSTROPHE:case $t.SINGLE_QUOTE:case $t.OPEN_SQUARE_BRACKET:case $t.BACKSLASH:case $t.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},$n=$t;function mn(Ae,it){var st=Ae.prefixCls,yt=Ae.id,wt=Ae.tabs,Ft=Ae.locale,Nt=Ae.mobile,gn=Ae.moreIcon,Rn=gn===void 0?"More":gn,Nr=Ae.moreTransitionName,Wr=Ae.style,Rr=Ae.className,Un=Ae.editable,pr=Ae.tabBarGutter,Jn=Ae.rtl,_r=Ae.removeAriaLabel,yi=Ae.onTabClick,Yr=Ae.getPopupContainer,Xr=Ae.popupClassName,ti=(0,Pe.useState)(!1),fi=(0,pe.Z)(ti,2),Ci=fi[0],At=fi[1],vt=(0,Pe.useState)(null),On=(0,pe.Z)(vt,2),Cn=On[0],mr=On[1],Zr="".concat(yt,"-more-popup"),Zt="".concat(st,"-dropdown"),Ht=Cn!==null?"".concat(Zr,"-").concat(Cn):null,tn=Ft==null?void 0:Ft.dropdownAriaLabel;function xn(Si,Jr){Si.preventDefault(),Si.stopPropagation(),Un.onEdit("remove",{key:Jr,event:Si})}var fr=Pe.createElement(Zi.ZP,{onClick:function(Jr){var Bi=Jr.key,Wi=Jr.domEvent;yi(Bi,Wi),At(!1)},prefixCls:"".concat(Zt,"-menu"),id:Zr,tabIndex:-1,role:"listbox","aria-activedescendant":Ht,selectedKeys:[Cn],"aria-label":tn!==void 0?tn:"expanded dropdown"},wt.map(function(Si){var Jr=Si.closable,Bi=Si.disabled,Wi=Si.closeIcon,da=Si.key,Vi=Si.label,Ei=me(Jr,Wi,Un,Bi);return Pe.createElement(Zi.sN,{key:da,id:"".concat(Zr,"-").concat(da),role:"option","aria-controls":yt&&"".concat(yt,"-panel-").concat(da),disabled:Bi},Pe.createElement("span",null,Vi),Ei&&Pe.createElement("button",{type:"button","aria-label":_r||"remove",tabIndex:0,className:"".concat(Zt,"-menu-item-remove"),onClick:function(Ca){Ca.stopPropagation(),xn(Ca,da)}},Wi||Un.removeIcon||"\xD7"))}));function wr(Si){for(var Jr=wt.filter(function(Ei){return!Ei.disabled}),Bi=Jr.findIndex(function(Ei){return Ei.key===Cn})||0,Wi=Jr.length,da=0;da<Wi;da+=1){Bi=(Bi+Si+Wi)%Wi;var Vi=Jr[Bi];if(!Vi.disabled){mr(Vi.key);return}}}function lr(Si){var Jr=Si.which;if(!Ci){[$n.DOWN,$n.SPACE,$n.ENTER].includes(Jr)&&(At(!0),Si.preventDefault());return}switch(Jr){case $n.UP:wr(-1),Si.preventDefault();break;case $n.DOWN:wr(1),Si.preventDefault();break;case $n.ESC:At(!1);break;case $n.SPACE:case $n.ENTER:Cn!==null&&yi(Cn,Si);break}}(0,Pe.useEffect)(function(){var Si=document.getElementById(Ht);Si&&Si.scrollIntoView&&Si.scrollIntoView(!1)},[Cn]),(0,Pe.useEffect)(function(){Ci||mr(null)},[Ci]);var kr=(0,de.Z)({},Jn?"marginRight":"marginLeft",pr);wt.length||(kr.visibility="hidden",kr.order=1);var di=xe()((0,de.Z)({},"".concat(Zt,"-rtl"),Jn)),Ni=Nt?null:Pe.createElement(vi,{prefixCls:Zt,overlay:fr,trigger:["hover"],visible:wt.length?Ci:!1,transitionName:Nr,onVisibleChange:At,overlayClassName:xe()(di,Xr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Yr},Pe.createElement("button",{type:"button",className:"".concat(st,"-nav-more"),style:kr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Zr,id:"".concat(yt,"-more"),"aria-expanded":Ci,onKeyDown:lr},Rn));return Pe.createElement("div",{className:xe()("".concat(st,"-nav-operations"),Rr),style:Wr,ref:it},Ni,Pe.createElement(ge,{prefixCls:st,locale:Ft,editable:Un}))}var Yn=Pe.memo(Pe.forwardRef(mn),function(Ae,it){return it.tabMoving});function Dr(Ae){var it,st=Ae.prefixCls,yt=Ae.id,wt=Ae.active,Ft=Ae.tab,Nt=Ft.key,gn=Ft.label,Rn=Ft.disabled,Nr=Ft.closeIcon,Wr=Ae.closable,Rr=Ae.renderWrapper,Un=Ae.removeAriaLabel,pr=Ae.editable,Jn=Ae.onClick,_r=Ae.onFocus,yi=Ae.style,Yr="".concat(st,"-tab"),Xr=me(Wr,Nr,pr,Rn);function ti(At){Rn||Jn(At)}function fi(At){At.preventDefault(),At.stopPropagation(),pr.onEdit("remove",{key:Nt,event:At})}var Ci=Pe.createElement("div",{key:Nt,"data-node-key":Oe(Nt),className:xe()(Yr,(it={},(0,de.Z)(it,"".concat(Yr,"-with-remove"),Xr),(0,de.Z)(it,"".concat(Yr,"-active"),wt),(0,de.Z)(it,"".concat(Yr,"-disabled"),Rn),it)),style:yi,onClick:ti},Pe.createElement("div",{role:"tab","aria-selected":wt,id:yt&&"".concat(yt,"-tab-").concat(Nt),className:"".concat(Yr,"-btn"),"aria-controls":yt&&"".concat(yt,"-panel-").concat(Nt),"aria-disabled":Rn,tabIndex:Rn?null:0,onClick:function(vt){vt.stopPropagation(),ti(vt)},onKeyDown:function(vt){[$n.SPACE,$n.ENTER].includes(vt.which)&&(vt.preventDefault(),ti(vt))},onFocus:_r},gn),Xr&&Pe.createElement("button",{type:"button","aria-label":Un||"remove",tabIndex:0,className:"".concat(Yr,"-remove"),onClick:function(vt){vt.stopPropagation(),fi(vt)}},Nr||pr.removeIcon||"\xD7"));return Rr?Rr(Ci):Ci}var hi=Dr,oi=function(it){return+setTimeout(it,16)},Vr=function(it){return clearTimeout(it)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(oi=function(it){return window.requestAnimationFrame(it)},Vr=function(it){return window.cancelAnimationFrame(it)});var Ct=0,hn=new Map;function An(Ae){hn.delete(Ae)}var jn=function(it){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ct+=1;var yt=Ct;function wt(Ft){if(Ft===0)An(yt),it();else{var Nt=oi(function(){wt(Ft-1)});hn.set(yt,Nt)}}return wt(st),yt};jn.cancel=function(Ae){var it=hn.get(Ae);return An(it),Vr(it)};var Bt=jn,on=function(it){var st=it.activeTabOffset,yt=it.horizontal,wt=it.rtl,Ft=it.indicatorSize,Nt=(0,Pe.useState)(),gn=(0,pe.Z)(Nt,2),Rn=gn[0],Nr=gn[1],Wr=(0,Pe.useRef)(),Rr=function(Jn){return typeof Ft=="function"?Ft(Jn):typeof Ft=="number"?Ft:Jn};function Un(){Bt.cancel(Wr.current)}return(0,Pe.useEffect)(function(){var pr={};return st&&(yt?(wt?(pr.right=st.right+st.width/2,pr.transform="translateX(50%)"):(pr.left=st.left+st.width/2,pr.transform="translateX(-50%)"),pr.width=Rr(st.width)):(pr.top=st.top+st.height/2,pr.transform="translateY(-50%)",pr.height=Rr(st.height))),Un(),Wr.current=Bt(function(){Nr(pr)}),Un},[st,yt,wt,Ft]),{style:Rn}},Kn=on,Dn=function(it){var st=it.current||{},yt=st.offsetWidth,wt=yt===void 0?0:yt,Ft=st.offsetHeight,Nt=Ft===void 0?0:Ft;return[wt,Nt]},rr=function(it,st){return it[st?0:1]};function er(Ae,it){var st,yt=Pe.useContext(Ye),wt=yt.prefixCls,Ft=yt.tabs,Nt=Ae.className,gn=Ae.style,Rn=Ae.id,Nr=Ae.animated,Wr=Ae.activeKey,Rr=Ae.rtl,Un=Ae.extra,pr=Ae.editable,Jn=Ae.locale,_r=Ae.tabPosition,yi=Ae.tabBarGutter,Yr=Ae.children,Xr=Ae.onTabClick,ti=Ae.onTabScroll,fi=Ae.indicatorSize,Ci=(0,Pe.useRef)(),At=(0,Pe.useRef)(),vt=(0,Pe.useRef)(),On=(0,Pe.useRef)(),Cn=(0,Pe.useRef)(),mr=(0,Pe.useRef)(),Zr=(0,Pe.useRef)(),Zt=_r==="top"||_r==="bottom",Ht=Dt(0,function(_i,jr){Zt&&ti&&ti({direction:_i>jr?"left":"right"})}),tn=(0,pe.Z)(Ht,2),xn=tn[0],fr=tn[1],wr=Dt(0,function(_i,jr){!Zt&&ti&&ti({direction:_i>jr?"top":"bottom"})}),lr=(0,pe.Z)(wr,2),kr=lr[0],di=lr[1],Ni=(0,Pe.useState)([0,0]),Si=(0,pe.Z)(Ni,2),Jr=Si[0],Bi=Si[1],Wi=(0,Pe.useState)([0,0]),da=(0,pe.Z)(Wi,2),Vi=da[0],Ei=da[1],ga=(0,Pe.useState)([0,0]),Ca=(0,pe.Z)(ga,2),fo=Ca[0],Bo=Ca[1],xo=(0,Pe.useState)([0,0]),Jt=(0,pe.Z)(xo,2),rn=Jt[0],kn=Jt[1],zr=Pn(new Map),Mr=(0,pe.Z)(zr,2),tr=Mr[0],yr=Mr[1],Ln=Fe(Ft,tr,Vi[0]),Xn=rr(Jr,Zt),qr=rr(Vi,Zt),Pi=rr(fo,Zt),Da=rr(rn,Zt),la=Xn<qr+Pi,La=la?Xn-Da:Xn-Pi,mo="".concat(wt,"-nav-operations-hidden"),Ui=0,pi=0;Zt&&Rr?(Ui=0,pi=Math.max(0,qr-La)):(Ui=Math.min(0,La-qr),pi=0);function ri(_i){return _i<Ui?Ui:_i>pi?pi:_i}var Xa=(0,Pe.useRef)(),ya=(0,Pe.useState)(),to=(0,pe.Z)(ya,2),Ba=to[0],Ua=to[1];function ko(){Ua(Date.now())}function Va(){window.clearTimeout(Xa.current)}Yt(On,function(_i,jr){function li(va,tt){va(function(nt){var Qt=ri(nt+tt);return Qt})}return la?(Zt?li(fr,_i):li(di,jr),Va(),ko(),!0):!1}),(0,Pe.useEffect)(function(){return Va(),Ba&&(Xa.current=window.setTimeout(function(){Ua(0)},100)),Va},[Ba]);var qi=pn(Ln,La,Zt?xn:kr,qr,Pi,Da,(0,Se.Z)((0,Se.Z)({},Ae),{},{tabs:Ft})),So=(0,pe.Z)(qi,2),Ro=So[0],fl=So[1],Al=rt(function(){var _i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wr,jr=Ln.get(_i)||{width:0,height:0,left:0,right:0,top:0};if(Zt){var li=xn;Rr?jr.right<xn?li=jr.right:jr.right+jr.width>xn+La&&(li=jr.right+jr.width-La):jr.left<-xn?li=-jr.left:jr.left+jr.width>-xn+La&&(li=-(jr.left+jr.width-La)),di(0),fr(ri(li))}else{var va=kr;jr.top<-kr?va=-jr.top:jr.top+jr.height>-kr+La&&(va=-(jr.top+jr.height-La)),fr(0),di(ri(va))}}),jt={};_r==="top"||_r==="bottom"?jt[Rr?"marginRight":"marginLeft"]=yi:jt.marginTop=yi;var dn=Ft.map(function(_i,jr){var li=_i.key;return Pe.createElement(hi,{id:Rn,prefixCls:wt,key:li,tab:_i,style:jr===0?void 0:jt,closable:_i.closable,editable:pr,active:li===Wr,renderWrapper:Yr,removeAriaLabel:Jn==null?void 0:Jn.removeAriaLabel,onClick:function(tt){Xr(li,tt)},onFocus:function(){Al(li),ko(),On.current&&(Rr||(On.current.scrollLeft=0),On.current.scrollTop=0)}})}),Mn=function(){return yr(function(){var jr=new Map;return Ft.forEach(function(li){var va,tt=li.key,nt=(va=Cn.current)===null||va===void 0?void 0:va.querySelector('[data-node-key="'.concat(Oe(tt),'"]'));nt&&jr.set(tt,{width:nt.offsetWidth,height:nt.offsetHeight,left:nt.offsetLeft,top:nt.offsetTop})}),jr})};(0,Pe.useEffect)(function(){Mn()},[Ft.map(function(_i){return _i.key}).join("_")]);var ur=Vn(function(){var _i=Dn(Ci),jr=Dn(At),li=Dn(vt);Bi([_i[0]-jr[0]-li[0],_i[1]-jr[1]-li[1]]);var va=Dn(Zr);Bo(va);var tt=Dn(mr);kn(tt);var nt=Dn(Cn);Ei([nt[0]-va[0],nt[1]-va[1]]),Mn()}),Qi=Ft.slice(0,Ro),dr=Ft.slice(fl+1),ii=[].concat((0,Me.Z)(Qi),(0,Me.Z)(dr)),si=Ln.get(Wr),ki=Kn({activeTabOffset:si,horizontal:Zt,rtl:Rr,indicatorSize:fi}),Yi=ki.style;(0,Pe.useEffect)(function(){Al()},[Wr,Ui,pi,sr(si),sr(Ln),Zt]),(0,Pe.useEffect)(function(){ur()},[Rr]);var Lr=!!ii.length,ia="".concat(wt,"-nav-wrap"),Ha,ro,Xi,Wa;return Zt?Rr?(ro=xn>0,Ha=xn!==pi):(Ha=xn<0,ro=xn!==Ui):(Xi=kr<0,Wa=kr!==Ui),Pe.createElement(pt.Z,{onResize:ur},Pe.createElement("div",{ref:kt(it,Ci),role:"tablist",className:xe()("".concat(wt,"-nav"),Nt),style:gn,onKeyDown:function(){ko()}},Pe.createElement(se,{ref:At,position:"left",extra:Un,prefixCls:wt}),Pe.createElement(pt.Z,{onResize:ur},Pe.createElement("div",{className:xe()(ia,(st={},(0,de.Z)(st,"".concat(ia,"-ping-left"),Ha),(0,de.Z)(st,"".concat(ia,"-ping-right"),ro),(0,de.Z)(st,"".concat(ia,"-ping-top"),Xi),(0,de.Z)(st,"".concat(ia,"-ping-bottom"),Wa),st)),ref:On},Pe.createElement(pt.Z,{onResize:ur},Pe.createElement("div",{ref:Cn,className:"".concat(wt,"-nav-list"),style:{transform:"translate(".concat(xn,"px, ").concat(kr,"px)"),transition:Ba?"none":void 0}},dn,Pe.createElement(ge,{ref:Zr,prefixCls:wt,locale:Jn,editable:pr,style:(0,Se.Z)((0,Se.Z)({},dn.length===0?void 0:jt),{},{visibility:Lr?"hidden":null})}),Pe.createElement("div",{className:xe()("".concat(wt,"-ink-bar"),(0,de.Z)({},"".concat(wt,"-ink-bar-animated"),Nr.inkBar)),style:Yi}))))),Pe.createElement(Yn,(0,Be.Z)({},Ae,{removeAriaLabel:Jn==null?void 0:Jn.removeAriaLabel,ref:mr,prefixCls:wt,tabs:ii,className:!Lr&&mo,tabMoving:!!Ba})),Pe.createElement(se,{ref:vt,position:"right",extra:Un,prefixCls:wt})))}var Gr=Pe.forwardRef(er),ra=["renderTabBar"],Oi=["label","key"];function bi(Ae){var it=Ae.renderTabBar,st=(0,Xe.Z)(Ae,ra),yt=Pe.useContext(Ye),wt=yt.tabs;if(it){var Ft=(0,Se.Z)((0,Se.Z)({},st),{},{panes:wt.map(function(Nt){var gn=Nt.label,Rn=Nt.key,Nr=(0,Xe.Z)(Nt,Oi);return Pe.createElement(ot,(0,Be.Z)({tab:gn,key:Rn,tabKey:Rn},Nr))})});return it(Ft,Gr)}return Pe.createElement(Gr,st)}var Ji={},Ti=[],ua=function(it){Ti.push(it)};function br(Ae,it){if(0)var st}function Di(Ae,it){if(0)var st}function ni(){Ji={}}function No(Ae,it,st){!it&&!Ji[st]&&(Ae(!1,st),Ji[st]=!0)}function xa(Ae,it){No(br,Ae,it)}function za(Ae,it){No(Di,Ae,it)}xa.preMessage=ua,xa.resetWarned=ni,xa.noteOnce=za;var Lo=null;function Ea(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},it;return Ae===!1?it={inkBar:!1,tabPane:!1}:Ae===!0?it={inkBar:!0,tabPane:!1}:it=(0,Se.Z)({inkBar:!0},(0,De.Z)(Ae)==="object"?Ae:{}),it.tabPaneMotion&&it.tabPane===void 0&&(it.tabPane=!0),!it.tabPaneMotion&&it.tabPane&&(it.tabPane=!1),it}var zo=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],gi=0;function Cl(Ae,it){var st,yt=Ae.id,wt=Ae.prefixCls,Ft=wt===void 0?"rc-tabs":wt,Nt=Ae.className,gn=Ae.items,Rn=Ae.direction,Nr=Ae.activeKey,Wr=Ae.defaultActiveKey,Rr=Ae.editable,Un=Ae.animated,pr=Ae.tabPosition,Jn=pr===void 0?"top":pr,_r=Ae.tabBarGutter,yi=Ae.tabBarStyle,Yr=Ae.tabBarExtraContent,Xr=Ae.locale,ti=Ae.moreIcon,fi=Ae.moreTransitionName,Ci=Ae.destroyInactiveTabPane,At=Ae.renderTabBar,vt=Ae.onChange,On=Ae.onTabClick,Cn=Ae.onTabScroll,mr=Ae.getPopupContainer,Zr=Ae.popupClassName,Zt=Ae.indicatorSize,Ht=(0,Xe.Z)(Ae,zo),tn=Pe.useMemo(function(){return(gn||[]).filter(function(kn){return kn&&(0,De.Z)(kn)==="object"&&"key"in kn})},[gn]),xn=Rn==="rtl",fr=Ea(Un),wr=(0,Pe.useState)(!1),lr=(0,pe.Z)(wr,2),kr=lr[0],di=lr[1];(0,Pe.useEffect)(function(){di(Ue())},[]);var Ni=ye(function(){var kn;return(kn=tn[0])===null||kn===void 0?void 0:kn.key},{value:Nr,defaultValue:Wr}),Si=(0,pe.Z)(Ni,2),Jr=Si[0],Bi=Si[1],Wi=(0,Pe.useState)(function(){return tn.findIndex(function(kn){return kn.key===Jr})}),da=(0,pe.Z)(Wi,2),Vi=da[0],Ei=da[1];(0,Pe.useEffect)(function(){var kn=tn.findIndex(function(Mr){return Mr.key===Jr});if(kn===-1){var zr;kn=Math.max(0,Math.min(Vi,tn.length-1)),Bi((zr=tn[kn])===null||zr===void 0?void 0:zr.key)}Ei(kn)},[tn.map(function(kn){return kn.key}).join("_"),Jr,Vi]);var ga=ye(null,{value:yt}),Ca=(0,pe.Z)(ga,2),fo=Ca[0],Bo=Ca[1];(0,Pe.useEffect)(function(){yt||(Bo("rc-tabs-".concat(gi)),gi+=1)},[]);function xo(kn,zr){On==null||On(kn,zr);var Mr=kn!==Jr;Bi(kn),Mr&&(vt==null||vt(kn))}var Jt={id:fo,activeKey:Jr,animated:fr,tabPosition:Jn,rtl:xn,mobile:kr},rn=(0,Se.Z)((0,Se.Z)({},Jt),{},{editable:Rr,locale:Xr,moreIcon:ti,moreTransitionName:fi,tabBarGutter:_r,onTabClick:xo,onTabScroll:Cn,extra:Yr,style:yi,panes:null,getPopupContainer:mr,popupClassName:Zr,indicatorSize:Zt});return Pe.createElement(Ye.Provider,{value:{tabs:tn,prefixCls:Ft}},Pe.createElement("div",(0,Be.Z)({ref:it,id:yt,className:xe()(Ft,"".concat(Ft,"-").concat(Jn),(st={},(0,de.Z)(st,"".concat(Ft,"-mobile"),kr),(0,de.Z)(st,"".concat(Ft,"-editable"),Rr),(0,de.Z)(st,"".concat(Ft,"-rtl"),xn),st),Nt)},Ht),Pe.createElement(bi,(0,Be.Z)({},rn,{renderTabBar:At})),Pe.createElement(_e,(0,Be.Z)({destroyInactiveTabPane:Ci},Jt,{animated:fr}))))}var pl=Pe.forwardRef(Cl),jl=pl,Ko=jl,Do=te(53124),Na=te(98675),nl=()=>null,Sl=te(33603);const Rl={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Ll(Ae){let it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},st;return it===!1?st={inkBar:!1,tabPane:!1}:it===!0?st={inkBar:!0,tabPane:!0}:st=Object.assign({inkBar:!0},typeof it=="object"?it:{}),st.tabPane&&(st.tabPaneMotion=Object.assign(Object.assign({},Rl),{motionName:(0,Sl.m)(Ae,"switch")})),st}var wl=te(37419),Vl=function(Ae,it){var st={};for(var yt in Ae)Object.prototype.hasOwnProperty.call(Ae,yt)&&it.indexOf(yt)<0&&(st[yt]=Ae[yt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,yt=Object.getOwnPropertySymbols(Ae);wt<yt.length;wt++)it.indexOf(yt[wt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,yt[wt])&&(st[yt[wt]]=Ae[yt[wt]]);return st};function _l(Ae){return Ae.filter(it=>it)}function Fl(Ae,it){if(Ae)return Ae;const st=(0,wl.Z)(it).map(yt=>{if(Pe.isValidElement(yt)){const{key:wt,props:Ft}=yt,Nt=Ft||{},{tab:gn}=Nt,Rn=Vl(Nt,["tab"]);return Object.assign(Object.assign({key:String(wt)},Rn),{label:gn})}return null});return _l(st)}var Vo=te(14747),Wn=te(67968),Nn=te(45503),Ir=te(67771),Ii=Ae=>{const{componentCls:it,motionDurationSlow:st}=Ae;return[{[it]:{[`${it}-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,Ir.oN)(Ae,"slide-up"),(0,Ir.oN)(Ae,"slide-down")]]};const Ma=Ae=>{const{componentCls:it,tabsCardPadding:st,cardBg:yt,cardGutter:wt,colorBorderSecondary:Ft,itemSelectedColor:Nt}=Ae;return{[`${it}-card`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-tab`]:{margin:0,padding:st,background:yt,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ft}`,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOut}`},[`${it}-tab-active`]:{color:Nt,background:Ae.colorBgContainer},[`${it}-ink-bar`]:{visibility:"hidden"}},[`&${it}-top, &${it}-bottom`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-tab + ${it}-tab`]:{marginLeft:{_skip_check_:!0,value:`${wt}px`}}}},[`&${it}-top`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-tab`]:{borderRadius:`${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0 0`},[`${it}-tab-active`]:{borderBottomColor:Ae.colorBgContainer}}},[`&${it}-bottom`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-tab`]:{borderRadius:`0 0 ${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px`},[`${it}-tab-active`]:{borderTopColor:Ae.colorBgContainer}}},[`&${it}-left, &${it}-right`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-tab + ${it}-tab`]:{marginTop:`${wt}px`}}},[`&${it}-left`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ae.borderRadiusLG}px 0 0 ${Ae.borderRadiusLG}px`}},[`${it}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Ae.colorBgContainer}}}},[`&${it}-right`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0`}},[`${it}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Ae.colorBgContainer}}}}}}},Ka=Ae=>{const{componentCls:it,itemHoverColor:st,dropdownEdgeChildVerticalPadding:yt}=Ae;return{[`${it}-dropdown`]:Object.assign(Object.assign({},(0,Vo.Wf)(Ae)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ae.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${it}-dropdown-menu`]:{maxHeight:Ae.tabsDropdownHeight,margin:0,padding:`${yt}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Ae.colorBgContainer,backgroundClip:"padding-box",borderRadius:Ae.borderRadiusLG,outline:"none",boxShadow:Ae.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Vo.vS),{display:"flex",alignItems:"center",minWidth:Ae.tabsDropdownWidth,margin:0,padding:`${Ae.paddingXXS}px ${Ae.paddingSM}px`,color:Ae.colorText,fontWeight:"normal",fontSize:Ae.fontSize,lineHeight:Ae.lineHeight,cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Ae.marginSM},color:Ae.colorTextDescription,fontSize:Ae.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:st}},"&:hover":{background:Ae.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Ae.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ya=Ae=>{const{componentCls:it,margin:st,colorBorderSecondary:yt,horizontalMargin:wt,verticalItemPadding:Ft,verticalItemMargin:Nt}=Ae;return{[`${it}-top, ${it}-bottom`]:{flexDirection:"column",[`> ${it}-nav, > div > ${it}-nav`]:{margin:wt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ae.lineWidth}px ${Ae.lineType} ${yt}`,content:"''"},[`${it}-ink-bar`]:{height:Ae.lineWidthBold,"&-animated":{transition:`width ${Ae.motionDurationSlow}, left ${Ae.motionDurationSlow},
|
|
|
right ${Ae.motionDurationSlow}`}},[`${it}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Ae.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Ae.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Ae.boxShadowTabsOverflowRight},[`&${it}-nav-wrap-ping-left::before`]:{opacity:1},[`&${it}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${it}-top`]:{[`> ${it}-nav,
|
|
|
> div > ${it}-nav`]:{"&::before":{bottom:0},[`${it}-ink-bar`]:{bottom:0}}},[`${it}-bottom`]:{[`> ${it}-nav, > div > ${it}-nav`]:{order:1,marginTop:`${st}px`,marginBottom:0,"&::before":{top:0},[`${it}-ink-bar`]:{top:0}},[`> ${it}-content-holder, > div > ${it}-content-holder`]:{order:0}},[`${it}-left, ${it}-right`]:{[`> ${it}-nav, > div > ${it}-nav`]:{flexDirection:"column",minWidth:Ae.controlHeight*1.25,[`${it}-tab`]:{padding:Ft,textAlign:"center"},[`${it}-tab + ${it}-tab`]:{margin:Nt},[`${it}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Ae.controlHeight},"&::before":{top:0,boxShadow:Ae.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Ae.boxShadowTabsOverflowBottom},[`&${it}-nav-wrap-ping-top::before`]:{opacity:1},[`&${it}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${it}-ink-bar`]:{width:Ae.lineWidthBold,"&-animated":{transition:`height ${Ae.motionDurationSlow}, top ${Ae.motionDurationSlow}`}},[`${it}-nav-list, ${it}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${it}-left`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${it}-content-holder, > div > ${it}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Ae.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`},[`> ${it}-content > ${it}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Ae.paddingLG}}}},[`${it}-right`]:{[`> ${it}-nav, > div > ${it}-nav`]:{order:1,[`${it}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${it}-content-holder, > div > ${it}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Ae.lineWidth},borderRight:{_skip_check_:!0,value:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`},[`> ${it}-content > ${it}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Ae.paddingLG}}}}}},$a=Ae=>{const{componentCls:it,cardPaddingSM:st,cardPaddingLG:yt,horizontalItemPaddingSM:wt,horizontalItemPaddingLG:Ft}=Ae;return{[it]:{"&-small":{[`> ${it}-nav`]:{[`${it}-tab`]:{padding:wt,fontSize:Ae.titleFontSizeSM}}},"&-large":{[`> ${it}-nav`]:{[`${it}-tab`]:{padding:Ft,fontSize:Ae.titleFontSizeLG}}}},[`${it}-card`]:{[`&${it}-small`]:{[`> ${it}-nav`]:{[`${it}-tab`]:{padding:st}},[`&${it}-bottom`]:{[`> ${it}-nav ${it}-tab`]:{borderRadius:`0 0 ${Ae.borderRadius}px ${Ae.borderRadius}px`}},[`&${it}-top`]:{[`> ${it}-nav ${it}-tab`]:{borderRadius:`${Ae.borderRadius}px ${Ae.borderRadius}px 0 0`}},[`&${it}-right`]:{[`> ${it}-nav ${it}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ae.borderRadius}px ${Ae.borderRadius}px 0`}}},[`&${it}-left`]:{[`> ${it}-nav ${it}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ae.borderRadius}px 0 0 ${Ae.borderRadius}px`}}}},[`&${it}-large`]:{[`> ${it}-nav`]:{[`${it}-tab`]:{padding:yt}}}}}},Za=Ae=>{const{componentCls:it,itemActiveColor:st,itemHoverColor:yt,iconCls:wt,tabsHorizontalItemMargin:Ft,horizontalItemPadding:Nt,itemSelectedColor:gn,itemColor:Rn}=Ae,Nr=`${it}-tab`;return{[Nr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Nt,fontSize:Ae.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Rn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:st}},(0,Vo.Qy)(Ae)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Ae.marginXXS},marginLeft:{_skip_check_:!0,value:Ae.marginXS},color:Ae.colorTextDescription,fontSize:Ae.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"&:hover":{color:Ae.colorTextHeading}},"&:hover":{color:yt},[`&${Nr}-active ${Nr}-btn`]:{color:gn,textShadow:Ae.tabsActiveTextShadow},[`&${Nr}-disabled`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"},[`&${Nr}-disabled ${Nr}-btn, &${Nr}-disabled ${it}-remove`]:{"&:focus, &:active":{color:Ae.colorTextDisabled}},[`& ${Nr}-remove ${wt}`]:{margin:0},[wt]:{marginRight:{_skip_check_:!0,value:Ae.marginSM}}},[`${Nr} + ${Nr}`]:{margin:{_skip_check_:!0,value:Ft}}}},Go=Ae=>{const{componentCls:it,tabsHorizontalItemMarginRTL:st,iconCls:yt,cardGutter:wt}=Ae;return{[`${it}-rtl`]:{direction:"rtl",[`${it}-nav`]:{[`${it}-tab`]:{margin:{_skip_check_:!0,value:st},[`${it}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[yt]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Ae.marginSM}px`}},[`${it}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Ae.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Ae.marginXXS}px`},[yt]:{margin:0}}}},[`&${it}-left`]:{[`> ${it}-nav`]:{order:1},[`> ${it}-content-holder`]:{order:0}},[`&${it}-right`]:{[`> ${it}-nav`]:{order:0},[`> ${it}-content-holder`]:{order:1}},[`&${it}-card${it}-top, &${it}-card${it}-bottom`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-tab + ${it}-tab`]:{marginRight:{_skip_check_:!0,value:wt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${it}-dropdown-rtl`]:{direction:"rtl"},[`${it}-menu-item`]:{[`${it}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ho=Ae=>{const{componentCls:it,tabsCardPadding:st,cardHeight:yt,cardGutter:wt,itemHoverColor:Ft,itemActiveColor:Nt,colorBorderSecondary:gn}=Ae;return{[it]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Vo.Wf)(Ae)),{display:"flex",[`> ${it}-nav, > div > ${it}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${it}-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 ${Ae.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${it}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Ae.motionDurationSlow}`},[`${it}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${it}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${it}-nav-more`]:{position:"relative",padding:st,background:"transparent",border:0,color:Ae.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Ae.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${it}-nav-add`]:Object.assign({minWidth:yt,marginLeft:{_skip_check_:!0,value:wt},padding:`0 ${Ae.paddingXS}px`,background:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} ${gn}`,borderRadius:`${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Ae.colorText,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOut}`,"&:hover":{color:Ft},"&:active, &:focus:not(:focus-visible)":{color:Nt}},(0,Vo.Qy)(Ae))},[`${it}-extra-content`]:{flex:"none"},[`${it}-ink-bar`]:{position:"absolute",background:Ae.inkBarColor,pointerEvents:"none"}}),Za(Ae)),{[`${it}-content`]:{position:"relative",width:"100%"},[`${it}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${it}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${it}-centered`]:{[`> ${it}-nav, > div > ${it}-nav`]:{[`${it}-nav-wrap`]:{[`&:not([class*='${it}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Qo=(0,Wn.Z)("Tabs",Ae=>{const it=(0,Nn.TS)(Ae,{tabsCardPadding:Ae.cardPadding||`${(Ae.cardHeight-Math.round(Ae.fontSize*Ae.lineHeight))/2-Ae.lineWidth}px ${Ae.padding}px`,dropdownEdgeChildVerticalPadding:Ae.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ae.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ae.horizontalItemGutter}px`});return[$a(it),Go(it),Ya(it),Ka(it),Ma(it),Ho(it),Ii(it)]},Ae=>{const it=Ae.controlHeightLG;return{zIndexPopup:Ae.zIndexPopupBase+50,cardBg:Ae.colorFillAlter,cardHeight:it,cardPadding:"",cardPaddingSM:`${Ae.paddingXXS*1.5}px ${Ae.padding}px`,cardPaddingLG:`${Ae.paddingXS}px ${Ae.padding}px ${Ae.paddingXXS*1.5}px`,titleFontSize:Ae.fontSize,titleFontSizeLG:Ae.fontSizeLG,titleFontSizeSM:Ae.fontSize,inkBarColor:Ae.colorPrimary,horizontalMargin:`0 0 ${Ae.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Ae.paddingSM}px 0`,horizontalItemPaddingSM:`${Ae.paddingXS}px 0`,horizontalItemPaddingLG:`${Ae.padding}px 0`,verticalItemPadding:`${Ae.paddingXS}px ${Ae.paddingLG}px`,verticalItemMargin:`${Ae.margin}px 0 0 0`,itemColor:Ae.colorText,itemSelectedColor:Ae.colorPrimary,itemHoverColor:Ae.colorPrimaryHover,itemActiveColor:Ae.colorPrimaryActive,cardGutter:Ae.marginXXS/2}}),vr=function(Ae,it){var st={};for(var yt in Ae)Object.prototype.hasOwnProperty.call(Ae,yt)&&it.indexOf(yt)<0&&(st[yt]=Ae[yt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,yt=Object.getOwnPropertySymbols(Ae);wt<yt.length;wt++)it.indexOf(yt[wt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,yt[wt])&&(st[yt[wt]]=Ae[yt[wt]]);return st};const Sr=Ae=>{const{type:it,className:st,rootClassName:yt,size:wt,onEdit:Ft,hideAdd:Nt,centered:gn,addIcon:Rn,popupClassName:Nr,children:Wr,items:Rr,animated:Un,style:pr,indicatorSize:Jn}=Ae,_r=vr(Ae,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:yi,moreIcon:Yr=Pe.createElement(fe.Z,null)}=_r,{direction:Xr,tabs:ti,getPrefixCls:fi,getPopupContainer:Ci}=Pe.useContext(Do.E_),At=fi("tabs",yi),[vt,On]=Qo(At);let Cn;it==="editable-card"&&(Cn={onEdit:(xn,fr)=>{let{key:wr,event:lr}=fr;Ft==null||Ft(xn==="add"?lr:wr,xn)},removeIcon:Pe.createElement(E.Z,null),addIcon:Rn||Pe.createElement(Ie.Z,null),showAdd:Nt!==!0});const mr=fi(),Zr=Fl(Rr,Wr),Zt=Ll(At,Un),Ht=(0,Na.Z)(wt),tn=Object.assign(Object.assign({},ti==null?void 0:ti.style),pr);return vt(Pe.createElement(Ko,Object.assign({direction:Xr,getPopupContainer:Ci,moreTransitionName:`${mr}-slide-up`},_r,{items:Zr,className:xe()({[`${At}-${Ht}`]:Ht,[`${At}-card`]:["card","editable-card"].includes(it),[`${At}-editable-card`]:it==="editable-card",[`${At}-centered`]:gn},ti==null?void 0:ti.className,st,yt,On),popupClassName:xe()(Nr,On),style:tn,editable:Cn,moreIcon:Yr,prefixCls:At,animated:Zt,indicatorSize:Jn!=null?Jn:ti==null?void 0:ti.indicatorSize})))};Sr.TabPane=nl;var Tr=Sr},66309:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return _e}});var E=te(67294),fe=te(73475),Ie=te(94184),Te=te.n(Ie),xe=te(98787),Be=te(69760),de=te(45353),Se=te(53124),pe=te(14747),De=te(45503),Xe=te(67968);const Pe=Me=>{const{paddingXXS:pt,lineWidth:$e,tagPaddingHorizontal:ft,componentCls:We}=Me,gt=ft-$e,kt=pt-$e;return{[We]:Object.assign(Object.assign({},(0,pe.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:gt,fontSize:Me.tagFontSize,lineHeight:Me.tagLineHeight,whiteSpace:"nowrap",background:Me.defaultBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,opacity:1,transition:`all ${Me.motionDurationMid}`,textAlign:"start",position:"relative",[`&${We}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Me.defaultColor},[`${We}-close-icon`]:{marginInlineStart:kt,color:Me.colorTextDescription,fontSize:Me.tagIconSize,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,"&:hover":{color:Me.colorTextHeading}},[`&${We}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Me.iconCls}-close, ${Me.iconCls}-close:hover`]:{color:Me.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${We}-checkable-checked):hover`]:{color:Me.colorPrimary,backgroundColor:Me.colorFillSecondary},"&:active, &-checked":{color:Me.colorTextLightSolid},"&-checked":{backgroundColor:Me.colorPrimary,"&:hover":{backgroundColor:Me.colorPrimaryHover}},"&:active":{backgroundColor:Me.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Me.iconCls} + span, > span + ${Me.iconCls}`]:{marginInlineStart:gt}}),[`${We}-borderless`]:{borderColor:"transparent",background:Me.tagBorderlessBg}}},Ue=Me=>{const{lineWidth:pt,fontSizeIcon:$e}=Me,ft=Me.fontSizeSM,We=`${Me.lineHeightSM*ft}px`;return(0,De.TS)(Me,{tagFontSize:ft,tagLineHeight:We,tagIconSize:$e-2*pt,tagPaddingHorizontal:8,tagBorderlessBg:Me.colorFillTertiary})},rt=Me=>({defaultBg:Me.colorFillQuaternary,defaultColor:Me.colorText});var qe=(0,Xe.Z)("Tag",Me=>{const pt=Ue(Me);return Pe(pt)},rt),He=function(Me,pt){var $e={};for(var ft in Me)Object.prototype.hasOwnProperty.call(Me,ft)&&pt.indexOf(ft)<0&&($e[ft]=Me[ft]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ft=Object.getOwnPropertySymbols(Me);We<ft.length;We++)pt.indexOf(ft[We])<0&&Object.prototype.propertyIsEnumerable.call(Me,ft[We])&&($e[ft[We]]=Me[ft[We]]);return $e},Qe=Me=>{const{prefixCls:pt,style:$e,className:ft,checked:We,onChange:gt,onClick:kt}=Me,xt=He(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:et,tag:Fe}=E.useContext(Se.E_),Dt=Yt=>{gt==null||gt(!We),kt==null||kt(Yt)},qt=et("tag",pt),[Xt,Et]=qe(qt),zt=Te()(qt,`${qt}-checkable`,{[`${qt}-checkable-checked`]:We},Fe==null?void 0:Fe.className,ft,Et);return Xt(E.createElement("span",Object.assign({},xt,{style:Object.assign(Object.assign({},$e),Fe==null?void 0:Fe.style),className:zt,onClick:Dt})))},ht=te(98719);const Je=Me=>(0,ht.Z)(Me,(pt,$e)=>{let{textColor:ft,lightBorderColor:We,lightColor:gt,darkColor:kt}=$e;return{[`${Me.componentCls}-${pt}`]:{color:ft,background:gt,borderColor:We,"&-inverse":{color:Me.colorTextLightSolid,background:kt,borderColor:kt},[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ze=(0,Xe.b)(["Tag","preset"],Me=>{const pt=Ue(Me);return Je(pt)},rt);function ye(Me){return typeof Me!="string"?Me:Me.charAt(0).toUpperCase()+Me.slice(1)}const Ee=(Me,pt,$e)=>{const ft=ye($e);return{[`${Me.componentCls}-${pt}`]:{color:Me[`color${$e}`],background:Me[`color${ft}Bg`],borderColor:Me[`color${ft}Border`],[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ye=(0,Xe.b)(["Tag","status"],Me=>{const pt=Ue(Me);return[Ee(pt,"success","Success"),Ee(pt,"processing","Info"),Ee(pt,"error","Error"),Ee(pt,"warning","Warning")]},rt),Ne=function(Me,pt){var $e={};for(var ft in Me)Object.prototype.hasOwnProperty.call(Me,ft)&&pt.indexOf(ft)<0&&($e[ft]=Me[ft]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ft=Object.getOwnPropertySymbols(Me);We<ft.length;We++)pt.indexOf(ft[We])<0&&Object.prototype.propertyIsEnumerable.call(Me,ft[We])&&($e[ft[We]]=Me[ft[We]]);return $e};const ot=(Me,pt)=>{const{prefixCls:$e,className:ft,rootClassName:We,style:gt,children:kt,icon:xt,color:et,onClose:Fe,closeIcon:Dt,closable:qt,bordered:Xt=!0}=Me,Et=Ne(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:zt,direction:Yt,tag:Vn}=E.useContext(Se.E_),[Pn,_t]=E.useState(!0);E.useEffect(()=>{"visible"in Et&&_t(Et.visible)},[Et.visible]);const pn=(0,xe.o2)(et),sr=(0,xe.yT)(et),Tn=pn||sr,Oe=Object.assign(Object.assign({backgroundColor:et&&!Tn?et:void 0},Vn==null?void 0:Vn.style),gt),me=zt("tag",$e),[he,ge]=qe(me),ve=Te()(me,Vn==null?void 0:Vn.className,{[`${me}-${et}`]:Tn,[`${me}-has-color`]:et&&!Tn,[`${me}-hidden`]:!Pn,[`${me}-rtl`]:Yt==="rtl",[`${me}-borderless`]:!Xt},ft,We,ge),se=cn=>{cn.stopPropagation(),Fe==null||Fe(cn),!cn.defaultPrevented&&_t(!1)},[,Ke]=(0,Be.Z)(qt,Dt,cn=>cn===null?E.createElement(fe.Z,{className:`${me}-close-icon`,onClick:se}):E.createElement("span",{className:`${me}-close-icon`,onClick:se},cn),null,!1),bt=typeof Et.onClick=="function"||kt&&kt.type==="a",Wt=xt||null,yn=Wt?E.createElement(E.Fragment,null,Wt,kt&&E.createElement("span",null,kt)):kt,bn=E.createElement("span",Object.assign({},Et,{ref:pt,className:ve,style:Oe}),yn,Ke,pn&&E.createElement(Ze,{key:"preset",prefixCls:me}),sr&&E.createElement(Ye,{key:"status",prefixCls:me}));return he(bt?E.createElement(de.Z,{component:"Tag"},bn):bn)},ct=E.forwardRef(ot);ct.CheckableTag=Qe;var _e=ct},12845:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Ye}});var E=te(94184),fe=te.n(E),Ie=te(67294),Te=te(53124),xe=function(Ne,ot){var ct={};for(var _e in Ne)Object.prototype.hasOwnProperty.call(Ne,_e)&&ot.indexOf(_e)<0&&(ct[_e]=Ne[_e]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,_e=Object.getOwnPropertySymbols(Ne);Me<_e.length;Me++)ot.indexOf(_e[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,_e[Me])&&(ct[_e[Me]]=Ne[_e[Me]]);return ct},de=Ne=>{var{prefixCls:ot,className:ct,color:_e="blue",dot:Me,pending:pt=!1,position:$e,label:ft,children:We}=Ne,gt=xe(Ne,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:kt}=Ie.useContext(Te.E_),xt=kt("timeline",ot),et=fe()(`${xt}-item`,{[`${xt}-item-pending`]:pt},ct),Fe=/blue|red|green|gray/.test(_e||"")?void 0:_e,Dt=fe()(`${xt}-item-head`,{[`${xt}-item-head-custom`]:!!Me,[`${xt}-item-head-${_e}`]:!Fe});return Ie.createElement("li",Object.assign({},gt,{className:et}),ft&&Ie.createElement("div",{className:`${xt}-item-label`},ft),Ie.createElement("div",{className:`${xt}-item-tail`}),Ie.createElement("div",{className:Dt,style:{borderColor:Fe,color:Fe}},Me),Ie.createElement("div",{className:`${xt}-item-content`},We))},Se=te(74902),pe=te(3407),De=function(Ne,ot){var ct={};for(var _e in Ne)Object.prototype.hasOwnProperty.call(Ne,_e)&&ot.indexOf(_e)<0&&(ct[_e]=Ne[_e]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,_e=Object.getOwnPropertySymbols(Ne);Me<_e.length;Me++)ot.indexOf(_e[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,_e[Me])&&(ct[_e[Me]]=Ne[_e[Me]]);return ct},Pe=Ne=>{var{prefixCls:ot,className:ct,pending:_e=!1,children:Me,items:pt,rootClassName:$e,reverse:ft=!1,direction:We,hashId:gt,pendingDot:kt,mode:xt=""}=Ne,et=De(Ne,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const Fe=(Pn,_t)=>xt==="alternate"?Pn==="right"?`${ot}-item-right`:Pn==="left"?`${ot}-item-left`:_t%2===0?`${ot}-item-left`:`${ot}-item-right`:xt==="left"?`${ot}-item-left`:xt==="right"?`${ot}-item-right`:Pn==="right"?`${ot}-item-right`:"",Dt=(0,Se.Z)(pt||[]),qt=typeof _e=="boolean"?null:_e;_e&&Dt.push({pending:!!_e,dot:kt||Ie.createElement(pe.Z,null),children:qt}),ft&&Dt.reverse();const Xt=Dt.length,Et=`${ot}-item-last`,zt=Dt.filter(Pn=>!!Pn).map((Pn,_t)=>{var pn;const sr=_t===Xt-2?Et:"",Tn=_t===Xt-1?Et:"",{className:Oe}=Pn,me=De(Pn,["className"]);return Ie.createElement(de,Object.assign({},me,{className:fe()([Oe,!ft&&_e?sr:Tn,Fe((pn=Pn==null?void 0:Pn.position)!==null&&pn!==void 0?pn:"",_t)]),key:(Pn==null?void 0:Pn.key)||_t}))}),Yt=Dt.some(Pn=>!!(Pn!=null&&Pn.label)),Vn=fe()(ot,{[`${ot}-pending`]:!!_e,[`${ot}-reverse`]:!!ft,[`${ot}-${xt}`]:!!xt&&!Yt,[`${ot}-label`]:Yt,[`${ot}-rtl`]:We==="rtl"},ct,$e,gt);return Ie.createElement("ul",Object.assign({},et,{className:Vn}),zt)},Ue=te(37419);function rt(Ne,ot){return Ne&&Array.isArray(Ne)?Ne:(0,Ue.Z)(ot).map(ct=>{var _e,Me;return Object.assign({children:(Me=(_e=ct==null?void 0:ct.props)===null||_e===void 0?void 0:_e.children)!==null&&Me!==void 0?Me:""},ct.props)})}var qe=rt,He=te(14747),be=te(67968),Qe=te(45503);const ht=Ne=>{const{componentCls:ot}=Ne;return{[ot]:Object.assign(Object.assign({},(0,He.Wf)(Ne)),{margin:0,padding:0,listStyle:"none",[`${ot}-item`]:{position:"relative",margin:0,paddingBottom:Ne.itemPaddingBottom,fontSize:Ne.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:Ne.itemHeadSize,insetInlineStart:(Ne.itemHeadSize-Ne.tailWidth)/2,height:`calc(100% - ${Ne.itemHeadSize}px)`,borderInlineStart:`${Ne.tailWidth}px ${Ne.lineType} ${Ne.tailColor}`},"&-pending":{[`${ot}-item-head`]:{fontSize:Ne.fontSizeSM,backgroundColor:"transparent"},[`${ot}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:Ne.itemHeadSize,height:Ne.itemHeadSize,backgroundColor:Ne.dotBg,border:`${Ne.dotBorderWidth}px ${Ne.lineType} transparent`,borderRadius:"50%","&-blue":{color:Ne.colorPrimary,borderColor:Ne.colorPrimary},"&-red":{color:Ne.colorError,borderColor:Ne.colorError},"&-green":{color:Ne.colorSuccess,borderColor:Ne.colorSuccess},"&-gray":{color:Ne.colorTextDisabled,borderColor:Ne.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:Ne.itemHeadSize/2,insetInlineStart:Ne.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:Ne.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(Ne.fontSize*Ne.lineHeight-Ne.fontSize)+Ne.lineWidth,marginInlineStart:Ne.margin+Ne.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${ot}-item-tail`]:{display:"none"},[`> ${ot}-item-content`]:{minHeight:Ne.controlHeightLG*1.2}}},[`&${ot}-alternate,
|
|
|
&${ot}-right,
|
|
|
&${ot}-label`]:{[`${ot}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${Ne.marginXXS}px`,"&-custom":{marginInlineStart:Ne.tailWidth/2}},"&-left":{[`${ot}-item-content`]:{insetInlineStart:`calc(50% - ${Ne.marginXXS}px)`,width:`calc(50% - ${Ne.marginSM}px)`,textAlign:"start"}},"&-right":{[`${ot}-item-content`]:{width:`calc(50% - ${Ne.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${ot}-right`]:{[`${ot}-item-right`]:{[`${ot}-item-tail,
|
|
|
${ot}-item-head,
|
|
|
${ot}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(Ne.itemHeadSize+Ne.tailWidth)/2}px)`},[`${ot}-item-content`]:{width:`calc(100% - ${Ne.itemHeadSize+Ne.marginXS}px)`}}},[`&${ot}-pending
|
|
|
${ot}-item-last
|
|
|
${ot}-item-tail`]:{display:"block",height:`calc(100% - ${Ne.margin}px)`,borderInlineStart:`${Ne.tailWidth}px dotted ${Ne.tailColor}`},[`&${ot}-reverse
|
|
|
${ot}-item-last
|
|
|
${ot}-item-tail`]:{display:"none"},[`&${ot}-reverse ${ot}-item-pending`]:{[`${ot}-item-tail`]:{insetBlockStart:Ne.margin,display:"block",height:`calc(100% - ${Ne.margin}px)`,borderInlineStart:`${Ne.tailWidth}px dotted ${Ne.tailColor}`},[`${ot}-item-content`]:{minHeight:Ne.controlHeightLG*1.2}},[`&${ot}-label`]:{[`${ot}-item-label`]:{position:"absolute",insetBlockStart:-(Ne.fontSize*Ne.lineHeight-Ne.fontSize)+Ne.tailWidth,width:`calc(50% - ${Ne.marginSM}px)`,textAlign:"end"},[`${ot}-item-right`]:{[`${ot}-item-label`]:{insetInlineStart:`calc(50% + ${Ne.marginSM}px)`,width:`calc(50% - ${Ne.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${ot}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var Je=(0,be.Z)("Timeline",Ne=>{const ot=(0,Qe.TS)(Ne,{itemHeadSize:10,customHeadPaddingVertical:Ne.paddingXXS,paddingInlineEnd:2});return[ht(ot)]},Ne=>({tailColor:Ne.colorSplit,tailWidth:Ne.lineWidthBold,dotBorderWidth:Ne.wireframe?Ne.lineWidthBold:Ne.lineWidth*3,dotBg:Ne.colorBgContainer,itemPaddingBottom:Ne.padding*1.25})),Ze=function(Ne,ot){var ct={};for(var _e in Ne)Object.prototype.hasOwnProperty.call(Ne,_e)&&ot.indexOf(_e)<0&&(ct[_e]=Ne[_e]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,_e=Object.getOwnPropertySymbols(Ne);Me<_e.length;Me++)ot.indexOf(_e[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,_e[Me])&&(ct[_e[Me]]=Ne[_e[Me]]);return ct};const ye=Ne=>{const{getPrefixCls:ot,direction:ct,timeline:_e}=Ie.useContext(Te.E_),{prefixCls:Me,children:pt,items:$e,className:ft,style:We}=Ne,gt=Ze(Ne,["prefixCls","children","items","className","style"]),kt=ot("timeline",Me),[xt,et]=Je(kt),Fe=qe($e,pt);return xt(Ie.createElement(Pe,Object.assign({},gt,{className:fe()(_e==null?void 0:_e.className,ft),style:Object.assign(Object.assign({},_e==null?void 0:_e.style),We),prefixCls:kt,direction:ct,items:Fe,hashId:et})))};ye.Item=de;var Ee=ye,Ye=Ee},79870:function(In,Ut,te){"use strict";te.d(Ut,{default:function(){return Qo}});var E=te(87462),fe=te(4942),Ie=te(71002),Te=te(1413),xe=te(74902),Be=te(15671),de=te(43144),Se=te(97326),pe=te(60136),De=te(51630),Xe=te(94184),Pe=te.n(Xe),Ue={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(Sr){var Tr=Sr.keyCode;if(Sr.altKey&&!Sr.ctrlKey||Sr.metaKey||Tr>=Ue.F1&&Tr<=Ue.F12)return!1;switch(Tr){case Ue.ALT:case Ue.CAPS_LOCK:case Ue.CONTEXT_MENU:case Ue.CTRL:case Ue.DOWN:case Ue.END:case Ue.ESC:case Ue.HOME:case Ue.INSERT:case Ue.LEFT:case Ue.MAC_FF_META:case Ue.META:case Ue.NUMLOCK:case Ue.NUM_CENTER:case Ue.PAGE_DOWN:case Ue.PAGE_UP:case Ue.PAUSE:case Ue.PRINT_SCREEN:case Ue.RIGHT:case Ue.SHIFT:case Ue.UP:case Ue.WIN_KEY:case Ue.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Sr){if(Sr>=Ue.ZERO&&Sr<=Ue.NINE||Sr>=Ue.NUM_ZERO&&Sr<=Ue.NUM_MULTIPLY||Sr>=Ue.A&&Sr<=Ue.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Sr===0)return!0;switch(Sr){case Ue.SPACE:case Ue.QUESTION_MARK:case Ue.NUM_PLUS:case Ue.NUM_MINUS:case Ue.NUM_PERIOD:case Ue.NUM_DIVISION:case Ue.SEMICOLON:case Ue.DASH:case Ue.EQUALS:case Ue.COMMA:case Ue.PERIOD:case Ue.SLASH:case Ue.APOSTROPHE:case Ue.SINGLE_QUOTE:case Ue.OPEN_SQUARE_BRACKET:case Ue.BACKSLASH:case Ue.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},rt=Ue,qe=te(34952),He=te(72978),be=te(67294),Qe=te(69610);function ht(vr){var Sr=vr.dropPosition,Tr=vr.dropLevelOffset,Ae=vr.indent,it={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Sr){case-1:it.top=0,it.left=-Tr*Ae;break;case 1:it.bottom=0,it.left=-Tr*Ae;break;case 0:it.bottom=0,it.left=Ae;break}return be.createElement("div",{style:it})}var Je=te(36459),Ze=te(97685),ye=te(45987);function Ee(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ye=Ee()?be.useLayoutEffect:be.useEffect,Ne=Ye,ot=function(Sr,Tr){var Ae=React.useRef(!0);Ye(function(){if(!Ae.current)return Sr()},Tr),Ye(function(){return Ae.current=!1,function(){Ae.current=!0}},[])},ct=te(73299),_e=te(73935);function Me(vr){return vr instanceof HTMLElement||vr instanceof SVGElement}function pt(vr){return Me(vr)?vr:vr instanceof be.Component?_e.findDOMNode(vr):null}var $e=te(28580);function ft(vr,Sr,Tr){var Ae=React.useRef({});return(!("value"in Ae.current)||Tr(Ae.current.condition,Sr))&&(Ae.current.value=vr(),Ae.current.condition=Sr),Ae.current.value}function We(vr,Sr){typeof vr=="function"?vr(Sr):(0,Ie.Z)(vr)==="object"&&vr&&"current"in vr&&(vr.current=Sr)}function gt(){for(var vr=arguments.length,Sr=new Array(vr),Tr=0;Tr<vr;Tr++)Sr[Tr]=arguments[Tr];var Ae=Sr.filter(function(it){return it});return Ae.length<=1?Ae[0]:function(it){Sr.forEach(function(st){We(st,it)})}}function kt(){for(var vr=arguments.length,Sr=new Array(vr),Tr=0;Tr<vr;Tr++)Sr[Tr]=arguments[Tr];return useMemo(function(){return gt.apply(void 0,Sr)},Sr,function(Ae,it){return Ae.length===it.length&&Ae.every(function(st,yt){return st===it[yt]})})}function xt(vr){var Sr,Tr,Ae=(0,$e.isMemo)(vr)?vr.type.type:vr.type;return!(typeof Ae=="function"&&!((Sr=Ae.prototype)!==null&&Sr!==void 0&&Sr.render)||typeof vr=="function"&&!((Tr=vr.prototype)!==null&&Tr!==void 0&&Tr.render))}function et(vr,Sr){var Tr={};return Tr[vr.toLowerCase()]=Sr.toLowerCase(),Tr["Webkit".concat(vr)]="webkit".concat(Sr),Tr["Moz".concat(vr)]="moz".concat(Sr),Tr["ms".concat(vr)]="MS".concat(Sr),Tr["O".concat(vr)]="o".concat(Sr.toLowerCase()),Tr}function Fe(vr,Sr){var Tr={animationend:et("Animation","AnimationEnd"),transitionend:et("Transition","TransitionEnd")};return vr&&("AnimationEvent"in Sr||delete Tr.animationend.animation,"TransitionEvent"in Sr||delete Tr.transitionend.transition),Tr}var Dt=Fe(Ee(),typeof window!="undefined"?window:{}),qt={};if(Ee()){var Xt=document.createElement("div");qt=Xt.style}var Et={};function zt(vr){if(Et[vr])return Et[vr];var Sr=Dt[vr];if(Sr)for(var Tr=Object.keys(Sr),Ae=Tr.length,it=0;it<Ae;it+=1){var st=Tr[it];if(Object.prototype.hasOwnProperty.call(Sr,st)&&st in qt)return Et[vr]=Sr[st],Et[vr]}return""}var Yt=zt("animationend"),Vn=zt("transitionend"),Pn=!!(Yt&&Vn),_t=Yt||"animationend",pn=Vn||"transitionend";function sr(vr,Sr){if(!vr)return null;if((0,Ie.Z)(vr)==="object"){var Tr=Sr.replace(/-\w/g,function(Ae){return Ae[1].toUpperCase()});return vr[Tr]}return"".concat(vr,"-").concat(Sr)}var Tn="none",Oe="appear",me="enter",he="leave",ge="none",ve="prepare",se="start",Ke="active",bt="end";function Wt(vr){var Sr=be.useRef(!1),Tr=be.useState(vr),Ae=(0,Ze.Z)(Tr,2),it=Ae[0],st=Ae[1];be.useEffect(function(){return Sr.current=!1,function(){Sr.current=!0}},[]);function yt(wt,Ft){Ft&&Sr.current||st(wt)}return[it,yt]}var yn=function(Sr){return+setTimeout(Sr,16)},bn=function(Sr){return clearTimeout(Sr)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(yn=function(Sr){return window.requestAnimationFrame(Sr)},bn=function(Sr){return window.cancelAnimationFrame(Sr)});var cn=0,wn=new Map;function Tt(vr){wn.delete(vr)}var nn=function(Sr){var Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;cn+=1;var Ae=cn;function it(st){if(st===0)Tt(Ae),Sr();else{var yt=yn(function(){it(st-1)});wn.set(Ae,yt)}}return it(Tr),Ae};nn.cancel=function(vr){var Sr=wn.get(vr);return Tt(Sr),bn(Sr)};var fn=nn,sn=function(){var vr=be.useRef(null);function Sr(){fn.cancel(vr.current)}function Tr(Ae){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Sr();var st=fn(function(){it<=1?Ae({isCanceled:function(){return st!==vr.current}}):Tr(Ae,it-1)});vr.current=st}return be.useEffect(function(){return function(){Sr()}},[]),[Tr,Sr]},an=Ee()?be.useLayoutEffect:be.useEffect,xr=an,Lt=[ve,se,Ke,bt],Vt=!1,cr=!0;function En(vr){return vr===Ke||vr===bt}var en=function(vr,Sr){var Tr=Wt(ge),Ae=(0,Ze.Z)(Tr,2),it=Ae[0],st=Ae[1],yt=sn(),wt=(0,Ze.Z)(yt,2),Ft=wt[0],Nt=wt[1];function gn(){st(ve,!0)}return xr(function(){if(it!==ge&&it!==bt){var Rn=Lt.indexOf(it),Nr=Lt[Rn+1],Wr=Sr(it);Wr===Vt?st(Nr,!0):Ft(function(Rr){function Un(){Rr.isCanceled()||st(Nr,!0)}Wr===!0?Un():Promise.resolve(Wr).then(Un)})}},[vr,it]),be.useEffect(function(){return function(){Nt()}},[]),[gn,it]},Fr=function(vr){var Sr=(0,be.useRef)(),Tr=(0,be.useRef)(vr);Tr.current=vr;var Ae=be.useCallback(function(yt){Tr.current(yt)},[]);function it(yt){yt&&(yt.removeEventListener(pn,Ae),yt.removeEventListener(_t,Ae))}function st(yt){Sr.current&&Sr.current!==yt&&it(Sr.current),yt&&yt!==Sr.current&&(yt.addEventListener(pn,Ae),yt.addEventListener(_t,Ae),Sr.current=yt)}return be.useEffect(function(){return function(){it(Sr.current)}},[]),[st,it]};function Ur(vr,Sr,Tr,Ae){var it=Ae.motionEnter,st=it===void 0?!0:it,yt=Ae.motionAppear,wt=yt===void 0?!0:yt,Ft=Ae.motionLeave,Nt=Ft===void 0?!0:Ft,gn=Ae.motionDeadline,Rn=Ae.motionLeaveImmediately,Nr=Ae.onAppearPrepare,Wr=Ae.onEnterPrepare,Rr=Ae.onLeavePrepare,Un=Ae.onAppearStart,pr=Ae.onEnterStart,Jn=Ae.onLeaveStart,_r=Ae.onAppearActive,yi=Ae.onEnterActive,Yr=Ae.onLeaveActive,Xr=Ae.onAppearEnd,ti=Ae.onEnterEnd,fi=Ae.onLeaveEnd,Ci=Ae.onVisibleChanged,At=Wt(),vt=(0,Ze.Z)(At,2),On=vt[0],Cn=vt[1],mr=Wt(Tn),Zr=(0,Ze.Z)(mr,2),Zt=Zr[0],Ht=Zr[1],tn=Wt(null),xn=(0,Ze.Z)(tn,2),fr=xn[0],wr=xn[1],lr=(0,be.useRef)(!1),kr=(0,be.useRef)(null);function di(){return Tr()}var Ni=(0,be.useRef)(!1);function Si(Jt){var rn=di();if(!(Jt&&!Jt.deadline&&Jt.target!==rn)){var kn=Ni.current,zr;Zt===Oe&&kn?zr=Xr==null?void 0:Xr(rn,Jt):Zt===me&&kn?zr=ti==null?void 0:ti(rn,Jt):Zt===he&&kn&&(zr=fi==null?void 0:fi(rn,Jt)),Zt!==Tn&&kn&&zr!==!1&&(Ht(Tn,!0),wr(null,!0))}}var Jr=Fr(Si),Bi=(0,Ze.Z)(Jr,1),Wi=Bi[0],da=be.useMemo(function(){var Jt,rn,kn;switch(Zt){case Oe:return Jt={},(0,fe.Z)(Jt,ve,Nr),(0,fe.Z)(Jt,se,Un),(0,fe.Z)(Jt,Ke,_r),Jt;case me:return rn={},(0,fe.Z)(rn,ve,Wr),(0,fe.Z)(rn,se,pr),(0,fe.Z)(rn,Ke,yi),rn;case he:return kn={},(0,fe.Z)(kn,ve,Rr),(0,fe.Z)(kn,se,Jn),(0,fe.Z)(kn,Ke,Yr),kn;default:return{}}},[Zt]),Vi=en(Zt,function(Jt){if(Jt===ve){var rn=da[ve];return rn?rn(di()):Vt}if(Ca in da){var kn;wr(((kn=da[Ca])===null||kn===void 0?void 0:kn.call(da,di(),null))||null)}return Ca===Ke&&(Wi(di()),gn>0&&(clearTimeout(kr.current),kr.current=setTimeout(function(){Si({deadline:!0})},gn))),cr}),Ei=(0,Ze.Z)(Vi,2),ga=Ei[0],Ca=Ei[1],fo=En(Ca);Ni.current=fo,xr(function(){Cn(Sr);var Jt=lr.current;if(lr.current=!0,!!vr){var rn;!Jt&&Sr&&wt&&(rn=Oe),Jt&&Sr&&st&&(rn=me),(Jt&&!Sr&&Nt||!Jt&&Rn&&!Sr&&Nt)&&(rn=he),rn&&(Ht(rn),ga())}},[Sr]),(0,be.useEffect)(function(){(Zt===Oe&&!wt||Zt===me&&!st||Zt===he&&!Nt)&&Ht(Tn)},[wt,st,Nt]),(0,be.useEffect)(function(){return function(){lr.current=!1,clearTimeout(kr.current)}},[]);var Bo=be.useRef(!1);(0,be.useEffect)(function(){On&&(Bo.current=!0),On!==void 0&&Zt===Tn&&((Bo.current||On)&&(Ci==null||Ci(On)),Bo.current=!0)},[On,Zt]);var xo=fr;return da[ve]&&Ca===se&&(xo=(0,Te.Z)({transition:"none"},xo)),[Zt,Ca,xo,On!=null?On:Sr]}var ai=function(vr){(0,pe.Z)(Tr,vr);var Sr=(0,De.Z)(Tr);function Tr(){return(0,Be.Z)(this,Tr),Sr.apply(this,arguments)}return(0,de.Z)(Tr,[{key:"render",value:function(){return this.props.children}}]),Tr}(be.Component),ei=ai;function Mi(vr){var Sr=vr;(0,Ie.Z)(vr)==="object"&&(Sr=vr.transitionSupport);function Tr(it){return!!(it.motionName&&Sr)}var Ae=be.forwardRef(function(it,st){var yt=it.visible,wt=yt===void 0?!0:yt,Ft=it.removeOnLeave,Nt=Ft===void 0?!0:Ft,gn=it.forceRender,Rn=it.children,Nr=it.motionName,Wr=it.leavedClassName,Rr=it.eventProps,Un=Tr(it),pr=(0,be.useRef)(),Jn=(0,be.useRef)();function _r(){try{return pr.current instanceof HTMLElement?pr.current:pt(Jn.current)}catch(tn){return null}}var yi=Ur(Un,wt,_r,it),Yr=(0,Ze.Z)(yi,4),Xr=Yr[0],ti=Yr[1],fi=Yr[2],Ci=Yr[3],At=be.useRef(Ci);Ci&&(At.current=!0);var vt=be.useCallback(function(tn){pr.current=tn,We(st,tn)},[st]),On,Cn=(0,Te.Z)((0,Te.Z)({},Rr),{},{visible:wt});if(!Rn)On=null;else if(Xr===Tn||!Tr(it))Ci?On=Rn((0,Te.Z)({},Cn),vt):!Nt&&At.current&&Wr?On=Rn((0,Te.Z)((0,Te.Z)({},Cn),{},{className:Wr}),vt):gn||!Nt&&!Wr?On=Rn((0,Te.Z)((0,Te.Z)({},Cn),{},{style:{display:"none"}}),vt):On=null;else{var mr,Zr;ti===ve?Zr="prepare":En(ti)?Zr="active":ti===se&&(Zr="start"),On=Rn((0,Te.Z)((0,Te.Z)({},Cn),{},{className:Pe()(sr(Nr,Xr),(mr={},(0,fe.Z)(mr,sr(Nr,"".concat(Xr,"-").concat(Zr)),Zr),(0,fe.Z)(mr,Nr,typeof Nr=="string"),mr)),style:fi}),vt)}if(be.isValidElement(On)&&xt(On)){var Zt=On,Ht=Zt.ref;Ht||(On=be.cloneElement(On,{ref:vt}))}return be.createElement(ei,{ref:Jn},On)});return Ae.displayName="CSSMotion",Ae}var ci=Mi(Pn),Qn="add",Or="keep",Hr="remove",vi="removed";function Zi(vr){var Sr;return vr&&(0,Ie.Z)(vr)==="object"&&"key"in vr?Sr=vr:Sr={key:vr},(0,Te.Z)((0,Te.Z)({},Sr),{},{key:String(Sr.key)})}function $t(){var vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return vr.map(Zi)}function $n(){var vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Tr=[],Ae=0,it=Sr.length,st=$t(vr),yt=$t(Sr);st.forEach(function(Nt){for(var gn=!1,Rn=Ae;Rn<it;Rn+=1){var Nr=yt[Rn];if(Nr.key===Nt.key){Ae<Rn&&(Tr=Tr.concat(yt.slice(Ae,Rn).map(function(Wr){return(0,Te.Z)((0,Te.Z)({},Wr),{},{status:Qn})})),Ae=Rn),Tr.push((0,Te.Z)((0,Te.Z)({},Nr),{},{status:Or})),Ae+=1,gn=!0;break}}gn||Tr.push((0,Te.Z)((0,Te.Z)({},Nt),{},{status:Hr}))}),Ae<it&&(Tr=Tr.concat(yt.slice(Ae).map(function(Nt){return(0,Te.Z)((0,Te.Z)({},Nt),{},{status:Qn})})));var wt={};Tr.forEach(function(Nt){var gn=Nt.key;wt[gn]=(wt[gn]||0)+1});var Ft=Object.keys(wt).filter(function(Nt){return wt[Nt]>1});return Ft.forEach(function(Nt){Tr=Tr.filter(function(gn){var Rn=gn.key,Nr=gn.status;return Rn!==Nt||Nr!==Hr}),Tr.forEach(function(gn){gn.key===Nt&&(gn.status=Or)})}),Tr}var mn=["component","children","onVisibleChanged","onAllRemoved"],Yn=["status"],Dr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function hi(vr){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ci,Tr=function(Ae){(0,pe.Z)(st,Ae);var it=(0,De.Z)(st);function st(){var yt;(0,Be.Z)(this,st);for(var wt=arguments.length,Ft=new Array(wt),Nt=0;Nt<wt;Nt++)Ft[Nt]=arguments[Nt];return yt=it.call.apply(it,[this].concat(Ft)),(0,fe.Z)((0,Se.Z)(yt),"state",{keyEntities:[]}),(0,fe.Z)((0,Se.Z)(yt),"removeKey",function(gn){var Rn=yt.state.keyEntities,Nr=Rn.map(function(Wr){return Wr.key!==gn?Wr:(0,Te.Z)((0,Te.Z)({},Wr),{},{status:vi})});return yt.setState({keyEntities:Nr}),Nr.filter(function(Wr){var Rr=Wr.status;return Rr!==vi}).length}),yt}return(0,de.Z)(st,[{key:"render",value:function(){var wt=this,Ft=this.state.keyEntities,Nt=this.props,gn=Nt.component,Rn=Nt.children,Nr=Nt.onVisibleChanged,Wr=Nt.onAllRemoved,Rr=(0,ye.Z)(Nt,mn),Un=gn||be.Fragment,pr={};return Dr.forEach(function(Jn){pr[Jn]=Rr[Jn],delete Rr[Jn]}),delete Rr.keys,be.createElement(Un,Rr,Ft.map(function(Jn){var _r=Jn.status,yi=(0,ye.Z)(Jn,Yn),Yr=_r===Qn||_r===Or;return be.createElement(Sr,(0,E.Z)({},pr,{key:yi.key,visible:Yr,eventProps:yi,onVisibleChanged:function(ti){if(Nr==null||Nr(ti,{key:yi.key}),!ti){var fi=wt.removeKey(yi.key);fi===0&&Wr&&Wr()}}}),Rn)}))}}],[{key:"getDerivedStateFromProps",value:function(wt,Ft){var Nt=wt.keys,gn=Ft.keyEntities,Rn=$t(Nt),Nr=$n(gn,Rn);return{keyEntities:Nr.filter(function(Wr){var Rr=gn.find(function(Un){var pr=Un.key;return Wr.key===pr});return!(Rr&&Rr.status===vi&&Wr.status===Hr)})}}}]),st}(be.Component);return(0,fe.Z)(Tr,"defaultProps",{component:"div"}),Tr}var oi=hi(Pn),Vr=ci,Ct=te(56261);function hn(vr,Sr){var Tr=be.useState(!1),Ae=(0,Ze.Z)(Tr,2),it=Ae[0],st=Ae[1];be.useLayoutEffect(function(){if(it)return vr(),function(){Sr()}},[it]),be.useLayoutEffect(function(){return st(!0),function(){st(!1)}},[])}var An=te(83898),jn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Bt=function(Sr,Tr){var Ae=Sr.className,it=Sr.style,st=Sr.motion,yt=Sr.motionNodes,wt=Sr.motionType,Ft=Sr.onMotionStart,Nt=Sr.onMotionEnd,gn=Sr.active,Rn=Sr.treeNodeRequiredProps,Nr=(0,ye.Z)(Sr,jn),Wr=be.useState(!0),Rr=(0,Ze.Z)(Wr,2),Un=Rr[0],pr=Rr[1],Jn=be.useContext(Qe.k),_r=Jn.prefixCls,yi=yt&&wt!=="hide";Ne(function(){yt&&yi!==Un&&pr(yi)},[yt]);var Yr=function(){yt&&Ft()},Xr=be.useRef(!1),ti=function(){yt&&!Xr.current&&(Xr.current=!0,Nt())};hn(Yr,ti);var fi=function(At){yi===At&&ti()};return yt?be.createElement(Vr,(0,E.Z)({ref:Tr,visible:Un},st,{motionAppear:wt==="show",onVisibleChanged:fi}),function(Ci,At){var vt=Ci.className,On=Ci.style;return be.createElement("div",{ref:At,className:Pe()("".concat(_r,"-treenode-motion"),vt),style:On},yt.map(function(Cn){var mr=(0,E.Z)({},((0,Je.Z)(Cn.data),Cn.data)),Zr=Cn.title,Zt=Cn.key,Ht=Cn.isStart,tn=Cn.isEnd;delete mr.children;var xn=(0,An.H8)(Zt,Rn);return be.createElement(Ct.Z,(0,E.Z)({},mr,xn,{title:Zr,active:gn,data:Cn.data,key:Zt,isStart:Ht,isEnd:tn}))}))}):be.createElement(Ct.Z,(0,E.Z)({domRef:Tr,className:Ae,style:it},Nr,{active:gn}))};Bt.displayName="MotionTreeNode";var on=be.forwardRef(Bt),Kn=on;function Dn(){var vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Tr=vr.length,Ae=Sr.length;if(Math.abs(Tr-Ae)!==1)return{add:!1,key:null};function it(st,yt){var wt=new Map;st.forEach(function(Nt){wt.set(Nt,!0)});var Ft=yt.filter(function(Nt){return!wt.has(Nt)});return Ft.length===1?Ft[0]:null}return Tr<Ae?{add:!0,key:it(vr,Sr)}:{add:!1,key:it(Sr,vr)}}function rr(vr,Sr,Tr){var Ae=vr.findIndex(function(wt){return wt.key===Tr}),it=vr[Ae+1],st=Sr.findIndex(function(wt){return wt.key===Tr});if(it){var yt=Sr.findIndex(function(wt){return wt.key===it.key});return Sr.slice(st+1,yt)}return Sr.slice(st+1)}var er=["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"],Gr={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ra=function(){},Oi="RC_TREE_MOTION_".concat(Math.random()),bi={key:Oi},Ji={key:Oi,level:0,index:0,pos:"0",node:bi,nodes:[bi]},Ti={parent:null,children:[],pos:Ji.pos,data:bi,title:null,key:Oi,isStart:[],isEnd:[]};function ua(vr,Sr,Tr,Ae){return Sr===!1||!Tr?vr:vr.slice(0,Math.ceil(Tr/Ae)+1)}function br(vr){var Sr=vr.key,Tr=vr.pos;return(0,An.km)(Sr,Tr)}function Di(vr){for(var Sr=String(vr.data.key),Tr=vr;Tr.parent;)Tr=Tr.parent,Sr="".concat(Tr.data.key," > ").concat(Sr);return Sr}var ni=be.forwardRef(function(vr,Sr){var Tr=vr.prefixCls,Ae=vr.data,it=vr.selectable,st=vr.checkable,yt=vr.expandedKeys,wt=vr.selectedKeys,Ft=vr.checkedKeys,Nt=vr.loadedKeys,gn=vr.loadingKeys,Rn=vr.halfCheckedKeys,Nr=vr.keyEntities,Wr=vr.disabled,Rr=vr.dragging,Un=vr.dragOverNodeKey,pr=vr.dropPosition,Jn=vr.motion,_r=vr.height,yi=vr.itemHeight,Yr=vr.virtual,Xr=vr.focusable,ti=vr.activeItem,fi=vr.focused,Ci=vr.tabIndex,At=vr.onKeyDown,vt=vr.onFocus,On=vr.onBlur,Cn=vr.onActiveChange,mr=vr.onListChangeStart,Zr=vr.onListChangeEnd,Zt=(0,ye.Z)(vr,er),Ht=be.useRef(null),tn=be.useRef(null);be.useImperativeHandle(Sr,function(){return{scrollTo:function(yr){Ht.current.scrollTo(yr)},getIndentWidth:function(){return tn.current.offsetWidth}}});var xn=be.useState(yt),fr=(0,Ze.Z)(xn,2),wr=fr[0],lr=fr[1],kr=be.useState(Ae),di=(0,Ze.Z)(kr,2),Ni=di[0],Si=di[1],Jr=be.useState(Ae),Bi=(0,Ze.Z)(Jr,2),Wi=Bi[0],da=Bi[1],Vi=be.useState([]),Ei=(0,Ze.Z)(Vi,2),ga=Ei[0],Ca=Ei[1],fo=be.useState(null),Bo=(0,Ze.Z)(fo,2),xo=Bo[0],Jt=Bo[1],rn=be.useRef(Ae);rn.current=Ae;function kn(){var tr=rn.current;Si(tr),da(tr),Ca([]),Jt(null),Zr()}Ne(function(){lr(yt);var tr=Dn(wr,yt);if(tr.key!==null)if(tr.add){var yr=Ni.findIndex(function(la){var La=la.key;return La===tr.key}),Ln=ua(rr(Ni,Ae,tr.key),Yr,_r,yi),Xn=Ni.slice();Xn.splice(yr+1,0,Ti),da(Xn),Ca(Ln),Jt("show")}else{var qr=Ae.findIndex(function(la){var La=la.key;return La===tr.key}),Pi=ua(rr(Ae,Ni,tr.key),Yr,_r,yi),Da=Ae.slice();Da.splice(qr+1,0,Ti),da(Da),Ca(Pi),Jt("hide")}else Ni!==Ae&&(Si(Ae),da(Ae))},[yt,Ae]),be.useEffect(function(){Rr||kn()},[Rr]);var zr=Jn?Wi:Ae,Mr={expandedKeys:yt,selectedKeys:wt,loadedKeys:Nt,loadingKeys:gn,checkedKeys:Ft,halfCheckedKeys:Rn,dragOverNodeKey:Un,dropPosition:pr,keyEntities:Nr};return be.createElement(be.Fragment,null,fi&&ti&&be.createElement("span",{style:Gr,"aria-live":"assertive"},Di(ti)),be.createElement("div",null,be.createElement("input",{style:Gr,disabled:Xr===!1||Wr,tabIndex:Xr!==!1?Ci:null,onKeyDown:At,onFocus:vt,onBlur:On,value:"",onChange:ra,"aria-label":"for screen reader"})),be.createElement("div",{className:"".concat(Tr,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},be.createElement("div",{className:"".concat(Tr,"-indent")},be.createElement("div",{ref:tn,className:"".concat(Tr,"-indent-unit")}))),be.createElement(ct.Z,(0,E.Z)({},Zt,{data:zr,itemKey:br,height:_r,fullHeight:!1,virtual:Yr,itemHeight:yi,prefixCls:"".concat(Tr,"-list"),ref:Ht,onVisibleChange:function(yr,Ln){var Xn=new Set(yr),qr=Ln.filter(function(Pi){return!Xn.has(Pi)});qr.some(function(Pi){return br(Pi)===Oi})&&kn()}}),function(tr){var yr=tr.pos,Ln=(0,E.Z)({},((0,Je.Z)(tr.data),tr.data)),Xn=tr.title,qr=tr.key,Pi=tr.isStart,Da=tr.isEnd,la=(0,An.km)(qr,yr);delete Ln.key,delete Ln.children;var La=(0,An.H8)(la,Mr);return be.createElement(Kn,(0,E.Z)({},Ln,La,{title:Xn,active:!!ti&&qr===ti.key,pos:yr,data:tr.data,isStart:Pi,isEnd:Da,motion:Jn,motionNodes:qr===Oi?ga:null,motionType:xo,onMotionStart:mr,onMotionEnd:kn,treeNodeRequiredProps:Mr,onMouseMove:function(){Cn(null)}}))}))});ni.displayName="NodeList";var No=ni,xa=te(29873),za=te(97153),Lo=te(3596),Ea=10,zo=function(vr){(0,pe.Z)(Tr,vr);var Sr=(0,De.Z)(Tr);function Tr(){var Ae;(0,Be.Z)(this,Tr);for(var it=arguments.length,st=new Array(it),yt=0;yt<it;yt++)st[yt]=arguments[yt];return Ae=Sr.call.apply(Sr,[this].concat(st)),Ae.destroyed=!1,Ae.delayedDragEnterLogic=void 0,Ae.loadingRetryTimes={},Ae.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,An.w$)()},Ae.dragStartMousePosition=null,Ae.dragNode=void 0,Ae.currentMouseOverDroppableNodeKey=null,Ae.listRef=be.createRef(),Ae.onNodeDragStart=function(wt,Ft){var Nt=Ae.state,gn=Nt.expandedKeys,Rn=Nt.keyEntities,Nr=Ae.props.onDragStart,Wr=Ft.props.eventKey;Ae.dragNode=Ft,Ae.dragStartMousePosition={x:wt.clientX,y:wt.clientY};var Rr=(0,xa._5)(gn,Wr);Ae.setState({draggingNodeKey:Wr,dragChildrenKeys:(0,xa.wA)(Wr,Rn),indent:Ae.listRef.current.getIndentWidth()}),Ae.setExpandedKeys(Rr),window.addEventListener("dragend",Ae.onWindowDragEnd),Nr==null||Nr({event:wt,node:(0,An.F)(Ft.props)})},Ae.onNodeDragEnter=function(wt,Ft){var Nt=Ae.state,gn=Nt.expandedKeys,Rn=Nt.keyEntities,Nr=Nt.dragChildrenKeys,Wr=Nt.flattenNodes,Rr=Nt.indent,Un=Ae.props,pr=Un.onDragEnter,Jn=Un.onExpand,_r=Un.allowDrop,yi=Un.direction,Yr=Ft.props,Xr=Yr.pos,ti=Yr.eventKey,fi=(0,Se.Z)(Ae),Ci=fi.dragNode;if(Ae.currentMouseOverDroppableNodeKey!==ti&&(Ae.currentMouseOverDroppableNodeKey=ti),!Ci){Ae.resetDragState();return}var At=(0,xa.OM)(wt,Ci,Ft,Rr,Ae.dragStartMousePosition,_r,Wr,Rn,gn,yi),vt=At.dropPosition,On=At.dropLevelOffset,Cn=At.dropTargetKey,mr=At.dropContainerKey,Zr=At.dropTargetPos,Zt=At.dropAllowed,Ht=At.dragOverNodeKey;if(Nr.indexOf(Cn)!==-1||!Zt){Ae.resetDragState();return}if(Ae.delayedDragEnterLogic||(Ae.delayedDragEnterLogic={}),Object.keys(Ae.delayedDragEnterLogic).forEach(function(tn){clearTimeout(Ae.delayedDragEnterLogic[tn])}),Ci.props.eventKey!==Ft.props.eventKey&&(wt.persist(),Ae.delayedDragEnterLogic[Xr]=window.setTimeout(function(){if(Ae.state.draggingNodeKey!==null){var tn=(0,xe.Z)(gn),xn=(0,Lo.Z)(Rn,Ft.props.eventKey);xn&&(xn.children||[]).length&&(tn=(0,xa.L0)(gn,Ft.props.eventKey)),"expandedKeys"in Ae.props||Ae.setExpandedKeys(tn),Jn==null||Jn(tn,{node:(0,An.F)(Ft.props),expanded:!0,nativeEvent:wt.nativeEvent})}},800)),Ci.props.eventKey===Cn&&On===0){Ae.resetDragState();return}Ae.setState({dragOverNodeKey:Ht,dropPosition:vt,dropLevelOffset:On,dropTargetKey:Cn,dropContainerKey:mr,dropTargetPos:Zr,dropAllowed:Zt}),pr==null||pr({event:wt,node:(0,An.F)(Ft.props),expandedKeys:gn})},Ae.onNodeDragOver=function(wt,Ft){var Nt=Ae.state,gn=Nt.dragChildrenKeys,Rn=Nt.flattenNodes,Nr=Nt.keyEntities,Wr=Nt.expandedKeys,Rr=Nt.indent,Un=Ae.props,pr=Un.onDragOver,Jn=Un.allowDrop,_r=Un.direction,yi=(0,Se.Z)(Ae),Yr=yi.dragNode;if(Yr){var Xr=(0,xa.OM)(wt,Yr,Ft,Rr,Ae.dragStartMousePosition,Jn,Rn,Nr,Wr,_r),ti=Xr.dropPosition,fi=Xr.dropLevelOffset,Ci=Xr.dropTargetKey,At=Xr.dropContainerKey,vt=Xr.dropAllowed,On=Xr.dropTargetPos,Cn=Xr.dragOverNodeKey;gn.indexOf(Ci)!==-1||!vt||(Yr.props.eventKey===Ci&&fi===0?Ae.state.dropPosition===null&&Ae.state.dropLevelOffset===null&&Ae.state.dropTargetKey===null&&Ae.state.dropContainerKey===null&&Ae.state.dropTargetPos===null&&Ae.state.dropAllowed===!1&&Ae.state.dragOverNodeKey===null||Ae.resetDragState():ti===Ae.state.dropPosition&&fi===Ae.state.dropLevelOffset&&Ci===Ae.state.dropTargetKey&&At===Ae.state.dropContainerKey&&On===Ae.state.dropTargetPos&&vt===Ae.state.dropAllowed&&Cn===Ae.state.dragOverNodeKey||Ae.setState({dropPosition:ti,dropLevelOffset:fi,dropTargetKey:Ci,dropContainerKey:At,dropTargetPos:On,dropAllowed:vt,dragOverNodeKey:Cn}),pr==null||pr({event:wt,node:(0,An.F)(Ft.props)}))}},Ae.onNodeDragLeave=function(wt,Ft){Ae.currentMouseOverDroppableNodeKey===Ft.props.eventKey&&!wt.currentTarget.contains(wt.relatedTarget)&&(Ae.resetDragState(),Ae.currentMouseOverDroppableNodeKey=null);var Nt=Ae.props.onDragLeave;Nt==null||Nt({event:wt,node:(0,An.F)(Ft.props)})},Ae.onWindowDragEnd=function(wt){Ae.onNodeDragEnd(wt,null,!0),window.removeEventListener("dragend",Ae.onWindowDragEnd)},Ae.onNodeDragEnd=function(wt,Ft){var Nt=Ae.props.onDragEnd;Ae.setState({dragOverNodeKey:null}),Ae.cleanDragState(),Nt==null||Nt({event:wt,node:(0,An.F)(Ft.props)}),Ae.dragNode=null,window.removeEventListener("dragend",Ae.onWindowDragEnd)},Ae.onNodeDrop=function(wt,Ft){var Nt,gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Rn=Ae.state,Nr=Rn.dragChildrenKeys,Wr=Rn.dropPosition,Rr=Rn.dropTargetKey,Un=Rn.dropTargetPos,pr=Rn.dropAllowed;if(pr){var Jn=Ae.props.onDrop;if(Ae.setState({dragOverNodeKey:null}),Ae.cleanDragState(),Rr!==null){var _r=(0,Te.Z)((0,Te.Z)({},(0,An.H8)(Rr,Ae.getTreeNodeRequiredProps())),{},{active:((Nt=Ae.getActiveItem())===null||Nt===void 0?void 0:Nt.key)===Rr,data:(0,Lo.Z)(Ae.state.keyEntities,Rr).node}),yi=Nr.indexOf(Rr)!==-1;(0,He.ZP)(!yi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Yr=(0,xa.yx)(Un),Xr={event:wt,node:(0,An.F)(_r),dragNode:Ae.dragNode?(0,An.F)(Ae.dragNode.props):null,dragNodesKeys:[Ae.dragNode.props.eventKey].concat(Nr),dropToGap:Wr!==0,dropPosition:Wr+Number(Yr[Yr.length-1])};gn||Jn==null||Jn(Xr),Ae.dragNode=null}}},Ae.cleanDragState=function(){var wt=Ae.state.draggingNodeKey;wt!==null&&Ae.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ae.dragStartMousePosition=null,Ae.currentMouseOverDroppableNodeKey=null},Ae.triggerExpandActionExpand=function(wt,Ft){var Nt=Ae.state,gn=Nt.expandedKeys,Rn=Nt.flattenNodes,Nr=Ft.expanded,Wr=Ft.key,Rr=Ft.isLeaf;if(!(Rr||wt.shiftKey||wt.metaKey||wt.ctrlKey)){var Un=Rn.filter(function(Jn){return Jn.key===Wr})[0],pr=(0,An.F)((0,Te.Z)((0,Te.Z)({},(0,An.H8)(Wr,Ae.getTreeNodeRequiredProps())),{},{data:Un.data}));Ae.setExpandedKeys(Nr?(0,xa._5)(gn,Wr):(0,xa.L0)(gn,Wr)),Ae.onNodeExpand(wt,pr)}},Ae.onNodeClick=function(wt,Ft){var Nt=Ae.props,gn=Nt.onClick,Rn=Nt.expandAction;Rn==="click"&&Ae.triggerExpandActionExpand(wt,Ft),gn==null||gn(wt,Ft)},Ae.onNodeDoubleClick=function(wt,Ft){var Nt=Ae.props,gn=Nt.onDoubleClick,Rn=Nt.expandAction;Rn==="doubleClick"&&Ae.triggerExpandActionExpand(wt,Ft),gn==null||gn(wt,Ft)},Ae.onNodeSelect=function(wt,Ft){var Nt=Ae.state.selectedKeys,gn=Ae.state,Rn=gn.keyEntities,Nr=gn.fieldNames,Wr=Ae.props,Rr=Wr.onSelect,Un=Wr.multiple,pr=Ft.selected,Jn=Ft[Nr.key],_r=!pr;_r?Un?Nt=(0,xa.L0)(Nt,Jn):Nt=[Jn]:Nt=(0,xa._5)(Nt,Jn);var yi=Nt.map(function(Yr){var Xr=(0,Lo.Z)(Rn,Yr);return Xr?Xr.node:null}).filter(function(Yr){return Yr});Ae.setUncontrolledState({selectedKeys:Nt}),Rr==null||Rr(Nt,{event:"select",selected:_r,node:Ft,selectedNodes:yi,nativeEvent:wt.nativeEvent})},Ae.onNodeCheck=function(wt,Ft,Nt){var gn=Ae.state,Rn=gn.keyEntities,Nr=gn.checkedKeys,Wr=gn.halfCheckedKeys,Rr=Ae.props,Un=Rr.checkStrictly,pr=Rr.onCheck,Jn=Ft.key,_r,yi={event:"check",node:Ft,checked:Nt,nativeEvent:wt.nativeEvent};if(Un){var Yr=Nt?(0,xa.L0)(Nr,Jn):(0,xa._5)(Nr,Jn),Xr=(0,xa._5)(Wr,Jn);_r={checked:Yr,halfChecked:Xr},yi.checkedNodes=Yr.map(function(On){return(0,Lo.Z)(Rn,On)}).filter(function(On){return On}).map(function(On){return On.node}),Ae.setUncontrolledState({checkedKeys:Yr})}else{var ti=(0,za.S)([].concat((0,xe.Z)(Nr),[Jn]),!0,Rn),fi=ti.checkedKeys,Ci=ti.halfCheckedKeys;if(!Nt){var At=new Set(fi);At.delete(Jn);var vt=(0,za.S)(Array.from(At),{checked:!1,halfCheckedKeys:Ci},Rn);fi=vt.checkedKeys,Ci=vt.halfCheckedKeys}_r=fi,yi.checkedNodes=[],yi.checkedNodesPositions=[],yi.halfCheckedKeys=Ci,fi.forEach(function(On){var Cn=(0,Lo.Z)(Rn,On);if(Cn){var mr=Cn.node,Zr=Cn.pos;yi.checkedNodes.push(mr),yi.checkedNodesPositions.push({node:mr,pos:Zr})}}),Ae.setUncontrolledState({checkedKeys:fi},!1,{halfCheckedKeys:Ci})}pr==null||pr(_r,yi)},Ae.onNodeLoad=function(wt){var Ft=wt.key,Nt=new Promise(function(gn,Rn){Ae.setState(function(Nr){var Wr=Nr.loadedKeys,Rr=Wr===void 0?[]:Wr,Un=Nr.loadingKeys,pr=Un===void 0?[]:Un,Jn=Ae.props,_r=Jn.loadData,yi=Jn.onLoad;if(!_r||Rr.indexOf(Ft)!==-1||pr.indexOf(Ft)!==-1)return null;var Yr=_r(wt);return Yr.then(function(){var Xr=Ae.state.loadedKeys,ti=(0,xa.L0)(Xr,Ft);yi==null||yi(ti,{event:"load",node:wt}),Ae.setUncontrolledState({loadedKeys:ti}),Ae.setState(function(fi){return{loadingKeys:(0,xa._5)(fi.loadingKeys,Ft)}}),gn()}).catch(function(Xr){if(Ae.setState(function(fi){return{loadingKeys:(0,xa._5)(fi.loadingKeys,Ft)}}),Ae.loadingRetryTimes[Ft]=(Ae.loadingRetryTimes[Ft]||0)+1,Ae.loadingRetryTimes[Ft]>=Ea){var ti=Ae.state.loadedKeys;(0,He.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ae.setUncontrolledState({loadedKeys:(0,xa.L0)(ti,Ft)}),gn()}Rn(Xr)}),{loadingKeys:(0,xa.L0)(pr,Ft)}})});return Nt.catch(function(){}),Nt},Ae.onNodeMouseEnter=function(wt,Ft){var Nt=Ae.props.onMouseEnter;Nt==null||Nt({event:wt,node:Ft})},Ae.onNodeMouseLeave=function(wt,Ft){var Nt=Ae.props.onMouseLeave;Nt==null||Nt({event:wt,node:Ft})},Ae.onNodeContextMenu=function(wt,Ft){var Nt=Ae.props.onRightClick;Nt&&(wt.preventDefault(),Nt({event:wt,node:Ft}))},Ae.onFocus=function(){var wt=Ae.props.onFocus;Ae.setState({focused:!0});for(var Ft=arguments.length,Nt=new Array(Ft),gn=0;gn<Ft;gn++)Nt[gn]=arguments[gn];wt==null||wt.apply(void 0,Nt)},Ae.onBlur=function(){var wt=Ae.props.onBlur;Ae.setState({focused:!1}),Ae.onActiveChange(null);for(var Ft=arguments.length,Nt=new Array(Ft),gn=0;gn<Ft;gn++)Nt[gn]=arguments[gn];wt==null||wt.apply(void 0,Nt)},Ae.getTreeNodeRequiredProps=function(){var wt=Ae.state,Ft=wt.expandedKeys,Nt=wt.selectedKeys,gn=wt.loadedKeys,Rn=wt.loadingKeys,Nr=wt.checkedKeys,Wr=wt.halfCheckedKeys,Rr=wt.dragOverNodeKey,Un=wt.dropPosition,pr=wt.keyEntities;return{expandedKeys:Ft||[],selectedKeys:Nt||[],loadedKeys:gn||[],loadingKeys:Rn||[],checkedKeys:Nr||[],halfCheckedKeys:Wr||[],dragOverNodeKey:Rr,dropPosition:Un,keyEntities:pr}},Ae.setExpandedKeys=function(wt){var Ft=Ae.state,Nt=Ft.treeData,gn=Ft.fieldNames,Rn=(0,An.oH)(Nt,wt,gn);Ae.setUncontrolledState({expandedKeys:wt,flattenNodes:Rn},!0)},Ae.onNodeExpand=function(wt,Ft){var Nt=Ae.state.expandedKeys,gn=Ae.state,Rn=gn.listChanging,Nr=gn.fieldNames,Wr=Ae.props,Rr=Wr.onExpand,Un=Wr.loadData,pr=Ft.expanded,Jn=Ft[Nr.key];if(!Rn){var _r=Nt.indexOf(Jn),yi=!pr;if((0,He.ZP)(pr&&_r!==-1||!pr&&_r===-1,"Expand state not sync with index check"),yi?Nt=(0,xa.L0)(Nt,Jn):Nt=(0,xa._5)(Nt,Jn),Ae.setExpandedKeys(Nt),Rr==null||Rr(Nt,{node:Ft,expanded:yi,nativeEvent:wt.nativeEvent}),yi&&Un){var Yr=Ae.onNodeLoad(Ft);Yr&&Yr.then(function(){var Xr=(0,An.oH)(Ae.state.treeData,Nt,Nr);Ae.setUncontrolledState({flattenNodes:Xr})}).catch(function(){var Xr=Ae.state.expandedKeys,ti=(0,xa._5)(Xr,Jn);Ae.setExpandedKeys(ti)})}}},Ae.onListChangeStart=function(){Ae.setUncontrolledState({listChanging:!0})},Ae.onListChangeEnd=function(){setTimeout(function(){Ae.setUncontrolledState({listChanging:!1})})},Ae.onActiveChange=function(wt){var Ft=Ae.state.activeKey,Nt=Ae.props.onActiveChange;Ft!==wt&&(Ae.setState({activeKey:wt}),wt!==null&&Ae.scrollTo({key:wt}),Nt==null||Nt(wt))},Ae.getActiveItem=function(){var wt=Ae.state,Ft=wt.activeKey,Nt=wt.flattenNodes;return Ft===null?null:Nt.find(function(gn){var Rn=gn.key;return Rn===Ft})||null},Ae.offsetActiveKey=function(wt){var Ft=Ae.state,Nt=Ft.flattenNodes,gn=Ft.activeKey,Rn=Nt.findIndex(function(Rr){var Un=Rr.key;return Un===gn});Rn===-1&&wt<0&&(Rn=Nt.length),Rn=(Rn+wt+Nt.length)%Nt.length;var Nr=Nt[Rn];if(Nr){var Wr=Nr.key;Ae.onActiveChange(Wr)}else Ae.onActiveChange(null)},Ae.onKeyDown=function(wt){var Ft=Ae.state,Nt=Ft.activeKey,gn=Ft.expandedKeys,Rn=Ft.checkedKeys,Nr=Ft.fieldNames,Wr=Ae.props,Rr=Wr.onKeyDown,Un=Wr.checkable,pr=Wr.selectable;switch(wt.which){case rt.UP:{Ae.offsetActiveKey(-1),wt.preventDefault();break}case rt.DOWN:{Ae.offsetActiveKey(1),wt.preventDefault();break}}var Jn=Ae.getActiveItem();if(Jn&&Jn.data){var _r=Ae.getTreeNodeRequiredProps(),yi=Jn.data.isLeaf===!1||!!(Jn.data[Nr.children]||[]).length,Yr=(0,An.F)((0,Te.Z)((0,Te.Z)({},(0,An.H8)(Nt,_r)),{},{data:Jn.data,active:!0}));switch(wt.which){case rt.LEFT:{yi&&gn.includes(Nt)?Ae.onNodeExpand({},Yr):Jn.parent&&Ae.onActiveChange(Jn.parent.key),wt.preventDefault();break}case rt.RIGHT:{yi&&!gn.includes(Nt)?Ae.onNodeExpand({},Yr):Jn.children&&Jn.children.length&&Ae.onActiveChange(Jn.children[0].key),wt.preventDefault();break}case rt.ENTER:case rt.SPACE:{Un&&!Yr.disabled&&Yr.checkable!==!1&&!Yr.disableCheckbox?Ae.onNodeCheck({},Yr,!Rn.includes(Nt)):!Un&&pr&&!Yr.disabled&&Yr.selectable!==!1&&Ae.onNodeSelect({},Yr);break}}}Rr==null||Rr(wt)},Ae.setUncontrolledState=function(wt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ae.destroyed){var gn=!1,Rn=!0,Nr={};Object.keys(wt).forEach(function(Wr){if(Wr in Ae.props){Rn=!1;return}gn=!0,Nr[Wr]=wt[Wr]}),gn&&(!Ft||Rn)&&Ae.setState((0,Te.Z)((0,Te.Z)({},Nr),Nt))}},Ae.scrollTo=function(wt){Ae.listRef.current.scrollTo(wt)},Ae}return(0,de.Z)(Tr,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var it=this.props.activeKey;it!==void 0&&it!==this.state.activeKey&&(this.setState({activeKey:it}),it!==null&&this.scrollTo({key:it}))}},{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 it,st=this.state,yt=st.focused,wt=st.flattenNodes,Ft=st.keyEntities,Nt=st.draggingNodeKey,gn=st.activeKey,Rn=st.dropLevelOffset,Nr=st.dropContainerKey,Wr=st.dropTargetKey,Rr=st.dropPosition,Un=st.dragOverNodeKey,pr=st.indent,Jn=this.props,_r=Jn.prefixCls,yi=Jn.className,Yr=Jn.style,Xr=Jn.showLine,ti=Jn.focusable,fi=Jn.tabIndex,Ci=fi===void 0?0:fi,At=Jn.selectable,vt=Jn.showIcon,On=Jn.icon,Cn=Jn.switcherIcon,mr=Jn.draggable,Zr=Jn.checkable,Zt=Jn.checkStrictly,Ht=Jn.disabled,tn=Jn.motion,xn=Jn.loadData,fr=Jn.filterTreeNode,wr=Jn.height,lr=Jn.itemHeight,kr=Jn.virtual,di=Jn.titleRender,Ni=Jn.dropIndicatorRender,Si=Jn.onContextMenu,Jr=Jn.onScroll,Bi=Jn.direction,Wi=Jn.rootClassName,da=Jn.rootStyle,Vi=(0,qe.Z)(this.props,{aria:!0,data:!0}),Ei;return mr&&((0,Ie.Z)(mr)==="object"?Ei=mr:typeof mr=="function"?Ei={nodeDraggable:mr}:Ei={}),be.createElement(Qe.k.Provider,{value:{prefixCls:_r,selectable:At,showIcon:vt,icon:On,switcherIcon:Cn,draggable:Ei,draggingNodeKey:Nt,checkable:Zr,checkStrictly:Zt,disabled:Ht,keyEntities:Ft,dropLevelOffset:Rn,dropContainerKey:Nr,dropTargetKey:Wr,dropPosition:Rr,dragOverNodeKey:Un,indent:pr,direction:Bi,dropIndicatorRender:Ni,loadData:xn,filterTreeNode:fr,titleRender:di,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}},be.createElement("div",{role:"tree",className:Pe()(_r,yi,Wi,(it={},(0,fe.Z)(it,"".concat(_r,"-show-line"),Xr),(0,fe.Z)(it,"".concat(_r,"-focused"),yt),(0,fe.Z)(it,"".concat(_r,"-active-focused"),gn!==null),it)),style:da},be.createElement(No,(0,E.Z)({ref:this.listRef,prefixCls:_r,style:Yr,data:wt,disabled:Ht,selectable:At,checkable:!!Zr,motion:tn,dragging:Nt!==null,height:wr,itemHeight:lr,virtual:kr,focusable:ti,focused:yt,tabIndex:Ci,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Si,onScroll:Jr},this.getTreeNodeRequiredProps(),Vi))))}}],[{key:"getDerivedStateFromProps",value:function(it,st){var yt=st.prevProps,wt={prevProps:it};function Ft(ti){return!yt&&ti in it||yt&&yt[ti]!==it[ti]}var Nt,gn=st.fieldNames;if(Ft("fieldNames")&&(gn=(0,An.w$)(it.fieldNames),wt.fieldNames=gn),Ft("treeData")?Nt=it.treeData:Ft("children")&&((0,He.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Nt=(0,An.zn)(it.children)),Nt){wt.treeData=Nt;var Rn=(0,An.I8)(Nt,{fieldNames:gn});wt.keyEntities=(0,Te.Z)((0,fe.Z)({},Oi,Ji),Rn.keyEntities)}var Nr=wt.keyEntities||st.keyEntities;if(Ft("expandedKeys")||yt&&Ft("autoExpandParent"))wt.expandedKeys=it.autoExpandParent||!yt&&it.defaultExpandParent?(0,xa.r7)(it.expandedKeys,Nr):it.expandedKeys;else if(!yt&&it.defaultExpandAll){var Wr=(0,Te.Z)({},Nr);delete Wr[Oi],wt.expandedKeys=Object.keys(Wr).map(function(ti){return Wr[ti].key})}else!yt&&it.defaultExpandedKeys&&(wt.expandedKeys=it.autoExpandParent||it.defaultExpandParent?(0,xa.r7)(it.defaultExpandedKeys,Nr):it.defaultExpandedKeys);if(wt.expandedKeys||delete wt.expandedKeys,Nt||wt.expandedKeys){var Rr=(0,An.oH)(Nt||st.treeData,wt.expandedKeys||st.expandedKeys,gn);wt.flattenNodes=Rr}if(it.selectable&&(Ft("selectedKeys")?wt.selectedKeys=(0,xa.BT)(it.selectedKeys,it):!yt&&it.defaultSelectedKeys&&(wt.selectedKeys=(0,xa.BT)(it.defaultSelectedKeys,it))),it.checkable){var Un;if(Ft("checkedKeys")?Un=(0,xa.E6)(it.checkedKeys)||{}:!yt&&it.defaultCheckedKeys?Un=(0,xa.E6)(it.defaultCheckedKeys)||{}:Nt&&(Un=(0,xa.E6)(it.checkedKeys)||{checkedKeys:st.checkedKeys,halfCheckedKeys:st.halfCheckedKeys}),Un){var pr=Un,Jn=pr.checkedKeys,_r=Jn===void 0?[]:Jn,yi=pr.halfCheckedKeys,Yr=yi===void 0?[]:yi;if(!it.checkStrictly){var Xr=(0,za.S)(_r,!0,Nr);_r=Xr.checkedKeys,Yr=Xr.halfCheckedKeys}wt.checkedKeys=_r,wt.halfCheckedKeys=Yr}}return Ft("loadedKeys")&&(wt.loadedKeys=it.loadedKeys),wt}}]),Tr}(be.Component);zo.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:ht,allowDrop:function(){return!0},expandAction:!1},zo.TreeNode=Ct.Z;var gi=zo,Cl=gi,pl=te(73148),jl=te(56747),Ko={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"},Do=Ko,Na=te(84089),ml=function(Sr,Tr){return be.createElement(Na.Z,(0,E.Z)({},Sr,{ref:Tr,icon:Do}))},nl=be.forwardRef(ml),Sl=te(53124),Rl=te(50881),Ll=te(33603),wl=te(32157);const Vl=4;function _l(vr){const{dropPosition:Sr,dropLevelOffset:Tr,prefixCls:Ae,indent:it,direction:st="ltr"}=vr,yt=st==="ltr"?"left":"right",wt=st==="ltr"?"right":"left",Ft={[yt]:-Tr*it+Vl,[wt]:0};switch(Sr){case-1:Ft.top=-3;break;case 1:Ft.bottom=-3;break;default:Ft.bottom=-3,Ft[yt]=it+Vl;break}return be.createElement("div",{style:Ft,className:`${Ae}-drop-indicator`})}var Fl=te(99184),Wn=be.forwardRef((vr,Sr)=>{const{getPrefixCls:Tr,direction:Ae,virtual:it,tree:st}=be.useContext(Sl.E_),{prefixCls:yt,className:wt,showIcon:Ft=!1,showLine:Nt,switcherIcon:gn,blockNode:Rn=!1,children:Nr,checkable:Wr=!1,selectable:Rr=!0,draggable:Un,motion:pr,style:Jn}=vr,_r=Tr("tree",yt),yi=Tr(),Yr=pr!=null?pr:Object.assign(Object.assign({},(0,Ll.Z)(yi)),{motionAppear:!1}),Xr=Object.assign(Object.assign({},vr),{checkable:Wr,selectable:Rr,showIcon:Ft,motion:Yr,blockNode:Rn,showLine:!!Nt,dropIndicatorRender:_l}),[ti,fi]=(0,wl.ZP)(_r),Ci=be.useMemo(()=>{if(!Un)return!1;let vt={};switch(typeof Un){case"function":vt.nodeDraggable=Un;break;case"object":vt=Object.assign({},Un);break;default:break}return vt.icon!==!1&&(vt.icon=vt.icon||be.createElement(Rl.Z,null)),vt},[Un]),At=vt=>be.createElement(Fl.Z,{prefixCls:_r,switcherIcon:gn,treeNodeProps:vt,showLine:Nt});return ti(be.createElement(Cl,Object.assign({itemHeight:20,ref:Sr,virtual:it},Xr,{style:Object.assign(Object.assign({},st==null?void 0:st.style),Jn),prefixCls:_r,className:Pe()({[`${_r}-icon-hide`]:!Ft,[`${_r}-block-node`]:Rn,[`${_r}-unselectable`]:!Rr,[`${_r}-rtl`]:Ae==="rtl"},st==null?void 0:st.className,wt,fi),direction:Ae,checkable:Wr&&be.createElement("span",{className:`${_r}-checkbox-inner`}),selectable:Rr,switcherIcon:At,draggable:Ci}),Nr))}),Nn;(function(vr){vr[vr.None=0]="None",vr[vr.Start=1]="Start",vr[vr.End=2]="End"})(Nn||(Nn={}));function Ir(vr,Sr){function Tr(Ae){const{key:it,children:st}=Ae;Sr(it,Ae)!==!1&&Ir(st||[],Sr)}vr.forEach(Tr)}function Cr(vr){let{treeData:Sr,expandedKeys:Tr,startKey:Ae,endKey:it}=vr;const st=[];let yt=Nn.None;if(Ae&&Ae===it)return[Ae];if(!Ae||!it)return[];function wt(Ft){return Ft===Ae||Ft===it}return Ir(Sr,Ft=>{if(yt===Nn.End)return!1;if(wt(Ft)){if(st.push(Ft),yt===Nn.None)yt=Nn.Start;else if(yt===Nn.Start)return yt=Nn.End,!1}else yt===Nn.Start&&st.push(Ft);return Tr.includes(Ft)}),st}function Ii(vr,Sr){const Tr=(0,xe.Z)(Sr),Ae=[];return Ir(vr,(it,st)=>{const yt=Tr.indexOf(it);return yt!==-1&&(Ae.push(st),Tr.splice(yt,1)),!!Tr.length}),Ae}var Ma=function(vr,Sr){var Tr={};for(var Ae in vr)Object.prototype.hasOwnProperty.call(vr,Ae)&&Sr.indexOf(Ae)<0&&(Tr[Ae]=vr[Ae]);if(vr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ae=Object.getOwnPropertySymbols(vr);it<Ae.length;it++)Sr.indexOf(Ae[it])<0&&Object.prototype.propertyIsEnumerable.call(vr,Ae[it])&&(Tr[Ae[it]]=vr[Ae[it]]);return Tr};function Ka(vr){const{isLeaf:Sr,expanded:Tr}=vr;return Sr?be.createElement(pl.Z,null):Tr?be.createElement(jl.Z,null):be.createElement(nl,null)}function Ya(vr){let{treeData:Sr,children:Tr}=vr;return Sr||(0,An.zn)(Tr)}const $a=(vr,Sr)=>{var{defaultExpandAll:Tr,defaultExpandParent:Ae,defaultExpandedKeys:it}=vr,st=Ma(vr,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const yt=be.useRef(),wt=be.useRef(),Ft=()=>{const{keyEntities:Ci}=(0,An.I8)(Ya(st));let At;return Tr?At=Object.keys(Ci):Ae?At=(0,xa.r7)(st.expandedKeys||it||[],Ci):At=st.expandedKeys||it,At},[Nt,gn]=be.useState(st.selectedKeys||st.defaultSelectedKeys||[]),[Rn,Nr]=be.useState(()=>Ft());be.useEffect(()=>{"selectedKeys"in st&&gn(st.selectedKeys)},[st.selectedKeys]),be.useEffect(()=>{"expandedKeys"in st&&Nr(st.expandedKeys)},[st.expandedKeys]);const Wr=(Ci,At)=>{var vt;return"expandedKeys"in st||Nr(Ci),(vt=st.onExpand)===null||vt===void 0?void 0:vt.call(st,Ci,At)},Rr=(Ci,At)=>{var vt;const{multiple:On}=st,{node:Cn,nativeEvent:mr}=At,{key:Zr=""}=Cn,Zt=Ya(st),Ht=Object.assign(Object.assign({},At),{selected:!0}),tn=(mr==null?void 0:mr.ctrlKey)||(mr==null?void 0:mr.metaKey),xn=mr==null?void 0:mr.shiftKey;let fr;On&&tn?(fr=Ci,yt.current=Zr,wt.current=fr,Ht.selectedNodes=Ii(Zt,fr)):On&&xn?(fr=Array.from(new Set([].concat((0,xe.Z)(wt.current||[]),(0,xe.Z)(Cr({treeData:Zt,expandedKeys:Rn,startKey:Zr,endKey:yt.current}))))),Ht.selectedNodes=Ii(Zt,fr)):(fr=[Zr],yt.current=Zr,wt.current=fr,Ht.selectedNodes=Ii(Zt,fr)),(vt=st.onSelect)===null||vt===void 0||vt.call(st,fr,Ht),"selectedKeys"in st||gn(fr)},{getPrefixCls:Un,direction:pr}=be.useContext(Sl.E_),{prefixCls:Jn,className:_r,showIcon:yi=!0,expandAction:Yr="click"}=st,Xr=Ma(st,["prefixCls","className","showIcon","expandAction"]),ti=Un("tree",Jn),fi=Pe()(`${ti}-directory`,{[`${ti}-directory-rtl`]:pr==="rtl"},_r);return be.createElement(Wn,Object.assign({icon:Ka,ref:Sr,blockNode:!0},Xr,{showIcon:yi,expandAction:Yr,prefixCls:ti,className:fi,expandedKeys:Rn,selectedKeys:Nt,onSelect:Rr,onExpand:Wr}))};var Go=be.forwardRef($a);const Ho=Wn;Ho.DirectoryTree=Go,Ho.TreeNode=Ct.Z;var Qo=Ho},32157:function(In,Ut,te){"use strict";te.d(Ut,{TM:function(){return Ue},Yk:function(){return Pe}});var E=te(34367),fe=te(63185),Ie=te(14747),Te=te(33507),xe=te(45503),Be=te(67968);const de=new E.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Se=(rt,qe)=>({[`.${rt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${qe.motionDurationSlow}`}}}),pe=(rt,qe)=>({[`.${rt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:qe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${qe.lineWidthBold}px solid ${qe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),De=(rt,qe)=>{const{treeCls:He,treeNodeCls:be,treeNodePadding:Qe,titleHeight:ht,nodeSelectedBg:Je,nodeHoverBg:Ze}=qe,ye=qe.paddingXS;return{[He]:Object.assign(Object.assign({},(0,Ie.Wf)(qe)),{background:qe.colorBgContainer,borderRadius:qe.borderRadius,transition:`background-color ${qe.motionDurationSlow}`,[`&${He}-rtl`]:{[`${He}-switcher`]:{"&_close":{[`${He}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${He}-active-focused)`]:Object.assign({},(0,Ie.oN)(qe)),[`${He}-list-holder-inner`]:{alignItems:"flex-start"},[`&${He}-block-node`]:{[`${He}-list-holder-inner`]:{alignItems:"stretch",[`${He}-node-content-wrapper`]:{flex:"auto"},[`${be}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Qe,insetInlineStart:0,border:`1px solid ${qe.colorPrimary}`,opacity:0,animationName:de,animationDuration:qe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${be}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Qe}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${He}-node-content-wrapper`]:{color:qe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${He}-node-content-wrapper`]:Object.assign({},(0,Ie.oN)(qe)),[`&:not(${be}-disabled).filter-node ${He}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${He}-draggable-icon`]:{flexShrink:0,width:ht,lineHeight:`${ht}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${qe.motionDurationSlow}`,[`${be}:hover &`]:{opacity:.45}},[`&${be}-disabled`]:{[`${He}-draggable-icon`]:{visibility:"hidden"}}}},[`${He}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ht}},[`${He}-draggable-icon`]:{visibility:"hidden"},[`${He}-switcher`]:Object.assign(Object.assign({},Se(rt,qe)),{position:"relative",flex:"none",alignSelf:"stretch",width:ht,margin:0,lineHeight:`${ht}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${He}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:qe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ht/2,bottom:-Qe,marginInlineStart:-1,borderInlineEnd:`1px solid ${qe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ht/2*.8,height:ht/2,borderBottom:`1px solid ${qe.colorBorder}`,content:'""'}}}),[`${He}-checkbox`]:{top:"initial",marginInlineEnd:ye},[`${He}-node-content-wrapper, ${He}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ht,margin:0,padding:`0 ${qe.paddingXS/2}px`,color:"inherit",lineHeight:`${ht}px`,background:"transparent",borderRadius:qe.borderRadius,cursor:"pointer",transition:`all ${qe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Ze},[`&${He}-node-selected`]:{backgroundColor:Je},[`${He}-iconEle`]:{display:"inline-block",width:ht,height:ht,lineHeight:`${ht}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${He}-unselectable ${He}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${He}-node-content-wrapper`]:Object.assign({lineHeight:`${ht}px`,userSelect:"none"},pe(rt,qe)),[`${be}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${qe.colorPrimary}`}},"&-show-line":{[`${He}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ht/2,bottom:-Qe,borderInlineEnd:`1px solid ${qe.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${He}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${be}-leaf-last`]:{[`${He}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ht/2}px !important`}}}}})}},Xe=rt=>{const{treeCls:qe,treeNodeCls:He,treeNodePadding:be,directoryNodeSelectedBg:Qe,directoryNodeSelectedColor:ht}=rt;return{[`${qe}${qe}-directory`]:{[He]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:be,insetInlineStart:0,transition:`background-color ${rt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:rt.controlItemBgHover}},"> *":{zIndex:1},[`${qe}-switcher`]:{transition:`color ${rt.motionDurationMid}`},[`${qe}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${qe}-node-selected`]:{color:ht,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Qe},[`${qe}-switcher`]:{color:ht},[`${qe}-node-content-wrapper`]:{color:ht,background:"transparent"}}}}}},Pe=(rt,qe)=>{const He=`.${rt}`,be=`${He}-treenode`,Qe=qe.paddingXS/2,ht=(0,xe.TS)(qe,{treeCls:He,treeNodeCls:be,treeNodePadding:Qe});return[De(rt,ht),Xe(ht)]},Ue=rt=>{const{controlHeightSM:qe}=rt;return{titleHeight:qe,nodeHoverBg:rt.controlItemBgHover,nodeSelectedBg:rt.controlItemBgActive}};Ut.ZP=(0,Be.Z)("Tree",(rt,qe)=>{let{prefixCls:He}=qe;return[{[rt.componentCls]:(0,fe.C2)(`${He}-checkbox`,rt)},Pe(He,rt),(0,Te.Z)(rt)]},rt=>{const{colorTextLightSolid:qe,colorPrimary:He}=rt;return Object.assign(Object.assign({},Ue(rt)),{directoryNodeSelectedColor:qe,directoryNodeSelectedBg:He})})},99184:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return He}});var E=te(87462),fe=te(67294),Ie={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=Ie,xe=te(84089),Be=function(Qe,ht){return fe.createElement(xe.Z,(0,E.Z)({},Qe,{ref:ht,icon:Te}))},de=fe.forwardRef(Be),Se=te(73148),pe=te(3407),De=te(34182),Xe=te(74664),Pe=te(94184),Ue=te.n(Pe),rt=te(96159),He=be=>{const{prefixCls:Qe,switcherIcon:ht,treeNodeProps:Je,showLine:Ze}=be,{isLeaf:ye,expanded:Ee,loading:Ye}=Je;if(Ye)return fe.createElement(pe.Z,{className:`${Qe}-switcher-loading-icon`});let Ne;if(Ze&&typeof Ze=="object"&&(Ne=Ze.showLeafIcon),ye){if(!Ze)return null;if(typeof Ne!="boolean"&&Ne){const _e=typeof Ne=="function"?Ne(Je):Ne,Me=`${Qe}-switcher-line-custom-icon`;return(0,rt.l$)(_e)?(0,rt.Tm)(_e,{className:Ue()(_e.props.className||"",Me)}):_e}return Ne?fe.createElement(Se.Z,{className:`${Qe}-switcher-line-icon`}):fe.createElement("span",{className:`${Qe}-switcher-leaf-line`})}const ot=`${Qe}-switcher-icon`,ct=typeof ht=="function"?ht(Je):ht;return(0,rt.l$)(ct)?(0,rt.Tm)(ct,{className:Ue()(ct.props.className||"",ot)}):ct!==void 0?ct:Ze?Ee?fe.createElement(De.Z,{className:`${Qe}-switcher-line-icon`}):fe.createElement(Xe.Z,{className:`${Qe}-switcher-line-icon`}):fe.createElement(de,{className:ot})}},72665:function(In,Ut){"use strict";var te;var E=typeof Symbol=="function"&&Symbol.for,fe=E?Symbol.for("react.element"):60103,Ie=E?Symbol.for("react.portal"):60106,Te=E?Symbol.for("react.fragment"):60107,xe=E?Symbol.for("react.strict_mode"):60108,Be=E?Symbol.for("react.profiler"):60114,de=E?Symbol.for("react.provider"):60109,Se=E?Symbol.for("react.context"):60110,pe=E?Symbol.for("react.async_mode"):60111,De=E?Symbol.for("react.concurrent_mode"):60111,Xe=E?Symbol.for("react.forward_ref"):60112,Pe=E?Symbol.for("react.suspense"):60113,Ue=E?Symbol.for("react.suspense_list"):60120,rt=E?Symbol.for("react.memo"):60115,qe=E?Symbol.for("react.lazy"):60116,He=E?Symbol.for("react.block"):60121,be=E?Symbol.for("react.fundamental"):60117,Qe=E?Symbol.for("react.responder"):60118,ht=E?Symbol.for("react.scope"):60119;function Je(ye){if(typeof ye=="object"&&ye!==null){var Ee=ye.$$typeof;switch(Ee){case fe:switch(ye=ye.type,ye){case pe:case De:case Te:case Be:case xe:case Pe:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case Se:case Xe:case qe:case rt:case de:return ye;default:return Ee}}case Ie:return Ee}}}function Ze(ye){return Je(ye)===De}te=pe,te=De,te=Se,te=de,te=fe,te=Xe,te=Te,te=qe,te=rt,te=Ie,te=Be,te=xe,te=Pe,te=function(ye){return Ze(ye)||Je(ye)===pe},te=Ze,te=function(ye){return Je(ye)===Se},te=function(ye){return Je(ye)===de},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===fe},te=function(ye){return Je(ye)===Xe},te=function(ye){return Je(ye)===Te},te=function(ye){return Je(ye)===qe},Ut.isMemo=function(ye){return Je(ye)===rt},te=function(ye){return Je(ye)===Ie},te=function(ye){return Je(ye)===Be},te=function(ye){return Je(ye)===xe},te=function(ye){return Je(ye)===Pe},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===De||ye===Be||ye===xe||ye===Pe||ye===Ue||typeof ye=="object"&&ye!==null&&(ye.$$typeof===qe||ye.$$typeof===rt||ye.$$typeof===de||ye.$$typeof===Se||ye.$$typeof===Xe||ye.$$typeof===be||ye.$$typeof===Qe||ye.$$typeof===ht||ye.$$typeof===He)},te=Je},12060:function(In,Ut,te){"use strict";In.exports=te(72665)},41771:function(In,Ut){"use strict";var te;var E=typeof Symbol=="function"&&Symbol.for,fe=E?Symbol.for("react.element"):60103,Ie=E?Symbol.for("react.portal"):60106,Te=E?Symbol.for("react.fragment"):60107,xe=E?Symbol.for("react.strict_mode"):60108,Be=E?Symbol.for("react.profiler"):60114,de=E?Symbol.for("react.provider"):60109,Se=E?Symbol.for("react.context"):60110,pe=E?Symbol.for("react.async_mode"):60111,De=E?Symbol.for("react.concurrent_mode"):60111,Xe=E?Symbol.for("react.forward_ref"):60112,Pe=E?Symbol.for("react.suspense"):60113,Ue=E?Symbol.for("react.suspense_list"):60120,rt=E?Symbol.for("react.memo"):60115,qe=E?Symbol.for("react.lazy"):60116,He=E?Symbol.for("react.block"):60121,be=E?Symbol.for("react.fundamental"):60117,Qe=E?Symbol.for("react.responder"):60118,ht=E?Symbol.for("react.scope"):60119;function Je(ye){if(typeof ye=="object"&&ye!==null){var Ee=ye.$$typeof;switch(Ee){case fe:switch(ye=ye.type,ye){case pe:case De:case Te:case Be:case xe:case Pe:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case Se:case Xe:case qe:case rt:case de:return ye;default:return Ee}}case Ie:return Ee}}}function Ze(ye){return Je(ye)===De}te=pe,te=De,te=Se,te=de,te=fe,te=Xe,te=Te,te=qe,te=rt,te=Ie,te=Be,te=xe,te=Pe,te=function(ye){return Ze(ye)||Je(ye)===pe},te=Ze,te=function(ye){return Je(ye)===Se},te=function(ye){return Je(ye)===de},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===fe},te=function(ye){return Je(ye)===Xe},Ut.isFragment=function(ye){return Je(ye)===Te},te=function(ye){return Je(ye)===qe},te=function(ye){return Je(ye)===rt},te=function(ye){return Je(ye)===Ie},te=function(ye){return Je(ye)===Be},te=function(ye){return Je(ye)===xe},te=function(ye){return Je(ye)===Pe},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===De||ye===Be||ye===xe||ye===Pe||ye===Ue||typeof ye=="object"&&ye!==null&&(ye.$$typeof===qe||ye.$$typeof===rt||ye.$$typeof===de||ye.$$typeof===Se||ye.$$typeof===Xe||ye.$$typeof===be||ye.$$typeof===Qe||ye.$$typeof===ht||ye.$$typeof===He)},te=Je},47655:function(In,Ut,te){"use strict";In.exports=te(41771)},64701:function(In,Ut,te){"use strict";te.r(Ut),te.d(Ut,{ResizableTextArea:function(){return qt},default:function(){return Pn}});var E=te(87462),fe=te(1413),Ie=te(4942),Te=te(71002),xe=te(97685),Be=te(45987),de=te(74902),Se=te(94184),pe=te.n(Se),De=te(67656),Xe=te(87887),Pe=te(67294);function Ue(_t){var pn=Pe.useRef();pn.current=_t;var sr=Pe.useCallback(function(){for(var Tn,Oe=arguments.length,me=new Array(Oe),he=0;he<Oe;he++)me[he]=arguments[he];return(Tn=pn.current)===null||Tn===void 0?void 0:Tn.call.apply(Tn,[pn].concat(me))},[]);return sr}function rt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var qe=rt()?Pe.useLayoutEffect:Pe.useEffect,He=qe,be=function(pn,sr){var Tn=Pe.useRef(!0);qe(function(){if(!Tn.current)return pn()},sr),qe(function(){return Tn.current=!1,function(){Tn.current=!0}},[])};function Qe(_t){var pn=Pe.useRef(!1),sr=Pe.useState(_t),Tn=(0,xe.Z)(sr,2),Oe=Tn[0],me=Tn[1];Pe.useEffect(function(){return pn.current=!1,function(){pn.current=!0}},[]);function he(ge,ve){ve&&pn.current||me(ge)}return[Oe,he]}function ht(_t){return _t!==void 0}function Je(_t,pn){var sr=pn||{},Tn=sr.defaultValue,Oe=sr.value,me=sr.onChange,he=sr.postState,ge=Qe(function(){return ht(Oe)?Oe:ht(Tn)?typeof Tn=="function"?Tn():Tn:typeof _t=="function"?_t():_t}),ve=(0,xe.Z)(ge,2),se=ve[0],Ke=ve[1],bt=Oe!==void 0?Oe:se,Wt=he?he(bt):bt,yn=Ue(me),bn=Qe([bt]),cn=(0,xe.Z)(bn,2),wn=cn[0],Tt=cn[1];be(function(){var fn=wn[0];se!==fn&&yn(se,fn)},[wn]),be(function(){ht(Oe)||Ke(Oe)},[Oe]);var nn=Ue(function(fn,sn){Ke(fn,sn),Tt([bt],sn)});return[Wt,nn]}var Ze=te(48555),ye=function(pn){return+setTimeout(pn,16)},Ee=function(pn){return clearTimeout(pn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ye=function(pn){return window.requestAnimationFrame(pn)},Ee=function(pn){return window.cancelAnimationFrame(pn)});var Ye=0,Ne=new Map;function ot(_t){Ne.delete(_t)}var ct=function(pn){var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ye+=1;var Tn=Ye;function Oe(me){if(me===0)ot(Tn),pn();else{var he=ye(function(){Oe(me-1)});Ne.set(Tn,he)}}return Oe(sr),Tn};ct.cancel=function(_t){var pn=Ne.get(_t);return ot(pn),Ee(pn)};var _e=ct,Me=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,pt=["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={},ft;function We(_t){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sr=_t.getAttribute("id")||_t.getAttribute("data-reactid")||_t.getAttribute("name");if(pn&&$e[sr])return $e[sr];var Tn=window.getComputedStyle(_t),Oe=Tn.getPropertyValue("box-sizing")||Tn.getPropertyValue("-moz-box-sizing")||Tn.getPropertyValue("-webkit-box-sizing"),me=parseFloat(Tn.getPropertyValue("padding-bottom"))+parseFloat(Tn.getPropertyValue("padding-top")),he=parseFloat(Tn.getPropertyValue("border-bottom-width"))+parseFloat(Tn.getPropertyValue("border-top-width")),ge=pt.map(function(se){return"".concat(se,":").concat(Tn.getPropertyValue(se))}).join(";"),ve={sizingStyle:ge,paddingSize:me,borderSize:he,boxSizing:Oe};return pn&&sr&&($e[sr]=ve),ve}function gt(_t){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Tn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ft||(ft=document.createElement("textarea"),ft.setAttribute("tab-index","-1"),ft.setAttribute("aria-hidden","true"),document.body.appendChild(ft)),_t.getAttribute("wrap")?ft.setAttribute("wrap",_t.getAttribute("wrap")):ft.removeAttribute("wrap");var Oe=We(_t,pn),me=Oe.paddingSize,he=Oe.borderSize,ge=Oe.boxSizing,ve=Oe.sizingStyle;ft.setAttribute("style","".concat(ve,";").concat(Me)),ft.value=_t.value||_t.placeholder||"";var se=void 0,Ke=void 0,bt,Wt=ft.scrollHeight;if(ge==="border-box"?Wt+=he:ge==="content-box"&&(Wt-=me),sr!==null||Tn!==null){ft.value=" ";var yn=ft.scrollHeight-me;sr!==null&&(se=yn*sr,ge==="border-box"&&(se=se+me+he),Wt=Math.max(se,Wt)),Tn!==null&&(Ke=yn*Tn,ge==="border-box"&&(Ke=Ke+me+he),bt=Wt>Ke?"":"hidden",Wt=Math.min(Ke,Wt))}var bn={height:Wt,overflowY:bt,resize:"none"};return se&&(bn.minHeight=se),Ke&&(bn.maxHeight=Ke),bn}var kt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xt=0,et=1,Fe=2,Dt=Pe.forwardRef(function(_t,pn){var sr=_t,Tn=sr.prefixCls,Oe=sr.onPressEnter,me=sr.defaultValue,he=sr.value,ge=sr.autoSize,ve=sr.onResize,se=sr.className,Ke=sr.style,bt=sr.disabled,Wt=sr.onChange,yn=sr.onInternalAutoSize,bn=(0,Be.Z)(sr,kt),cn=Je(me,{value:he,postState:function(Yn){return Yn!=null?Yn:""}}),wn=(0,xe.Z)(cn,2),Tt=wn[0],nn=wn[1],fn=function(Yn){nn(Yn.target.value),Wt==null||Wt(Yn)},sn=Pe.useRef();Pe.useImperativeHandle(pn,function(){return{textArea:sn.current}});var an=Pe.useMemo(function(){return ge&&(0,Te.Z)(ge)==="object"?[ge.minRows,ge.maxRows]:[]},[ge]),xr=(0,xe.Z)(an,2),Lt=xr[0],Vt=xr[1],cr=!!ge,En=function(){try{if(document.activeElement===sn.current){var Yn=sn.current,Dr=Yn.selectionStart,hi=Yn.selectionEnd,oi=Yn.scrollTop;sn.current.setSelectionRange(Dr,hi),sn.current.scrollTop=oi}}catch(Vr){}},en=Pe.useState(Fe),Fr=(0,xe.Z)(en,2),Ur=Fr[0],ai=Fr[1],ei=Pe.useState(),Mi=(0,xe.Z)(ei,2),ci=Mi[0],Qn=Mi[1],Or=function(){ai(xt)};He(function(){cr&&Or()},[he,Lt,Vt,cr]),He(function(){if(Ur===xt)ai(et);else if(Ur===et){var mn=gt(sn.current,!1,Lt,Vt);ai(Fe),Qn(mn)}else En()},[Ur]);var Hr=Pe.useRef(),vi=function(){_e.cancel(Hr.current)},Zi=function(Yn){Ur===Fe&&(ve==null||ve(Yn),ge&&(vi(),Hr.current=_e(function(){Or()})))};Pe.useEffect(function(){return vi},[]);var $t=cr?ci:null,$n=(0,fe.Z)((0,fe.Z)({},Ke),$t);return(Ur===xt||Ur===et)&&($n.overflowY="hidden",$n.overflowX="hidden"),Pe.createElement(Ze.Z,{onResize:Zi,disabled:!(ge||ve)},Pe.createElement("textarea",(0,E.Z)({},bn,{ref:sn,style:$n,className:pe()(Tn,se,(0,Ie.Z)({},"".concat(Tn,"-disabled"),bt)),disabled:bt,value:Tt,onChange:fn})))}),qt=Dt,Xt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Et(_t,pn){return(0,de.Z)(_t||"").slice(0,pn).join("")}function zt(_t,pn,sr,Tn){var Oe=sr;return _t?Oe=Et(sr,Tn):(0,de.Z)(pn||"").length<sr.length&&(0,de.Z)(sr||"").length>Tn&&(Oe=pn),Oe}var Yt=Pe.forwardRef(function(_t,pn){var sr,Tn=_t.defaultValue,Oe=_t.value,me=_t.onFocus,he=_t.onBlur,ge=_t.onChange,ve=_t.allowClear,se=_t.maxLength,Ke=_t.onCompositionStart,bt=_t.onCompositionEnd,Wt=_t.suffix,yn=_t.prefixCls,bn=yn===void 0?"rc-textarea":yn,cn=_t.classes,wn=_t.showCount,Tt=_t.className,nn=_t.style,fn=_t.disabled,sn=_t.hidden,an=_t.classNames,xr=_t.styles,Lt=_t.onResize,Vt=(0,Be.Z)(_t,Xt),cr=Je(Tn,{value:Oe,defaultValue:Tn}),En=(0,xe.Z)(cr,2),en=En[0],Fr=En[1],Ur=(0,Pe.useRef)(null),ai=Pe.useState(!1),ei=(0,xe.Z)(ai,2),Mi=ei[0],ci=ei[1],Qn=Pe.useState(!1),Or=(0,xe.Z)(Qn,2),Hr=Or[0],vi=Or[1],Zi=Pe.useRef(),$t=Pe.useRef(0),$n=Pe.useState(null),mn=(0,xe.Z)($n,2),Yn=mn[0],Dr=mn[1],hi=function(){var Ji;(Ji=Ur.current)===null||Ji===void 0||Ji.textArea.focus()};(0,Pe.useImperativeHandle)(pn,function(){return{resizableTextArea:Ur.current,focus:hi,blur:function(){var Ji;(Ji=Ur.current)===null||Ji===void 0||Ji.textArea.blur()}}}),(0,Pe.useEffect)(function(){ci(function(bi){return!fn&&bi})},[fn]);var oi=Number(se)>0,Vr=function(Ji){vi(!0),Zi.current=en,$t.current=Ji.currentTarget.selectionStart,Ke==null||Ke(Ji)},Ct=function(Ji){vi(!1);var Ti=Ji.currentTarget.value;if(oi){var ua,br=$t.current>=se+1||$t.current===((ua=Zi.current)===null||ua===void 0?void 0:ua.length);Ti=zt(br,Zi.current,Ti,se)}Ti!==en&&(Fr(Ti),(0,Xe.rJ)(Ji.currentTarget,Ji,ge,Ti)),bt==null||bt(Ji)},hn=function(Ji){var Ti=Ji.target.value;if(!Hr&&oi){var ua=Ji.target.selectionStart>=se+1||Ji.target.selectionStart===Ti.length||!Ji.target.selectionStart;Ti=zt(ua,en,Ti,se)}Fr(Ti),(0,Xe.rJ)(Ji.currentTarget,Ji,ge,Ti)},An=function(Ji){var Ti=Vt.onPressEnter,ua=Vt.onKeyDown;Ji.key==="Enter"&&Ti&&Ti(Ji),ua==null||ua(Ji)},jn=function(Ji){ci(!0),me==null||me(Ji)},Bt=function(Ji){ci(!1),he==null||he(Ji)},on=function(Ji){var Ti;Fr(""),hi(),(0,Xe.rJ)((Ti=Ur.current)===null||Ti===void 0?void 0:Ti.textArea,Ji,ge)},Kn=(0,Xe.D7)(en);!Hr&&oi&&Oe==null&&(Kn=Et(Kn,se));var Dn=Wt,rr;if(wn){var er=(0,de.Z)(Kn).length;(0,Te.Z)(wn)==="object"?rr=wn.formatter({value:Kn,count:er,maxLength:se}):rr="".concat(er).concat(oi?" / ".concat(se):""),Dn=Pe.createElement(Pe.Fragment,null,Dn,Pe.createElement("span",{className:pe()("".concat(bn,"-data-count"),an==null?void 0:an.count),style:xr==null?void 0:xr.count},rr))}var Gr=function(Ji){var Ti;Lt==null||Lt(Ji),(Ti=Ur.current)!==null&&Ti!==void 0&&Ti.textArea.style.height&&Dr(!0)},ra=!Vt.autoSize&&!wn&&!ve,Oi=Pe.createElement(De.BaseInput,{value:Kn,allowClear:ve,handleReset:on,suffix:Dn,prefixCls:bn,classes:{affixWrapper:pe()(cn==null?void 0:cn.affixWrapper,(sr={},(0,Ie.Z)(sr,"".concat(bn,"-show-count"),wn),(0,Ie.Z)(sr,"".concat(bn,"-textarea-allow-clear"),ve),sr))},disabled:fn,focused:Mi,className:Tt,style:(0,fe.Z)((0,fe.Z)({},nn),Yn&&!ra?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof rr=="string"?rr:void 0}},hidden:sn,inputElement:Pe.createElement(qt,(0,E.Z)({},Vt,{onKeyDown:An,onChange:hn,onFocus:jn,onBlur:Bt,onCompositionStart:Vr,onCompositionEnd:Ct,className:an==null?void 0:an.textarea,style:(0,fe.Z)((0,fe.Z)({},xr==null?void 0:xr.textarea),{},{resize:nn==null?void 0:nn.resize}),disabled:fn,prefixCls:bn,onResize:Gr,ref:Ur}))});return Oi}),Vn=Yt,Pn=Vn},56261:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Ne}});var E=te(87462),fe=te(4942),Ie=te(45987),Te=te(1413),xe=te(15671),Be=te(43144),de=te(97326),Se=te(60136),pe=te(51630),De=te(94184),Xe=te.n(De),Pe=te(34952),Ue=te(67294),rt=te(69610),qe=function(ct){for(var _e=ct.prefixCls,Me=ct.level,pt=ct.isStart,$e=ct.isEnd,ft="".concat(_e,"-indent-unit"),We=[],gt=0;gt<Me;gt+=1){var kt;We.push(Ue.createElement("span",{key:gt,className:Xe()(ft,(kt={},(0,fe.Z)(kt,"".concat(ft,"-start"),pt[gt]),(0,fe.Z)(kt,"".concat(ft,"-end"),$e[gt]),kt))}))}return Ue.createElement("span",{"aria-hidden":"true",className:"".concat(_e,"-indent")},We)},He=Ue.memo(qe),be=te(3596),Qe=te(83898),ht=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Je="open",Ze="close",ye="---",Ee=function(ot){(0,Se.Z)(_e,ot);var ct=(0,pe.Z)(_e);function _e(){var Me;(0,xe.Z)(this,_e);for(var pt=arguments.length,$e=new Array(pt),ft=0;ft<pt;ft++)$e[ft]=arguments[ft];return Me=ct.call.apply(ct,[this].concat($e)),Me.state={dragNodeHighlight:!1},Me.selectHandle=void 0,Me.cacheIndent=void 0,Me.onSelectorClick=function(We){var gt=Me.props.context.onNodeClick;gt(We,(0,Qe.F)(Me.props)),Me.isSelectable()?Me.onSelect(We):Me.onCheck(We)},Me.onSelectorDoubleClick=function(We){var gt=Me.props.context.onNodeDoubleClick;gt(We,(0,Qe.F)(Me.props))},Me.onSelect=function(We){if(!Me.isDisabled()){var gt=Me.props.context.onNodeSelect;gt(We,(0,Qe.F)(Me.props))}},Me.onCheck=function(We){if(!Me.isDisabled()){var gt=Me.props,kt=gt.disableCheckbox,xt=gt.checked,et=Me.props.context.onNodeCheck;if(!(!Me.isCheckable()||kt)){var Fe=!xt;et(We,(0,Qe.F)(Me.props),Fe)}}},Me.onMouseEnter=function(We){var gt=Me.props.context.onNodeMouseEnter;gt(We,(0,Qe.F)(Me.props))},Me.onMouseLeave=function(We){var gt=Me.props.context.onNodeMouseLeave;gt(We,(0,Qe.F)(Me.props))},Me.onContextMenu=function(We){var gt=Me.props.context.onNodeContextMenu;gt(We,(0,Qe.F)(Me.props))},Me.onDragStart=function(We){var gt=Me.props.context.onNodeDragStart;We.stopPropagation(),Me.setState({dragNodeHighlight:!0}),gt(We,(0,de.Z)(Me));try{We.dataTransfer.setData("text/plain","")}catch(kt){}},Me.onDragEnter=function(We){var gt=Me.props.context.onNodeDragEnter;We.preventDefault(),We.stopPropagation(),gt(We,(0,de.Z)(Me))},Me.onDragOver=function(We){var gt=Me.props.context.onNodeDragOver;We.preventDefault(),We.stopPropagation(),gt(We,(0,de.Z)(Me))},Me.onDragLeave=function(We){var gt=Me.props.context.onNodeDragLeave;We.stopPropagation(),gt(We,(0,de.Z)(Me))},Me.onDragEnd=function(We){var gt=Me.props.context.onNodeDragEnd;We.stopPropagation(),Me.setState({dragNodeHighlight:!1}),gt(We,(0,de.Z)(Me))},Me.onDrop=function(We){var gt=Me.props.context.onNodeDrop;We.preventDefault(),We.stopPropagation(),Me.setState({dragNodeHighlight:!1}),gt(We,(0,de.Z)(Me))},Me.onExpand=function(We){var gt=Me.props,kt=gt.loading,xt=gt.context.onNodeExpand;kt||xt(We,(0,Qe.F)(Me.props))},Me.setSelectHandle=function(We){Me.selectHandle=We},Me.getNodeState=function(){var We=Me.props.expanded;return Me.isLeaf()?null:We?Je:Ze},Me.hasChildren=function(){var We=Me.props.eventKey,gt=Me.props.context.keyEntities,kt=(0,be.Z)(gt,We)||{},xt=kt.children;return!!(xt||[]).length},Me.isLeaf=function(){var We=Me.props,gt=We.isLeaf,kt=We.loaded,xt=Me.props.context.loadData,et=Me.hasChildren();return gt===!1?!1:gt||!xt&&!et||xt&&kt&&!et},Me.isDisabled=function(){var We=Me.props.disabled,gt=Me.props.context.disabled;return!!(gt||We)},Me.isCheckable=function(){var We=Me.props.checkable,gt=Me.props.context.checkable;return!gt||We===!1?!1:gt},Me.syncLoadData=function(We){var gt=We.expanded,kt=We.loading,xt=We.loaded,et=Me.props.context,Fe=et.loadData,Dt=et.onNodeLoad;kt||Fe&>&&!Me.isLeaf()&&!Me.hasChildren()&&!xt&&Dt((0,Qe.F)(Me.props))},Me.isDraggable=function(){var We=Me.props,gt=We.data,kt=We.context.draggable;return!!(kt&&(!kt.nodeDraggable||kt.nodeDraggable(gt)))},Me.renderDragHandler=function(){var We=Me.props.context,gt=We.draggable,kt=We.prefixCls;return gt!=null&>.icon?Ue.createElement("span",{className:"".concat(kt,"-draggable-icon")},gt.icon):null},Me.renderSwitcherIconDom=function(We){var gt=Me.props.switcherIcon,kt=Me.props.context.switcherIcon,xt=gt||kt;return typeof xt=="function"?xt((0,Te.Z)((0,Te.Z)({},Me.props),{},{isLeaf:We})):xt},Me.renderSwitcher=function(){var We=Me.props.expanded,gt=Me.props.context.prefixCls;if(Me.isLeaf()){var kt=Me.renderSwitcherIconDom(!0);return kt!==!1?Ue.createElement("span",{className:Xe()("".concat(gt,"-switcher"),"".concat(gt,"-switcher-noop"))},kt):null}var xt=Xe()("".concat(gt,"-switcher"),"".concat(gt,"-switcher_").concat(We?Je:Ze)),et=Me.renderSwitcherIconDom(!1);return et!==!1?Ue.createElement("span",{onClick:Me.onExpand,className:xt},et):null},Me.renderCheckbox=function(){var We=Me.props,gt=We.checked,kt=We.halfChecked,xt=We.disableCheckbox,et=Me.props.context.prefixCls,Fe=Me.isDisabled(),Dt=Me.isCheckable();if(!Dt)return null;var qt=typeof Dt!="boolean"?Dt:null;return Ue.createElement("span",{className:Xe()("".concat(et,"-checkbox"),gt&&"".concat(et,"-checkbox-checked"),!gt&&kt&&"".concat(et,"-checkbox-indeterminate"),(Fe||xt)&&"".concat(et,"-checkbox-disabled")),onClick:Me.onCheck},qt)},Me.renderIcon=function(){var We=Me.props.loading,gt=Me.props.context.prefixCls;return Ue.createElement("span",{className:Xe()("".concat(gt,"-iconEle"),"".concat(gt,"-icon__").concat(Me.getNodeState()||"docu"),We&&"".concat(gt,"-icon_loading"))})},Me.renderSelector=function(){var We=Me.state.dragNodeHighlight,gt=Me.props,kt=gt.title,xt=kt===void 0?ye:kt,et=gt.selected,Fe=gt.icon,Dt=gt.loading,qt=gt.data,Xt=Me.props.context,Et=Xt.prefixCls,zt=Xt.showIcon,Yt=Xt.icon,Vn=Xt.loadData,Pn=Xt.titleRender,_t=Me.isDisabled(),pn="".concat(Et,"-node-content-wrapper"),sr;if(zt){var Tn=Fe||Yt;sr=Tn?Ue.createElement("span",{className:Xe()("".concat(Et,"-iconEle"),"".concat(Et,"-icon__customize"))},typeof Tn=="function"?Tn(Me.props):Tn):Me.renderIcon()}else Vn&&Dt&&(sr=Me.renderIcon());var Oe;typeof xt=="function"?Oe=xt(qt):Pn?Oe=Pn(qt):Oe=xt;var me=Ue.createElement("span",{className:"".concat(Et,"-title")},Oe);return Ue.createElement("span",{ref:Me.setSelectHandle,title:typeof xt=="string"?xt:"",className:Xe()("".concat(pn),"".concat(pn,"-").concat(Me.getNodeState()||"normal"),!_t&&(et||We)&&"".concat(Et,"-node-selected")),onMouseEnter:Me.onMouseEnter,onMouseLeave:Me.onMouseLeave,onContextMenu:Me.onContextMenu,onClick:Me.onSelectorClick,onDoubleClick:Me.onSelectorDoubleClick},sr,me,Me.renderDropIndicator())},Me.renderDropIndicator=function(){var We=Me.props,gt=We.disabled,kt=We.eventKey,xt=Me.props.context,et=xt.draggable,Fe=xt.dropLevelOffset,Dt=xt.dropPosition,qt=xt.prefixCls,Xt=xt.indent,Et=xt.dropIndicatorRender,zt=xt.dragOverNodeKey,Yt=xt.direction,Vn=!!et,Pn=!gt&&Vn&&zt===kt,_t=Xt!=null?Xt:Me.cacheIndent;return Me.cacheIndent=Xt,Pn?Et({dropPosition:Dt,dropLevelOffset:Fe,indent:_t,prefixCls:qt,direction:Yt}):null},Me}return(0,Be.Z)(_e,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var pt=this.props.selectable,$e=this.props.context.selectable;return typeof pt=="boolean"?pt:$e}},{key:"render",value:function(){var pt,$e=this.props,ft=$e.eventKey,We=$e.className,gt=$e.style,kt=$e.dragOver,xt=$e.dragOverGapTop,et=$e.dragOverGapBottom,Fe=$e.isLeaf,Dt=$e.isStart,qt=$e.isEnd,Xt=$e.expanded,Et=$e.selected,zt=$e.checked,Yt=$e.halfChecked,Vn=$e.loading,Pn=$e.domRef,_t=$e.active,pn=$e.data,sr=$e.onMouseMove,Tn=$e.selectable,Oe=(0,Ie.Z)($e,ht),me=this.props.context,he=me.prefixCls,ge=me.filterTreeNode,ve=me.keyEntities,se=me.dropContainerKey,Ke=me.dropTargetKey,bt=me.draggingNodeKey,Wt=this.isDisabled(),yn=(0,Pe.Z)(Oe,{aria:!0,data:!0}),bn=(0,be.Z)(ve,ft)||{},cn=bn.level,wn=qt[qt.length-1],Tt=this.isDraggable(),nn=!Wt&&Tt,fn=bt===ft,sn=Tn!==void 0?{"aria-selected":!!Tn}:void 0;return Ue.createElement("div",(0,E.Z)({ref:Pn,className:Xe()(We,"".concat(he,"-treenode"),(pt={},(0,fe.Z)(pt,"".concat(he,"-treenode-disabled"),Wt),(0,fe.Z)(pt,"".concat(he,"-treenode-switcher-").concat(Xt?"open":"close"),!Fe),(0,fe.Z)(pt,"".concat(he,"-treenode-checkbox-checked"),zt),(0,fe.Z)(pt,"".concat(he,"-treenode-checkbox-indeterminate"),Yt),(0,fe.Z)(pt,"".concat(he,"-treenode-selected"),Et),(0,fe.Z)(pt,"".concat(he,"-treenode-loading"),Vn),(0,fe.Z)(pt,"".concat(he,"-treenode-active"),_t),(0,fe.Z)(pt,"".concat(he,"-treenode-leaf-last"),wn),(0,fe.Z)(pt,"".concat(he,"-treenode-draggable"),Tt),(0,fe.Z)(pt,"dragging",fn),(0,fe.Z)(pt,"drop-target",Ke===ft),(0,fe.Z)(pt,"drop-container",se===ft),(0,fe.Z)(pt,"drag-over",!Wt&&kt),(0,fe.Z)(pt,"drag-over-gap-top",!Wt&&xt),(0,fe.Z)(pt,"drag-over-gap-bottom",!Wt&&et),(0,fe.Z)(pt,"filter-node",ge&&ge((0,Qe.F)(this.props))),pt)),style:gt,draggable:nn,"aria-grabbed":fn,onDragStart:nn?this.onDragStart:void 0,onDragEnter:Tt?this.onDragEnter:void 0,onDragOver:Tt?this.onDragOver:void 0,onDragLeave:Tt?this.onDragLeave:void 0,onDrop:Tt?this.onDrop:void 0,onDragEnd:Tt?this.onDragEnd:void 0,onMouseMove:sr},sn,yn),Ue.createElement(He,{prefixCls:he,level:cn,isStart:Dt,isEnd:qt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_e}(Ue.Component),Ye=function(ct){return Ue.createElement(rt.k.Consumer,null,function(_e){return Ue.createElement(Ee,(0,E.Z)({},ct,{context:_e}))})};Ye.displayName="TreeNode",Ye.isTreeNode=1;var Ne=Ye},69610:function(In,Ut,te){"use strict";te.d(Ut,{k:function(){return fe}});var E=te(67294),fe=E.createContext(null)},29873:function(In,Ut,te){"use strict";te.d(Ut,{BT:function(){return He},E6:function(){return ht},L0:function(){return De},OM:function(){return qe},_5:function(){return pe},r7:function(){return Je},wA:function(){return Pe},yx:function(){return Xe}});var E=te(74902),fe=te(71002),Ie=te(72978),Te=te(67294),xe=te(56261),Be=te(3596),de=te(83898),Se=null;function pe(Ze,ye){if(!Ze)return[];var Ee=Ze.slice(),Ye=Ee.indexOf(ye);return Ye>=0&&Ee.splice(Ye,1),Ee}function De(Ze,ye){var Ee=(Ze||[]).slice();return Ee.indexOf(ye)===-1&&Ee.push(ye),Ee}function Xe(Ze){return Ze.split("-")}function Pe(Ze,ye){var Ee=[],Ye=(0,Be.Z)(ye,Ze);function Ne(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ot.forEach(function(ct){var _e=ct.key,Me=ct.children;Ee.push(_e),Ne(Me)})}return Ne(Ye.children),Ee}function Ue(Ze){if(Ze.parent){var ye=Xe(Ze.pos);return Number(ye[ye.length-1])===Ze.parent.children.length-1}return!1}function rt(Ze){var ye=Xe(Ze.pos);return Number(ye[ye.length-1])===0}function qe(Ze,ye,Ee,Ye,Ne,ot,ct,_e,Me,pt){var $e,ft=Ze.clientX,We=Ze.clientY,gt=Ze.target.getBoundingClientRect(),kt=gt.top,xt=gt.height,et=(pt==="rtl"?-1:1)*(((Ne==null?void 0:Ne.x)||0)-ft),Fe=(et-12)/Ye,Dt=(0,Be.Z)(_e,Ee.props.eventKey);if(We<kt+xt/2){var qt=ct.findIndex(function(me){return me.key===Dt.key}),Xt=qt<=0?0:qt-1,Et=ct[Xt].key;Dt=(0,Be.Z)(_e,Et)}var zt=Dt.key,Yt=Dt,Vn=Dt.key,Pn=0,_t=0;if(!Me.includes(zt))for(var pn=0;pn<Fe&&Ue(Dt);pn+=1)Dt=Dt.parent,_t+=1;var sr=ye.props.data,Tn=Dt.node,Oe=!0;return rt(Dt)&&Dt.level===0&&We<kt+xt/2&&ot({dragNode:sr,dropNode:Tn,dropPosition:-1})&&Dt.key===Ee.props.eventKey?Pn=-1:(Yt.children||[]).length&&Me.includes(Vn)?ot({dragNode:sr,dropNode:Tn,dropPosition:0})?Pn=0:Oe=!1:_t===0?Fe>-1.5?ot({dragNode:sr,dropNode:Tn,dropPosition:1})?Pn=1:Oe=!1:ot({dragNode:sr,dropNode:Tn,dropPosition:0})?Pn=0:ot({dragNode:sr,dropNode:Tn,dropPosition:1})?Pn=1:Oe=!1:ot({dragNode:sr,dropNode:Tn,dropPosition:1})?Pn=1:Oe=!1,{dropPosition:Pn,dropLevelOffset:_t,dropTargetKey:Dt.key,dropTargetPos:Dt.pos,dragOverNodeKey:Vn,dropContainerKey:Pn===0?null:(($e=Dt.parent)===null||$e===void 0?void 0:$e.key)||null,dropAllowed:Oe}}function He(Ze,ye){if(Ze){var Ee=ye.multiple;return Ee?Ze.slice():Ze.length?[Ze[0]]:Ze}}var be=function(ye){return ye};function Qe(Ze,ye){if(!Ze)return[];var Ee=ye||{},Ye=Ee.processProps,Ne=Ye===void 0?be:Ye,ot=Array.isArray(Ze)?Ze:[Ze];return ot.map(function(ct){var _e=ct.children,Me=_objectWithoutProperties(ct,Se),pt=Qe(_e,ye);return React.createElement(TreeNode,_extends({key:Me.key},Ne(Me)),pt)})}function ht(Ze){if(!Ze)return null;var ye;if(Array.isArray(Ze))ye={checkedKeys:Ze,halfCheckedKeys:void 0};else if((0,fe.Z)(Ze)==="object")ye={checkedKeys:Ze.checked||void 0,halfCheckedKeys:Ze.halfChecked||void 0};else return(0,Ie.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ye}function Je(Ze,ye){var Ee=new Set;function Ye(Ne){if(!Ee.has(Ne)){var ot=(0,Be.Z)(ye,Ne);if(ot){Ee.add(Ne);var ct=ot.parent,_e=ot.node;_e.disabled||ct&&Ye(ct.key)}}}return(Ze||[]).forEach(function(Ne){Ye(Ne)}),(0,E.Z)(Ee)}},97153:function(In,Ut,te){"use strict";te.d(Ut,{S:function(){return de}});var E=te(72978),fe=te(3596);function Ie(Se,pe){var De=new Set;return Se.forEach(function(Xe){pe.has(Xe)||De.add(Xe)}),De}function Te(Se){var pe=Se||{},De=pe.disabled,Xe=pe.disableCheckbox,Pe=pe.checkable;return!!(De||Xe)||Pe===!1}function xe(Se,pe,De,Xe){for(var Pe=new Set(Se),Ue=new Set,rt=0;rt<=De;rt+=1){var qe=pe.get(rt)||new Set;qe.forEach(function(ht){var Je=ht.key,Ze=ht.node,ye=ht.children,Ee=ye===void 0?[]:ye;Pe.has(Je)&&!Xe(Ze)&&Ee.filter(function(Ye){return!Xe(Ye.node)}).forEach(function(Ye){Pe.add(Ye.key)})})}for(var He=new Set,be=De;be>=0;be-=1){var Qe=pe.get(be)||new Set;Qe.forEach(function(ht){var Je=ht.parent,Ze=ht.node;if(!(Xe(Ze)||!ht.parent||He.has(ht.parent.key))){if(Xe(ht.parent.node)){He.add(Je.key);return}var ye=!0,Ee=!1;(Je.children||[]).filter(function(Ye){return!Xe(Ye.node)}).forEach(function(Ye){var Ne=Ye.key,ot=Pe.has(Ne);ye&&!ot&&(ye=!1),!Ee&&(ot||Ue.has(Ne))&&(Ee=!0)}),ye&&Pe.add(Je.key),Ee&&Ue.add(Je.key),He.add(Je.key)}})}return{checkedKeys:Array.from(Pe),halfCheckedKeys:Array.from(Ie(Ue,Pe))}}function Be(Se,pe,De,Xe,Pe){for(var Ue=new Set(Se),rt=new Set(pe),qe=0;qe<=Xe;qe+=1){var He=De.get(qe)||new Set;He.forEach(function(Je){var Ze=Je.key,ye=Je.node,Ee=Je.children,Ye=Ee===void 0?[]:Ee;!Ue.has(Ze)&&!rt.has(Ze)&&!Pe(ye)&&Ye.filter(function(Ne){return!Pe(Ne.node)}).forEach(function(Ne){Ue.delete(Ne.key)})})}rt=new Set;for(var be=new Set,Qe=Xe;Qe>=0;Qe-=1){var ht=De.get(Qe)||new Set;ht.forEach(function(Je){var Ze=Je.parent,ye=Je.node;if(!(Pe(ye)||!Je.parent||be.has(Je.parent.key))){if(Pe(Je.parent.node)){be.add(Ze.key);return}var Ee=!0,Ye=!1;(Ze.children||[]).filter(function(Ne){return!Pe(Ne.node)}).forEach(function(Ne){var ot=Ne.key,ct=Ue.has(ot);Ee&&!ct&&(Ee=!1),!Ye&&(ct||rt.has(ot))&&(Ye=!0)}),Ee||Ue.delete(Ze.key),Ye&&rt.add(Ze.key),be.add(Ze.key)}})}return{checkedKeys:Array.from(Ue),halfCheckedKeys:Array.from(Ie(rt,Ue))}}function de(Se,pe,De,Xe){var Pe=[],Ue;Xe?Ue=Xe:Ue=Te;var rt=new Set(Se.filter(function(Qe){var ht=!!(0,fe.Z)(De,Qe);return ht||Pe.push(Qe),ht})),qe=new Map,He=0;Object.keys(De).forEach(function(Qe){var ht=De[Qe],Je=ht.level,Ze=qe.get(Je);Ze||(Ze=new Set,qe.set(Je,Ze)),Ze.add(ht),He=Math.max(He,Je)}),(0,E.ZP)(!Pe.length,"Tree missing follow keys: ".concat(Pe.slice(0,100).map(function(Qe){return"'".concat(Qe,"'")}).join(", ")));var be;return pe===!0?be=xe(rt,qe,He,Ue):be=Be(rt,pe.halfCheckedKeys,qe,He,Ue),be}},3596:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return E}});function E(fe,Ie){return fe[Ie]}},83898:function(In,Ut,te){"use strict";te.d(Ut,{I8:function(){return Je},F:function(){return ye},zn:function(){return be},w$:function(){return qe},oH:function(){return Qe},km:function(){return rt},H8:function(){return Ze}});var E=te(71002),fe=te(74902),Ie=te(1413),Te=te(45987),xe=te(67294),Be=te(28580);function de(Ee){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=[];return xe.Children.forEach(Ee,function(ot){ot==null&&!Ye.keepEmpty||(Array.isArray(ot)?Ne=Ne.concat(de(ot)):(0,Be.isFragment)(ot)&&ot.props?Ne=Ne.concat(de(ot.props.children,Ye)):Ne.push(ot))}),Ne}function Se(Ee,Ye){var Ne=(0,Ie.Z)({},Ee);return Array.isArray(Ye)&&Ye.forEach(function(ot){delete Ne[ot]}),Ne}var pe=te(72978),De=te(3596),Xe=["children"];function Pe(Ee,Ye){return"".concat(Ee,"-").concat(Ye)}function Ue(Ee){return Ee&&Ee.type&&Ee.type.isTreeNode}function rt(Ee,Ye){return Ee!=null?Ee:Ye}function qe(Ee){var Ye=Ee||{},Ne=Ye.title,ot=Ye._title,ct=Ye.key,_e=Ye.children,Me=Ne||"title";return{title:Me,_title:ot||[Me],key:ct||"key",children:_e||"children"}}function He(Ee,Ye){var Ne=new Map;function ot(ct){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ct||[]).forEach(function(Me){var pt=Me[Ye.key],$e=Me[Ye.children];warning(pt!=null,"Tree node must have a certain key: [".concat(_e).concat(pt,"]"));var ft=String(pt);warning(!Ne.has(ft)||pt===null||pt===void 0,"Same 'key' exist in the Tree: ".concat(ft)),Ne.set(ft,!0),ot($e,"".concat(_e).concat(ft," > "))})}ot(Ee)}function be(Ee){function Ye(Ne){var ot=de(Ne);return ot.map(function(ct){if(!Ue(ct))return(0,pe.ZP)(!ct,"Tree/TreeNode can only accept TreeNode as children."),null;var _e=ct.key,Me=ct.props,pt=Me.children,$e=(0,Te.Z)(Me,Xe),ft=(0,Ie.Z)({key:_e},$e),We=Ye(pt);return We.length&&(ft.children=We),ft}).filter(function(ct){return ct})}return Ye(Ee)}function Qe(Ee,Ye,Ne){var ot=qe(Ne),ct=ot._title,_e=ot.key,Me=ot.children,pt=new Set(Ye===!0?[]:Ye),$e=[];function ft(We){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return We.map(function(kt,xt){for(var et=Pe(gt?gt.pos:"0",xt),Fe=rt(kt[_e],et),Dt,qt=0;qt<ct.length;qt+=1){var Xt=ct[qt];if(kt[Xt]!==void 0){Dt=kt[Xt];break}}var Et=(0,Ie.Z)((0,Ie.Z)({},Se(kt,[].concat((0,fe.Z)(ct),[_e,Me]))),{},{title:Dt,key:Fe,parent:gt,pos:et,children:null,data:kt,isStart:[].concat((0,fe.Z)(gt?gt.isStart:[]),[xt===0]),isEnd:[].concat((0,fe.Z)(gt?gt.isEnd:[]),[xt===We.length-1])});return $e.push(Et),Ye===!0||pt.has(Fe)?Et.children=ft(kt[Me]||[],Et):Et.children=[],Et})}return ft(Ee),$e}function ht(Ee,Ye,Ne){var ot={};(0,E.Z)(Ne)==="object"?ot=Ne:ot={externalGetKey:Ne},ot=ot||{};var ct=ot,_e=ct.childrenPropName,Me=ct.externalGetKey,pt=ct.fieldNames,$e=qe(pt),ft=$e.key,We=$e.children,gt=_e||We,kt;Me?typeof Me=="string"?kt=function(Fe){return Fe[Me]}:typeof Me=="function"&&(kt=function(Fe){return Me(Fe)}):kt=function(Fe,Dt){return rt(Fe[ft],Dt)};function xt(et,Fe,Dt,qt){var Xt=et?et[gt]:Ee,Et=et?Pe(Dt.pos,Fe):"0",zt=et?[].concat((0,fe.Z)(qt),[et]):[];if(et){var Yt=kt(et,Et),Vn={node:et,index:Fe,pos:Et,key:Yt,parentPos:Dt.node?Dt.pos:null,level:Dt.level+1,nodes:zt};Ye(Vn)}Xt&&Xt.forEach(function(Pn,_t){xt(Pn,_t,{node:et,pos:Et,level:Dt?Dt.level+1:-1},zt)})}xt(null)}function Je(Ee){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=Ye.initWrapper,ot=Ye.processEntity,ct=Ye.onProcessFinished,_e=Ye.externalGetKey,Me=Ye.childrenPropName,pt=Ye.fieldNames,$e=arguments.length>2?arguments[2]:void 0,ft=_e||$e,We={},gt={},kt={posEntities:We,keyEntities:gt};return Ne&&(kt=Ne(kt)||kt),ht(Ee,function(xt){var et=xt.node,Fe=xt.index,Dt=xt.pos,qt=xt.key,Xt=xt.parentPos,Et=xt.level,zt=xt.nodes,Yt={node:et,nodes:zt,index:Fe,key:qt,pos:Dt,level:Et},Vn=rt(qt,Dt);We[Dt]=Yt,gt[Vn]=Yt,Yt.parent=We[Xt],Yt.parent&&(Yt.parent.children=Yt.parent.children||[],Yt.parent.children.push(Yt)),ot&&ot(Yt,kt)},{externalGetKey:ft,childrenPropName:Me,fieldNames:pt}),ct&&ct(kt),kt}function Ze(Ee,Ye){var Ne=Ye.expandedKeys,ot=Ye.selectedKeys,ct=Ye.loadedKeys,_e=Ye.loadingKeys,Me=Ye.checkedKeys,pt=Ye.halfCheckedKeys,$e=Ye.dragOverNodeKey,ft=Ye.dropPosition,We=Ye.keyEntities,gt=(0,De.Z)(We,Ee),kt={eventKey:Ee,expanded:Ne.indexOf(Ee)!==-1,selected:ot.indexOf(Ee)!==-1,loaded:ct.indexOf(Ee)!==-1,loading:_e.indexOf(Ee)!==-1,checked:Me.indexOf(Ee)!==-1,halfChecked:pt.indexOf(Ee)!==-1,pos:String(gt?gt.pos:""),dragOver:$e===Ee&&ft===0,dragOverGapTop:$e===Ee&&ft===-1,dragOverGapBottom:$e===Ee&&ft===1};return kt}function ye(Ee){var Ye=Ee.data,Ne=Ee.expanded,ot=Ee.selected,ct=Ee.checked,_e=Ee.loaded,Me=Ee.loading,pt=Ee.halfChecked,$e=Ee.dragOver,ft=Ee.dragOverGapTop,We=Ee.dragOverGapBottom,gt=Ee.pos,kt=Ee.active,xt=Ee.eventKey,et=(0,Ie.Z)((0,Ie.Z)({},Ye),{},{expanded:Ne,selected:ot,checked:ct,loaded:_e,loading:Me,halfChecked:pt,dragOver:$e,dragOverGapTop:ft,dragOverGapBottom:We,pos:gt,active:kt,key:xt});return"props"in et||Object.defineProperty(et,"props",{get:function(){return(0,pe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ee}}),et}},34952:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Se}});var E=te(1413),fe=`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`,Ie=`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(fe," ").concat(Ie).split(/[\s\n]+/),xe="aria-",Be="data-";function de(pe,De){return pe.indexOf(De)===0}function Se(pe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe;De===!1?Xe={aria:!0,data:!0,attr:!0}:De===!0?Xe={aria:!0}:Xe=(0,E.Z)({},De);var Pe={};return Object.keys(pe).forEach(function(Ue){(Xe.aria&&(Ue==="role"||de(Ue,xe))||Xe.data&&de(Ue,Be)||Xe.attr&&Te.includes(Ue))&&(Pe[Ue]=pe[Ue])}),Pe}},72978:function(In,Ut,te){"use strict";var E={};function fe(Se,pe){}function Ie(Se,pe){}function Te(){E={}}function xe(Se,pe,De){!pe&&!E[De]&&(Se(!1,De),E[De]=!0)}function Be(Se,pe){xe(fe,Se,pe)}function de(Se,pe){xe(Ie,Se,pe)}Ut.ZP=Be},81533:function(In,Ut){"use strict";var te;var E=typeof Symbol=="function"&&Symbol.for,fe=E?Symbol.for("react.element"):60103,Ie=E?Symbol.for("react.portal"):60106,Te=E?Symbol.for("react.fragment"):60107,xe=E?Symbol.for("react.strict_mode"):60108,Be=E?Symbol.for("react.profiler"):60114,de=E?Symbol.for("react.provider"):60109,Se=E?Symbol.for("react.context"):60110,pe=E?Symbol.for("react.async_mode"):60111,De=E?Symbol.for("react.concurrent_mode"):60111,Xe=E?Symbol.for("react.forward_ref"):60112,Pe=E?Symbol.for("react.suspense"):60113,Ue=E?Symbol.for("react.suspense_list"):60120,rt=E?Symbol.for("react.memo"):60115,qe=E?Symbol.for("react.lazy"):60116,He=E?Symbol.for("react.block"):60121,be=E?Symbol.for("react.fundamental"):60117,Qe=E?Symbol.for("react.responder"):60118,ht=E?Symbol.for("react.scope"):60119;function Je(ye){if(typeof ye=="object"&&ye!==null){var Ee=ye.$$typeof;switch(Ee){case fe:switch(ye=ye.type,ye){case pe:case De:case Te:case Be:case xe:case Pe:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case Se:case Xe:case qe:case rt:case de:return ye;default:return Ee}}case Ie:return Ee}}}function Ze(ye){return Je(ye)===De}te=pe,te=De,te=Se,te=de,te=fe,te=Xe,te=Te,te=qe,te=rt,te=Ie,te=Be,te=xe,te=Pe,te=function(ye){return Ze(ye)||Je(ye)===pe},te=Ze,te=function(ye){return Je(ye)===Se},te=function(ye){return Je(ye)===de},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===fe},te=function(ye){return Je(ye)===Xe},Ut.isFragment=function(ye){return Je(ye)===Te},te=function(ye){return Je(ye)===qe},Ut.isMemo=function(ye){return Je(ye)===rt},te=function(ye){return Je(ye)===Ie},te=function(ye){return Je(ye)===Be},te=function(ye){return Je(ye)===xe},te=function(ye){return Je(ye)===Pe},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===De||ye===Be||ye===xe||ye===Pe||ye===Ue||typeof ye=="object"&&ye!==null&&(ye.$$typeof===qe||ye.$$typeof===rt||ye.$$typeof===de||ye.$$typeof===Se||ye.$$typeof===Xe||ye.$$typeof===be||ye.$$typeof===Qe||ye.$$typeof===ht||ye.$$typeof===He)},te=Je},28580:function(In,Ut,te){"use strict";In.exports=te(81533)},92389:function(In,Ut){"use strict";var te={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(fe){var Ie=fe.keyCode;if(fe.altKey&&!fe.ctrlKey||fe.metaKey||Ie>=te.F1&&Ie<=te.F12)return!1;switch(Ie){case te.ALT:case te.CAPS_LOCK:case te.CONTEXT_MENU:case te.CTRL:case te.DOWN:case te.END:case te.ESC:case te.HOME:case te.INSERT:case te.LEFT:case te.MAC_FF_META:case te.META:case te.NUMLOCK:case te.NUM_CENTER:case te.PAGE_DOWN:case te.PAGE_UP:case te.PAUSE:case te.PRINT_SCREEN:case te.RIGHT:case te.SHIFT:case te.UP:case te.WIN_KEY:case te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(fe){if(fe>=te.ZERO&&fe<=te.NINE||fe>=te.NUM_ZERO&&fe<=te.NUM_MULTIPLY||fe>=te.A&&fe<=te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&fe===0)return!0;switch(fe){case te.SPACE:case te.QUESTION_MARK:case te.NUM_PLUS:case te.NUM_MINUS:case te.NUM_PERIOD:case te.NUM_DIVISION:case te.SEMICOLON:case te.DASH:case te.EQUALS:case te.COMMA:case te.PERIOD:case te.SLASH:case te.APOSTROPHE:case te.SINGLE_QUOTE:case te.OPEN_SQUARE_BRACKET:case te.BACKSLASH:case te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Ut.Z=te},1337:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Se}});var E=te(1413),fe=`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`,Ie=`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(fe," ").concat(Ie).split(/[\s\n]+/),xe="aria-",Be="data-";function de(pe,De){return pe.indexOf(De)===0}function Se(pe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe;De===!1?Xe={aria:!0,data:!0,attr:!0}:De===!0?Xe={aria:!0}:Xe=(0,E.Z)({},De);var Pe={};return Object.keys(pe).forEach(function(Ue){(Xe.aria&&(Ue==="role"||de(Ue,xe))||Xe.data&&de(Ue,Be)||Xe.attr&&Te.includes(Ue))&&(Pe[Ue]=pe[Ue])}),Pe}},88386:function(In,Ut,te){(function(E){E(te(4631))})(function(E){E.defineOption("placeholder","",function(Se,pe,De){var Xe=De&&De!=E.Init;if(pe&&!Xe)Se.on("blur",xe),Se.on("change",Be),Se.on("swapDoc",Be),E.on(Se.getInputField(),"compositionupdate",Se.state.placeholderCompose=function(){Te(Se)}),Be(Se);else if(!pe&&Xe){Se.off("blur",xe),Se.off("change",Be),Se.off("swapDoc",Be),E.off(Se.getInputField(),"compositionupdate",Se.state.placeholderCompose),fe(Se);var Pe=Se.getWrapperElement();Pe.className=Pe.className.replace(" CodeMirror-empty","")}pe&&!Se.hasFocus()&&xe(Se)});function fe(Se){Se.state.placeholder&&(Se.state.placeholder.parentNode.removeChild(Se.state.placeholder),Se.state.placeholder=null)}function Ie(Se){fe(Se);var pe=Se.state.placeholder=document.createElement("pre");pe.style.cssText="height: 0; overflow: visible",pe.style.direction=Se.getOption("direction"),pe.className="CodeMirror-placeholder CodeMirror-line-like";var De=Se.getOption("placeholder");typeof De=="string"&&(De=document.createTextNode(De)),pe.appendChild(De),Se.display.lineSpace.insertBefore(pe,Se.display.lineSpace.firstChild)}function Te(Se){setTimeout(function(){var pe=!1,De=Se.getInputField();De.nodeName=="TEXTAREA"?pe=!De.value:Se.lineCount()==1&&(pe=!/[^\u200b]/.test(De.querySelector(".CodeMirror-line").textContent)),pe?Ie(Se):fe(Se)},20)}function xe(Se){de(Se)&&Ie(Se)}function Be(Se){var pe=Se.getWrapperElement(),De=de(Se);pe.className=pe.className.replace(" CodeMirror-empty","")+(De?" CodeMirror-empty":""),De?Ie(Se):fe(Se)}function de(Se){return Se.lineCount()===1&&Se.getLine(0)===""}})},82801:function(In,Ut,te){(function(E){E(te(4631))})(function(E){var fe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ie=E.Pos;E.defineOption("autoCloseBrackets",!1,function(qe,He,be){be&&be!=E.Init&&(qe.removeKeyMap(xe),qe.state.closeBrackets=null),He&&(Be(Te(He,"pairs")),qe.state.closeBrackets=He,qe.addKeyMap(xe))});function Te(qe,He){return He=="pairs"&&typeof qe=="string"?qe:typeof qe=="object"&&qe[He]!=null?qe[He]:fe[He]}var xe={Backspace:pe,Enter:De};function Be(qe){for(var He=0;He<qe.length;He++){var be=qe.charAt(He),Qe="'"+be+"'";xe[Qe]||(xe[Qe]=de(be))}}Be(fe.pairs+"`");function de(qe){return function(He){return Pe(He,qe)}}function Se(qe){var He=qe.state.closeBrackets;if(!He||He.override)return He;var be=qe.getModeAt(qe.getCursor());return be.closeBrackets||He}function pe(qe){var He=Se(qe);if(!He||qe.getOption("disableInput"))return E.Pass;for(var be=Te(He,"pairs"),Qe=qe.listSelections(),ht=0;ht<Qe.length;ht++){if(!Qe[ht].empty())return E.Pass;var Je=Ue(qe,Qe[ht].head);if(!Je||be.indexOf(Je)%2!=0)return E.Pass}for(var ht=Qe.length-1;ht>=0;ht--){var Ze=Qe[ht].head;qe.replaceRange("",Ie(Ze.line,Ze.ch-1),Ie(Ze.line,Ze.ch+1),"+delete")}}function De(qe){var He=Se(qe),be=He&&Te(He,"explode");if(!be||qe.getOption("disableInput"))return E.Pass;for(var Qe=qe.listSelections(),ht=0;ht<Qe.length;ht++){if(!Qe[ht].empty())return E.Pass;var Je=Ue(qe,Qe[ht].head);if(!Je||be.indexOf(Je)%2!=0)return E.Pass}qe.operation(function(){var Ze=qe.lineSeparator()||`
|
|
|
`;qe.replaceSelection(Ze+Ze,null),qe.execCommand("goCharLeft"),Qe=qe.listSelections();for(var ye=0;ye<Qe.length;ye++){var Ee=Qe[ye].head.line;qe.indentLine(Ee,null,!0),qe.indentLine(Ee+1,null,!0)}})}function Xe(qe){var He=E.cmpPos(qe.anchor,qe.head)>0;return{anchor:new Ie(qe.anchor.line,qe.anchor.ch+(He?-1:1)),head:new Ie(qe.head.line,qe.head.ch+(He?1:-1))}}function Pe(qe,He){var be=Se(qe);if(!be||qe.getOption("disableInput"))return E.Pass;var Qe=Te(be,"pairs"),ht=Qe.indexOf(He);if(ht==-1)return E.Pass;for(var Je=Te(be,"closeBefore"),Ze=Te(be,"triples"),ye=Qe.charAt(ht+1)==He,Ee=qe.listSelections(),Ye=ht%2==0,Ne,ot=0;ot<Ee.length;ot++){var ct=Ee[ot],_e=ct.head,Me,pt=qe.getRange(_e,Ie(_e.line,_e.ch+1));if(Ye&&!ct.empty())Me="surround";else if((ye||!Ye)&&pt==He)ye&&rt(qe,_e)?Me="both":Ze.indexOf(He)>=0&&qe.getRange(_e,Ie(_e.line,_e.ch+3))==He+He+He?Me="skipThree":Me="skip";else if(ye&&_e.ch>1&&Ze.indexOf(He)>=0&&qe.getRange(Ie(_e.line,_e.ch-2),_e)==He+He){if(_e.ch>2&&/\bstring/.test(qe.getTokenTypeAt(Ie(_e.line,_e.ch-2))))return E.Pass;Me="addFour"}else if(ye){var $e=_e.ch==0?" ":qe.getRange(Ie(_e.line,_e.ch-1),_e);if(!E.isWordChar(pt)&&$e!=He&&!E.isWordChar($e))Me="both";else return E.Pass}else if(Ye&&(pt.length===0||/\s/.test(pt)||Je.indexOf(pt)>-1))Me="both";else return E.Pass;if(!Ne)Ne=Me;else if(Ne!=Me)return E.Pass}var ft=ht%2?Qe.charAt(ht-1):He,We=ht%2?He:Qe.charAt(ht+1);qe.operation(function(){if(Ne=="skip")qe.execCommand("goCharRight");else if(Ne=="skipThree")for(var gt=0;gt<3;gt++)qe.execCommand("goCharRight");else if(Ne=="surround"){for(var kt=qe.getSelections(),gt=0;gt<kt.length;gt++)kt[gt]=ft+kt[gt]+We;qe.replaceSelections(kt,"around"),kt=qe.listSelections().slice();for(var gt=0;gt<kt.length;gt++)kt[gt]=Xe(kt[gt]);qe.setSelections(kt)}else Ne=="both"?(qe.replaceSelection(ft+We,null),qe.triggerElectric(ft+We),qe.execCommand("goCharLeft")):Ne=="addFour"&&(qe.replaceSelection(ft+ft+ft+ft,"before"),qe.execCommand("goCharRight"))})}function Ue(qe,He){var be=qe.getRange(Ie(He.line,He.ch-1),Ie(He.line,He.ch+1));return be.length==2?be:null}function rt(qe,He){var be=qe.getTokenAt(Ie(He.line,He.ch+1));return/\bstring/.test(be.type)&&be.start==He.ch&&(He.ch==0||!/\bstring/.test(qe.getTokenTypeAt(He)))}})},57341:function(In,Ut,te){(function(E){E(te(4631),te(4786))})(function(E){E.defineOption("autoCloseTags",!1,function(pe,De,Xe){if(Xe!=E.Init&&Xe&&pe.removeKeyMap("autoCloseTags"),!!De){var Pe={name:"autoCloseTags"};(typeof De!="object"||De.whenClosing!==!1)&&(Pe["'/'"]=function(Ue){return Be(Ue)}),(typeof De!="object"||De.whenOpening!==!1)&&(Pe["'>'"]=function(Ue){return Te(Ue)}),pe.addKeyMap(Pe)}});var fe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ie=["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(pe){if(pe.getOption("disableInput"))return E.Pass;for(var De=pe.listSelections(),Xe=[],Pe=pe.getOption("autoCloseTags"),Ue=0;Ue<De.length;Ue++){if(!De[Ue].empty())return E.Pass;var rt=De[Ue].head,qe=pe.getTokenAt(rt),He=E.innerMode(pe.getMode(),qe.state),be=He.state,Qe=He.mode.xmlCurrentTag&&He.mode.xmlCurrentTag(be),ht=Qe&&Qe.name;if(!ht)return E.Pass;var Je=He.mode.configuration=="html",Ze=typeof Pe=="object"&&Pe.dontCloseTags||Je&&fe,ye=typeof Pe=="object"&&Pe.indentTags||Je&&Ie;qe.end>rt.ch&&(ht=ht.slice(0,ht.length-qe.end+rt.ch));var Ee=ht.toLowerCase();if(!ht||qe.type=="string"&&(qe.end!=rt.ch||!/[\"\']/.test(qe.string.charAt(qe.string.length-1))||qe.string.length==1)||qe.type=="tag"&&Qe.close||qe.string.indexOf("/")==rt.ch-qe.start-1||Ze&&de(Ze,Ee)>-1||Se(pe,He.mode.xmlCurrentContext&&He.mode.xmlCurrentContext(be)||[],ht,rt,!0))return E.Pass;var Ye=typeof Pe=="object"&&Pe.emptyTags;if(Ye&&de(Ye,ht)>-1){Xe[Ue]={text:"/>",newPos:E.Pos(rt.line,rt.ch+2)};continue}var Ne=ye&&de(ye,Ee)>-1;Xe[Ue]={indent:Ne,text:">"+(Ne?`
|
|
|
|
|
|
`:"")+"</"+ht+">",newPos:Ne?E.Pos(rt.line+1,0):E.Pos(rt.line,rt.ch+1)}}for(var ot=typeof Pe=="object"&&Pe.dontIndentOnAutoClose,Ue=De.length-1;Ue>=0;Ue--){var ct=Xe[Ue];pe.replaceRange(ct.text,De[Ue].head,De[Ue].anchor,"+insert");var _e=pe.listSelections().slice(0);_e[Ue]={head:ct.newPos,anchor:ct.newPos},pe.setSelections(_e),!ot&&ct.indent&&(pe.indentLine(ct.newPos.line,null,!0),pe.indentLine(ct.newPos.line+1,null,!0))}}function xe(pe,De){for(var Xe=pe.listSelections(),Pe=[],Ue=De?"/":"</",rt=pe.getOption("autoCloseTags"),qe=typeof rt=="object"&&rt.dontIndentOnSlash,He=0;He<Xe.length;He++){if(!Xe[He].empty())return E.Pass;var be=Xe[He].head,Qe=pe.getTokenAt(be),ht=E.innerMode(pe.getMode(),Qe.state),Je=ht.state;if(De&&(Qe.type=="string"||Qe.string.charAt(0)!="<"||Qe.start!=be.ch-1))return E.Pass;var Ze,ye=ht.mode.name!="xml"&&pe.getMode().name=="htmlmixed";if(ye&&ht.mode.name=="javascript")Ze=Ue+"script";else if(ye&&ht.mode.name=="css")Ze=Ue+"style";else{var Ee=ht.mode.xmlCurrentContext&&ht.mode.xmlCurrentContext(Je);if(!Ee||Ee.length&&Se(pe,Ee,Ee[Ee.length-1],be))return E.Pass;Ze=Ue+Ee[Ee.length-1]}pe.getLine(be.line).charAt(Qe.end)!=">"&&(Ze+=">"),Pe[He]=Ze}if(pe.replaceSelections(Pe),Xe=pe.listSelections(),!qe)for(var He=0;He<Xe.length;He++)(He==Xe.length-1||Xe[He].head.line<Xe[He+1].head.line)&&pe.indentLine(Xe[He].head.line)}function Be(pe){return pe.getOption("disableInput")?E.Pass:xe(pe,!0)}E.commands.closeTag=function(pe){return xe(pe)};function de(pe,De){if(pe.indexOf)return pe.indexOf(De);for(var Xe=0,Pe=pe.length;Xe<Pe;++Xe)if(pe[Xe]==De)return Xe;return-1}function Se(pe,De,Xe,Pe,Ue){if(!E.scanForClosingTag)return!1;var rt=Math.min(pe.lastLine()+1,Pe.line+500),qe=E.scanForClosingTag(pe,Pe,null,rt);if(!qe||qe.tag!=Xe)return!1;for(var He=Ue?1:0,be=De.length-1;be>=0&&De[be]==Xe;be--)++He;Pe=qe.to;for(var be=1;be<He;be++){var Qe=E.scanForClosingTag(pe,Pe,null,rt);if(!Qe||Qe.tag!=Xe)return!1;Pe=Qe.to}return!0}})},4786:function(In,Ut,te){(function(E){E(te(4631))})(function(E){"use strict";var fe=E.Pos;function Ie(be,Qe){return be.line-Qe.line||be.ch-Qe.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",xe=Te+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Be=new RegExp("<(/?)(["+Te+"]["+xe+"]*)","g");function de(be,Qe,ht,Je){this.line=Qe,this.ch=ht,this.cm=be,this.text=be.getLine(Qe),this.min=Je?Math.max(Je.from,be.firstLine()):be.firstLine(),this.max=Je?Math.min(Je.to-1,be.lastLine()):be.lastLine()}function Se(be,Qe){var ht=be.cm.getTokenTypeAt(fe(be.line,Qe));return ht&&/\btag\b/.test(ht)}function pe(be){if(!(be.line>=be.max))return be.ch=0,be.text=be.cm.getLine(++be.line),!0}function De(be){if(!(be.line<=be.min))return be.text=be.cm.getLine(--be.line),be.ch=be.text.length,!0}function Xe(be){for(;;){var Qe=be.text.indexOf(">",be.ch);if(Qe==-1){if(pe(be))continue;return}if(!Se(be,Qe+1)){be.ch=Qe+1;continue}var ht=be.text.lastIndexOf("/",Qe),Je=ht>-1&&!/\S/.test(be.text.slice(ht+1,Qe));return be.ch=Qe+1,Je?"selfClose":"regular"}}function Pe(be){for(;;){var Qe=be.ch?be.text.lastIndexOf("<",be.ch-1):-1;if(Qe==-1){if(De(be))continue;return}if(!Se(be,Qe+1)){be.ch=Qe;continue}Be.lastIndex=Qe,be.ch=Qe;var ht=Be.exec(be.text);if(ht&&ht.index==Qe)return ht}}function Ue(be){for(;;){Be.lastIndex=be.ch;var Qe=Be.exec(be.text);if(!Qe){if(pe(be))continue;return}if(!Se(be,Qe.index+1)){be.ch=Qe.index+1;continue}return be.ch=Qe.index+Qe[0].length,Qe}}function rt(be){for(;;){var Qe=be.ch?be.text.lastIndexOf(">",be.ch-1):-1;if(Qe==-1){if(De(be))continue;return}if(!Se(be,Qe+1)){be.ch=Qe;continue}var ht=be.text.lastIndexOf("/",Qe),Je=ht>-1&&!/\S/.test(be.text.slice(ht+1,Qe));return be.ch=Qe+1,Je?"selfClose":"regular"}}function qe(be,Qe){for(var ht=[];;){var Je=Ue(be),Ze,ye=be.line,Ee=be.ch-(Je?Je[0].length:0);if(!Je||!(Ze=Xe(be)))return;if(Ze!="selfClose")if(Je[1]){for(var Ye=ht.length-1;Ye>=0;--Ye)if(ht[Ye]==Je[2]){ht.length=Ye;break}if(Ye<0&&(!Qe||Qe==Je[2]))return{tag:Je[2],from:fe(ye,Ee),to:fe(be.line,be.ch)}}else ht.push(Je[2])}}function He(be,Qe){for(var ht=[];;){var Je=rt(be);if(!Je)return;if(Je=="selfClose"){Pe(be);continue}var Ze=be.line,ye=be.ch,Ee=Pe(be);if(!Ee)return;if(Ee[1])ht.push(Ee[2]);else{for(var Ye=ht.length-1;Ye>=0;--Ye)if(ht[Ye]==Ee[2]){ht.length=Ye;break}if(Ye<0&&(!Qe||Qe==Ee[2]))return{tag:Ee[2],from:fe(be.line,be.ch),to:fe(Ze,ye)}}}}E.registerHelper("fold","xml",function(be,Qe){for(var ht=new de(be,Qe.line,0);;){var Je=Ue(ht);if(!Je||ht.line!=Qe.line)return;var Ze=Xe(ht);if(!Ze)return;if(!Je[1]&&Ze!="selfClose"){var ye=fe(ht.line,ht.ch),Ee=qe(ht,Je[2]);return Ee&&Ie(Ee.from,ye)>0?{from:ye,to:Ee.from}:null}}}),E.findMatchingTag=function(be,Qe,ht){var Je=new de(be,Qe.line,Qe.ch,ht);if(!(Je.text.indexOf(">")==-1&&Je.text.indexOf("<")==-1)){var Ze=Xe(Je),ye=Ze&&fe(Je.line,Je.ch),Ee=Ze&&Pe(Je);if(!(!Ze||!Ee||Ie(Je,Qe)>0)){var Ye={from:fe(Je.line,Je.ch),to:ye,tag:Ee[2]};return Ze=="selfClose"?{open:Ye,close:null,at:"open"}:Ee[1]?{open:He(Je,Ee[2]),close:Ye,at:"close"}:(Je=new de(be,ye.line,ye.ch,ht),{open:Ye,close:qe(Je,Ee[2]),at:"open"})}}},E.findEnclosingTag=function(be,Qe,ht,Je){for(var Ze=new de(be,Qe.line,Qe.ch,ht);;){var ye=He(Ze,Je);if(!ye)break;var Ee=new de(be,Qe.line,Qe.ch,ht),Ye=qe(Ee,ye.tag);if(Ye)return{open:ye,close:Ye}}},E.scanForClosingTag=function(be,Qe,ht,Je){var Ze=new de(be,Qe.line,Qe.ch,Je?{from:0,to:Je}:null);return qe(Ze,ht)}})},4631:function(In){(function(Ut,te){In.exports=te()})(this,function(){"use strict";var Ut=navigator.userAgent,te=navigator.platform,E=/gecko\/\d/i.test(Ut),fe=/MSIE \d/.test(Ut),Ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ut),Te=/Edge\/(\d+)/.exec(Ut),xe=fe||Ie||Te,Be=xe&&(fe?document.documentMode||6:+(Te||Ie)[1]),de=!Te&&/WebKit\//.test(Ut),Se=de&&/Qt\/\d+\.\d+/.test(Ut),pe=!Te&&/Chrome\//.test(Ut),De=/Opera\//.test(Ut),Xe=/Apple Computer/.test(navigator.vendor),Pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ut),Ue=/PhantomJS/.test(Ut),rt=!Te&&/AppleWebKit/.test(Ut)&&/Mobile\/\w+/.test(Ut),qe=/Android/.test(Ut),He=rt||qe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ut),be=rt||/Mac/.test(te),Qe=/\bCrOS\b/.test(Ut),ht=/win/i.test(te),Je=De&&Ut.match(/Version\/(\d*\.\d*)/);Je&&(Je=Number(Je[1])),Je&&Je>=15&&(De=!1,de=!0);var Ze=be&&(Se||De&&(Je==null||Je<12.11)),ye=E||xe&&Be>=9;function Ee(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ye=function(x,ee){var ie=x.className,re=Ee(ee).exec(ie);if(re){var oe=ie.slice(re.index+re[0].length);x.className=ie.slice(0,re.index)+(oe?re[1]+oe:"")}};function Ne(x){for(var ee=x.childNodes.length;ee>0;--ee)x.removeChild(x.firstChild);return x}function ot(x,ee){return Ne(x).appendChild(ee)}function ct(x,ee,ie,re){var oe=document.createElement(x);if(ie&&(oe.className=ie),re&&(oe.style.cssText=re),typeof ee=="string")oe.appendChild(document.createTextNode(ee));else if(ee)for(var we=0;we<ee.length;++we)oe.appendChild(ee[we]);return oe}function _e(x,ee,ie,re){var oe=ct(x,ee,ie,re);return oe.setAttribute("role","presentation"),oe}var Me;document.createRange?Me=function(x,ee,ie,re){var oe=document.createRange();return oe.setEnd(re||x,ie),oe.setStart(x,ee),oe}:Me=function(x,ee,ie){var re=document.body.createTextRange();try{re.moveToElementText(x.parentNode)}catch(oe){return re}return re.collapse(!0),re.moveEnd("character",ie),re.moveStart("character",ee),re};function pt(x,ee){if(ee.nodeType==3&&(ee=ee.parentNode),x.contains)return x.contains(ee);do if(ee.nodeType==11&&(ee=ee.host),ee==x)return!0;while(ee=ee.parentNode)}function $e(){var x;try{x=document.activeElement}catch(ee){x=document.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function ft(x,ee){var ie=x.className;Ee(ee).test(ie)||(x.className+=(ie?" ":"")+ee)}function We(x,ee){for(var ie=x.split(" "),re=0;re<ie.length;re++)ie[re]&&!Ee(ie[re]).test(ee)&&(ee+=" "+ie[re]);return ee}var gt=function(x){x.select()};rt?gt=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:xe&&(gt=function(x){try{x.select()}catch(ee){}});function kt(x){var ee=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,ee)}}function xt(x,ee,ie){ee||(ee={});for(var re in x)x.hasOwnProperty(re)&&(ie!==!1||!ee.hasOwnProperty(re))&&(ee[re]=x[re]);return ee}function et(x,ee,ie,re,oe){ee==null&&(ee=x.search(/[^\s\u00a0]/),ee==-1&&(ee=x.length));for(var we=re||0,je=oe||0;;){var lt=x.indexOf(" ",we);if(lt<0||lt>=ee)return je+(ee-we);je+=lt-we,je+=ie-je%ie,we=lt+1}}var Fe=function(){this.id=null,this.f=null,this.time=0,this.handler=kt(this.onTimeout,this)};Fe.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Fe.prototype.set=function(x,ee){this.f=ee;var ie=+new Date+x;(!this.id||ie<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ie)};function Dt(x,ee){for(var ie=0;ie<x.length;++ie)if(x[ie]==ee)return ie;return-1}var qt=50,Xt={toString:function(){return"CodeMirror.Pass"}},Et={scroll:!1},zt={origin:"*mouse"},Yt={origin:"+move"};function Vn(x,ee,ie){for(var re=0,oe=0;;){var we=x.indexOf(" ",re);we==-1&&(we=x.length);var je=we-re;if(we==x.length||oe+je>=ee)return re+Math.min(je,ee-oe);if(oe+=we-re,oe+=ie-oe%ie,re=we+1,oe>=ee)return re}}var Pn=[""];function _t(x){for(;Pn.length<=x;)Pn.push(pn(Pn)+" ");return Pn[x]}function pn(x){return x[x.length-1]}function sr(x,ee){for(var ie=[],re=0;re<x.length;re++)ie[re]=ee(x[re],re);return ie}function Tn(x,ee,ie){for(var re=0,oe=ie(ee);re<x.length&&ie(x[re])<=oe;)re++;x.splice(re,0,ee)}function Oe(){}function me(x,ee){var ie;return Object.create?ie=Object.create(x):(Oe.prototype=x,ie=new Oe),ee&&xt(ee,ie),ie}var he=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ge(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||he.test(x))}function ve(x,ee){return ee?ee.source.indexOf("\\w")>-1&&ge(x)?!0:ee.test(x):ge(x)}function se(x){for(var ee in x)if(x.hasOwnProperty(ee)&&x[ee])return!1;return!0}var Ke=/[\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 bt(x){return x.charCodeAt(0)>=768&&Ke.test(x)}function Wt(x,ee,ie){for(;(ie<0?ee>0:ee<x.length)&&bt(x.charAt(ee));)ee+=ie;return ee}function yn(x,ee,ie){for(var re=ee>ie?-1:1;;){if(ee==ie)return ee;var oe=(ee+ie)/2,we=re<0?Math.ceil(oe):Math.floor(oe);if(we==ee)return x(we)?ee:ie;x(we)?ie=we:ee=we+re}}function bn(x,ee,ie,re){if(!x)return re(ee,ie,"ltr",0);for(var oe=!1,we=0;we<x.length;++we){var je=x[we];(je.from<ie&&je.to>ee||ee==ie&&je.to==ee)&&(re(Math.max(je.from,ee),Math.min(je.to,ie),je.level==1?"rtl":"ltr",we),oe=!0)}oe||re(ee,ie,"ltr")}var cn=null;function wn(x,ee,ie){var re;cn=null;for(var oe=0;oe<x.length;++oe){var we=x[oe];if(we.from<ee&&we.to>ee)return oe;we.to==ee&&(we.from!=we.to&&ie=="before"?re=oe:cn=oe),we.from==ee&&(we.from!=we.to&&ie!="before"?re=oe:cn=oe)}return re!=null?re:cn}var Tt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ee="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(It){return It<=247?x.charAt(It):1424<=It&&It<=1524?"R":1536<=It&&It<=1785?ee.charAt(It-1536):1774<=It&&It<=2220?"r":8192<=It&&It<=8203?"w":It==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,oe=/[stwN]/,we=/[LRr]/,je=/[Lb1n]/,lt=/[1n]/;function mt(It,zn,ar){this.level=It,this.from=zn,this.to=ar}return function(It,zn){var ar=zn=="ltr"?"L":"R";if(It.length==0||zn=="ltr"&&!re.test(It))return!1;for(var ui=It.length,$r=[],aa=0;aa<ui;++aa)$r.push(ie(It.charCodeAt(aa)));for(var Oa=0,uo=ar;Oa<ui;++Oa){var Oo=$r[Oa];Oo=="m"?$r[Oa]=uo:uo=Oo}for(var $o=0,Co=ar;$o<ui;++$o){var tl=$r[$o];tl=="1"&&Co=="r"?$r[$o]="n":we.test(tl)&&(Co=tl,tl=="r"&&($r[$o]="R"))}for(var Ol=1,Tl=$r[0];Ol<ui-1;++Ol){var cs=$r[Ol];cs=="+"&&Tl=="1"&&$r[Ol+1]=="1"?$r[Ol]="1":cs==","&&Tl==$r[Ol+1]&&(Tl=="1"||Tl=="n")&&($r[Ol]=Tl),Tl=cs}for(var Vs=0;Vs<ui;++Vs){var Gu=$r[Vs];if(Gu==",")$r[Vs]="N";else if(Gu=="%"){var Eu=void 0;for(Eu=Vs+1;Eu<ui&&$r[Eu]=="%";++Eu);for(var sc=Vs&&$r[Vs-1]=="!"||Eu<ui&&$r[Eu]=="1"?"1":"N",uc=Vs;uc<Eu;++uc)$r[uc]=sc;Vs=Eu-1}}for(var Tu=0,tc=ar;Tu<ui;++Tu){var ql=$r[Tu];tc=="L"&&ql=="1"?$r[Tu]="L":we.test(ql)&&(tc=ql)}for(var Pu=0;Pu<ui;++Pu)if(oe.test($r[Pu])){var pu=void 0;for(pu=Pu+1;pu<ui&&oe.test($r[pu]);++pu);for(var Cu=(Pu?$r[Pu-1]:ar)=="L",Ou=(pu<ui?$r[pu]:ar)=="L",cd=Cu==Ou?Cu?"L":"R":ar,gc=Pu;gc<pu;++gc)$r[gc]=cd;Pu=pu-1}for(var Xu=[],Ps,le=0;le<ui;)if(je.test($r[le])){var ce=le;for(++le;le<ui&&je.test($r[le]);++le);Xu.push(new mt(0,ce,le))}else{var Ce=le,ze=Xu.length,dt=zn=="rtl"?1:0;for(++le;le<ui&&$r[le]!="L";++le);for(var ut=Ce;ut<le;)if(lt.test($r[ut])){Ce<ut&&(Xu.splice(ze,0,new mt(1,Ce,ut)),ze+=dt);var Mt=ut;for(++ut;ut<le&<.test($r[ut]);++ut);Xu.splice(ze,0,new mt(2,Mt,ut)),ze+=dt,Ce=ut}else++ut;Ce<le&&Xu.splice(ze,0,new mt(1,Ce,le))}return zn=="ltr"&&(Xu[0].level==1&&(Ps=It.match(/^\s+/))&&(Xu[0].from=Ps[0].length,Xu.unshift(new mt(0,0,Ps[0].length))),pn(Xu).level==1&&(Ps=It.match(/\s+$/))&&(pn(Xu).to-=Ps[0].length,Xu.push(new mt(0,ui-Ps[0].length,ui)))),zn=="rtl"?Xu.reverse():Xu}}();function nn(x,ee){var ie=x.order;return ie==null&&(ie=x.order=Tt(x.text,ee)),ie}var fn=[],sn=function(x,ee,ie){if(x.addEventListener)x.addEventListener(ee,ie,!1);else if(x.attachEvent)x.attachEvent("on"+ee,ie);else{var re=x._handlers||(x._handlers={});re[ee]=(re[ee]||fn).concat(ie)}};function an(x,ee){return x._handlers&&x._handlers[ee]||fn}function xr(x,ee,ie){if(x.removeEventListener)x.removeEventListener(ee,ie,!1);else if(x.detachEvent)x.detachEvent("on"+ee,ie);else{var re=x._handlers,oe=re&&re[ee];if(oe){var we=Dt(oe,ie);we>-1&&(re[ee]=oe.slice(0,we).concat(oe.slice(we+1)))}}}function Lt(x,ee){var ie=an(x,ee);if(ie.length)for(var re=Array.prototype.slice.call(arguments,2),oe=0;oe<ie.length;++oe)ie[oe].apply(null,re)}function Vt(x,ee,ie){return typeof ee=="string"&&(ee={type:ee,preventDefault:function(){this.defaultPrevented=!0}}),Lt(x,ie||ee.type,x,ee),ai(ee)||ee.codemirrorIgnore}function cr(x){var ee=x._handlers&&x._handlers.cursorActivity;if(ee)for(var ie=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),re=0;re<ee.length;++re)Dt(ie,ee[re])==-1&&ie.push(ee[re])}function En(x,ee){return an(x,ee).length>0}function en(x){x.prototype.on=function(ee,ie){sn(this,ee,ie)},x.prototype.off=function(ee,ie){xr(this,ee,ie)}}function Fr(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Ur(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function ai(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function ei(x){Fr(x),Ur(x)}function Mi(x){return x.target||x.srcElement}function ci(x){var ee=x.which;return ee==null&&(x.button&1?ee=1:x.button&2?ee=3:x.button&4&&(ee=2)),be&&x.ctrlKey&&ee==1&&(ee=3),ee}var Qn=function(){if(xe&&Be<9)return!1;var x=ct("div");return"draggable"in x||"dragDrop"in x}(),Or;function Hr(x){if(Or==null){var ee=ct("span","\u200B");ot(x,ct("span",[ee,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Or=ee.offsetWidth<=1&&ee.offsetHeight>2&&!(xe&&Be<8))}var ie=Or?ct("span","\u200B"):ct("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var vi;function Zi(x){if(vi!=null)return vi;var ee=ot(x,document.createTextNode("A\u062EA")),ie=Me(ee,0,1).getBoundingClientRect(),re=Me(ee,1,2).getBoundingClientRect();return Ne(x),!ie||ie.left==ie.right?!1:vi=re.right-ie.right<3}var $t=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var ee=0,ie=[],re=x.length;ee<=re;){var oe=x.indexOf(`
|
|
|
`,ee);oe==-1&&(oe=x.length);var we=x.slice(ee,x.charAt(oe-1)=="\r"?oe-1:oe),je=we.indexOf("\r");je!=-1?(ie.push(we.slice(0,je)),ee+=je+1):(ie.push(we),ee=oe+1)}return ie}:function(x){return x.split(/\r\n?|\n/)},$n=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(ee){return!1}}:function(x){var ee;try{ee=x.ownerDocument.selection.createRange()}catch(ie){}return!ee||ee.parentElement()!=x?!1:ee.compareEndPoints("StartToEnd",ee)!=0},mn=function(){var x=ct("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),Yn=null;function Dr(x){if(Yn!=null)return Yn;var ee=ot(x,ct("span","x")),ie=ee.getBoundingClientRect(),re=Me(ee,0,1).getBoundingClientRect();return Yn=Math.abs(ie.left-re.left)>1}var hi={},oi={};function Vr(x,ee){arguments.length>2&&(ee.dependencies=Array.prototype.slice.call(arguments,2)),hi[x]=ee}function Ct(x,ee){oi[x]=ee}function hn(x){if(typeof x=="string"&&oi.hasOwnProperty(x))x=oi[x];else if(x&&typeof x.name=="string"&&oi.hasOwnProperty(x.name)){var ee=oi[x.name];typeof ee=="string"&&(ee={name:ee}),x=me(ee,x),x.name=ee.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return hn("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return hn("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function An(x,ee){ee=hn(ee);var ie=hi[ee.name];if(!ie)return An(x,"text/plain");var re=ie(x,ee);if(jn.hasOwnProperty(ee.name)){var oe=jn[ee.name];for(var we in oe)oe.hasOwnProperty(we)&&(re.hasOwnProperty(we)&&(re["_"+we]=re[we]),re[we]=oe[we])}if(re.name=ee.name,ee.helperType&&(re.helperType=ee.helperType),ee.modeProps)for(var je in ee.modeProps)re[je]=ee.modeProps[je];return re}var jn={};function Bt(x,ee){var ie=jn.hasOwnProperty(x)?jn[x]:jn[x]={};xt(ee,ie)}function on(x,ee){if(ee===!0)return ee;if(x.copyState)return x.copyState(ee);var ie={};for(var re in ee){var oe=ee[re];oe instanceof Array&&(oe=oe.concat([])),ie[re]=oe}return ie}function Kn(x,ee){for(var ie;x.innerMode&&(ie=x.innerMode(ee),!(!ie||ie.mode==x));)ee=ie.state,x=ie.mode;return ie||{mode:x,state:ee}}function Dn(x,ee,ie){return x.startState?x.startState(ee,ie):!0}var rr=function(x,ee,ie){this.pos=this.start=0,this.string=x,this.tabSize=ee||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ie};rr.prototype.eol=function(){return this.pos>=this.string.length},rr.prototype.sol=function(){return this.pos==this.lineStart},rr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},rr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},rr.prototype.eat=function(x){var ee=this.string.charAt(this.pos),ie;if(typeof x=="string"?ie=ee==x:ie=ee&&(x.test?x.test(ee):x(ee)),ie)return++this.pos,ee},rr.prototype.eatWhile=function(x){for(var ee=this.pos;this.eat(x););return this.pos>ee},rr.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},rr.prototype.skipToEnd=function(){this.pos=this.string.length},rr.prototype.skipTo=function(x){var ee=this.string.indexOf(x,this.pos);if(ee>-1)return this.pos=ee,!0},rr.prototype.backUp=function(x){this.pos-=x},rr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=et(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?et(this.string,this.lineStart,this.tabSize):0)},rr.prototype.indentation=function(){return et(this.string,null,this.tabSize)-(this.lineStart?et(this.string,this.lineStart,this.tabSize):0)},rr.prototype.match=function(x,ee,ie){if(typeof x=="string"){var re=function(je){return ie?je.toLowerCase():je},oe=this.string.substr(this.pos,x.length);if(re(oe)==re(x))return ee!==!1&&(this.pos+=x.length),!0}else{var we=this.string.slice(this.pos).match(x);return we&&we.index>0?null:(we&&ee!==!1&&(this.pos+=we[0].length),we)}},rr.prototype.current=function(){return this.string.slice(this.start,this.pos)},rr.prototype.hideFirstChars=function(x,ee){this.lineStart+=x;try{return ee()}finally{this.lineStart-=x}},rr.prototype.lookAhead=function(x){var ee=this.lineOracle;return ee&&ee.lookAhead(x)},rr.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function er(x,ee){if(ee-=x.first,ee<0||ee>=x.size)throw new Error("There is no line "+(ee+x.first)+" in the document.");for(var ie=x;!ie.lines;)for(var re=0;;++re){var oe=ie.children[re],we=oe.chunkSize();if(ee<we){ie=oe;break}ee-=we}return ie.lines[ee]}function Gr(x,ee,ie){var re=[],oe=ee.line;return x.iter(ee.line,ie.line+1,function(we){var je=we.text;oe==ie.line&&(je=je.slice(0,ie.ch)),oe==ee.line&&(je=je.slice(ee.ch)),re.push(je),++oe}),re}function ra(x,ee,ie){var re=[];return x.iter(ee,ie,function(oe){re.push(oe.text)}),re}function Oi(x,ee){var ie=ee-x.height;if(ie)for(var re=x;re;re=re.parent)re.height+=ie}function bi(x){if(x.parent==null)return null;for(var ee=x.parent,ie=Dt(ee.lines,x),re=ee.parent;re;ee=re,re=re.parent)for(var oe=0;re.children[oe]!=ee;++oe)ie+=re.children[oe].chunkSize();return ie+ee.first}function Ji(x,ee){var ie=x.first;e:do{for(var re=0;re<x.children.length;++re){var oe=x.children[re],we=oe.height;if(ee<we){x=oe;continue e}ee-=we,ie+=oe.chunkSize()}return ie}while(!x.lines);for(var je=0;je<x.lines.length;++je){var lt=x.lines[je],mt=lt.height;if(ee<mt)break;ee-=mt}return ie+je}function Ti(x,ee){return ee>=x.first&&ee<x.first+x.size}function ua(x,ee){return String(x.lineNumberFormatter(ee+x.firstLineNumber))}function br(x,ee,ie){if(ie===void 0&&(ie=null),!(this instanceof br))return new br(x,ee,ie);this.line=x,this.ch=ee,this.sticky=ie}function Di(x,ee){return x.line-ee.line||x.ch-ee.ch}function ni(x,ee){return x.sticky==ee.sticky&&Di(x,ee)==0}function No(x){return br(x.line,x.ch)}function xa(x,ee){return Di(x,ee)<0?ee:x}function za(x,ee){return Di(x,ee)<0?x:ee}function Lo(x,ee){return Math.max(x.first,Math.min(ee,x.first+x.size-1))}function Ea(x,ee){if(ee.line<x.first)return br(x.first,0);var ie=x.first+x.size-1;return ee.line>ie?br(ie,er(x,ie).text.length):zo(ee,er(x,ee.line).text.length)}function zo(x,ee){var ie=x.ch;return ie==null||ie>ee?br(x.line,ee):ie<0?br(x.line,0):x}function gi(x,ee){for(var ie=[],re=0;re<ee.length;re++)ie[re]=Ea(x,ee[re]);return ie}var Cl=function(x,ee){this.state=x,this.lookAhead=ee},pl=function(x,ee,ie,re){this.state=ee,this.doc=x,this.line=ie,this.maxLookAhead=re||0,this.baseTokens=null,this.baseTokenPos=1};pl.prototype.lookAhead=function(x){var ee=this.doc.getLine(this.line+x);return ee!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),ee},pl.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var ee=this.baseTokens[this.baseTokenPos+1];return{type:ee&&ee.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},pl.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pl.fromSaved=function(x,ee,ie){return ee instanceof Cl?new pl(x,on(x.mode,ee.state),ie,ee.lookAhead):new pl(x,on(x.mode,ee),ie)},pl.prototype.save=function(x){var ee=x!==!1?on(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Cl(ee,this.maxLookAhead):ee};function jl(x,ee,ie,re){var oe=[x.state.modeGen],we={};wl(x,ee.text,x.doc.mode,ie,function(It,zn){return oe.push(It,zn)},we,re);for(var je=ie.state,lt=function(It){ie.baseTokens=oe;var zn=x.state.overlays[It],ar=1,ui=0;ie.state=!0,wl(x,ee.text,zn.mode,ie,function($r,aa){for(var Oa=ar;ui<$r;){var uo=oe[ar];uo>$r&&oe.splice(ar,1,$r,oe[ar+1],uo),ar+=2,ui=Math.min($r,uo)}if(aa)if(zn.opaque)oe.splice(Oa,ar-Oa,$r,"overlay "+aa),ar=Oa+2;else for(;Oa<ar;Oa+=2){var Oo=oe[Oa+1];oe[Oa+1]=(Oo?Oo+" ":"")+"overlay "+aa}},we),ie.state=je,ie.baseTokens=null,ie.baseTokenPos=1},mt=0;mt<x.state.overlays.length;++mt)lt(mt);return{styles:oe,classes:we.bgClass||we.textClass?we:null}}function Ko(x,ee,ie){if(!ee.styles||ee.styles[0]!=x.state.modeGen){var re=Do(x,bi(ee)),oe=ee.text.length>x.options.maxHighlightLength&&on(x.doc.mode,re.state),we=jl(x,ee,re);oe&&(re.state=oe),ee.stateAfter=re.save(!oe),ee.styles=we.styles,we.classes?ee.styleClasses=we.classes:ee.styleClasses&&(ee.styleClasses=null),ie===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return ee.styles}function Do(x,ee,ie){var re=x.doc,oe=x.display;if(!re.mode.startState)return new pl(re,!0,ee);var we=Vl(x,ee,ie),je=we>re.first&&er(re,we-1).stateAfter,lt=je?pl.fromSaved(re,je,we):new pl(re,Dn(re.mode),we);return re.iter(we,ee,function(mt){Na(x,mt.text,lt);var It=lt.line;mt.stateAfter=It==ee-1||It%5==0||It>=oe.viewFrom&&It<oe.viewTo?lt.save():null,lt.nextLine()}),ie&&(re.modeFrontier=lt.line),lt}function Na(x,ee,ie,re){var oe=x.doc.mode,we=new rr(ee,x.options.tabSize,ie);for(we.start=we.pos=re||0,ee==""&&ml(oe,ie.state);!we.eol();)nl(oe,we,ie.state),we.start=we.pos}function ml(x,ee){if(x.blankLine)return x.blankLine(ee);if(x.innerMode){var ie=Kn(x,ee);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}}function nl(x,ee,ie,re){for(var oe=0;oe<10;oe++){re&&(re[0]=Kn(x,ie).mode);var we=x.token(ee,ie);if(ee.pos>ee.start)return we}throw new Error("Mode "+x.name+" failed to advance stream.")}var Sl=function(x,ee,ie){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=ee||null,this.state=ie};function Rl(x,ee,ie,re){var oe=x.doc,we=oe.mode,je;ee=Ea(oe,ee);var lt=er(oe,ee.line),mt=Do(x,ee.line,ie),It=new rr(lt.text,x.options.tabSize,mt),zn;for(re&&(zn=[]);(re||It.pos<ee.ch)&&!It.eol();)It.start=It.pos,je=nl(we,It,mt.state),re&&zn.push(new Sl(It,je,on(oe.mode,mt.state)));return re?zn:new Sl(It,je,mt.state)}function Ll(x,ee){if(x)for(;;){var ie=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ie)break;x=x.slice(0,ie.index)+x.slice(ie.index+ie[0].length);var re=ie[1]?"bgClass":"textClass";ee[re]==null?ee[re]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(ee[re])||(ee[re]+=" "+ie[2])}return x}function wl(x,ee,ie,re,oe,we,je){var lt=ie.flattenSpans;lt==null&&(lt=x.options.flattenSpans);var mt=0,It=null,zn=new rr(ee,x.options.tabSize,re),ar,ui=x.options.addModeClass&&[null];for(ee==""&&Ll(ml(ie,re.state),we);!zn.eol();){if(zn.pos>x.options.maxHighlightLength?(lt=!1,je&&Na(x,ee,re,zn.pos),zn.pos=ee.length,ar=null):ar=Ll(nl(ie,zn,re.state,ui),we),ui){var $r=ui[0].name;$r&&(ar="m-"+(ar?$r+" "+ar:$r))}if(!lt||It!=ar){for(;mt<zn.start;)mt=Math.min(zn.start,mt+5e3),oe(mt,It);It=ar}zn.start=zn.pos}for(;mt<zn.pos;){var aa=Math.min(zn.pos,mt+5e3);oe(aa,It),mt=aa}}function Vl(x,ee,ie){for(var re,oe,we=x.doc,je=ie?-1:ee-(x.doc.mode.innerMode?1e3:100),lt=ee;lt>je;--lt){if(lt<=we.first)return we.first;var mt=er(we,lt-1),It=mt.stateAfter;if(It&&(!ie||lt+(It instanceof Cl?It.lookAhead:0)<=we.modeFrontier))return lt;var zn=et(mt.text,null,x.options.tabSize);(oe==null||re>zn)&&(oe=lt-1,re=zn)}return oe}function _l(x,ee){if(x.modeFrontier=Math.min(x.modeFrontier,ee),!(x.highlightFrontier<ee-10)){for(var ie=x.first,re=ee-1;re>ie;re--){var oe=er(x,re).stateAfter;if(oe&&(!(oe instanceof Cl)||re+oe.lookAhead<ee)){ie=re+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ie)}}var Fl=!1,Vo=!1;function Wn(){Fl=!0}function Nn(){Vo=!0}function Ir(x,ee,ie){this.marker=x,this.from=ee,this.to=ie}function Cr(x,ee){if(x)for(var ie=0;ie<x.length;++ie){var re=x[ie];if(re.marker==ee)return re}}function Ii(x,ee){for(var ie,re=0;re<x.length;++re)x[re]!=ee&&(ie||(ie=[])).push(x[re]);return ie}function Ma(x,ee){x.markedSpans=x.markedSpans?x.markedSpans.concat([ee]):[ee],ee.marker.attachLine(x)}function Ka(x,ee,ie){var re;if(x)for(var oe=0;oe<x.length;++oe){var we=x[oe],je=we.marker,lt=we.from==null||(je.inclusiveLeft?we.from<=ee:we.from<ee);if(lt||we.from==ee&&je.type=="bookmark"&&(!ie||!we.marker.insertLeft)){var mt=we.to==null||(je.inclusiveRight?we.to>=ee:we.to>ee);(re||(re=[])).push(new Ir(je,we.from,mt?null:we.to))}}return re}function Ya(x,ee,ie){var re;if(x)for(var oe=0;oe<x.length;++oe){var we=x[oe],je=we.marker,lt=we.to==null||(je.inclusiveRight?we.to>=ee:we.to>ee);if(lt||we.from==ee&&je.type=="bookmark"&&(!ie||we.marker.insertLeft)){var mt=we.from==null||(je.inclusiveLeft?we.from<=ee:we.from<ee);(re||(re=[])).push(new Ir(je,mt?null:we.from-ee,we.to==null?null:we.to-ee))}}return re}function $a(x,ee){if(ee.full)return null;var ie=Ti(x,ee.from.line)&&er(x,ee.from.line).markedSpans,re=Ti(x,ee.to.line)&&er(x,ee.to.line).markedSpans;if(!ie&&!re)return null;var oe=ee.from.ch,we=ee.to.ch,je=Di(ee.from,ee.to)==0,lt=Ka(ie,oe,je),mt=Ya(re,we,je),It=ee.text.length==1,zn=pn(ee.text).length+(It?oe:0);if(lt)for(var ar=0;ar<lt.length;++ar){var ui=lt[ar];if(ui.to==null){var $r=Cr(mt,ui.marker);$r?It&&(ui.to=$r.to==null?null:$r.to+zn):ui.to=oe}}if(mt)for(var aa=0;aa<mt.length;++aa){var Oa=mt[aa];if(Oa.to!=null&&(Oa.to+=zn),Oa.from==null){var uo=Cr(lt,Oa.marker);uo||(Oa.from=zn,It&&(lt||(lt=[])).push(Oa))}else Oa.from+=zn,It&&(lt||(lt=[])).push(Oa)}lt&&(lt=Za(lt)),mt&&mt!=lt&&(mt=Za(mt));var Oo=[lt];if(!It){var $o=ee.text.length-2,Co;if($o>0&<)for(var tl=0;tl<lt.length;++tl)lt[tl].to==null&&(Co||(Co=[])).push(new Ir(lt[tl].marker,null,null));for(var Ol=0;Ol<$o;++Ol)Oo.push(Co);Oo.push(mt)}return Oo}function Za(x){for(var ee=0;ee<x.length;++ee){var ie=x[ee];ie.from!=null&&ie.from==ie.to&&ie.marker.clearWhenEmpty!==!1&&x.splice(ee--,1)}return x.length?x:null}function Go(x,ee,ie){var re=null;if(x.iter(ee.line,ie.line+1,function($r){if($r.markedSpans)for(var aa=0;aa<$r.markedSpans.length;++aa){var Oa=$r.markedSpans[aa].marker;Oa.readOnly&&(!re||Dt(re,Oa)==-1)&&(re||(re=[])).push(Oa)}}),!re)return null;for(var oe=[{from:ee,to:ie}],we=0;we<re.length;++we)for(var je=re[we],lt=je.find(0),mt=0;mt<oe.length;++mt){var It=oe[mt];if(!(Di(It.to,lt.from)<0||Di(It.from,lt.to)>0)){var zn=[mt,1],ar=Di(It.from,lt.from),ui=Di(It.to,lt.to);(ar<0||!je.inclusiveLeft&&!ar)&&zn.push({from:It.from,to:lt.from}),(ui>0||!je.inclusiveRight&&!ui)&&zn.push({from:lt.to,to:It.to}),oe.splice.apply(oe,zn),mt+=zn.length-3}}return oe}function Ho(x){var ee=x.markedSpans;if(ee){for(var ie=0;ie<ee.length;++ie)ee[ie].marker.detachLine(x);x.markedSpans=null}}function Qo(x,ee){if(ee){for(var ie=0;ie<ee.length;++ie)ee[ie].marker.attachLine(x);x.markedSpans=ee}}function vr(x){return x.inclusiveLeft?-1:0}function Sr(x){return x.inclusiveRight?1:0}function Tr(x,ee){var ie=x.lines.length-ee.lines.length;if(ie!=0)return ie;var re=x.find(),oe=ee.find(),we=Di(re.from,oe.from)||vr(x)-vr(ee);if(we)return-we;var je=Di(re.to,oe.to)||Sr(x)-Sr(ee);return je||ee.id-x.id}function Ae(x,ee){var ie=Vo&&x.markedSpans,re;if(ie)for(var oe=void 0,we=0;we<ie.length;++we)oe=ie[we],oe.marker.collapsed&&(ee?oe.from:oe.to)==null&&(!re||Tr(re,oe.marker)<0)&&(re=oe.marker);return re}function it(x){return Ae(x,!0)}function st(x){return Ae(x,!1)}function yt(x,ee){var ie=Vo&&x.markedSpans,re;if(ie)for(var oe=0;oe<ie.length;++oe){var we=ie[oe];we.marker.collapsed&&(we.from==null||we.from<ee)&&(we.to==null||we.to>ee)&&(!re||Tr(re,we.marker)<0)&&(re=we.marker)}return re}function wt(x,ee,ie,re,oe){var we=er(x,ee),je=Vo&&we.markedSpans;if(je)for(var lt=0;lt<je.length;++lt){var mt=je[lt];if(mt.marker.collapsed){var It=mt.marker.find(0),zn=Di(It.from,ie)||vr(mt.marker)-vr(oe),ar=Di(It.to,re)||Sr(mt.marker)-Sr(oe);if(!(zn>=0&&ar<=0||zn<=0&&ar>=0)&&(zn<=0&&(mt.marker.inclusiveRight&&oe.inclusiveLeft?Di(It.to,ie)>=0:Di(It.to,ie)>0)||zn>=0&&(mt.marker.inclusiveRight&&oe.inclusiveLeft?Di(It.from,re)<=0:Di(It.from,re)<0)))return!0}}}function Ft(x){for(var ee;ee=it(x);)x=ee.find(-1,!0).line;return x}function Nt(x){for(var ee;ee=st(x);)x=ee.find(1,!0).line;return x}function gn(x){for(var ee,ie;ee=st(x);)x=ee.find(1,!0).line,(ie||(ie=[])).push(x);return ie}function Rn(x,ee){var ie=er(x,ee),re=Ft(ie);return ie==re?ee:bi(re)}function Nr(x,ee){if(ee>x.lastLine())return ee;var ie=er(x,ee),re;if(!Wr(x,ie))return ee;for(;re=st(ie);)ie=re.find(1,!0).line;return bi(ie)+1}function Wr(x,ee){var ie=Vo&&ee.markedSpans;if(ie){for(var re=void 0,oe=0;oe<ie.length;++oe)if(re=ie[oe],!!re.marker.collapsed){if(re.from==null)return!0;if(!re.marker.widgetNode&&re.from==0&&re.marker.inclusiveLeft&&Rr(x,ee,re))return!0}}}function Rr(x,ee,ie){if(ie.to==null){var re=ie.marker.find(1,!0);return Rr(x,re.line,Cr(re.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==ee.text.length)return!0;for(var oe=void 0,we=0;we<ee.markedSpans.length;++we)if(oe=ee.markedSpans[we],oe.marker.collapsed&&!oe.marker.widgetNode&&oe.from==ie.to&&(oe.to==null||oe.to!=ie.from)&&(oe.marker.inclusiveLeft||ie.marker.inclusiveRight)&&Rr(x,ee,oe))return!0}function Un(x){x=Ft(x);for(var ee=0,ie=x.parent,re=0;re<ie.lines.length;++re){var oe=ie.lines[re];if(oe==x)break;ee+=oe.height}for(var we=ie.parent;we;ie=we,we=ie.parent)for(var je=0;je<we.children.length;++je){var lt=we.children[je];if(lt==ie)break;ee+=lt.height}return ee}function pr(x){if(x.height==0)return 0;for(var ee=x.text.length,ie,re=x;ie=it(re);){var oe=ie.find(0,!0);re=oe.from.line,ee+=oe.from.ch-oe.to.ch}for(re=x;ie=st(re);){var we=ie.find(0,!0);ee-=re.text.length-we.from.ch,re=we.to.line,ee+=re.text.length-we.to.ch}return ee}function Jn(x){var ee=x.display,ie=x.doc;ee.maxLine=er(ie,ie.first),ee.maxLineLength=pr(ee.maxLine),ee.maxLineChanged=!0,ie.iter(function(re){var oe=pr(re);oe>ee.maxLineLength&&(ee.maxLineLength=oe,ee.maxLine=re)})}var _r=function(x,ee,ie){this.text=x,Qo(this,ee),this.height=ie?ie(this):1};_r.prototype.lineNo=function(){return bi(this)},en(_r);function yi(x,ee,ie,re){x.text=ee,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Ho(x),Qo(x,ie);var oe=re?re(x):1;oe!=x.height&&Oi(x,oe)}function Yr(x){x.parent=null,Ho(x)}var Xr={},ti={};function fi(x,ee){if(!x||/^\s*$/.test(x))return null;var ie=ee.addModeClass?ti:Xr;return ie[x]||(ie[x]=x.replace(/\S+/g,"cm-$&"))}function Ci(x,ee){var ie=_e("span",null,null,de?"padding-right: .1px":null),re={pre:_e("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};ee.measure={};for(var oe=0;oe<=(ee.rest?ee.rest.length:0);oe++){var we=oe?ee.rest[oe-1]:ee.line,je=void 0;re.pos=0,re.addToken=vt,Zi(x.display.measure)&&(je=nn(we,x.doc.direction))&&(re.addToken=Cn(re.addToken,je)),re.map=[];var lt=ee!=x.display.externalMeasured&&bi(we);Zr(we,re,Ko(x,we,lt)),we.styleClasses&&(we.styleClasses.bgClass&&(re.bgClass=We(we.styleClasses.bgClass,re.bgClass||"")),we.styleClasses.textClass&&(re.textClass=We(we.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(Hr(x.display.measure))),oe==0?(ee.measure.map=re.map,ee.measure.cache={}):((ee.measure.maps||(ee.measure.maps=[])).push(re.map),(ee.measure.caches||(ee.measure.caches=[])).push({}))}if(de){var mt=re.content.lastChild;(/\bcm-tab\b/.test(mt.className)||mt.querySelector&&mt.querySelector(".cm-tab"))&&(re.content.className="cm-tab-wrap-hack")}return Lt(x,"renderLine",x,ee.line,re.pre),re.pre.className&&(re.textClass=We(re.pre.className,re.textClass||"")),re}function At(x){var ee=ct("span","\u2022","cm-invalidchar");return ee.title="\\u"+x.charCodeAt(0).toString(16),ee.setAttribute("aria-label",ee.title),ee}function vt(x,ee,ie,re,oe,we,je){if(ee){var lt=x.splitSpaces?On(ee,x.trailingSpace):ee,mt=x.cm.state.specialChars,It=!1,zn;if(!mt.test(ee))x.col+=ee.length,zn=document.createTextNode(lt),x.map.push(x.pos,x.pos+ee.length,zn),xe&&Be<9&&(It=!0),x.pos+=ee.length;else{zn=document.createDocumentFragment();for(var ar=0;;){mt.lastIndex=ar;var ui=mt.exec(ee),$r=ui?ui.index-ar:ee.length-ar;if($r){var aa=document.createTextNode(lt.slice(ar,ar+$r));xe&&Be<9?zn.appendChild(ct("span",[aa])):zn.appendChild(aa),x.map.push(x.pos,x.pos+$r,aa),x.col+=$r,x.pos+=$r}if(!ui)break;ar+=$r+1;var Oa=void 0;if(ui[0]==" "){var uo=x.cm.options.tabSize,Oo=uo-x.col%uo;Oa=zn.appendChild(ct("span",_t(Oo),"cm-tab")),Oa.setAttribute("role","presentation"),Oa.setAttribute("cm-text"," "),x.col+=Oo}else ui[0]=="\r"||ui[0]==`
|
|
|
`?(Oa=zn.appendChild(ct("span",ui[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Oa.setAttribute("cm-text",ui[0]),x.col+=1):(Oa=x.cm.options.specialCharPlaceholder(ui[0]),Oa.setAttribute("cm-text",ui[0]),xe&&Be<9?zn.appendChild(ct("span",[Oa])):zn.appendChild(Oa),x.col+=1);x.map.push(x.pos,x.pos+1,Oa),x.pos++}}if(x.trailingSpace=lt.charCodeAt(ee.length-1)==32,ie||re||oe||It||we||je){var $o=ie||"";re&&($o+=re),oe&&($o+=oe);var Co=ct("span",[zn],$o,we);if(je)for(var tl in je)je.hasOwnProperty(tl)&&tl!="style"&&tl!="class"&&Co.setAttribute(tl,je[tl]);return x.content.appendChild(Co)}x.content.appendChild(zn)}}function On(x,ee){if(x.length>1&&!/ /.test(x))return x;for(var ie=ee,re="",oe=0;oe<x.length;oe++){var we=x.charAt(oe);we==" "&&ie&&(oe==x.length-1||x.charCodeAt(oe+1)==32)&&(we="\xA0"),re+=we,ie=we==" "}return re}function Cn(x,ee){return function(ie,re,oe,we,je,lt,mt){oe=oe?oe+" cm-force-border":"cm-force-border";for(var It=ie.pos,zn=It+re.length;;){for(var ar=void 0,ui=0;ui<ee.length&&(ar=ee[ui],!(ar.to>It&&ar.from<=It));ui++);if(ar.to>=zn)return x(ie,re,oe,we,je,lt,mt);x(ie,re.slice(0,ar.to-It),oe,we,null,lt,mt),we=null,re=re.slice(ar.to-It),It=ar.to}}}function mr(x,ee,ie,re){var oe=!re&&ie.widgetNode;oe&&x.map.push(x.pos,x.pos+ee,oe),!re&&x.cm.display.input.needsContentAttribute&&(oe||(oe=x.content.appendChild(document.createElement("span"))),oe.setAttribute("cm-marker",ie.id)),oe&&(x.cm.display.input.setUneditable(oe),x.content.appendChild(oe)),x.pos+=ee,x.trailingSpace=!1}function Zr(x,ee,ie){var re=x.markedSpans,oe=x.text,we=0;if(!re){for(var je=1;je<ie.length;je+=2)ee.addToken(ee,oe.slice(we,we=ie[je]),fi(ie[je+1],ee.cm.options));return}for(var lt=oe.length,mt=0,It=1,zn="",ar,ui,$r=0,aa,Oa,uo,Oo,$o;;){if($r==mt){aa=Oa=uo=ui="",$o=null,Oo=null,$r=1/0;for(var Co=[],tl=void 0,Ol=0;Ol<re.length;++Ol){var Tl=re[Ol],cs=Tl.marker;if(cs.type=="bookmark"&&Tl.from==mt&&cs.widgetNode)Co.push(cs);else if(Tl.from<=mt&&(Tl.to==null||Tl.to>mt||cs.collapsed&&Tl.to==mt&&Tl.from==mt)){if(Tl.to!=null&&Tl.to!=mt&&$r>Tl.to&&($r=Tl.to,Oa=""),cs.className&&(aa+=" "+cs.className),cs.css&&(ui=(ui?ui+";":"")+cs.css),cs.startStyle&&Tl.from==mt&&(uo+=" "+cs.startStyle),cs.endStyle&&Tl.to==$r&&(tl||(tl=[])).push(cs.endStyle,Tl.to),cs.title&&(($o||($o={})).title=cs.title),cs.attributes)for(var Vs in cs.attributes)($o||($o={}))[Vs]=cs.attributes[Vs];cs.collapsed&&(!Oo||Tr(Oo.marker,cs)<0)&&(Oo=Tl)}else Tl.from>mt&&$r>Tl.from&&($r=Tl.from)}if(tl)for(var Gu=0;Gu<tl.length;Gu+=2)tl[Gu+1]==$r&&(Oa+=" "+tl[Gu]);if(!Oo||Oo.from==mt)for(var Eu=0;Eu<Co.length;++Eu)mr(ee,0,Co[Eu]);if(Oo&&(Oo.from||0)==mt){if(mr(ee,(Oo.to==null?lt+1:Oo.to)-mt,Oo.marker,Oo.from==null),Oo.to==null)return;Oo.to==mt&&(Oo=!1)}}if(mt>=lt)break;for(var sc=Math.min(lt,$r);;){if(zn){var uc=mt+zn.length;if(!Oo){var Tu=uc>sc?zn.slice(0,sc-mt):zn;ee.addToken(ee,Tu,ar?ar+aa:aa,uo,mt+Tu.length==$r?Oa:"",ui,$o)}if(uc>=sc){zn=zn.slice(sc-mt),mt=sc;break}mt=uc,uo=""}zn=oe.slice(we,we=ie[It++]),ar=fi(ie[It++],ee.cm.options)}}}function Zt(x,ee,ie){this.line=ee,this.rest=gn(ee),this.size=this.rest?bi(pn(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=Wr(x,ee)}function Ht(x,ee,ie){for(var re=[],oe,we=ee;we<ie;we=oe){var je=new Zt(x.doc,er(x.doc,we),we);oe=we+je.size,re.push(je)}return re}var tn=null;function xn(x){tn?tn.ops.push(x):x.ownsGroup=tn={ops:[x],delayedCallbacks:[]}}function fr(x){var ee=x.delayedCallbacks,ie=0;do{for(;ie<ee.length;ie++)ee[ie].call(null);for(var re=0;re<x.ops.length;re++){var oe=x.ops[re];if(oe.cursorActivityHandlers)for(;oe.cursorActivityCalled<oe.cursorActivityHandlers.length;)oe.cursorActivityHandlers[oe.cursorActivityCalled++].call(null,oe.cm)}}while(ie<ee.length)}function wr(x,ee){var ie=x.ownsGroup;if(ie)try{fr(ie)}finally{tn=null,ee(ie)}}var lr=null;function kr(x,ee){var ie=an(x,ee);if(ie.length){var re=Array.prototype.slice.call(arguments,2),oe;tn?oe=tn.delayedCallbacks:lr?oe=lr:(oe=lr=[],setTimeout(di,0));for(var we=function(lt){oe.push(function(){return ie[lt].apply(null,re)})},je=0;je<ie.length;++je)we(je)}}function di(){var x=lr;lr=null;for(var ee=0;ee<x.length;++ee)x[ee]()}function Ni(x,ee,ie,re){for(var oe=0;oe<ee.changes.length;oe++){var we=ee.changes[oe];we=="text"?Wi(x,ee):we=="gutter"?Vi(x,ee,ie,re):we=="class"?da(x,ee):we=="widget"&&Ei(x,ee,re)}ee.changes=null}function Si(x){return x.node==x.text&&(x.node=ct("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),xe&&Be<8&&(x.node.style.zIndex=2)),x.node}function Jr(x,ee){var ie=ee.bgClass?ee.bgClass+" "+(ee.line.bgClass||""):ee.line.bgClass;if(ie&&(ie+=" CodeMirror-linebackground"),ee.background)ie?ee.background.className=ie:(ee.background.parentNode.removeChild(ee.background),ee.background=null);else if(ie){var re=Si(ee);ee.background=re.insertBefore(ct("div",null,ie),re.firstChild),x.display.input.setUneditable(ee.background)}}function Bi(x,ee){var ie=x.display.externalMeasured;return ie&&ie.line==ee.line?(x.display.externalMeasured=null,ee.measure=ie.measure,ie.built):Ci(x,ee)}function Wi(x,ee){var ie=ee.text.className,re=Bi(x,ee);ee.text==ee.node&&(ee.node=re.pre),ee.text.parentNode.replaceChild(re.pre,ee.text),ee.text=re.pre,re.bgClass!=ee.bgClass||re.textClass!=ee.textClass?(ee.bgClass=re.bgClass,ee.textClass=re.textClass,da(x,ee)):ie&&(ee.text.className=ie)}function da(x,ee){Jr(x,ee),ee.line.wrapClass?Si(ee).className=ee.line.wrapClass:ee.node!=ee.text&&(ee.node.className="");var ie=ee.textClass?ee.textClass+" "+(ee.line.textClass||""):ee.line.textClass;ee.text.className=ie||""}function Vi(x,ee,ie,re){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 oe=Si(ee);ee.gutterBackground=ct("div",null,"CodeMirror-gutter-background "+ee.line.gutterClass,"left: "+(x.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),x.display.input.setUneditable(ee.gutterBackground),oe.insertBefore(ee.gutterBackground,ee.text)}var we=ee.line.gutterMarkers;if(x.options.lineNumbers||we){var je=Si(ee),lt=ee.gutter=ct("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(x.display.input.setUneditable(lt),je.insertBefore(lt,ee.text),ee.line.gutterClass&&(lt.className+=" "+ee.line.gutterClass),x.options.lineNumbers&&(!we||!we["CodeMirror-linenumbers"])&&(ee.lineNumber=lt.appendChild(ct("div",ua(x.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),we)for(var mt=0;mt<x.display.gutterSpecs.length;++mt){var It=x.display.gutterSpecs[mt].className,zn=we.hasOwnProperty(It)&&we[It];zn&<.appendChild(ct("div",[zn],"CodeMirror-gutter-elt","left: "+re.gutterLeft[It]+"px; width: "+re.gutterWidth[It]+"px"))}}}function Ei(x,ee,ie){ee.alignable&&(ee.alignable=null);for(var re=Ee("CodeMirror-linewidget"),oe=ee.node.firstChild,we=void 0;oe;oe=we)we=oe.nextSibling,re.test(oe.className)&&ee.node.removeChild(oe);Ca(x,ee,ie)}function ga(x,ee,ie,re){var oe=Bi(x,ee);return ee.text=ee.node=oe.pre,oe.bgClass&&(ee.bgClass=oe.bgClass),oe.textClass&&(ee.textClass=oe.textClass),da(x,ee),Vi(x,ee,ie,re),Ca(x,ee,re),ee.node}function Ca(x,ee,ie){if(fo(x,ee.line,ee,ie,!0),ee.rest)for(var re=0;re<ee.rest.length;re++)fo(x,ee.rest[re],ee,ie,!1)}function fo(x,ee,ie,re,oe){if(ee.widgets)for(var we=Si(ie),je=0,lt=ee.widgets;je<lt.length;++je){var mt=lt[je],It=ct("div",[mt.node],"CodeMirror-linewidget"+(mt.className?" "+mt.className:""));mt.handleMouseEvents||It.setAttribute("cm-ignore-events","true"),Bo(mt,It,ie,re),x.display.input.setUneditable(It),oe&&mt.above?we.insertBefore(It,ie.gutter||ie.text):we.appendChild(It),kr(mt,"redraw")}}function Bo(x,ee,ie,re){if(x.noHScroll){(ie.alignable||(ie.alignable=[])).push(ee);var oe=re.wrapperWidth;ee.style.left=re.fixedPos+"px",x.coverGutter||(oe-=re.gutterTotalWidth,ee.style.paddingLeft=re.gutterTotalWidth+"px"),ee.style.width=oe+"px"}x.coverGutter&&(ee.style.zIndex=5,ee.style.position="relative",x.noHScroll||(ee.style.marginLeft=-re.gutterTotalWidth+"px"))}function xo(x){if(x.height!=null)return x.height;var ee=x.doc.cm;if(!ee)return 0;if(!pt(document.body,x.node)){var ie="position: relative;";x.coverGutter&&(ie+="margin-left: -"+ee.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ie+="width: "+ee.display.wrapper.clientWidth+"px;"),ot(ee.display.measure,ct("div",[x.node],null,ie))}return x.height=x.node.parentNode.offsetHeight}function Jt(x,ee){for(var ie=Mi(ee);ie!=x.wrapper;ie=ie.parentNode)if(!ie||ie.nodeType==1&&ie.getAttribute("cm-ignore-events")=="true"||ie.parentNode==x.sizer&&ie!=x.mover)return!0}function rn(x){return x.lineSpace.offsetTop}function kn(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function zr(x){if(x.cachedPaddingH)return x.cachedPaddingH;var ee=ot(x.measure,ct("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(ee):ee.currentStyle,re={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(x.cachedPaddingH=re),re}function Mr(x){return qt-x.display.nativeBarWidth}function tr(x){return x.display.scroller.clientWidth-Mr(x)-x.display.barWidth}function yr(x){return x.display.scroller.clientHeight-Mr(x)-x.display.barHeight}function Ln(x,ee,ie){var re=x.options.lineWrapping,oe=re&&tr(x);if(!ee.measure.heights||re&&ee.measure.width!=oe){var we=ee.measure.heights=[];if(re){ee.measure.width=oe;for(var je=ee.text.firstChild.getClientRects(),lt=0;lt<je.length-1;lt++){var mt=je[lt],It=je[lt+1];Math.abs(mt.bottom-It.bottom)>2&&we.push((mt.bottom+It.top)/2-ie.top)}}we.push(ie.bottom-ie.top)}}function Xn(x,ee,ie){if(x.line==ee)return{map:x.measure.map,cache:x.measure.cache};for(var re=0;re<x.rest.length;re++)if(x.rest[re]==ee)return{map:x.measure.maps[re],cache:x.measure.caches[re]};for(var oe=0;oe<x.rest.length;oe++)if(bi(x.rest[oe])>ie)return{map:x.measure.maps[oe],cache:x.measure.caches[oe],before:!0}}function qr(x,ee){ee=Ft(ee);var ie=bi(ee),re=x.display.externalMeasured=new Zt(x.doc,ee,ie);re.lineN=ie;var oe=re.built=Ci(x,re);return re.text=oe.pre,ot(x.display.lineMeasure,oe.pre),re}function Pi(x,ee,ie,re){return La(x,la(x,ee),ie,re)}function Da(x,ee){if(ee>=x.display.viewFrom&&ee<x.display.viewTo)return x.display.view[_i(x,ee)];var ie=x.display.externalMeasured;if(ie&&ee>=ie.lineN&&ee<ie.lineN+ie.size)return ie}function la(x,ee){var ie=bi(ee),re=Da(x,ie);re&&!re.text?re=null:re&&re.changes&&(Ni(x,re,ie,ia(x)),x.curOp.forceUpdate=!0),re||(re=qr(x,ee));var oe=Xn(re,ee,ie);return{line:ee,view:re,rect:null,map:oe.map,cache:oe.cache,before:oe.before,hasHeights:!1}}function La(x,ee,ie,re,oe){ee.before&&(ie=-1);var we=ie+(re||""),je;return ee.cache.hasOwnProperty(we)?je=ee.cache[we]:(ee.rect||(ee.rect=ee.view.text.getBoundingClientRect()),ee.hasHeights||(Ln(x,ee.view,ee.rect),ee.hasHeights=!0),je=ri(x,ee,ie,re),je.bogus||(ee.cache[we]=je)),{left:je.left,right:je.right,top:oe?je.rtop:je.top,bottom:oe?je.rbottom:je.bottom}}var mo={left:0,right:0,top:0,bottom:0};function Ui(x,ee,ie){for(var re,oe,we,je,lt,mt,It=0;It<x.length;It+=3)if(lt=x[It],mt=x[It+1],ee<lt?(oe=0,we=1,je="left"):ee<mt?(oe=ee-lt,we=oe+1):(It==x.length-3||ee==mt&&x[It+3]>ee)&&(we=mt-lt,oe=we-1,ee>=mt&&(je="right")),oe!=null){if(re=x[It+2],lt==mt&&ie==(re.insertLeft?"left":"right")&&(je=ie),ie=="left"&&oe==0)for(;It&&x[It-2]==x[It-3]&&x[It-1].insertLeft;)re=x[(It-=3)+2],je="left";if(ie=="right"&&oe==mt-lt)for(;It<x.length-3&&x[It+3]==x[It+4]&&!x[It+5].insertLeft;)re=x[(It+=3)+2],je="right";break}return{node:re,start:oe,end:we,collapse:je,coverStart:lt,coverEnd:mt}}function pi(x,ee){var ie=mo;if(ee=="left")for(var re=0;re<x.length&&(ie=x[re]).left==ie.right;re++);else for(var oe=x.length-1;oe>=0&&(ie=x[oe]).left==ie.right;oe--);return ie}function ri(x,ee,ie,re){var oe=Ui(ee.map,ie,re),we=oe.node,je=oe.start,lt=oe.end,mt=oe.collapse,It;if(we.nodeType==3){for(var zn=0;zn<4;zn++){for(;je&&bt(ee.line.text.charAt(oe.coverStart+je));)--je;for(;oe.coverStart+lt<oe.coverEnd&&bt(ee.line.text.charAt(oe.coverStart+lt));)++lt;if(xe&&Be<9&&je==0&<==oe.coverEnd-oe.coverStart?It=we.parentNode.getBoundingClientRect():It=pi(Me(we,je,lt).getClientRects(),re),It.left||It.right||je==0)break;lt=je,je=je-1,mt="right"}xe&&Be<11&&(It=Xa(x.display.measure,It))}else{je>0&&(mt=re="right");var ar;x.options.lineWrapping&&(ar=we.getClientRects()).length>1?It=ar[re=="right"?ar.length-1:0]:It=we.getBoundingClientRect()}if(xe&&Be<9&&!je&&(!It||!It.left&&!It.right)){var ui=we.parentNode.getClientRects()[0];ui?It={left:ui.left,right:ui.left+Lr(x.display),top:ui.top,bottom:ui.bottom}:It=mo}for(var $r=It.top-ee.rect.top,aa=It.bottom-ee.rect.top,Oa=($r+aa)/2,uo=ee.view.measure.heights,Oo=0;Oo<uo.length-1&&!(Oa<uo[Oo]);Oo++);var $o=Oo?uo[Oo-1]:0,Co=uo[Oo],tl={left:(mt=="right"?It.right:It.left)-ee.rect.left,right:(mt=="left"?It.left:It.right)-ee.rect.left,top:$o,bottom:Co};return!It.left&&!It.right&&(tl.bogus=!0),x.options.singleCursorHeightPerLine||(tl.rtop=$r,tl.rbottom=aa),tl}function Xa(x,ee){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Dr(x))return ee;var ie=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:ee.left*ie,right:ee.right*ie,top:ee.top*re,bottom:ee.bottom*re}}function ya(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var ee=0;ee<x.rest.length;ee++)x.measure.caches[ee]={}}function to(x){x.display.externalMeasure=null,Ne(x.display.lineMeasure);for(var ee=0;ee<x.display.view.length;ee++)ya(x.display.view[ee])}function Ba(x){to(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function Ua(){return pe&&qe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ko(){return pe&&qe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Va(x){var ee=0;if(x.widgets)for(var ie=0;ie<x.widgets.length;++ie)x.widgets[ie].above&&(ee+=xo(x.widgets[ie]));return ee}function qi(x,ee,ie,re,oe){if(!oe){var we=Va(ee);ie.top+=we,ie.bottom+=we}if(re=="line")return ie;re||(re="local");var je=Un(ee);if(re=="local"?je+=rn(x.display):je-=x.display.viewOffset,re=="page"||re=="window"){var lt=x.display.lineSpace.getBoundingClientRect();je+=lt.top+(re=="window"?0:ko());var mt=lt.left+(re=="window"?0:Ua());ie.left+=mt,ie.right+=mt}return ie.top+=je,ie.bottom+=je,ie}function So(x,ee,ie){if(ie=="div")return ee;var re=ee.left,oe=ee.top;if(ie=="page")re-=Ua(),oe-=ko();else if(ie=="local"||!ie){var we=x.display.sizer.getBoundingClientRect();re+=we.left,oe+=we.top}var je=x.display.lineSpace.getBoundingClientRect();return{left:re-je.left,top:oe-je.top}}function Ro(x,ee,ie,re,oe){return re||(re=er(x.doc,ee.line)),qi(x,re,Pi(x,re,ee.ch,oe),ie)}function fl(x,ee,ie,re,oe,we){re=re||er(x.doc,ee.line),oe||(oe=la(x,re));function je(aa,Oa){var uo=La(x,oe,aa,Oa?"right":"left",we);return Oa?uo.left=uo.right:uo.right=uo.left,qi(x,re,uo,ie)}var lt=nn(re,x.doc.direction),mt=ee.ch,It=ee.sticky;if(mt>=re.text.length?(mt=re.text.length,It="before"):mt<=0&&(mt=0,It="after"),!lt)return je(It=="before"?mt-1:mt,It=="before");function zn(aa,Oa,uo){var Oo=lt[Oa],$o=Oo.level==1;return je(uo?aa-1:aa,$o!=uo)}var ar=wn(lt,mt,It),ui=cn,$r=zn(mt,ar,It=="before");return ui!=null&&($r.other=zn(mt,ui,It!="before")),$r}function Al(x,ee){var ie=0;ee=Ea(x.doc,ee),x.options.lineWrapping||(ie=Lr(x.display)*ee.ch);var re=er(x.doc,ee.line),oe=Un(re)+rn(x.display);return{left:ie,right:ie,top:oe,bottom:oe+re.height}}function jt(x,ee,ie,re,oe){var we=br(x,ee,ie);return we.xRel=oe,re&&(we.outside=re),we}function dn(x,ee,ie){var re=x.doc;if(ie+=x.display.viewOffset,ie<0)return jt(re.first,0,null,-1,-1);var oe=Ji(re,ie),we=re.first+re.size-1;if(oe>we)return jt(re.first+re.size-1,er(re,we).text.length,null,1,1);ee<0&&(ee=0);for(var je=er(re,oe);;){var lt=dr(x,je,oe,ee,ie),mt=yt(je,lt.ch+(lt.xRel>0||lt.outside>0?1:0));if(!mt)return lt;var It=mt.find(1);if(It.line==oe)return It;je=er(re,oe=It.line)}}function Mn(x,ee,ie,re){re-=Va(ee);var oe=ee.text.length,we=yn(function(je){return La(x,ie,je-1).bottom<=re},oe,0);return oe=yn(function(je){return La(x,ie,je).top>re},we,oe),{begin:we,end:oe}}function ur(x,ee,ie,re){ie||(ie=la(x,ee));var oe=qi(x,ee,La(x,ie,re),"line").top;return Mn(x,ee,ie,oe)}function Qi(x,ee,ie,re){return x.bottom<=ie?!1:x.top>ie?!0:(re?x.left:x.right)>ee}function dr(x,ee,ie,re,oe){oe-=Un(ee);var we=la(x,ee),je=Va(ee),lt=0,mt=ee.text.length,It=!0,zn=nn(ee,x.doc.direction);if(zn){var ar=(x.options.lineWrapping?si:ii)(x,ee,ie,we,zn,re,oe);It=ar.level!=1,lt=It?ar.from:ar.to-1,mt=It?ar.to:ar.from-1}var ui=null,$r=null,aa=yn(function(Ol){var Tl=La(x,we,Ol);return Tl.top+=je,Tl.bottom+=je,Qi(Tl,re,oe,!1)?(Tl.top<=oe&&Tl.left<=re&&(ui=Ol,$r=Tl),!0):!1},lt,mt),Oa,uo,Oo=!1;if($r){var $o=re-$r.left<$r.right-re,Co=$o==It;aa=ui+(Co?0:1),uo=Co?"after":"before",Oa=$o?$r.left:$r.right}else{!It&&(aa==mt||aa==lt)&&aa++,uo=aa==0?"after":aa==ee.text.length?"before":La(x,we,aa-(It?1:0)).bottom+je<=oe==It?"after":"before";var tl=fl(x,br(ie,aa,uo),"line",ee,we);Oa=tl.left,Oo=oe<tl.top?-1:oe>=tl.bottom?1:0}return aa=Wt(ee.text,aa,1),jt(ie,aa,uo,Oo,re-Oa)}function ii(x,ee,ie,re,oe,we,je){var lt=yn(function(ar){var ui=oe[ar],$r=ui.level!=1;return Qi(fl(x,br(ie,$r?ui.to:ui.from,$r?"before":"after"),"line",ee,re),we,je,!0)},0,oe.length-1),mt=oe[lt];if(lt>0){var It=mt.level!=1,zn=fl(x,br(ie,It?mt.from:mt.to,It?"after":"before"),"line",ee,re);Qi(zn,we,je,!0)&&zn.top>je&&(mt=oe[lt-1])}return mt}function si(x,ee,ie,re,oe,we,je){var lt=Mn(x,ee,re,je),mt=lt.begin,It=lt.end;/\s/.test(ee.text.charAt(It-1))&&It--;for(var zn=null,ar=null,ui=0;ui<oe.length;ui++){var $r=oe[ui];if(!($r.from>=It||$r.to<=mt)){var aa=$r.level!=1,Oa=La(x,re,aa?Math.min(It,$r.to)-1:Math.max(mt,$r.from)).right,uo=Oa<we?we-Oa+1e9:Oa-we;(!zn||ar>uo)&&(zn=$r,ar=uo)}}return zn||(zn=oe[oe.length-1]),zn.from<mt&&(zn={from:mt,to:zn.to,level:zn.level}),zn.to>It&&(zn={from:zn.from,to:It,level:zn.level}),zn}var ki;function Yi(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(ki==null){ki=ct("pre",null,"CodeMirror-line-like");for(var ee=0;ee<49;++ee)ki.appendChild(document.createTextNode("x")),ki.appendChild(ct("br"));ki.appendChild(document.createTextNode("x"))}ot(x.measure,ki);var ie=ki.offsetHeight/50;return ie>3&&(x.cachedTextHeight=ie),Ne(x.measure),ie||1}function Lr(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var ee=ct("span","xxxxxxxxxx"),ie=ct("pre",[ee],"CodeMirror-line-like");ot(x.measure,ie);var re=ee.getBoundingClientRect(),oe=(re.right-re.left)/10;return oe>2&&(x.cachedCharWidth=oe),oe||10}function ia(x){for(var ee=x.display,ie={},re={},oe=ee.gutters.clientLeft,we=ee.gutters.firstChild,je=0;we;we=we.nextSibling,++je){var lt=x.display.gutterSpecs[je].className;ie[lt]=we.offsetLeft+we.clientLeft+oe,re[lt]=we.clientWidth}return{fixedPos:Ha(ee),gutterTotalWidth:ee.gutters.offsetWidth,gutterLeft:ie,gutterWidth:re,wrapperWidth:ee.wrapper.clientWidth}}function Ha(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function ro(x){var ee=Yi(x.display),ie=x.options.lineWrapping,re=ie&&Math.max(5,x.display.scroller.clientWidth/Lr(x.display)-3);return function(oe){if(Wr(x.doc,oe))return 0;var we=0;if(oe.widgets)for(var je=0;je<oe.widgets.length;je++)oe.widgets[je].height&&(we+=oe.widgets[je].height);return ie?we+(Math.ceil(oe.text.length/re)||1)*ee:we+ee}}function Xi(x){var ee=x.doc,ie=ro(x);ee.iter(function(re){var oe=ie(re);oe!=re.height&&Oi(re,oe)})}function Wa(x,ee,ie,re){var oe=x.display;if(!ie&&Mi(ee).getAttribute("cm-not-content")=="true")return null;var we,je,lt=oe.lineSpace.getBoundingClientRect();try{we=ee.clientX-lt.left,je=ee.clientY-lt.top}catch(ar){return null}var mt=dn(x,we,je),It;if(re&&mt.xRel>0&&(It=er(x.doc,mt.line).text).length==mt.ch){var zn=et(It,It.length,x.options.tabSize)-It.length;mt=br(mt.line,Math.max(0,Math.round((we-zr(x.display).left)/Lr(x.display))-zn))}return mt}function _i(x,ee){if(ee>=x.display.viewTo||(ee-=x.display.viewFrom,ee<0))return null;for(var ie=x.display.view,re=0;re<ie.length;re++)if(ee-=ie[re].size,ee<0)return re}function jr(x,ee,ie,re){ee==null&&(ee=x.doc.first),ie==null&&(ie=x.doc.first+x.doc.size),re||(re=0);var oe=x.display;if(re&&ie<oe.viewTo&&(oe.updateLineNumbers==null||oe.updateLineNumbers>ee)&&(oe.updateLineNumbers=ee),x.curOp.viewChanged=!0,ee>=oe.viewTo)Vo&&Rn(x.doc,ee)<oe.viewTo&&va(x);else if(ie<=oe.viewFrom)Vo&&Nr(x.doc,ie+re)>oe.viewFrom?va(x):(oe.viewFrom+=re,oe.viewTo+=re);else if(ee<=oe.viewFrom&&ie>=oe.viewTo)va(x);else if(ee<=oe.viewFrom){var we=tt(x,ie,ie+re,1);we?(oe.view=oe.view.slice(we.index),oe.viewFrom=we.lineN,oe.viewTo+=re):va(x)}else if(ie>=oe.viewTo){var je=tt(x,ee,ee,-1);je?(oe.view=oe.view.slice(0,je.index),oe.viewTo=je.lineN):va(x)}else{var lt=tt(x,ee,ee,-1),mt=tt(x,ie,ie+re,1);lt&&mt?(oe.view=oe.view.slice(0,lt.index).concat(Ht(x,lt.lineN,mt.lineN)).concat(oe.view.slice(mt.index)),oe.viewTo+=re):va(x)}var It=oe.externalMeasured;It&&(ie<It.lineN?It.lineN+=re:ee<It.lineN+It.size&&(oe.externalMeasured=null))}function li(x,ee,ie){x.curOp.viewChanged=!0;var re=x.display,oe=x.display.externalMeasured;if(oe&&ee>=oe.lineN&&ee<oe.lineN+oe.size&&(re.externalMeasured=null),!(ee<re.viewFrom||ee>=re.viewTo)){var we=re.view[_i(x,ee)];if(we.node!=null){var je=we.changes||(we.changes=[]);Dt(je,ie)==-1&&je.push(ie)}}}function va(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function tt(x,ee,ie,re){var oe=_i(x,ee),we,je=x.display.view;if(!Vo||ie==x.doc.first+x.doc.size)return{index:oe,lineN:ie};for(var lt=x.display.viewFrom,mt=0;mt<oe;mt++)lt+=je[mt].size;if(lt!=ee){if(re>0){if(oe==je.length-1)return null;we=lt+je[oe].size-ee,oe++}else we=lt-ee;ee+=we,ie+=we}for(;Rn(x.doc,ie)!=ie;){if(oe==(re<0?0:je.length-1))return null;ie+=re*je[oe-(re<0?1:0)].size,oe+=re}return{index:oe,lineN:ie}}function nt(x,ee,ie){var re=x.display,oe=re.view;oe.length==0||ee>=re.viewTo||ie<=re.viewFrom?(re.view=Ht(x,ee,ie),re.viewFrom=ee):(re.viewFrom>ee?re.view=Ht(x,ee,re.viewFrom).concat(re.view):re.viewFrom<ee&&(re.view=re.view.slice(_i(x,ee))),re.viewFrom=ee,re.viewTo<ie?re.view=re.view.concat(Ht(x,re.viewTo,ie)):re.viewTo>ie&&(re.view=re.view.slice(0,_i(x,ie)))),re.viewTo=ie}function Qt(x){for(var ee=x.display.view,ie=0,re=0;re<ee.length;re++){var oe=ee[re];!oe.hidden&&(!oe.node||oe.changes)&&++ie}return ie}function Kt(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Bn(x,ee){ee===void 0&&(ee=!0);for(var ie=x.doc,re={},oe=re.cursors=document.createDocumentFragment(),we=re.selection=document.createDocumentFragment(),je=0;je<ie.sel.ranges.length;je++)if(!(!ee&&je==ie.sel.primIndex)){var lt=ie.sel.ranges[je];if(!(lt.from().line>=x.display.viewTo||lt.to().line<x.display.viewFrom)){var mt=lt.empty();(mt||x.options.showCursorWhenSelecting)&&Gn(x,lt.head,oe),mt||Pr(x,lt,we)}}return re}function Gn(x,ee,ie){var re=fl(x,ee,"div",null,null,!x.options.singleCursorHeightPerLine),oe=ie.appendChild(ct("div","\xA0","CodeMirror-cursor"));if(oe.style.left=re.left+"px",oe.style.top=re.top+"px",oe.style.height=Math.max(0,re.bottom-re.top)*x.options.cursorHeight+"px",re.other){var we=ie.appendChild(ct("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));we.style.display="",we.style.left=re.other.left+"px",we.style.top=re.other.top+"px",we.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function _n(x,ee){return x.top-ee.top||x.left-ee.left}function Pr(x,ee,ie){var re=x.display,oe=x.doc,we=document.createDocumentFragment(),je=zr(x.display),lt=je.left,mt=Math.max(re.sizerWidth,tr(x)-re.sizer.offsetLeft)-je.right,It=oe.direction=="ltr";function zn(Co,tl,Ol,Tl){tl<0&&(tl=0),tl=Math.round(tl),Tl=Math.round(Tl),we.appendChild(ct("div",null,"CodeMirror-selected","position: absolute; left: "+Co+`px;
|
|
|
top: `+tl+"px; width: "+(Ol==null?mt-Co:Ol)+`px;
|
|
|
height: `+(Tl-tl)+"px"))}function ar(Co,tl,Ol){var Tl=er(oe,Co),cs=Tl.text.length,Vs,Gu;function Eu(Tu,tc){return Ro(x,br(Co,Tu),"div",Tl,tc)}function sc(Tu,tc,ql){var Pu=ur(x,Tl,null,Tu),pu=tc=="ltr"==(ql=="after")?"left":"right",Cu=ql=="after"?Pu.begin:Pu.end-(/\s/.test(Tl.text.charAt(Pu.end-1))?2:1);return Eu(Cu,pu)[pu]}var uc=nn(Tl,oe.direction);return bn(uc,tl||0,Ol==null?cs:Ol,function(Tu,tc,ql,Pu){var pu=ql=="ltr",Cu=Eu(Tu,pu?"left":"right"),Ou=Eu(tc-1,pu?"right":"left"),cd=tl==null&&Tu==0,gc=Ol==null&&tc==cs,Xu=Pu==0,Ps=!uc||Pu==uc.length-1;if(Ou.top-Cu.top<=3){var le=(It?cd:gc)&&Xu,ce=(It?gc:cd)&&Ps,Ce=le?lt:(pu?Cu:Ou).left,ze=ce?mt:(pu?Ou:Cu).right;zn(Ce,Cu.top,ze-Ce,Cu.bottom)}else{var dt,ut,Mt,Pt;pu?(dt=It&&cd&&Xu?lt:Cu.left,ut=It?mt:sc(Tu,ql,"before"),Mt=It?lt:sc(tc,ql,"after"),Pt=It&&gc&&Ps?mt:Ou.right):(dt=It?sc(Tu,ql,"before"):lt,ut=!It&&cd&&Xu?mt:Cu.right,Mt=!It&&gc&&Ps?lt:Ou.left,Pt=It?sc(tc,ql,"after"):mt),zn(dt,Cu.top,ut-dt,Cu.bottom),Cu.bottom<Ou.top&&zn(lt,Cu.bottom,null,Ou.top),zn(Mt,Ou.top,Pt-Mt,Ou.bottom)}(!Vs||_n(Cu,Vs)<0)&&(Vs=Cu),_n(Ou,Vs)<0&&(Vs=Ou),(!Gu||_n(Cu,Gu)<0)&&(Gu=Cu),_n(Ou,Gu)<0&&(Gu=Ou)}),{start:Vs,end:Gu}}var ui=ee.from(),$r=ee.to();if(ui.line==$r.line)ar(ui.line,ui.ch,$r.ch);else{var aa=er(oe,ui.line),Oa=er(oe,$r.line),uo=Ft(aa)==Ft(Oa),Oo=ar(ui.line,ui.ch,uo?aa.text.length+1:null).end,$o=ar($r.line,uo?0:null,$r.ch).start;uo&&(Oo.top<$o.top-2?(zn(Oo.right,Oo.top,null,Oo.bottom),zn(lt,$o.top,$o.left,$o.bottom)):zn(Oo.right,Oo.top,$o.left-Oo.right,Oo.bottom)),Oo.bottom<$o.top&&zn(lt,Oo.bottom,null,$o.top)}ie.appendChild(we)}function Kr(x){if(x.state.focused){var ee=x.display;clearInterval(ee.blinker);var ie=!0;ee.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?ee.blinker=setInterval(function(){x.hasFocus()||ji(x),ee.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(ee.cursorDiv.style.visibility="hidden")}}function Er(x){x.state.focused||(x.display.input.focus(),zi(x))}function ta(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,ji(x))},100)}function zi(x,ee){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Lt(x,"focus",x,ee),x.state.focused=!0,ft(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),de&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Kr(x))}function ji(x,ee){x.state.delayingBlurEvent||(x.state.focused&&(Lt(x,"blur",x,ee),x.state.focused=!1,Ye(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Li(x){for(var ee=x.display,ie=ee.lineDiv.offsetTop,re=0;re<ee.view.length;re++){var oe=ee.view[re],we=x.options.lineWrapping,je=void 0,lt=0;if(!oe.hidden){if(xe&&Be<8){var mt=oe.node.offsetTop+oe.node.offsetHeight;je=mt-ie,ie=mt}else{var It=oe.node.getBoundingClientRect();je=It.bottom-It.top,!we&&oe.text.firstChild&&(lt=oe.text.firstChild.getBoundingClientRect().right-It.left-1)}var zn=oe.line.height-je;if((zn>.005||zn<-.005)&&(Oi(oe.line,je),ea(oe.line),oe.rest))for(var ar=0;ar<oe.rest.length;ar++)ea(oe.rest[ar]);if(lt>x.display.sizerWidth){var ui=Math.ceil(lt/Lr(x.display));ui>x.display.maxLineLength&&(x.display.maxLineLength=ui,x.display.maxLine=oe.line,x.display.maxLineChanged=!0)}}}}function ea(x){if(x.widgets)for(var ee=0;ee<x.widgets.length;++ee){var ie=x.widgets[ee],re=ie.node.parentNode;re&&(ie.height=re.offsetHeight)}}function Hi(x,ee,ie){var re=ie&&ie.top!=null?Math.max(0,ie.top):x.scroller.scrollTop;re=Math.floor(re-rn(x));var oe=ie&&ie.bottom!=null?ie.bottom:re+x.wrapper.clientHeight,we=Ji(ee,re),je=Ji(ee,oe);if(ie&&ie.ensure){var lt=ie.ensure.from.line,mt=ie.ensure.to.line;lt<we?(we=lt,je=Ji(ee,Un(er(ee,lt))+x.wrapper.clientHeight)):Math.min(mt,ee.lastLine())>=je&&(we=Ji(ee,Un(er(ee,mt))-x.wrapper.clientHeight),je=mt)}return{from:we,to:Math.max(je,we+1)}}function ka(x,ee){if(!Vt(x,"scrollCursorIntoView")){var ie=x.display,re=ie.sizer.getBoundingClientRect(),oe=null;if(ee.top+re.top<0?oe=!0:ee.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(oe=!1),oe!=null&&!Ue){var we=ct("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ee.top-ie.viewOffset-rn(x.display))+`px;
|
|
|
height: `+(ee.bottom-ee.top+Mr(x)+ie.barHeight)+`px;
|
|
|
left: `+ee.left+"px; width: "+Math.max(2,ee.right-ee.left)+"px;");x.display.lineSpace.appendChild(we),we.scrollIntoView(oe),x.display.lineSpace.removeChild(we)}}}function vo(x,ee,ie,re){re==null&&(re=0);var oe;!x.options.lineWrapping&&ee==ie&&(ee=ee.ch?br(ee.line,ee.sticky=="before"?ee.ch-1:ee.ch,"after"):ee,ie=ee.sticky=="before"?br(ee.line,ee.ch+1,"before"):ee);for(var we=0;we<5;we++){var je=!1,lt=fl(x,ee),mt=!ie||ie==ee?lt:fl(x,ie);oe={left:Math.min(lt.left,mt.left),top:Math.min(lt.top,mt.top)-re,right:Math.max(lt.left,mt.left),bottom:Math.max(lt.bottom,mt.bottom)+re};var It=Zo(x,oe),zn=x.doc.scrollTop,ar=x.doc.scrollLeft;if(It.scrollTop!=null&&(_a(x,It.scrollTop),Math.abs(x.doc.scrollTop-zn)>1&&(je=!0)),It.scrollLeft!=null&&(Yo(x,It.scrollLeft),Math.abs(x.doc.scrollLeft-ar)>1&&(je=!0)),!je)break}return oe}function Fo(x,ee){var ie=Zo(x,ee);ie.scrollTop!=null&&_a(x,ie.scrollTop),ie.scrollLeft!=null&&Yo(x,ie.scrollLeft)}function Zo(x,ee){var ie=x.display,re=Yi(x.display);ee.top<0&&(ee.top=0);var oe=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ie.scroller.scrollTop,we=yr(x),je={};ee.bottom-ee.top>we&&(ee.bottom=ee.top+we);var lt=x.doc.height+kn(ie),mt=ee.top<re,It=ee.bottom>lt-re;if(ee.top<oe)je.scrollTop=mt?0:ee.top;else if(ee.bottom>oe+we){var zn=Math.min(ee.top,(It?lt:ee.bottom)-we);zn!=oe&&(je.scrollTop=zn)}var ar=x.options.fixedGutter?0:ie.gutters.offsetWidth,ui=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ie.scroller.scrollLeft-ar,$r=tr(x)-ie.gutters.offsetWidth,aa=ee.right-ee.left>$r;return aa&&(ee.right=ee.left+$r),ee.left<10?je.scrollLeft=0:ee.left<ui?je.scrollLeft=Math.max(0,ee.left+ar-(aa?0:10)):ee.right>$r+ui-3&&(je.scrollLeft=ee.right+(aa?0:10)-$r),je}function Ao(x,ee){ee!=null&&(Xo(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+ee)}function qo(x){Xo(x);var ee=x.getCursor();x.curOp.scrollToPos={from:ee,to:ee,margin:x.options.cursorScrollMargin}}function go(x,ee,ie){(ee!=null||ie!=null)&&Xo(x),ee!=null&&(x.curOp.scrollLeft=ee),ie!=null&&(x.curOp.scrollTop=ie)}function Io(x,ee){Xo(x),x.curOp.scrollToPos=ee}function Xo(x){var ee=x.curOp.scrollToPos;if(ee){x.curOp.scrollToPos=null;var ie=Al(x,ee.from),re=Al(x,ee.to);Fa(x,ie,re,ee.margin)}}function Fa(x,ee,ie,re){var oe=Zo(x,{left:Math.min(ee.left,ie.left),top:Math.min(ee.top,ie.top)-re,right:Math.max(ee.right,ie.right),bottom:Math.max(ee.bottom,ie.bottom)+re});go(x,oe.scrollLeft,oe.scrollTop)}function _a(x,ee){Math.abs(x.doc.scrollTop-ee)<2||(E||as(x,{top:ee}),no(x,ee,!0),E&&as(x),oa(x,100))}function no(x,ee,ie){ee=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,ee)),!(x.display.scroller.scrollTop==ee&&!ie)&&(x.doc.scrollTop=ee,x.display.scrollbars.setScrollTop(ee),x.display.scroller.scrollTop!=ee&&(x.display.scroller.scrollTop=ee))}function Yo(x,ee,ie,re){ee=Math.max(0,Math.min(ee,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ie?ee==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-ee)<2)&&!re)&&(x.doc.scrollLeft=ee,Rs(x),x.display.scroller.scrollLeft!=ee&&(x.display.scroller.scrollLeft=ee),x.display.scrollbars.setScrollLeft(ee))}function Wo(x){var ee=x.display,ie=ee.gutters.offsetWidth,re=Math.round(x.doc.height+kn(x.display));return{clientHeight:ee.scroller.clientHeight,viewHeight:ee.wrapper.clientHeight,scrollWidth:ee.scroller.scrollWidth,clientWidth:ee.scroller.clientWidth,viewWidth:ee.wrapper.clientWidth,barLeft:x.options.fixedGutter?ie:0,docHeight:re,scrollHeight:re+Mr(x)+ee.barHeight,nativeBarWidth:ee.nativeBarWidth,gutterWidth:ie}}var il=function(x,ee,ie){this.cm=ie;var re=this.vert=ct("div",[ct("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),oe=this.horiz=ct("div",[ct("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");re.tabIndex=oe.tabIndex=-1,x(re),x(oe),sn(re,"scroll",function(){re.clientHeight&&ee(re.scrollTop,"vertical")}),sn(oe,"scroll",function(){oe.clientWidth&&ee(oe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&Be<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};il.prototype.update=function(x){var ee=x.scrollWidth>x.clientWidth+1,ie=x.scrollHeight>x.clientHeight+1,re=x.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=ee?re+"px":"0";var oe=x.viewHeight-(ee?re:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+oe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ee){this.horiz.style.display="block",this.horiz.style.right=ie?re+"px":"0",this.horiz.style.left=x.barLeft+"px";var we=x.viewWidth-x.barLeft-(ie?re:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+we)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?re:0,bottom:ee?re:0}},il.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},il.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},il.prototype.zeroWidthHack=function(){var x=be&&!Pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Fe,this.disableVert=new Fe},il.prototype.enableZeroWidthBar=function(x,ee,ie){x.style.pointerEvents="auto";function re(){var oe=x.getBoundingClientRect(),we=ie=="vert"?document.elementFromPoint(oe.right-1,(oe.top+oe.bottom)/2):document.elementFromPoint((oe.right+oe.left)/2,oe.bottom-1);we!=x?x.style.pointerEvents="none":ee.set(1e3,re)}ee.set(1e3,re)},il.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var el=function(){};el.prototype.update=function(){return{bottom:0,right:0}},el.prototype.setScrollLeft=function(){},el.prototype.setScrollTop=function(){},el.prototype.clear=function(){};function cl(x,ee){ee||(ee=Wo(x));var ie=x.display.barWidth,re=x.display.barHeight;vl(x,ee);for(var oe=0;oe<4&&ie!=x.display.barWidth||re!=x.display.barHeight;oe++)ie!=x.display.barWidth&&x.options.lineWrapping&&Li(x),vl(x,Wo(x)),ie=x.display.barWidth,re=x.display.barHeight}function vl(x,ee){var ie=x.display,re=ie.scrollbars.update(ee);ie.sizer.style.paddingRight=(ie.barWidth=re.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=re.bottom)+"px",ie.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=re.bottom+"px",ie.scrollbarFiller.style.width=re.right+"px"):ie.scrollbarFiller.style.display="",re.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=re.bottom+"px",ie.gutterFiller.style.width=ee.gutterWidth+"px"):ie.gutterFiller.style.display=""}var gl={native:il,null:el};function kl(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ye(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new gl[x.options.scrollbarStyle](function(ee){x.display.wrapper.insertBefore(ee,x.display.scrollbarFiller),sn(ee,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),ee.setAttribute("cm-not-content","true")},function(ee,ie){ie=="horizontal"?Yo(x,ee):_a(x,ee)},x),x.display.scrollbars.addClass&&ft(x.display.wrapper,x.display.scrollbars.addClass)}var gr=0;function Gi(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.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:++gr},xn(x.curOp)}function ho(x){var ee=x.curOp;ee&&wr(ee,function(ie){for(var re=0;re<ie.ops.length;re++)ie.ops[re].cm.curOp=null;Ga(ie)})}function Ga(x){for(var ee=x.ops,ie=0;ie<ee.length;ie++)mi(ee[ie]);for(var re=0;re<ee.length;re++)Sa(ee[re]);for(var oe=0;oe<ee.length;oe++)wa(ee[oe]);for(var we=0;we<ee.length;we++)Qa(ee[we]);for(var je=0;je<ee.length;je++)ca(ee[je])}function mi(x){var ee=x.cm,ie=ee.display;ll(ee),x.updateMaxLine&&Jn(ee),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ie.viewFrom||x.scrollToPos.to.line>=ie.viewTo)||ie.maxLineChanged&&ee.options.lineWrapping,x.update=x.mustUpdate&&new Po(ee,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Sa(x){x.updatedDisplay=x.mustUpdate&&us(x.cm,x.update)}function wa(x){var ee=x.cm,ie=ee.display;x.updatedDisplay&&Li(ee),x.barMeasure=Wo(ee),ie.maxLineChanged&&!ee.options.lineWrapping&&(x.adjustWidthTo=Pi(ee,ie.maxLine,ie.maxLine.text.length).left+3,ee.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ie.scroller.clientWidth,ie.sizer.offsetLeft+x.adjustWidthTo+Mr(ee)+ee.display.barWidth),x.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+x.adjustWidthTo-tr(ee))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ie.input.prepareSelection())}function Qa(x){var ee=x.cm;x.adjustWidthTo!=null&&(ee.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<ee.doc.scrollLeft&&Yo(ee,Math.min(ee.display.scroller.scrollLeft,x.maxScrollLeft),!0),ee.display.maxLineChanged=!1);var ie=x.focus&&x.focus==$e();x.preparedSelection&&ee.display.input.showSelection(x.preparedSelection,ie),(x.updatedDisplay||x.startHeight!=ee.doc.height)&&cl(ee,x.barMeasure),x.updatedDisplay&&wu(ee,x.barMeasure),x.selectionChanged&&Kr(ee),ee.state.focused&&x.updateInput&&ee.display.input.reset(x.typing),ie&&Er(x.cm)}function ca(x){var ee=x.cm,ie=ee.display,re=ee.doc;if(x.updatedDisplay&&ds(ee,x.update),ie.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),x.scrollTop!=null&&no(ee,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&Yo(ee,x.scrollLeft,!0,!0),x.scrollToPos){var oe=vo(ee,Ea(re,x.scrollToPos.from),Ea(re,x.scrollToPos.to),x.scrollToPos.margin);ka(ee,oe)}var we=x.maybeHiddenMarkers,je=x.maybeUnhiddenMarkers;if(we)for(var lt=0;lt<we.length;++lt)we[lt].lines.length||Lt(we[lt],"hide");if(je)for(var mt=0;mt<je.length;++mt)je[mt].lines.length&&Lt(je[mt],"unhide");ie.wrapper.offsetHeight&&(re.scrollTop=ee.display.scroller.scrollTop),x.changeObjs&&Lt(ee,"changes",ee,x.changeObjs),x.update&&x.update.finish()}function ba(x,ee){if(x.curOp)return ee();Gi(x);try{return ee()}finally{ho(x)}}function Ta(x,ee){return function(){if(x.curOp)return ee.apply(x,arguments);Gi(x);try{return ee.apply(x,arguments)}finally{ho(x)}}}function Eo(x){return function(){if(this.curOp)return x.apply(this,arguments);Gi(this);try{return x.apply(this,arguments)}finally{ho(this)}}}function al(x){return function(){var ee=this.cm;if(!ee||ee.curOp)return x.apply(this,arguments);Gi(ee);try{return x.apply(this,arguments)}finally{ho(ee)}}}function oa(x,ee){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(ee,kt(Jo,x))}function Jo(x){var ee=x.doc;if(!(ee.highlightFrontier>=x.display.viewTo)){var ie=+new Date+x.options.workTime,re=Do(x,ee.highlightFrontier),oe=[];ee.iter(re.line,Math.min(ee.first+ee.size,x.display.viewTo+500),function(we){if(re.line>=x.display.viewFrom){var je=we.styles,lt=we.text.length>x.options.maxHighlightLength?on(ee.mode,re.state):null,mt=jl(x,we,re,!0);lt&&(re.state=lt),we.styles=mt.styles;var It=we.styleClasses,zn=mt.classes;zn?we.styleClasses=zn:It&&(we.styleClasses=null);for(var ar=!je||je.length!=we.styles.length||It!=zn&&(!It||!zn||It.bgClass!=zn.bgClass||It.textClass!=zn.textClass),ui=0;!ar&&ui<je.length;++ui)ar=je[ui]!=we.styles[ui];ar&&oe.push(re.line),we.stateAfter=re.save(),re.nextLine()}else we.text.length<=x.options.maxHighlightLength&&Na(x,we.text,re),we.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>ie)return oa(x,x.options.workDelay),!0}),ee.highlightFrontier=re.line,ee.modeFrontier=Math.max(ee.modeFrontier,re.line),oe.length&&ba(x,function(){for(var we=0;we<oe.length;we++)li(x,oe[we],"text")})}}var Po=function(x,ee,ie){var re=x.display;this.viewport=ee,this.visible=Hi(re,x.doc,ee),this.editorIsHidden=!re.wrapper.offsetWidth,this.wrapperHeight=re.wrapper.clientHeight,this.wrapperWidth=re.wrapper.clientWidth,this.oldDisplayWidth=tr(x),this.force=ie,this.dims=ia(x),this.events=[]};Po.prototype.signal=function(x,ee){En(x,ee)&&this.events.push(arguments)},Po.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Lt.apply(null,this.events[x])};function ll(x){var ee=x.display;!ee.scrollbarsClipped&&ee.scroller.offsetWidth&&(ee.nativeBarWidth=ee.scroller.offsetWidth-ee.scroller.clientWidth,ee.heightForcer.style.height=Mr(x)+"px",ee.sizer.style.marginBottom=-ee.nativeBarWidth+"px",ee.sizer.style.borderRightWidth=Mr(x)+"px",ee.scrollbarsClipped=!0)}function Yl(x){if(x.hasFocus())return null;var ee=$e();if(!ee||!pt(x.display.lineDiv,ee))return null;var ie={activeElt:ee};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&pt(x.display.lineDiv,re.anchorNode)&&(ie.anchorNode=re.anchorNode,ie.anchorOffset=re.anchorOffset,ie.focusNode=re.focusNode,ie.focusOffset=re.focusOffset)}return ie}function $l(x){if(!(!x||!x.activeElt||x.activeElt==$e())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&pt(document.body,x.anchorNode)&&pt(document.body,x.focusNode))){var ee=window.getSelection(),ie=document.createRange();ie.setEnd(x.anchorNode,x.anchorOffset),ie.collapse(!1),ee.removeAllRanges(),ee.addRange(ie),ee.extend(x.focusNode,x.focusOffset)}}function us(x,ee){var ie=x.display,re=x.doc;if(ee.editorIsHidden)return va(x),!1;if(!ee.force&&ee.visible.from>=ie.viewFrom&&ee.visible.to<=ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo)&&ie.renderedView==ie.view&&Qt(x)==0)return!1;ws(x)&&(va(x),ee.dims=ia(x));var oe=re.first+re.size,we=Math.max(ee.visible.from-x.options.viewportMargin,re.first),je=Math.min(oe,ee.visible.to+x.options.viewportMargin);ie.viewFrom<we&&we-ie.viewFrom<20&&(we=Math.max(re.first,ie.viewFrom)),ie.viewTo>je&&ie.viewTo-je<20&&(je=Math.min(oe,ie.viewTo)),Vo&&(we=Rn(x.doc,we),je=Nr(x.doc,je));var lt=we!=ie.viewFrom||je!=ie.viewTo||ie.lastWrapHeight!=ee.wrapperHeight||ie.lastWrapWidth!=ee.wrapperWidth;nt(x,we,je),ie.viewOffset=Un(er(x.doc,ie.viewFrom)),x.display.mover.style.top=ie.viewOffset+"px";var mt=Qt(x);if(!lt&&mt==0&&!ee.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var It=Yl(x);return mt>4&&(ie.lineDiv.style.display="none"),uu(x,ie.updateLineNumbers,ee.dims),mt>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,$l(It),Ne(ie.cursorDiv),Ne(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,lt&&(ie.lastWrapHeight=ee.wrapperHeight,ie.lastWrapWidth=ee.wrapperWidth,oa(x,400)),ie.updateLineNumbers=null,!0}function ds(x,ee){for(var ie=ee.viewport,re=!0;;re=!1){if(!re||!x.options.lineWrapping||ee.oldDisplayWidth==tr(x)){if(ie&&ie.top!=null&&(ie={top:Math.min(x.doc.height+kn(x.display)-yr(x),ie.top)}),ee.visible=Hi(x.display,x.doc,ie),ee.visible.from>=x.display.viewFrom&&ee.visible.to<=x.display.viewTo)break}else re&&(ee.visible=Hi(x.display,x.doc,ie));if(!us(x,ee))break;Li(x);var oe=Wo(x);Kt(x),cl(x,oe),wu(x,oe),ee.force=!1}ee.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(ee.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function as(x,ee){var ie=new Po(x,ee);if(us(x,ie)){Li(x),ds(x,ie);var re=Wo(x);Kt(x),cl(x,re),wu(x,re),ie.finish()}}function uu(x,ee,ie){var re=x.display,oe=x.options.lineNumbers,we=re.lineDiv,je=we.firstChild;function lt(aa){var Oa=aa.nextSibling;return de&&be&&x.display.currentWheelTarget==aa?aa.style.display="none":aa.parentNode.removeChild(aa),Oa}for(var mt=re.view,It=re.viewFrom,zn=0;zn<mt.length;zn++){var ar=mt[zn];if(!ar.hidden)if(!ar.node||ar.node.parentNode!=we){var ui=ga(x,ar,It,ie);we.insertBefore(ui,je)}else{for(;je!=ar.node;)je=lt(je);var $r=oe&&ee!=null&&ee<=It&&ar.lineNumber;ar.changes&&(Dt(ar.changes,"gutter")>-1&&($r=!1),Ni(x,ar,It,ie)),$r&&(Ne(ar.lineNumber),ar.lineNumber.appendChild(document.createTextNode(ua(x.options,It)))),je=ar.node.nextSibling}It+=ar.size}for(;je;)je=lt(je)}function Xs(x){var ee=x.gutters.offsetWidth;x.sizer.style.marginLeft=ee+"px"}function wu(x,ee){x.display.sizer.style.minHeight=ee.docHeight+"px",x.display.heightForcer.style.top=ee.docHeight+"px",x.display.gutters.style.height=ee.docHeight+x.display.barHeight+Mr(x)+"px"}function Rs(x){var ee=x.display,ie=ee.view;if(!(!ee.alignWidgets&&(!ee.gutters.firstChild||!x.options.fixedGutter))){for(var re=Ha(ee)-ee.scroller.scrollLeft+x.doc.scrollLeft,oe=ee.gutters.offsetWidth,we=re+"px",je=0;je<ie.length;je++)if(!ie[je].hidden){x.options.fixedGutter&&(ie[je].gutter&&(ie[je].gutter.style.left=we),ie[je].gutterBackground&&(ie[je].gutterBackground.style.left=we));var lt=ie[je].alignable;if(lt)for(var mt=0;mt<lt.length;mt++)lt[mt].style.left=we}x.options.fixedGutter&&(ee.gutters.style.left=re+oe+"px")}}function ws(x){if(!x.options.lineNumbers)return!1;var ee=x.doc,ie=ua(x.options,ee.first+ee.size-1),re=x.display;if(ie.length!=re.lineNumChars){var oe=re.measure.appendChild(ct("div",[ct("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),we=oe.firstChild.offsetWidth,je=oe.offsetWidth-we;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(we,re.lineGutter.offsetWidth-je)+1,re.lineNumWidth=re.lineNumInnerWidth+je,re.lineNumChars=re.lineNumInnerWidth?ie.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",Xs(x.display),!0}return!1}function Js(x,ee){for(var ie=[],re=!1,oe=0;oe<x.length;oe++){var we=x[oe],je=null;if(typeof we!="string"&&(je=we.style,we=we.className),we=="CodeMirror-linenumbers")if(ee)re=!0;else continue;ie.push({className:we,style:je})}return ee&&!re&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function js(x){var ee=x.gutters,ie=x.gutterSpecs;Ne(ee),x.lineGutter=null;for(var re=0;re<ie.length;++re){var oe=ie[re],we=oe.className,je=oe.style,lt=ee.appendChild(ct("div",null,"CodeMirror-gutter "+we));je&&(lt.style.cssText=je),we=="CodeMirror-linenumbers"&&(x.lineGutter=lt,lt.style.width=(x.lineNumWidth||1)+"px")}ee.style.display=ie.length?"":"none",Xs(x)}function Bs(x){js(x.display),jr(x),Rs(x)}function yu(x,ee,ie,re){var oe=this;this.input=ie,oe.scrollbarFiller=ct("div",null,"CodeMirror-scrollbar-filler"),oe.scrollbarFiller.setAttribute("cm-not-content","true"),oe.gutterFiller=ct("div",null,"CodeMirror-gutter-filler"),oe.gutterFiller.setAttribute("cm-not-content","true"),oe.lineDiv=_e("div",null,"CodeMirror-code"),oe.selectionDiv=ct("div",null,null,"position: relative; z-index: 1"),oe.cursorDiv=ct("div",null,"CodeMirror-cursors"),oe.measure=ct("div",null,"CodeMirror-measure"),oe.lineMeasure=ct("div",null,"CodeMirror-measure"),oe.lineSpace=_e("div",[oe.measure,oe.lineMeasure,oe.selectionDiv,oe.cursorDiv,oe.lineDiv],null,"position: relative; outline: none");var we=_e("div",[oe.lineSpace],"CodeMirror-lines");oe.mover=ct("div",[we],null,"position: relative"),oe.sizer=ct("div",[oe.mover],"CodeMirror-sizer"),oe.sizerWidth=null,oe.heightForcer=ct("div",null,null,"position: absolute; height: "+qt+"px; width: 1px;"),oe.gutters=ct("div",null,"CodeMirror-gutters"),oe.lineGutter=null,oe.scroller=ct("div",[oe.sizer,oe.heightForcer,oe.gutters],"CodeMirror-scroll"),oe.scroller.setAttribute("tabIndex","-1"),oe.wrapper=ct("div",[oe.scrollbarFiller,oe.gutterFiller,oe.scroller],"CodeMirror"),xe&&Be<8&&(oe.gutters.style.zIndex=-1,oe.scroller.style.paddingRight=0),!de&&!(E&&He)&&(oe.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(oe.wrapper):x(oe.wrapper)),oe.viewFrom=oe.viewTo=ee.first,oe.reportedViewFrom=oe.reportedViewTo=ee.first,oe.view=[],oe.renderedView=null,oe.externalMeasured=null,oe.viewOffset=0,oe.lastWrapHeight=oe.lastWrapWidth=0,oe.updateLineNumbers=null,oe.nativeBarWidth=oe.barHeight=oe.barWidth=0,oe.scrollbarsClipped=!1,oe.lineNumWidth=oe.lineNumInnerWidth=oe.lineNumChars=null,oe.alignWidgets=!1,oe.cachedCharWidth=oe.cachedTextHeight=oe.cachedPaddingH=null,oe.maxLine=null,oe.maxLineLength=0,oe.maxLineChanged=!1,oe.wheelDX=oe.wheelDY=oe.wheelStartX=oe.wheelStartY=null,oe.shift=!1,oe.selForContextMenu=null,oe.activeTouch=null,oe.gutterSpecs=Js(re.gutters,re.lineNumbers),js(oe),ie.init(oe)}var $s=0,Fs=null;xe?Fs=-.53:E?Fs=15:pe?Fs=-.7:Xe&&(Fs=-1/3);function bu(x){var ee=x.wheelDeltaX,ie=x.wheelDeltaY;return ee==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(ee=x.detail),ie==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ie=x.detail:ie==null&&(ie=x.wheelDelta),{x:ee,y:ie}}function fc(x){var ee=bu(x);return ee.x*=Fs,ee.y*=Fs,ee}function $u(x,ee){var ie=bu(ee),re=ie.x,oe=ie.y,we=x.display,je=we.scroller,lt=je.scrollWidth>je.clientWidth,mt=je.scrollHeight>je.clientHeight;if(re&<||oe&&mt){if(oe&&be&&de){e:for(var It=ee.target,zn=we.view;It!=je;It=It.parentNode)for(var ar=0;ar<zn.length;ar++)if(zn[ar].node==It){x.display.currentWheelTarget=It;break e}}if(re&&!E&&!De&&Fs!=null){oe&&mt&&_a(x,Math.max(0,je.scrollTop+oe*Fs)),Yo(x,Math.max(0,je.scrollLeft+re*Fs)),(!oe||oe&&mt)&&Fr(ee),we.wheelStartX=null;return}if(oe&&Fs!=null){var ui=oe*Fs,$r=x.doc.scrollTop,aa=$r+we.wrapper.clientHeight;ui<0?$r=Math.max(0,$r+ui-50):aa=Math.min(x.doc.height,aa+ui+50),as(x,{top:$r,bottom:aa})}$s<20&&(we.wheelStartX==null?(we.wheelStartX=je.scrollLeft,we.wheelStartY=je.scrollTop,we.wheelDX=re,we.wheelDY=oe,setTimeout(function(){if(we.wheelStartX!=null){var Oa=je.scrollLeft-we.wheelStartX,uo=je.scrollTop-we.wheelStartY,Oo=uo&&we.wheelDY&&uo/we.wheelDY||Oa&&we.wheelDX&&Oa/we.wheelDX;we.wheelStartX=we.wheelStartY=null,Oo&&(Fs=(Fs*$s+Oo)/($s+1),++$s)}},200)):(we.wheelDX+=re,we.wheelDY+=oe))}}var Hs=function(x,ee){this.ranges=x,this.primIndex=ee};Hs.prototype.primary=function(){return this.ranges[this.primIndex]},Hs.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var ee=0;ee<this.ranges.length;ee++){var ie=this.ranges[ee],re=x.ranges[ee];if(!ni(ie.anchor,re.anchor)||!ni(ie.head,re.head))return!1}return!0},Hs.prototype.deepCopy=function(){for(var x=[],ee=0;ee<this.ranges.length;ee++)x[ee]=new rs(No(this.ranges[ee].anchor),No(this.ranges[ee].head));return new Hs(x,this.primIndex)},Hs.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Hs.prototype.contains=function(x,ee){ee||(ee=x);for(var ie=0;ie<this.ranges.length;ie++){var re=this.ranges[ie];if(Di(ee,re.from())>=0&&Di(x,re.to())<=0)return ie}return-1};var rs=function(x,ee){this.anchor=x,this.head=ee};rs.prototype.from=function(){return za(this.anchor,this.head)},rs.prototype.to=function(){return xa(this.anchor,this.head)},rs.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Zs(x,ee,ie){var re=x&&x.options.selectionsMayTouch,oe=ee[ie];ee.sort(function(ui,$r){return Di(ui.from(),$r.from())}),ie=Dt(ee,oe);for(var we=1;we<ee.length;we++){var je=ee[we],lt=ee[we-1],mt=Di(lt.to(),je.from());if(re&&!je.empty()?mt>0:mt>=0){var It=za(lt.from(),je.from()),zn=xa(lt.to(),je.to()),ar=lt.empty()?je.from()==je.head:lt.from()==lt.head;we<=ie&&--ie,ee.splice(--we,2,new rs(ar?zn:It,ar?It:zn))}}return new Hs(ee,ie)}function Au(x,ee){return new Hs([new rs(x,ee||x)],0)}function _u(x){return x.text?br(x.from.line+x.text.length-1,pn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Os(x,ee){if(Di(x,ee.from)<0)return x;if(Di(x,ee.to)<=0)return _u(ee);var ie=x.line+ee.text.length-(ee.to.line-ee.from.line)-1,re=x.ch;return x.line==ee.to.line&&(re+=_u(ee).ch-ee.to.ch),br(ie,re)}function gs(x,ee){for(var ie=[],re=0;re<x.sel.ranges.length;re++){var oe=x.sel.ranges[re];ie.push(new rs(Os(oe.anchor,ee),Os(oe.head,ee)))}return Zs(x.cm,ie,x.sel.primIndex)}function fs(x,ee,ie){return x.line==ee.line?br(ie.line,x.ch-ee.ch+ie.ch):br(ie.line+(x.line-ee.line),x.ch)}function Mu(x,ee,ie){for(var re=[],oe=br(x.first,0),we=oe,je=0;je<ee.length;je++){var lt=ee[je],mt=fs(lt.from,oe,we),It=fs(_u(lt),oe,we);if(oe=lt.to,we=It,ie=="around"){var zn=x.sel.ranges[je],ar=Di(zn.head,zn.anchor)<0;re[je]=new rs(ar?It:mt,ar?mt:It)}else re[je]=new rs(mt,mt)}return new Hs(re,x.sel.primIndex)}function Gs(x){x.doc.mode=An(x.options,x.doc.modeOption),mu(x)}function mu(x){x.doc.iter(function(ee){ee.stateAfter&&(ee.stateAfter=null),ee.styles&&(ee.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,oa(x,100),x.state.modeGen++,x.curOp&&jr(x)}function Hl(x,ee){return ee.from.ch==0&&ee.to.ch==0&&pn(ee.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function qa(x,ee,ie,re){function oe($o){return ie?ie[$o]:null}function we($o,Co,tl){yi($o,Co,tl,re),kr($o,"change",$o,ee)}function je($o,Co){for(var tl=[],Ol=$o;Ol<Co;++Ol)tl.push(new _r(It[Ol],oe(Ol),re));return tl}var lt=ee.from,mt=ee.to,It=ee.text,zn=er(x,lt.line),ar=er(x,mt.line),ui=pn(It),$r=oe(It.length-1),aa=mt.line-lt.line;if(ee.full)x.insert(0,je(0,It.length)),x.remove(It.length,x.size-It.length);else if(Hl(x,ee)){var Oa=je(0,It.length-1);we(ar,ar.text,$r),aa&&x.remove(lt.line,aa),Oa.length&&x.insert(lt.line,Oa)}else if(zn==ar)if(It.length==1)we(zn,zn.text.slice(0,lt.ch)+ui+zn.text.slice(mt.ch),$r);else{var uo=je(1,It.length-1);uo.push(new _r(ui+zn.text.slice(mt.ch),$r,re)),we(zn,zn.text.slice(0,lt.ch)+It[0],oe(0)),x.insert(lt.line+1,uo)}else if(It.length==1)we(zn,zn.text.slice(0,lt.ch)+It[0]+ar.text.slice(mt.ch),oe(0)),x.remove(lt.line+1,aa);else{we(zn,zn.text.slice(0,lt.ch)+It[0],oe(0)),we(ar,ui+ar.text.slice(mt.ch),$r);var Oo=je(1,It.length-1);aa>1&&x.remove(lt.line+1,aa-1),x.insert(lt.line+1,Oo)}kr(x,"change",x,ee)}function jo(x,ee,ie){function re(oe,we,je){if(oe.linked)for(var lt=0;lt<oe.linked.length;++lt){var mt=oe.linked[lt];if(mt.doc!=we){var It=je&&mt.sharedHist;ie&&!It||(ee(mt.doc,It),re(mt.doc,oe,It))}}}re(x,null,!0)}function hl(x,ee){if(ee.cm)throw new Error("This document is already in use.");x.doc=ee,ee.cm=x,Xi(x),Gs(x),Il(x),x.options.lineWrapping||Jn(x),x.options.mode=ee.modeOption,jr(x)}function Il(x){(x.doc.direction=="rtl"?ft:Ye)(x.display.lineDiv,"CodeMirror-rtl")}function Ds(x){ba(x,function(){Il(x),jr(x)})}function ks(x){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=x||1}function cu(x,ee){var ie={from:No(ee.from),to:_u(ee),text:Gr(x,ee.from,ee.to)};return un(x,ie,ee.from.line,ee.to.line+1),jo(x,function(re){return un(re,ie,ee.from.line,ee.to.line+1)},!0),ie}function Du(x){for(;x.length;){var ee=pn(x);if(ee.ranges)x.pop();else break}}function oc(x,ee){if(ee)return Du(x.done),pn(x.done);if(x.done.length&&!pn(x.done).ranges)return pn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),pn(x.done)}function Re(x,ee,ie,re){var oe=x.history;oe.undone.length=0;var we=+new Date,je,lt;if((oe.lastOp==re||oe.lastOrigin==ee.origin&&ee.origin&&(ee.origin.charAt(0)=="+"&&oe.lastModTime>we-(x.cm?x.cm.options.historyEventDelay:500)||ee.origin.charAt(0)=="*"))&&(je=oc(oe,oe.lastOp==re)))lt=pn(je.changes),Di(ee.from,ee.to)==0&&Di(ee.from,lt.to)==0?lt.to=_u(ee):je.changes.push(cu(x,ee));else{var mt=pn(oe.done);for((!mt||!mt.ranges)&&Rt(x.sel,oe.done),je={changes:[cu(x,ee)],generation:oe.generation},oe.done.push(je);oe.done.length>oe.undoDepth;)oe.done.shift(),oe.done[0].ranges||oe.done.shift()}oe.done.push(ie),oe.generation=++oe.maxGeneration,oe.lastModTime=oe.lastSelTime=we,oe.lastOp=oe.lastSelOp=re,oe.lastOrigin=oe.lastSelOrigin=ee.origin,lt||Lt(x,"historyAdded")}function Ge(x,ee,ie,re){var oe=ee.charAt(0);return oe=="*"||oe=="+"&&ie.ranges.length==re.ranges.length&&ie.somethingSelected()==re.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function St(x,ee,ie,re){var oe=x.history,we=re&&re.origin;ie==oe.lastSelOp||we&&oe.lastSelOrigin==we&&(oe.lastModTime==oe.lastSelTime&&oe.lastOrigin==we||Ge(x,we,pn(oe.done),ee))?oe.done[oe.done.length-1]=ee:Rt(ee,oe.done),oe.lastSelTime=+new Date,oe.lastSelOrigin=we,oe.lastSelOp=ie,re&&re.clearRedo!==!1&&Du(oe.undone)}function Rt(x,ee){var ie=pn(ee);ie&&ie.ranges&&ie.equals(x)||ee.push(x)}function un(x,ee,ie,re){var oe=ee["spans_"+x.id],we=0;x.iter(Math.max(x.first,ie),Math.min(x.first+x.size,re),function(je){je.markedSpans&&((oe||(oe=ee["spans_"+x.id]={}))[we]=je.markedSpans),++we})}function vn(x){if(!x)return null;for(var ee,ie=0;ie<x.length;++ie)x[ie].marker.explicitlyCleared?ee||(ee=x.slice(0,ie)):ee&&ee.push(x[ie]);return ee?ee.length?ee:null:x}function ir(x,ee){var ie=ee["spans_"+x.id];if(!ie)return null;for(var re=[],oe=0;oe<ee.text.length;++oe)re.push(vn(ie[oe]));return re}function Ar(x,ee){var ie=ir(x,ee),re=$a(x,ee);if(!ie)return re;if(!re)return ie;for(var oe=0;oe<ie.length;++oe){var we=ie[oe],je=re[oe];if(we&&je)e:for(var lt=0;lt<je.length;++lt){for(var mt=je[lt],It=0;It<we.length;++It)if(we[It].marker==mt.marker)continue e;we.push(mt)}else je&&(ie[oe]=je)}return ie}function hr(x,ee,ie){for(var re=[],oe=0;oe<x.length;++oe){var we=x[oe];if(we.ranges){re.push(ie?Hs.prototype.deepCopy.call(we):we);continue}var je=we.changes,lt=[];re.push({changes:lt});for(var mt=0;mt<je.length;++mt){var It=je[mt],zn=void 0;if(lt.push({from:It.from,to:It.to,text:It.text}),ee)for(var ar in It)(zn=ar.match(/^spans_(\d+)$/))&&Dt(ee,Number(zn[1]))>-1&&(pn(lt)[ar]=It[ar],delete It[ar])}}return re}function Qr(x,ee,ie,re){if(re){var oe=x.anchor;if(ie){var we=Di(ee,oe)<0;we!=Di(ie,oe)<0?(oe=ee,ee=ie):we!=Di(ee,ie)<0&&(ee=ie)}return new rs(oe,ee)}else return new rs(ie||ee,ee)}function xi(x,ee,ie,re,oe){oe==null&&(oe=x.cm&&(x.cm.display.shift||x.extend)),sa(x,new Hs([Qr(x.sel.primary(),ee,ie,oe)],0),re)}function qn(x,ee,ie){for(var re=[],oe=x.cm&&(x.cm.display.shift||x.extend),we=0;we<x.sel.ranges.length;we++)re[we]=Qr(x.sel.ranges[we],ee[we],null,oe);var je=Zs(x.cm,re,x.sel.primIndex);sa(x,je,ie)}function Ki(x,ee,ie,re){var oe=x.sel.ranges.slice(0);oe[ee]=ie,sa(x,Zs(x.cm,oe,x.sel.primIndex),re)}function $i(x,ee,ie,re){sa(x,Au(ee,ie),re)}function na(x,ee,ie){var re={ranges:ee.ranges,update:function(oe){this.ranges=[];for(var we=0;we<oe.length;we++)this.ranges[we]=new rs(Ea(x,oe[we].anchor),Ea(x,oe[we].head))},origin:ie&&ie.origin};return Lt(x,"beforeSelectionChange",x,re),x.cm&&Lt(x.cm,"beforeSelectionChange",x.cm,re),re.ranges!=ee.ranges?Zs(x.cm,re.ranges,re.ranges.length-1):ee}function Ia(x,ee,ie){var re=x.history.done,oe=pn(re);oe&&oe.ranges?(re[re.length-1]=ee,ja(x,ee,ie)):sa(x,ee,ie)}function sa(x,ee,ie){ja(x,ee,ie),St(x,x.sel,x.cm?x.cm.curOp.id:NaN,ie)}function ja(x,ee,ie){(En(x,"beforeSelectionChange")||x.cm&&En(x.cm,"beforeSelectionChange"))&&(ee=na(x,ee,ie));var re=ie&&ie.bias||(Di(ee.primary().head,x.sel.primary().head)<0?-1:1);Ra(x,Uo(x,ee,re,!0)),!(ie&&ie.scroll===!1)&&x.cm&&qo(x.cm)}function Ra(x,ee){ee.equals(x.sel)||(x.sel=ee,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,cr(x.cm)),kr(x,"cursorActivity",x))}function oo(x){Ra(x,Uo(x,x.sel,null,!1))}function Uo(x,ee,ie,re){for(var oe,we=0;we<ee.ranges.length;we++){var je=ee.ranges[we],lt=ee.ranges.length==x.sel.ranges.length&&x.sel.ranges[we],mt=To(x,je.anchor,lt&<.anchor,ie,re),It=To(x,je.head,lt&<.head,ie,re);(oe||mt!=je.anchor||It!=je.head)&&(oe||(oe=ee.ranges.slice(0,we)),oe[we]=new rs(mt,It))}return oe?Zs(x.cm,oe,ee.primIndex):ee}function lo(x,ee,ie,re,oe){var we=er(x,ee.line);if(we.markedSpans)for(var je=0;je<we.markedSpans.length;++je){var lt=we.markedSpans[je],mt=lt.marker,It="selectLeft"in mt?!mt.selectLeft:mt.inclusiveLeft,zn="selectRight"in mt?!mt.selectRight:mt.inclusiveRight;if((lt.from==null||(It?lt.from<=ee.ch:lt.from<ee.ch))&&(lt.to==null||(zn?lt.to>=ee.ch:lt.to>ee.ch))){if(oe&&(Lt(mt,"beforeCursorEnter"),mt.explicitlyCleared))if(we.markedSpans){--je;continue}else break;if(!mt.atomic)continue;if(ie){var ar=mt.find(re<0?1:-1),ui=void 0;if((re<0?zn:It)&&(ar=yl(x,ar,-re,ar&&ar.line==ee.line?we:null)),ar&&ar.line==ee.line&&(ui=Di(ar,ie))&&(re<0?ui<0:ui>0))return lo(x,ar,ee,re,oe)}var $r=mt.find(re<0?-1:1);return(re<0?It:zn)&&($r=yl(x,$r,re,$r.line==ee.line?we:null)),$r?lo(x,$r,ee,re,oe):null}}return ee}function To(x,ee,ie,re,oe){var we=re||1,je=lo(x,ee,ie,we,oe)||!oe&&lo(x,ee,ie,we,!0)||lo(x,ee,ie,-we,oe)||!oe&&lo(x,ee,ie,-we,!0);return je||(x.cantEdit=!0,br(x.first,0))}function yl(x,ee,ie,re){return ie<0&&ee.ch==0?ee.line>x.first?Ea(x,br(ee.line-1)):null:ie>0&&ee.ch==(re||er(x,ee.line)).text.length?ee.line<x.first+x.size-1?br(ee.line+1,0):null:new br(ee.line,ee.ch+ie)}function Kl(x){x.setSelection(br(x.firstLine(),0),br(x.lastLine()),Et)}function bo(x,ee,ie){var re={canceled:!1,from:ee.from,to:ee.to,text:ee.text,origin:ee.origin,cancel:function(){return re.canceled=!0}};return ie&&(re.update=function(oe,we,je,lt){oe&&(re.from=Ea(x,oe)),we&&(re.to=Ea(x,we)),je&&(re.text=je),lt!==void 0&&(re.origin=lt)}),Lt(x,"beforeChange",x,re),x.cm&&Lt(x.cm,"beforeChange",x.cm,re),re.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function ma(x,ee,ie){if(x.cm){if(!x.cm.curOp)return Ta(x.cm,ma)(x,ee,ie);if(x.cm.state.suppressEdits)return}if(!((En(x,"beforeChange")||x.cm&&En(x.cm,"beforeChange"))&&(ee=bo(x,ee,!0),!ee))){var re=Fl&&!ie&&Go(x,ee.from,ee.to);if(re)for(var oe=re.length-1;oe>=0;--oe)fa(x,{from:re[oe].from,to:re[oe].to,text:oe?[""]:ee.text,origin:ee.origin});else fa(x,ee)}}function fa(x,ee){if(!(ee.text.length==1&&ee.text[0]==""&&Di(ee.from,ee.to)==0)){var ie=gs(x,ee);Re(x,ee,ie,x.cm?x.cm.curOp.id:NaN),Mo(x,ee,ie,$a(x,ee));var re=[];jo(x,function(oe,we){!we&&Dt(re,oe.history)==-1&&(Ul(oe.history,ee),re.push(oe.history)),Mo(oe,ee,null,$a(oe,ee))})}}function Aa(x,ee,ie){var re=x.cm&&x.cm.state.suppressEdits;if(!(re&&!ie)){for(var oe=x.history,we,je=x.sel,lt=ee=="undo"?oe.done:oe.undone,mt=ee=="undo"?oe.undone:oe.done,It=0;It<lt.length&&(we=lt[It],!(ie?we.ranges&&!we.equals(x.sel):!we.ranges));It++);if(It!=lt.length){for(oe.lastOrigin=oe.lastSelOrigin=null;;)if(we=lt.pop(),we.ranges){if(Rt(we,mt),ie&&!we.equals(x.sel)){sa(x,we,{clearRedo:!1});return}je=we}else if(re){lt.push(we);return}else break;var zn=[];Rt(je,mt),mt.push({changes:zn,generation:oe.generation}),oe.generation=we.generation||++oe.maxGeneration;for(var ar=En(x,"beforeChange")||x.cm&&En(x.cm,"beforeChange"),ui=function(Oa){var uo=we.changes[Oa];if(uo.origin=ee,ar&&!bo(x,uo,!1))return lt.length=0,{};zn.push(cu(x,uo));var Oo=Oa?gs(x,uo):pn(lt);Mo(x,uo,Oo,Ar(x,uo)),!Oa&&x.cm&&x.cm.scrollIntoView({from:uo.from,to:_u(uo)});var $o=[];jo(x,function(Co,tl){!tl&&Dt($o,Co.history)==-1&&(Ul(Co.history,uo),$o.push(Co.history)),Mo(Co,uo,null,Ar(Co,uo))})},$r=we.changes.length-1;$r>=0;--$r){var aa=ui($r);if(aa)return aa.v}}}}function so(x,ee){if(ee!=0&&(x.first+=ee,x.sel=new Hs(sr(x.sel.ranges,function(oe){return new rs(br(oe.anchor.line+ee,oe.anchor.ch),br(oe.head.line+ee,oe.head.ch))}),x.sel.primIndex),x.cm)){jr(x.cm,x.first,x.first-ee,ee);for(var ie=x.cm.display,re=ie.viewFrom;re<ie.viewTo;re++)li(x.cm,re,"gutter")}}function Mo(x,ee,ie,re){if(x.cm&&!x.cm.curOp)return Ta(x.cm,Mo)(x,ee,ie,re);if(ee.to.line<x.first){so(x,ee.text.length-1-(ee.to.line-ee.from.line));return}if(!(ee.from.line>x.lastLine())){if(ee.from.line<x.first){var oe=ee.text.length-1-(x.first-ee.from.line);so(x,oe),ee={from:br(x.first,0),to:br(ee.to.line+oe,ee.to.ch),text:[pn(ee.text)],origin:ee.origin}}var we=x.lastLine();ee.to.line>we&&(ee={from:ee.from,to:br(we,er(x,we).text.length),text:[ee.text[0]],origin:ee.origin}),ee.removed=Gr(x,ee.from,ee.to),ie||(ie=gs(x,ee)),x.cm?Dl(x.cm,ee,re):qa(x,ee,re),ja(x,ie,Et),x.cantEdit&&To(x,br(x.firstLine(),0))&&(x.cantEdit=!1)}}function Dl(x,ee,ie){var re=x.doc,oe=x.display,we=ee.from,je=ee.to,lt=!1,mt=we.line;x.options.lineWrapping||(mt=bi(Ft(er(re,we.line))),re.iter(mt,je.line+1,function($r){if($r==oe.maxLine)return lt=!0,!0})),re.sel.contains(ee.from,ee.to)>-1&&cr(x),qa(re,ee,ie,ro(x)),x.options.lineWrapping||(re.iter(mt,we.line+ee.text.length,function($r){var aa=pr($r);aa>oe.maxLineLength&&(oe.maxLine=$r,oe.maxLineLength=aa,oe.maxLineChanged=!0,lt=!1)}),lt&&(x.curOp.updateMaxLine=!0)),_l(re,we.line),oa(x,400);var It=ee.text.length-(je.line-we.line)-1;ee.full?jr(x):we.line==je.line&&ee.text.length==1&&!Hl(x.doc,ee)?li(x,we.line,"text"):jr(x,we.line,je.line+1,It);var zn=En(x,"changes"),ar=En(x,"change");if(ar||zn){var ui={from:we,to:je,text:ee.text,removed:ee.removed,origin:ee.origin};ar&&kr(x,"change",x,ui),zn&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(ui)}x.display.selForContextMenu=null}function ol(x,ee,ie,re,oe){var we;re||(re=ie),Di(re,ie)<0&&(we=[re,ie],ie=we[0],re=we[1]),typeof ee=="string"&&(ee=x.splitLines(ee)),ma(x,{from:ie,to:re,text:ee,origin:oe})}function sl(x,ee,ie,re){ie<x.line?x.line+=re:ee<x.line&&(x.line=ee,x.ch=0)}function Zl(x,ee,ie,re){for(var oe=0;oe<x.length;++oe){var we=x[oe],je=!0;if(we.ranges){we.copied||(we=x[oe]=we.deepCopy(),we.copied=!0);for(var lt=0;lt<we.ranges.length;lt++)sl(we.ranges[lt].anchor,ee,ie,re),sl(we.ranges[lt].head,ee,ie,re);continue}for(var mt=0;mt<we.changes.length;++mt){var It=we.changes[mt];if(ie<It.from.line)It.from=br(It.from.line+re,It.from.ch),It.to=br(It.to.line+re,It.to.ch);else if(ee<=It.to.line){je=!1;break}}je||(x.splice(0,oe+1),oe=0)}}function Ul(x,ee){var ie=ee.from.line,re=ee.to.line,oe=ee.text.length-(re-ie)-1;Zl(x.done,ie,re,oe),Zl(x.undone,ie,re,oe)}function ts(x,ee,ie,re){var oe=ee,we=ee;return typeof ee=="number"?we=er(x,Lo(x,ee)):oe=bi(ee),oe==null?null:(re(we,oe)&&x.cm&&li(x.cm,oe,ie),we)}function Jl(x){this.lines=x,this.parent=null;for(var ee=0,ie=0;ie<x.length;++ie)x[ie].parent=this,ee+=x[ie].height;this.height=ee}Jl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,ee){for(var ie=x,re=x+ee;ie<re;++ie){var oe=this.lines[ie];this.height-=oe.height,Yr(oe),kr(oe,"delete")}this.lines.splice(x,ee)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,ee,ie){this.height+=ie,this.lines=this.lines.slice(0,x).concat(ee).concat(this.lines.slice(x));for(var re=0;re<ee.length;++re)ee[re].parent=this},iterN:function(x,ee,ie){for(var re=x+ee;x<re;++x)if(ie(this.lines[x]))return!0}};function Ls(x){this.children=x;for(var ee=0,ie=0,re=0;re<x.length;++re){var oe=x[re];ee+=oe.chunkSize(),ie+=oe.height,oe.parent=this}this.size=ee,this.height=ie,this.parent=null}Ls.prototype={chunkSize:function(){return this.size},removeInner:function(x,ee){this.size-=ee;for(var ie=0;ie<this.children.length;++ie){var re=this.children[ie],oe=re.chunkSize();if(x<oe){var we=Math.min(ee,oe-x),je=re.height;if(re.removeInner(x,we),this.height-=je-re.height,oe==we&&(this.children.splice(ie--,1),re.parent=null),(ee-=we)==0)break;x=0}else x-=oe}if(this.size-ee<25&&(this.children.length>1||!(this.children[0]instanceof Jl))){var lt=[];this.collapse(lt),this.children=[new Jl(lt)],this.children[0].parent=this}},collapse:function(x){for(var ee=0;ee<this.children.length;++ee)this.children[ee].collapse(x)},insertInner:function(x,ee,ie){this.size+=ee.length,this.height+=ie;for(var re=0;re<this.children.length;++re){var oe=this.children[re],we=oe.chunkSize();if(x<=we){if(oe.insertInner(x,ee,ie),oe.lines&&oe.lines.length>50){for(var je=oe.lines.length%25+25,lt=je;lt<oe.lines.length;){var mt=new Jl(oe.lines.slice(lt,lt+=25));oe.height-=mt.height,this.children.splice(++re,0,mt),mt.parent=this}oe.lines=oe.lines.slice(0,je),this.maybeSpill()}break}x-=we}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var ee=x.children.splice(x.children.length-5,5),ie=new Ls(ee);if(x.parent){x.size-=ie.size,x.height-=ie.height;var oe=Dt(x.parent.children,x);x.parent.children.splice(oe+1,0,ie)}else{var re=new Ls(x.children);re.parent=x,x.children=[re,ie],x=re}ie.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,ee,ie){for(var re=0;re<this.children.length;++re){var oe=this.children[re],we=oe.chunkSize();if(x<we){var je=Math.min(ee,we-x);if(oe.iterN(x,je,ie))return!0;if((ee-=je)==0)break;x=0}else x-=we}}};var Is=function(x,ee,ie){if(ie)for(var re in ie)ie.hasOwnProperty(re)&&(this[re]=ie[re]);this.doc=x,this.node=ee};Is.prototype.clear=function(){var x=this.doc.cm,ee=this.line.widgets,ie=this.line,re=bi(ie);if(!(re==null||!ee)){for(var oe=0;oe<ee.length;++oe)ee[oe]==this&&ee.splice(oe--,1);ee.length||(ie.widgets=null);var we=xo(this);Oi(ie,Math.max(0,ie.height-we)),x&&(ba(x,function(){Ql(x,ie,-we),li(x,re,"widget")}),kr(x,"lineWidgetCleared",x,this,re))}},Is.prototype.changed=function(){var x=this,ee=this.height,ie=this.doc.cm,re=this.line;this.height=null;var oe=xo(this)-ee;oe&&(Wr(this.doc,re)||Oi(re,re.height+oe),ie&&ba(ie,function(){ie.curOp.forceUpdate=!0,Ql(ie,re,oe),kr(ie,"lineWidgetChanged",ie,x,bi(re))}))},en(Is);function Ql(x,ee,ie){Un(ee)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&Ao(x,ie)}function du(x,ee,ie,re){var oe=new Is(x,ie,re),we=x.cm;return we&&oe.noHScroll&&(we.display.alignWidgets=!0),ts(x,ee,"widget",function(je){var lt=je.widgets||(je.widgets=[]);if(oe.insertAt==null?lt.push(oe):lt.splice(Math.min(lt.length-1,Math.max(0,oe.insertAt)),0,oe),oe.line=je,we&&!Wr(x,je)){var mt=Un(je)<x.scrollTop;Oi(je,je.height+xo(oe)),mt&&Ao(we,oe.height),we.curOp.forceUpdate=!0}return!0}),we&&kr(we,"lineWidgetAdded",we,oe,typeof ee=="number"?ee:bi(ee)),oe}var os=0,As=function(x,ee){this.lines=[],this.type=ee,this.doc=x,this.id=++os};As.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,ee=x&&!x.curOp;if(ee&&Gi(x),En(this,"clear")){var ie=this.find();ie&&kr(this,"clear",ie.from,ie.to)}for(var re=null,oe=null,we=0;we<this.lines.length;++we){var je=this.lines[we],lt=Cr(je.markedSpans,this);x&&!this.collapsed?li(x,bi(je),"text"):x&&(lt.to!=null&&(oe=bi(je)),lt.from!=null&&(re=bi(je))),je.markedSpans=Ii(je.markedSpans,lt),lt.from==null&&this.collapsed&&!Wr(this.doc,je)&&x&&Oi(je,Yi(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var mt=0;mt<this.lines.length;++mt){var It=Ft(this.lines[mt]),zn=pr(It);zn>x.display.maxLineLength&&(x.display.maxLine=It,x.display.maxLineLength=zn,x.display.maxLineChanged=!0)}re!=null&&x&&this.collapsed&&jr(x,re,oe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&oo(x.doc)),x&&kr(x,"markerCleared",x,this,re,oe),ee&&ho(x),this.parent&&this.parent.clear()}},As.prototype.find=function(x,ee){x==null&&this.type=="bookmark"&&(x=1);for(var ie,re,oe=0;oe<this.lines.length;++oe){var we=this.lines[oe],je=Cr(we.markedSpans,this);if(je.from!=null&&(ie=br(ee?we:bi(we),je.from),x==-1))return ie;if(je.to!=null&&(re=br(ee?we:bi(we),je.to),x==1))return re}return ie&&{from:ie,to:re}},As.prototype.changed=function(){var x=this,ee=this.find(-1,!0),ie=this,re=this.doc.cm;!ee||!re||ba(re,function(){var oe=ee.line,we=bi(ee.line),je=Da(re,we);if(je&&(ya(je),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!Wr(ie.doc,oe)&&ie.height!=null){var lt=ie.height;ie.height=null;var mt=xo(ie)-lt;mt&&Oi(oe,oe.height+mt)}kr(re,"markerChanged",re,x)})},As.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(!ee.maybeHiddenMarkers||Dt(ee.maybeHiddenMarkers,this)==-1)&&(ee.maybeUnhiddenMarkers||(ee.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},As.prototype.detachLine=function(x){if(this.lines.splice(Dt(this.lines,x),1),!this.lines.length&&this.doc.cm){var ee=this.doc.cm.curOp;(ee.maybeHiddenMarkers||(ee.maybeHiddenMarkers=[])).push(this)}},en(As);function xs(x,ee,ie,re,oe){if(re&&re.shared)return wo(x,ee,ie,re,oe);if(x.cm&&!x.cm.curOp)return Ta(x.cm,xs)(x,ee,ie,re,oe);var we=new As(x,oe),je=Di(ee,ie);if(re&&xt(re,we,!1),je>0||je==0&&we.clearWhenEmpty!==!1)return we;if(we.replacedWith&&(we.collapsed=!0,we.widgetNode=_e("span",[we.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||we.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(we.widgetNode.insertLeft=!0)),we.collapsed){if(wt(x,ee.line,ee,ie,we)||ee.line!=ie.line&&wt(x,ie.line,ee,ie,we))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nn()}we.addToHistory&&Re(x,{from:ee,to:ie,origin:"markText"},x.sel,NaN);var lt=ee.line,mt=x.cm,It;if(x.iter(lt,ie.line+1,function(ar){mt&&we.collapsed&&!mt.options.lineWrapping&&Ft(ar)==mt.display.maxLine&&(It=!0),we.collapsed&<!=ee.line&&Oi(ar,0),Ma(ar,new Ir(we,lt==ee.line?ee.ch:null,lt==ie.line?ie.ch:null)),++lt}),we.collapsed&&x.iter(ee.line,ie.line+1,function(ar){Wr(x,ar)&&Oi(ar,0)}),we.clearOnEnter&&sn(we,"beforeCursorEnter",function(){return we.clear()}),we.readOnly&&(Wn(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),we.collapsed&&(we.id=++os,we.atomic=!0),mt){if(It&&(mt.curOp.updateMaxLine=!0),we.collapsed)jr(mt,ee.line,ie.line+1);else if(we.className||we.startStyle||we.endStyle||we.css||we.attributes||we.title)for(var zn=ee.line;zn<=ie.line;zn++)li(mt,zn,"text");we.atomic&&oo(mt.doc),kr(mt,"markerAdded",mt,we)}return we}var zl=function(x,ee){this.markers=x,this.primary=ee;for(var ie=0;ie<x.length;++ie)x[ie].parent=this};zl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();kr(this,"clear")}},zl.prototype.find=function(x,ee){return this.primary.find(x,ee)},en(zl);function wo(x,ee,ie,re,oe){re=xt(re),re.shared=!1;var we=[xs(x,ee,ie,re,oe)],je=we[0],lt=re.widgetNode;return jo(x,function(mt){lt&&(re.widgetNode=lt.cloneNode(!0)),we.push(xs(mt,Ea(mt,ee),Ea(mt,ie),re,oe));for(var It=0;It<mt.linked.length;++It)if(mt.linked[It].isParent)return;je=pn(we)}),new zl(we,je)}function dl(x){return x.findMarks(br(x.first,0),x.clipPos(br(x.lastLine())),function(ee){return ee.parent})}function Ml(x,ee){for(var ie=0;ie<ee.length;ie++){var re=ee[ie],oe=re.find(),we=x.clipPos(oe.from),je=x.clipPos(oe.to);if(Di(we,je)){var lt=xs(x,we,je,re.primary,re.primary.type);re.markers.push(lt),lt.parent=re}}}function _o(x){for(var ee=function(re){var oe=x[re],we=[oe.primary.doc];jo(oe.primary.doc,function(mt){return we.push(mt)});for(var je=0;je<oe.markers.length;je++){var lt=oe.markers[je];Dt(we,lt.doc)==-1&&(lt.parent=null,oe.markers.splice(je--,1))}},ie=0;ie<x.length;ie++)ee(ie)}var ys=0,co=function(x,ee,ie,re,oe){if(!(this instanceof co))return new co(x,ee,ie,re,oe);ie==null&&(ie=0),Ls.call(this,[new Jl([new _r("",null)])]),this.first=ie,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ie;var we=br(ie,0);this.sel=Au(we),this.history=new ks(null),this.id=++ys,this.modeOption=ee,this.lineSep=re,this.direction=oe=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),qa(this,{from:we,to:we,text:x}),sa(this,Au(we),Et)};co.prototype=me(Ls.prototype,{constructor:co,iter:function(x,ee,ie){ie?this.iterN(x-this.first,ee-x,ie):this.iterN(this.first,this.first+this.size,x)},insert:function(x,ee){for(var ie=0,re=0;re<ee.length;++re)ie+=ee[re].height;this.insertInner(x-this.first,ee,ie)},remove:function(x,ee){this.removeInner(x-this.first,ee)},getValue:function(x){var ee=ra(this,this.first,this.first+this.size);return x===!1?ee:ee.join(x||this.lineSeparator())},setValue:al(function(x){var ee=br(this.first,0),ie=this.first+this.size-1;ma(this,{from:ee,to:br(ie,er(this,ie).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&go(this.cm,0,0),sa(this,Au(ee),Et)}),replaceRange:function(x,ee,ie,re){ee=Ea(this,ee),ie=ie?Ea(this,ie):ee,ol(this,x,ee,ie,re)},getRange:function(x,ee,ie){var re=Gr(this,Ea(this,x),Ea(this,ee));return ie===!1?re:re.join(ie||this.lineSeparator())},getLine:function(x){var ee=this.getLineHandle(x);return ee&&ee.text},getLineHandle:function(x){if(Ti(this,x))return er(this,x)},getLineNumber:function(x){return bi(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=er(this,x)),Ft(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return Ea(this,x)},getCursor:function(x){var ee=this.sel.primary(),ie;return x==null||x=="head"?ie=ee.head:x=="anchor"?ie=ee.anchor:x=="end"||x=="to"||x===!1?ie=ee.to():ie=ee.from(),ie},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:al(function(x,ee,ie){$i(this,Ea(this,typeof x=="number"?br(x,ee||0):x),null,ie)}),setSelection:al(function(x,ee,ie){$i(this,Ea(this,x),Ea(this,ee||x),ie)}),extendSelection:al(function(x,ee,ie){xi(this,Ea(this,x),ee&&Ea(this,ee),ie)}),extendSelections:al(function(x,ee){qn(this,gi(this,x),ee)}),extendSelectionsBy:al(function(x,ee){var ie=sr(this.sel.ranges,x);qn(this,gi(this,ie),ee)}),setSelections:al(function(x,ee,ie){if(x.length){for(var re=[],oe=0;oe<x.length;oe++)re[oe]=new rs(Ea(this,x[oe].anchor),Ea(this,x[oe].head));ee==null&&(ee=Math.min(x.length-1,this.sel.primIndex)),sa(this,Zs(this.cm,re,ee),ie)}}),addSelection:al(function(x,ee,ie){var re=this.sel.ranges.slice(0);re.push(new rs(Ea(this,x),Ea(this,ee||x))),sa(this,Zs(this.cm,re,re.length-1),ie)}),getSelection:function(x){for(var ee=this.sel.ranges,ie,re=0;re<ee.length;re++){var oe=Gr(this,ee[re].from(),ee[re].to());ie=ie?ie.concat(oe):oe}return x===!1?ie:ie.join(x||this.lineSeparator())},getSelections:function(x){for(var ee=[],ie=this.sel.ranges,re=0;re<ie.length;re++){var oe=Gr(this,ie[re].from(),ie[re].to());x!==!1&&(oe=oe.join(x||this.lineSeparator())),ee[re]=oe}return ee},replaceSelection:function(x,ee,ie){for(var re=[],oe=0;oe<this.sel.ranges.length;oe++)re[oe]=x;this.replaceSelections(re,ee,ie||"+input")},replaceSelections:al(function(x,ee,ie){for(var re=[],oe=this.sel,we=0;we<oe.ranges.length;we++){var je=oe.ranges[we];re[we]={from:je.from(),to:je.to(),text:this.splitLines(x[we]),origin:ie}}for(var lt=ee&&ee!="end"&&Mu(this,re,ee),mt=re.length-1;mt>=0;mt--)ma(this,re[mt]);lt?Ia(this,lt):this.cm&&qo(this.cm)}),undo:al(function(){Aa(this,"undo")}),redo:al(function(){Aa(this,"redo")}),undoSelection:al(function(){Aa(this,"undo",!0)}),redoSelection:al(function(){Aa(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,ee=0,ie=0,re=0;re<x.done.length;re++)x.done[re].ranges||++ee;for(var oe=0;oe<x.undone.length;oe++)x.undone[oe].ranges||++ie;return{undo:ee,redo:ie}},clearHistory:function(){var x=this;this.history=new ks(this.history.maxGeneration),jo(this,function(ee){return ee.history=x.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(x){return x&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(x){return this.history.generation==(x||this.cleanGeneration)},getHistory:function(){return{done:hr(this.history.done),undone:hr(this.history.undone)}},setHistory:function(x){var ee=this.history=new ks(this.history.maxGeneration);ee.done=hr(x.done.slice(0),null,!0),ee.undone=hr(x.undone.slice(0),null,!0)},setGutterMarker:al(function(x,ee,ie){return ts(this,x,"gutter",function(re){var oe=re.gutterMarkers||(re.gutterMarkers={});return oe[ee]=ie,!ie&&se(oe)&&(re.gutterMarkers=null),!0})}),clearGutter:al(function(x){var ee=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[x]&&ts(ee,ie,"gutter",function(){return ie.gutterMarkers[x]=null,se(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(x){var ee;if(typeof x=="number"){if(!Ti(this,x)||(ee=x,x=er(this,x),!x))return null}else if(ee=bi(x),ee==null)return null;return{line:ee,handle:x,text:x.text,gutterMarkers:x.gutterMarkers,textClass:x.textClass,bgClass:x.bgClass,wrapClass:x.wrapClass,widgets:x.widgets}},addLineClass:al(function(x,ee,ie){return ts(this,x,ee=="gutter"?"gutter":"class",function(re){var oe=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass";if(!re[oe])re[oe]=ie;else{if(Ee(ie).test(re[oe]))return!1;re[oe]+=" "+ie}return!0})}),removeLineClass:al(function(x,ee,ie){return ts(this,x,ee=="gutter"?"gutter":"class",function(re){var oe=ee=="text"?"textClass":ee=="background"?"bgClass":ee=="gutter"?"gutterClass":"wrapClass",we=re[oe];if(we)if(ie==null)re[oe]=null;else{var je=we.match(Ee(ie));if(!je)return!1;var lt=je.index+je[0].length;re[oe]=we.slice(0,je.index)+(!je.index||lt==we.length?"":" ")+we.slice(lt)||null}else return!1;return!0})}),addLineWidget:al(function(x,ee,ie){return du(this,x,ee,ie)}),removeLineWidget:function(x){x.clear()},markText:function(x,ee,ie){return xs(this,Ea(this,x),Ea(this,ee),ie,ie&&ie.type||"range")},setBookmark:function(x,ee){var ie={replacedWith:ee&&(ee.nodeType==null?ee.widget:ee),insertLeft:ee&&ee.insertLeft,clearWhenEmpty:!1,shared:ee&&ee.shared,handleMouseEvents:ee&&ee.handleMouseEvents};return x=Ea(this,x),xs(this,x,x,ie,"bookmark")},findMarksAt:function(x){x=Ea(this,x);var ee=[],ie=er(this,x.line).markedSpans;if(ie)for(var re=0;re<ie.length;++re){var oe=ie[re];(oe.from==null||oe.from<=x.ch)&&(oe.to==null||oe.to>=x.ch)&&ee.push(oe.marker.parent||oe.marker)}return ee},findMarks:function(x,ee,ie){x=Ea(this,x),ee=Ea(this,ee);var re=[],oe=x.line;return this.iter(x.line,ee.line+1,function(we){var je=we.markedSpans;if(je)for(var lt=0;lt<je.length;lt++){var mt=je[lt];!(mt.to!=null&&oe==x.line&&x.ch>=mt.to||mt.from==null&&oe!=x.line||mt.from!=null&&oe==ee.line&&mt.from>=ee.ch)&&(!ie||ie(mt.marker))&&re.push(mt.marker.parent||mt.marker)}++oe}),re},getAllMarks:function(){var x=[];return this.iter(function(ee){var ie=ee.markedSpans;if(ie)for(var re=0;re<ie.length;++re)ie[re].from!=null&&x.push(ie[re].marker)}),x},posFromIndex:function(x){var ee,ie=this.first,re=this.lineSeparator().length;return this.iter(function(oe){var we=oe.text.length+re;if(we>x)return ee=x,!0;x-=we,++ie}),Ea(this,br(ie,ee))},indexFromPos:function(x){x=Ea(this,x);var ee=x.ch;if(x.line<this.first||x.ch<0)return 0;var ie=this.lineSeparator().length;return this.iter(this.first,x.line,function(re){ee+=re.text.length+ie}),ee},copy:function(x){var ee=new co(ra(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,x&&(ee.history.undoDepth=this.history.undoDepth,ee.setHistory(this.getHistory())),ee},linkedDoc:function(x){x||(x={});var ee=this.first,ie=this.first+this.size;x.from!=null&&x.from>ee&&(ee=x.from),x.to!=null&&x.to<ie&&(ie=x.to);var re=new co(ra(this,ee,ie),x.mode||this.modeOption,ee,this.lineSep,this.direction);return x.sharedHist&&(re.history=this.history),(this.linked||(this.linked=[])).push({doc:re,sharedHist:x.sharedHist}),re.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],Ml(re,dl(this)),re},unlinkDoc:function(x){if(x instanceof Gl&&(x=x.doc),this.linked)for(var ee=0;ee<this.linked.length;++ee){var ie=this.linked[ee];if(ie.doc==x){this.linked.splice(ee,1),x.unlinkDoc(this),_o(dl(this));break}}if(x.history==this.history){var re=[x.id];jo(x,function(oe){return re.push(oe.id)},!0),x.history=new ks(null),x.history.done=hr(this.history.done,re),x.history.undone=hr(this.history.undone,re)}},iterLinkedDocs:function(x){jo(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):$t(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:al(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(ee){return ee.order=null}),this.cm&&Ds(this.cm))})}),co.prototype.eachLine=co.prototype.iter;var Wl=0;function ls(x){var ee=this;if(fu(ee),!(Vt(ee,x)||Jt(ee.display,x))){Fr(x),xe&&(Wl=+new Date);var ie=Wa(ee,x,!0),re=x.dataTransfer.files;if(!(!ie||ee.isReadOnly()))if(re&&re.length&&window.FileReader&&window.File)for(var oe=re.length,we=Array(oe),je=0,lt=function(){++je==oe&&Ta(ee,function(){ie=Ea(ee.doc,ie);var $r={from:ie,to:ie,text:ee.doc.splitLines(we.filter(function(aa){return aa!=null}).join(ee.doc.lineSeparator())),origin:"paste"};ma(ee.doc,$r),Ia(ee.doc,Au(Ea(ee.doc,ie),Ea(ee.doc,_u($r))))})()},mt=function($r,aa){if(ee.options.allowDropFileTypes&&Dt(ee.options.allowDropFileTypes,$r.type)==-1){lt();return}var Oa=new FileReader;Oa.onerror=function(){return lt()},Oa.onload=function(){var uo=Oa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(uo)){lt();return}we[aa]=uo,lt()},Oa.readAsText($r)},It=0;It<re.length;It++)mt(re[It],It);else{if(ee.state.draggingText&&ee.doc.sel.contains(ie)>-1){ee.state.draggingText(x),setTimeout(function(){return ee.display.input.focus()},20);return}try{var zn=x.dataTransfer.getData("Text");if(zn){var ar;if(ee.state.draggingText&&!ee.state.draggingText.copy&&(ar=ee.listSelections()),ja(ee.doc,Au(ie,ie)),ar)for(var ui=0;ui<ar.length;++ui)ol(ee.doc,"",ar[ui].anchor,ar[ui].head,"drag");ee.replaceSelection(zn,"around","paste"),ee.display.input.focus()}}catch($r){}}}}function ss(x,ee){if(xe&&(!x.state.draggingText||+new Date-Wl<100)){ei(ee);return}if(!(Vt(x,ee)||Jt(x.display,ee))&&(ee.dataTransfer.setData("Text",x.getSelection()),ee.dataTransfer.effectAllowed="copyMove",ee.dataTransfer.setDragImage&&!Xe)){var ie=ct("img",null,null,"position: fixed; left: 0; top: 0;");ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",De&&(ie.width=ie.height=1,x.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),ee.dataTransfer.setDragImage(ie,0,0),De&&ie.parentNode.removeChild(ie)}}function Nu(x,ee){var ie=Wa(x,ee);if(ie){var re=document.createDocumentFragment();Gn(x,ie,re),x.display.dragCursor||(x.display.dragCursor=ct("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),ot(x.display.dragCursor,re)}}function fu(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function zu(x){if(document.getElementsByClassName){for(var ee=document.getElementsByClassName("CodeMirror"),ie=[],re=0;re<ee.length;re++){var oe=ee[re].CodeMirror;oe&&ie.push(oe)}ie.length&&ie[0].operation(function(){for(var we=0;we<ie.length;we++)x(ie[we])})}}var ha=!1;function ec(){ha||(qs(),ha=!0)}function qs(){var x;sn(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,zu(Ku)},100))}),sn(window,"blur",function(){return zu(ji)})}function Ku(x){var ee=x.display;ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.scrollbarsClipped=!1,x.setSize()}for(var Wu={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"},hs=0;hs<10;hs++)Wu[hs+48]=Wu[hs+96]=String(hs);for(var bs=65;bs<=90;bs++)Wu[bs]=String.fromCharCode(bs);for(var Ts=1;Ts<=12;Ts++)Wu[Ts+111]=Wu[Ts+63235]="F"+Ts;var Xl={};Xl.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"},Xl.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"},Xl.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"},Xl.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"]},Xl.default=be?Xl.macDefault:Xl.pcDefault;function iu(x){var ee=x.split(/-(?!$)/);x=ee[ee.length-1];for(var ie,re,oe,we,je=0;je<ee.length-1;je++){var lt=ee[je];if(/^(cmd|meta|m)$/i.test(lt))we=!0;else if(/^a(lt)?$/i.test(lt))ie=!0;else if(/^(c|ctrl|control)$/i.test(lt))re=!0;else if(/^s(hift)?$/i.test(lt))oe=!0;else throw new Error("Unrecognized modifier name: "+lt)}return ie&&(x="Alt-"+x),re&&(x="Ctrl-"+x),we&&(x="Cmd-"+x),oe&&(x="Shift-"+x),x}function ns(x){var ee={};for(var ie in x)if(x.hasOwnProperty(ie)){var re=x[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(re=="..."){delete x[ie];continue}for(var oe=sr(ie.split(" "),iu),we=0;we<oe.length;we++){var je=void 0,lt=void 0;we==oe.length-1?(lt=oe.join(" "),je=re):(lt=oe.slice(0,we+1).join(" "),je="...");var mt=ee[lt];if(!mt)ee[lt]=je;else if(mt!=je)throw new Error("Inconsistent bindings for "+lt)}delete x[ie]}for(var It in ee)x[It]=ee[It];return x}function au(x,ee,ie,re){ee=eu(ee);var oe=ee.call?ee.call(x,re):ee[x];if(oe===!1)return"nothing";if(oe==="...")return"multi";if(oe!=null&&ie(oe))return"handled";if(ee.fallthrough){if(Object.prototype.toString.call(ee.fallthrough)!="[object Array]")return au(x,ee.fallthrough,ie,re);for(var we=0;we<ee.fallthrough.length;we++){var je=au(x,ee.fallthrough[we],ie,re);if(je)return je}}}function hu(x){var ee=typeof x=="string"?x:Wu[x.keyCode];return ee=="Ctrl"||ee=="Alt"||ee=="Shift"||ee=="Mod"}function xu(x,ee,ie){var re=x;return ee.altKey&&re!="Alt"&&(x="Alt-"+x),(Ze?ee.metaKey:ee.ctrlKey)&&re!="Ctrl"&&(x="Ctrl-"+x),(Ze?ee.ctrlKey:ee.metaKey)&&re!="Mod"&&(x="Cmd-"+x),!ie&&ee.shiftKey&&re!="Shift"&&(x="Shift-"+x),x}function ju(x,ee){if(De&&x.keyCode==34&&x.char)return!1;var ie=Wu[x.keyCode];return ie==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ie=x.code),xu(ie,x,ee))}function eu(x){return typeof x=="string"?Xl[x]:x}function Uu(x,ee){for(var ie=x.doc.sel.ranges,re=[],oe=0;oe<ie.length;oe++){for(var we=ee(ie[oe]);re.length&&Di(we.from,pn(re).to)<=0;){var je=re.pop();if(Di(je.from,we.from)<0){we.from=je.from;break}}re.push(we)}ba(x,function(){for(var lt=re.length-1;lt>=0;lt--)ol(x.doc,"",re[lt].from,re[lt].to,"+delete");qo(x)})}function tu(x,ee,ie){var re=Wt(x.text,ee+ie,ie);return re<0||re>x.text.length?null:re}function Bu(x,ee,ie){var re=tu(x,ee.ch,ie);return re==null?null:new br(ee.line,re,ie<0?"after":"before")}function nu(x,ee,ie,re,oe){if(x){ee.doc.direction=="rtl"&&(oe=-oe);var we=nn(ie,ee.doc.direction);if(we){var je=oe<0?pn(we):we[0],lt=oe<0==(je.level==1),mt=lt?"after":"before",It;if(je.level>0||ee.doc.direction=="rtl"){var zn=la(ee,ie);It=oe<0?ie.text.length-1:0;var ar=La(ee,zn,It).top;It=yn(function(ui){return La(ee,zn,ui).top==ar},oe<0==(je.level==1)?je.from:je.to-1,It),mt=="before"&&(It=tu(ie,It,1))}else It=oe<0?je.to:je.from;return new br(re,It,mt)}}return new br(re,oe<0?ie.text.length:0,oe<0?"before":"after")}function ou(x,ee,ie,re){var oe=nn(ee,x.doc.direction);if(!oe)return Bu(ee,ie,re);ie.ch>=ee.text.length?(ie.ch=ee.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var we=wn(oe,ie.ch,ie.sticky),je=oe[we];if(x.doc.direction=="ltr"&&je.level%2==0&&(re>0?je.to>ie.ch:je.from<ie.ch))return Bu(ee,ie,re);var lt=function(Oo,$o){return tu(ee,Oo instanceof br?Oo.ch:Oo,$o)},mt,It=function(Oo){return x.options.lineWrapping?(mt=mt||la(x,ee),ur(x,ee,mt,Oo)):{begin:0,end:ee.text.length}},zn=It(ie.sticky=="before"?lt(ie,-1):ie.ch);if(x.doc.direction=="rtl"||je.level==1){var ar=je.level==1==re<0,ui=lt(ie,ar?1:-1);if(ui!=null&&(ar?ui<=je.to&&ui<=zn.end:ui>=je.from&&ui>=zn.begin)){var $r=ar?"before":"after";return new br(ie.line,ui,$r)}}var aa=function(Oo,$o,Co){for(var tl=function(Vs,Gu){return Gu?new br(ie.line,lt(Vs,1),"before"):new br(ie.line,Vs,"after")};Oo>=0&&Oo<oe.length;Oo+=$o){var Ol=oe[Oo],Tl=$o>0==(Ol.level!=1),cs=Tl?Co.begin:lt(Co.end,-1);if(Ol.from<=cs&&cs<Ol.to||(cs=Tl?Ol.from:lt(Ol.to,-1),Co.begin<=cs&&cs<Co.end))return tl(cs,Tl)}},Oa=aa(we+re,re,zn);if(Oa)return Oa;var uo=re>0?zn.end:lt(zn.begin,-1);return uo!=null&&!(re>0&&uo==ee.text.length)&&(Oa=aa(re>0?0:oe.length-1,re,It(uo)),Oa)?Oa:null}var Qs={selectAll:Kl,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),Et)},killLine:function(x){return Uu(x,function(ee){if(ee.empty()){var ie=er(x.doc,ee.head.line).text.length;return ee.head.ch==ie&&ee.head.line<x.lastLine()?{from:ee.head,to:br(ee.head.line+1,0)}:{from:ee.head,to:br(ee.head.line,ie)}}else return{from:ee.from(),to:ee.to()}})},deleteLine:function(x){return Uu(x,function(ee){return{from:br(ee.from().line,0),to:Ea(x.doc,br(ee.to().line+1,0))}})},delLineLeft:function(x){return Uu(x,function(ee){return{from:br(ee.from().line,0),to:ee.from()}})},delWrappedLineLeft:function(x){return Uu(x,function(ee){var ie=x.charCoords(ee.head,"div").top+5,re=x.coordsChar({left:0,top:ie},"div");return{from:re,to:ee.from()}})},delWrappedLineRight:function(x){return Uu(x,function(ee){var ie=x.charCoords(ee.head,"div").top+5,re=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ie},"div");return{from:ee.from(),to:re}})},undo:function(x){return x.undo()},redo:function(x){return x.redo()},undoSelection:function(x){return x.undoSelection()},redoSelection:function(x){return x.redoSelection()},goDocStart:function(x){return x.extendSelection(br(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(br(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(ee){return Ws(x,ee.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(ee){return bc(x,ee.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(ee){return hc(x,ee.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(ee){var ie=x.cursorCoords(ee.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ie},"div")},Yt)},goLineLeft:function(x){return x.extendSelectionsBy(function(ee){var ie=x.cursorCoords(ee.head,"div").top+5;return x.coordsChar({left:0,top:ie},"div")},Yt)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(ee){var ie=x.cursorCoords(ee.head,"div").top+5,re=x.coordsChar({left:0,top:ie},"div");return re.ch<x.getLine(re.line).search(/\S/)?bc(x,ee.head):re},Yt)},goLineUp:function(x){return x.moveV(-1,"line")},goLineDown:function(x){return x.moveV(1,"line")},goPageUp:function(x){return x.moveV(-1,"page")},goPageDown:function(x){return x.moveV(1,"page")},goCharLeft:function(x){return x.moveH(-1,"char")},goCharRight:function(x){return x.moveH(1,"char")},goColumnLeft:function(x){return x.moveH(-1,"column")},goColumnRight:function(x){return x.moveH(1,"column")},goWordLeft:function(x){return x.moveH(-1,"word")},goGroupRight:function(x){return x.moveH(1,"group")},goGroupLeft:function(x){return x.moveH(-1,"group")},goWordRight:function(x){return x.moveH(1,"word")},delCharBefore:function(x){return x.deleteH(-1,"codepoint")},delCharAfter:function(x){return x.deleteH(1,"char")},delWordBefore:function(x){return x.deleteH(-1,"word")},delWordAfter:function(x){return x.deleteH(1,"word")},delGroupBefore:function(x){return x.deleteH(-1,"group")},delGroupAfter:function(x){return x.deleteH(1,"group")},indentAuto:function(x){return x.indentSelection("smart")},indentMore:function(x){return x.indentSelection("add")},indentLess:function(x){return x.indentSelection("subtract")},insertTab:function(x){return x.replaceSelection(" ")},insertSoftTab:function(x){for(var ee=[],ie=x.listSelections(),re=x.options.tabSize,oe=0;oe<ie.length;oe++){var we=ie[oe].from(),je=et(x.getLine(we.line),we.ch,re);ee.push(_t(re-je%re))}x.replaceSelections(ee)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return ba(x,function(){for(var ee=x.listSelections(),ie=[],re=0;re<ee.length;re++)if(ee[re].empty()){var oe=ee[re].head,we=er(x.doc,oe.line).text;if(we){if(oe.ch==we.length&&(oe=new br(oe.line,oe.ch-1)),oe.ch>0)oe=new br(oe.line,oe.ch+1),x.replaceRange(we.charAt(oe.ch-1)+we.charAt(oe.ch-2),br(oe.line,oe.ch-2),oe,"+transpose");else if(oe.line>x.doc.first){var je=er(x.doc,oe.line-1).text;je&&(oe=new br(oe.line,1),x.replaceRange(we.charAt(0)+x.doc.lineSeparator()+je.charAt(je.length-1),br(oe.line-1,je.length-1),oe,"+transpose"))}}ie.push(new rs(oe,oe))}x.setSelections(ie)})},newlineAndIndent:function(x){return ba(x,function(){for(var ee=x.listSelections(),ie=ee.length-1;ie>=0;ie--)x.replaceRange(x.doc.lineSeparator(),ee[ie].anchor,ee[ie].head,"+input");ee=x.listSelections();for(var re=0;re<ee.length;re++)x.indentLine(ee[re].from().line,null,!0);qo(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function Ws(x,ee){var ie=er(x.doc,ee),re=Ft(ie);return re!=ie&&(ee=bi(re)),nu(!0,x,re,ee,1)}function hc(x,ee){var ie=er(x.doc,ee),re=Nt(ie);return re!=ie&&(ee=bi(re)),nu(!0,x,ie,ee,-1)}function bc(x,ee){var ie=Ws(x,ee.line),re=er(x.doc,ie.line),oe=nn(re,x.doc.direction);if(!oe||oe[0].level==0){var we=Math.max(ie.ch,re.text.search(/\S/)),je=ee.line==ie.line&&ee.ch<=we&&ee.ch;return br(ie.line,je?0:we,ie.sticky)}return ie}function Us(x,ee,ie){if(typeof ee=="string"&&(ee=Qs[ee],!ee))return!1;x.display.input.ensurePolled();var re=x.display.shift,oe=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ie&&(x.display.shift=!1),oe=ee(x)!=Xt}finally{x.display.shift=re,x.state.suppressEdits=!1}return oe}function Lu(x,ee,ie){for(var re=0;re<x.state.keyMaps.length;re++){var oe=au(ee,x.state.keyMaps[re],ie,x);if(oe)return oe}return x.options.extraKeys&&au(ee,x.options.extraKeys,ie,x)||au(ee,x.options.keyMap,ie,x)}var pd=new Fe;function Oc(x,ee,ie,re){var oe=x.state.keySeq;if(oe){if(hu(ee))return"handled";if(/\'$/.test(ee)?x.state.keySeq=null:pd.set(50,function(){x.state.keySeq==oe&&(x.state.keySeq=null,x.display.input.reset())}),is(x,oe+" "+ee,ie,re))return!0}return is(x,ee,ie,re)}function is(x,ee,ie,re){var oe=Lu(x,ee,re);return oe=="multi"&&(x.state.keySeq=ee),oe=="handled"&&kr(x,"keyHandled",x,ee,ie),(oe=="handled"||oe=="multi")&&(Fr(ie),Kr(x)),!!oe}function bl(x,ee){var ie=ju(ee,!0);return ie?ee.shiftKey&&!x.state.keySeq?Oc(x,"Shift-"+ie,ee,function(re){return Us(x,re,!0)})||Oc(x,ie,ee,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return Us(x,re)}):Oc(x,ie,ee,function(re){return Us(x,re)}):!1}function vu(x,ee,ie){return Oc(x,"'"+ie+"'",ee,function(re){return Us(x,re,!0)})}var Ss=null;function ku(x){var ee=this;if(!(x.target&&x.target!=ee.display.input.getField())&&(ee.curOp.focus=$e(),!Vt(ee,x))){xe&&Be<11&&x.keyCode==27&&(x.returnValue=!1);var ie=x.keyCode;ee.display.shift=ie==16||x.shiftKey;var re=bl(ee,x);De&&(Ss=re?ie:null,!re&&ie==88&&!mn&&(be?x.metaKey:x.ctrlKey)&&ee.replaceSelection("",null,"cut")),E&&!be&&!re&&ie==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(ee.display.lineDiv.className)&&Ri(ee)}}function Ri(x){var ee=x.display.lineDiv;ft(ee,"CodeMirror-crosshair");function ie(re){(re.keyCode==18||!re.altKey)&&(Ye(ee,"CodeMirror-crosshair"),xr(document,"keyup",ie),xr(document,"mouseover",ie))}sn(document,"keyup",ie),sn(document,"mouseover",ie)}function Yu(x){x.keyCode==16&&(this.doc.sel.shift=!1),Vt(this,x)}function xc(x){var ee=this;if(!(x.target&&x.target!=ee.display.input.getField())&&!(Jt(ee.display,x)||Vt(ee,x)||x.ctrlKey&&!x.altKey||be&&x.metaKey)){var ie=x.keyCode,re=x.charCode;if(De&&ie==Ss){Ss=null,Fr(x);return}if(!(De&&(!x.which||x.which<10)&&bl(ee,x))){var oe=String.fromCharCode(re==null?ie:re);oe!="\b"&&(vu(ee,x,oe)||ee.display.input.onKeyPress(x))}}}var rd=400,Od=function(x,ee,ie){this.time=x,this.pos=ee,this.button=ie};Od.prototype.compare=function(x,ee,ie){return this.time+rd>x&&Di(ee,this.pos)==0&&ie==this.button};var Ec,id;function Wd(x,ee){var ie=+new Date;return id&&id.compare(ie,x,ee)?(Ec=id=null,"triple"):Ec&&Ec.compare(ie,x,ee)?(id=new Od(ie,x,ee),Ec=null,"double"):(Ec=new Od(ie,x,ee),id=null,"single")}function Iu(x){var ee=this,ie=ee.display;if(!(Vt(ee,x)||ie.activeTouch&&ie.input.supportsTouch())){if(ie.input.ensurePolled(),ie.shift=x.shiftKey,Jt(ie,x)){de||(ie.scroller.draggable=!1,setTimeout(function(){return ie.scroller.draggable=!0},100));return}if(!Vu(ee,x)){var re=Wa(ee,x),oe=ci(x),we=re?Wd(re,oe):"single";window.focus(),oe==1&&ee.state.selectingText&&ee.state.selectingText(x),!(re&&lc(ee,oe,re,we,x))&&(oe==1?re?ad(ee,re,we,x):Mi(x)==ie.scroller&&Fr(x):oe==2?(re&&xi(ee.doc,re),setTimeout(function(){return ie.input.focus()},20)):oe==3&&(ye?ee.display.input.onContextMenu(x):ta(ee)))}}}function lc(x,ee,ie,re,oe){var we="Click";return re=="double"?we="Double"+we:re=="triple"&&(we="Triple"+we),we=(ee==1?"Left":ee==2?"Middle":"Right")+we,Oc(x,xu(we,oe),oe,function(je){if(typeof je=="string"&&(je=Qs[je]),!je)return!1;var lt=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),lt=je(x,ie)!=Xt}finally{x.state.suppressEdits=!1}return lt})}function Nc(x,ee,ie){var re=x.getOption("configureMouse"),oe=re?re(x,ee,ie):{};if(oe.unit==null){var we=Qe?ie.shiftKey&&ie.metaKey:ie.altKey;oe.unit=we?"rectangle":ee=="single"?"char":ee=="double"?"word":"line"}return(oe.extend==null||x.doc.extend)&&(oe.extend=x.doc.extend||ie.shiftKey),oe.addNew==null&&(oe.addNew=be?ie.metaKey:ie.ctrlKey),oe.moveOnDrag==null&&(oe.moveOnDrag=!(be?ie.altKey:ie.ctrlKey)),oe}function ad(x,ee,ie,re){xe?setTimeout(kt(Er,x),0):x.curOp.focus=$e();var oe=Nc(x,ie,re),we=x.doc.sel,je;x.options.dragDrop&&Qn&&!x.isReadOnly()&&ie=="single"&&(je=we.contains(ee))>-1&&(Di((je=we.ranges[je]).from(),ee)<0||ee.xRel>0)&&(Di(je.to(),ee)>0||ee.xRel<0)?jd(x,re,ee,oe):md(x,re,ee,oe)}function jd(x,ee,ie,re){var oe=x.display,we=!1,je=Ta(x,function(It){de&&(oe.scroller.draggable=!1),x.state.draggingText=!1,xr(oe.wrapper.ownerDocument,"mouseup",je),xr(oe.wrapper.ownerDocument,"mousemove",lt),xr(oe.scroller,"dragstart",mt),xr(oe.scroller,"drop",je),we||(Fr(It),re.addNew||xi(x.doc,ie,null,null,re.extend),de&&!Xe||xe&&Be==9?setTimeout(function(){oe.wrapper.ownerDocument.body.focus({preventScroll:!0}),oe.input.focus()},20):oe.input.focus())}),lt=function(It){we=we||Math.abs(ee.clientX-It.clientX)+Math.abs(ee.clientY-It.clientY)>=10},mt=function(){return we=!0};de&&(oe.scroller.draggable=!0),x.state.draggingText=je,je.copy=!re.moveOnDrag,oe.scroller.dragDrop&&oe.scroller.dragDrop(),sn(oe.wrapper.ownerDocument,"mouseup",je),sn(oe.wrapper.ownerDocument,"mousemove",lt),sn(oe.scroller,"dragstart",mt),sn(oe.scroller,"drop",je),ta(x),setTimeout(function(){return oe.input.focus()},20)}function Ud(x,ee,ie){if(ie=="char")return new rs(ee,ee);if(ie=="word")return x.findWordAt(ee);if(ie=="line")return new rs(br(ee.line,0),Ea(x.doc,br(ee.line+1,0)));var re=ie(x,ee);return new rs(re.from,re.to)}function md(x,ee,ie,re){var oe=x.display,we=x.doc;Fr(ee);var je,lt,mt=we.sel,It=mt.ranges;if(re.addNew&&!re.extend?(lt=we.sel.contains(ie),lt>-1?je=It[lt]:je=new rs(ie,ie)):(je=we.sel.primary(),lt=we.sel.primIndex),re.unit=="rectangle")re.addNew||(je=new rs(ie,ie)),ie=Wa(x,ee,!0,!0),lt=-1;else{var zn=Ud(x,ie,re.unit);re.extend?je=Qr(je,zn.anchor,zn.head,re.extend):je=zn}re.addNew?lt==-1?(lt=It.length,sa(we,Zs(x,It.concat([je]),lt),{scroll:!1,origin:"*mouse"})):It.length>1&&It[lt].empty()&&re.unit=="char"&&!re.extend?(sa(we,Zs(x,It.slice(0,lt).concat(It.slice(lt+1)),0),{scroll:!1,origin:"*mouse"}),mt=we.sel):Ki(we,lt,je,zt):(lt=0,sa(we,new Hs([je],0),zt),mt=we.sel);var ar=ie;function ui(Co){if(Di(ar,Co)!=0)if(ar=Co,re.unit=="rectangle"){for(var tl=[],Ol=x.options.tabSize,Tl=et(er(we,ie.line).text,ie.ch,Ol),cs=et(er(we,Co.line).text,Co.ch,Ol),Vs=Math.min(Tl,cs),Gu=Math.max(Tl,cs),Eu=Math.min(ie.line,Co.line),sc=Math.min(x.lastLine(),Math.max(ie.line,Co.line));Eu<=sc;Eu++){var uc=er(we,Eu).text,Tu=Vn(uc,Vs,Ol);Vs==Gu?tl.push(new rs(br(Eu,Tu),br(Eu,Tu))):uc.length>Tu&&tl.push(new rs(br(Eu,Tu),br(Eu,Vn(uc,Gu,Ol))))}tl.length||tl.push(new rs(ie,ie)),sa(we,Zs(x,mt.ranges.slice(0,lt).concat(tl),lt),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Co)}else{var tc=je,ql=Ud(x,Co,re.unit),Pu=tc.anchor,pu;Di(ql.anchor,Pu)>0?(pu=ql.head,Pu=za(tc.from(),ql.anchor)):(pu=ql.anchor,Pu=xa(tc.to(),ql.head));var Cu=mt.ranges.slice(0);Cu[lt]=od(x,new rs(Ea(we,Pu),pu)),sa(we,Zs(x,Cu,lt),zt)}}var $r=oe.wrapper.getBoundingClientRect(),aa=0;function Oa(Co){var tl=++aa,Ol=Wa(x,Co,!0,re.unit=="rectangle");if(Ol)if(Di(Ol,ar)!=0){x.curOp.focus=$e(),ui(Ol);var Tl=Hi(oe,we);(Ol.line>=Tl.to||Ol.line<Tl.from)&&setTimeout(Ta(x,function(){aa==tl&&Oa(Co)}),150)}else{var cs=Co.clientY<$r.top?-20:Co.clientY>$r.bottom?20:0;cs&&setTimeout(Ta(x,function(){aa==tl&&(oe.scroller.scrollTop+=cs,Oa(Co))}),50)}}function uo(Co){x.state.selectingText=!1,aa=1/0,Co&&(Fr(Co),oe.input.focus()),xr(oe.wrapper.ownerDocument,"mousemove",Oo),xr(oe.wrapper.ownerDocument,"mouseup",$o),we.history.lastSelOrigin=null}var Oo=Ta(x,function(Co){Co.buttons===0||!ci(Co)?uo(Co):Oa(Co)}),$o=Ta(x,uo);x.state.selectingText=$o,sn(oe.wrapper.ownerDocument,"mousemove",Oo),sn(oe.wrapper.ownerDocument,"mouseup",$o)}function od(x,ee){var ie=ee.anchor,re=ee.head,oe=er(x.doc,ie.line);if(Di(ie,re)==0&&ie.sticky==re.sticky)return ee;var we=nn(oe);if(!we)return ee;var je=wn(we,ie.ch,ie.sticky),lt=we[je];if(lt.from!=ie.ch&<.to!=ie.ch)return ee;var mt=je+(lt.from==ie.ch==(lt.level!=1)?0:1);if(mt==0||mt==we.length)return ee;var It;if(re.line!=ie.line)It=(re.line-ie.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var zn=wn(we,re.ch,re.sticky),ar=zn-je||(re.ch-ie.ch)*(lt.level==1?-1:1);zn==mt-1||zn==mt?It=ar<0:It=ar>0}var ui=we[mt+(It?-1:0)],$r=It==(ui.level==1),aa=$r?ui.from:ui.to,Oa=$r?"after":"before";return ie.ch==aa&&ie.sticky==Oa?ee:new rs(new br(ie.line,aa,Oa),re)}function Cc(x,ee,ie,re){var oe,we;if(ee.touches)oe=ee.touches[0].clientX,we=ee.touches[0].clientY;else try{oe=ee.clientX,we=ee.clientY}catch(ui){return!1}if(oe>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;re&&Fr(ee);var je=x.display,lt=je.lineDiv.getBoundingClientRect();if(we>lt.bottom||!En(x,ie))return ai(ee);we-=lt.top-je.viewOffset;for(var mt=0;mt<x.display.gutterSpecs.length;++mt){var It=je.gutters.childNodes[mt];if(It&&It.getBoundingClientRect().right>=oe){var zn=Ji(x.doc,we),ar=x.display.gutterSpecs[mt];return Lt(x,ie,x,zn,ar.className,ee),ai(ee)}}}function Vu(x,ee){return Cc(x,ee,"gutterClick",!0)}function Sc(x,ee){Jt(x.display,ee)||Nd(x,ee)||Vt(x,ee,"contextmenu")||ye||x.display.input.onContextMenu(ee)}function Nd(x,ee){return En(x,"gutterContextMenu")?Cc(x,ee,"gutterContextMenu",!1):!1}function Ld(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ba(x)}var zc={toString:function(){return"CodeMirror.Init"}},Vd={},Kc={};function vd(x){var ee=x.optionHandlers;function ie(re,oe,we,je){x.defaults[re]=oe,we&&(ee[re]=je?function(lt,mt,It){It!=zc&&we(lt,mt,It)}:we)}x.defineOption=ie,x.Init=zc,ie("value","",function(re,oe){return re.setValue(oe)},!0),ie("mode",null,function(re,oe){re.doc.modeOption=oe,Gs(re)},!0),ie("indentUnit",2,Gs,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(re){mu(re),Ba(re),jr(re)},!0),ie("lineSeparator",null,function(re,oe){if(re.doc.lineSep=oe,!!oe){var we=[],je=re.doc.first;re.doc.iter(function(mt){for(var It=0;;){var zn=mt.text.indexOf(oe,It);if(zn==-1)break;It=zn+oe.length,we.push(br(je,zn))}je++});for(var lt=we.length-1;lt>=0;lt--)ol(re.doc,oe,we[lt],br(we[lt].line,we[lt].ch+oe.length))}}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,oe,we){re.state.specialChars=new RegExp(oe.source+(oe.test(" ")?"":"| "),"g"),we!=zc&&re.refresh()}),ie("specialCharPlaceholder",At,function(re){return re.refresh()},!0),ie("electricChars",!0),ie("inputStyle",He?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ie("spellcheck",!1,function(re,oe){return re.getInputField().spellcheck=oe},!0),ie("autocorrect",!1,function(re,oe){return re.getInputField().autocorrect=oe},!0),ie("autocapitalize",!1,function(re,oe){return re.getInputField().autocapitalize=oe},!0),ie("rtlMoveVisually",!ht),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(re){Ld(re),Bs(re)},!0),ie("keyMap","default",function(re,oe,we){var je=eu(oe),lt=we!=zc&&eu(we);lt&<.detach&<.detach(re,je),je.attach&&je.attach(re,lt||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,gd,!0),ie("gutters",[],function(re,oe){re.display.gutterSpecs=Js(oe,re.options.lineNumbers),Bs(re)},!0),ie("fixedGutter",!0,function(re,oe){re.display.gutters.style.left=oe?Ha(re.display)+"px":"0",re.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(re){return cl(re)},!0),ie("scrollbarStyle","native",function(re){kl(re),cl(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(re,oe){re.display.gutterSpecs=Js(re.options.gutters,oe),Bs(re)},!0),ie("firstLineNumber",1,Bs,!0),ie("lineNumberFormatter",function(re){return re},Bs,!0),ie("showCursorWhenSelecting",!1,Kt,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(re,oe){oe=="nocursor"&&(ji(re),re.display.input.blur()),re.display.input.readOnlyChanged(oe)}),ie("screenReaderLabel",null,function(re,oe){oe=oe===""?null:oe,re.display.input.screenReaderLabelChanged(oe)}),ie("disableInput",!1,function(re,oe){oe||re.display.input.reset()},!0),ie("dragDrop",!0,Td),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,Kt,!0),ie("singleCursorHeightPerLine",!0,Kt,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,mu,!0),ie("addModeClass",!1,mu,!0),ie("pollInterval",100),ie("undoDepth",200,function(re,oe){return re.doc.history.undoDepth=oe}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(re){return re.refresh()},!0),ie("maxHighlightLength",1e4,mu,!0),ie("moveInputWithCursor",!0,function(re,oe){oe||re.display.input.resetPosition()}),ie("tabindex",null,function(re,oe){return re.display.input.getField().tabIndex=oe||""}),ie("autofocus",null),ie("direction","ltr",function(re,oe){return re.doc.setDirection(oe)},!0),ie("phrases",null)}function Td(x,ee,ie){var re=ie&&ie!=zc;if(!ee!=!re){var oe=x.display.dragFunctions,we=ee?sn:xr;we(x.display.scroller,"dragstart",oe.start),we(x.display.scroller,"dragenter",oe.enter),we(x.display.scroller,"dragover",oe.over),we(x.display.scroller,"dragleave",oe.leave),we(x.display.scroller,"drop",oe.drop)}}function gd(x){x.options.lineWrapping?(ft(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ye(x.display.wrapper,"CodeMirror-wrap"),Jn(x)),Xi(x),jr(x),Ba(x),setTimeout(function(){return cl(x)},100)}function Gl(x,ee){var ie=this;if(!(this instanceof Gl))return new Gl(x,ee);this.options=ee=ee?xt(ee):{},xt(Vd,ee,!1);var re=ee.value;typeof re=="string"?re=new co(re,ee.mode,null,ee.lineSeparator,ee.direction):ee.mode&&(re.modeOption=ee.mode),this.doc=re;var oe=new Gl.inputStyles[ee.inputStyle](this),we=this.display=new yu(x,re,oe,ee);we.wrapper.CodeMirror=this,Ld(this),ee.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),kl(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 Fe,keySeq:null,specialChars:null},ee.autofocus&&!He&&we.input.focus(),xe&&Be<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),Gd(this),ec(),Gi(this),this.curOp.forceUpdate=!0,hl(this,re),ee.autofocus&&!He||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&zi(ie)},20):ji(this);for(var je in Kc)Kc.hasOwnProperty(je)&&Kc[je](this,ee[je],zc);ws(this),ee.finishInit&&ee.finishInit(this);for(var lt=0;lt<ld.length;++lt)ld[lt](this);ho(this),de&&ee.lineWrapping&&getComputedStyle(we.lineDiv).textRendering=="optimizelegibility"&&(we.lineDiv.style.textRendering="auto")}Gl.defaults=Vd,Gl.optionHandlers=Kc;function Gd(x){var ee=x.display;sn(ee.scroller,"mousedown",Ta(x,Iu)),xe&&Be<11?sn(ee.scroller,"dblclick",Ta(x,function(mt){if(!Vt(x,mt)){var It=Wa(x,mt);if(!(!It||Vu(x,mt)||Jt(x.display,mt))){Fr(mt);var zn=x.findWordAt(It);xi(x.doc,zn.anchor,zn.head)}}})):sn(ee.scroller,"dblclick",function(mt){return Vt(x,mt)||Fr(mt)}),sn(ee.scroller,"contextmenu",function(mt){return Sc(x,mt)}),sn(ee.input.getField(),"contextmenu",function(mt){ee.scroller.contains(mt.target)||Sc(x,mt)});var ie,re={end:0};function oe(){ee.activeTouch&&(ie=setTimeout(function(){return ee.activeTouch=null},1e3),re=ee.activeTouch,re.end=+new Date)}function we(mt){if(mt.touches.length!=1)return!1;var It=mt.touches[0];return It.radiusX<=1&&It.radiusY<=1}function je(mt,It){if(It.left==null)return!0;var zn=It.left-mt.left,ar=It.top-mt.top;return zn*zn+ar*ar>20*20}sn(ee.scroller,"touchstart",function(mt){if(!Vt(x,mt)&&!we(mt)&&!Vu(x,mt)){ee.input.ensurePolled(),clearTimeout(ie);var It=+new Date;ee.activeTouch={start:It,moved:!1,prev:It-re.end<=300?re:null},mt.touches.length==1&&(ee.activeTouch.left=mt.touches[0].pageX,ee.activeTouch.top=mt.touches[0].pageY)}}),sn(ee.scroller,"touchmove",function(){ee.activeTouch&&(ee.activeTouch.moved=!0)}),sn(ee.scroller,"touchend",function(mt){var It=ee.activeTouch;if(It&&!Jt(ee,mt)&&It.left!=null&&!It.moved&&new Date-It.start<300){var zn=x.coordsChar(ee.activeTouch,"page"),ar;!It.prev||je(It,It.prev)?ar=new rs(zn,zn):!It.prev.prev||je(It,It.prev.prev)?ar=x.findWordAt(zn):ar=new rs(br(zn.line,0),Ea(x.doc,br(zn.line+1,0))),x.setSelection(ar.anchor,ar.head),x.focus(),Fr(mt)}oe()}),sn(ee.scroller,"touchcancel",oe),sn(ee.scroller,"scroll",function(){ee.scroller.clientHeight&&(_a(x,ee.scroller.scrollTop),Yo(x,ee.scroller.scrollLeft,!0),Lt(x,"scroll",x))}),sn(ee.scroller,"mousewheel",function(mt){return $u(x,mt)}),sn(ee.scroller,"DOMMouseScroll",function(mt){return $u(x,mt)}),sn(ee.wrapper,"scroll",function(){return ee.wrapper.scrollTop=ee.wrapper.scrollLeft=0}),ee.dragFunctions={enter:function(mt){Vt(x,mt)||ei(mt)},over:function(mt){Vt(x,mt)||(Nu(x,mt),ei(mt))},start:function(mt){return ss(x,mt)},drop:Ta(x,ls),leave:function(mt){Vt(x,mt)||fu(x)}};var lt=ee.input.getField();sn(lt,"keyup",function(mt){return Yu.call(x,mt)}),sn(lt,"keydown",Ta(x,ku)),sn(lt,"keypress",Ta(x,xc)),sn(lt,"focus",function(mt){return zi(x,mt)}),sn(lt,"blur",function(mt){return ji(x,mt)})}var ld=[];Gl.defineInitHook=function(x){return ld.push(x)};function pc(x,ee,ie,re){var oe=x.doc,we;ie==null&&(ie="add"),ie=="smart"&&(oe.mode.indent?we=Do(x,ee).state:ie="prev");var je=x.options.tabSize,lt=er(oe,ee),mt=et(lt.text,null,je);lt.stateAfter&&(lt.stateAfter=null);var It=lt.text.match(/^\s*/)[0],zn;if(!re&&!/\S/.test(lt.text))zn=0,ie="not";else if(ie=="smart"&&(zn=oe.mode.indent(we,lt.text.slice(It.length),lt.text),zn==Xt||zn>150)){if(!re)return;ie="prev"}ie=="prev"?ee>oe.first?zn=et(er(oe,ee-1).text,null,je):zn=0:ie=="add"?zn=mt+x.options.indentUnit:ie=="subtract"?zn=mt-x.options.indentUnit:typeof ie=="number"&&(zn=mt+ie),zn=Math.max(0,zn);var ar="",ui=0;if(x.options.indentWithTabs)for(var $r=Math.floor(zn/je);$r;--$r)ui+=je,ar+=" ";if(ui<zn&&(ar+=_t(zn-ui)),ar!=It)return ol(oe,ar,br(ee,0),br(ee,It.length),"+input"),lt.stateAfter=null,!0;for(var aa=0;aa<oe.sel.ranges.length;aa++){var Oa=oe.sel.ranges[aa];if(Oa.head.line==ee&&Oa.head.ch<It.length){var uo=br(ee,It.length);Ki(oe,aa,new rs(uo,uo));break}}}var mc=null;function Lc(x){mc=x}function Hc(x,ee,ie,re,oe){var we=x.doc;x.display.shift=!1,re||(re=we.sel);var je=+new Date-200,lt=oe=="paste"||x.state.pasteIncoming>je,mt=$t(ee),It=null;if(lt&&re.ranges.length>1)if(mc&&mc.text.join(`
|
|
|
`)==ee){if(re.ranges.length%mc.text.length==0){It=[];for(var zn=0;zn<mc.text.length;zn++)It.push(we.splitLines(mc.text[zn]))}}else mt.length==re.ranges.length&&x.options.pasteLinesPerSelection&&(It=sr(mt,function(Oo){return[Oo]}));for(var ar=x.curOp.updateInput,ui=re.ranges.length-1;ui>=0;ui--){var $r=re.ranges[ui],aa=$r.from(),Oa=$r.to();$r.empty()&&(ie&&ie>0?aa=br(aa.line,aa.ch-ie):x.state.overwrite&&!lt?Oa=br(Oa.line,Math.min(er(we,Oa.line).text.length,Oa.ch+pn(mt).length)):lt&&mc&&mc.lineWise&&mc.text.join(`
|
|
|
`)==mt.join(`
|
|
|
`)&&(aa=Oa=br(aa.line,0)));var uo={from:aa,to:Oa,text:It?It[ui%It.length]:mt,origin:oe||(lt?"paste":x.state.cutIncoming>je?"cut":"+input")};ma(x.doc,uo),kr(x,"inputRead",x,uo)}ee&&!lt&&sd(x,ee),qo(x),x.curOp.updateInput<2&&(x.curOp.updateInput=ar),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function yd(x,ee){var ie=x.clipboardData&&x.clipboardData.getData("Text");if(ie)return x.preventDefault(),!ee.isReadOnly()&&!ee.options.disableInput&&ba(ee,function(){return Hc(ee,ie,0,null,"paste")}),!0}function sd(x,ee){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ie=x.doc.sel,re=ie.ranges.length-1;re>=0;re--){var oe=ie.ranges[re];if(!(oe.head.ch>100||re&&ie.ranges[re-1].head.line==oe.head.line)){var we=x.getModeAt(oe.head),je=!1;if(we.electricChars){for(var lt=0;lt<we.electricChars.length;lt++)if(ee.indexOf(we.electricChars.charAt(lt))>-1){je=pc(x,oe.head.line,"smart");break}}else we.electricInput&&we.electricInput.test(er(x.doc,oe.head.line).text.slice(0,oe.head.ch))&&(je=pc(x,oe.head.line,"smart"));je&&kr(x,"electricInput",x,oe.head.line)}}}function Zc(x){for(var ee=[],ie=[],re=0;re<x.doc.sel.ranges.length;re++){var oe=x.doc.sel.ranges[re].head.line,we={anchor:br(oe,0),head:br(oe+1,0)};ie.push(we),ee.push(x.getRange(we.anchor,we.head))}return{text:ee,ranges:ie}}function Qd(x,ee,ie,re){x.setAttribute("autocorrect",ie?"":"off"),x.setAttribute("autocapitalize",re?"":"off"),x.setAttribute("spellcheck",!!ee)}function Es(){var x=ct("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ee=ct("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return de?x.style.width="1000px":x.setAttribute("wrap","off"),rt&&(x.style.border="1px solid black"),Qd(x),ee}function _s(x){var ee=x.optionHandlers,ie=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(re,oe){var we=this.options,je=we[re];we[re]==oe&&re!="mode"||(we[re]=oe,ee.hasOwnProperty(re)&&Ta(this,ee[re])(this,oe,je),Lt(this,"optionChange",this,re))},getOption:function(re){return this.options[re]},getDoc:function(){return this.doc},addKeyMap:function(re,oe){this.state.keyMaps[oe?"push":"unshift"](eu(re))},removeKeyMap:function(re){for(var oe=this.state.keyMaps,we=0;we<oe.length;++we)if(oe[we]==re||oe[we].name==re)return oe.splice(we,1),!0},addOverlay:Eo(function(re,oe){var we=re.token?re:x.getMode(this.options,re);if(we.startState)throw new Error("Overlays may not be stateful.");Tn(this.state.overlays,{mode:we,modeSpec:re,opaque:oe&&oe.opaque,priority:oe&&oe.priority||0},function(je){return je.priority}),this.state.modeGen++,jr(this)}),removeOverlay:Eo(function(re){for(var oe=this.state.overlays,we=0;we<oe.length;++we){var je=oe[we].modeSpec;if(je==re||typeof re=="string"&&je.name==re){oe.splice(we,1),this.state.modeGen++,jr(this);return}}}),indentLine:Eo(function(re,oe,we){typeof oe!="string"&&typeof oe!="number"&&(oe==null?oe=this.options.smartIndent?"smart":"prev":oe=oe?"add":"subtract"),Ti(this.doc,re)&&pc(this,re,oe,we)}),indentSelection:Eo(function(re){for(var oe=this.doc.sel.ranges,we=-1,je=0;je<oe.length;je++){var lt=oe[je];if(lt.empty())lt.head.line>we&&(pc(this,lt.head.line,re,!0),we=lt.head.line,je==this.doc.sel.primIndex&&qo(this));else{var mt=lt.from(),It=lt.to(),zn=Math.max(we,mt.line);we=Math.min(this.lastLine(),It.line-(It.ch?0:1))+1;for(var ar=zn;ar<we;++ar)pc(this,ar,re);var ui=this.doc.sel.ranges;mt.ch==0&&oe.length==ui.length&&ui[je].from().ch>0&&Ki(this.doc,je,new rs(mt,ui[je].to()),Et)}}}),getTokenAt:function(re,oe){return Rl(this,re,oe)},getLineTokens:function(re,oe){return Rl(this,br(re),oe,!0)},getTokenTypeAt:function(re){re=Ea(this.doc,re);var oe=Ko(this,er(this.doc,re.line)),we=0,je=(oe.length-1)/2,lt=re.ch,mt;if(lt==0)mt=oe[2];else for(;;){var It=we+je>>1;if((It?oe[It*2-1]:0)>=lt)je=It;else if(oe[It*2+1]<lt)we=It+1;else{mt=oe[It*2+2];break}}var zn=mt?mt.indexOf("overlay "):-1;return zn<0?mt:zn==0?null:mt.slice(0,zn-1)},getModeAt:function(re){var oe=this.doc.mode;return oe.innerMode?x.innerMode(oe,this.getTokenAt(re).state).mode:oe},getHelper:function(re,oe){return this.getHelpers(re,oe)[0]},getHelpers:function(re,oe){var we=[];if(!ie.hasOwnProperty(oe))return we;var je=ie[oe],lt=this.getModeAt(re);if(typeof lt[oe]=="string")je[lt[oe]]&&we.push(je[lt[oe]]);else if(lt[oe])for(var mt=0;mt<lt[oe].length;mt++){var It=je[lt[oe][mt]];It&&we.push(It)}else lt.helperType&&je[lt.helperType]?we.push(je[lt.helperType]):je[lt.name]&&we.push(je[lt.name]);for(var zn=0;zn<je._global.length;zn++){var ar=je._global[zn];ar.pred(lt,this)&&Dt(we,ar.val)==-1&&we.push(ar.val)}return we},getStateAfter:function(re,oe){var we=this.doc;return re=Lo(we,re==null?we.first+we.size-1:re),Do(this,re+1,oe).state},cursorCoords:function(re,oe){var we,je=this.doc.sel.primary();return re==null?we=je.head:typeof re=="object"?we=Ea(this.doc,re):we=re?je.from():je.to(),fl(this,we,oe||"page")},charCoords:function(re,oe){return Ro(this,Ea(this.doc,re),oe||"page")},coordsChar:function(re,oe){return re=So(this,re,oe||"page"),dn(this,re.left,re.top)},lineAtHeight:function(re,oe){return re=So(this,{top:re,left:0},oe||"page").top,Ji(this.doc,re+this.display.viewOffset)},heightAtLine:function(re,oe,we){var je=!1,lt;if(typeof re=="number"){var mt=this.doc.first+this.doc.size-1;re<this.doc.first?re=this.doc.first:re>mt&&(re=mt,je=!0),lt=er(this.doc,re)}else lt=re;return qi(this,lt,{top:0,left:0},oe||"page",we||je).top+(je?this.doc.height-Un(lt):0)},defaultTextHeight:function(){return Yi(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(re,oe,we,je,lt){var mt=this.display;re=fl(this,Ea(this.doc,re));var It=re.bottom,zn=re.left;if(oe.style.position="absolute",oe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(oe),mt.sizer.appendChild(oe),je=="over")It=re.top;else if(je=="above"||je=="near"){var ar=Math.max(mt.wrapper.clientHeight,this.doc.height),ui=Math.max(mt.sizer.clientWidth,mt.lineSpace.clientWidth);(je=="above"||re.bottom+oe.offsetHeight>ar)&&re.top>oe.offsetHeight?It=re.top-oe.offsetHeight:re.bottom+oe.offsetHeight<=ar&&(It=re.bottom),zn+oe.offsetWidth>ui&&(zn=ui-oe.offsetWidth)}oe.style.top=It+"px",oe.style.left=oe.style.right="",lt=="right"?(zn=mt.sizer.clientWidth-oe.offsetWidth,oe.style.right="0px"):(lt=="left"?zn=0:lt=="middle"&&(zn=(mt.sizer.clientWidth-oe.offsetWidth)/2),oe.style.left=zn+"px"),we&&Fo(this,{left:zn,top:It,right:zn+oe.offsetWidth,bottom:It+oe.offsetHeight})},triggerOnKeyDown:Eo(ku),triggerOnKeyPress:Eo(xc),triggerOnKeyUp:Yu,triggerOnMouseDown:Eo(Iu),execCommand:function(re){if(Qs.hasOwnProperty(re))return Qs[re].call(null,this)},triggerElectric:Eo(function(re){sd(this,re)}),findPosH:function(re,oe,we,je){var lt=1;oe<0&&(lt=-1,oe=-oe);for(var mt=Ea(this.doc,re),It=0;It<oe&&(mt=qu(this.doc,mt,lt,we,je),!mt.hitSide);++It);return mt},moveH:Eo(function(re,oe){var we=this;this.extendSelectionsBy(function(je){return we.display.shift||we.doc.extend||je.empty()?qu(we.doc,je.head,re,oe,we.options.rtlMoveVisually):re<0?je.from():je.to()},Yt)}),deleteH:Eo(function(re,oe){var we=this.doc.sel,je=this.doc;we.somethingSelected()?je.replaceSelection("",null,"+delete"):Uu(this,function(lt){var mt=qu(je,lt.head,re,oe,!1);return re<0?{from:mt,to:lt.head}:{from:lt.head,to:mt}})}),findPosV:function(re,oe,we,je){var lt=1,mt=je;oe<0&&(lt=-1,oe=-oe);for(var It=Ea(this.doc,re),zn=0;zn<oe;++zn){var ar=fl(this,It,"div");if(mt==null?mt=ar.left:ar.left=mt,It=wc(this,ar,lt,we),It.hitSide)break}return It},moveV:Eo(function(re,oe){var we=this,je=this.doc,lt=[],mt=!this.display.shift&&!je.extend&&je.sel.somethingSelected();if(je.extendSelectionsBy(function(zn){if(mt)return re<0?zn.from():zn.to();var ar=fl(we,zn.head,"div");zn.goalColumn!=null&&(ar.left=zn.goalColumn),lt.push(ar.left);var ui=wc(we,ar,re,oe);return oe=="page"&&zn==je.sel.primary()&&Ao(we,Ro(we,ui,"div").top-ar.top),ui},Yt),lt.length)for(var It=0;It<je.sel.ranges.length;It++)je.sel.ranges[It].goalColumn=lt[It]}),findWordAt:function(re){var oe=this.doc,we=er(oe,re.line).text,je=re.ch,lt=re.ch;if(we){var mt=this.getHelper(re,"wordChars");(re.sticky=="before"||lt==we.length)&&je?--je:++lt;for(var It=we.charAt(je),zn=ve(It,mt)?function(ar){return ve(ar,mt)}:/\s/.test(It)?function(ar){return/\s/.test(ar)}:function(ar){return!/\s/.test(ar)&&!ve(ar)};je>0&&zn(we.charAt(je-1));)--je;for(;lt<we.length&&zn(we.charAt(lt));)++lt}return new rs(br(re.line,je),br(re.line,lt))},toggleOverwrite:function(re){re!=null&&re==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ft(this.display.cursorDiv,"CodeMirror-overwrite"):Ye(this.display.cursorDiv,"CodeMirror-overwrite"),Lt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==$e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Eo(function(re,oe){go(this,re,oe)}),getScrollInfo:function(){var re=this.display.scroller;return{left:re.scrollLeft,top:re.scrollTop,height:re.scrollHeight-Mr(this)-this.display.barHeight,width:re.scrollWidth-Mr(this)-this.display.barWidth,clientHeight:yr(this),clientWidth:tr(this)}},scrollIntoView:Eo(function(re,oe){re==null?(re={from:this.doc.sel.primary().head,to:null},oe==null&&(oe=this.options.cursorScrollMargin)):typeof re=="number"?re={from:br(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=oe||0,re.from.line!=null?Io(this,re):Fa(this,re.from,re.to,re.margin)}),setSize:Eo(function(re,oe){var we=this,je=function(mt){return typeof mt=="number"||/^\d+$/.test(String(mt))?mt+"px":mt};re!=null&&(this.display.wrapper.style.width=je(re)),oe!=null&&(this.display.wrapper.style.height=je(oe)),this.options.lineWrapping&&to(this);var lt=this.display.viewFrom;this.doc.iter(lt,this.display.viewTo,function(mt){if(mt.widgets){for(var It=0;It<mt.widgets.length;It++)if(mt.widgets[It].noHScroll){li(we,lt,"widget");break}}++lt}),this.curOp.forceUpdate=!0,Lt(this,"refresh",this)}),operation:function(re){return ba(this,re)},startOperation:function(){return Gi(this)},endOperation:function(){return ho(this)},refresh:Eo(function(){var re=this.display.cachedTextHeight;jr(this),this.curOp.forceUpdate=!0,Ba(this),go(this,this.doc.scrollLeft,this.doc.scrollTop),Xs(this.display),(re==null||Math.abs(re-Yi(this.display))>.5||this.options.lineWrapping)&&Xi(this),Lt(this,"refresh",this)}),swapDoc:Eo(function(re){var oe=this.doc;return oe.cm=null,this.state.selectingText&&this.state.selectingText(),hl(this,re),Ba(this),this.display.input.reset(),go(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,kr(this,"swapDoc",this,oe),oe}),phrase:function(re){var oe=this.options.phrases;return oe&&Object.prototype.hasOwnProperty.call(oe,re)?oe[re]:re},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}},en(x),x.registerHelper=function(re,oe,we){ie.hasOwnProperty(re)||(ie[re]=x[re]={_global:[]}),ie[re][oe]=we},x.registerGlobalHelper=function(re,oe,we,je){x.registerHelper(re,oe,je),ie[re]._global.push({pred:we,val:je})}}function qu(x,ee,ie,re,oe){var we=ee,je=ie,lt=er(x,ee.line),mt=oe&&x.direction=="rtl"?-ie:ie;function It(){var $o=ee.line+mt;return $o<x.first||$o>=x.first+x.size?!1:(ee=new br($o,ee.ch,ee.sticky),lt=er(x,$o))}function zn($o){var Co;if(re=="codepoint"){var tl=lt.text.charCodeAt(ee.ch+(re>0?0:-1));isNaN(tl)?Co=null:Co=new br(ee.line,Math.max(0,Math.min(lt.text.length,ee.ch+ie*(tl>=55296&&tl<56320?2:1))),-ie)}else oe?Co=ou(x.cm,lt,ee,ie):Co=Bu(lt,ee,ie);if(Co==null)if(!$o&&It())ee=nu(oe,x.cm,lt,ee.line,mt);else return!1;else ee=Co;return!0}if(re=="char"||re=="codepoint")zn();else if(re=="column")zn(!0);else if(re=="word"||re=="group")for(var ar=null,ui=re=="group",$r=x.cm&&x.cm.getHelper(ee,"wordChars"),aa=!0;!(ie<0&&!zn(!aa));aa=!1){var Oa=lt.text.charAt(ee.ch)||`
|
|
|
`,uo=ve(Oa,$r)?"w":ui&&Oa==`
|
|
|
`?"n":!ui||/\s/.test(Oa)?null:"p";if(ui&&!aa&&!uo&&(uo="s"),ar&&ar!=uo){ie<0&&(ie=1,zn(),ee.sticky="after");break}if(uo&&(ar=uo),ie>0&&!zn(!aa))break}var Oo=To(x,ee,we,je,!0);return ni(we,Oo)&&(Oo.hitSide=!0),Oo}function wc(x,ee,ie,re){var oe=x.doc,we=ee.left,je;if(re=="page"){var lt=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),mt=Math.max(lt-.5*Yi(x.display),3);je=(ie>0?ee.bottom:ee.top)+ie*mt}else re=="line"&&(je=ie>0?ee.bottom+3:ee.top-3);for(var It;It=dn(x,we,je),!!It.outside;){if(ie<0?je<=0:je>=oe.height){It.hitSide=!0;break}je+=ie*5}return It}var ps=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ps.prototype.init=function(x){var ee=this,ie=this,re=ie.cm,oe=ie.div=x.lineDiv;Qd(oe,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function we(lt){for(var mt=lt.target;mt;mt=mt.parentNode){if(mt==oe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(mt.className))break}return!1}sn(oe,"paste",function(lt){!we(lt)||Vt(re,lt)||yd(lt,re)||Be<=11&&setTimeout(Ta(re,function(){return ee.updateFromDOM()}),20)}),sn(oe,"compositionstart",function(lt){ee.composing={data:lt.data,done:!1}}),sn(oe,"compositionupdate",function(lt){ee.composing||(ee.composing={data:lt.data,done:!1})}),sn(oe,"compositionend",function(lt){ee.composing&&(lt.data!=ee.composing.data&&ee.readFromDOMSoon(),ee.composing.done=!0)}),sn(oe,"touchstart",function(){return ie.forceCompositionEnd()}),sn(oe,"input",function(){ee.composing||ee.readFromDOMSoon()});function je(lt){if(!(!we(lt)||Vt(re,lt))){if(re.somethingSelected())Lc({lineWise:!1,text:re.getSelections()}),lt.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var mt=Zc(re);Lc({lineWise:!0,text:mt.text}),lt.type=="cut"&&re.operation(function(){re.setSelections(mt.ranges,0,Et),re.replaceSelection("",null,"cut")})}else return;if(lt.clipboardData){lt.clipboardData.clearData();var It=mc.text.join(`
|
|
|
`);if(lt.clipboardData.setData("Text",It),lt.clipboardData.getData("Text")==It){lt.preventDefault();return}}var zn=Es(),ar=zn.firstChild;re.display.lineSpace.insertBefore(zn,re.display.lineSpace.firstChild),ar.value=mc.text.join(`
|
|
|
`);var ui=document.activeElement;gt(ar),setTimeout(function(){re.display.lineSpace.removeChild(zn),ui.focus(),ui==oe&&ie.showPrimarySelection()},50)}}sn(oe,"copy",je),sn(oe,"cut",je)},ps.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},ps.prototype.prepareSelection=function(){var x=Bn(this.cm,!1);return x.focus=document.activeElement==this.div,x},ps.prototype.showSelection=function(x,ee){!x||!this.cm.display.view.length||((x.focus||ee)&&this.showPrimarySelection(),this.showMultipleSelections(x))},ps.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ps.prototype.showPrimarySelection=function(){var x=this.getSelection(),ee=this.cm,ie=ee.doc.sel.primary(),re=ie.from(),oe=ie.to();if(ee.display.viewTo==ee.display.viewFrom||re.line>=ee.display.viewTo||oe.line<ee.display.viewFrom){x.removeAllRanges();return}var we=Xc(ee,x.anchorNode,x.anchorOffset),je=Xc(ee,x.focusNode,x.focusOffset);if(!(we&&!we.bad&&je&&!je.bad&&Di(za(we,je),re)==0&&Di(xa(we,je),oe)==0)){var lt=ee.display.view,mt=re.line>=ee.display.viewFrom&&Yc(ee,re)||{node:lt[0].measure.map[2],offset:0},It=oe.line<ee.display.viewTo&&Yc(ee,oe);if(!It){var zn=lt[lt.length-1].measure,ar=zn.maps?zn.maps[zn.maps.length-1]:zn.map;It={node:ar[ar.length-1],offset:ar[ar.length-2]-ar[ar.length-3]}}if(!mt||!It){x.removeAllRanges();return}var ui=x.rangeCount&&x.getRangeAt(0),$r;try{$r=Me(mt.node,mt.offset,It.offset,It.node)}catch(aa){}$r&&(!E&&ee.state.focused?(x.collapse(mt.node,mt.offset),$r.collapsed||(x.removeAllRanges(),x.addRange($r))):(x.removeAllRanges(),x.addRange($r)),ui&&x.anchorNode==null?x.addRange(ui):E&&this.startGracePeriod()),this.rememberSelection()}},ps.prototype.startGracePeriod=function(){var x=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){x.gracePeriod=!1,x.selectionChanged()&&x.cm.operation(function(){return x.cm.curOp.selectionChanged=!0})},20)},ps.prototype.showMultipleSelections=function(x){ot(this.cm.display.cursorDiv,x.cursors),ot(this.cm.display.selectionDiv,x.selection)},ps.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},ps.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var ee=x.getRangeAt(0).commonAncestorContainer;return pt(this.div,ee)},ps.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ps.prototype.blur=function(){this.div.blur()},ps.prototype.getField=function(){return this.div},ps.prototype.supportsTouch=function(){return!0},ps.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():ba(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function ee(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,ee))}this.polling.set(this.cm.options.pollInterval,ee)},ps.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},ps.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),ee=this.cm;if(qe&&pe&&this.cm.display.gutterSpecs.length&&Rd(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ie=Xc(ee,x.anchorNode,x.anchorOffset),re=Xc(ee,x.focusNode,x.focusOffset);ie&&re&&ba(ee,function(){sa(ee.doc,Au(ie,re),Et),(ie.bad||re.bad)&&(ee.curOp.selectionChanged=!0)})}}},ps.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,ee=x.display,ie=x.doc.sel.primary(),re=ie.from(),oe=ie.to();if(re.ch==0&&re.line>x.firstLine()&&(re=br(re.line-1,er(x.doc,re.line-1).length)),oe.ch==er(x.doc,oe.line).text.length&&oe.line<x.lastLine()&&(oe=br(oe.line+1,0)),re.line<ee.viewFrom||oe.line>ee.viewTo-1)return!1;var we,je,lt;re.line==ee.viewFrom||(we=_i(x,re.line))==0?(je=bi(ee.view[0].line),lt=ee.view[0].node):(je=bi(ee.view[we].line),lt=ee.view[we-1].node.nextSibling);var mt=_i(x,oe.line),It,zn;if(mt==ee.view.length-1?(It=ee.viewTo-1,zn=ee.lineDiv.lastChild):(It=bi(ee.view[mt+1].line)-1,zn=ee.view[mt+1].node.previousSibling),!lt)return!1;for(var ar=x.doc.splitLines(bd(x,lt,zn,je,It)),ui=Gr(x.doc,br(je,0),br(It,er(x.doc,It).text.length));ar.length>1&&ui.length>1;)if(pn(ar)==pn(ui))ar.pop(),ui.pop(),It--;else if(ar[0]==ui[0])ar.shift(),ui.shift(),je++;else break;for(var $r=0,aa=0,Oa=ar[0],uo=ui[0],Oo=Math.min(Oa.length,uo.length);$r<Oo&&Oa.charCodeAt($r)==uo.charCodeAt($r);)++$r;for(var $o=pn(ar),Co=pn(ui),tl=Math.min($o.length-(ar.length==1?$r:0),Co.length-(ui.length==1?$r:0));aa<tl&&$o.charCodeAt($o.length-aa-1)==Co.charCodeAt(Co.length-aa-1);)++aa;if(ar.length==1&&ui.length==1&&je==re.line)for(;$r&&$r>re.ch&&$o.charCodeAt($o.length-aa-1)==Co.charCodeAt(Co.length-aa-1);)$r--,aa++;ar[ar.length-1]=$o.slice(0,$o.length-aa).replace(/^\u200b+/,""),ar[0]=ar[0].slice($r).replace(/\u200b+$/,"");var Ol=br(je,$r),Tl=br(It,ui.length?pn(ui).length-aa:0);if(ar.length>1||ar[0]||Di(Ol,Tl))return ol(x.doc,ar,Ol,Tl,"+input"),!0},ps.prototype.ensurePolled=function(){this.forceCompositionEnd()},ps.prototype.reset=function(){this.forceCompositionEnd()},ps.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ps.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},ps.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ba(this.cm,function(){return jr(x.cm)})},ps.prototype.setUneditable=function(x){x.contentEditable="false"},ps.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Ta(this.cm,Hc)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},ps.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},ps.prototype.onContextMenu=function(){},ps.prototype.resetPosition=function(){},ps.prototype.needsContentAttribute=!0;function Yc(x,ee){var ie=Da(x,ee.line);if(!ie||ie.hidden)return null;var re=er(x.doc,ee.line),oe=Xn(ie,re,ee.line),we=nn(re,x.doc.direction),je="left";if(we){var lt=wn(we,ee.ch);je=lt%2?"right":"left"}var mt=Ui(oe.map,ee.ch,je);return mt.offset=mt.collapse=="right"?mt.end:mt.start,mt}function Rd(x){for(var ee=x;ee;ee=ee.parentNode)if(/CodeMirror-gutter-wrapper/.test(ee.className))return!0;return!1}function Ac(x,ee){return ee&&(x.bad=!0),x}function bd(x,ee,ie,re,oe){var we="",je=!1,lt=x.doc.lineSeparator(),mt=!1;function It($r){return function(aa){return aa.id==$r}}function zn(){je&&(we+=lt,mt&&(we+=lt),je=mt=!1)}function ar($r){$r&&(zn(),we+=$r)}function ui($r){if($r.nodeType==1){var aa=$r.getAttribute("cm-text");if(aa){ar(aa);return}var Oa=$r.getAttribute("cm-marker"),uo;if(Oa){var Oo=x.findMarks(br(re,0),br(oe+1,0),It(+Oa));Oo.length&&(uo=Oo[0].find(0))&&ar(Gr(x.doc,uo.from,uo.to).join(lt));return}if($r.getAttribute("contenteditable")=="false")return;var $o=/^(pre|div|p|li|table|br)$/i.test($r.nodeName);if(!/^br$/i.test($r.nodeName)&&$r.textContent.length==0)return;$o&&zn();for(var Co=0;Co<$r.childNodes.length;Co++)ui($r.childNodes[Co]);/^(pre|p)$/i.test($r.nodeName)&&(mt=!0),$o&&(je=!0)}else $r.nodeType==3&&ar($r.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ui(ee),ee!=ie;)ee=ee.nextSibling,mt=!1;return we}function Xc(x,ee,ie){var re;if(ee==x.display.lineDiv){if(re=x.display.lineDiv.childNodes[ie],!re)return Ac(x.clipPos(br(x.display.viewTo-1)),!0);ee=null,ie=0}else for(re=ee;;re=re.parentNode){if(!re||re==x.display.lineDiv)return null;if(re.parentNode&&re.parentNode==x.display.lineDiv)break}for(var oe=0;oe<x.display.view.length;oe++){var we=x.display.view[oe];if(we.node==re)return Hf(we,ee,ie)}}function Hf(x,ee,ie){var re=x.text.firstChild,oe=!1;if(!ee||!pt(re,ee))return Ac(br(bi(x.line),0),!0);if(ee==re&&(oe=!0,ee=re.childNodes[ie],ie=0,!ee)){var we=x.rest?pn(x.rest):x.line;return Ac(br(bi(we),we.text.length),oe)}var je=ee.nodeType==3?ee:null,lt=ee;for(!je&&ee.childNodes.length==1&&ee.firstChild.nodeType==3&&(je=ee.firstChild,ie&&(ie=je.nodeValue.length));lt.parentNode!=re;)lt=lt.parentNode;var mt=x.measure,It=mt.maps;function zn(uo,Oo,$o){for(var Co=-1;Co<(It?It.length:0);Co++)for(var tl=Co<0?mt.map:It[Co],Ol=0;Ol<tl.length;Ol+=3){var Tl=tl[Ol+2];if(Tl==uo||Tl==Oo){var cs=bi(Co<0?x.line:x.rest[Co]),Vs=tl[Ol]+$o;return($o<0||Tl!=uo)&&(Vs=tl[Ol+($o?1:0)]),br(cs,Vs)}}}var ar=zn(je,lt,ie);if(ar)return Ac(ar,oe);for(var ui=lt.nextSibling,$r=je?je.nodeValue.length-ie:0;ui;ui=ui.nextSibling){if(ar=zn(ui,ui.firstChild,0),ar)return Ac(br(ar.line,ar.ch-$r),oe);$r+=ui.textContent.length}for(var aa=lt.previousSibling,Oa=ie;aa;aa=aa.previousSibling){if(ar=zn(aa,aa.firstChild,-1),ar)return Ac(br(ar.line,ar.ch+Oa),oe);Oa+=aa.textContent.length}}var Ys=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Fe,this.hasSelection=!1,this.composing=null};Ys.prototype.init=function(x){var ee=this,ie=this,re=this.cm;this.createField(x);var oe=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),rt&&(oe.style.width="0px"),sn(oe,"input",function(){xe&&Be>=9&&ee.hasSelection&&(ee.hasSelection=null),ie.poll()}),sn(oe,"paste",function(je){Vt(re,je)||yd(je,re)||(re.state.pasteIncoming=+new Date,ie.fastPoll())});function we(je){if(!Vt(re,je)){if(re.somethingSelected())Lc({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var lt=Zc(re);Lc({lineWise:!0,text:lt.text}),je.type=="cut"?re.setSelections(lt.ranges,null,Et):(ie.prevInput="",oe.value=lt.text.join(`
|
|
|
`),gt(oe))}else return;je.type=="cut"&&(re.state.cutIncoming=+new Date)}}sn(oe,"cut",we),sn(oe,"copy",we),sn(x.scroller,"paste",function(je){if(!(Jt(x,je)||Vt(re,je))){if(!oe.dispatchEvent){re.state.pasteIncoming=+new Date,ie.focus();return}var lt=new Event("paste");lt.clipboardData=je.clipboardData,oe.dispatchEvent(lt)}}),sn(x.lineSpace,"selectstart",function(je){Jt(x,je)||Fr(je)}),sn(oe,"compositionstart",function(){var je=re.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:je,range:re.markText(je,re.getCursor("to"),{className:"CodeMirror-composing"})}}),sn(oe,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},Ys.prototype.createField=function(x){this.wrapper=Es(),this.textarea=this.wrapper.firstChild},Ys.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},Ys.prototype.prepareSelection=function(){var x=this.cm,ee=x.display,ie=x.doc,re=Bn(x);if(x.options.moveInputWithCursor){var oe=fl(x,ie.sel.primary().head,"div"),we=ee.wrapper.getBoundingClientRect(),je=ee.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(ee.wrapper.clientHeight-10,oe.top+je.top-we.top)),re.teLeft=Math.max(0,Math.min(ee.wrapper.clientWidth-10,oe.left+je.left-we.left))}return re},Ys.prototype.showSelection=function(x){var ee=this.cm,ie=ee.display;ot(ie.cursorDiv,x.cursors),ot(ie.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},Ys.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var ee=this.cm;if(ee.somethingSelected()){this.prevInput="";var ie=ee.getSelection();this.textarea.value=ie,ee.state.focused&>(this.textarea),xe&&Be>=9&&(this.hasSelection=ie)}else x||(this.prevInput=this.textarea.value="",xe&&Be>=9&&(this.hasSelection=null))}},Ys.prototype.getField=function(){return this.textarea},Ys.prototype.supportsTouch=function(){return!1},Ys.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!He||$e()!=this.textarea))try{this.textarea.focus()}catch(x){}},Ys.prototype.blur=function(){this.textarea.blur()},Ys.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ys.prototype.receivedFocus=function(){this.slowPoll()},Ys.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},Ys.prototype.fastPoll=function(){var x=!1,ee=this;ee.pollingFast=!0;function ie(){var re=ee.poll();!re&&!x?(x=!0,ee.polling.set(60,ie)):(ee.pollingFast=!1,ee.slowPoll())}ee.polling.set(20,ie)},Ys.prototype.poll=function(){var x=this,ee=this.cm,ie=this.textarea,re=this.prevInput;if(this.contextMenuPending||!ee.state.focused||$n(ie)&&!re&&!this.composing||ee.isReadOnly()||ee.options.disableInput||ee.state.keySeq)return!1;var oe=ie.value;if(oe==re&&!ee.somethingSelected())return!1;if(xe&&Be>=9&&this.hasSelection===oe||be&&/[\uf700-\uf7ff]/.test(oe))return ee.display.input.reset(),!1;if(ee.doc.sel==ee.display.selForContextMenu){var we=oe.charCodeAt(0);if(we==8203&&!re&&(re="\u200B"),we==8666)return this.reset(),this.cm.execCommand("undo")}for(var je=0,lt=Math.min(re.length,oe.length);je<lt&&re.charCodeAt(je)==oe.charCodeAt(je);)++je;return ba(ee,function(){Hc(ee,oe.slice(je),re.length-je,null,x.composing?"*compose":null),oe.length>1e3||oe.indexOf(`
|
|
|
`)>-1?ie.value=x.prevInput="":x.prevInput=oe,x.composing&&(x.composing.range.clear(),x.composing.range=ee.markText(x.composing.start,ee.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ys.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ys.prototype.onKeyPress=function(){xe&&Be>=9&&(this.hasSelection=null),this.fastPoll()},Ys.prototype.onContextMenu=function(x){var ee=this,ie=ee.cm,re=ie.display,oe=ee.textarea;ee.contextMenuPending&&ee.contextMenuPending();var we=Wa(ie,x),je=re.scroller.scrollTop;if(!we||De)return;var lt=ie.options.resetSelectionOnContextMenu;lt&&ie.doc.sel.contains(we)==-1&&Ta(ie,sa)(ie.doc,Au(we),Et);var mt=oe.style.cssText,It=ee.wrapper.style.cssText,zn=ee.wrapper.offsetParent.getBoundingClientRect();ee.wrapper.style.cssText="position: static",oe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-zn.top-5)+"px; left: "+(x.clientX-zn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ar;de&&(ar=window.scrollY),re.input.focus(),de&&window.scrollTo(null,ar),re.input.reset(),ie.somethingSelected()||(oe.value=ee.prevInput=" "),ee.contextMenuPending=$r,re.selForContextMenu=ie.doc.sel,clearTimeout(re.detectingSelectAll);function ui(){if(oe.selectionStart!=null){var Oa=ie.somethingSelected(),uo="\u200B"+(Oa?oe.value:"");oe.value="\u21DA",oe.value=uo,ee.prevInput=Oa?"":"\u200B",oe.selectionStart=1,oe.selectionEnd=uo.length,re.selForContextMenu=ie.doc.sel}}function $r(){if(ee.contextMenuPending==$r&&(ee.contextMenuPending=!1,ee.wrapper.style.cssText=It,oe.style.cssText=mt,xe&&Be<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=je),oe.selectionStart!=null)){(!xe||xe&&Be<9)&&ui();var Oa=0,uo=function(){re.selForContextMenu==ie.doc.sel&&oe.selectionStart==0&&oe.selectionEnd>0&&ee.prevInput=="\u200B"?Ta(ie,Kl)(ie):Oa++<10?re.detectingSelectAll=setTimeout(uo,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(uo,200)}}if(xe&&Be>=9&&ui(),ye){ei(x);var aa=function(){xr(window,"mouseup",aa),setTimeout($r,20)};sn(window,"mouseup",aa)}else setTimeout($r,50)},Ys.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},Ys.prototype.setUneditable=function(){},Ys.prototype.needsContentAttribute=!1;function ud(x,ee){if(ee=ee?xt(ee):{},ee.value=x.value,!ee.tabindex&&x.tabIndex&&(ee.tabindex=x.tabIndex),!ee.placeholder&&x.placeholder&&(ee.placeholder=x.placeholder),ee.autofocus==null){var ie=$e();ee.autofocus=ie==x||x.getAttribute("autofocus")!=null&&ie==document.body}function re(){x.value=lt.getValue()}var oe;if(x.form&&(sn(x.form,"submit",re),!ee.leaveSubmitMethodAlone)){var we=x.form;oe=we.submit;try{var je=we.submit=function(){re(),we.submit=oe,we.submit(),we.submit=je}}catch(mt){}}ee.finishInit=function(mt){mt.save=re,mt.getTextArea=function(){return x},mt.toTextArea=function(){mt.toTextArea=isNaN,re(),x.parentNode.removeChild(mt.getWrapperElement()),x.style.display="",x.form&&(xr(x.form,"submit",re),!ee.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=oe))}},x.style.display="none";var lt=Gl(function(mt){return x.parentNode.insertBefore(mt,x.nextSibling)},ee);return lt}function Jc(x){x.off=xr,x.on=sn,x.wheelEventPixels=fc,x.Doc=co,x.splitLines=$t,x.countColumn=et,x.findColumn=Vn,x.isWordChar=ge,x.Pass=Xt,x.signal=Lt,x.Line=_r,x.changeEnd=_u,x.scrollbarModel=gl,x.Pos=br,x.cmpPos=Di,x.modes=hi,x.mimeModes=oi,x.resolveMode=hn,x.getMode=An,x.modeExtensions=jn,x.extendMode=Bt,x.copyState=on,x.startState=Dn,x.innerMode=Kn,x.commands=Qs,x.keyMap=Xl,x.keyName=ju,x.isModifierKey=hu,x.lookupKey=au,x.normalizeKeyMap=ns,x.StringStream=rr,x.SharedTextMarker=zl,x.TextMarker=As,x.LineWidget=Is,x.e_preventDefault=Fr,x.e_stopPropagation=Ur,x.e_stop=ei,x.addClass=ft,x.contains=pt,x.rmClass=Ye,x.keyNames=Wu}vd(Gl),_s(Gl);var Tc="iter insert remove copy getEditor constructor".split(" ");for(var vc in co.prototype)co.prototype.hasOwnProperty(vc)&&Dt(Tc,vc)<0&&(Gl.prototype[vc]=function(x){return function(){return x.apply(this.doc,arguments)}}(co.prototype[vc]));return en(co),Gl.inputStyles={textarea:Ys,contenteditable:ps},Gl.defineMode=function(x){!Gl.defaults.mode&&x!="null"&&(Gl.defaults.mode=x),Vr.apply(this,arguments)},Gl.defineMIME=Ct,Gl.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Gl.defineMIME("text/plain","null"),Gl.defineExtension=function(x,ee){Gl.prototype[x]=ee},Gl.defineDocExtension=function(x,ee){co.prototype[x]=ee},Gl.fromTextArea=ud,Jc(Gl),Gl.version="5.58.2",Gl})},49047:function(In,Ut,te){(function(E){E(te(4631),te(29589),te(52539))})(function(E){"use strict";E.defineMode("markdown",function(fe,Ie){var Te=E.getMode(fe,"text/html"),xe=Te.name=="null";function Be(et){if(E.findModeByName){var Fe=E.findModeByName(et);Fe&&(et=Fe.mime||Fe.mimes[0])}var Dt=E.getMode(fe,et);return Dt.name=="null"?null:Dt}Ie.highlightFormatting===void 0&&(Ie.highlightFormatting=!1),Ie.maxBlockquoteDepth===void 0&&(Ie.maxBlockquoteDepth=0),Ie.taskLists===void 0&&(Ie.taskLists=!1),Ie.strikethrough===void 0&&(Ie.strikethrough=!1),Ie.emoji===void 0&&(Ie.emoji=!1),Ie.fencedCodeBlockHighlighting===void 0&&(Ie.fencedCodeBlockHighlighting=!0),Ie.fencedCodeBlockDefaultMode===void 0&&(Ie.fencedCodeBlockDefaultMode="text/plain"),Ie.xml===void 0&&(Ie.xml=!0),Ie.tokenTypeOverrides===void 0&&(Ie.tokenTypeOverrides={});var de={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 Se in de)de.hasOwnProperty(Se)&&Ie.tokenTypeOverrides[Se]&&(de[Se]=Ie.tokenTypeOverrides[Se]);var pe=/^([*\-_])(?:\s*\1){2,}\s*$/,De=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Xe=/^\[(x| )\](?=\s)/i,Pe=Ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ue=/^ {0,3}(?:\={1,}|-{2,})\s*$/,rt=/^[^#!\[\]*_\\<>` "'(~:]+/,qe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,He=/^\s*\[[^\]]+?\]:.*$/,be=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Qe=" ";function ht(et,Fe,Dt){return Fe.f=Fe.inline=Dt,Dt(et,Fe)}function Je(et,Fe,Dt){return Fe.f=Fe.block=Dt,Dt(et,Fe)}function Ze(et){return!et||!/\S/.test(et.string)}function ye(et){if(et.linkTitle=!1,et.linkHref=!1,et.linkText=!1,et.em=!1,et.strong=!1,et.strikethrough=!1,et.quote=0,et.indentedCode=!1,et.f==Ye){var Fe=xe;if(!Fe){var Dt=E.innerMode(Te,et.htmlState);Fe=Dt.mode.name=="xml"&&Dt.state.tagStart===null&&!Dt.state.context&&Dt.state.tokenize.isInText}Fe&&(et.f=_e,et.block=Ee,et.htmlState=null)}return et.trailingSpace=0,et.trailingSpaceNewLine=!1,et.prevLine=et.thisLine,et.thisLine={stream:null},null}function Ee(et,Fe){var Dt=et.column()===Fe.indentation,qt=Ze(Fe.prevLine.stream),Xt=Fe.indentedCode,Et=Fe.prevLine.hr,zt=Fe.list!==!1,Yt=(Fe.listStack[Fe.listStack.length-1]||0)+3;Fe.indentedCode=!1;var Vn=Fe.indentation;if(Fe.indentationDiff===null&&(Fe.indentationDiff=Fe.indentation,zt)){for(Fe.list=null;Vn<Fe.listStack[Fe.listStack.length-1];)Fe.listStack.pop(),Fe.listStack.length?Fe.indentation=Fe.listStack[Fe.listStack.length-1]:Fe.list=!1;Fe.list!==!1&&(Fe.indentationDiff=Vn-Fe.listStack[Fe.listStack.length-1])}var Pn=!qt&&!Et&&!Fe.prevLine.header&&(!zt||!Xt)&&!Fe.prevLine.fencedCodeEnd,_t=(Fe.list===!1||Et||qt)&&Fe.indentation<=Yt&&et.match(pe),pn=null;if(Fe.indentationDiff>=4&&(Xt||Fe.prevLine.fencedCodeEnd||Fe.prevLine.header||qt))return et.skipToEnd(),Fe.indentedCode=!0,de.code;if(et.eatSpace())return null;if(Dt&&Fe.indentation<=Yt&&(pn=et.match(Pe))&&pn[1].length<=6)return Fe.quote=0,Fe.header=pn[1].length,Fe.thisLine.header=!0,Ie.highlightFormatting&&(Fe.formatting="header"),Fe.f=Fe.inline,ot(Fe);if(Fe.indentation<=Yt&&et.eat(">"))return Fe.quote=Dt?1:Fe.quote+1,Ie.highlightFormatting&&(Fe.formatting="quote"),et.eatSpace(),ot(Fe);if(!_t&&!Fe.setext&&Dt&&Fe.indentation<=Yt&&(pn=et.match(De))){var sr=pn[1]?"ol":"ul";return Fe.indentation=Vn+et.current().length,Fe.list=!0,Fe.quote=0,Fe.listStack.push(Fe.indentation),Fe.em=!1,Fe.strong=!1,Fe.code=!1,Fe.strikethrough=!1,Ie.taskLists&&et.match(Xe,!1)&&(Fe.taskList=!0),Fe.f=Fe.inline,Ie.highlightFormatting&&(Fe.formatting=["list","list-"+sr]),ot(Fe)}else{if(Dt&&Fe.indentation<=Yt&&(pn=et.match(qe,!0)))return Fe.quote=0,Fe.fencedEndRE=new RegExp(pn[1]+"+ *$"),Fe.localMode=Ie.fencedCodeBlockHighlighting&&Be(pn[2]||Ie.fencedCodeBlockDefaultMode),Fe.localMode&&(Fe.localState=E.startState(Fe.localMode)),Fe.f=Fe.block=Ne,Ie.highlightFormatting&&(Fe.formatting="code-block"),Fe.code=-1,ot(Fe);if(Fe.setext||(!Pn||!zt)&&!Fe.quote&&Fe.list===!1&&!Fe.code&&!_t&&!He.test(et.string)&&(pn=et.lookAhead(1))&&(pn=pn.match(Ue)))return Fe.setext?(Fe.header=Fe.setext,Fe.setext=0,et.skipToEnd(),Ie.highlightFormatting&&(Fe.formatting="header")):(Fe.header=pn[0].charAt(0)=="="?1:2,Fe.setext=Fe.header),Fe.thisLine.header=!0,Fe.f=Fe.inline,ot(Fe);if(_t)return et.skipToEnd(),Fe.hr=!0,Fe.thisLine.hr=!0,de.hr;if(et.peek()==="[")return ht(et,Fe,We)}return ht(et,Fe,Fe.inline)}function Ye(et,Fe){var Dt=Te.token(et,Fe.htmlState);if(!xe){var qt=E.innerMode(Te,Fe.htmlState);(qt.mode.name=="xml"&&qt.state.tagStart===null&&!qt.state.context&&qt.state.tokenize.isInText||Fe.md_inside&&et.current().indexOf(">")>-1)&&(Fe.f=_e,Fe.block=Ee,Fe.htmlState=null)}return Dt}function Ne(et,Fe){var Dt=Fe.listStack[Fe.listStack.length-1]||0,qt=Fe.indentation<Dt,Xt=Dt+3;if(Fe.fencedEndRE&&Fe.indentation<=Xt&&(qt||et.match(Fe.fencedEndRE))){Ie.highlightFormatting&&(Fe.formatting="code-block");var Et;return qt||(Et=ot(Fe)),Fe.localMode=Fe.localState=null,Fe.block=Ee,Fe.f=_e,Fe.fencedEndRE=null,Fe.code=0,Fe.thisLine.fencedCodeEnd=!0,qt?Je(et,Fe,Fe.block):Et}else return Fe.localMode?Fe.localMode.token(et,Fe.localState):(et.skipToEnd(),de.code)}function ot(et){var Fe=[];if(et.formatting){Fe.push(de.formatting),typeof et.formatting=="string"&&(et.formatting=[et.formatting]);for(var Dt=0;Dt<et.formatting.length;Dt++)Fe.push(de.formatting+"-"+et.formatting[Dt]),et.formatting[Dt]==="header"&&Fe.push(de.formatting+"-"+et.formatting[Dt]+"-"+et.header),et.formatting[Dt]==="quote"&&(!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=et.quote?Fe.push(de.formatting+"-"+et.formatting[Dt]+"-"+et.quote):Fe.push("error"))}if(et.taskOpen)return Fe.push("meta"),Fe.length?Fe.join(" "):null;if(et.taskClosed)return Fe.push("property"),Fe.length?Fe.join(" "):null;if(et.linkHref?Fe.push(de.linkHref,"url"):(et.strong&&Fe.push(de.strong),et.em&&Fe.push(de.em),et.strikethrough&&Fe.push(de.strikethrough),et.emoji&&Fe.push(de.emoji),et.linkText&&Fe.push(de.linkText),et.code&&Fe.push(de.code),et.image&&Fe.push(de.image),et.imageAltText&&Fe.push(de.imageAltText,"link"),et.imageMarker&&Fe.push(de.imageMarker)),et.header&&Fe.push(de.header,de.header+"-"+et.header),et.quote&&(Fe.push(de.quote),!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=et.quote?Fe.push(de.quote+"-"+et.quote):Fe.push(de.quote+"-"+Ie.maxBlockquoteDepth)),et.list!==!1){var qt=(et.listStack.length-1)%3;qt?qt===1?Fe.push(de.list2):Fe.push(de.list3):Fe.push(de.list1)}return et.trailingSpaceNewLine?Fe.push("trailing-space-new-line"):et.trailingSpace&&Fe.push("trailing-space-"+(et.trailingSpace%2?"a":"b")),Fe.length?Fe.join(" "):null}function ct(et,Fe){if(et.match(rt,!0))return ot(Fe)}function _e(et,Fe){var Dt=Fe.text(et,Fe);if(typeof Dt!="undefined")return Dt;if(Fe.list)return Fe.list=null,ot(Fe);if(Fe.taskList){var qt=et.match(Xe,!0)[1]===" ";return qt?Fe.taskOpen=!0:Fe.taskClosed=!0,Ie.highlightFormatting&&(Fe.formatting="task"),Fe.taskList=!1,ot(Fe)}if(Fe.taskOpen=!1,Fe.taskClosed=!1,Fe.header&&et.match(/^#+$/,!0))return Ie.highlightFormatting&&(Fe.formatting="header"),ot(Fe);var Xt=et.next();if(Fe.linkTitle){Fe.linkTitle=!1;var Et=Xt;Xt==="("&&(Et=")"),Et=(Et+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var zt="^\\s*(?:[^"+Et+"\\\\]+|\\\\\\\\|\\\\.)"+Et;if(et.match(new RegExp(zt),!0))return de.linkHref}if(Xt==="`"){var Yt=Fe.formatting;Ie.highlightFormatting&&(Fe.formatting="code"),et.eatWhile("`");var Vn=et.current().length;if(Fe.code==0&&(!Fe.quote||Vn==1))return Fe.code=Vn,ot(Fe);if(Vn==Fe.code){var Pn=ot(Fe);return Fe.code=0,Pn}else return Fe.formatting=Yt,ot(Fe)}else if(Fe.code)return ot(Fe);if(Xt==="\\"&&(et.next(),Ie.highlightFormatting)){var _t=ot(Fe),pn=de.formatting+"-escape";return _t?_t+" "+pn:pn}if(Xt==="!"&&et.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Fe.imageMarker=!0,Fe.image=!0,Ie.highlightFormatting&&(Fe.formatting="image"),ot(Fe);if(Xt==="["&&Fe.imageMarker&&et.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Fe.imageMarker=!1,Fe.imageAltText=!0,Ie.highlightFormatting&&(Fe.formatting="image"),ot(Fe);if(Xt==="]"&&Fe.imageAltText){Ie.highlightFormatting&&(Fe.formatting="image");var _t=ot(Fe);return Fe.imageAltText=!1,Fe.image=!1,Fe.inline=Fe.f=pt,_t}if(Xt==="["&&!Fe.image)return Fe.linkText&&et.match(/^.*?\]/)||(Fe.linkText=!0,Ie.highlightFormatting&&(Fe.formatting="link")),ot(Fe);if(Xt==="]"&&Fe.linkText){Ie.highlightFormatting&&(Fe.formatting="link");var _t=ot(Fe);return Fe.linkText=!1,Fe.inline=Fe.f=et.match(/\(.*?\)| ?\[.*?\]/,!1)?pt:_e,_t}if(Xt==="<"&&et.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Fe.f=Fe.inline=Me,Ie.highlightFormatting&&(Fe.formatting="link");var _t=ot(Fe);return _t?_t+=" ":_t="",_t+de.linkInline}if(Xt==="<"&&et.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Fe.f=Fe.inline=Me,Ie.highlightFormatting&&(Fe.formatting="link");var _t=ot(Fe);return _t?_t+=" ":_t="",_t+de.linkEmail}if(Ie.xml&&Xt==="<"&&et.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var sr=et.string.indexOf(">",et.pos);if(sr!=-1){var Tn=et.string.substring(et.start,sr);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Tn)&&(Fe.md_inside=!0)}return et.backUp(1),Fe.htmlState=E.startState(Te),Je(et,Fe,Ye)}if(Ie.xml&&Xt==="<"&&et.match(/^\/\w*?>/))return Fe.md_inside=!1,"tag";if(Xt==="*"||Xt==="_"){for(var Oe=1,me=et.pos==1?" ":et.string.charAt(et.pos-2);Oe<3&&et.eat(Xt);)Oe++;var he=et.peek()||" ",ge=!/\s/.test(he)&&(!be.test(he)||/\s/.test(me)||be.test(me)),ve=!/\s/.test(me)&&(!be.test(me)||/\s/.test(he)||be.test(he)),se=null,Ke=null;if(Oe%2&&(!Fe.em&&ge&&(Xt==="*"||!ve||be.test(me))?se=!0:Fe.em==Xt&&ve&&(Xt==="*"||!ge||be.test(he))&&(se=!1)),Oe>1&&(!Fe.strong&&ge&&(Xt==="*"||!ve||be.test(me))?Ke=!0:Fe.strong==Xt&&ve&&(Xt==="*"||!ge||be.test(he))&&(Ke=!1)),Ke!=null||se!=null){Ie.highlightFormatting&&(Fe.formatting=se==null?"strong":Ke==null?"em":"strong em"),se===!0&&(Fe.em=Xt),Ke===!0&&(Fe.strong=Xt);var Pn=ot(Fe);return se===!1&&(Fe.em=!1),Ke===!1&&(Fe.strong=!1),Pn}}else if(Xt===" "&&(et.eat("*")||et.eat("_"))){if(et.peek()===" ")return ot(Fe);et.backUp(1)}if(Ie.strikethrough){if(Xt==="~"&&et.eatWhile(Xt)){if(Fe.strikethrough){Ie.highlightFormatting&&(Fe.formatting="strikethrough");var Pn=ot(Fe);return Fe.strikethrough=!1,Pn}else if(et.match(/^[^\s]/,!1))return Fe.strikethrough=!0,Ie.highlightFormatting&&(Fe.formatting="strikethrough"),ot(Fe)}else if(Xt===" "&&et.match(/^~~/,!0)){if(et.peek()===" ")return ot(Fe);et.backUp(2)}}if(Ie.emoji&&Xt===":"&&et.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Fe.emoji=!0,Ie.highlightFormatting&&(Fe.formatting="emoji");var bt=ot(Fe);return Fe.emoji=!1,bt}return Xt===" "&&(et.match(/^ +$/,!1)?Fe.trailingSpace++:Fe.trailingSpace&&(Fe.trailingSpaceNewLine=!0)),ot(Fe)}function Me(et,Fe){var Dt=et.next();if(Dt===">"){Fe.f=Fe.inline=_e,Ie.highlightFormatting&&(Fe.formatting="link");var qt=ot(Fe);return qt?qt+=" ":qt="",qt+de.linkInline}return et.match(/^[^>]+/,!0),de.linkInline}function pt(et,Fe){if(et.eatSpace())return null;var Dt=et.next();return Dt==="("||Dt==="["?(Fe.f=Fe.inline=ft(Dt==="("?")":"]"),Ie.highlightFormatting&&(Fe.formatting="link-string"),Fe.linkHref=!0,ot(Fe)):"error"}var $e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ft(et){return function(Fe,Dt){var qt=Fe.next();if(qt===et){Dt.f=Dt.inline=_e,Ie.highlightFormatting&&(Dt.formatting="link-string");var Xt=ot(Dt);return Dt.linkHref=!1,Xt}return Fe.match($e[et]),Dt.linkHref=!0,ot(Dt)}}function We(et,Fe){return et.match(/^([^\]\\]|\\.)*\]:/,!1)?(Fe.f=gt,et.next(),Ie.highlightFormatting&&(Fe.formatting="link"),Fe.linkText=!0,ot(Fe)):ht(et,Fe,_e)}function gt(et,Fe){if(et.match(/^\]:/,!0)){Fe.f=Fe.inline=kt,Ie.highlightFormatting&&(Fe.formatting="link");var Dt=ot(Fe);return Fe.linkText=!1,Dt}return et.match(/^([^\]\\]|\\.)+/,!0),de.linkText}function kt(et,Fe){return et.eatSpace()?null:(et.match(/^[^\s]+/,!0),et.peek()===void 0?Fe.linkTitle=!0:et.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Fe.f=Fe.inline=_e,de.linkHref+" url")}var xt={startState:function(){return{f:Ee,prevLine:{stream:null},thisLine:{stream:null},block:Ee,htmlState:null,indentation:0,inline:_e,text:ct,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(et){return{f:et.f,prevLine:et.prevLine,thisLine:et.thisLine,block:et.block,htmlState:et.htmlState&&E.copyState(Te,et.htmlState),indentation:et.indentation,localMode:et.localMode,localState:et.localMode?E.copyState(et.localMode,et.localState):null,inline:et.inline,text:et.text,formatting:!1,linkText:et.linkText,linkTitle:et.linkTitle,linkHref:et.linkHref,code:et.code,em:et.em,strong:et.strong,strikethrough:et.strikethrough,emoji:et.emoji,header:et.header,setext:et.setext,hr:et.hr,taskList:et.taskList,list:et.list,listStack:et.listStack.slice(0),quote:et.quote,indentedCode:et.indentedCode,trailingSpace:et.trailingSpace,trailingSpaceNewLine:et.trailingSpaceNewLine,md_inside:et.md_inside,fencedEndRE:et.fencedEndRE}},token:function(et,Fe){if(Fe.formatting=!1,et!=Fe.thisLine.stream){if(Fe.header=0,Fe.hr=!1,et.match(/^\s*$/,!0))return ye(Fe),null;if(Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:et},Fe.taskList=!1,Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,!Fe.localState&&(Fe.f=Fe.block,Fe.f!=Ye)){var Dt=et.match(/^\s*/,!0)[0].replace(/\t/g,Qe).length;if(Fe.indentation=Dt,Fe.indentationDiff=null,Dt>0)return null}}return Fe.f(et,Fe)},innerMode:function(et){return et.block==Ye?{state:et.htmlState,mode:Te}:et.localState?{state:et.localState,mode:et.localMode}:{state:et,mode:xt}},indent:function(et,Fe,Dt){return et.block==Ye&&Te.indent?Te.indent(et.htmlState,Fe,Dt):et.localState&&et.localMode.indent?et.localMode.indent(et.localState,Fe,Dt):E.Pass},blankLine:ye,getType:ot,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return xt},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},52539:function(In,Ut,te){(function(E){E(te(4631))})(function(E){"use strict";E.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var fe=0;fe<E.modeInfo.length;fe++){var Ie=E.modeInfo[fe];Ie.mimes&&(Ie.mime=Ie.mimes[0])}E.findModeByMIME=function(Te){Te=Te.toLowerCase();for(var xe=0;xe<E.modeInfo.length;xe++){var Be=E.modeInfo[xe];if(Be.mime==Te)return Be;if(Be.mimes){for(var de=0;de<Be.mimes.length;de++)if(Be.mimes[de]==Te)return Be}}if(/\+xml$/.test(Te))return E.findModeByMIME("application/xml");if(/\+json$/.test(Te))return E.findModeByMIME("application/json")},E.findModeByExtension=function(Te){Te=Te.toLowerCase();for(var xe=0;xe<E.modeInfo.length;xe++){var Be=E.modeInfo[xe];if(Be.ext){for(var de=0;de<Be.ext.length;de++)if(Be.ext[de]==Te)return Be}}},E.findModeByFileName=function(Te){for(var xe=0;xe<E.modeInfo.length;xe++){var Be=E.modeInfo[xe];if(Be.file&&Be.file.test(Te))return Be}var de=Te.lastIndexOf("."),Se=de>-1&&Te.substring(de+1,Te.length);if(Se)return E.findModeByExtension(Se)},E.findModeByName=function(Te){Te=Te.toLowerCase();for(var xe=0;xe<E.modeInfo.length;xe++){var Be=E.modeInfo[xe];if(Be.name.toLowerCase()==Te)return Be;if(Be.alias){for(var de=0;de<Be.alias.length;de++)if(Be.alias[de].toLowerCase()==Te)return Be}}}})},80785:function(In,Ut,te){(function(E){E(te(4631))})(function(E){"use strict";E.defineMode("stex",function(fe,Ie){"use strict";function Te(rt,qe){rt.cmdState.push(qe)}function xe(rt){return rt.cmdState.length>0?rt.cmdState[rt.cmdState.length-1]:null}function Be(rt){var qe=rt.cmdState.pop();qe&&qe.closeBracket()}function de(rt){for(var qe=rt.cmdState,He=qe.length-1;He>=0;He--){var be=qe[He];if(be.name!="DEFAULT")return be}return{styleIdentifier:function(){return null}}}function Se(rt,qe,He){return function(){this.name=rt,this.bracketNo=0,this.style=qe,this.styles=He,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var pe={};pe.importmodule=Se("importmodule","tag",["string","builtin"]),pe.documentclass=Se("documentclass","tag",["","atom"]),pe.usepackage=Se("usepackage","tag",["atom"]),pe.begin=Se("begin","tag",["atom"]),pe.end=Se("end","tag",["atom"]),pe.label=Se("label","tag",["atom"]),pe.ref=Se("ref","tag",["atom"]),pe.eqref=Se("eqref","tag",["atom"]),pe.cite=Se("cite","tag",["atom"]),pe.bibitem=Se("bibitem","tag",["atom"]),pe.Bibitem=Se("Bibitem","tag",["atom"]),pe.RBibitem=Se("RBibitem","tag",["atom"]),pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function De(rt,qe){rt.f=qe}function Xe(rt,qe){var He;if(rt.match(/^\\[a-zA-Z@]+/)){var be=rt.current().slice(1);return He=pe.hasOwnProperty(be)?pe[be]:pe.DEFAULT,He=new He,Te(qe,He),De(qe,Ue),He.style}if(rt.match(/^\\[$&%#{}_]/)||rt.match(/^\\[,;!\/\\]/))return"tag";if(rt.match("\\["))return De(qe,function(ht,Je){return Pe(ht,Je,"\\]")}),"keyword";if(rt.match("\\("))return De(qe,function(ht,Je){return Pe(ht,Je,"\\)")}),"keyword";if(rt.match("$$"))return De(qe,function(ht,Je){return Pe(ht,Je,"$$")}),"keyword";if(rt.match("$"))return De(qe,function(ht,Je){return Pe(ht,Je,"$")}),"keyword";var Qe=rt.next();if(Qe=="%")return rt.skipToEnd(),"comment";if(Qe=="}"||Qe=="]"){if(He=xe(qe),He)He.closeBracket(Qe),De(qe,Ue);else return"error";return"bracket"}else return Qe=="{"||Qe=="["?(He=pe.DEFAULT,He=new He,Te(qe,He),"bracket"):/\d/.test(Qe)?(rt.eatWhile(/[\w.%]/),"atom"):(rt.eatWhile(/[\w\-_]/),He=de(qe),He.name=="begin"&&(He.argument=rt.current()),He.styleIdentifier())}function Pe(rt,qe,He){if(rt.eatSpace())return null;if(He&&rt.match(He))return De(qe,Xe),"keyword";if(rt.match(/^\\[a-zA-Z@]+/))return"tag";if(rt.match(/^[a-zA-Z]+/))return"variable-2";if(rt.match(/^\\[$&%#{}_]/)||rt.match(/^\\[,;!\/]/)||rt.match(/^[\^_&]/))return"tag";if(rt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(rt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var be=rt.next();return be=="{"||be=="}"||be=="["||be=="]"||be=="("||be==")"?"bracket":be=="%"?(rt.skipToEnd(),"comment"):"error"}function Ue(rt,qe){var He=rt.peek(),be;return He=="{"||He=="["?(be=xe(qe),be.openBracket(He),rt.eat(He),De(qe,Xe),"bracket"):/[ \t\r]/.test(He)?(rt.eat(He),null):(De(qe,Xe),Be(qe),Xe(rt,qe))}return{startState:function(){var rt=Ie.inMathMode?function(qe,He){return Pe(qe,He)}:Xe;return{cmdState:[],f:rt}},copyState:function(rt){return{cmdState:rt.cmdState.slice(),f:rt.f}},token:function(rt,qe){return qe.f(rt,qe)},blankLine:function(rt){rt.f=Xe,rt.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},29589:function(In,Ut,te){(function(E){E(te(4631))})(function(E){"use strict";var fe={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},Ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(Te,xe){var Be=Te.indentUnit,de={},Se=xe.htmlMode?fe:Ie;for(var pe in Se)de[pe]=Se[pe];for(var pe in xe)de[pe]=xe[pe];var De,Xe;function Pe(Me,pt){function $e(gt){return pt.tokenize=gt,gt(Me,pt)}var ft=Me.next();if(ft=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?$e(qe("atom","]]>")):null:Me.match("--")?$e(qe("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),$e(He(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),pt.tokenize=qe("meta","?>"),"meta"):(De=Me.eat("/")?"closeTag":"openTag",pt.tokenize=Ue,"tag bracket");if(ft=="&"){var We;return Me.eat("#")?Me.eat("x")?We=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):We=Me.eatWhile(/[\d]/)&&Me.eat(";"):We=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),We?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}Pe.isInText=!0;function Ue(Me,pt){var $e=Me.next();if($e==">"||$e=="/"&&Me.eat(">"))return pt.tokenize=Pe,De=$e==">"?"endTag":"selfcloseTag","tag bracket";if($e=="=")return De="equals",null;if($e=="<"){pt.tokenize=Pe,pt.state=Je,pt.tagName=pt.tagStart=null;var ft=pt.tokenize(Me,pt);return ft?ft+" tag error":"tag error"}else return/[\'\"]/.test($e)?(pt.tokenize=rt($e),pt.stringStartCol=Me.column(),pt.tokenize(Me,pt)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function rt(Me){var pt=function($e,ft){for(;!$e.eol();)if($e.next()==Me){ft.tokenize=Ue;break}return"string"};return pt.isInAttribute=!0,pt}function qe(Me,pt){return function($e,ft){for(;!$e.eol();){if($e.match(pt)){ft.tokenize=Pe;break}$e.next()}return Me}}function He(Me){return function(pt,$e){for(var ft;(ft=pt.next())!=null;){if(ft=="<")return $e.tokenize=He(Me+1),$e.tokenize(pt,$e);if(ft==">")if(Me==1){$e.tokenize=Pe;break}else return $e.tokenize=He(Me-1),$e.tokenize(pt,$e)}return"meta"}}function be(Me,pt,$e){this.prev=Me.context,this.tagName=pt,this.indent=Me.indented,this.startOfLine=$e,(de.doNotIndent.hasOwnProperty(pt)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function Qe(Me){Me.context&&(Me.context=Me.context.prev)}function ht(Me,pt){for(var $e;;){if(!Me.context||($e=Me.context.tagName,!de.contextGrabbers.hasOwnProperty($e)||!de.contextGrabbers[$e].hasOwnProperty(pt)))return;Qe(Me)}}function Je(Me,pt,$e){return Me=="openTag"?($e.tagStart=pt.column(),Ze):Me=="closeTag"?ye:Je}function Ze(Me,pt,$e){return Me=="word"?($e.tagName=pt.current(),Xe="tag",Ne):de.allowMissingTagName&&Me=="endTag"?(Xe="tag bracket",Ne(Me,pt,$e)):(Xe="error",Ze)}function ye(Me,pt,$e){if(Me=="word"){var ft=pt.current();return $e.context&&$e.context.tagName!=ft&&de.implicitlyClosed.hasOwnProperty($e.context.tagName)&&Qe($e),$e.context&&$e.context.tagName==ft||de.matchClosing===!1?(Xe="tag",Ee):(Xe="tag error",Ye)}else return de.allowMissingTagName&&Me=="endTag"?(Xe="tag bracket",Ee(Me,pt,$e)):(Xe="error",Ye)}function Ee(Me,pt,$e){return Me!="endTag"?(Xe="error",Ee):(Qe($e),Je)}function Ye(Me,pt,$e){return Xe="error",Ee(Me,pt,$e)}function Ne(Me,pt,$e){if(Me=="word")return Xe="attribute",ot;if(Me=="endTag"||Me=="selfcloseTag"){var ft=$e.tagName,We=$e.tagStart;return $e.tagName=$e.tagStart=null,Me=="selfcloseTag"||de.autoSelfClosers.hasOwnProperty(ft)?ht($e,ft):(ht($e,ft),$e.context=new be($e,ft,We==$e.indented)),Je}return Xe="error",Ne}function ot(Me,pt,$e){return Me=="equals"?ct:(de.allowMissing||(Xe="error"),Ne(Me,pt,$e))}function ct(Me,pt,$e){return Me=="string"?_e:Me=="word"&&de.allowUnquoted?(Xe="string",Ne):(Xe="error",Ne(Me,pt,$e))}function _e(Me,pt,$e){return Me=="string"?_e:Ne(Me,pt,$e)}return{startState:function(Me){var pt={tokenize:Pe,state:Je,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(pt.baseIndent=Me),pt},token:function(Me,pt){if(!pt.tagName&&Me.sol()&&(pt.indented=Me.indentation()),Me.eatSpace())return null;De=null;var $e=pt.tokenize(Me,pt);return($e||De)&&$e!="comment"&&(Xe=null,pt.state=pt.state(De||$e,Me,pt),Xe&&($e=Xe=="error"?$e+" error":Xe)),$e},indent:function(Me,pt,$e){var ft=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+Be;if(ft&&ft.noIndent)return E.Pass;if(Me.tokenize!=Ue&&Me.tokenize!=Pe)return $e?$e.match(/^(\s*)/)[0].length:0;if(Me.tagName)return de.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+Be*(de.multilineTagIndentFactor||1);if(de.alignCDATA&&/<!\[CDATA\[/.test(pt))return 0;var We=pt&&/^<(\/)?([\w_:\.-]*)/.exec(pt);if(We&&We[1])for(;ft;)if(ft.tagName==We[2]){ft=ft.prev;break}else if(de.implicitlyClosed.hasOwnProperty(ft.tagName))ft=ft.prev;else break;else if(We)for(;ft;){var gt=de.contextGrabbers[ft.tagName];if(gt&>.hasOwnProperty(We[2]))ft=ft.prev;else break}for(;ft&&ft.prev&&!ft.startOfLine;)ft=ft.prev;return ft?ft.indent+Be:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:de.htmlMode?"html":"xml",helperType:de.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==ct&&(Me.state=Ne)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var pt=[],$e=Me.context;$e;$e=$e.prev)$e.tagName&&pt.push($e.tagName);return pt.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},19575:function(In,Ut,te){var E,fe;(function(Ie,Te){In.exports=Te(Ie)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof te.g!="undefined"?te.g:this,function(Ie){"use strict";Ie=Ie||{};var Te=Ie.Base64,xe="2.6.4",Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de=function($e){for(var ft={},We=0,gt=$e.length;We<gt;We++)ft[$e.charAt(We)]=We;return ft}(Be),Se=String.fromCharCode,pe=function($e){if($e.length<2){var ft=$e.charCodeAt(0);return ft<128?$e:ft<2048?Se(192|ft>>>6)+Se(128|ft&63):Se(224|ft>>>12&15)+Se(128|ft>>>6&63)+Se(128|ft&63)}else{var ft=65536+($e.charCodeAt(0)-55296)*1024+($e.charCodeAt(1)-56320);return Se(240|ft>>>18&7)+Se(128|ft>>>12&63)+Se(128|ft>>>6&63)+Se(128|ft&63)}},De=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Xe=function($e){return $e.replace(De,pe)},Pe=function($e){var ft=[0,2,1][$e.length%3],We=$e.charCodeAt(0)<<16|($e.length>1?$e.charCodeAt(1):0)<<8|($e.length>2?$e.charCodeAt(2):0),gt=[Be.charAt(We>>>18),Be.charAt(We>>>12&63),ft>=2?"=":Be.charAt(We>>>6&63),ft>=1?"=":Be.charAt(We&63)];return gt.join("")},Ue=Ie.btoa&&typeof Ie.btoa=="function"?function($e){return Ie.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,Pe)},rt=function($e){return Ue(Xe(String($e)))},qe=function($e){return $e.replace(/[+\/]/g,function(ft){return ft=="+"?"-":"_"}).replace(/=/g,"")},He=function($e,ft){return ft?qe(rt($e)):rt($e)},be=function($e){return He($e,!0)},Qe;Ie.Uint8Array&&(Qe=function($e,ft){for(var We="",gt=0,kt=$e.length;gt<kt;gt+=3){var xt=$e[gt],et=$e[gt+1],Fe=$e[gt+2],Dt=xt<<16|et<<8|Fe;We+=Be.charAt(Dt>>>18)+Be.charAt(Dt>>>12&63)+(typeof et!="undefined"?Be.charAt(Dt>>>6&63):"=")+(typeof Fe!="undefined"?Be.charAt(Dt&63):"=")}return ft?qe(We):We});var ht=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Je=function($e){switch($e.length){case 4:var ft=(7&$e.charCodeAt(0))<<18|(63&$e.charCodeAt(1))<<12|(63&$e.charCodeAt(2))<<6|63&$e.charCodeAt(3),We=ft-65536;return Se((We>>>10)+55296)+Se((We&1023)+56320);case 3:return Se((15&$e.charCodeAt(0))<<12|(63&$e.charCodeAt(1))<<6|63&$e.charCodeAt(2));default:return Se((31&$e.charCodeAt(0))<<6|63&$e.charCodeAt(1))}},Ze=function($e){return $e.replace(ht,Je)},ye=function($e){var ft=$e.length,We=ft%4,gt=(ft>0?de[$e.charAt(0)]<<18:0)|(ft>1?de[$e.charAt(1)]<<12:0)|(ft>2?de[$e.charAt(2)]<<6:0)|(ft>3?de[$e.charAt(3)]:0),kt=[Se(gt>>>16),Se(gt>>>8&255),Se(gt&255)];return kt.length-=[0,0,2,1][We],kt.join("")},Ee=Ie.atob&&typeof Ie.atob=="function"?function($e){return Ie.atob($e)}:function($e){return $e.replace(/\S{1,4}/g,ye)},Ye=function($e){return Ee(String($e).replace(/[^A-Za-z0-9\+\/]/g,""))},Ne=function($e){return Ze(Ee($e))},ot=function($e){return String($e).replace(/[-_]/g,function(ft){return ft=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ct=function($e){return Ne(ot($e))},_e;Ie.Uint8Array&&(_e=function($e){return Uint8Array.from(Ye(ot($e)),function(ft){return ft.charCodeAt(0)})});var Me=function(){var $e=Ie.Base64;return Ie.Base64=Te,$e};if(Ie.Base64={VERSION:xe,atob:Ye,btoa:Ue,fromBase64:ct,toBase64:He,utob:Xe,encode:He,encodeURI:be,btou:Ze,decode:ct,noConflict:Me,fromUint8Array:Qe,toUint8Array:_e},typeof Object.defineProperty=="function"){var pt=function($e){return{value:$e,enumerable:!1,writable:!0,configurable:!0}};Ie.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",pt(function(){return ct(this)})),Object.defineProperty(String.prototype,"toBase64",pt(function($e){return He(this,$e)})),Object.defineProperty(String.prototype,"toBase64URI",pt(function(){return He(this,!0)}))}}return Ie.Meteor&&(Base64=Ie.Base64),In.exports?In.exports.Base64=Ie.Base64:(E=[],fe=function(){return Ie.Base64}.apply(Ut,E),fe!==void 0&&(In.exports=fe)),{Base64:Ie.Base64}})},15979:function(In,Ut,te){"use strict";te.d(Ut,{hP:function(){return Tn}});var E=function(Oe,me){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(he,ge){he.__proto__=ge}||function(he,ge){for(var ve in ge)Object.prototype.hasOwnProperty.call(ge,ve)&&(he[ve]=ge[ve])})(Oe,me)};function fe(Oe,me){function he(){this.constructor=Oe}E(Oe,me),Oe.prototype=me===null?Object.create(me):(he.prototype=me.prototype,new he)}function Ie(Oe,me,he,ge){return new(he||(he=Promise))(function(ve,se){function Ke(yn){try{Wt(ge.next(yn))}catch(bn){se(bn)}}function bt(yn){try{Wt(ge.throw(yn))}catch(bn){se(bn)}}function Wt(yn){var bn;yn.done?ve(yn.value):(bn=yn.value,bn instanceof he?bn:new he(function(cn){cn(bn)})).then(Ke,bt)}Wt((ge=ge.apply(Oe,me||[])).next())})}function Te(Oe,me){var he,ge,ve,se,Ke={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return se={next:bt(0),throw:bt(1),return:bt(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function bt(Wt){return function(yn){return function(bn){if(he)throw new TypeError("Generator is already executing.");for(;Ke;)try{if(he=1,ge&&(ve=2&bn[0]?ge.return:bn[0]?ge.throw||((ve=ge.return)&&ve.call(ge),0):ge.next)&&!(ve=ve.call(ge,bn[1])).done)return ve;switch(ge=0,ve&&(bn=[2&bn[0],ve.value]),bn[0]){case 0:case 1:ve=bn;break;case 4:return Ke.label++,{value:bn[1],done:!1};case 5:Ke.label++,ge=bn[1],bn=[0];continue;case 7:bn=Ke.ops.pop(),Ke.trys.pop();continue;default:if(ve=Ke.trys,!((ve=ve.length>0&&ve[ve.length-1])||bn[0]!==6&&bn[0]!==2)){Ke=0;continue}if(bn[0]===3&&(!ve||bn[1]>ve[0]&&bn[1]<ve[3])){Ke.label=bn[1];break}if(bn[0]===6&&Ke.label<ve[1]){Ke.label=ve[1],ve=bn;break}if(ve&&Ke.label<ve[2]){Ke.label=ve[2],Ke.ops.push(bn);break}ve[2]&&Ke.ops.pop(),Ke.trys.pop();continue}bn=me.call(Oe,Ke)}catch(cn){bn=[6,cn],ge=0}finally{he=ve=0}if(5&bn[0])throw bn[1];return{value:bn[0]?bn[1]:void 0,done:!0}}([Wt,yn])}}}function xe(){for(var Oe=0,me=0,he=arguments.length;me<he;me++)Oe+=arguments[me].length;var ge=Array(Oe),ve=0;for(me=0;me<he;me++)for(var se=arguments[me],Ke=0,bt=se.length;Ke<bt;Ke++,ve++)ge[ve]=se[Ke];return ge}var Be=function(){function Oe(){}return Oe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Oe.setAttributes=function(me,he){for(var ge=0,ve=he;ge<ve.length;ge++){var se=ve[ge],Ke=se[0],bt=se[1];me.setAttribute(Ke,bt)}},Oe.createRect=function(me,he,ge){var ve=document.createElementNS("http://www.w3.org/2000/svg","rect");return ve.setAttribute("width",me.toString()),ve.setAttribute("height",he.toString()),ge&&Oe.setAttributes(ve,ge),ve},Oe.createLine=function(me,he,ge,ve,se){var Ke=document.createElementNS("http://www.w3.org/2000/svg","line");return Ke.setAttribute("x1",me.toString()),Ke.setAttribute("y1",he.toString()),Ke.setAttribute("x2",ge.toString()),Ke.setAttribute("y2",ve.toString()),se&&Oe.setAttributes(Ke,se),Ke},Oe.createPolygon=function(me,he){var ge=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ge.setAttribute("points",me),he&&Oe.setAttributes(ge,he),ge},Oe.createCircle=function(me,he){var ge=document.createElementNS("http://www.w3.org/2000/svg","circle");return ge.setAttribute("cx",(me/2).toString()),ge.setAttribute("cy",(me/2).toString()),ge.setAttribute("r",me.toString()),he&&Oe.setAttributes(ge,he),ge},Oe.createEllipse=function(me,he,ge){var ve=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ve.setAttribute("cx",(me/2).toString()),ve.setAttribute("cy",(he/2).toString()),ve.setAttribute("rx",(me/2).toString()),ve.setAttribute("ry",(he/2).toString()),ge&&Oe.setAttributes(ve,ge),ve},Oe.createGroup=function(me){var he=document.createElementNS("http://www.w3.org/2000/svg","g");return me&&Oe.setAttributes(he,me),he},Oe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Oe.createMarker=function(me,he,ge,ve,se,Ke,bt){var Wt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Oe.setAttributes(Wt,[["id",me],["orient",he],["markerWidth",ge.toString()],["markerHeight",ve.toString()],["refX",se.toString()],["refY",Ke.toString()]]),Wt.appendChild(bt),Wt},Oe.createText=function(me){var he=document.createElementNS("http://www.w3.org/2000/svg","text");return he.setAttribute("x","0"),he.setAttribute("y","0"),me&&Oe.setAttributes(he,me),he},Oe.createTSpan=function(me,he){var ge=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ge.textContent=me,he&&Oe.setAttributes(ge,he),ge},Oe.createImage=function(me){var he=document.createElementNS("http://www.w3.org/2000/svg","image");return me&&Oe.setAttributes(he,me),he},Oe.createPoint=function(me,he){var ge=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ge.x=me,ge.y=he,ge},Oe.createPath=function(me,he){var ge=document.createElementNS("http://www.w3.org/2000/svg","path");return ge.setAttribute("d",me),he&&Oe.setAttributes(ge,he),ge},Oe}(),de=function(){function Oe(){}return Oe.addKey=function(me){Oe.key=me},Object.defineProperty(Oe,"isLicensed",{get:function(){return!!Oe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Oe.key)},enumerable:!1,configurable:!0}),Oe}(),Se=function(){function Oe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Oe.prototype.rasterize=function(me,he,ge){var ve=this;return new Promise(function(se){var Ke=ge!==void 0?ge:document.createElement("canvas");me===null&&(ve.markersOnly=!0,ve.naturalSize=!1);var bt=document.createElementNS("http://www.w3.org/2000/svg","svg");bt.setAttribute("xmlns","http://www.w3.org/2000/svg"),bt.setAttribute("width",he.width.baseVal.valueAsString),bt.setAttribute("height",he.height.baseVal.valueAsString),bt.setAttribute("viewBox","0 0 "+he.viewBox.baseVal.width.toString()+" "+he.viewBox.baseVal.height.toString()),bt.innerHTML=he.innerHTML,ve.naturalSize===!0?(bt.width.baseVal.value=me.naturalWidth,bt.height.baseVal.value=me.naturalHeight):ve.width!==void 0&&ve.height!==void 0&&(bt.width.baseVal.value=ve.width,bt.height.baseVal.value=ve.height),Ke.width=bt.width.baseVal.value,Ke.height=bt.height.baseVal.value;var Wt=bt.outerHTML,yn=Ke.getContext("2d");ve.markersOnly!==!0&&yn.drawImage(me,0,0,Ke.width,Ke.height);var bn=window.URL,cn=new Image(Ke.width,Ke.height);cn.setAttribute("crossOrigin","anonymous");var wn=new Blob([Wt],{type:"image/svg+xml"}),Tt=bn.createObjectURL(wn);cn.onload=function(){yn.drawImage(cn,0,0),bn.revokeObjectURL(Tt);var nn=Ke.toDataURL(ve.imageType,ve.imageQuality);se(nn)},cn.src=Tt})},Oe}(),pe=function(){},De=function(){function Oe(me){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+me+"_"}return Object.defineProperty(Oe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.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(Oe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Oe.prototype.addClass=function(me){return this.styleSheet===void 0&&this.addStyleSheet(),me.name=""+this.classNamePrefix+me.localName,this.classes.push(me),this.styleSheet.sheet.insertRule("."+me.name+" {"+me.style+"}",this.styleSheet.sheet.cssRules.length),me},Oe.prototype.addRule=function(me){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(me),this.styleSheet.sheet.insertRule(me.selector+" {"+me.style+"}",this.styleSheet.sheet.cssRules.length)},Oe.prototype.addStyleSheet=function(){var me;this.styleSheet=document.createElement("style"),((me=this.styleSheetRoot)!==null&&me!==void 0?me:document.head).appendChild(this.styleSheet),this.addRule(new Xe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Pe("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Pe("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Oe.prototype.removeStyleSheet=function(){var me;this.styleSheet&&(((me=this.styleSheetRoot)!==null&&me!==void 0?me:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Oe}(),Xe=function(Oe,me){this.selector=Oe,this.style=me},Pe=function(Oe,me){this.localName=Oe,this.style=me},Ue=function(){function Oe(me,he,ge,ve,se){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=me,this.displayMode=he,this.markerItems=ge,this.uiStyleSettings=ve,this.styles=se,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Oe.prototype.show=function(me){var he=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=me,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ge=document.createElement("div");ge.className=this.toolbarBlockStyleClass.name,ge.style.whiteSpace="nowrap",this.uiContainer.appendChild(ge),this.addActionButton(ge,'<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(ge,'<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(ge,'<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(ge,'<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(ge,'<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(ge,'<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(ge,'<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(ge,'<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(se){var Ke=document.createElement("div");Ke.className=""+he.toolbarButtonStyleClass.name,Ke.setAttribute("data-type-name",se.typeName),Ke.innerHTML=se.icon,Ke.addEventListener("click",function(){he.markerToolbarButtonClicked(Ke,se)}),he.buttons.push(Ke),he.markerButtons.push(Ke)}),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 ve=document.createElement("div");ve.className=this.toolbarBlockStyleClass.name,ve.style.whiteSpace="nowrap",ve.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ve),this.addActionButton(ve,'<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(ve,'<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()},Oe.prototype.addButtonClickListener=function(me){this.buttonClickListeners.push(me)},Oe.prototype.removeButtonClickListener=function(me){this.buttonClickListeners.indexOf(me)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(me),1)},Oe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Oe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var me=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var he=0;he<this.markerButtons.length;he++)he<me||he===me&&this.markerButtons.length-1===me?this.markerButtonBlock.appendChild(this.markerButtons[he]):(he===me&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[he]))}},Oe.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")},Oe.prototype.resetButtonStyles=function(){var me=this;this.buttons.forEach(function(he){he.className=he.className.replace(me.uiStyleSettings.toolbarButtonStyleColorsClassName?me.uiStyleSettings.toolbarButtonStyleColorsClassName:me.toolbarButtonStyleColorsClass.name,"").trim(),he.className=he.className.replace(me.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?me.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:me.toolbarActiveButtonStyleColorsClass.name,"").trim(),he.className+=" "+(me.uiStyleSettings.toolbarButtonStyleColorsClassName?me.uiStyleSettings.toolbarButtonStyleColorsClassName:me.toolbarButtonStyleColorsClass.name)})},Oe.prototype.addActionButton=function(me,he,ge){var ve=this,se=document.createElement("div");switch(se.className=""+this.toolbarButtonStyleClass.name,se.innerHTML=he,se.setAttribute("data-action",ge),se.addEventListener("click",function(){ve.actionToolbarButtonClicked(se,ge)}),ge){case"select":se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":se.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":se.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":se.style.fill=this.uiStyleSettings.closeButtonColor}me.appendChild(se),this.buttons.push(se)},Oe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Pe("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 Pe("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Pe("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Pe("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 Pe("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var me=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Pe("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*me)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*me)+`px;
|
|
|
padding: `+me+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Pe("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Pe("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Oe.prototype.markerToolbarButtonClicked=function(me,he){this.setActiveButton(me),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ge){return ge("marker",he)}),this.markerButtonOverflowBlock.style.display="none"},Oe.prototype.actionToolbarButtonClicked=function(me,he){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ge){return ge("action",he)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Oe.prototype.setActiveButton=function(me){this.resetButtonStyles(),me.className=me.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),me.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Oe.prototype.setActiveMarkerButton=function(me){var he=this.markerButtons.find(function(ge){return ge.getAttribute("data-type-name")===me});he&&this.setActiveButton(he)},Oe.prototype.setCurrentMarker=function(me){var he=this;this.currentMarker=me,this.buttons.filter(function(ge){return/delete|notes/.test(ge.getAttribute("data-action"))}).forEach(function(ge){he.currentMarker===void 0?(ge.style.fillOpacity="0.4",ge.style.pointerEvents="none"):(ge.style.fillOpacity="1",ge.style.pointerEvents="all")})},Oe}(),rt=function(){function Oe(me,he,ge,ve){this.panels=[],this.panelButtons=[],this.markerjsContainer=me,this.displayMode=he,this.uiStyleSettings=ge,this.styles=ve,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Oe.prototype.addStyles=function(){var me;this.toolboxStyleClass=this.styles.addClass(new Pe("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 Pe("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var he=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Pe("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Pe("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Pe("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 Pe("toolbox-panel-row_colors",`
|
|
|
background-color: `+((me=this.uiStyleSettings.toolboxBackgroundColor)!==null&&me!==void 0?me:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Pe("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*he)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*he)+`px;
|
|
|
padding: `+he+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Pe("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Pe("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Oe.prototype.show=function(me){var he;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=me,this.uiContainer.className=this.toolboxStyleClass.name+" "+((he=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&he!==void 0?he:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Oe.prototype.setPanelButtons=function(me){var he,ge,ve=this;this.panels=me,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((he=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&he!==void 0?he:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ge=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ge!==void 0?ge:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(se){var Ke;se.uiStyleSettings=ve.uiStyleSettings;var bt=document.createElement("div");bt.className=ve.toolboxButtonStyleClass.name+" "+((Ke=ve.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:ve.toolboxButtonStyleColorsClass.name),bt.innerHTML=se.icon,bt.title=se.title,bt.addEventListener("click",function(){ve.panelButtonClick(se)}),ve.panelButtons.push(bt),ve.buttonRow.appendChild(bt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Oe.prototype.panelButtonClick=function(me){var he=this,ge=-1;if(me!==this.activePanel){ge=this.panels.indexOf(me),this.panelRow.innerHTML="";var ve=me.getUi();ve.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ve),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=me}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){he.displayMode==="inline"?he.panelRow.style.display="none":he.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(se,Ke){var bt,Wt;se.className=he.toolboxButtonStyleClass.name+" "+(Ke===ge?""+((bt=he.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&bt!==void 0?bt:he.toolboxActiveButtonStyleColorsClass.name):""+((Wt=he.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Wt!==void 0?Wt:he.toolboxButtonStyleColorsClass.name))})},Oe}(),qe=function(Oe,me){this.title=Oe,this.icon=me},He=function(Oe){function me(he,ge,ve,se){var Ke=Oe.call(this,he,se||'<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 Ke.colors=[],Ke.addTransparent=!1,Ke.colorBoxes=[],Ke.colors=ge,Ke.currentColor=ve,Ke.setCurrentColor=Ke.setCurrentColor.bind(Ke),Ke.getColorBox=Ke.getColorBox.bind(Ke),Ke}return fe(me,Oe),me.prototype.getUi=function(){var he=this,ge=document.createElement("div");return ge.style.overflow="hidden",ge.style.whiteSpace="nowrap",this.colors.forEach(function(ve){var se=he.getColorBox(ve);ge.appendChild(se),he.colorBoxes.push(se)}),ge},me.prototype.getColorBox=function(he){var ge=this,ve=this.uiStyleSettings.toolbarHeight/4,se=this.uiStyleSettings.toolbarHeight-ve,Ke=document.createElement("div");Ke.style.display="inline-block",Ke.style.boxSizing="content-box",Ke.style.width=se-2+"px",Ke.style.height=se-2+"px",Ke.style.padding="1px",Ke.style.marginRight="2px",Ke.style.marginBottom="2px",Ke.style.borderWidth="2px",Ke.style.borderStyle="solid",Ke.style.borderRadius=(se+2)/2+"px",Ke.style.borderColor=he===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ke.addEventListener("click",function(){ge.setCurrentColor(he,Ke)});var bt=document.createElement("div");return bt.style.display="inline-block",bt.style.width=se-2+"px",bt.style.height=se-2+"px",bt.style.backgroundColor=he,bt.style.borderRadius=se/2+"px",he==="transparent"&&(bt.style.fill=this.uiStyleSettings.toolboxAccentColor,bt.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>`),Ke.appendChild(bt),Ke},me.prototype.setCurrentColor=function(he,ge){var ve=this;this.currentColor=he,this.colorBoxes.forEach(function(se){se.style.borderColor=se===ge?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(he)},me}(qe),be=function(){function Oe(me,he,ge){this._state="new",this._isSelected=!1,this._container=me,this._overlayContainer=he,this.globalSettings=ge,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Oe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Oe.prototype.ownsTarget=function(me){return!1},Object.defineProperty(Oe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Oe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Oe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Oe.prototype.pointerDown=function(me,he){},Oe.prototype.dblClick=function(me,he){},Oe.prototype.manipulate=function(me){},Oe.prototype.pointerUp=function(me){this.stateChanged()},Oe.prototype.dispose=function(){},Oe.prototype.addMarkerVisualToContainer=function(me){this.container.childNodes.length>0?this.container.insertBefore(me,this.container.childNodes[0]):this.container.appendChild(me)},Oe.prototype.getState=function(){return{typeName:Oe.typeName,state:this.state,notes:this.notes}},Oe.prototype.restoreState=function(me){this._state=me.state,this.notes=me.notes},Oe.prototype.scale=function(me,he){},Oe.prototype.colorChanged=function(me){this.onColorChanged&&this.onColorChanged(me),this.stateChanged()},Oe.prototype.fillColorChanged=function(me){this.onFillColorChanged&&this.onFillColorChanged(me),this.stateChanged()},Oe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var me=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),me.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(me)&&this.onStateChanged(this)}},Oe.typeName="MarkerBase",Oe}(),Qe=function(){function Oe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Oe.prototype.findGripByVisual=function(me){return this.topLeft.ownsTarget(me)?this.topLeft:this.topCenter.ownsTarget(me)?this.topCenter:this.topRight.ownsTarget(me)?this.topRight:this.centerLeft.ownsTarget(me)?this.centerLeft:this.centerRight.ownsTarget(me)?this.centerRight:this.bottomLeft.ownsTarget(me)?this.bottomLeft:this.bottomCenter.ownsTarget(me)?this.bottomCenter:this.bottomRight.ownsTarget(me)?this.bottomRight:void 0},Oe}(),ht=function(){function Oe(){this.GRIP_SIZE=10,this.visual=Be.createGroup(),this.visual.appendChild(Be.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Be.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Oe.prototype.ownsTarget=function(me){return me===this.visual||me===this.visual.childNodes[0]||me===this.visual.childNodes[1]},Oe}(),Je=function(){function Oe(){}return Oe.toITransformMatrix=function(me){return{a:me.a,b:me.b,c:me.c,d:me.d,e:me.e,f:me.f}},Oe.toSVGMatrix=function(me,he){return me.a=he.a,me.b=he.b,me.c=he.c,me.d=he.d,me.e=he.e,me.f=he.f,me},Oe}(),Ze=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.left=0,se.top=0,se.width=0,se.height=0,se.defaultSize={x:50,y:20},se.offsetX=0,se.offsetY=0,se.rotationAngle=0,se.CB_DISTANCE=10,se._suppressMarkerCreateEvent=!1,se.container.transform.baseVal.appendItem(Be.createTransform()),se.setupControlBox(),se}return fe(me,Oe),Object.defineProperty(me.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"visual",{get:function(){return this._visual},set:function(he){this._visual=he;var ge=Be.createTransform();this._visual.transform.baseVal.appendItem(ge)},enumerable:!1,configurable:!0}),me.prototype.ownsTarget=function(he){return!!Oe.prototype.ownsTarget.call(this,he)||!!(this.controlGrips.findGripByVisual(he)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(he))},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.state==="new"&&(this.left=he.x,this.top=he.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ve=this.unrotatePoint(he);if(this.manipulationStartX=ve.x,this.manipulationStartY=ve.y,this.offsetX=ve.x-this.left,this.offsetY=ve.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ge),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ge)){this.activeGrip=this.rotatorGrip;var se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=se.x-this.width/2,this.top=se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ke=this.container.transform.baseVal.getItem(0);Ke.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ke,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},me.prototype.pointerUp=function(he){var ge=this.state;Oe.prototype.pointerUp.call(this,he),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(he),this._state="select",ge==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},me.prototype.moveVisual=function(he){this.visual.style.transform="translate("+he.x+"px, "+he.y+"px)"},me.prototype.manipulate=function(he){var ge=this.unrotatePoint(he);this.state==="creating"?this.resize(he):this.state==="move"?(this.left=this.manipulationStartLeft+(ge.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ge.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ge):this.state==="rotate"&&this.rotate(he)},me.prototype.resize=function(he){var ge=this.manipulationStartLeft,ve=this.manipulationStartWidth,se=this.manipulationStartTop,Ke=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ge=this.manipulationStartLeft+he.x-this.manipulationStartX,ve=this.manipulationStartWidth+this.manipulationStartLeft-ge;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ve=this.manipulationStartWidth+he.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+he.y-this.manipulationStartY,Ke=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ke=this.manipulationStartHeight+he.y-this.manipulationStartY}ve>=0?(this.left=ge,this.width=ve):(this.left=ge+ve,this.width=-ve),Ke>=0?(this.top=se,this.height=Ke):(this.top=se+Ke,this.height=-Ke),this.setSize()},me.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},me.prototype.rotate=function(he){if(Math.abs(he.x-this.centerX)>.1){var ge=Math.sign(he.x-this.centerX);this.rotationAngle=180*Math.atan((he.y-this.centerY)/(he.x-this.centerX))/Math.PI+90*ge,this.applyRotation()}},me.prototype.applyRotation=function(){var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0)},me.prototype.rotatePoint=function(he){if(this.rotationAngle===0)return he;var ge=this.container.getCTM(),ve=Be.createPoint(he.x,he.y);return{x:(ve=ve.matrixTransform(ge)).x,y:ve.y}},me.prototype.unrotatePoint=function(he){if(this.rotationAngle===0)return he;var ge=this.container.getCTM();ge=ge.inverse();var ve=Be.createPoint(he.x,he.y);return{x:(ve=ve.matrixTransform(ge)).x,y:ve.y}},me.prototype.select=function(){Oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},me.prototype.deselect=function(){Oe.prototype.deselect.call(this),this.controlBox.style.display="none"},me.prototype.setupControlBox=function(){this.controlBox=Be.createGroup();var he=Be.createTransform();he.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(he),this.container.appendChild(this.controlBox),this.controlRect=Be.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Be.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Qe,this.addControlGrips(),this.controlBox.style.display="none"},me.prototype.adjustControlBox=function(){var he=this.controlBox.transform.baseVal.getItem(0);he.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(he,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()},me.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()},me.prototype.createGrip=function(){var he=new ht;return he.visual.transform.baseVal.appendItem(Be.createTransform()),this.controlBox.appendChild(he.visual),he},me.prototype.positionGrips=function(){var he=this.controlGrips.topLeft.GRIP_SIZE,ge=-he/2,ve=ge,se=(this.width+this.CB_DISTANCE)/2-he/2,Ke=(this.height+this.CB_DISTANCE)/2-he/2,bt=this.height+this.CB_DISTANCE-he/2,Wt=this.width+this.CB_DISTANCE-he/2;this.positionGrip(this.controlGrips.topLeft.visual,ge,ve),this.positionGrip(this.controlGrips.topCenter.visual,se,ve),this.positionGrip(this.controlGrips.topRight.visual,Wt,ve),this.positionGrip(this.controlGrips.centerLeft.visual,ge,Ke),this.positionGrip(this.controlGrips.centerRight.visual,Wt,Ke),this.positionGrip(this.controlGrips.bottomLeft.visual,ge,bt),this.positionGrip(this.controlGrips.bottomCenter.visual,se,bt),this.positionGrip(this.controlGrips.bottomRight.visual,Wt,bt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,ve-3*this.CB_DISTANCE)},me.prototype.positionGrip=function(he,ge,ve){var se=he.transform.baseVal.getItem(0);se.setTranslate(ge,ve),he.transform.baseVal.replaceItem(se,0)},me.prototype.hideControlBox=function(){this.controlBox.style.display="none"},me.prototype.showControlBox=function(){this.controlBox.style.display=""},me.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Je.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Je.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Oe.prototype.getState.call(this))},me.prototype.restoreState=function(he){Oe.prototype.restoreState.call(this,he);var ge=he;this.left=ge.left,this.top=ge.top,this.width=ge.width,this.height=ge.height,this.rotationAngle=ge.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Je.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ge.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Je.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ge.containerTransformMatrix))},me.prototype.scale=function(he,ge){Oe.prototype.scale.call(this,he,ge);var ve=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:ve.x*he,y:ve.y*ge});this.left=se.x,this.top=se.y,this.width=this.width*he,this.height=this.height*ge,this.adjustControlBox()},me}(be),ye=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return!(!Oe.prototype.ownsTarget.call(this,he)&&he!==this.visual)},me.prototype.createVisual=function(){this.visual=Be.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.state==="new"&&(this.createVisual(),this.moveVisual(he),this._state="creating")},me.prototype.manipulate=function(he){Oe.prototype.manipulate.call(this,he)},me.prototype.resize=function(he){Oe.prototype.resize.call(this,he),this.setSize()},me.prototype.setSize=function(){Oe.prototype.setSize.call(this),Be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},me.prototype.pointerUp=function(he){Oe.prototype.pointerUp.call(this,he),this.setSize()},me.prototype.setStrokeColor=function(he){this.strokeColor=he,this.visual&&Be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(he),this.stateChanged()},me.prototype.setFillColor=function(he){this.fillColor=he,this.visual&&Be.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},me.prototype.setStrokeWidth=function(he){this.strokeWidth=he,this.visual&&Be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},me.prototype.setStrokeDasharray=function(he){this.strokeDasharray=he,this.visual&&Be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},me.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Oe.prototype.getState.call(this))},me.prototype.restoreState=function(he){var ge=he;this.fillColor=ge.fillColor,this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.opacity=ge.opacity,this.createVisual(),Oe.prototype.restoreState.call(this,he),this.setSize()},me.prototype.scale=function(he,ge){Oe.prototype.scale.call(this,he,ge),this.setSize()},me.title="Rectangle marker",me}(Ze),Ee=function(Oe){function me(he,ge,ve,se){var Ke=Oe.call(this,he,se||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ke.widths=[],Ke.widthBoxes=[],Ke.widths=ge,Ke.currentWidth=ve,Ke.setCurrentWidth=Ke.setCurrentWidth.bind(Ke),Ke}return fe(me,Oe),me.prototype.getUi=function(){var he=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",this.widths.forEach(function(ve){var se=document.createElement("div");se.style.display="flex",se.style.flexGrow="2",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=ve===he.currentWidth?he.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){he.setCurrentWidth(ve,se)}),ge.appendChild(se);var Ke=document.createElement("div");Ke.innerText=ve.toString(),Ke.style.marginRight="5px",se.appendChild(Ke);var bt=document.createElement("div");bt.style.minHeight="20px",bt.style.flexGrow="2",bt.style.display="flex",bt.style.alignItems="center";var Wt=document.createElement("hr");Wt.style.minWidth="20px",Wt.style.border="0px",Wt.style.borderTop=ve+"px solid "+he.uiStyleSettings.toolboxColor,Wt.style.flexGrow="2",bt.appendChild(Wt),se.appendChild(bt),he.widthBoxes.push(se)}),ge},me.prototype.setCurrentWidth=function(he,ge){var ve=this;this.currentWidth=he,this.widthBoxes.forEach(function(se){se.style.borderColor=se===ge?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},me}(qe),Ye=function(Oe){function me(he,ge,ve,se){var Ke=Oe.call(this,he,se||'<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 Ke.styles=[],Ke.styleBoxes=[],Ke.styles=ge,Ke.currentStyle=ve,Ke.setCurrentStyle=Ke.setCurrentStyle.bind(Ke),Ke}return fe(me,Oe),me.prototype.getUi=function(){var he=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",this.styles.forEach(function(ve){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/he.styles.length-5+"%",se.style.borderColor=ve===he.currentStyle?he.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){he.setCurrentStyle(ve,se)}),ge.appendChild(se);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.overflow="hidden";var bt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+he.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ve!==""?'stroke-dasharray="'+ve+'"':"")+` />
|
|
|
</svg>`;Ke.innerHTML=bt,se.appendChild(Ke),he.styleBoxes.push(se)}),ge},me.prototype.setCurrentStyle=function(he,ge){var ve=this;this.currentStyle=he,this.styleBoxes.forEach(function(se){se.style.borderColor=se===ge?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},me}(qe),Ne=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.strokeColor=ve.defaultColor,se.strokeWidth=ve.defaultStrokeWidth,se.strokeDasharray=ve.defaultStrokeDasharray,se.strokePanel=new He("Line color",ve.defaultColorSet,ve.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Ee("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Ye("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return fe(me,Oe),Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Oe.prototype.getState.call(this);return he.typeName=me.typeName,he},me.typeName="FrameMarker",me.title="Frame marker",me.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',me}(ye),ot=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"},ct=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.x1=0,se.y1=0,se.x2=0,se.y2=0,se.defaultLength=50,se.manipulationStartX=0,se.manipulationStartY=0,se.manipulationStartX1=0,se.manipulationStartY1=0,se.manipulationStartX2=0,se.manipulationStartY2=0,se.setupControlBox(),se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return!!Oe.prototype.ownsTarget.call(this,he)||!(!this.grip1.ownsTarget(he)&&!this.grip2.ownsTarget(he))},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.manipulationStartX=he.x,this.manipulationStartY=he.y,this.state==="new"&&(this.x1=he.x,this.y1=he.y,this.x2=he.x,this.y2=he.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(ge)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ge)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},me.prototype.pointerUp=function(he){var ge=this.state;Oe.prototype.pointerUp.call(this,he),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(he),this._state="select",ge==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},me.prototype.adjustVisual=function(){},me.prototype.manipulate=function(he){this.state==="creating"?this.resize(he):this.state==="move"?(this.x1=this.manipulationStartX1+he.x-this.manipulationStartX,this.y1=this.manipulationStartY1+he.y-this.manipulationStartY,this.x2=this.manipulationStartX2+he.x-this.manipulationStartX,this.y2=this.manipulationStartY2+he.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(he)},me.prototype.resize=function(he){switch(this.activeGrip){case this.grip1:this.x1=he.x,this.y1=he.y;break;case this.grip2:case void 0:this.x2=he.x,this.y2=he.y}this.adjustVisual(),this.adjustControlBox()},me.prototype.select=function(){Oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},me.prototype.deselect=function(){Oe.prototype.deselect.call(this),this.controlBox.style.display="none"},me.prototype.setupControlBox=function(){this.controlBox=Be.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},me.prototype.adjustControlBox=function(){this.positionGrips()},me.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},me.prototype.createGrip=function(){var he=new ht;return he.visual.transform.baseVal.appendItem(Be.createTransform()),this.controlBox.appendChild(he.visual),he},me.prototype.positionGrips=function(){var he=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-he/2,this.y1-he/2),this.positionGrip(this.grip2.visual,this.x2-he/2,this.y2-he/2)},me.prototype.positionGrip=function(he,ge,ve){var se=he.transform.baseVal.getItem(0);se.setTranslate(ge,ve),he.transform.baseVal.replaceItem(se,0)},me.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Oe.prototype.getState.call(this))},me.prototype.restoreState=function(he){Oe.prototype.restoreState.call(this,he);var ge=he;this.x1=ge.x1,this.y1=ge.y1,this.x2=ge.x2,this.y2=ge.y2},me.prototype.scale=function(he,ge){Oe.prototype.scale.call(this,he,ge),this.x1=this.x1*he,this.y1=this.y1*ge,this.x2=this.x2*he,this.y2=this.y2*ge,this.adjustVisual(),this.adjustControlBox()},me}(be),_e=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.strokeColor=ve.defaultColor,se.strokeWidth=ve.defaultStrokeWidth,se.strokeDasharray=ve.defaultStrokeDasharray,se.strokePanel=new He("Line color",ve.defaultColorSet,ve.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Ee("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Ye("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return!(!Oe.prototype.ownsTarget.call(this,he)&&he!==this.visual&&he!==this.selectorLine&&he!==this.visibleLine)},me.prototype.createVisual=function(){this.visual=Be.createGroup(),this.selectorLine=Be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},me.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Be.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Be.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Be.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},me.prototype.setStrokeColor=function(he){this.strokeColor=he,this.adjustVisual(),this.colorChanged(he)},me.prototype.setStrokeWidth=function(he){this.strokeWidth=he,this.adjustVisual()},me.prototype.setStrokeDasharray=function(he){this.strokeDasharray=he,this.adjustVisual(),this.stateChanged()},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Oe.prototype.getState.call(this));return he.typeName=me.typeName,he},me.prototype.restoreState=function(he){Oe.prototype.restoreState.call(this,he);var ge=he;this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.createVisual(),this.adjustVisual()},me.typeName="LineMarker",me.title="Line marker",me.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',me}(ct),Me=function(Oe){function me(he,ge,ve,se){var Ke=Oe.call(this,he,se||'<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 Ke.fonts=[],Ke.fontBoxes=[],Ke.fonts=ge,Ke.currentFont=ve,Ke.setCurrentFont=Ke.setCurrentFont.bind(Ke),Ke}return fe(me,Oe),me.prototype.getUi=function(){var he=this,ge=document.createElement("div");return ge.style.overflow="hidden",ge.style.flexGrow="2",this.fonts.forEach(function(ve){var se=document.createElement("div");se.style.display="inline-block",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/he.fonts.length-5+"%",se.style.borderColor=ve===he.currentFont?he.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){he.setCurrentFont(ve,se)}),ge.appendChild(se);var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.fontFamily=ve,Ke.style.overflow="hidden";var bt=document.createElement("div");bt.style.whiteSpace="nowrap",bt.style.overflow="hidden",bt.style.textOverflow="ellipsis",bt.innerHTML="The quick brown fox jumps over the lazy dog",Ke.appendChild(bt),se.appendChild(Ke),he.fontBoxes.push(se)}),ge},me.prototype.setCurrentFont=function(he,ge){var ve=this;this.currentFont=he,this.fontBoxes.forEach(function(se){se.style.borderColor=se===ge?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},me}(qe),pt=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.color="transparent",se.padding=5,se.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",se.text=se.DEFAULT_TEXT,se.isMoved=!1,se.color=ve.defaultColor,se.fontFamily=ve.defaultFontFamily,se.defaultSize={x:100,y:30},se.setColor=se.setColor.bind(se),se.setFont=se.setFont.bind(se),se.renderText=se.renderText.bind(se),se.sizeText=se.sizeText.bind(se),se.textEditDivClicked=se.textEditDivClicked.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.setSize=se.setSize.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.colorPanel=new He("Color",ve.defaultColorSet,ve.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Me("Font",ve.defaultFontFamilies,ve.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return fe(me,Oe),me.prototype.ownsTarget=function(he){if(Oe.prototype.ownsTarget.call(this,he)||he===this.visual||he===this.textElement||he===this.bgRectangle)return!0;var ge=!1;return this.textElement.childNodes.forEach(function(ve){ve===he&&(ge=!0)}),ge},me.prototype.createVisual=function(){this.visual=Be.createGroup(),this.bgRectangle=Be.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Be.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Be.createTransform()),this.textElement.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.isMoved=!1,this.pointerDownPoint=he,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(he),this._state="creating")},me.prototype.renderText=function(){var he=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(ge){he.textElement.appendChild(Be.createTSpan(ge.trim()===""?" ":ge.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},me.prototype.getTextScale=function(){var he=this.textElement.getBBox(),ge=1;if(he.width>0&&he.height>0){var ve=(1*this.width-this.width*this.padding*2/100)/he.width,se=(1*this.height-this.height*this.padding*2/100)/he.height;ge=Math.min(ve,se)}return ge},me.prototype.getTextPosition=function(he){var ge=this.textElement.getBBox(),ve=0,se=0;return ge.width>0&&ge.height>0&&(ve=(this.width-ge.width*he)/2,se=this.height/2-ge.height*he/2),{x:ve,y:se}},me.prototype.sizeText=function(){var he=this.textElement.getBBox(),ge=this.getTextScale(),ve=this.getTextPosition(ge);ve.y-=he.y*ge,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ve.x+"px, "+ve.y+"px) scale("+ge+", "+ge+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ve.x,ve.y),this.textElement.transform.baseVal.getItem(1).setScale(ge,ge))},me.prototype.manipulate=function(he){Oe.prototype.manipulate.call(this,he),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(he.x-this.pointerDownPoint.x)>5||Math.abs(he.y-this.pointerDownPoint.y)>5)},me.prototype.resize=function(he){Oe.prototype.resize.call(this,he),this.isMoved=!0,this.setSize(),this.sizeText()},me.prototype.setSize=function(){Oe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Be.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},me.prototype.pointerUp=function(he){var ge=this.state;ge==="creating"&&(this._suppressMarkerCreateEvent=!0),Oe.prototype.pointerUp.call(this,he),this.setSize(),(ge==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},me.prototype.showTextEditor=function(){var he=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(ge){ge.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ge=Number.parseFloat(he.textEditor.style.fontSize);he.textEditor.clientWidth>=Number.parseInt(he.textEditor.style.maxWidth)&&ge>.9;)ge-=.1,he.textEditor.style.fontSize=Math.max(ge,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ge){ge.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ge){if(ge.clipboardData){var ve=ge.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(ve)),ge.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){he.textEditDivClicked(he.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},me.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var he=this.getTextScale(),ge=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ve=this.textElement.getBBox(),se={x:ve.width*he,y:ve.height*he};ge.x-=se.x/2,ge.y-=se.y/2,this.textEditor.style.top=ge.y+"px",this.textEditor.style.left=ge.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ge.x+"px",this.textEditor.style.fontSize=Math.max(16*he,12)+"px",this.textElement.style.display="none"}},me.prototype.textEditDivClicked=function(he){this.text=he.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},me.prototype.select=function(){Oe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},me.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Oe.prototype.deselect.call(this)},me.prototype.dblClick=function(he,ge){Oe.prototype.dblClick.call(this,he,ge),this.showTextEditor()},me.prototype.setColor=function(he){this.textElement&&Be.setAttributes(this.textElement,[["fill",he]]),this.color=he,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(he)},me.prototype.setFont=function(he){this.textElement&&Be.setAttributes(this.textElement,[["font-family",he]]),this.fontFamily=he,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},me.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},me.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Oe.prototype.getState.call(this));return he.typeName=me.typeName,he},me.prototype.restoreState=function(he){var ge=he;this.color=ge.color,this.fontFamily=ge.fontFamily,this.padding=ge.padding,this.text=ge.text,this.createVisual(),Oe.prototype.restoreState.call(this,he),this.setSize()},me.prototype.scale=function(he,ge){Oe.prototype.scale.call(this,he,ge),this.setSize(),this.sizeText(),this.positionTextEditor()},me.typeName="TextMarker",me.title="Text marker",me.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>',me}(Ze),$e=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=ve.defaultColor,se.lineWidth=ve.defaultStrokeWidth,se.pixelRatio=ve.freehandPixelRatio,se.setColor=se.setColor.bind(se),se.addCanvas=se.addCanvas.bind(se),se.finishCreation=se.finishCreation.bind(se),se.setLineWidth=se.setLineWidth.bind(se),se.colorPanel=new He("Color",ve.defaultColorSet,ve.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new Ee("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return!(!Oe.prototype.ownsTarget.call(this,he)&&he!==this.visual&&he!==this.drawingImage)},me.prototype.createVisual=function(){this.visual=Be.createGroup(),this.drawingImage=Be.createImage(),this.visual.appendChild(this.drawingImage);var he=Be.createTransform();this.visual.transform.baseVal.appendItem(he),this.addMarkerVisualToContainer(this.visual)},me.prototype.pointerDown=function(he,ge){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(he.x,he.y),this.drawing=!0):Oe.prototype.pointerDown.call(this,he,ge)},me.prototype.manipulate=function(he){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(he.x,he.y),this.canvasContext.stroke()):Oe.prototype.manipulate.call(this,he)},me.prototype.resize=function(he){Oe.prototype.resize.call(this,he),Be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},me.prototype.pointerUp=function(he){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Oe.prototype.pointerUp.call(this,he)},me.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)},me.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Oe.prototype.select.call(this)},me.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Oe.prototype.deselect.call(this)},me.prototype.finishCreation=function(){for(var he=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ge=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ve=ge[0],se=ge[1],Ke=ge[2],bt=ge[3],Wt=!1,yn=0;yn<this.canvasElement.height;yn++)for(var bn=0;bn<this.canvasElement.width;bn++)he.data[yn*this.canvasElement.width*4+4*bn+3]>0&&(Wt=!0,yn<se&&(se=yn),bn<ve&&(ve=bn),yn>bt&&(bt=yn),bn>Ke&&(Ke=bn));if(Wt){this.left=ve/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(Ke-ve)/this.pixelRatio,this.height=(bt-se)/this.pixelRatio;var cn=document.createElement("canvas");cn.width=Ke-ve,cn.height=bt-se,cn.getContext("2d").putImageData(this.canvasContext.getImageData(ve,se,Ke-ve,bt-se),0,0),this.drawingImgUrl=cn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},me.prototype.setDrawingImage=function(){Be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Be.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},me.prototype.setColor=function(he){this.color=he,this.colorChanged(he)},me.prototype.setLineWidth=function(he){this.lineWidth=he},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Object.assign({drawingImgUrl:this.drawingImgUrl},Oe.prototype.getState.call(this));return he.typeName=me.typeName,he},me.prototype.restoreState=function(he){this.createVisual(),Oe.prototype.restoreState.call(this,he),this.drawingImgUrl=he.drawingImgUrl,this.setDrawingImage()},me.prototype.scale=function(he,ge){Oe.prototype.scale.call(this,he,ge),this.setDrawingImage()},me.typeName="FreehandMarker",me.title="Freehand marker",me.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>',me}(Ze),ft=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ve||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return se.typeBoxes=[],se.currentType=ge,se.setCurrentType=se.setCurrentType.bind(se),se}return fe(me,Oe),me.prototype.getUi=function(){var he=this,ge=document.createElement("div");ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2";for(var ve=function(bt){var Wt="both";switch(bt){case 0:Wt="both";break;case 1:Wt="start";break;case 2:Wt="end";break;case 3:Wt="none"}var yn=document.createElement("div");if(yn.style.display="flex",yn.style.flexGrow="2",yn.style.alignItems="center",yn.style.justifyContent="space-between",yn.style.padding="5px",yn.style.borderWidth="2px",yn.style.borderStyle="solid",yn.style.borderColor=Wt===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",yn.addEventListener("click",function(){he.setCurrentType(Wt,yn)}),ge.appendChild(yn),Wt==="both"||Wt==="start"){var bn=document.createElement("div");bn.style.display="flex",bn.style.alignItems="center",bn.style.minHeight="20px",bn.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="`+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,bn.style.marginLeft="5px",yn.appendChild(bn)}var cn=document.createElement("div");cn.style.display="flex",cn.style.alignItems="center",cn.style.minHeight="20px",cn.style.flexGrow="2";var wn=document.createElement("hr");if(wn.style.minWidth="20px",wn.style.border="0px",wn.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),wn.style.flexGrow="2",cn.appendChild(wn),yn.appendChild(cn),Wt==="both"||Wt==="end"){var Tt=document.createElement("div");Tt.style.display="flex",Tt.style.alignItems="center",Tt.style.minHeight="20px",Tt.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="`+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Tt.style.marginRight="5px",yn.appendChild(Tt)}se.typeBoxes.push(yn)},se=this,Ke=0;Ke<4;Ke++)ve(Ke);return ge},me.prototype.setCurrentType=function(he,ge){var ve=this;this.currentType=he,this.typeBoxes.forEach(function(se){se.style.borderColor=se===ge?ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},me}(qe),We=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new ft("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return!(!Oe.prototype.ownsTarget.call(this,he)&&he!==this.arrow1&&he!==this.arrow2)},me.prototype.getArrowPoints=function(he,ge){var ve=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return he-ve/2+","+(ge+se/2)+" "+he+","+(ge-se/2)+" "+(he+ve/2)+","+(ge+se/2)},me.prototype.createTips=function(){this.arrow1=Be.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Be.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.arrow2)},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.state==="creating"&&this.createTips()},me.prototype.adjustVisual=function(){if(Oe.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Be.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Be.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var he=0;Math.abs(this.x1-this.x2)>.1&&(he=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ge=this.arrow1.transform.baseVal.getItem(0);ge.setRotate(he,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ge,0);var ve=this.arrow2.transform.baseVal.getItem(0);ve.setRotate(he+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ve,0)}},me.prototype.setArrowType=function(he){this.arrowType=he,this.adjustVisual(),this.stateChanged()},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Object.assign({arrowType:this.arrowType},Oe.prototype.getState.call(this));return he.typeName=me.typeName,he},me.prototype.restoreState=function(he){Oe.prototype.restoreState.call(this,he);var ge=he;this.arrowType=ge.arrowType,this.createTips(),this.adjustVisual()},me.typeName="ArrowMarker",me.title="Arrow marker",me.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',me}(_e),gt=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.fillColor=ve.defaultFillColor,se.strokeWidth=0,se.fillPanel=new He("Color",ve.defaultColorSet,ve.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return fe(me,Oe),Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Oe.prototype.getState.call(this);return he.typeName=me.typeName,he},me.typeName="CoverMarker",me.title="Cover marker",me.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',me}(ye),kt=function(Oe){function me(he,ge,ve,se){var Ke=Oe.call(this,he,se||'<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 Ke.opacities=[],Ke.opacityBoxes=[],Ke.opacities=ge,Ke.currentOpacity=ve,Ke.setCurrentOpacity=Ke.setCurrentOpacity.bind(Ke),Ke}return fe(me,Oe),me.prototype.getUi=function(){var he=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",ge.style.justifyContent="space-between",this.opacities.forEach(function(ve){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=ve===he.currentOpacity?he.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){he.setCurrentOpacity(ve,se)}),ge.appendChild(se);var Ke=document.createElement("div");Ke.innerText=100*ve+"%",se.appendChild(Ke),he.opacityBoxes.push(se)}),ge},me.prototype.setCurrentOpacity=function(he,ge){var ve=this;this.currentOpacity=he,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===ge?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},me}(qe),xt=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=ve.defaultHighlightColor,se.strokeWidth=0,se.opacity=ve.defaultHighlightOpacity,se.fillPanel=new He("Color",ve.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new kt("Opacity",ve.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return fe(me,Oe),me.prototype.setOpacity=function(he){this.opacity=he,this.visual&&Be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Oe.prototype.getState.call(this);return he.typeName=me.typeName,he},me.typeName="HighlightMarker",me.title="Highlight marker",me.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>',me}(gt),et='<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>',Fe='<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>',Dt=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=ve.defaultStrokeColor,se.bgColor=ve.defaultFillColor,se.fontFamily=ve.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new He("Text color",ve.defaultColorSet,se.color,et),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new He("Fill color",ve.defaultColorSet,se.bgColor,Fe),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Me("Font",ve.defaultFontFamilies,ve.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new ht,se.tipGrip.visual.transform.baseVal.appendItem(Be.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return Oe.prototype.ownsTarget.call(this,he)||this.tipGrip.ownsTarget(he)||this.tip===he},me.prototype.createTip=function(){Be.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Be.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},me.prototype.pointerDown=function(he,ge){this.state==="new"&&Oe.prototype.pointerDown.call(this,he,ge),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ge)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Oe.prototype.pointerDown.call(this,he,ge)},me.prototype.pointerUp=function(he){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Oe.prototype.pointerUp.call(this,he);else{var ge=this.state==="creating";Oe.prototype.pointerUp.call(this,he),this.setTipPoints(ge),this.positionTip()}},me.prototype.manipulate=function(he){if(this.tipMoving){var ge=this.unrotatePoint(he);this.tipPosition={x:ge.x-this.manipulationStartLeft,y:ge.y-this.manipulationStartTop},this.positionTip()}else Oe.prototype.manipulate.call(this,he)},me.prototype.setBgColor=function(he){this.bgRectangle&&this.tip&&(Be.setAttributes(this.bgRectangle,[["fill",he]]),Be.setAttributes(this.tip,[["fill",he]])),this.bgColor=he,this.fillColorChanged(he)},me.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},me.prototype.setTipPoints=function(he){he===void 0&&(he=!1);var ge=Math.min(this.height/2,15),ve=this.height/5;he&&(this.tipPosition={x:ge+ve/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?se<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ve=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:ge,y:0},this.tipBase2Position={x:ge+ve,y:0}):(this.tipBase1Position={x:0,y:ge},this.tipBase2Position={x:0,y:ge+ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?se<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ve=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ge-ve,y:0},this.tipBase2Position={x:this.width-ge,y:0}):(this.tipBase1Position={x:this.width,y:ge},this.tipBase2Position={x:this.width,y:ge+ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?se<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ve=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ge-ve,y:this.height},this.tipBase2Position={x:this.width-ge,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ge-ve},this.tipBase2Position={x:this.width,y:this.height-ge}):se<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ve=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:ge,y:this.height},this.tipBase2Position={x:ge+ve,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ge},this.tipBase2Position={x:0,y:this.height-ge-ve})},me.prototype.resize=function(he){Oe.prototype.resize.call(this,he),this.positionTip()},me.prototype.positionTip=function(){Be.setAttributes(this.tip,[["points",this.getTipPoints()]]);var he=this.tipGrip.visual.transform.baseVal.getItem(0);he.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(he,0)},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),me.prototype.select=function(){this.positionTip(),Oe.prototype.select.call(this)},me.prototype.getState=function(){var he=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Oe.prototype.getState.call(this));return he.typeName=me.typeName,he},me.prototype.restoreState=function(he){var ge=he;this.bgColor=ge.bgColor,this.tipPosition=ge.tipPosition,Oe.prototype.restoreState.call(this,he),this.createTip(),this.setTipPoints()},me.prototype.scale=function(he,ge){Oe.prototype.scale.call(this,he,ge),this.tipPosition={x:this.tipPosition.x*he,y:this.tipPosition.y*ge},this.positionTip()},me.typeName="CalloutMarker",me.title="Callout marker",me.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>',me}(pt),qt=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.strokeColor=ve.defaultColor,se.strokeWidth=ve.defaultStrokeWidth,se.strokeDasharray=ve.defaultStrokeDasharray,se.fillColor=ve.defaultFillColor,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.setOpacity=se.setOpacity.bind(se),se.createVisual=se.createVisual.bind(se),se.strokePanel=new He("Line color",xe(ve.defaultColorSet,["transparent"]),ve.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new He("Fill color",xe(ve.defaultColorSet,["transparent"]),se.fillColor,Fe),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new Ee("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Ye("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.opacityPanel=new kt("Opacity",ve.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return!(!Oe.prototype.ownsTarget.call(this,he)&&he!==this.visual)},me.prototype.createVisual=function(){this.visual=Be.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.state==="new"&&(this.createVisual(),this.moveVisual(he),this._state="creating")},me.prototype.manipulate=function(he){Oe.prototype.manipulate.call(this,he)},me.prototype.resize=function(he){Oe.prototype.resize.call(this,he),this.setSize()},me.prototype.setSize=function(){Oe.prototype.setSize.call(this),Be.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},me.prototype.pointerUp=function(he){Oe.prototype.pointerUp.call(this,he),this.setSize()},me.prototype.setStrokeColor=function(he){this.strokeColor=he,this.visual&&Be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(he),this.stateChanged()},me.prototype.setFillColor=function(he){this.fillColor=he,this.visual&&Be.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(he),this.stateChanged()},me.prototype.setStrokeWidth=function(he){this.strokeWidth=he,this.visual&&Be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},me.prototype.setStrokeDasharray=function(he){this.strokeDasharray=he,this.visual&&Be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},me.prototype.setOpacity=function(he){this.opacity=he,this.visual&&Be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Oe.prototype.getState.call(this));return he.typeName=me.typeName,he},me.prototype.restoreState=function(he){var ge=he;this.fillColor=ge.fillColor,this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.opacity=ge.opacity,this.createVisual(),Oe.prototype.restoreState.call(this,he),this.setSize()},me.prototype.scale=function(he,ge){Oe.prototype.scale.call(this,he,ge),this.setSize()},me.typeName="EllipseMarker",me.title="Ellipse marker",me.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>',me}(Ze),Xt=function(Oe){function me(he,ge,ve){return Oe.call(this,he,ge,ve)||this}return fe(me,Oe),Object.defineProperty(me.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),me.prototype.ownsTarget=function(he){return!(!Oe.prototype.ownsTarget.call(this,he)&&he!==this.tip1&&he!==this.tip2)},me.prototype.createTips=function(){this.tip1=Be.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Be.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.tip2)},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.state==="creating"&&this.createTips()},me.prototype.adjustVisual=function(){if(Oe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Be.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Be.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var he=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ge=this.tip1.transform.baseVal.getItem(0);ge.setRotate(he,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ge,0);var ve=this.tip2.transform.baseVal.getItem(0);ve.setRotate(he+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ve,0)}},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Oe.prototype.getState.call(this);return he.typeName=me.typeName,he},me.prototype.restoreState=function(he){Oe.prototype.restoreState.call(this,he),this.createTips(),this.adjustVisual()},me.typeName="MeasurementMarker",me.title="Measurement marker",me.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>',me}(_e),Et=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.strokePanel.colors=ve.defaultColorSet,se.fillColor="transparent",se}return fe(me,Oe),Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Oe.prototype.getState.call(this);return he.typeName=me.typeName,he},me.typeName="EllipseFrameMarker",me.title="Ellipse frame marker",me.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>',me}(qt),zt=function(){function Oe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Oe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Oe.prototype.addUndoStep=function(me){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(me)||(this.undoStack.push(me),JSON.stringify(this.lastRedoStep)!==JSON.stringify(me)&&this.redoStack.splice(0,this.redoStack.length))},Oe.prototype.replaceLastUndoStep=function(me){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=me)},Oe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Oe.prototype.undo=function(){if(this.undoStack.length>1){var me=this.undoStack.pop();return me!==void 0&&this.redoStack.push(me),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Oe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Oe}(),Yt=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=ve.defaultColor,se.strokeWidth=ve.defaultStrokeWidth,se.strokeDasharray=ve.defaultStrokeDasharray,se.strokePanel=new He("Line color",ve.defaultColorSet,ve.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Ee("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Ye("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return!(!Oe.prototype.ownsTarget.call(this,he)&&he!==this.visual&&he!==this.selectorCurve&&he!==this.visibleCurve&&!this.curveGrip.ownsTarget(he))},me.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},me.prototype.createVisual=function(){this.visual=Be.createGroup(),this.selectorCurve=Be.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Be.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=he.x,this.curveY=he.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ge)&&(this.activeGrip=this.curveGrip,this._state="resize")},me.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Be.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Be.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Be.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},me.prototype.setupControlBox=function(){Oe.prototype.setupControlBox.call(this),this.curveControlLine1=Be.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Be.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},me.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Oe.prototype.addControlGrips.call(this)},me.prototype.positionGrips=function(){Oe.prototype.positionGrips.call(this);var he=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-he/2,this.curveY-he/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()))},me.prototype.manipulate=function(he){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+he.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+he.y-this.manipulationStartY),Oe.prototype.manipulate.call(this,he)},me.prototype.resize=function(he){this.activeGrip===this.curveGrip&&(this.curveX=he.x,this.curveY=he.y),Oe.prototype.resize.call(this,he),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},me.prototype.setStrokeColor=function(he){this.strokeColor=he,this.adjustVisual(),this.colorChanged(he)},me.prototype.setStrokeWidth=function(he){this.strokeWidth=he,this.adjustVisual()},me.prototype.setStrokeDasharray=function(he){this.strokeDasharray=he,this.adjustVisual()},me.prototype.scale=function(he,ge){this.curveX=this.curveX*he,this.curveY=this.curveY*ge,Oe.prototype.scale.call(this,he,ge)},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Oe.prototype.getState.call(this));return he.typeName=me.typeName,he},me.prototype.restoreState=function(he){Oe.prototype.restoreState.call(this,he);var ge=he;this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.curveX=ge.curveX,this.curveY=ge.curveY,this.createVisual(),this.adjustVisual()},me.typeName="CurveMarker",me.title="Curve marker",me.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>',me}(ct),Vn=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,ge,ve)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.textColor="transparent",se.fontSize="1rem",se.isMoved=!1,se.captionText="Caption",se.PADDING=5,se.captionBoxWidth=0,se.captionBoxHeight=0,se.strokeColor=ve.defaultColor,se.strokeWidth=ve.defaultStrokeWidth,se.strokeDasharray=ve.defaultStrokeDasharray,se.fillColor=ve.defaultFillColor,se.textColor=ve.defaultStrokeColor,se.fontFamily=ve.defaultFontFamily,se.fontSize=ve.defaultCaptionFontSize,se.captionText=ve.defaultCaptionText,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se.sizeCaption=se.sizeCaption.bind(se),se.setCaptionText=se.setCaptionText.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.finishTextEditing=se.finishTextEditing.bind(se),se.setFont=se.setFont.bind(se),se.setTextColor=se.setTextColor.bind(se),se.strokePanel=new He("Line color",xe(ve.defaultColorSet,["transparent"]),se.strokeColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new He("Fill color",xe(ve.defaultColorSet,["transparent"]),se.fillColor,Fe),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new Ee("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Ye("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.fontFamilyPanel=new Me("Font",ve.defaultFontFamilies,ve.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.textColorPanel=new He("Text color",ve.defaultColorSet,se.textColor,et),se.textColorPanel.onColorChanged=se.setTextColor,se}return fe(me,Oe),me.prototype.ownsTarget=function(he){return!(!Oe.prototype.ownsTarget.call(this,he)&&he!==this.visual&&he!==this.frame&&he!==this.captionBg&&he!==this.captionElement)},me.prototype.createVisual=function(){this.visual=Be.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Be.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Be.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Be.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},me.prototype.setCaptionText=function(he){this.captionText=he,this.captionElement.textContent=this.captionText,this.sizeCaption()},me.prototype.pointerDown=function(he,ge){Oe.prototype.pointerDown.call(this,he,ge),this.isMoved=!1,this.pointerDownPoint=he,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(he),this._state="creating")},me.prototype.manipulate=function(he){Oe.prototype.manipulate.call(this,he),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(he.x-this.pointerDownPoint.x)>5||Math.abs(he.y-this.pointerDownPoint.y)>5)},me.prototype.resize=function(he){Oe.prototype.resize.call(this,he),this.setSize()},me.prototype.sizeCaption=function(){var he=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=he.width+2*this.PADDING,this.captionBoxHeight=he.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Be.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Be.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},me.prototype.showTextEditor=function(){var he=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(ge){ge.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ge){ge.key==="Enter"&&he.finishTextEditing(he.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ge){ge.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){he.finishTextEditing(he.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){he.finishTextEditing(he.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},me.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"))},me.prototype.finishTextEditing=function(he){this.setCaptionText(he.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},me.prototype.setFont=function(he){this.captionElement&&Be.setAttributes(this.captionElement,[["font-family",he]]),this.fontFamily=he,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},me.prototype.setTextColor=function(he){this.captionElement&&Be.setAttributes(this.captionElement,[["fill",he]]),this.textColor=he,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},me.prototype.setSize=function(){Oe.prototype.setSize.call(this),Be.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},me.prototype.pointerUp=function(he){Oe.prototype.pointerUp.call(this,he),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},me.prototype.dblClick=function(he,ge){Oe.prototype.dblClick.call(this,he,ge),this.showTextEditor()},me.prototype.setStrokeColor=function(he){this.strokeColor=he,this.frame&&Be.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(he),this.stateChanged()},me.prototype.setFillColor=function(he){this.fillColor=he,this.captionBg&&Be.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(he),this.stateChanged()},me.prototype.setStrokeWidth=function(he){this.strokeWidth=he,this.frame&&Be.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},me.prototype.setStrokeDasharray=function(he){this.strokeDasharray=he,this.frame&&Be.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(me.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),me.prototype.getState=function(){var he=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},Oe.prototype.getState.call(this));return he.typeName=this.typeName,he},me.prototype.restoreState=function(he){var ge=he;this.fillColor=ge.fillColor,this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.textColor=ge.textColor,this.fontFamily=ge.fontFamily,this.captionText=ge.captionText,this.fontSize=ge.fontSize,this.createVisual(),Oe.prototype.restoreState.call(this,he),this.setSize()},me.prototype.scale=function(he,ge){Oe.prototype.scale.call(this,he,ge),this.setSize()},me.typeName="CaptionFrameMarker",me.title="Caption frame marker",me.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>',me}(Ze),Pn=function(){function Oe(me,he){he===void 0&&(he=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=me,this.cancelable=he}return Object.defineProperty(Oe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Oe.prototype.preventDefault=function(){this._defaultPrevented=!0},Oe}(),_t=function(Oe){function me(he,ge,ve){var se=Oe.call(this,he,!1)||this;return se.dataUrl=ge,se.state=ve,se}return fe(me,Oe),me}(Pn),pn=function(Oe){function me(he,ge,ve){ve===void 0&&(ve=!1);var se=Oe.call(this,he,ve)||this;return se.marker=ge,se}return fe(me,Oe),me}(Pn),sr=function(){function Oe(){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 Oe.prototype.addEventListener=function(me,he){this[me].push(he)},Oe.prototype.removeEventListener=function(me,he){var ge=this[me].indexOf(he);ge>-1&&this[me].splice(ge,1)},Oe}(),Tn=function(){function Oe(me){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ot,this._isOpen=!1,this.undoRedoManager=new zt,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 sr,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Oe.instanceCounter++,this.styles=new De(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=me,this.targetRoot=document.body,this.width=me.clientWidth,this.height=me.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(Oe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ne,$e,We,pt,Et,qt,xt,Dt,Xt,gt,_e,Yt,Vn]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ne,$e,We,pt,qt,xt,Dt]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ne,$e,We,pt,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(me){var he=this;this._availableMarkerTypes.splice(0),me.forEach(function(ge){if(typeof ge=="string"){var ve=he.ALL_MARKER_TYPES.find(function(se){return se.typeName===ge});ve!==void 0&&he._availableMarkerTypes.push(ve)}else he._availableMarkerTypes.push(ge)})},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(me){this._zoomLevel=me,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(Oe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Oe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),de.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Oe.prototype.show=function(){var me=this;this.styles.styleSheetRoot===void 0&&pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(he){return he(new Pn(me))})},Oe.prototype.render=function(){return Ie(this,void 0,void 0,function(){var me;return Te(this,function(he){switch(he.label){case 0:return this.setCurrentMarker(),(me=new Se).naturalSize=this.renderAtNaturalSize,me.imageType=this.renderImageType,me.imageQuality=this.renderImageQuality,me.markersOnly=this.renderMarkersOnly,me.width=this.renderWidth,me.height=this.renderHeight,[4,me.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return he.sent(),[4,me.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,he.sent()]}})})},Oe.prototype.close=function(me){var he=this;if(me===void 0&&(me=!1),this.isOpen){var ge=!1;me||this.eventListeners.beforeclose.forEach(function(ve){var se=new Pn(he,!0);ve(se),se.defaultPrevented&&(ge=!0)}),ge||(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(ve){return ve(new Pn(he))}),this.detachEvents(),this._isOpen=!1)}},Oe.prototype.addMarkersToToolbar=function(){for(var me,he=[],ge=0;ge<arguments.length;ge++)he[ge]=arguments[ge];(me=this._availableMarkerTypes).push.apply(me,he)},Oe.prototype.addRenderEventListener=function(me){this.addEventListener("render",function(he){me(he.dataUrl,he.state)})},Oe.prototype.removeRenderEventListener=function(me){},Oe.prototype.addCloseEventListener=function(me){this.addEventListener("close",function(){me()})},Oe.prototype.removeCloseEventListener=function(me){},Oe.prototype.setupResizeObserver=function(){var me=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){me.resize(me.target.clientWidth,me.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return me.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Oe.prototype.onPopupTargetResize=function(){var me=1*this.target.clientWidth/this.target.clientHeight,he=this.editorCanvas.clientWidth/me>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*me:this.editorCanvas.clientWidth,ge=he<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/me;this.resize(he,ge)},Oe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Oe.prototype.resize=function(me,he){this._isResizing=!0;var ge=me/this.imageWidth,ve=he/this.imageHeight;this.imageWidth=Math.round(me),this.imageHeight=Math.round(he),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(ge,ve),this._isResizing=!1},Oe.prototype.scaleMarkers=function(me,he){var ge,ve=this;this._currentMarker&&this._currentMarker instanceof pt?this._currentMarker.scale(me,he):(ge=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(se){se!==ve._currentMarker&&se.scale(me,he)}),ge!==void 0&&this.setCurrentMarker(ge)},Oe.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"},Oe.prototype.setTopLeft=function(){var me=this.editingTarget.getBoundingClientRect(),he=this.editorCanvas.getBoundingClientRect();this.left=me.left-he.left,this.top=me.top-he.top},Oe.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)},Oe.prototype.addDefs=function(){for(var me,he=[],ge=0;ge<arguments.length;ge++)he[ge]=arguments[ge];this.defs=Be.createDefs(),this.addDefsToImage(),(me=this.defs).append.apply(me,he)},Oe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Oe.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)},Oe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Oe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Oe.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)},Oe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Oe.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)},Oe.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 me=document.createElement("a");me.href="https://markerjs.com/",me.target="_blank",me.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>',me.title="Powered by marker.js",me.style.display="grid",me.style.alignItems="center",me.style.justifyItems="center",me.style.padding="3px",me.style.width="20px",me.style.height="20px",this.logoUI.appendChild(me),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Oe.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")},Oe.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"},Oe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Oe.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 me=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=me+"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 Ue(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 rt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Oe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Oe.prototype.removeMarker=function(me){this.markerImage.removeChild(me.container),this.markers.indexOf(me)>-1&&this.markers.splice(this.markers.indexOf(me),1),me.dispose()},Oe.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())},Oe.prototype.toolbarButtonClicked=function(me,he){if(me==="marker"&&he!==void 0)this.createNewMarker(he);else if(me==="action")switch(he){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()}},Oe.prototype.deleteSelectedMarker=function(){var me=this;if(this._currentMarker!==void 0){var he=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ve){var se=new pn(me,me._currentMarker,!0);ve(se),se.defaultPrevented&&(he=!0)}),!he){var ge=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(ve){return ve(new pn(me,ge))})}}},Oe.prototype.clear=function(){var me=this,he=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ke){var bt=new pn(me,void 0,!0);Ke(bt),bt.defaultPrevented&&(he=!0)}),!he)){this.setCurrentMarker();for(var ge=function(Ke){var bt=ve.markers[Ke];ve.setCurrentMarker(ve.markers[Ke]),ve._currentMarker.dispose(),ve.markerImage.removeChild(ve._currentMarker.container),ve.markers.splice(ve.markers.indexOf(ve._currentMarker),1),ve.eventListeners.markerdelete.forEach(function(Wt){return Wt(new pn(me,bt))})},ve=this,se=this.markers.length-1;se>=0;se--)ge(se);this.addUndoStep()}},Object.defineProperty(Oe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Oe.prototype.showNotesEditor=function(){var me;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=(me=this._currentMarker.notes)!==null&&me!==void 0?me:"",this.overlayContainer.appendChild(this.notesArea))},Oe.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)},Oe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Oe.prototype.addUndoStep=function(){var me=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var he=this.getState(),ge=this.undoRedoManager.getLastUndoStep();if(!ge||ge.width===he.width&&ge.height===he.height){var ve=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(he),ve<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(se){return se(new Pn(me))})}else this.undoRedoManager.replaceLastUndoStep(he),this.eventListeners.statechange.forEach(function(se){return se(new Pn(me))})}},Oe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Oe.prototype.undoStep=function(){var me=this,he=this.undoRedoManager.undo();he!==void 0&&(this.restoreState(he),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ge){return ge(new Pn(me))}))},Oe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Oe.prototype.redoStep=function(){var me=this,he=this.undoRedoManager.redo();he!==void 0&&(this.restoreState(he),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ge){return ge(new Pn(me))}))},Oe.prototype.stepZoom=function(){var me=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=me<this.zoomSteps.length-1?this.zoomSteps[me+1]:this.zoomSteps[0]},Oe.prototype.panTo=function(me){this.contentDiv.scrollBy({left:this.prevPanPoint.x-me.x,top:this.prevPanPoint.y-me.y}),this.prevPanPoint=me},Oe.prototype.startRenderAndClose=function(){return Ie(this,void 0,void 0,function(){var me,he,ge=this;return Te(this,function(ve){switch(ve.label){case 0:return[4,this.render()];case 1:return me=ve.sent(),he=this.getState(),this.eventListeners.render.forEach(function(se){return se(new _t(ge,me,he))}),this.close(!0),[2]}})})},Oe.prototype.getState=function(me){me===!0&&this.setCurrentMarker();var he={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ge){return he.markers.push(ge.getState())}),he},Oe.prototype.restoreState=function(me){var he=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);me.markers.forEach(function(ge){var ve=he._availableMarkerTypes.find(function(Ke){return Ke.typeName===ge.typeName});if(ve!==void 0){var se=he.addNewMarker(ve);se.restoreState(ge),he.markers.push(se)}}),me.width&&me.height&&(me.width!==this.imageWidth||me.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/me.width,this.imageHeight/me.height),this.eventListeners.restorestate.forEach(function(ge){return ge(new Pn(he))})},Oe.prototype.addNewMarker=function(me){var he=Be.createGroup();return this.markerImage.appendChild(he),new me(he,this.overlayContainer,this.settings)},Oe.prototype.createNewMarker=function(me){var he,ge=this;(he=typeof me=="string"?this._availableMarkerTypes.find(function(ve){return ve.typeName===me}):me)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(he),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(he.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ve){return ve(new pn(ge,ge._currentMarker))}))},Oe.prototype.markerCreated=function(me){var he=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(me),this.setCurrentMarker(me),me instanceof $e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker($e):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ge){return ge(new pn(he,he._currentMarker))})},Oe.prototype.colorChanged=function(me){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=me,this.settings.defaultStrokeColor=me)},Oe.prototype.fillColorChanged=function(me){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=me)},Oe.prototype.markerStateChanged=function(me){var he=this;this.eventListeners.markerchange.forEach(function(ge){return ge(new pn(he,me))})},Oe.prototype.setCurrentMarker=function(me){var he=this;this._currentMarker!==me&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ge){return ge(new pn(he,he._currentMarker))})),this._currentMarker=me,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(ge){return ge(new pn(he,he._currentMarker))}))},Oe.prototype.onPointerDown=function(me){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||me.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var he=this.markers.find(function(ge){return ge.ownsTarget(me.target)});he!==void 0?(this.setCurrentMarker(he),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(me.clientX,me.clientY),me.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:me.clientX,y:me.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(me.clientX,me.clientY))},Oe.prototype.onDblClick=function(me){if(this._isFocused||this.focus(),this.mode==="select"){var he=this.markers.find(function(ge){return ge.ownsTarget(me.target)});he!==void 0&&he!==this._currentMarker&&this.setCurrentMarker(he),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(me.clientX,me.clientY),me.target):this.setCurrentMarker()}},Oe.prototype.onPointerMove=function(me){this.touchPoints!==1&&me.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||me.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(me.clientX,me.clientY)):this.zoomLevel>1&&this.panTo({x:me.clientX,y:me.clientY}))},Oe.prototype.onPointerUp=function(me){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(me.clientX,me.clientY)),this.isDragging=!1,this.addUndoStep()},Oe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Oe.prototype.onKeyUp=function(me){this._currentMarker===void 0||this.notesArea!==void 0||me.key!=="Delete"&&me.key!=="Backspace"||this.deleteSelectedMarker()},Oe.prototype.clientToLocalCoordinates=function(me,he){var ge=this.markerImage.getBoundingClientRect();return{x:(me-ge.left)/this.zoomLevel,y:(he-ge.top)/this.zoomLevel}},Oe.prototype.onWindowResize=function(){this.positionUI()},Oe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var me=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=me+"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()},Oe.prototype.addLicenseKey=function(me){de.addKey(me)},Oe.prototype.addEventListener=function(me,he){this.eventListeners.addEventListener(me,he)},Oe.prototype.removeEventListener=function(me,he){this.eventListeners.removeEventListener(me,he)},Oe.prototype.renderState=function(me){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(me),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Oe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Oe.prototype.focus=function(){var me=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(he){return he(new Pn(me))}))},Oe.prototype.blur=function(){var me=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(he){return he(new Pn(me))}))},Oe.instanceCounter=0,Oe}()},42767:function(In,Ut){"use strict";var te;var E=typeof Symbol=="function"&&Symbol.for,fe=E?Symbol.for("react.element"):60103,Ie=E?Symbol.for("react.portal"):60106,Te=E?Symbol.for("react.fragment"):60107,xe=E?Symbol.for("react.strict_mode"):60108,Be=E?Symbol.for("react.profiler"):60114,de=E?Symbol.for("react.provider"):60109,Se=E?Symbol.for("react.context"):60110,pe=E?Symbol.for("react.async_mode"):60111,De=E?Symbol.for("react.concurrent_mode"):60111,Xe=E?Symbol.for("react.forward_ref"):60112,Pe=E?Symbol.for("react.suspense"):60113,Ue=E?Symbol.for("react.suspense_list"):60120,rt=E?Symbol.for("react.memo"):60115,qe=E?Symbol.for("react.lazy"):60116,He=E?Symbol.for("react.block"):60121,be=E?Symbol.for("react.fundamental"):60117,Qe=E?Symbol.for("react.responder"):60118,ht=E?Symbol.for("react.scope"):60119;function Je(ye){if(typeof ye=="object"&&ye!==null){var Ee=ye.$$typeof;switch(Ee){case fe:switch(ye=ye.type,ye){case pe:case De:case Te:case Be:case xe:case Pe:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case Se:case Xe:case qe:case rt:case de:return ye;default:return Ee}}case Ie:return Ee}}}function Ze(ye){return Je(ye)===De}te=pe,te=De,te=Se,te=de,te=fe,te=Xe,te=Te,te=qe,te=rt,te=Ie,te=Be,te=xe,te=Pe,te=function(ye){return Ze(ye)||Je(ye)===pe},te=Ze,te=function(ye){return Je(ye)===Se},te=function(ye){return Je(ye)===de},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===fe},te=function(ye){return Je(ye)===Xe},Ut.isFragment=function(ye){return Je(ye)===Te},te=function(ye){return Je(ye)===qe},te=function(ye){return Je(ye)===rt},te=function(ye){return Je(ye)===Ie},te=function(ye){return Je(ye)===Be},te=function(ye){return Je(ye)===xe},te=function(ye){return Je(ye)===Pe},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===De||ye===Be||ye===xe||ye===Pe||ye===Ue||typeof ye=="object"&&ye!==null&&(ye.$$typeof===qe||ye.$$typeof===rt||ye.$$typeof===de||ye.$$typeof===Se||ye.$$typeof===Xe||ye.$$typeof===be||ye.$$typeof===Qe||ye.$$typeof===ht||ye.$$typeof===He)},te=Je},16357:function(In,Ut,te){"use strict";In.exports=te(42767)},95860:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Je}});var E=te(87462),fe=te(1413),Ie=te(4942),Te=te(97685),xe=te(45987),Be=te(94184),de=te.n(Be),Se=te(67294);function pe(Ze){var ye=Se.useRef();ye.current=Ze;var Ee=Se.useCallback(function(){for(var Ye,Ne=arguments.length,ot=new Array(Ne),ct=0;ct<Ne;ct++)ot[ct]=arguments[ct];return(Ye=ye.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[ye].concat(ot))},[]);return Ee}function De(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Xe=De()?Se.useLayoutEffect:Se.useEffect,Pe=function(ye,Ee){var Ye=Se.useRef(!0);Xe(function(){return ye(Ye.current)},Ee),Xe(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},Ue=function(ye,Ee){Pe(function(Ye){if(!Ye)return ye()},Ee)},rt=null;function qe(Ze){var ye=Se.useRef(!1),Ee=Se.useState(Ze),Ye=(0,Te.Z)(Ee,2),Ne=Ye[0],ot=Ye[1];Se.useEffect(function(){return ye.current=!1,function(){ye.current=!0}},[]);function ct(_e,Me){Me&&ye.current||ot(_e)}return[Ne,ct]}function He(Ze){return Ze!==void 0}function be(Ze,ye){var Ee=ye||{},Ye=Ee.defaultValue,Ne=Ee.value,ot=Ee.onChange,ct=Ee.postState,_e=qe(function(){return He(Ne)?Ne:He(Ye)?typeof Ye=="function"?Ye():Ye:typeof Ze=="function"?Ze():Ze}),Me=(0,Te.Z)(_e,2),pt=Me[0],$e=Me[1],ft=Ne!==void 0?Ne:pt,We=ct?ct(ft):ft,gt=pe(ot),kt=qe([ft]),xt=(0,Te.Z)(kt,2),et=xt[0],Fe=xt[1];Ue(function(){var qt=et[0];pt!==qt&>(pt,qt)},[et]),Ue(function(){He(Ne)||$e(Ne)},[Ne]);var Dt=pe(function(qt,Xt){$e(qt,Xt),Fe([ft],Xt)});return[We,Dt]}var Qe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],ht=(0,Se.forwardRef)(function(Ze,ye){var Ee,Ye=Ze.prefixCls,Ne=Ye===void 0?"rc-checkbox":Ye,ot=Ze.className,ct=Ze.style,_e=Ze.checked,Me=Ze.disabled,pt=Ze.defaultChecked,$e=pt===void 0?!1:pt,ft=Ze.type,We=ft===void 0?"checkbox":ft,gt=Ze.title,kt=Ze.onChange,xt=(0,xe.Z)(Ze,Qe),et=(0,Se.useRef)(null),Fe=be($e,{value:_e}),Dt=(0,Te.Z)(Fe,2),qt=Dt[0],Xt=Dt[1];(0,Se.useImperativeHandle)(ye,function(){return{focus:function(){var Vn;(Vn=et.current)===null||Vn===void 0||Vn.focus()},blur:function(){var Vn;(Vn=et.current)===null||Vn===void 0||Vn.blur()},input:et.current}});var Et=de()(Ne,ot,(Ee={},(0,Ie.Z)(Ee,"".concat(Ne,"-checked"),qt),(0,Ie.Z)(Ee,"".concat(Ne,"-disabled"),Me),Ee)),zt=function(Vn){Me||("checked"in Ze||Xt(Vn.target.checked),kt==null||kt({target:(0,fe.Z)((0,fe.Z)({},Ze),{},{type:We,checked:Vn.target.checked}),stopPropagation:function(){Vn.stopPropagation()},preventDefault:function(){Vn.preventDefault()},nativeEvent:Vn.nativeEvent}))};return Se.createElement("span",{className:Et,title:gt,style:ct},Se.createElement("input",(0,E.Z)({},xt,{className:"".concat(Ne,"-input"),ref:et,onChange:zt,disabled:Me,checked:!!qt,type:We})),Se.createElement("span",{className:"".concat(Ne,"-inner")}))}),Je=ht},26819:function(In,Ut){"use strict";var te;var E=typeof Symbol=="function"&&Symbol.for,fe=E?Symbol.for("react.element"):60103,Ie=E?Symbol.for("react.portal"):60106,Te=E?Symbol.for("react.fragment"):60107,xe=E?Symbol.for("react.strict_mode"):60108,Be=E?Symbol.for("react.profiler"):60114,de=E?Symbol.for("react.provider"):60109,Se=E?Symbol.for("react.context"):60110,pe=E?Symbol.for("react.async_mode"):60111,De=E?Symbol.for("react.concurrent_mode"):60111,Xe=E?Symbol.for("react.forward_ref"):60112,Pe=E?Symbol.for("react.suspense"):60113,Ue=E?Symbol.for("react.suspense_list"):60120,rt=E?Symbol.for("react.memo"):60115,qe=E?Symbol.for("react.lazy"):60116,He=E?Symbol.for("react.block"):60121,be=E?Symbol.for("react.fundamental"):60117,Qe=E?Symbol.for("react.responder"):60118,ht=E?Symbol.for("react.scope"):60119;function Je(ye){if(typeof ye=="object"&&ye!==null){var Ee=ye.$$typeof;switch(Ee){case fe:switch(ye=ye.type,ye){case pe:case De:case Te:case Be:case xe:case Pe:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case Se:case Xe:case qe:case rt:case de:return ye;default:return Ee}}case Ie:return Ee}}}function Ze(ye){return Je(ye)===De}te=pe,te=De,te=Se,te=de,te=fe,te=Xe,te=Te,te=qe,te=rt,te=Ie,te=Be,te=xe,te=Pe,te=function(ye){return Ze(ye)||Je(ye)===pe},te=Ze,te=function(ye){return Je(ye)===Se},te=function(ye){return Je(ye)===de},te=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===fe},te=function(ye){return Je(ye)===Xe},te=function(ye){return Je(ye)===Te},te=function(ye){return Je(ye)===qe},Ut.isMemo=function(ye){return Je(ye)===rt},te=function(ye){return Je(ye)===Ie},te=function(ye){return Je(ye)===Be},te=function(ye){return Je(ye)===xe},te=function(ye){return Je(ye)===Pe},te=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Te||ye===De||ye===Be||ye===xe||ye===Pe||ye===Ue||typeof ye=="object"&&ye!==null&&(ye.$$typeof===qe||ye.$$typeof===rt||ye.$$typeof===de||ye.$$typeof===Se||ye.$$typeof===Xe||ye.$$typeof===be||ye.$$typeof===Qe||ye.$$typeof===ht||ye.$$typeof===He)},te=Je},18459:function(In,Ut,te){"use strict";In.exports=te(26819)},16651:function(In,Ut){"use strict";var te;var E=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Ie=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Be=Symbol.for("react.provider"),de=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),qe;qe=Symbol.for("react.module.reference");function He(be){if(typeof be=="object"&&be!==null){var Qe=be.$$typeof;switch(Qe){case E:switch(be=be.type,be){case Ie:case xe:case Te:case De:case Xe:return be;default:switch(be=be&&be.$$typeof,be){case Se:case de:case pe:case Ue:case Pe:case Be:return be;default:return Qe}}case fe:return Qe}}}te=de,te=Be,te=E,te=pe,te=Ie,te=Ue,te=Pe,te=fe,te=xe,te=Te,te=De,te=Xe,te=function(){return!1},te=function(){return!1},te=function(be){return He(be)===de},te=function(be){return He(be)===Be},te=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===E},te=function(be){return He(be)===pe},te=function(be){return He(be)===Ie},te=function(be){return He(be)===Ue},te=function(be){return He(be)===Pe},te=function(be){return He(be)===fe},te=function(be){return He(be)===xe},te=function(be){return He(be)===Te},te=function(be){return He(be)===De},te=function(be){return He(be)===Xe},te=function(be){return typeof be=="string"||typeof be=="function"||be===Ie||be===xe||be===Te||be===De||be===Xe||be===rt||typeof be=="object"&&be!==null&&(be.$$typeof===Ue||be.$$typeof===Pe||be.$$typeof===Be||be.$$typeof===de||be.$$typeof===pe||be.$$typeof===qe||be.getModuleId!==void 0)},te=He},33993:function(In,Ut,te){"use strict";te(16651)},82523:function(In,Ut){"use strict";var te;var E=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Ie=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Be=Symbol.for("react.provider"),de=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),qe;qe=Symbol.for("react.module.reference");function He(be){if(typeof be=="object"&&be!==null){var Qe=be.$$typeof;switch(Qe){case E:switch(be=be.type,be){case Ie:case xe:case Te:case De:case Xe:return be;default:switch(be=be&&be.$$typeof,be){case Se:case de:case pe:case Ue:case Pe:case Be:return be;default:return Qe}}case fe:return Qe}}}te=de,te=Be,te=E,te=pe,te=Ie,te=Ue,te=Pe,te=fe,te=xe,te=Te,te=De,te=Xe,te=function(){return!1},te=function(){return!1},te=function(be){return He(be)===de},te=function(be){return He(be)===Be},te=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===E},te=function(be){return He(be)===pe},te=function(be){return He(be)===Ie},te=function(be){return He(be)===Ue},te=function(be){return He(be)===Pe},te=function(be){return He(be)===fe},te=function(be){return He(be)===xe},te=function(be){return He(be)===Te},te=function(be){return He(be)===De},te=function(be){return He(be)===Xe},te=function(be){return typeof be=="string"||typeof be=="function"||be===Ie||be===xe||be===Te||be===De||be===Xe||be===rt||typeof be=="object"&&be!==null&&(be.$$typeof===Ue||be.$$typeof===Pe||be.$$typeof===Be||be.$$typeof===de||be.$$typeof===pe||be.$$typeof===qe||be.getModuleId!==void 0)},te=He},27183:function(In,Ut,te){"use strict";te(82523)},67656:function(In,Ut,te){"use strict";te.r(Ut),te.d(Ut,{BaseInput:function(){return De},default:function(){return ht}});var E=te(87462),fe=te(1413),Ie=te(4942),Te=te(71002),xe=te(94184),Be=te.n(xe),de=te(67294),Se=te(87887),pe=function(Ze){var ye,Ee,Ye=Ze.inputElement,Ne=Ze.prefixCls,ot=Ze.prefix,ct=Ze.suffix,_e=Ze.addonBefore,Me=Ze.addonAfter,pt=Ze.className,$e=Ze.style,ft=Ze.disabled,We=Ze.readOnly,gt=Ze.focused,kt=Ze.triggerFocus,xt=Ze.allowClear,et=Ze.value,Fe=Ze.handleReset,Dt=Ze.hidden,qt=Ze.classes,Xt=Ze.classNames,Et=Ze.dataAttrs,zt=Ze.styles,Yt=Ze.components,Vn=(Yt==null?void 0:Yt.affixWrapper)||"span",Pn=(Yt==null?void 0:Yt.groupWrapper)||"span",_t=(Yt==null?void 0:Yt.wrapper)||"span",pn=(Yt==null?void 0:Yt.groupAddon)||"span",sr=(0,de.useRef)(null),Tn=function(cn){var wn;(wn=sr.current)!==null&&wn!==void 0&&wn.contains(cn.target)&&(kt==null||kt())},Oe=function(){var cn;if(!xt)return null;var wn=!ft&&!We&&et,Tt="".concat(Ne,"-clear-icon"),nn=(0,Te.Z)(xt)==="object"&&xt!==null&&xt!==void 0&&xt.clearIcon?xt.clearIcon:"\u2716";return de.createElement("span",{onClick:Fe,onMouseDown:function(sn){return sn.preventDefault()},className:Be()(Tt,(cn={},(0,Ie.Z)(cn,"".concat(Tt,"-hidden"),!wn),(0,Ie.Z)(cn,"".concat(Tt,"-has-suffix"),!!ct),cn)),role:"button",tabIndex:-1},nn)},me=(0,de.cloneElement)(Ye,{value:et,hidden:Dt,className:Be()((ye=Ye.props)===null||ye===void 0?void 0:ye.className,!(0,Se.X3)(Ze)&&!(0,Se.He)(Ze)&&pt)||null,style:(0,fe.Z)((0,fe.Z)({},(Ee=Ye.props)===null||Ee===void 0?void 0:Ee.style),!(0,Se.X3)(Ze)&&!(0,Se.He)(Ze)?$e:{})});if((0,Se.X3)(Ze)){var he,ge="".concat(Ne,"-affix-wrapper"),ve=Be()(ge,(he={},(0,Ie.Z)(he,"".concat(ge,"-disabled"),ft),(0,Ie.Z)(he,"".concat(ge,"-focused"),gt),(0,Ie.Z)(he,"".concat(ge,"-readonly"),We),(0,Ie.Z)(he,"".concat(ge,"-input-with-clear-btn"),ct&&xt&&et),he),!(0,Se.He)(Ze)&&pt,qt==null?void 0:qt.affixWrapper,Xt==null?void 0:Xt.affixWrapper),se=(ct||xt)&&de.createElement("span",{className:Be()("".concat(Ne,"-suffix"),Xt==null?void 0:Xt.suffix),style:zt==null?void 0:zt.suffix},Oe(),ct);me=de.createElement(Vn,(0,E.Z)({className:ve,style:(0,fe.Z)((0,fe.Z)({},(0,Se.He)(Ze)?void 0:$e),zt==null?void 0:zt.affixWrapper),hidden:!(0,Se.He)(Ze)&&Dt,onClick:Tn},Et==null?void 0:Et.affixWrapper,{ref:sr}),ot&&de.createElement("span",{className:Be()("".concat(Ne,"-prefix"),Xt==null?void 0:Xt.prefix),style:zt==null?void 0:zt.prefix},ot),(0,de.cloneElement)(Ye,{value:et,hidden:null}),se)}if((0,Se.He)(Ze)){var Ke="".concat(Ne,"-group"),bt="".concat(Ke,"-addon"),Wt=Be()("".concat(Ne,"-wrapper"),Ke,qt==null?void 0:qt.wrapper),yn=Be()("".concat(Ne,"-group-wrapper"),pt,qt==null?void 0:qt.group);return de.createElement(Pn,{className:yn,style:$e,hidden:Dt},de.createElement(_t,{className:Wt},_e&&de.createElement(pn,{className:bt},_e),(0,de.cloneElement)(me,{hidden:null}),Me&&de.createElement(pn,{className:bt},Me)))}return me},De=pe,Xe=te(74902),Pe=te(97685),Ue=te(45987),rt=te(21770),qe=te(98423),He=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],be=(0,de.forwardRef)(function(Je,Ze){var ye=Je.autoComplete,Ee=Je.onChange,Ye=Je.onFocus,Ne=Je.onBlur,ot=Je.onPressEnter,ct=Je.onKeyDown,_e=Je.prefixCls,Me=_e===void 0?"rc-input":_e,pt=Je.disabled,$e=Je.htmlSize,ft=Je.className,We=Je.maxLength,gt=Je.suffix,kt=Je.showCount,xt=Je.type,et=xt===void 0?"text":xt,Fe=Je.classes,Dt=Je.classNames,qt=Je.styles,Xt=(0,Ue.Z)(Je,He),Et=(0,rt.Z)(Je.defaultValue,{value:Je.value}),zt=(0,Pe.Z)(Et,2),Yt=zt[0],Vn=zt[1],Pn=(0,de.useState)(!1),_t=(0,Pe.Z)(Pn,2),pn=_t[0],sr=_t[1],Tn=(0,de.useRef)(null),Oe=function(yn){Tn.current&&(0,Se.nH)(Tn.current,yn)};(0,de.useImperativeHandle)(Ze,function(){return{focus:Oe,blur:function(){var yn;(yn=Tn.current)===null||yn===void 0||yn.blur()},setSelectionRange:function(yn,bn,cn){var wn;(wn=Tn.current)===null||wn===void 0||wn.setSelectionRange(yn,bn,cn)},select:function(){var yn;(yn=Tn.current)===null||yn===void 0||yn.select()},input:Tn.current}}),(0,de.useEffect)(function(){sr(function(Wt){return Wt&&pt?!1:Wt})},[pt]);var me=function(yn){Je.value===void 0&&Vn(yn.target.value),Tn.current&&(0,Se.rJ)(Tn.current,yn,Ee)},he=function(yn){ot&&yn.key==="Enter"&&ot(yn),ct==null||ct(yn)},ge=function(yn){sr(!0),Ye==null||Ye(yn)},ve=function(yn){sr(!1),Ne==null||Ne(yn)},se=function(yn){Vn(""),Oe(),Tn.current&&(0,Se.rJ)(Tn.current,yn,Ee)},Ke=function(){var yn=(0,qe.Z)(Je,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return de.createElement("input",(0,E.Z)({autoComplete:ye},yn,{onChange:me,onFocus:ge,onBlur:ve,onKeyDown:he,className:Be()(Me,(0,Ie.Z)({},"".concat(Me,"-disabled"),pt),Dt==null?void 0:Dt.input),style:qt==null?void 0:qt.input,ref:Tn,size:$e,type:et}))},bt=function(){var yn=Number(We)>0;if(gt||kt){var bn=(0,Se.D7)(Yt),cn=(0,Xe.Z)(bn).length,wn=(0,Te.Z)(kt)==="object"?kt.formatter({value:bn,count:cn,maxLength:We}):"".concat(cn).concat(yn?" / ".concat(We):"");return de.createElement(de.Fragment,null,!!kt&&de.createElement("span",{className:Be()("".concat(Me,"-show-count-suffix"),(0,Ie.Z)({},"".concat(Me,"-show-count-has-suffix"),!!gt),Dt==null?void 0:Dt.count),style:(0,fe.Z)({},qt==null?void 0:qt.count)},wn),gt)}return null};return de.createElement(De,(0,E.Z)({},Xt,{prefixCls:Me,className:ft,inputElement:Ke(),handleReset:se,value:(0,Se.D7)(Yt),focused:pn,triggerFocus:Oe,suffix:bt(),disabled:pt,classes:Fe,classNames:Dt,styles:qt}))}),Qe=be,ht=Qe},87887:function(In,Ut,te){"use strict";te.d(Ut,{D7:function(){return xe},He:function(){return E},X3:function(){return fe},nH:function(){return Te},rJ:function(){return Ie}});function E(Be){return!!(Be.addonBefore||Be.addonAfter)}function fe(Be){return!!(Be.prefix||Be.suffix||Be.allowClear)}function Ie(Be,de,Se,pe){if(Se){var De=de;if(de.type==="click"){var Xe=Be.cloneNode(!0);De=Object.create(de,{target:{value:Xe},currentTarget:{value:Xe}}),Xe.value="",Se(De);return}if(pe!==void 0){De=Object.create(de,{target:{value:Be},currentTarget:{value:Be}}),Be.value=pe,Se(De);return}Se(De)}}function Te(Be,de){if(Be){Be.focus(de);var Se=de||{},pe=Se.cursor;if(pe){var De=Be.value.length;switch(pe){case"start":Be.setSelectionRange(0,0);break;case"end":Be.setSelectionRange(De,De);break;default:Be.setSelectionRange(0,De)}}}}function xe(Be){return typeof Be=="undefined"||Be===null?"":String(Be)}},78595:function(In,Ut,te){"use strict";te.d(Ut,{iz:function(){return $a},ck:function(){return zo},BW:function(){return Ya},sN:function(){return zo},Wd:function(){return Ir},ZP:function(){return it},Xl:function(){return wn}});var E=te(87462),fe=te(4942),Ie=te(1413),Te=te(74902),xe=te(97685),Be=te(45987),de=te(94184),Se=te.n(de),pe=te(67294),De=te(48555);function Xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Pe=Xe()?pe.useLayoutEffect:pe.useEffect,Ue=function(yt,wt){var Ft=pe.useRef(!0);Pe(function(){return yt(Ft.current)},wt),Pe(function(){return Ft.current=!1,function(){Ft.current=!0}},[])},rt=function(yt,wt){Ue(function(Ft){if(!Ft)return yt()},wt)},qe=Ue,He=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],be=void 0;function Qe(st,yt){var wt=st.prefixCls,Ft=st.invalidate,Nt=st.item,gn=st.renderItem,Rn=st.responsive,Nr=st.responsiveDisabled,Wr=st.registerSize,Rr=st.itemKey,Un=st.className,pr=st.style,Jn=st.children,_r=st.display,yi=st.order,Yr=st.component,Xr=Yr===void 0?"div":Yr,ti=(0,Be.Z)(st,He),fi=Rn&&!_r;function Ci(mr){Wr(Rr,mr)}pe.useEffect(function(){return function(){Ci(null)}},[]);var At=gn&&Nt!==be?gn(Nt):Jn,vt;Ft||(vt={opacity:fi?0:1,height:fi?0:be,overflowY:fi?"hidden":be,order:Rn?yi:be,pointerEvents:fi?"none":be,position:fi?"absolute":be});var On={};fi&&(On["aria-hidden"]=!0);var Cn=pe.createElement(Xr,(0,E.Z)({className:Se()(!Ft&&wt,Un),style:(0,Ie.Z)((0,Ie.Z)({},vt),pr)},On,ti,{ref:yt}),At);return Rn&&(Cn=pe.createElement(De.Z,{onResize:function(Zr){var Zt=Zr.offsetWidth;Ci(Zt)},disabled:Nr},Cn)),Cn}var ht=pe.forwardRef(Qe);ht.displayName="Item";var Je=ht;function Ze(st){var yt=pe.useRef();yt.current=st;var wt=pe.useCallback(function(){for(var Ft,Nt=arguments.length,gn=new Array(Nt),Rn=0;Rn<Nt;Rn++)gn[Rn]=arguments[Rn];return(Ft=yt.current)===null||Ft===void 0?void 0:Ft.call.apply(Ft,[yt].concat(gn))},[]);return wt}var ye=te(73935),Ee=function(yt){return+setTimeout(yt,16)},Ye=function(yt){return clearTimeout(yt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ee=function(yt){return window.requestAnimationFrame(yt)},Ye=function(yt){return window.cancelAnimationFrame(yt)});var Ne=0,ot=new Map;function ct(st){ot.delete(st)}var _e=function(yt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ne+=1;var Ft=Ne;function Nt(gn){if(gn===0)ct(Ft),yt();else{var Rn=Ee(function(){Nt(gn-1)});ot.set(Ft,Rn)}}return Nt(wt),Ft};_e.cancel=function(st){var yt=ot.get(st);return ct(yt),Ye(yt)};var Me=_e;function pt(st){if(typeof MessageChannel=="undefined")Me(st);else{var yt=new MessageChannel;yt.port1.onmessage=function(){return st()},yt.port2.postMessage(void 0)}}function $e(){var st=pe.useRef(null),yt=function(Ft){st.current||(st.current=[],pt(function(){(0,ye.unstable_batchedUpdates)(function(){st.current.forEach(function(Nt){Nt()}),st.current=null})})),st.current.push(Ft)};return yt}function ft(st,yt){var wt=pe.useState(yt),Ft=(0,xe.Z)(wt,2),Nt=Ft[0],gn=Ft[1],Rn=Ze(function(Nr){st(function(){gn(Nr)})});return[Nt,Rn]}var We=pe.createContext(null),gt=["component"],kt=["className"],xt=["className"],et=function(yt,wt){var Ft=pe.useContext(We);if(!Ft){var Nt=yt.component,gn=Nt===void 0?"div":Nt,Rn=(0,Be.Z)(yt,gt);return pe.createElement(gn,(0,E.Z)({},Rn,{ref:wt}))}var Nr=Ft.className,Wr=(0,Be.Z)(Ft,kt),Rr=yt.className,Un=(0,Be.Z)(yt,xt);return pe.createElement(We.Provider,{value:null},pe.createElement(Je,(0,E.Z)({ref:wt,className:Se()(Nr,Rr)},Wr,Un)))},Fe=pe.forwardRef(et);Fe.displayName="RawItem";var Dt=Fe,qt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Xt="responsive",Et="invalidate";function zt(st){return"+ ".concat(st.length," ...")}function Yt(st,yt){var wt=st.prefixCls,Ft=wt===void 0?"rc-overflow":wt,Nt=st.data,gn=Nt===void 0?[]:Nt,Rn=st.renderItem,Nr=st.renderRawItem,Wr=st.itemKey,Rr=st.itemWidth,Un=Rr===void 0?10:Rr,pr=st.ssr,Jn=st.style,_r=st.className,yi=st.maxCount,Yr=st.renderRest,Xr=st.renderRawRest,ti=st.suffix,fi=st.component,Ci=fi===void 0?"div":fi,At=st.itemComponent,vt=st.onVisibleChange,On=(0,Be.Z)(st,qt),Cn=pr==="full",mr=$e(),Zr=ft(mr,null),Zt=(0,xe.Z)(Zr,2),Ht=Zt[0],tn=Zt[1],xn=Ht||0,fr=ft(mr,new Map),wr=(0,xe.Z)(fr,2),lr=wr[0],kr=wr[1],di=ft(mr,0),Ni=(0,xe.Z)(di,2),Si=Ni[0],Jr=Ni[1],Bi=ft(mr,0),Wi=(0,xe.Z)(Bi,2),da=Wi[0],Vi=Wi[1],Ei=ft(mr,0),ga=(0,xe.Z)(Ei,2),Ca=ga[0],fo=ga[1],Bo=(0,pe.useState)(null),xo=(0,xe.Z)(Bo,2),Jt=xo[0],rn=xo[1],kn=(0,pe.useState)(null),zr=(0,xe.Z)(kn,2),Mr=zr[0],tr=zr[1],yr=pe.useMemo(function(){return Mr===null&&Cn?Number.MAX_SAFE_INTEGER:Mr||0},[Mr,Ht]),Ln=(0,pe.useState)(!1),Xn=(0,xe.Z)(Ln,2),qr=Xn[0],Pi=Xn[1],Da="".concat(Ft,"-item"),la=Math.max(Si,da),La=yi===Xt,mo=gn.length&&La,Ui=yi===Et,pi=mo||typeof yi=="number"&&gn.length>yi,ri=(0,pe.useMemo)(function(){var dr=gn;return mo?Ht===null&&Cn?dr=gn:dr=gn.slice(0,Math.min(gn.length,xn/Un)):typeof yi=="number"&&(dr=gn.slice(0,yi)),dr},[gn,Un,Ht,yi,mo]),Xa=(0,pe.useMemo)(function(){return mo?gn.slice(yr+1):gn.slice(ri.length)},[gn,ri,mo,yr]),ya=(0,pe.useCallback)(function(dr,ii){var si;return typeof Wr=="function"?Wr(dr):(si=Wr&&(dr==null?void 0:dr[Wr]))!==null&&si!==void 0?si:ii},[Wr]),to=(0,pe.useCallback)(Rn||function(dr){return dr},[Rn]);function Ba(dr,ii,si){Mr===dr&&(ii===void 0||ii===Jt)||(tr(dr),si||(Pi(dr<gn.length-1),vt==null||vt(dr)),ii!==void 0&&rn(ii))}function Ua(dr,ii){tn(ii.clientWidth)}function ko(dr,ii){kr(function(si){var ki=new Map(si);return ii===null?ki.delete(dr):ki.set(dr,ii),ki})}function Va(dr,ii){Vi(ii),Jr(da)}function qi(dr,ii){fo(ii)}function So(dr){return lr.get(ya(ri[dr],dr))}qe(function(){if(xn&&typeof la=="number"&&ri){var dr=Ca,ii=ri.length,si=ii-1;if(!ii){Ba(0,null);return}for(var ki=0;ki<ii;ki+=1){var Yi=So(ki);if(Cn&&(Yi=Yi||0),Yi===void 0){Ba(ki-1,void 0,!0);break}if(dr+=Yi,si===0&&dr<=xn||ki===si-1&&dr+So(si)<=xn){Ba(si,null);break}else if(dr+la>xn){Ba(ki-1,dr-Yi-Ca+da);break}}ti&&So(0)+Ca>xn&&rn(null)}},[xn,lr,da,Ca,ya,ri]);var Ro=qr&&!!Xa.length,fl={};Jt!==null&&mo&&(fl={position:"absolute",left:Jt,top:0});var Al={prefixCls:Da,responsive:mo,component:At,invalidate:Ui},jt=Nr?function(dr,ii){var si=ya(dr,ii);return pe.createElement(We.Provider,{key:si,value:(0,Ie.Z)((0,Ie.Z)({},Al),{},{order:ii,item:dr,itemKey:si,registerSize:ko,display:ii<=yr})},Nr(dr,ii))}:function(dr,ii){var si=ya(dr,ii);return pe.createElement(Je,(0,E.Z)({},Al,{order:ii,key:si,item:dr,renderItem:to,itemKey:si,registerSize:ko,display:ii<=yr}))},dn,Mn={order:Ro?yr:Number.MAX_SAFE_INTEGER,className:"".concat(Da,"-rest"),registerSize:Va,display:Ro};if(Xr)Xr&&(dn=pe.createElement(We.Provider,{value:(0,Ie.Z)((0,Ie.Z)({},Al),Mn)},Xr(Xa)));else{var ur=Yr||zt;dn=pe.createElement(Je,(0,E.Z)({},Al,Mn),typeof ur=="function"?ur(Xa):ur)}var Qi=pe.createElement(Ci,(0,E.Z)({className:Se()(!Ui&&Ft,_r),style:Jn,ref:yt},On),ri.map(jt),pi?dn:null,ti&&pe.createElement(Je,(0,E.Z)({},Al,{responsive:La,responsiveDisabled:!mo,order:yr,className:"".concat(Da,"-suffix"),registerSize:qi,display:!0,style:fl}),ti));return La&&(Qi=pe.createElement(De.Z,{onResize:Ua,disabled:!mo},Qi)),Qi}var Vn=pe.forwardRef(Yt);Vn.displayName="Overflow",Vn.Item=Dt,Vn.RESPONSIVE=Xt,Vn.INVALIDATE=Et;var Pn=Vn,_t=Pn,pn=te(21770),sr=te(80334),Tn=te(91881),Oe=pe.createContext(null);function me(st,yt){return st===void 0?null:"".concat(st,"-").concat(yt)}function he(st){var yt=pe.useContext(Oe);return me(yt,st)}var ge=te(56982),ve=["children","locked"],se=pe.createContext(null);function Ke(st,yt){var wt=(0,Ie.Z)({},st);return Object.keys(yt).forEach(function(Ft){var Nt=yt[Ft];Nt!==void 0&&(wt[Ft]=Nt)}),wt}function bt(st){var yt=st.children,wt=st.locked,Ft=(0,Be.Z)(st,ve),Nt=pe.useContext(se),gn=(0,ge.Z)(function(){return Ke(Nt,Ft)},[Nt,Ft],function(Rn,Nr){return!wt&&(Rn[0]!==Nr[0]||!(0,Tn.Z)(Rn[1],Nr[1],!0))});return pe.createElement(se.Provider,{value:gn},yt)}var Wt=[],yn=pe.createContext(null);function bn(){return pe.useContext(yn)}var cn=pe.createContext(Wt);function wn(st){var yt=pe.useContext(cn);return pe.useMemo(function(){return st!==void 0?[].concat((0,Te.Z)(yt),[st]):yt},[yt,st])}var Tt=pe.createContext(null),nn=pe.createContext({}),fn=nn,sn=te(15105),an=te(75164),xr=function(st){if(!st)return!1;if(st instanceof Element){if(st.offsetParent)return!0;if(st.getBBox){var yt=st.getBBox(),wt=yt.width,Ft=yt.height;if(wt||Ft)return!0}if(st.getBoundingClientRect){var Nt=st.getBoundingClientRect(),gn=Nt.width,Rn=Nt.height;if(gn||Rn)return!0}}return!1};function Lt(st){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(xr(st)){var wt=st.nodeName.toLowerCase(),Ft=["input","select","textarea","button"].includes(wt)||st.isContentEditable||wt==="a"&&!!st.getAttribute("href"),Nt=st.getAttribute("tabindex"),gn=Number(Nt),Rn=null;return Nt&&!Number.isNaN(gn)?Rn=gn:Ft&&Rn===null&&(Rn=0),Ft&&st.disabled&&(Rn=null),Rn!==null&&(Rn>=0||yt&&Rn<0)}return!1}function Vt(st){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wt=(0,Te.Z)(st.querySelectorAll("*")).filter(function(Ft){return Lt(Ft,yt)});return Lt(st,yt)&&wt.unshift(st),wt}var cr=null;function En(){cr=document.activeElement}function en(){cr=null}function Fr(){if(cr)try{cr.focus()}catch(st){}}function Ur(st,yt){if(yt.keyCode===9){var wt=Vt(st),Ft=wt[yt.shiftKey?0:wt.length-1],Nt=Ft===document.activeElement||st===document.activeElement;if(Nt){var gn=wt[yt.shiftKey?wt.length-1:0];gn.focus(),yt.preventDefault()}}}var ai=sn.Z.LEFT,ei=sn.Z.RIGHT,Mi=sn.Z.UP,ci=sn.Z.DOWN,Qn=sn.Z.ENTER,Or=sn.Z.ESC,Hr=sn.Z.HOME,vi=sn.Z.END,Zi=[Mi,ci,ai,ei];function $t(st,yt,wt,Ft){var Nt,gn,Rn,Nr,Wr="prev",Rr="next",Un="children",pr="parent";if(st==="inline"&&Ft===Qn)return{inlineTrigger:!0};var Jn=(Nt={},(0,fe.Z)(Nt,Mi,Wr),(0,fe.Z)(Nt,ci,Rr),Nt),_r=(gn={},(0,fe.Z)(gn,ai,wt?Rr:Wr),(0,fe.Z)(gn,ei,wt?Wr:Rr),(0,fe.Z)(gn,ci,Un),(0,fe.Z)(gn,Qn,Un),gn),yi=(Rn={},(0,fe.Z)(Rn,Mi,Wr),(0,fe.Z)(Rn,ci,Rr),(0,fe.Z)(Rn,Qn,Un),(0,fe.Z)(Rn,Or,pr),(0,fe.Z)(Rn,ai,wt?Un:pr),(0,fe.Z)(Rn,ei,wt?pr:Un),Rn),Yr={inline:Jn,horizontal:_r,vertical:yi,inlineSub:Jn,horizontalSub:yi,verticalSub:yi},Xr=(Nr=Yr["".concat(st).concat(yt?"":"Sub")])===null||Nr===void 0?void 0:Nr[Ft];switch(Xr){case Wr:return{offset:-1,sibling:!0};case Rr:return{offset:1,sibling:!0};case pr:return{offset:-1,sibling:!1};case Un:return{offset:1,sibling:!1};default:return null}}function $n(st){for(var yt=st;yt;){if(yt.getAttribute("data-menu-list"))return yt;yt=yt.parentElement}return null}function mn(st,yt){for(var wt=st||document.activeElement;wt;){if(yt.has(wt))return wt;wt=wt.parentElement}return null}function Yn(st,yt){var wt=Vt(st,!0);return wt.filter(function(Ft){return yt.has(Ft)})}function Dr(st,yt,wt){var Ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!st)return null;var Nt=Yn(st,yt),gn=Nt.length,Rn=Nt.findIndex(function(Nr){return wt===Nr});return Ft<0?Rn===-1?Rn=gn-1:Rn-=1:Ft>0&&(Rn+=1),Rn=(Rn+gn)%gn,Nt[Rn]}function hi(st,yt,wt,Ft,Nt,gn,Rn,Nr,Wr,Rr){var Un=pe.useRef(),pr=pe.useRef();pr.current=yt;var Jn=function(){an.Z.cancel(Un.current)};return pe.useEffect(function(){return function(){Jn()}},[]),function(_r){var yi=_r.which;if([].concat(Zi,[Qn,Or,Hr,vi]).includes(yi)){var Yr,Xr,ti,fi=function(){Yr=new Set,Xr=new Map,ti=new Map;var wr=gn();return wr.forEach(function(lr){var kr=document.querySelector("[data-menu-id='".concat(me(Ft,lr),"']"));kr&&(Yr.add(kr),ti.set(kr,lr),Xr.set(lr,kr))}),Yr};fi();var Ci=Xr.get(yt),At=mn(Ci,Yr),vt=ti.get(At),On=$t(st,Rn(vt,!0).length===1,wt,yi);if(!On&&yi!==Hr&&yi!==vi)return;(Zi.includes(yi)||[Hr,vi].includes(yi))&&_r.preventDefault();var Cn=function(wr){if(wr){var lr=wr,kr=wr.querySelector("a");kr!=null&&kr.getAttribute("href")&&(lr=kr);var di=ti.get(wr);Nr(di),Jn(),Un.current=(0,an.Z)(function(){pr.current===di&&lr.focus()})}};if([Hr,vi].includes(yi)||On.sibling||!At){var mr;!At||st==="inline"?mr=Nt.current:mr=$n(At);var Zr,Zt=Yn(mr,Yr);yi===Hr?Zr=Zt[0]:yi===vi?Zr=Zt[Zt.length-1]:Zr=Dr(mr,Yr,At,On.offset),Cn(Zr)}else if(On.inlineTrigger)Wr(vt);else if(On.offset>0)Wr(vt,!0),Jn(),Un.current=(0,an.Z)(function(){fi();var fr=At.getAttribute("aria-controls"),wr=document.getElementById(fr),lr=Dr(wr,Yr);Cn(lr)},5);else if(On.offset<0){var Ht=Rn(vt,!0),tn=Ht[Ht.length-2],xn=Xr.get(tn);Wr(tn,!1),Cn(xn)}}Rr==null||Rr(_r)}}function oi(st){Promise.resolve().then(st)}var Vr="__RC_UTIL_PATH_SPLIT__",Ct=function(yt){return yt.join(Vr)},hn=function(yt){return yt.split(Vr)},An="rc-menu-more";function jn(){var st=pe.useState({}),yt=(0,xe.Z)(st,2),wt=yt[1],Ft=(0,pe.useRef)(new Map),Nt=(0,pe.useRef)(new Map),gn=pe.useState([]),Rn=(0,xe.Z)(gn,2),Nr=Rn[0],Wr=Rn[1],Rr=(0,pe.useRef)(0),Un=(0,pe.useRef)(!1),pr=function(){Un.current||wt({})},Jn=(0,pe.useCallback)(function(Ci,At){var vt=Ct(At);Nt.current.set(vt,Ci),Ft.current.set(Ci,vt),Rr.current+=1;var On=Rr.current;oi(function(){On===Rr.current&&pr()})},[]),_r=(0,pe.useCallback)(function(Ci,At){var vt=Ct(At);Nt.current.delete(vt),Ft.current.delete(Ci)},[]),yi=(0,pe.useCallback)(function(Ci){Wr(Ci)},[]),Yr=(0,pe.useCallback)(function(Ci,At){var vt=Ft.current.get(Ci)||"",On=hn(vt);return At&&Nr.includes(On[0])&&On.unshift(An),On},[Nr]),Xr=(0,pe.useCallback)(function(Ci,At){return Ci.some(function(vt){var On=Yr(vt,!0);return On.includes(At)})},[Yr]),ti=function(){var At=(0,Te.Z)(Ft.current.keys());return Nr.length&&At.push(An),At},fi=(0,pe.useCallback)(function(Ci){var At="".concat(Ft.current.get(Ci)).concat(Vr),vt=new Set;return(0,Te.Z)(Nt.current.keys()).forEach(function(On){On.startsWith(At)&&vt.add(Nt.current.get(On))}),vt},[]);return pe.useEffect(function(){return function(){Un.current=!0}},[]),{registerPath:Jn,unregisterPath:_r,refreshOverflowKeys:yi,isSubPathKey:Xr,getKeyPath:Yr,getKeys:ti,getSubPathKeys:fi}}function Bt(st){var yt=pe.useRef(st);yt.current=st;var wt=pe.useCallback(function(){for(var Ft,Nt=arguments.length,gn=new Array(Nt),Rn=0;Rn<Nt;Rn++)gn[Rn]=arguments[Rn];return(Ft=yt.current)===null||Ft===void 0?void 0:Ft.call.apply(Ft,[yt].concat(gn))},[]);return st?wt:void 0}var on=Math.random().toFixed(5).toString().slice(2),Kn=0;function Dn(st){var yt=(0,pn.Z)(st,{value:st}),wt=(0,xe.Z)(yt,2),Ft=wt[0],Nt=wt[1];return pe.useEffect(function(){Kn+=1;var gn="".concat(on,"-").concat(Kn);Nt("rc-menu-uuid-".concat(gn))},[]),Ft}var rr=te(15671),er=te(43144),Gr=te(60136),ra=te(51630),Oi=te(98423),bi=te(42550);function Ji(st,yt,wt,Ft){var Nt=pe.useContext(se),gn=Nt.activeKey,Rn=Nt.onActive,Nr=Nt.onInactive,Wr={active:gn===st};return yt||(Wr.onMouseEnter=function(Rr){wt==null||wt({key:st,domEvent:Rr}),Rn(st)},Wr.onMouseLeave=function(Rr){Ft==null||Ft({key:st,domEvent:Rr}),Nr(st)}),Wr}function Ti(st){var yt=pe.useContext(se),wt=yt.mode,Ft=yt.rtl,Nt=yt.inlineIndent;if(wt!=="inline")return null;var gn=st;return Ft?{paddingRight:gn*Nt}:{paddingLeft:gn*Nt}}function ua(st){var yt=st.icon,wt=st.props,Ft=st.children,Nt;return yt===null||yt===!1?null:(typeof yt=="function"?Nt=pe.createElement(yt,(0,Ie.Z)({},wt)):typeof yt!="boolean"&&(Nt=yt),Nt||Ft||null)}var br=["item"];function Di(st){var yt=st.item,wt=(0,Be.Z)(st,br);return Object.defineProperty(wt,"item",{get:function(){return(0,sr.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),yt}}),wt}var ni=["title","attribute","elementRef"],No=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],xa=["active"],za=function(st){(0,Gr.Z)(wt,st);var yt=(0,ra.Z)(wt);function wt(){return(0,rr.Z)(this,wt),yt.apply(this,arguments)}return(0,er.Z)(wt,[{key:"render",value:function(){var Nt=this.props,gn=Nt.title,Rn=Nt.attribute,Nr=Nt.elementRef,Wr=(0,Be.Z)(Nt,ni),Rr=(0,Oi.Z)(Wr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,sr.ZP)(!Rn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),pe.createElement(_t.Item,(0,E.Z)({},Rn,{title:typeof gn=="string"?gn:void 0},Rr,{ref:Nr}))}}]),wt}(pe.Component),Lo=pe.forwardRef(function(st,yt){var wt,Ft=st.style,Nt=st.className,gn=st.eventKey,Rn=st.warnKey,Nr=st.disabled,Wr=st.itemIcon,Rr=st.children,Un=st.role,pr=st.onMouseEnter,Jn=st.onMouseLeave,_r=st.onClick,yi=st.onKeyDown,Yr=st.onFocus,Xr=(0,Be.Z)(st,No),ti=he(gn),fi=pe.useContext(se),Ci=fi.prefixCls,At=fi.onItemClick,vt=fi.disabled,On=fi.overflowDisabled,Cn=fi.itemIcon,mr=fi.selectedKeys,Zr=fi.onActive,Zt=pe.useContext(fn),Ht=Zt._internalRenderMenuItem,tn="".concat(Ci,"-item"),xn=pe.useRef(),fr=pe.useRef(),wr=vt||Nr,lr=(0,bi.x1)(yt,fr),kr=wn(gn),di=function(xo){return{key:gn,keyPath:(0,Te.Z)(kr).reverse(),item:xn.current,domEvent:xo}},Ni=Wr||Cn,Si=Ji(gn,wr,pr,Jn),Jr=Si.active,Bi=(0,Be.Z)(Si,xa),Wi=mr.includes(gn),da=Ti(kr.length),Vi=function(xo){if(!wr){var Jt=di(xo);_r==null||_r(Di(Jt)),At(Jt)}},Ei=function(xo){if(yi==null||yi(xo),xo.which===sn.Z.ENTER){var Jt=di(xo);_r==null||_r(Di(Jt)),At(Jt)}},ga=function(xo){Zr(gn),Yr==null||Yr(xo)},Ca={};st.role==="option"&&(Ca["aria-selected"]=Wi);var fo=pe.createElement(za,(0,E.Z)({ref:xn,elementRef:lr,role:Un===null?"none":Un||"menuitem",tabIndex:Nr?null:-1,"data-menu-id":On&&ti?null:ti},Xr,Bi,Ca,{component:"li","aria-disabled":Nr,style:(0,Ie.Z)((0,Ie.Z)({},da),Ft),className:Se()(tn,(wt={},(0,fe.Z)(wt,"".concat(tn,"-active"),Jr),(0,fe.Z)(wt,"".concat(tn,"-selected"),Wi),(0,fe.Z)(wt,"".concat(tn,"-disabled"),wr),wt),Nt),onClick:Vi,onKeyDown:Ei,onFocus:ga}),Rr,pe.createElement(ua,{props:(0,Ie.Z)((0,Ie.Z)({},st),{},{isSelected:Wi}),icon:Ni}));return Ht&&(fo=Ht(fo,st,{selected:Wi})),fo});function Ea(st,yt){var wt=st.eventKey,Ft=bn(),Nt=wn(wt);return pe.useEffect(function(){if(Ft)return Ft.registerPath(wt,Nt),function(){Ft.unregisterPath(wt,Nt)}},[Nt]),Ft?null:pe.createElement(Lo,(0,E.Z)({},st,{ref:yt}))}var zo=pe.forwardRef(Ea),gi=["className","children"],Cl=function(yt,wt){var Ft=yt.className,Nt=yt.children,gn=(0,Be.Z)(yt,gi),Rn=pe.useContext(se),Nr=Rn.prefixCls,Wr=Rn.mode,Rr=Rn.rtl;return pe.createElement("ul",(0,E.Z)({className:Se()(Nr,Rr&&"".concat(Nr,"-rtl"),"".concat(Nr,"-sub"),"".concat(Nr,"-").concat(Wr==="inline"?"inline":"vertical"),Ft),role:"menu"},gn,{"data-menu-list":!0,ref:wt}),Nt)},pl=pe.forwardRef(Cl);pl.displayName="SubMenuList";var jl=pl,Ko=te(50344);function Do(st,yt){return(0,Ko.Z)(st).map(function(wt,Ft){if(pe.isValidElement(wt)){var Nt,gn,Rn=wt.key,Nr=(Nt=(gn=wt.props)===null||gn===void 0?void 0:gn.eventKey)!==null&&Nt!==void 0?Nt:Rn,Wr=Nr==null;Wr&&(Nr="tmp_key-".concat([].concat((0,Te.Z)(yt),[Ft]).join("-")));var Rr={key:Nr,eventKey:Nr};return pe.cloneElement(wt,Rr)}return wt})}var Na=te(62709),ml={adjustX:1,adjustY:1},nl={topLeft:{points:["bl","tl"],overflow:ml},topRight:{points:["br","tr"],overflow:ml},bottomLeft:{points:["tl","bl"],overflow:ml},bottomRight:{points:["tr","br"],overflow:ml},leftTop:{points:["tr","tl"],overflow:ml},leftBottom:{points:["br","bl"],overflow:ml},rightTop:{points:["tl","tr"],overflow:ml},rightBottom:{points:["bl","br"],overflow:ml}},Sl={topLeft:{points:["bl","tl"],overflow:ml},topRight:{points:["br","tr"],overflow:ml},bottomLeft:{points:["tl","bl"],overflow:ml},bottomRight:{points:["tr","br"],overflow:ml},rightTop:{points:["tr","tl"],overflow:ml},rightBottom:{points:["br","bl"],overflow:ml},leftTop:{points:["tl","tr"],overflow:ml},leftBottom:{points:["bl","br"],overflow:ml}},Rl=null;function Ll(st,yt,wt){if(yt)return yt;if(wt)return wt[st]||wt.other}var wl={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Vl(st){var yt=st.prefixCls,wt=st.visible,Ft=st.children,Nt=st.popup,gn=st.popupStyle,Rn=st.popupClassName,Nr=st.popupOffset,Wr=st.disabled,Rr=st.mode,Un=st.onVisibleChange,pr=pe.useContext(se),Jn=pr.getPopupContainer,_r=pr.rtl,yi=pr.subMenuOpenDelay,Yr=pr.subMenuCloseDelay,Xr=pr.builtinPlacements,ti=pr.triggerSubMenuAction,fi=pr.forceSubMenuRender,Ci=pr.rootClassName,At=pr.motion,vt=pr.defaultMotions,On=pe.useState(!1),Cn=(0,xe.Z)(On,2),mr=Cn[0],Zr=Cn[1],Zt=_r?(0,Ie.Z)((0,Ie.Z)({},Sl),Xr):(0,Ie.Z)((0,Ie.Z)({},nl),Xr),Ht=wl[Rr],tn=Ll(Rr,At,vt),xn=pe.useRef(tn);Rr!=="inline"&&(xn.current=tn);var fr=(0,Ie.Z)((0,Ie.Z)({},xn.current),{},{leavedClassName:"".concat(yt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),wr=pe.useRef();return pe.useEffect(function(){return wr.current=(0,an.Z)(function(){Zr(wt)}),function(){an.Z.cancel(wr.current)}},[wt]),pe.createElement(Na.Z,{prefixCls:yt,popupClassName:Se()("".concat(yt,"-popup"),(0,fe.Z)({},"".concat(yt,"-rtl"),_r),Rn,Ci),stretch:Rr==="horizontal"?"minWidth":null,getPopupContainer:Jn,builtinPlacements:Zt,popupPlacement:Ht,popupVisible:mr,popup:Nt,popupStyle:gn,popupAlign:Nr&&{offset:Nr},action:Wr?[]:[ti],mouseEnterDelay:yi,mouseLeaveDelay:Yr,onPopupVisibleChange:Un,forceRender:fi,popupMotion:fr,fresh:!0},Ft)}var _l=te(62874);function Fl(st){var yt=st.id,wt=st.open,Ft=st.keyPath,Nt=st.children,gn="inline",Rn=pe.useContext(se),Nr=Rn.prefixCls,Wr=Rn.forceSubMenuRender,Rr=Rn.motion,Un=Rn.defaultMotions,pr=Rn.mode,Jn=pe.useRef(!1);Jn.current=pr===gn;var _r=pe.useState(!Jn.current),yi=(0,xe.Z)(_r,2),Yr=yi[0],Xr=yi[1],ti=Jn.current?wt:!1;pe.useEffect(function(){Jn.current&&Xr(!1)},[pr]);var fi=(0,Ie.Z)({},Ll(gn,Rr,Un));Ft.length>1&&(fi.motionAppear=!1);var Ci=fi.onVisibleChanged;return fi.onVisibleChanged=function(At){return!Jn.current&&!At&&Xr(!0),Ci==null?void 0:Ci(At)},Yr?null:pe.createElement(bt,{mode:gn,locked:!Jn.current},pe.createElement(_l.Z,(0,E.Z)({visible:ti},fi,{forceRender:Wr,removeOnLeave:!1,leavedClassName:"".concat(Nr,"-hidden")}),function(At){var vt=At.className,On=At.style;return pe.createElement(jl,{id:yt,className:vt,style:On},Nt)}))}var Vo=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Wn=["active"],Nn=function(yt){var wt,Ft=yt.style,Nt=yt.className,gn=yt.title,Rn=yt.eventKey,Nr=yt.warnKey,Wr=yt.disabled,Rr=yt.internalPopupClose,Un=yt.children,pr=yt.itemIcon,Jn=yt.expandIcon,_r=yt.popupClassName,yi=yt.popupOffset,Yr=yt.popupStyle,Xr=yt.onClick,ti=yt.onMouseEnter,fi=yt.onMouseLeave,Ci=yt.onTitleClick,At=yt.onTitleMouseEnter,vt=yt.onTitleMouseLeave,On=(0,Be.Z)(yt,Vo),Cn=he(Rn),mr=pe.useContext(se),Zr=mr.prefixCls,Zt=mr.mode,Ht=mr.openKeys,tn=mr.disabled,xn=mr.overflowDisabled,fr=mr.activeKey,wr=mr.selectedKeys,lr=mr.itemIcon,kr=mr.expandIcon,di=mr.onItemClick,Ni=mr.onOpenChange,Si=mr.onActive,Jr=pe.useContext(fn),Bi=Jr._internalRenderSubMenuItem,Wi=pe.useContext(Tt),da=Wi.isSubPathKey,Vi=wn(),Ei="".concat(Zr,"-submenu"),ga=tn||Wr,Ca=pe.useRef(),fo=pe.useRef(),Bo=pr!=null?pr:lr,xo=Jn!=null?Jn:kr,Jt=Ht.includes(Rn),rn=!xn&&Jt,kn=da(wr,Rn),zr=Ji(Rn,ga,At,vt),Mr=zr.active,tr=(0,Be.Z)(zr,Wn),yr=pe.useState(!1),Ln=(0,xe.Z)(yr,2),Xn=Ln[0],qr=Ln[1],Pi=function(qi){ga||qr(qi)},Da=function(qi){Pi(!0),ti==null||ti({key:Rn,domEvent:qi})},la=function(qi){Pi(!1),fi==null||fi({key:Rn,domEvent:qi})},La=pe.useMemo(function(){return Mr||(Zt!=="inline"?Xn||da([fr],Rn):!1)},[Zt,Mr,fr,Xn,Rn,da]),mo=Ti(Vi.length),Ui=function(qi){ga||(Ci==null||Ci({key:Rn,domEvent:qi}),Zt==="inline"&&Ni(Rn,!Jt))},pi=Bt(function(Va){Xr==null||Xr(Di(Va)),di(Va)}),ri=function(qi){Zt!=="inline"&&Ni(Rn,qi)},Xa=function(){Si(Rn)},ya=Cn&&"".concat(Cn,"-popup"),to=pe.createElement("div",(0,E.Z)({role:"menuitem",style:mo,className:"".concat(Ei,"-title"),tabIndex:ga?null:-1,ref:Ca,title:typeof gn=="string"?gn:null,"data-menu-id":xn&&Cn?null:Cn,"aria-expanded":rn,"aria-haspopup":!0,"aria-controls":ya,"aria-disabled":ga,onClick:Ui,onFocus:Xa},tr),gn,pe.createElement(ua,{icon:Zt!=="horizontal"?xo:void 0,props:(0,Ie.Z)((0,Ie.Z)({},yt),{},{isOpen:rn,isSubMenu:!0})},pe.createElement("i",{className:"".concat(Ei,"-arrow")}))),Ba=pe.useRef(Zt);if(Zt!=="inline"&&Vi.length>1?Ba.current="vertical":Ba.current=Zt,!xn){var Ua=Ba.current;to=pe.createElement(Vl,{mode:Ua,prefixCls:Ei,visible:!Rr&&rn&&Zt!=="inline",popupClassName:_r,popupOffset:yi,popupStyle:Yr,popup:pe.createElement(bt,{mode:Ua==="horizontal"?"vertical":Ua},pe.createElement(jl,{id:ya,ref:fo},Un)),disabled:ga,onVisibleChange:ri},to)}var ko=pe.createElement(_t.Item,(0,E.Z)({role:"none"},On,{component:"li",style:Ft,className:Se()(Ei,"".concat(Ei,"-").concat(Zt),Nt,(wt={},(0,fe.Z)(wt,"".concat(Ei,"-open"),rn),(0,fe.Z)(wt,"".concat(Ei,"-active"),La),(0,fe.Z)(wt,"".concat(Ei,"-selected"),kn),(0,fe.Z)(wt,"".concat(Ei,"-disabled"),ga),wt)),onMouseEnter:Da,onMouseLeave:la}),to,!xn&&pe.createElement(Fl,{id:ya,open:rn,keyPath:Vi},Un));return Bi&&(ko=Bi(ko,yt,{selected:kn,active:La,open:rn,disabled:ga})),pe.createElement(bt,{onItemClick:pi,mode:Zt==="horizontal"?"vertical":Zt,itemIcon:Bo,expandIcon:xo},ko)};function Ir(st){var yt=st.eventKey,wt=st.children,Ft=wn(yt),Nt=Do(wt,Ft),gn=bn();pe.useEffect(function(){if(gn)return gn.registerPath(yt,Ft),function(){gn.unregisterPath(yt,Ft)}},[Ft]);var Rn;return gn?Rn=Nt:Rn=pe.createElement(Nn,st,Nt),pe.createElement(cn.Provider,{value:Ft},Rn)}var Cr=te(71002),Ii=["className","title","eventKey","children"],Ma=["children"],Ka=function(yt){var wt=yt.className,Ft=yt.title,Nt=yt.eventKey,gn=yt.children,Rn=(0,Be.Z)(yt,Ii),Nr=pe.useContext(se),Wr=Nr.prefixCls,Rr="".concat(Wr,"-item-group");return pe.createElement("li",(0,E.Z)({role:"presentation"},Rn,{onClick:function(pr){return pr.stopPropagation()},className:Se()(Rr,wt)}),pe.createElement("div",{role:"presentation",className:"".concat(Rr,"-title"),title:typeof Ft=="string"?Ft:void 0},Ft),pe.createElement("ul",{role:"group",className:"".concat(Rr,"-list")},gn))};function Ya(st){var yt=st.children,wt=(0,Be.Z)(st,Ma),Ft=wn(wt.eventKey),Nt=Do(yt,Ft),gn=bn();return gn?Nt:pe.createElement(Ka,(0,Oi.Z)(wt,["warnKey"]),Nt)}function $a(st){var yt=st.className,wt=st.style,Ft=pe.useContext(se),Nt=Ft.prefixCls,gn=bn();return gn?null:pe.createElement("li",{role:"separator",className:Se()("".concat(Nt,"-item-divider"),yt),style:wt})}var Za=["label","children","key","type"];function Go(st){return(st||[]).map(function(yt,wt){if(yt&&(0,Cr.Z)(yt)==="object"){var Ft=yt,Nt=Ft.label,gn=Ft.children,Rn=Ft.key,Nr=Ft.type,Wr=(0,Be.Z)(Ft,Za),Rr=Rn!=null?Rn:"tmp-".concat(wt);return gn||Nr==="group"?Nr==="group"?pe.createElement(Ya,(0,E.Z)({key:Rr},Wr,{title:Nt}),Go(gn)):pe.createElement(Ir,(0,E.Z)({key:Rr},Wr,{title:Nt}),Go(gn)):Nr==="divider"?pe.createElement($a,(0,E.Z)({key:Rr},Wr)):pe.createElement(zo,(0,E.Z)({key:Rr},Wr),Nt)}return null}).filter(function(yt){return yt})}function Ho(st,yt,wt){var Ft=st;return yt&&(Ft=Go(yt)),Do(Ft,wt)}var Qo=["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"],vr=[],Sr=pe.forwardRef(function(st,yt){var wt,Ft,Nt=st,gn=Nt.prefixCls,Rn=gn===void 0?"rc-menu":gn,Nr=Nt.rootClassName,Wr=Nt.style,Rr=Nt.className,Un=Nt.tabIndex,pr=Un===void 0?0:Un,Jn=Nt.items,_r=Nt.children,yi=Nt.direction,Yr=Nt.id,Xr=Nt.mode,ti=Xr===void 0?"vertical":Xr,fi=Nt.inlineCollapsed,Ci=Nt.disabled,At=Nt.disabledOverflow,vt=Nt.subMenuOpenDelay,On=vt===void 0?.1:vt,Cn=Nt.subMenuCloseDelay,mr=Cn===void 0?.1:Cn,Zr=Nt.forceSubMenuRender,Zt=Nt.defaultOpenKeys,Ht=Nt.openKeys,tn=Nt.activeKey,xn=Nt.defaultActiveFirst,fr=Nt.selectable,wr=fr===void 0?!0:fr,lr=Nt.multiple,kr=lr===void 0?!1:lr,di=Nt.defaultSelectedKeys,Ni=Nt.selectedKeys,Si=Nt.onSelect,Jr=Nt.onDeselect,Bi=Nt.inlineIndent,Wi=Bi===void 0?24:Bi,da=Nt.motion,Vi=Nt.defaultMotions,Ei=Nt.triggerSubMenuAction,ga=Ei===void 0?"hover":Ei,Ca=Nt.builtinPlacements,fo=Nt.itemIcon,Bo=Nt.expandIcon,xo=Nt.overflowedIndicator,Jt=xo===void 0?"...":xo,rn=Nt.overflowedIndicatorPopupClassName,kn=Nt.getPopupContainer,zr=Nt.onClick,Mr=Nt.onOpenChange,tr=Nt.onKeyDown,yr=Nt.openAnimation,Ln=Nt.openTransitionName,Xn=Nt._internalRenderMenuItem,qr=Nt._internalRenderSubMenuItem,Pi=(0,Be.Z)(Nt,Qo),Da=pe.useMemo(function(){return Ho(_r,Jn,vr)},[_r,Jn]),la=pe.useState(!1),La=(0,xe.Z)(la,2),mo=La[0],Ui=La[1],pi=pe.useRef(),ri=Dn(Yr),Xa=yi==="rtl",ya=(0,pn.Z)(Zt,{value:Ht,postState:function(_a){return _a||vr}}),to=(0,xe.Z)(ya,2),Ba=to[0],Ua=to[1],ko=function(_a){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Yo(){Ua(_a),Mr==null||Mr(_a)}no?(0,ye.flushSync)(Yo):Yo()},Va=pe.useState(Ba),qi=(0,xe.Z)(Va,2),So=qi[0],Ro=qi[1],fl=pe.useRef(!1),Al=pe.useMemo(function(){return(ti==="inline"||ti==="vertical")&&fi?["vertical",fi]:[ti,!1]},[ti,fi]),jt=(0,xe.Z)(Al,2),dn=jt[0],Mn=jt[1],ur=dn==="inline",Qi=pe.useState(dn),dr=(0,xe.Z)(Qi,2),ii=dr[0],si=dr[1],ki=pe.useState(Mn),Yi=(0,xe.Z)(ki,2),Lr=Yi[0],ia=Yi[1];pe.useEffect(function(){si(dn),ia(Mn),fl.current&&(ur?Ua(So):ko(vr))},[dn,Mn]);var Ha=pe.useState(0),ro=(0,xe.Z)(Ha,2),Xi=ro[0],Wa=ro[1],_i=Xi>=Da.length-1||ii!=="horizontal"||At;pe.useEffect(function(){ur&&Ro(Ba)},[Ba]),pe.useEffect(function(){return fl.current=!0,function(){fl.current=!1}},[]);var jr=jn(),li=jr.registerPath,va=jr.unregisterPath,tt=jr.refreshOverflowKeys,nt=jr.isSubPathKey,Qt=jr.getKeyPath,Kt=jr.getKeys,Bn=jr.getSubPathKeys,Gn=pe.useMemo(function(){return{registerPath:li,unregisterPath:va}},[li,va]),_n=pe.useMemo(function(){return{isSubPathKey:nt}},[nt]);pe.useEffect(function(){tt(_i?vr:Da.slice(Xi+1).map(function(Fa){return Fa.key}))},[Xi,_i]);var Pr=(0,pn.Z)(tn||xn&&((wt=Da[0])===null||wt===void 0?void 0:wt.key),{value:tn}),Kr=(0,xe.Z)(Pr,2),Er=Kr[0],ta=Kr[1],zi=Bt(function(Fa){ta(Fa)}),ji=Bt(function(){ta(void 0)});(0,pe.useImperativeHandle)(yt,function(){return{list:pi.current,focus:function(_a){var no,Yo=Er!=null?Er:(no=Da.find(function(cl){return!cl.props.disabled}))===null||no===void 0?void 0:no.key;if(Yo){var Wo,il,el;(Wo=pi.current)===null||Wo===void 0||(il=Wo.querySelector("li[data-menu-id='".concat(me(ri,Yo),"']")))===null||il===void 0||(el=il.focus)===null||el===void 0||el.call(il,_a)}}}});var Li=(0,pn.Z)(di||[],{value:Ni,postState:function(_a){return Array.isArray(_a)?_a:_a==null?vr:[_a]}}),ea=(0,xe.Z)(Li,2),Hi=ea[0],ka=ea[1],vo=function(_a){if(wr){var no=_a.key,Yo=Hi.includes(no),Wo;kr?Yo?Wo=Hi.filter(function(el){return el!==no}):Wo=[].concat((0,Te.Z)(Hi),[no]):Wo=[no],ka(Wo);var il=(0,Ie.Z)((0,Ie.Z)({},_a),{},{selectedKeys:Wo});Yo?Jr==null||Jr(il):Si==null||Si(il)}!kr&&Ba.length&&ii!=="inline"&&ko(vr)},Fo=Bt(function(Fa){zr==null||zr(Di(Fa)),vo(Fa)}),Zo=Bt(function(Fa,_a){var no=Ba.filter(function(Wo){return Wo!==Fa});if(_a)no.push(Fa);else if(ii!=="inline"){var Yo=Bn(Fa);no=no.filter(function(Wo){return!Yo.has(Wo)})}(0,Tn.Z)(Ba,no,!0)||ko(no,!0)}),Ao=function(_a,no){var Yo=no!=null?no:!Ba.includes(_a);Zo(_a,Yo)},qo=hi(ii,Er,Xa,ri,pi,Kt,Qt,ta,Ao,tr);pe.useEffect(function(){Ui(!0)},[]);var go=pe.useMemo(function(){return{_internalRenderMenuItem:Xn,_internalRenderSubMenuItem:qr}},[Xn,qr]),Io=ii!=="horizontal"||At?Da:Da.map(function(Fa,_a){return pe.createElement(bt,{key:Fa.key,overflowDisabled:_a>Xi},Fa)}),Xo=pe.createElement(_t,(0,E.Z)({id:Yr,ref:pi,prefixCls:"".concat(Rn,"-overflow"),component:"ul",itemComponent:zo,className:Se()(Rn,"".concat(Rn,"-root"),"".concat(Rn,"-").concat(ii),Rr,(Ft={},(0,fe.Z)(Ft,"".concat(Rn,"-inline-collapsed"),Lr),(0,fe.Z)(Ft,"".concat(Rn,"-rtl"),Xa),Ft),Nr),dir:yi,style:Wr,role:"menu",tabIndex:pr,data:Io,renderRawItem:function(_a){return _a},renderRawRest:function(_a){var no=_a.length,Yo=no?Da.slice(-no):null;return pe.createElement(Ir,{eventKey:An,title:Jt,disabled:_i,internalPopupClose:no===0,popupClassName:rn},Yo)},maxCount:ii!=="horizontal"||At?_t.INVALIDATE:_t.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(_a){Wa(_a)},onKeyDown:qo},Pi));return pe.createElement(fn.Provider,{value:go},pe.createElement(Oe.Provider,{value:ri},pe.createElement(bt,{prefixCls:Rn,rootClassName:Nr,mode:ii,openKeys:Ba,rtl:Xa,disabled:Ci,motion:mo?da:null,defaultMotions:mo?Vi:null,activeKey:Er,onActive:zi,onInactive:ji,selectedKeys:Hi,inlineIndent:Wi,subMenuOpenDelay:On,subMenuCloseDelay:mr,forceSubMenuRender:Zr,builtinPlacements:Ca,triggerSubMenuAction:ga,getPopupContainer:kn,itemIcon:fo,expandIcon:Bo,onItemClick:Fo,onOpenChange:Zo},pe.createElement(Tt.Provider,{value:_n},Xo),pe.createElement("div",{style:{display:"none"},"aria-hidden":!0},pe.createElement(yn.Provider,{value:Gn},Da)))))}),Tr=Sr,Ae=Tr;Ae.Item=zo,Ae.SubMenu=Ir,Ae.ItemGroup=Ya,Ae.Divider=$a;var it=Ae},81626:function(In,Ut){"use strict";Ut.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},46762:function(In,Ut){"use strict";var te;var E=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Ie=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Be=Symbol.for("react.provider"),de=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),qe;qe=Symbol.for("react.module.reference");function He(be){if(typeof be=="object"&&be!==null){var Qe=be.$$typeof;switch(Qe){case E:switch(be=be.type,be){case Ie:case xe:case Te:case De:case Xe:return be;default:switch(be=be&&be.$$typeof,be){case Se:case de:case pe:case Ue:case Pe:case Be:return be;default:return Qe}}case fe:return Qe}}}te=de,te=Be,te=E,te=pe,te=Ie,te=Ue,te=Pe,te=fe,te=xe,te=Te,te=De,te=Xe,te=function(){return!1},te=function(){return!1},te=function(be){return He(be)===de},te=function(be){return He(be)===Be},te=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===E},te=function(be){return He(be)===pe},Ut.isFragment=function(be){return He(be)===Ie},te=function(be){return He(be)===Ue},te=function(be){return He(be)===Pe},te=function(be){return He(be)===fe},te=function(be){return He(be)===xe},te=function(be){return He(be)===Te},te=function(be){return He(be)===De},te=function(be){return He(be)===Xe},te=function(be){return typeof be=="string"||typeof be=="function"||be===Ie||be===xe||be===Te||be===De||be===Xe||be===rt||typeof be=="object"&&be!==null&&(be.$$typeof===Ue||be.$$typeof===Pe||be.$$typeof===Be||be.$$typeof===de||be.$$typeof===pe||be.$$typeof===qe||be.getModuleId!==void 0)},te=He},35110:function(In,Ut,te){"use strict";In.exports=te(46762)},86128:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Ye}});var E=te(87462),fe=te(4942),Ie=te(45987),Te=te(1413),xe=te(15671),Be=te(43144),de=te(97326),Se=te(60136),pe=te(51630),De=te(67294),Xe=te(94184),Pe=te.n(Xe),Ue=te(64217),rt=te(27822),qe=function(ot){for(var ct=ot.prefixCls,_e=ot.level,Me=ot.isStart,pt=ot.isEnd,$e="".concat(ct,"-indent-unit"),ft=[],We=0;We<_e;We+=1){var gt;ft.push(De.createElement("span",{key:We,className:Pe()($e,(gt={},(0,fe.Z)(gt,"".concat($e,"-start"),Me[We]),(0,fe.Z)(gt,"".concat($e,"-end"),pt[We]),gt))}))}return De.createElement("span",{"aria-hidden":"true",className:"".concat(ct,"-indent")},ft)},He=De.memo(qe),be=te(1089),Qe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ht="open",Je="close",Ze="---",ye=function(Ne){(0,Se.Z)(ct,Ne);var ot=(0,pe.Z)(ct);function ct(){var _e;(0,xe.Z)(this,ct);for(var Me=arguments.length,pt=new Array(Me),$e=0;$e<Me;$e++)pt[$e]=arguments[$e];return _e=ot.call.apply(ot,[this].concat(pt)),_e.state={dragNodeHighlight:!1},_e.selectHandle=void 0,_e.onSelectorClick=function(ft){var We=_e.props.context.onNodeClick;We(ft,(0,be.F)(_e.props)),_e.isSelectable()?_e.onSelect(ft):_e.onCheck(ft)},_e.onSelectorDoubleClick=function(ft){var We=_e.props.context.onNodeDoubleClick;We(ft,(0,be.F)(_e.props))},_e.onSelect=function(ft){if(!_e.isDisabled()){var We=_e.props.context.onNodeSelect;ft.preventDefault(),We(ft,(0,be.F)(_e.props))}},_e.onCheck=function(ft){if(!_e.isDisabled()){var We=_e.props,gt=We.disableCheckbox,kt=We.checked,xt=_e.props.context.onNodeCheck;if(!(!_e.isCheckable()||gt)){ft.preventDefault();var et=!kt;xt(ft,(0,be.F)(_e.props),et)}}},_e.onMouseEnter=function(ft){var We=_e.props.context.onNodeMouseEnter;We(ft,(0,be.F)(_e.props))},_e.onMouseLeave=function(ft){var We=_e.props.context.onNodeMouseLeave;We(ft,(0,be.F)(_e.props))},_e.onContextMenu=function(ft){var We=_e.props.context.onNodeContextMenu;We(ft,(0,be.F)(_e.props))},_e.onDragStart=function(ft){var We=_e.props.context.onNodeDragStart;ft.stopPropagation(),_e.setState({dragNodeHighlight:!0}),We(ft,(0,de.Z)(_e));try{ft.dataTransfer.setData("text/plain","")}catch(gt){}},_e.onDragEnter=function(ft){var We=_e.props.context.onNodeDragEnter;ft.preventDefault(),ft.stopPropagation(),We(ft,(0,de.Z)(_e))},_e.onDragOver=function(ft){var We=_e.props.context.onNodeDragOver;ft.preventDefault(),ft.stopPropagation(),We(ft,(0,de.Z)(_e))},_e.onDragLeave=function(ft){var We=_e.props.context.onNodeDragLeave;ft.stopPropagation(),We(ft,(0,de.Z)(_e))},_e.onDragEnd=function(ft){var We=_e.props.context.onNodeDragEnd;ft.stopPropagation(),_e.setState({dragNodeHighlight:!1}),We(ft,(0,de.Z)(_e))},_e.onDrop=function(ft){var We=_e.props.context.onNodeDrop;ft.preventDefault(),ft.stopPropagation(),_e.setState({dragNodeHighlight:!1}),We(ft,(0,de.Z)(_e))},_e.onExpand=function(ft){var We=_e.props,gt=We.loading,kt=We.context.onNodeExpand;gt||kt(ft,(0,be.F)(_e.props))},_e.setSelectHandle=function(ft){_e.selectHandle=ft},_e.getNodeState=function(){var ft=_e.props.expanded;return _e.isLeaf()?null:ft?ht:Je},_e.hasChildren=function(){var ft=_e.props.eventKey,We=_e.props.context.keyEntities,gt=We[ft]||{},kt=gt.children;return!!(kt||[]).length},_e.isLeaf=function(){var ft=_e.props,We=ft.isLeaf,gt=ft.loaded,kt=_e.props.context.loadData,xt=_e.hasChildren();return We===!1?!1:We||!kt&&!xt||kt&>&&!xt},_e.isDisabled=function(){var ft=_e.props.disabled,We=_e.props.context.disabled;return!!(We||ft)},_e.isCheckable=function(){var ft=_e.props.checkable,We=_e.props.context.checkable;return!We||ft===!1?!1:We},_e.syncLoadData=function(ft){var We=ft.expanded,gt=ft.loading,kt=ft.loaded,xt=_e.props.context,et=xt.loadData,Fe=xt.onNodeLoad;gt||et&&We&&!_e.isLeaf()&&!_e.hasChildren()&&!kt&&Fe((0,be.F)(_e.props))},_e.isDraggable=function(){var ft=_e.props,We=ft.data,gt=ft.context.draggable;return!!(gt&&(!gt.nodeDraggable||gt.nodeDraggable(We)))},_e.renderDragHandler=function(){var ft=_e.props.context,We=ft.draggable,gt=ft.prefixCls;return We!=null&&We.icon?De.createElement("span",{className:"".concat(gt,"-draggable-icon")},We.icon):null},_e.renderSwitcherIconDom=function(ft){var We=_e.props.switcherIcon,gt=_e.props.context.switcherIcon,kt=We||gt;return typeof kt=="function"?kt((0,Te.Z)((0,Te.Z)({},_e.props),{},{isLeaf:ft})):kt},_e.renderSwitcher=function(){var ft=_e.props.expanded,We=_e.props.context.prefixCls;if(_e.isLeaf()){var gt=_e.renderSwitcherIconDom(!0);return gt!==!1?De.createElement("span",{className:Pe()("".concat(We,"-switcher"),"".concat(We,"-switcher-noop"))},gt):null}var kt=Pe()("".concat(We,"-switcher"),"".concat(We,"-switcher_").concat(ft?ht:Je)),xt=_e.renderSwitcherIconDom(!1);return xt!==!1?De.createElement("span",{onClick:_e.onExpand,className:kt},xt):null},_e.renderCheckbox=function(){var ft=_e.props,We=ft.checked,gt=ft.halfChecked,kt=ft.disableCheckbox,xt=_e.props.context.prefixCls,et=_e.isDisabled(),Fe=_e.isCheckable();if(!Fe)return null;var Dt=typeof Fe!="boolean"?Fe:null;return De.createElement("span",{className:Pe()("".concat(xt,"-checkbox"),We&&"".concat(xt,"-checkbox-checked"),!We&>&&"".concat(xt,"-checkbox-indeterminate"),(et||kt)&&"".concat(xt,"-checkbox-disabled")),onClick:_e.onCheck},Dt)},_e.renderIcon=function(){var ft=_e.props.loading,We=_e.props.context.prefixCls;return De.createElement("span",{className:Pe()("".concat(We,"-iconEle"),"".concat(We,"-icon__").concat(_e.getNodeState()||"docu"),ft&&"".concat(We,"-icon_loading"))})},_e.renderSelector=function(){var ft=_e.state.dragNodeHighlight,We=_e.props,gt=We.title,kt=gt===void 0?Ze:gt,xt=We.selected,et=We.icon,Fe=We.loading,Dt=We.data,qt=_e.props.context,Xt=qt.prefixCls,Et=qt.showIcon,zt=qt.icon,Yt=qt.loadData,Vn=qt.titleRender,Pn=_e.isDisabled(),_t="".concat(Xt,"-node-content-wrapper"),pn;if(Et){var sr=et||zt;pn=sr?De.createElement("span",{className:Pe()("".concat(Xt,"-iconEle"),"".concat(Xt,"-icon__customize"))},typeof sr=="function"?sr(_e.props):sr):_e.renderIcon()}else Yt&&Fe&&(pn=_e.renderIcon());var Tn;typeof kt=="function"?Tn=kt(Dt):Vn?Tn=Vn(Dt):Tn=kt;var Oe=De.createElement("span",{className:"".concat(Xt,"-title")},Tn);return De.createElement("span",{ref:_e.setSelectHandle,title:typeof kt=="string"?kt:"",className:Pe()("".concat(_t),"".concat(_t,"-").concat(_e.getNodeState()||"normal"),!Pn&&(xt||ft)&&"".concat(Xt,"-node-selected")),onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onContextMenu:_e.onContextMenu,onClick:_e.onSelectorClick,onDoubleClick:_e.onSelectorDoubleClick},pn,Oe,_e.renderDropIndicator())},_e.renderDropIndicator=function(){var ft=_e.props,We=ft.disabled,gt=ft.eventKey,kt=_e.props.context,xt=kt.draggable,et=kt.dropLevelOffset,Fe=kt.dropPosition,Dt=kt.prefixCls,qt=kt.indent,Xt=kt.dropIndicatorRender,Et=kt.dragOverNodeKey,zt=kt.direction,Yt=!!xt,Vn=!We&&Yt&&Et===gt;return Vn?Xt({dropPosition:Fe,dropLevelOffset:et,indent:qt,prefixCls:Dt,direction:zt}):null},_e}return(0,Be.Z)(ct,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Me=this.props.selectable,pt=this.props.context.selectable;return typeof Me=="boolean"?Me:pt}},{key:"render",value:function(){var Me,pt=this.props,$e=pt.eventKey,ft=pt.className,We=pt.style,gt=pt.dragOver,kt=pt.dragOverGapTop,xt=pt.dragOverGapBottom,et=pt.isLeaf,Fe=pt.isStart,Dt=pt.isEnd,qt=pt.expanded,Xt=pt.selected,Et=pt.checked,zt=pt.halfChecked,Yt=pt.loading,Vn=pt.domRef,Pn=pt.active,_t=pt.data,pn=pt.onMouseMove,sr=pt.selectable,Tn=(0,Ie.Z)(pt,Qe),Oe=this.props.context,me=Oe.prefixCls,he=Oe.filterTreeNode,ge=Oe.keyEntities,ve=Oe.dropContainerKey,se=Oe.dropTargetKey,Ke=Oe.draggingNodeKey,bt=this.isDisabled(),Wt=(0,Ue.Z)(Tn,{aria:!0,data:!0}),yn=ge[$e]||{},bn=yn.level,cn=Dt[Dt.length-1],wn=this.isDraggable(),Tt=!bt&&wn,nn=Ke===$e,fn=sr!==void 0?{"aria-selected":!!sr}:void 0;return De.createElement("div",(0,E.Z)({ref:Vn,className:Pe()(ft,"".concat(me,"-treenode"),(Me={},(0,fe.Z)(Me,"".concat(me,"-treenode-disabled"),bt),(0,fe.Z)(Me,"".concat(me,"-treenode-switcher-").concat(qt?"open":"close"),!et),(0,fe.Z)(Me,"".concat(me,"-treenode-checkbox-checked"),Et),(0,fe.Z)(Me,"".concat(me,"-treenode-checkbox-indeterminate"),zt),(0,fe.Z)(Me,"".concat(me,"-treenode-selected"),Xt),(0,fe.Z)(Me,"".concat(me,"-treenode-loading"),Yt),(0,fe.Z)(Me,"".concat(me,"-treenode-active"),Pn),(0,fe.Z)(Me,"".concat(me,"-treenode-leaf-last"),cn),(0,fe.Z)(Me,"".concat(me,"-treenode-draggable"),wn),(0,fe.Z)(Me,"dragging",nn),(0,fe.Z)(Me,"drop-target",se===$e),(0,fe.Z)(Me,"drop-container",ve===$e),(0,fe.Z)(Me,"drag-over",!bt&>),(0,fe.Z)(Me,"drag-over-gap-top",!bt&&kt),(0,fe.Z)(Me,"drag-over-gap-bottom",!bt&&xt),(0,fe.Z)(Me,"filter-node",he&&he((0,be.F)(this.props))),Me)),style:We,draggable:Tt,"aria-grabbed":nn,onDragStart:Tt?this.onDragStart:void 0,onDragEnter:wn?this.onDragEnter:void 0,onDragOver:wn?this.onDragOver:void 0,onDragLeave:wn?this.onDragLeave:void 0,onDrop:wn?this.onDrop:void 0,onDragEnd:wn?this.onDragEnd:void 0,onMouseMove:pn},fn,Wt),De.createElement(He,{prefixCls:me,level:bn,isStart:Fe,isEnd:Dt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ct}(De.Component),Ee=function(ot){return De.createElement(rt.k.Consumer,null,function(ct){return De.createElement(ye,(0,E.Z)({},ot,{context:ct}))})};Ee.displayName="TreeNode",Ee.isTreeNode=1;var Ye=Ee},27822:function(In,Ut,te){"use strict";te.d(Ut,{k:function(){return fe}});var E=te(67294),fe=E.createContext(null)},10225:function(In,Ut,te){"use strict";te.d(Ut,{BT:function(){return He},Ds:function(){return Xe},E6:function(){return ht},L0:function(){return Se},OM:function(){return qe},_5:function(){return de},bt:function(){return De},r7:function(){return Je},wA:function(){return Pe},yx:function(){return pe}});var E=te(74902),fe=te(71002),Ie=te(67294),Te=te(80334),xe=te(86128),Be=null;function de(Ze,ye){if(!Ze)return[];var Ee=Ze.slice(),Ye=Ee.indexOf(ye);return Ye>=0&&Ee.splice(Ye,1),Ee}function Se(Ze,ye){var Ee=(Ze||[]).slice();return Ee.indexOf(ye)===-1&&Ee.push(ye),Ee}function pe(Ze){return Ze.split("-")}function De(Ze,ye){return"".concat(Ze,"-").concat(ye)}function Xe(Ze){return Ze&&Ze.type&&Ze.type.isTreeNode}function Pe(Ze,ye){var Ee=[],Ye=ye[Ze];function Ne(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ot.forEach(function(ct){var _e=ct.key,Me=ct.children;Ee.push(_e),Ne(Me)})}return Ne(Ye.children),Ee}function Ue(Ze){if(Ze.parent){var ye=pe(Ze.pos);return Number(ye[ye.length-1])===Ze.parent.children.length-1}return!1}function rt(Ze){var ye=pe(Ze.pos);return Number(ye[ye.length-1])===0}function qe(Ze,ye,Ee,Ye,Ne,ot,ct,_e,Me,pt){var $e,ft=Ze.clientX,We=Ze.clientY,gt=Ze.target.getBoundingClientRect(),kt=gt.top,xt=gt.height,et=(pt==="rtl"?-1:1)*(((Ne==null?void 0:Ne.x)||0)-ft),Fe=(et-12)/Ye,Dt=_e[Ee.props.eventKey];if(We<kt+xt/2){var qt=ct.findIndex(function(me){return me.key===Dt.key}),Xt=qt<=0?0:qt-1,Et=ct[Xt].key;Dt=_e[Et]}var zt=Dt.key,Yt=Dt,Vn=Dt.key,Pn=0,_t=0;if(!Me.includes(zt))for(var pn=0;pn<Fe&&Ue(Dt);pn+=1)Dt=Dt.parent,_t+=1;var sr=ye.props.data,Tn=Dt.node,Oe=!0;return rt(Dt)&&Dt.level===0&&We<kt+xt/2&&ot({dragNode:sr,dropNode:Tn,dropPosition:-1})&&Dt.key===Ee.props.eventKey?Pn=-1:(Yt.children||[]).length&&Me.includes(Vn)?ot({dragNode:sr,dropNode:Tn,dropPosition:0})?Pn=0:Oe=!1:_t===0?Fe>-1.5?ot({dragNode:sr,dropNode:Tn,dropPosition:1})?Pn=1:Oe=!1:ot({dragNode:sr,dropNode:Tn,dropPosition:0})?Pn=0:ot({dragNode:sr,dropNode:Tn,dropPosition:1})?Pn=1:Oe=!1:ot({dragNode:sr,dropNode:Tn,dropPosition:1})?Pn=1:Oe=!1,{dropPosition:Pn,dropLevelOffset:_t,dropTargetKey:Dt.key,dropTargetPos:Dt.pos,dragOverNodeKey:Vn,dropContainerKey:Pn===0?null:(($e=Dt.parent)===null||$e===void 0?void 0:$e.key)||null,dropAllowed:Oe}}function He(Ze,ye){if(Ze){var Ee=ye.multiple;return Ee?Ze.slice():Ze.length?[Ze[0]]:Ze}}var be=function(ye){return ye};function Qe(Ze,ye){if(!Ze)return[];var Ee=ye||{},Ye=Ee.processProps,Ne=Ye===void 0?be:Ye,ot=Array.isArray(Ze)?Ze:[Ze];return ot.map(function(ct){var _e=ct.children,Me=_objectWithoutProperties(ct,Be),pt=Qe(_e,ye);return React.createElement(TreeNode,_extends({key:Me.key},Ne(Me)),pt)})}function ht(Ze){if(!Ze)return null;var ye;if(Array.isArray(Ze))ye={checkedKeys:Ze,halfCheckedKeys:void 0};else if((0,fe.Z)(Ze)==="object")ye={checkedKeys:Ze.checked||void 0,halfCheckedKeys:Ze.halfChecked||void 0};else return(0,Te.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ye}function Je(Ze,ye){var Ee=new Set;function Ye(Ne){if(!Ee.has(Ne)){var ot=ye[Ne];if(ot){Ee.add(Ne);var ct=ot.parent,_e=ot.node;_e.disabled||ct&&Ye(ct.key)}}}return(Ze||[]).forEach(function(Ne){Ye(Ne)}),(0,E.Z)(Ee)}},17341:function(In,Ut,te){"use strict";te.d(Ut,{S:function(){return Be}});var E=te(80334);function fe(de,Se){var pe=new Set;return de.forEach(function(De){Se.has(De)||pe.add(De)}),pe}function Ie(de){var Se=de||{},pe=Se.disabled,De=Se.disableCheckbox,Xe=Se.checkable;return!!(pe||De)||Xe===!1}function Te(de,Se,pe,De){for(var Xe=new Set(de),Pe=new Set,Ue=0;Ue<=pe;Ue+=1){var rt=Se.get(Ue)||new Set;rt.forEach(function(Qe){var ht=Qe.key,Je=Qe.node,Ze=Qe.children,ye=Ze===void 0?[]:Ze;Xe.has(ht)&&!De(Je)&&ye.filter(function(Ee){return!De(Ee.node)}).forEach(function(Ee){Xe.add(Ee.key)})})}for(var qe=new Set,He=pe;He>=0;He-=1){var be=Se.get(He)||new Set;be.forEach(function(Qe){var ht=Qe.parent,Je=Qe.node;if(!(De(Je)||!Qe.parent||qe.has(Qe.parent.key))){if(De(Qe.parent.node)){qe.add(ht.key);return}var Ze=!0,ye=!1;(ht.children||[]).filter(function(Ee){return!De(Ee.node)}).forEach(function(Ee){var Ye=Ee.key,Ne=Xe.has(Ye);Ze&&!Ne&&(Ze=!1),!ye&&(Ne||Pe.has(Ye))&&(ye=!0)}),Ze&&Xe.add(ht.key),ye&&Pe.add(ht.key),qe.add(ht.key)}})}return{checkedKeys:Array.from(Xe),halfCheckedKeys:Array.from(fe(Pe,Xe))}}function xe(de,Se,pe,De,Xe){for(var Pe=new Set(de),Ue=new Set(Se),rt=0;rt<=De;rt+=1){var qe=pe.get(rt)||new Set;qe.forEach(function(ht){var Je=ht.key,Ze=ht.node,ye=ht.children,Ee=ye===void 0?[]:ye;!Pe.has(Je)&&!Ue.has(Je)&&!Xe(Ze)&&Ee.filter(function(Ye){return!Xe(Ye.node)}).forEach(function(Ye){Pe.delete(Ye.key)})})}Ue=new Set;for(var He=new Set,be=De;be>=0;be-=1){var Qe=pe.get(be)||new Set;Qe.forEach(function(ht){var Je=ht.parent,Ze=ht.node;if(!(Xe(Ze)||!ht.parent||He.has(ht.parent.key))){if(Xe(ht.parent.node)){He.add(Je.key);return}var ye=!0,Ee=!1;(Je.children||[]).filter(function(Ye){return!Xe(Ye.node)}).forEach(function(Ye){var Ne=Ye.key,ot=Pe.has(Ne);ye&&!ot&&(ye=!1),!Ee&&(ot||Ue.has(Ne))&&(Ee=!0)}),ye||Pe.delete(Je.key),Ee&&Ue.add(Je.key),He.add(Je.key)}})}return{checkedKeys:Array.from(Pe),halfCheckedKeys:Array.from(fe(Ue,Pe))}}function Be(de,Se,pe,De){var Xe=[],Pe;De?Pe=De:Pe=Ie;var Ue=new Set(de.filter(function(be){var Qe=!!pe[be];return Qe||Xe.push(be),Qe})),rt=new Map,qe=0;Object.keys(pe).forEach(function(be){var Qe=pe[be],ht=Qe.level,Je=rt.get(ht);Je||(Je=new Set,rt.set(ht,Je)),Je.add(Qe),qe=Math.max(qe,ht)}),(0,E.ZP)(!Xe.length,"Tree missing follow keys: ".concat(Xe.slice(0,100).map(function(be){return"'".concat(be,"'")}).join(", ")));var He;return Se===!0?He=Te(Ue,rt,qe,Pe):He=xe(Ue,Se.halfCheckedKeys,rt,qe,Pe),He}},1089:function(In,Ut,te){"use strict";te.d(Ut,{F:function(){return Qe},H8:function(){return be},I8:function(){return He},km:function(){return De},oH:function(){return rt},w$:function(){return Xe},zn:function(){return Ue}});var E=te(71002),fe=te(74902),Ie=te(1413),Te=te(45987),xe=te(98423),Be=te(50344),de=te(80334),Se=te(10225),pe=["children"];function De(ht,Je){return ht!=null?ht:Je}function Xe(ht){var Je=ht||{},Ze=Je.title,ye=Je._title,Ee=Je.key,Ye=Je.children,Ne=Ze||"title";return{title:Ne,_title:ye||[Ne],key:Ee||"key",children:Ye||"children"}}function Pe(ht,Je){var Ze=new Map;function ye(Ee){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ee||[]).forEach(function(Ne){var ot=Ne[Je.key],ct=Ne[Je.children];warning(ot!=null,"Tree node must have a certain key: [".concat(Ye).concat(ot,"]"));var _e=String(ot);warning(!Ze.has(_e)||ot===null||ot===void 0,"Same 'key' exist in the Tree: ".concat(_e)),Ze.set(_e,!0),ye(ct,"".concat(Ye).concat(_e," > "))})}ye(ht)}function Ue(ht){function Je(Ze){var ye=(0,Be.Z)(Ze);return ye.map(function(Ee){if(!(0,Se.Ds)(Ee))return(0,de.ZP)(!Ee,"Tree/TreeNode can only accept TreeNode as children."),null;var Ye=Ee.key,Ne=Ee.props,ot=Ne.children,ct=(0,Te.Z)(Ne,pe),_e=(0,Ie.Z)({key:Ye},ct),Me=Je(ot);return Me.length&&(_e.children=Me),_e}).filter(function(Ee){return Ee})}return Je(ht)}function rt(ht,Je,Ze){var ye=Xe(Ze),Ee=ye._title,Ye=ye.key,Ne=ye.children,ot=new Set(Je===!0?[]:Je),ct=[];function _e(Me){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Me.map(function($e,ft){for(var We=(0,Se.bt)(pt?pt.pos:"0",ft),gt=De($e[Ye],We),kt,xt=0;xt<Ee.length;xt+=1){var et=Ee[xt];if($e[et]!==void 0){kt=$e[et];break}}var Fe=(0,Ie.Z)((0,Ie.Z)({},(0,xe.Z)($e,[].concat((0,fe.Z)(Ee),[Ye,Ne]))),{},{title:kt,key:gt,parent:pt,pos:We,children:null,data:$e,isStart:[].concat((0,fe.Z)(pt?pt.isStart:[]),[ft===0]),isEnd:[].concat((0,fe.Z)(pt?pt.isEnd:[]),[ft===Me.length-1])});return ct.push(Fe),Je===!0||ot.has(gt)?Fe.children=_e($e[Ne]||[],Fe):Fe.children=[],Fe})}return _e(ht),ct}function qe(ht,Je,Ze){var ye={};(0,E.Z)(Ze)==="object"?ye=Ze:ye={externalGetKey:Ze},ye=ye||{};var Ee=ye,Ye=Ee.childrenPropName,Ne=Ee.externalGetKey,ot=Ee.fieldNames,ct=Xe(ot),_e=ct.key,Me=ct.children,pt=Ye||Me,$e;Ne?typeof Ne=="string"?$e=function(gt){return gt[Ne]}:typeof Ne=="function"&&($e=function(gt){return Ne(gt)}):$e=function(gt,kt){return De(gt[_e],kt)};function ft(We,gt,kt,xt){var et=We?We[pt]:ht,Fe=We?(0,Se.bt)(kt.pos,gt):"0",Dt=We?[].concat((0,fe.Z)(xt),[We]):[];if(We){var qt=$e(We,Fe),Xt={node:We,index:gt,pos:Fe,key:qt,parentPos:kt.node?kt.pos:null,level:kt.level+1,nodes:Dt};Je(Xt)}et&&et.forEach(function(Et,zt){ft(Et,zt,{node:We,pos:Fe,level:kt?kt.level+1:-1},Dt)})}ft(null)}function He(ht){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ze=Je.initWrapper,ye=Je.processEntity,Ee=Je.onProcessFinished,Ye=Je.externalGetKey,Ne=Je.childrenPropName,ot=Je.fieldNames,ct=arguments.length>2?arguments[2]:void 0,_e=Ye||ct,Me={},pt={},$e={posEntities:Me,keyEntities:pt};return Ze&&($e=Ze($e)||$e),qe(ht,function(ft){var We=ft.node,gt=ft.index,kt=ft.pos,xt=ft.key,et=ft.parentPos,Fe=ft.level,Dt=ft.nodes,qt={node:We,nodes:Dt,index:gt,key:xt,pos:kt,level:Fe},Xt=De(xt,kt);Me[kt]=qt,pt[Xt]=qt,qt.parent=Me[et],qt.parent&&(qt.parent.children=qt.parent.children||[],qt.parent.children.push(qt)),ye&&ye(qt,$e)},{externalGetKey:_e,childrenPropName:Ne,fieldNames:ot}),Ee&&Ee($e),$e}function be(ht,Je){var Ze=Je.expandedKeys,ye=Je.selectedKeys,Ee=Je.loadedKeys,Ye=Je.loadingKeys,Ne=Je.checkedKeys,ot=Je.halfCheckedKeys,ct=Je.dragOverNodeKey,_e=Je.dropPosition,Me=Je.keyEntities,pt=Me[ht],$e={eventKey:ht,expanded:Ze.indexOf(ht)!==-1,selected:ye.indexOf(ht)!==-1,loaded:Ee.indexOf(ht)!==-1,loading:Ye.indexOf(ht)!==-1,checked:Ne.indexOf(ht)!==-1,halfChecked:ot.indexOf(ht)!==-1,pos:String(pt?pt.pos:""),dragOver:ct===ht&&_e===0,dragOverGapTop:ct===ht&&_e===-1,dragOverGapBottom:ct===ht&&_e===1};return $e}function Qe(ht){var Je=ht.data,Ze=ht.expanded,ye=ht.selected,Ee=ht.checked,Ye=ht.loaded,Ne=ht.loading,ot=ht.halfChecked,ct=ht.dragOver,_e=ht.dragOverGapTop,Me=ht.dragOverGapBottom,pt=ht.pos,$e=ht.active,ft=ht.eventKey,We=(0,Ie.Z)((0,Ie.Z)({},Je),{},{expanded:Ze,selected:ye,checked:Ee,loaded:Ye,loading:Ne,halfChecked:ot,dragOver:ct,dragOverGapTop:_e,dragOverGapBottom:Me,pos:pt,active:$e,key:ft});return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,de.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ht}}),We}},66680:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return fe}});var E=te(67294);function fe(Ie){var Te=E.useRef();Te.current=Ie;var xe=E.useCallback(function(){for(var Be,de=arguments.length,Se=new Array(de),pe=0;pe<de;pe++)Se[pe]=arguments[pe];return(Be=Te.current)===null||Be===void 0?void 0:Be.call.apply(Be,[Te].concat(Se))},[]);return xe}},21770:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Be}});var E=te(97685),fe=te(66680),Ie=te(8410),Te=te(63896);function xe(de){return de!==void 0}function Be(de,Se){var pe=Se||{},De=pe.defaultValue,Xe=pe.value,Pe=pe.onChange,Ue=pe.postState,rt=(0,Te.Z)(function(){return xe(Xe)?Xe:xe(De)?typeof De=="function"?De():De:typeof de=="function"?de():de}),qe=(0,E.Z)(rt,2),He=qe[0],be=qe[1],Qe=Xe!==void 0?Xe:He,ht=Ue?Ue(Qe):Qe,Je=(0,fe.Z)(Pe),Ze=(0,Te.Z)([Qe]),ye=(0,E.Z)(Ze,2),Ee=ye[0],Ye=ye[1];(0,Ie.o)(function(){var ot=Ee[0];He!==ot&&Je(He,ot)},[Ee]),(0,Ie.o)(function(){xe(Xe)||be(Xe)},[Xe]);var Ne=(0,fe.Z)(function(ot,ct){be(ot,ct),Ye([Qe],ct)});return[ht,Ne]}},91881:function(In,Ut,te){"use strict";var E=te(71002),fe=te(80334);function Ie(Te,xe){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=new Set;function Se(pe,De){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Pe=de.has(pe);if((0,fe.ZP)(!Pe,"Warning: There may be circular references"),Pe)return!1;if(pe===De)return!0;if(Be&&Xe>1)return!1;de.add(pe);var Ue=Xe+1;if(Array.isArray(pe)){if(!Array.isArray(De)||pe.length!==De.length)return!1;for(var rt=0;rt<pe.length;rt++)if(!Se(pe[rt],De[rt],Ue))return!1;return!0}if(pe&&De&&(0,E.Z)(pe)==="object"&&(0,E.Z)(De)==="object"){var qe=Object.keys(pe);return qe.length!==Object.keys(De).length?!1:qe.every(function(He){return Se(pe[He],De[He],Ue)})}return!1}return Se(Te,xe)}Ut.Z=Ie},98423:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return fe}});var E=te(1413);function fe(Ie,Te){var xe=(0,E.Z)({},Ie);return Array.isArray(Te)&&Te.forEach(function(Be){delete xe[Be]}),xe}},64217:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Se}});var E=te(1413),fe=`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`,Ie=`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(fe," ").concat(Ie).split(/[\s\n]+/),xe="aria-",Be="data-";function de(pe,De){return pe.indexOf(De)===0}function Se(pe){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe;De===!1?Xe={aria:!0,data:!0,attr:!0}:De===!0?Xe={aria:!0}:Xe=(0,E.Z)({},De);var Pe={};return Object.keys(pe).forEach(function(Ue){(Xe.aria&&(Ue==="role"||de(Ue,xe))||Xe.data&&de(Ue,Be)||Xe.attr&&Te.includes(Ue))&&(Pe[Ue]=pe[Ue])}),Pe}},73299:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Zi}});var E=te(87462),fe=te(1413),Ie=te(71002),Te=te(97685),xe=te(4942),Be=te(45987),de=te(67294),Se=te(73935),pe=te(94184),De=te.n(pe),Xe=te(48555),Pe=de.forwardRef(function($t,$n){var mn=$t.height,Yn=$t.offsetY,Dr=$t.offsetX,hi=$t.children,oi=$t.prefixCls,Vr=$t.onInnerResize,Ct=$t.innerProps,hn=$t.rtl,An=$t.extra,jn={},Bt={display:"flex",flexDirection:"column"};if(Yn!==void 0){var on;jn={height:mn,position:"relative",overflow:"hidden"},Bt=(0,fe.Z)((0,fe.Z)({},Bt),{},(on={transform:"translateY(".concat(Yn,"px)")},(0,xe.Z)(on,hn?"marginRight":"marginLeft",-Dr),(0,xe.Z)(on,"position","absolute"),(0,xe.Z)(on,"left",0),(0,xe.Z)(on,"right",0),(0,xe.Z)(on,"top",0),on))}return de.createElement("div",{style:jn},de.createElement(Xe.Z,{onResize:function(Dn){var rr=Dn.offsetHeight;rr&&Vr&&Vr()}},de.createElement("div",(0,E.Z)({style:Bt,className:De()((0,xe.Z)({},"".concat(oi,"-holder-inner"),oi)),ref:$n},Ct),hi,An)))});Pe.displayName="Filler";var Ue=Pe,rt=function($n){return+setTimeout($n,16)},qe=function($n){return clearTimeout($n)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(rt=function($n){return window.requestAnimationFrame($n)},qe=function($n){return window.cancelAnimationFrame($n)});var He=0,be=new Map;function Qe($t){be.delete($t)}var ht=function($n){var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;He+=1;var Yn=He;function Dr(hi){if(hi===0)Qe(Yn),$n();else{var oi=rt(function(){Dr(hi-1)});be.set(Yn,oi)}}return Dr(mn),Yn};ht.cancel=function($t){var $n=be.get($t);return Qe($n),qe($n)};var Je=ht;function Ze($t,$n){var mn="touches"in $t?$t.touches[0]:$t;return mn[$n?"pageX":"pageY"]}var ye=de.forwardRef(function($t,$n){var mn,Yn=$t.prefixCls,Dr=$t.rtl,hi=$t.scrollOffset,oi=$t.scrollRange,Vr=$t.onStartMove,Ct=$t.onStopMove,hn=$t.onScroll,An=$t.horizontal,jn=$t.spinSize,Bt=$t.containerSize,on=$t.style,Kn=$t.thumbStyle,Dn=de.useState(!1),rr=(0,Te.Z)(Dn,2),er=rr[0],Gr=rr[1],ra=de.useState(null),Oi=(0,Te.Z)(ra,2),bi=Oi[0],Ji=Oi[1],Ti=de.useState(null),ua=(0,Te.Z)(Ti,2),br=ua[0],Di=ua[1],ni=!Dr,No=de.useRef(),xa=de.useRef(),za=de.useState(!1),Lo=(0,Te.Z)(za,2),Ea=Lo[0],zo=Lo[1],gi=de.useRef(),Cl=function(){clearTimeout(gi.current),zo(!0),gi.current=setTimeout(function(){zo(!1)},3e3)},pl=oi-Bt||0,jl=Bt-jn||0,Ko=pl>0,Do=de.useMemo(function(){if(hi===0||pl===0)return 0;var _l=hi/pl;return _l*jl},[hi,pl,jl]),Na=function(Fl){Fl.stopPropagation(),Fl.preventDefault()},ml=de.useRef({top:Do,dragging:er,pageY:bi,startTop:br});ml.current={top:Do,dragging:er,pageY:bi,startTop:br};var nl=function(Fl){Gr(!0),Ji(Ze(Fl,An)),Di(ml.current.top),Vr(),Fl.stopPropagation(),Fl.preventDefault()};de.useEffect(function(){var _l=function(Nn){Nn.preventDefault()},Fl=No.current,Vo=xa.current;return Fl.addEventListener("touchstart",_l),Vo.addEventListener("touchstart",nl),function(){Fl.removeEventListener("touchstart",_l),Vo.removeEventListener("touchstart",nl)}},[]);var Sl=de.useRef();Sl.current=pl;var Rl=de.useRef();Rl.current=jl,de.useEffect(function(){if(er){var _l,Fl=function(Nn){var Ir=ml.current,Cr=Ir.dragging,Ii=Ir.pageY,Ma=Ir.startTop;if(Je.cancel(_l),Cr){var Ka=Ze(Nn,An)-Ii,Ya=Ma;!ni&&An?Ya-=Ka:Ya+=Ka;var $a=Sl.current,Za=Rl.current,Go=Za?Ya/Za:0,Ho=Math.ceil(Go*$a);Ho=Math.max(Ho,0),Ho=Math.min(Ho,$a),_l=Je(function(){hn(Ho,An)})}},Vo=function(){Gr(!1),Ct()};return window.addEventListener("mousemove",Fl),window.addEventListener("touchmove",Fl),window.addEventListener("mouseup",Vo),window.addEventListener("touchend",Vo),function(){window.removeEventListener("mousemove",Fl),window.removeEventListener("touchmove",Fl),window.removeEventListener("mouseup",Vo),window.removeEventListener("touchend",Vo),Je.cancel(_l)}}},[er]),de.useEffect(function(){Cl()},[hi]),de.useImperativeHandle($n,function(){return{delayHidden:Cl}});var Ll="".concat(Yn,"-scrollbar"),wl={position:"absolute",visibility:Ea&&Ko?null:"hidden"},Vl={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return An?(wl.height=8,wl.left=0,wl.right=0,wl.bottom=0,Vl.height="100%",Vl.width=jn,ni?Vl.left=Do:Vl.right=Do):(wl.width=8,wl.top=0,wl.bottom=0,ni?wl.right=0:wl.left=0,Vl.width="100%",Vl.height=jn,Vl.top=Do),de.createElement("div",{ref:No,className:De()(Ll,(mn={},(0,xe.Z)(mn,"".concat(Ll,"-horizontal"),An),(0,xe.Z)(mn,"".concat(Ll,"-vertical"),!An),(0,xe.Z)(mn,"".concat(Ll,"-visible"),Ea),mn)),style:(0,fe.Z)((0,fe.Z)({},wl),on),onMouseDown:Na,onMouseMove:Cl},de.createElement("div",{ref:xa,className:De()("".concat(Ll,"-thumb"),(0,xe.Z)({},"".concat(Ll,"-thumb-moving"),er)),style:(0,fe.Z)((0,fe.Z)({},Vl),Kn),onMouseDown:nl}))}),Ee=ye;function Ye($t){var $n=$t.children,mn=$t.setRef,Yn=de.useCallback(function(Dr){mn(Dr)},[]);return de.cloneElement($n,{ref:Yn})}function Ne($t,$n,mn,Yn,Dr,hi,oi){var Vr=oi.getKey;return $t.slice($n,mn+1).map(function(Ct,hn){var An=$n+hn,jn=hi(Ct,An,{style:{width:Yn}}),Bt=Vr(Ct);return de.createElement(Ye,{key:Bt,setRef:function(Kn){return Dr(Ct,Kn)}},jn)})}function ot($t){return $t instanceof HTMLElement||$t instanceof SVGElement}function ct($t){return ot($t)?$t:$t instanceof de.Component?Se.findDOMNode($t):null}var _e=te(15671),Me=te(43144),pt=function(){function $t(){(0,_e.Z)(this,$t),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Me.Z)($t,[{key:"set",value:function(mn,Yn){this.maps[mn]=Yn,this.id+=1}},{key:"get",value:function(mn){return this.maps[mn]}}]),$t}(),$e=pt;function ft($t,$n,mn){var Yn=de.useState(0),Dr=(0,Te.Z)(Yn,2),hi=Dr[0],oi=Dr[1],Vr=(0,de.useRef)(new Map),Ct=(0,de.useRef)(new $e),hn=(0,de.useRef)();function An(){Je.cancel(hn.current)}function jn(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;An();var Kn=function(){Vr.current.forEach(function(rr,er){if(rr&&rr.offsetParent){var Gr=ct(rr),ra=Gr.offsetHeight;Ct.current.get(er)!==ra&&Ct.current.set(er,Gr.offsetHeight)}}),oi(function(rr){return rr+1})};on?Kn():hn.current=Je(Kn)}function Bt(on,Kn){var Dn=$t(on),rr=Vr.current.get(Dn);Kn?(Vr.current.set(Dn,Kn),jn()):Vr.current.delete(Dn),!rr!=!Kn&&(Kn?$n==null||$n(on):mn==null||mn(on))}return(0,de.useEffect)(function(){return An},[]),[Bt,jn,Ct.current,hi]}function We(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var gt=We()?de.useLayoutEffect:de.useEffect,kt=function($n,mn){var Yn=de.useRef(!0);gt(function(){return $n(Yn.current)},mn),gt(function(){return Yn.current=!1,function(){Yn.current=!0}},[])},xt=function($n,mn){kt(function(Yn){if(!Yn)return $n()},mn)},et=kt;function Fe($t){var $n=de.useRef();$n.current=$t;var mn=de.useCallback(function(){for(var Yn,Dr=arguments.length,hi=new Array(Dr),oi=0;oi<Dr;oi++)hi[oi]=arguments[oi];return(Yn=$n.current)===null||Yn===void 0?void 0:Yn.call.apply(Yn,[$n].concat(hi))},[]);return mn}function Dt($t){var $n=React.useRef(!1),mn=React.useState($t),Yn=_slicedToArray(mn,2),Dr=Yn[0],hi=Yn[1];React.useEffect(function(){return $n.current=!1,function(){$n.current=!0}},[]);function oi(Vr,Ct){Ct&&$n.current||hi(Vr)}return[Dr,oi]}function qt($t){return $t!==void 0}function Xt($t,$n){var mn=$n||{},Yn=mn.defaultValue,Dr=mn.value,hi=mn.onChange,oi=mn.postState,Vr=useState(function(){return qt(Dr)?Dr:qt(Yn)?typeof Yn=="function"?Yn():Yn:typeof $t=="function"?$t():$t}),Ct=_slicedToArray(Vr,2),hn=Ct[0],An=Ct[1],jn=Dr!==void 0?Dr:hn,Bt=oi?oi(jn):jn,on=useEvent(hi),Kn=useState([jn]),Dn=_slicedToArray(Kn,2),rr=Dn[0],er=Dn[1];useLayoutUpdateEffect(function(){var ra=rr[0];hn!==ra&&on(hn,ra)},[rr]),useLayoutUpdateEffect(function(){qt(Dr)||An(Dr)},[Dr]);var Gr=useEvent(function(ra,Oi){An(ra,Oi),er([jn],Oi)});return[Bt,Gr]}var Et=te(31461);function zt($t,$n,mn){var Yn=React.useRef({});return(!("value"in Yn.current)||mn(Yn.current.condition,$n))&&(Yn.current.value=$t(),Yn.current.condition=$n),Yn.current.value}function Yt($t,$n){typeof $t=="function"?$t($n):_typeof($t)==="object"&&$t&&"current"in $t&&($t.current=$n)}function Vn(){for(var $t=arguments.length,$n=new Array($t),mn=0;mn<$t;mn++)$n[mn]=arguments[mn];var Yn=$n.filter(function(Dr){return Dr});return Yn.length<=1?Yn[0]:function(Dr){$n.forEach(function(hi){Yt(hi,Dr)})}}function Pn(){for(var $t=arguments.length,$n=new Array($t),mn=0;mn<$t;mn++)$n[mn]=arguments[mn];return useMemo(function(){return Vn.apply(void 0,$n)},$n,function(Yn,Dr){return Yn.length!==Dr.length||Yn.every(function(hi,oi){return hi!==Dr[oi]})})}function _t($t){var $n,mn,Yn=isMemo($t)?$t.type.type:$t.type;return!(typeof Yn=="function"&&!(($n=Yn.prototype)!==null&&$n!==void 0&&$n.render)||typeof $t=="function"&&!((mn=$t.prototype)!==null&&mn!==void 0&&mn.render))}function pn($t){return!isValidElement($t)||isFragment($t)?!1:_t($t)}function sr($t,$n,mn,Yn){if(!$n.length)return mn;var Dr=_toArray($n),hi=Dr[0],oi=Dr.slice(1),Vr;return!$t&&typeof hi=="number"?Vr=[]:Array.isArray($t)?Vr=_toConsumableArray($t):Vr=_objectSpread({},$t),Yn&&mn===void 0&&oi.length===1?delete Vr[hi][oi[0]]:Vr[hi]=sr(Vr[hi],oi,mn,Yn),Vr}function Tn($t,$n,mn){var Yn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return $n.length&&Yn&&mn===void 0&&!get($t,$n.slice(0,-1))?$t:sr($t,$n,mn,Yn)}function Oe($t){return _typeof($t)==="object"&&$t!==null&&Object.getPrototypeOf($t)===Object.prototype}function me($t){return Array.isArray($t)?[]:{}}var he=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ge(){for(var $t=arguments.length,$n=new Array($t),mn=0;mn<$t;mn++)$n[mn]=arguments[mn];var Yn=me($n[0]);return $n.forEach(function(Dr){function hi(oi,Vr){var Ct=new Set(Vr),hn=get(Dr,oi),An=Array.isArray(hn);if(An||Oe(hn)){if(!Ct.has(hn)){Ct.add(hn);var jn=get(Yn,oi);An?Yn=Tn(Yn,oi,[]):(!jn||_typeof(jn)!=="object")&&(Yn=Tn(Yn,oi,me(hn))),he(hn).forEach(function(Bt){hi([].concat(_toConsumableArray(oi),[Bt]),Ct)})}}else Yn=Tn(Yn,oi,hn)}hi([])}),Yn}var ve={},se=[],Ke=function($n){se.push($n)};function bt($t,$n){if(0)var mn}function Wt($t,$n){if(0)var mn}function yn(){ve={}}function bn($t,$n,mn){!$n&&!ve[mn]&&($t(!1,mn),ve[mn]=!0)}function cn($t,$n){bn(bt,$t,$n)}function wn($t,$n){bn(Wt,$t,$n)}cn.preMessage=Ke,cn.resetWarned=yn,cn.noteOnce=wn;var Tt=null,nn=10;function fn($t,$n,mn,Yn,Dr,hi,oi,Vr){var Ct=de.useRef(),hn=de.useState(null),An=(0,Te.Z)(hn,2),jn=An[0],Bt=An[1];return et(function(){if(jn&&jn.times<nn){if(!$t.current){Bt(function(Cl){return(0,fe.Z)({},Cl)});return}hi();var on=jn.targetAlign,Kn=jn.originAlign,Dn=jn.index,rr=jn.offset,er=$t.current.clientHeight,Gr=!1,ra=on,Oi=null;if(er){for(var bi=on||Kn,Ji=0,Ti=0,ua=0,br=Math.min($n.length-1,Dn),Di=0;Di<=br;Di+=1){var ni=Dr($n[Di]);Ti=Ji;var No=mn.get(ni);ua=Ti+(No===void 0?Yn:No),Ji=ua}for(var xa=bi==="top"?rr:er-rr,za=br;za>=0;za-=1){var Lo=Dr($n[za]),Ea=mn.get(Lo);if(Ea===void 0){Gr=!0;break}if(xa-=Ea,xa<=0)break}switch(bi){case"top":Oi=Ti-rr;break;case"bottom":Oi=ua-er+rr;break;default:{var zo=$t.current.scrollTop,gi=zo+er;Ti<zo?ra="top":ua>gi&&(ra="bottom")}}Oi!==null&&oi(Oi),Oi!==jn.lastTop&&(Gr=!0)}Gr&&Bt(function(Cl){return(0,fe.Z)((0,fe.Z)({},Cl),{},{times:Cl.times+1,targetAlign:ra,lastTop:Oi})})}},[jn,$t.current]),function(on){if(on==null){Vr();return}if(Je.cancel(Ct.current),typeof on=="number")oi(on);else if(on&&(0,Ie.Z)(on)==="object"){var Kn,Dn=on.align;"index"in on?Kn=on.index:Kn=$n.findIndex(function(Gr){return Dr(Gr)===on.key});var rr=on.offset,er=rr===void 0?0:rr;Bt({times:0,index:Kn,offset:er,originAlign:Dn})}}}function sn($t,$n,mn,Yn){var Dr=mn-$t,hi=$n-mn,oi=Math.min(Dr,hi)*2;if(Yn<=oi){var Vr=Math.floor(Yn/2);return Yn%2?mn+Vr+1:mn-Vr}return Dr>hi?mn-(Yn-hi):mn+(Yn-Dr)}function an($t,$n,mn){var Yn=$t.length,Dr=$n.length,hi,oi;if(Yn===0&&Dr===0)return null;Yn<Dr?(hi=$t,oi=$n):(hi=$n,oi=$t);var Vr={__EMPTY_ITEM__:!0};function Ct(Kn){return Kn!==void 0?mn(Kn):Vr}for(var hn=null,An=Math.abs(Yn-Dr)!==1,jn=0;jn<oi.length;jn+=1){var Bt=Ct(hi[jn]),on=Ct(oi[jn]);if(Bt!==on){hn=jn,An=An||Bt!==Ct(oi[jn+1]);break}}return hn===null?null:{index:hn,multiple:An}}function xr($t,$n,mn){var Yn=de.useState($t),Dr=(0,Te.Z)(Yn,2),hi=Dr[0],oi=Dr[1],Vr=de.useState(null),Ct=(0,Te.Z)(Vr,2),hn=Ct[0],An=Ct[1];return de.useEffect(function(){var jn=an(hi||[],$t||[],$n);(jn==null?void 0:jn.index)!==void 0&&(mn==null||mn(jn.index),An($t[jn.index])),oi($t)},[$t]),[hn]}var Lt=(typeof navigator=="undefined"?"undefined":(0,Ie.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Vt=Lt,cr=function($t,$n){var mn=(0,de.useRef)(!1),Yn=(0,de.useRef)(null);function Dr(){clearTimeout(Yn.current),mn.current=!0,Yn.current=setTimeout(function(){mn.current=!1},50)}var hi=(0,de.useRef)({top:$t,bottom:$n});return hi.current.top=$t,hi.current.bottom=$n,function(oi){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=oi<0&&hi.current.top||oi>0&&hi.current.bottom;return Vr&&Ct?(clearTimeout(Yn.current),mn.current=!1):(!Ct||mn.current)&&Dr(),!mn.current&&Ct}};function En($t,$n,mn,Yn,Dr){var hi=(0,de.useRef)(0),oi=(0,de.useRef)(null),Vr=(0,de.useRef)(null),Ct=(0,de.useRef)(!1),hn=cr($n,mn);function An(rr,er){Je.cancel(oi.current),hi.current+=er,Vr.current=er,!hn(er)&&(Vt||rr.preventDefault(),oi.current=Je(function(){var Gr=Ct.current?10:1;Dr(hi.current*Gr),hi.current=0}))}function jn(rr,er){Dr(er,!0),Vt||rr.preventDefault()}var Bt=(0,de.useRef)(null),on=(0,de.useRef)(null);function Kn(rr){if($t){Je.cancel(on.current),on.current=Je(function(){Bt.current=null},2);var er=rr.deltaX,Gr=rr.deltaY,ra=rr.shiftKey,Oi=er,bi=Gr;(Bt.current==="sx"||!Bt.current&&ra&&Gr&&!er)&&(Oi=Gr,bi=0,Bt.current="sx");var Ji=Math.abs(Oi),Ti=Math.abs(bi);Bt.current===null&&(Bt.current=Yn&&Ji>Ti?"x":"y"),Bt.current==="y"?An(rr,bi):jn(rr,Oi)}}function Dn(rr){$t&&(Ct.current=rr.detail===Vr.current)}return[Kn,Dn]}var en=14/15;function Fr($t,$n,mn){var Yn=(0,de.useRef)(!1),Dr=(0,de.useRef)(0),hi=(0,de.useRef)(null),oi=(0,de.useRef)(null),Vr,Ct=function(Bt){if(Yn.current){var on=Math.ceil(Bt.touches[0].pageY),Kn=Dr.current-on;Dr.current=on,mn(Kn)&&Bt.preventDefault(),clearInterval(oi.current),oi.current=setInterval(function(){Kn*=en,(!mn(Kn,!0)||Math.abs(Kn)<=.1)&&clearInterval(oi.current)},16)}},hn=function(){Yn.current=!1,Vr()},An=function(Bt){Vr(),Bt.touches.length===1&&!Yn.current&&(Yn.current=!0,Dr.current=Math.ceil(Bt.touches[0].pageY),hi.current=Bt.target,hi.current.addEventListener("touchmove",Ct),hi.current.addEventListener("touchend",hn))};Vr=function(){hi.current&&(hi.current.removeEventListener("touchmove",Ct),hi.current.removeEventListener("touchend",hn))},et(function(){return $t&&$n.current.addEventListener("touchstart",An),function(){var jn;(jn=$n.current)===null||jn===void 0||jn.removeEventListener("touchstart",An),Vr(),clearInterval(oi.current)}},[$t])}var Ur=20;function ai(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,mn=$t/$n*100;return isNaN(mn)&&(mn=0),mn=Math.max(mn,Ur),mn=Math.min(mn,$t/2),Math.floor(mn)}function ei($t,$n,mn,Yn){var Dr=de.useMemo(function(){return[new Map,[]]},[$t,mn.id,Yn]),hi=(0,Te.Z)(Dr,2),oi=hi[0],Vr=hi[1],Ct=function(An){var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:An,Bt=oi.get(An),on=oi.get(jn);if(Bt===void 0||on===void 0)for(var Kn=$t.length,Dn=Vr.length;Dn<Kn;Dn+=1){var rr,er=$t[Dn],Gr=$n(er);oi.set(Gr,Dn);var ra=(rr=mn.get(Gr))!==null&&rr!==void 0?rr:Yn;if(Vr[Dn]=(Vr[Dn-1]||0)+ra,Gr===An&&(Bt=Dn),Gr===jn&&(on=Dn),Bt!==void 0&&on!==void 0)break}return{top:Vr[Bt-1]||0,bottom:Vr[on]}};return Ct}var Mi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],ci=[],Qn={overflowY:"auto",overflowAnchor:"none"};function Or($t,$n){var mn=$t.prefixCls,Yn=mn===void 0?"rc-virtual-list":mn,Dr=$t.className,hi=$t.height,oi=$t.itemHeight,Vr=$t.fullHeight,Ct=Vr===void 0?!0:Vr,hn=$t.style,An=$t.data,jn=$t.children,Bt=$t.itemKey,on=$t.virtual,Kn=$t.direction,Dn=$t.scrollWidth,rr=$t.component,er=rr===void 0?"div":rr,Gr=$t.onScroll,ra=$t.onVirtualScroll,Oi=$t.onVisibleChange,bi=$t.innerProps,Ji=$t.extraRender,Ti=$t.styles,ua=(0,Be.Z)($t,Mi),br=!!(on!==!1&&hi&&oi),Di=br&&An&&(oi*An.length>hi||!!Dn),ni=Kn==="rtl",No=De()(Yn,(0,xe.Z)({},"".concat(Yn,"-rtl"),ni),Dr),xa=An||ci,za=(0,de.useRef)(),Lo=(0,de.useRef)(),Ea=(0,de.useState)(0),zo=(0,Te.Z)(Ea,2),gi=zo[0],Cl=zo[1],pl=(0,de.useState)(0),jl=(0,Te.Z)(pl,2),Ko=jl[0],Do=jl[1],Na=(0,de.useState)(!1),ml=(0,Te.Z)(Na,2),nl=ml[0],Sl=ml[1],Rl=function(){Sl(!0)},Ll=function(){Sl(!1)},wl=de.useCallback(function(xn){return typeof Bt=="function"?Bt(xn):xn==null?void 0:xn[Bt]},[Bt]),Vl={getKey:wl};function _l(xn){Cl(function(fr){var wr;typeof xn=="function"?wr=xn(fr):wr=xn;var lr=Nr(wr);return za.current.scrollTop=lr,lr})}var Fl=(0,de.useRef)({start:0,end:xa.length}),Vo=(0,de.useRef)(),Wn=xr(xa,wl),Nn=(0,Te.Z)(Wn,1),Ir=Nn[0];Vo.current=Ir;var Cr=ft(wl,null,null),Ii=(0,Te.Z)(Cr,4),Ma=Ii[0],Ka=Ii[1],Ya=Ii[2],$a=Ii[3],Za=de.useMemo(function(){if(!br)return{scrollHeight:void 0,start:0,end:xa.length-1,offset:void 0};if(!Di){var xn;return{scrollHeight:((xn=Lo.current)===null||xn===void 0?void 0:xn.offsetHeight)||0,start:0,end:xa.length-1,offset:void 0}}for(var fr=0,wr,lr,kr,di=xa.length,Ni=0;Ni<di;Ni+=1){var Si=xa[Ni],Jr=wl(Si),Bi=Ya.get(Jr),Wi=fr+(Bi===void 0?oi:Bi);Wi>=gi&&wr===void 0&&(wr=Ni,lr=fr),Wi>gi+hi&&kr===void 0&&(kr=Ni),fr=Wi}return wr===void 0&&(wr=0,lr=0,kr=Math.ceil(hi/oi)),kr===void 0&&(kr=xa.length-1),kr=Math.min(kr+1,xa.length-1),{scrollHeight:fr,start:wr,end:kr,offset:lr}},[Di,br,gi,xa,$a,hi]),Go=Za.scrollHeight,Ho=Za.start,Qo=Za.end,vr=Za.offset;Fl.current.start=Ho,Fl.current.end=Qo;var Sr=de.useState({width:0,height:hi}),Tr=(0,Te.Z)(Sr,2),Ae=Tr[0],it=Tr[1],st=function(fr){it({width:fr.width||fr.offsetWidth,height:fr.height||fr.offsetHeight})},yt=(0,de.useRef)(),wt=(0,de.useRef)(),Ft=de.useMemo(function(){return ai(Ae.width,Dn)},[Ae.width,Dn]),Nt=de.useMemo(function(){return ai(Ae.height,Go)},[Ae.height,Go]),gn=Go-hi,Rn=(0,de.useRef)(gn);Rn.current=gn;function Nr(xn){var fr=xn;return Number.isNaN(Rn.current)||(fr=Math.min(fr,Rn.current)),fr=Math.max(fr,0),fr}var Wr=gi<=0,Rr=gi>=gn,Un=cr(Wr,Rr),pr=function(){return{x:ni?-Ko:Ko,y:gi}},Jn=(0,de.useRef)(pr()),_r=Fe(function(){if(ra){var xn=pr();(Jn.current.x!==xn.x||Jn.current.y!==xn.y)&&(ra(xn),Jn.current=xn)}});function yi(xn,fr){var wr=xn;fr?((0,Se.flushSync)(function(){Do(wr)}),_r()):_l(wr)}function Yr(xn){var fr=xn.currentTarget.scrollTop;fr!==gi&&_l(fr),Gr==null||Gr(xn),_r()}var Xr=function(fr){var wr=fr,lr=Dn-Ae.width;return wr=Math.max(wr,0),wr=Math.min(wr,lr),wr},ti=Fe(function(xn,fr){fr?((0,Se.flushSync)(function(){Do(function(wr){var lr=wr+(ni?-xn:xn);return Xr(lr)})}),_r()):_l(function(wr){var lr=wr+xn;return lr})}),fi=En(br,Wr,Rr,!!Dn,ti),Ci=(0,Te.Z)(fi,2),At=Ci[0],vt=Ci[1];Fr(br,za,function(xn,fr){return Un(xn,fr)?!1:(At({preventDefault:function(){},deltaY:xn}),!0)}),et(function(){function xn(wr){br&&wr.preventDefault()}var fr=za.current;return fr.addEventListener("wheel",At),fr.addEventListener("DOMMouseScroll",vt),fr.addEventListener("MozMousePixelScroll",xn),function(){fr.removeEventListener("wheel",At),fr.removeEventListener("DOMMouseScroll",vt),fr.removeEventListener("MozMousePixelScroll",xn)}},[br]),et(function(){Dn&&Do(function(xn){return Xr(xn)})},[Ae.width,Dn]);var On=function(){var fr,wr;(fr=yt.current)===null||fr===void 0||fr.delayHidden(),(wr=wt.current)===null||wr===void 0||wr.delayHidden()},Cn=fn(za,xa,Ya,oi,wl,function(){return Ka(!0)},_l,On);de.useImperativeHandle($n,function(){return{getScrollInfo:pr,scrollTo:function(fr){function wr(lr){return lr&&(0,Ie.Z)(lr)==="object"&&("left"in lr||"top"in lr)}wr(fr)?(fr.left!==void 0&&Do(Xr(fr.left)),Cn(fr.top)):Cn(fr)}}}),et(function(){if(Oi){var xn=xa.slice(Ho,Qo+1);Oi(xn,xa)}},[Ho,Qo,xa]);var mr=ei(xa,wl,Ya,oi),Zr=Ji==null?void 0:Ji({start:Ho,end:Qo,virtual:Di,offsetX:Ko,offsetY:vr,rtl:ni,getSize:mr}),Zt=Ne(xa,Ho,Qo,Dn,Ma,jn,Vl),Ht=null;hi&&(Ht=(0,fe.Z)((0,xe.Z)({},Ct?"height":"maxHeight",hi),Qn),br&&(Ht.overflowY="hidden",Dn&&(Ht.overflowX="hidden"),nl&&(Ht.pointerEvents="none")));var tn={};return ni&&(tn.dir="rtl"),de.createElement("div",(0,E.Z)({style:(0,fe.Z)((0,fe.Z)({},hn),{},{position:"relative"}),className:No},tn,ua),de.createElement(Xe.Z,{onResize:st},de.createElement(er,{className:"".concat(Yn,"-holder"),style:Ht,ref:za,onScroll:Yr,onMouseEnter:On},de.createElement(Ue,{prefixCls:Yn,height:Go,offsetX:Ko,offsetY:vr,scrollWidth:Dn,onInnerResize:Ka,ref:Lo,innerProps:bi,rtl:ni,extra:Zr},Zt))),Di&&Go>hi&&de.createElement(Ee,{ref:yt,prefixCls:Yn,scrollOffset:gi,scrollRange:Go,rtl:ni,onScroll:yi,onStartMove:Rl,onStopMove:Ll,spinSize:Nt,containerSize:Ae.height,style:Ti==null?void 0:Ti.verticalScrollBar,thumbStyle:Ti==null?void 0:Ti.verticalScrollBarThumb}),Di&&Dn&&de.createElement(Ee,{ref:wt,prefixCls:Yn,scrollOffset:Ko,scrollRange:Dn,rtl:ni,onScroll:yi,onStartMove:Rl,onStopMove:Ll,spinSize:Ft,containerSize:Ae.width,horizontal:!0,style:Ti==null?void 0:Ti.horizontalScrollBar,thumbStyle:Ti==null?void 0:Ti.horizontalScrollBarThumb}))}var Hr=de.forwardRef(Or);Hr.displayName="List";var vi=Hr,Zi=vi},66392:function(In,Ut){"use strict";var te;var E=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Ie=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Be=Symbol.for("react.provider"),de=Symbol.for("react.context"),Se=Symbol.for("react.server_context"),pe=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),qe;qe=Symbol.for("react.module.reference");function He(be){if(typeof be=="object"&&be!==null){var Qe=be.$$typeof;switch(Qe){case E:switch(be=be.type,be){case Ie:case xe:case Te:case De:case Xe:return be;default:switch(be=be&&be.$$typeof,be){case Se:case de:case pe:case Ue:case Pe:case Be:return be;default:return Qe}}case fe:return Qe}}}te=de,te=Be,te=E,te=pe,te=Ie,te=Ue,te=Pe,te=fe,te=xe,te=Te,te=De,te=Xe,te=function(){return!1},te=function(){return!1},te=function(be){return He(be)===de},te=function(be){return He(be)===Be},te=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===E},te=function(be){return He(be)===pe},te=function(be){return He(be)===Ie},te=function(be){return He(be)===Ue},te=function(be){return He(be)===Pe},te=function(be){return He(be)===fe},te=function(be){return He(be)===xe},te=function(be){return He(be)===Te},te=function(be){return He(be)===De},te=function(be){return He(be)===Xe},te=function(be){return typeof be=="string"||typeof be=="function"||be===Ie||be===xe||be===Te||be===De||be===Xe||be===rt||typeof be=="object"&&be!==null&&(be.$$typeof===Ue||be.$$typeof===Pe||be.$$typeof===Be||be.$$typeof===de||be.$$typeof===pe||be.$$typeof===qe||be.getModuleId!==void 0)},te=He},31461:function(In,Ut,te){"use strict";te(66392)},66012:function(In,Ut,te){"use strict";te.d(Ut,{Z5:function(){return Vd},_l:function(){return ql},bK:function(){return Ps}});var E=te(67294),fe=te(89611);function Ie(le,ce){le.prototype=Object.create(ce.prototype),le.prototype.constructor=le,(0,fe.Z)(le,ce)}var Te=te(87462),xe=te(14890),Be=E.createContext(null),de=null;function Se(le){le()}var pe=Se,De=function(ce){return pe=ce},Xe=function(){return pe};function Pe(){var le=Xe(),ce=null,Ce=null;return{clear:function(){ce=null,Ce=null},notify:function(){le(function(){for(var dt=ce;dt;)dt.callback(),dt=dt.next})},get:function(){for(var dt=[],ut=ce;ut;)dt.push(ut),ut=ut.next;return dt},subscribe:function(dt){var ut=!0,Mt=Ce={callback:dt,next:null,prev:Ce};return Mt.prev?Mt.prev.next=Mt:ce=Mt,function(){!ut||ce===null||(ut=!1,Mt.next?Mt.next.prev=Mt.prev:Ce=Mt.prev,Mt.prev?Mt.prev.next=Mt.next:ce=Mt.next)}}}}var Ue={notify:function(){},get:function(){return[]}};function rt(le,ce){var Ce,ze=Ue;function dt(Sn){return Fn(),ze.subscribe(Sn)}function ut(){ze.notify()}function Mt(){Gt.onStateChange&&Gt.onStateChange()}function Pt(){return!!Ce}function Fn(){Ce||(Ce=ce?ce.addNestedSub(Mt):le.subscribe(Mt),ze=Pe())}function or(){Ce&&(Ce(),Ce=void 0,ze.clear(),ze=Ue)}var Gt={addNestedSub:dt,notifyNestedSubs:ut,handleChangeWrapper:Mt,isSubscribed:Pt,trySubscribe:Fn,tryUnsubscribe:or,getListeners:function(){return ze}};return Gt}var qe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect;function He(le){var ce=le.store,Ce=le.context,ze=le.children,dt=(0,E.useMemo)(function(){var Pt=rt(ce);return{store:ce,subscription:Pt}},[ce]),ut=(0,E.useMemo)(function(){return ce.getState()},[ce]);qe(function(){var Pt=dt.subscription;return Pt.onStateChange=Pt.notifyNestedSubs,Pt.trySubscribe(),ut!==ce.getState()&&Pt.notifyNestedSubs(),function(){Pt.tryUnsubscribe(),Pt.onStateChange=null}},[dt,ut]);var Mt=Ce||Be;return E.createElement(Mt.Provider,{value:dt},ze)}var be=He,Qe=te(63366),ht=te(8679),Je=te.n(ht),Ze=te(72973),ye=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Ee=["reactReduxForwardedRef"],Ye=[],Ne=[null,null],ot=function(ce){try{return JSON.stringify(ce)}catch(Ce){return String(ce)}};function ct(le,ce){var Ce=le[1];return[ce.payload,Ce+1]}function _e(le,ce,Ce){qe(function(){return le.apply(void 0,ce)},Ce)}function Me(le,ce,Ce,ze,dt,ut,Mt){le.current=ze,ce.current=dt,Ce.current=!1,ut.current&&(ut.current=null,Mt())}function pt(le,ce,Ce,ze,dt,ut,Mt,Pt,Fn,or){if(le){var Gt=!1,Sn=null,Hn=function(){if(!Gt){var Ja=ce.getState(),io,po;try{io=ze(Ja,dt.current)}catch(rl){po=rl,Sn=rl}po||(Sn=null),io===ut.current?Mt.current||Fn():(ut.current=io,Pt.current=io,Mt.current=!0,or({type:"STORE_UPDATED",payload:{error:po}}))}};Ce.onStateChange=Hn,Ce.trySubscribe(),Hn();var Br=function(){if(Gt=!0,Ce.tryUnsubscribe(),Ce.onStateChange=null,Sn)throw Sn};return Br}}var $e=function(){return[null,0]};function ft(le,ce){ce===void 0&&(ce={});var Ce=ce,ze=Ce.getDisplayName,dt=ze===void 0?function(Pl){return"ConnectAdvanced("+Pl+")"}:ze,ut=Ce.methodName,Mt=ut===void 0?"connectAdvanced":ut,Pt=Ce.renderCountProp,Fn=Pt===void 0?void 0:Pt,or=Ce.shouldHandleStateChanges,Gt=or===void 0?!0:or,Sn=Ce.storeKey,Hn=Sn===void 0?"store":Sn,Br=Ce.withRef,wi=Br===void 0?!1:Br,Ja=Ce.forwardRef,io=Ja===void 0?!1:Ja,po=Ce.context,rl=po===void 0?Be:po,xl=(0,Qe.Z)(Ce,ye);if(0)var Bl;var es=rl;return function(ms){var Fu=ms.displayName||ms.name||"Component",vs=dt(Fu),zs=(0,Te.Z)({},xl,{getDisplayName:dt,methodName:Mt,renderCountProp:Fn,shouldHandleStateChanges:Gt,storeKey:Hn,displayName:vs,wrappedComponentName:Fu,WrappedComponent:ms}),nc=xl.pure;function Qu(cc){return le(cc.dispatch,zs)}var Mc=nc?E.useMemo:function(cc){return cc()};function Rc(cc){var xd=(0,E.useMemo)(function(){var rf=cc.reactReduxForwardedRef,af=(0,Qe.Z)(cc,Ee);return[cc.context,rf,af]},[cc]),$c=xd[0],dd=xd[1],Wc=xd[2],qc=(0,E.useMemo)(function(){return $c&&$c.Consumer&&(0,Ze.isContextConsumer)(E.createElement($c.Consumer,null))?$c:es},[$c,es]),yc=(0,E.useContext)(qc),Dc=!!cc.store&&!!cc.store.getState&&!!cc.store.dispatch,yf=!!yc&&!!yc.store,jc=Dc?cc.store:yc.store,_d=(0,E.useMemo)(function(){return Qu(jc)},[jc]),tf=(0,E.useMemo)(function(){if(!Gt)return Ne;var rf=rt(jc,Dc?null:yc.subscription),af=rf.notifyNestedSubs.bind(rf);return[rf,af]},[jc,Dc,yc]),Yd=tf[0],bf=tf[1],xf=(0,E.useMemo)(function(){return Dc?yc:(0,Te.Z)({},yc,{subscription:Yd})},[Dc,yc,Yd]),ch=(0,E.useReducer)(ct,Ye,$e),Vh=ch[0],nf=Vh[0],Gh=ch[1];if(nf&&nf.error)throw nf.error;var dh=(0,E.useRef)(),Zf=(0,E.useRef)(Wc),Ef=(0,E.useRef)(),fh=(0,E.useRef)(!1),Cf=Mc(function(){return Ef.current&&Wc===Zf.current?Ef.current:_d(jc.getState(),Wc)},[jc,nf,Wc]);_e(Me,[Zf,dh,fh,Wc,Cf,Ef,bf]),_e(pt,[Gt,jc,Yd,_d,Zf,dh,fh,Ef,bf,Gh],[jc,Yd,_d]);var Wf=(0,E.useMemo)(function(){return E.createElement(ms,(0,Te.Z)({},Cf,{ref:dd}))},[dd,ms,Cf]),Qh=(0,E.useMemo)(function(){return Gt?E.createElement(qc.Provider,{value:xf},Wf):Wf},[qc,Wf,xf]);return Qh}var kc=nc?E.memo(Rc):Rc;if(kc.WrappedComponent=ms,kc.displayName=Rc.displayName=vs,io){var Ic=E.forwardRef(function(xd,$c){return E.createElement(kc,(0,Te.Z)({},xd,{reactReduxForwardedRef:$c}))});return Ic.displayName=vs,Ic.WrappedComponent=ms,Je()(Ic,ms)}return Je()(kc,ms)}}function We(le,ce){return le===ce?le!==0||ce!==0||1/le===1/ce:le!==le&&ce!==ce}function gt(le,ce){if(We(le,ce))return!0;if(typeof le!="object"||le===null||typeof ce!="object"||ce===null)return!1;var Ce=Object.keys(le),ze=Object.keys(ce);if(Ce.length!==ze.length)return!1;for(var dt=0;dt<Ce.length;dt++)if(!Object.prototype.hasOwnProperty.call(ce,Ce[dt])||!We(le[Ce[dt]],ce[Ce[dt]]))return!1;return!0}function kt(le,ce){var Ce={},ze=function(Mt){var Pt=le[Mt];typeof Pt=="function"&&(Ce[Mt]=function(){return ce(Pt.apply(void 0,arguments))})};for(var dt in le)ze(dt);return Ce}function xt(le){return function(Ce,ze){var dt=le(Ce,ze);function ut(){return dt}return ut.dependsOnOwnProps=!1,ut}}function et(le){return le.dependsOnOwnProps!==null&&le.dependsOnOwnProps!==void 0?!!le.dependsOnOwnProps:le.length!==1}function Fe(le,ce){return function(ze,dt){var ut=dt.displayName,Mt=function(Fn,or){return Mt.dependsOnOwnProps?Mt.mapToProps(Fn,or):Mt.mapToProps(Fn)};return Mt.dependsOnOwnProps=!0,Mt.mapToProps=function(Fn,or){Mt.mapToProps=le,Mt.dependsOnOwnProps=et(le);var Gt=Mt(Fn,or);return typeof Gt=="function"&&(Mt.mapToProps=Gt,Mt.dependsOnOwnProps=et(Gt),Gt=Mt(Fn,or)),Gt},Mt}}function Dt(le){return typeof le=="function"?Fe(le,"mapDispatchToProps"):void 0}function qt(le){return le?void 0:xt(function(ce){return{dispatch:ce}})}function Xt(le){return le&&typeof le=="object"?xt(function(ce){return kt(le,ce)}):void 0}var Et=[Dt,qt,Xt];function zt(le){return typeof le=="function"?Fe(le,"mapStateToProps"):void 0}function Yt(le){return le?void 0:xt(function(){return{}})}var Vn=[zt,Yt];function Pn(le,ce,Ce){return(0,Te.Z)({},Ce,le,ce)}function _t(le){return function(Ce,ze){var dt=ze.displayName,ut=ze.pure,Mt=ze.areMergedPropsEqual,Pt=!1,Fn;return function(Gt,Sn,Hn){var Br=le(Gt,Sn,Hn);return Pt?(!ut||!Mt(Br,Fn))&&(Fn=Br):(Pt=!0,Fn=Br),Fn}}}function pn(le){return typeof le=="function"?_t(le):void 0}function sr(le){return le?void 0:function(){return Pn}}var Tn=[pn,sr],Oe=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function me(le,ce,Ce,ze){return function(ut,Mt){return Ce(le(ut,Mt),ce(ze,Mt),Mt)}}function he(le,ce,Ce,ze,dt){var ut=dt.areStatesEqual,Mt=dt.areOwnPropsEqual,Pt=dt.areStatePropsEqual,Fn=!1,or,Gt,Sn,Hn,Br;function wi(xl,Bl){return or=xl,Gt=Bl,Sn=le(or,Gt),Hn=ce(ze,Gt),Br=Ce(Sn,Hn,Gt),Fn=!0,Br}function Ja(){return Sn=le(or,Gt),ce.dependsOnOwnProps&&(Hn=ce(ze,Gt)),Br=Ce(Sn,Hn,Gt),Br}function io(){return le.dependsOnOwnProps&&(Sn=le(or,Gt)),ce.dependsOnOwnProps&&(Hn=ce(ze,Gt)),Br=Ce(Sn,Hn,Gt),Br}function po(){var xl=le(or,Gt),Bl=!Pt(xl,Sn);return Sn=xl,Bl&&(Br=Ce(Sn,Hn,Gt)),Br}function rl(xl,Bl){var es=!Mt(Bl,Gt),Pl=!ut(xl,or,Bl,Gt);return or=xl,Gt=Bl,es&&Pl?Ja():es?io():Pl?po():Br}return function(Bl,es){return Fn?rl(Bl,es):wi(Bl,es)}}function ge(le,ce){var Ce=ce.initMapStateToProps,ze=ce.initMapDispatchToProps,dt=ce.initMergeProps,ut=(0,Qe.Z)(ce,Oe),Mt=Ce(le,ut),Pt=ze(le,ut),Fn=dt(le,ut),or=ut.pure?he:me;return or(Mt,Pt,Fn,le,ut)}var ve=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function se(le,ce,Ce){for(var ze=ce.length-1;ze>=0;ze--){var dt=ce[ze](le);if(dt)return dt}return function(ut,Mt){throw new Error("Invalid value of type "+typeof le+" for "+Ce+" argument when connecting component "+Mt.wrappedComponentName+".")}}function Ke(le,ce){return le===ce}function bt(le){var ce=le===void 0?{}:le,Ce=ce.connectHOC,ze=Ce===void 0?ft:Ce,dt=ce.mapStateToPropsFactories,ut=dt===void 0?Vn:dt,Mt=ce.mapDispatchToPropsFactories,Pt=Mt===void 0?Et:Mt,Fn=ce.mergePropsFactories,or=Fn===void 0?Tn:Fn,Gt=ce.selectorFactory,Sn=Gt===void 0?ge:Gt;return function(Br,wi,Ja,io){io===void 0&&(io={});var po=io,rl=po.pure,xl=rl===void 0?!0:rl,Bl=po.areStatesEqual,es=Bl===void 0?Ke:Bl,Pl=po.areOwnPropsEqual,ms=Pl===void 0?gt:Pl,Fu=po.areStatePropsEqual,vs=Fu===void 0?gt:Fu,zs=po.areMergedPropsEqual,nc=zs===void 0?gt:zs,Qu=(0,Qe.Z)(po,ve),Mc=se(Br,ut,"mapStateToProps"),Rc=se(wi,Pt,"mapDispatchToProps"),kc=se(Ja,or,"mergeProps");return ze(Sn,(0,Te.Z)({methodName:"connect",getDisplayName:function(cc){return"Connect("+cc+")"},shouldHandleStateChanges:!!Br,initMapStateToProps:Mc,initMapDispatchToProps:Rc,initMergeProps:kc,pure:xl,areStatesEqual:es,areOwnPropsEqual:ms,areStatePropsEqual:vs,areMergedPropsEqual:nc},Qu))}}var Wt=bt();function yn(){var le=useContext(ReactReduxContext);return le}function bn(le){le===void 0&&(le=ReactReduxContext);var ce=le===ReactReduxContext?useDefaultReduxContext:function(){return useContext(le)};return function(){var ze=ce(),dt=ze.store;return dt}}var cn=null;function wn(le){le===void 0&&(le=ReactReduxContext);var ce=le===ReactReduxContext?useDefaultStore:createStoreHook(le);return function(){var ze=ce();return ze.dispatch}}var Tt=null,nn=function(ce,Ce){return ce===Ce};function fn(le,ce,Ce,ze){var dt=useReducer(function(wi){return wi+1},0),ut=dt[1],Mt=useMemo(function(){return createSubscription(Ce,ze)},[Ce,ze]),Pt=useRef(),Fn=useRef(),or=useRef(),Gt=useRef(),Sn=Ce.getState(),Hn;try{if(le!==Fn.current||Sn!==or.current||Pt.current){var Br=le(Sn);Gt.current===void 0||!ce(Br,Gt.current)?Hn=Br:Hn=Gt.current}else Hn=Gt.current}catch(wi){throw Pt.current&&(wi.message+=`
|
|
|
The error may be correlated with this previous error:
|
|
|
`+Pt.current.stack+`
|
|
|
|
|
|
`),wi}return useIsomorphicLayoutEffect(function(){Fn.current=le,or.current=Sn,Gt.current=Hn,Pt.current=void 0}),useIsomorphicLayoutEffect(function(){function wi(){try{var Ja=Ce.getState();if(Ja===or.current)return;var io=Fn.current(Ja);if(ce(io,Gt.current))return;Gt.current=io,or.current=Ja}catch(po){Pt.current=po}ut()}return Mt.onStateChange=wi,Mt.trySubscribe(),wi(),function(){return Mt.tryUnsubscribe()}},[Ce,Mt]),Hn}function sn(le){le===void 0&&(le=ReactReduxContext);var ce=le===ReactReduxContext?useDefaultReduxContext:function(){return useContext(le)};return function(ze,dt){dt===void 0&&(dt=nn);var ut=ce(),Mt=ut.store,Pt=ut.subscription,Fn=fn(ze,dt,Mt,Pt);return useDebugValue(Fn),Fn}}var an=null,xr=te(73935);De(xr.unstable_batchedUpdates);function Lt(le,ce){if(le.length!==ce.length)return!1;for(var Ce=0;Ce<le.length;Ce++)if(le[Ce]!==ce[Ce])return!1;return!0}function Vt(le,ce){var Ce=(0,E.useState)(function(){return{inputs:ce,result:le()}})[0],ze=(0,E.useRef)(!0),dt=(0,E.useRef)(Ce),ut=ze.current||!!(ce&&dt.current.inputs&&Lt(ce,dt.current.inputs)),Mt=ut?dt.current:{inputs:ce,result:le()};return(0,E.useEffect)(function(){ze.current=!1,dt.current=Mt},[Mt]),Mt.result}function cr(le,ce){return Vt(function(){return le},ce)}var En=Vt,en=cr,Fr=!0,Ur="Invariant failed";function ai(le,ce){if(!le){if(Fr)throw new Error(Ur);var Ce=typeof ce=="function"?ce():ce,ze=Ce?"".concat(Ur,": ").concat(Ce):Ur;throw new Error(ze)}}var ei=function(ce){var Ce=ce.top,ze=ce.right,dt=ce.bottom,ut=ce.left,Mt=ze-ut,Pt=dt-Ce,Fn={top:Ce,right:ze,bottom:dt,left:ut,width:Mt,height:Pt,x:ut,y:Ce,center:{x:(ze+ut)/2,y:(dt+Ce)/2}};return Fn},Mi=function(ce,Ce){return{top:ce.top-Ce.top,left:ce.left-Ce.left,bottom:ce.bottom+Ce.bottom,right:ce.right+Ce.right}},ci=function(ce,Ce){return{top:ce.top+Ce.top,left:ce.left+Ce.left,bottom:ce.bottom-Ce.bottom,right:ce.right-Ce.right}},Qn=function(ce,Ce){return{top:ce.top+Ce.y,left:ce.left+Ce.x,bottom:ce.bottom+Ce.y,right:ce.right+Ce.x}},Or={top:0,right:0,bottom:0,left:0},Hr=function(ce){var Ce=ce.borderBox,ze=ce.margin,dt=ze===void 0?Or:ze,ut=ce.border,Mt=ut===void 0?Or:ut,Pt=ce.padding,Fn=Pt===void 0?Or:Pt,or=ei(Mi(Ce,dt)),Gt=ei(ci(Ce,Mt)),Sn=ei(ci(Gt,Fn));return{marginBox:or,borderBox:ei(Ce),paddingBox:Gt,contentBox:Sn,margin:dt,border:Mt,padding:Fn}},vi=function(ce){var Ce=ce.slice(0,-2),ze=ce.slice(-2);if(ze!=="px")return 0;var dt=Number(Ce);return isNaN(dt)&&ai(!1),dt},Zi=function(){return{x:window.pageXOffset,y:window.pageYOffset}},$t=function(ce,Ce){var ze=ce.borderBox,dt=ce.border,ut=ce.margin,Mt=ce.padding,Pt=Qn(ze,Ce);return Hr({borderBox:Pt,border:dt,margin:ut,padding:Mt})},$n=function(ce,Ce){return Ce===void 0&&(Ce=Zi()),$t(ce,Ce)},mn=function(ce,Ce){var ze={top:vi(Ce.marginTop),right:vi(Ce.marginRight),bottom:vi(Ce.marginBottom),left:vi(Ce.marginLeft)},dt={top:vi(Ce.paddingTop),right:vi(Ce.paddingRight),bottom:vi(Ce.paddingBottom),left:vi(Ce.paddingLeft)},ut={top:vi(Ce.borderTopWidth),right:vi(Ce.borderRightWidth),bottom:vi(Ce.borderBottomWidth),left:vi(Ce.borderLeftWidth)};return Hr({borderBox:ce,margin:ze,padding:dt,border:ut})},Yn=function(ce){var Ce=ce.getBoundingClientRect(),ze=window.getComputedStyle(ce);return mn(Ce,ze)},Dr=Number.isNaN||function(ce){return typeof ce=="number"&&ce!==ce};function hi(le,ce){return!!(le===ce||Dr(le)&&Dr(ce))}function oi(le,ce){if(le.length!==ce.length)return!1;for(var Ce=0;Ce<le.length;Ce++)if(!hi(le[Ce],ce[Ce]))return!1;return!0}function Vr(le,ce){ce===void 0&&(ce=oi);var Ce,ze=[],dt,ut=!1;function Mt(){for(var Pt=[],Fn=0;Fn<arguments.length;Fn++)Pt[Fn]=arguments[Fn];return ut&&Ce===this&&ce(Pt,ze)||(dt=le.apply(this,Pt),ut=!0,Ce=this,ze=Pt),dt}return Mt}var Ct=Vr,hn=function(ce){var Ce=[],ze=null,dt=function(){for(var Mt=arguments.length,Pt=new Array(Mt),Fn=0;Fn<Mt;Fn++)Pt[Fn]=arguments[Fn];Ce=Pt,!ze&&(ze=requestAnimationFrame(function(){ze=null,ce.apply(void 0,Ce)}))};return dt.cancel=function(){ze&&(cancelAnimationFrame(ze),ze=null)},dt},An=hn,jn=!0,Bt=/[ \t]{2,}/g,on=/^[ \t]*/gm,Kn=function(ce){return ce.replace(Bt," ").replace(on,"").trim()},Dn=function(ce){return Kn(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+Kn(ce)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},rr=function(ce){return[Dn(ce),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},er="__react-beautiful-dnd-disable-dev-warnings";function Gr(le,ce){var Ce;jn||typeof window!="undefined"&&window[er]||(Ce=console)[le].apply(Ce,rr(ce))}var ra=Gr.bind(null,"warn"),Oi=Gr.bind(null,"error");function bi(){}function Ji(le,ce){return(0,Te.Z)({},le,{},ce)}function Ti(le,ce,Ce){var ze=ce.map(function(dt){var ut=Ji(Ce,dt.options);return le.addEventListener(dt.eventName,dt.fn,ut),function(){le.removeEventListener(dt.eventName,dt.fn,ut)}});return function(){ze.forEach(function(ut){ut()})}}var ua=!0,br="Invariant failed";function Di(le){this.message=le}Di.prototype.toString=function(){return this.message};function ni(le,ce){if(!le)throw ua?new Di(br):new Di(br+": "+(ce||""))}var No=function(le){Ie(ce,le);function ce(){for(var ze,dt=arguments.length,ut=new Array(dt),Mt=0;Mt<dt;Mt++)ut[Mt]=arguments[Mt];return ze=le.call.apply(le,[this].concat(ut))||this,ze.callbacks=null,ze.unbind=bi,ze.onWindowError=function(Pt){var Fn=ze.getCallbacks();Fn.isDragging()&&Fn.tryAbort();var or=Pt.error;or instanceof Di&&Pt.preventDefault()},ze.getCallbacks=function(){if(!ze.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ze.callbacks},ze.setCallbacks=function(Pt){ze.callbacks=Pt},ze}var Ce=ce.prototype;return Ce.componentDidMount=function(){this.unbind=Ti(window,[{eventName:"error",fn:this.onWindowError}])},Ce.componentWillUnmount=function(){this.unbind()},Ce.componentDidCatch=function(dt){if(dt instanceof Di){this.setState({});return}throw dt},Ce.render=function(){return this.props.children(this.setCallbacks)},ce}(E.Component),xa=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,za=function(ce){return ce+1},Lo=function(ce){return`
|
|
|
You have lifted an item in position `+za(ce.source.index)+`
|
|
|
`},Ea=function(ce,Ce){var ze=ce.droppableId===Ce.droppableId,dt=za(ce.index),ut=za(Ce.index);return ze?`
|
|
|
You have moved the item from position `+dt+`
|
|
|
to position `+ut+`
|
|
|
`:`
|
|
|
You have moved the item from position `+dt+`
|
|
|
in list `+ce.droppableId+`
|
|
|
to list `+Ce.droppableId+`
|
|
|
in position `+ut+`
|
|
|
`},zo=function(ce,Ce,ze){var dt=Ce.droppableId===ze.droppableId;return dt?`
|
|
|
The item `+ce+`
|
|
|
has been combined with `+ze.draggableId:`
|
|
|
The item `+ce+`
|
|
|
in list `+Ce.droppableId+`
|
|
|
has been combined with `+ze.draggableId+`
|
|
|
in list `+ze.droppableId+`
|
|
|
`},gi=function(ce){var Ce=ce.destination;if(Ce)return Ea(ce.source,Ce);var ze=ce.combine;return ze?zo(ce.draggableId,ce.source,ze):"You are over an area that cannot be dropped on"},Cl=function(ce){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+za(ce.index)+`
|
|
|
`},pl=function(ce){if(ce.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+Cl(ce.source)+`
|
|
|
`;var Ce=ce.destination,ze=ce.combine;return Ce?`
|
|
|
You have dropped the item.
|
|
|
`+Ea(ce.source,Ce)+`
|
|
|
`:ze?`
|
|
|
You have dropped the item.
|
|
|
`+zo(ce.draggableId,ce.source,ze)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Cl(ce.source)+`
|
|
|
`},jl={dragHandleUsageInstructions:xa,onDragStart:Lo,onDragUpdate:gi,onDragEnd:pl},Ko={x:0,y:0},Do=function(ce,Ce){return{x:ce.x+Ce.x,y:ce.y+Ce.y}},Na=function(ce,Ce){return{x:ce.x-Ce.x,y:ce.y-Ce.y}},ml=function(ce,Ce){return ce.x===Ce.x&&ce.y===Ce.y},nl=function(ce){return{x:ce.x!==0?-ce.x:0,y:ce.y!==0?-ce.y:0}},Sl=function(ce,Ce,ze){var dt;return ze===void 0&&(ze=0),dt={},dt[ce]=Ce,dt[ce==="x"?"y":"x"]=ze,dt},Rl=function(ce,Ce){return Math.sqrt(Math.pow(Ce.x-ce.x,2)+Math.pow(Ce.y-ce.y,2))},Ll=function(ce,Ce){return Math.min.apply(Math,Ce.map(function(ze){return Rl(ce,ze)}))},wl=function(ce){return function(Ce){return{x:ce(Ce.x),y:ce(Ce.y)}}},Vl=function(le,ce){var Ce=ei({top:Math.max(ce.top,le.top),right:Math.min(ce.right,le.right),bottom:Math.min(ce.bottom,le.bottom),left:Math.max(ce.left,le.left)});return Ce.width<=0||Ce.height<=0?null:Ce},_l=function(ce,Ce){return{top:ce.top+Ce.y,left:ce.left+Ce.x,bottom:ce.bottom+Ce.y,right:ce.right+Ce.x}},Fl=function(ce){return[{x:ce.left,y:ce.top},{x:ce.right,y:ce.top},{x:ce.left,y:ce.bottom},{x:ce.right,y:ce.bottom}]},Vo={top:0,right:0,bottom:0,left:0},Wn=function(ce,Ce){return Ce?_l(ce,Ce.scroll.diff.displacement):ce},Nn=function(ce,Ce,ze){if(ze&&ze.increasedBy){var dt;return(0,Te.Z)({},ce,(dt={},dt[Ce.end]=ce[Ce.end]+ze.increasedBy[Ce.line],dt))}return ce},Ir=function(ce,Ce){return Ce&&Ce.shouldClipSubject?Vl(Ce.pageMarginBox,ce):ei(ce)},Cr=function(le){var ce=le.page,Ce=le.withPlaceholder,ze=le.axis,dt=le.frame,ut=Wn(ce.marginBox,dt),Mt=Nn(ut,ze,Ce),Pt=Ir(Mt,dt);return{page:ce,withPlaceholder:Ce,active:Pt}},Ii=function(le,ce){le.frame||ni(!1);var Ce=le.frame,ze=Na(ce,Ce.scroll.initial),dt=nl(ze),ut=(0,Te.Z)({},Ce,{scroll:{initial:Ce.scroll.initial,current:ce,diff:{value:ze,displacement:dt},max:Ce.scroll.max}}),Mt=Cr({page:le.subject.page,withPlaceholder:le.subject.withPlaceholder,axis:le.axis,frame:ut}),Pt=(0,Te.Z)({},le,{frame:ut,subject:Mt});return Pt};function Ma(le){return Number.isInteger?Number.isInteger(le):typeof le=="number"&&isFinite(le)&&Math.floor(le)===le}function Ka(le){return Object.values?Object.values(le):Object.keys(le).map(function(ce){return le[ce]})}function Ya(le,ce){if(le.findIndex)return le.findIndex(ce);for(var Ce=0;Ce<le.length;Ce++)if(ce(le[Ce]))return Ce;return-1}function $a(le,ce){if(le.find)return le.find(ce);var Ce=Ya(le,ce);if(Ce!==-1)return le[Ce]}function Za(le){return Array.prototype.slice.call(le)}var Go=Ct(function(le){return le.reduce(function(ce,Ce){return ce[Ce.descriptor.id]=Ce,ce},{})}),Ho=Ct(function(le){return le.reduce(function(ce,Ce){return ce[Ce.descriptor.id]=Ce,ce},{})}),Qo=Ct(function(le){return Ka(le)}),vr=Ct(function(le){return Ka(le)}),Sr=Ct(function(le,ce){var Ce=vr(ce).filter(function(ze){return le===ze.descriptor.droppableId}).sort(function(ze,dt){return ze.descriptor.index-dt.descriptor.index});return Ce});function Tr(le){return le.at&&le.at.type==="REORDER"?le.at.destination:null}function Ae(le){return le.at&&le.at.type==="COMBINE"?le.at.combine:null}var it=Ct(function(le,ce){return ce.filter(function(Ce){return Ce.descriptor.id!==le.descriptor.id})}),st=function(le){var ce=le.isMovingForward,Ce=le.draggable,ze=le.destination,dt=le.insideDestination,ut=le.previousImpact;if(!ze.isCombineEnabled)return null;var Mt=Tr(ut);if(!Mt)return null;function Pt(Ja){var io={type:"COMBINE",combine:{draggableId:Ja,droppableId:ze.descriptor.id}};return(0,Te.Z)({},ut,{at:io})}var Fn=ut.displaced.all,or=Fn.length?Fn[0]:null;if(ce)return or?Pt(or):null;var Gt=it(Ce,dt);if(!or){if(!Gt.length)return null;var Sn=Gt[Gt.length-1];return Pt(Sn.descriptor.id)}var Hn=Ya(Gt,function(Ja){return Ja.descriptor.id===or});Hn===-1&&ni(!1);var Br=Hn-1;if(Br<0)return null;var wi=Gt[Br];return Pt(wi.descriptor.id)},yt=function(le,ce){return le.descriptor.droppableId===ce.descriptor.id},wt={point:Ko,value:0},Ft={invisible:{},visible:{},all:[]},Nt={displaced:Ft,displacedBy:wt,at:null},gn=function(le,ce){return function(Ce){return le<=Ce&&Ce<=ce}},Rn=function(le){var ce=gn(le.top,le.bottom),Ce=gn(le.left,le.right);return function(ze){var dt=ce(ze.top)&&ce(ze.bottom)&&Ce(ze.left)&&Ce(ze.right);if(dt)return!0;var ut=ce(ze.top)||ce(ze.bottom),Mt=Ce(ze.left)||Ce(ze.right),Pt=ut&&Mt;if(Pt)return!0;var Fn=ze.top<le.top&&ze.bottom>le.bottom,or=ze.left<le.left&&ze.right>le.right,Gt=Fn&∨if(Gt)return!0;var Sn=Fn&&Mt||or&&ut;return Sn}},Nr=function(le){var ce=gn(le.top,le.bottom),Ce=gn(le.left,le.right);return function(ze){var dt=ce(ze.top)&&ce(ze.bottom)&&Ce(ze.left)&&Ce(ze.right);return dt}},Wr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Rr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Un=function(le){return function(ce){var Ce=gn(ce.top,ce.bottom),ze=gn(ce.left,ce.right);return function(dt){return le===Wr?Ce(dt.top)&&Ce(dt.bottom):ze(dt.left)&&ze(dt.right)}}},pr=function(ce,Ce){var ze=Ce.frame?Ce.frame.scroll.diff.displacement:Ko;return _l(ce,ze)},Jn=function(ce,Ce,ze){return Ce.subject.active?ze(Ce.subject.active)(ce):!1},_r=function(ce,Ce,ze){return ze(Ce)(ce)},yi=function(ce){var Ce=ce.target,ze=ce.destination,dt=ce.viewport,ut=ce.withDroppableDisplacement,Mt=ce.isVisibleThroughFrameFn,Pt=ut?pr(Ce,ze):Ce;return Jn(Pt,ze,Mt)&&_r(Pt,dt,Mt)},Yr=function(ce){return yi((0,Te.Z)({},ce,{isVisibleThroughFrameFn:Rn}))},Xr=function(ce){return yi((0,Te.Z)({},ce,{isVisibleThroughFrameFn:Nr}))},ti=function(ce){return yi((0,Te.Z)({},ce,{isVisibleThroughFrameFn:Un(ce.destination.axis)}))},fi=function(ce,Ce,ze){if(typeof ze=="boolean")return ze;if(!Ce)return!0;var dt=Ce.invisible,ut=Ce.visible;if(dt[ce])return!1;var Mt=ut[ce];return Mt?Mt.shouldAnimate:!0};function Ci(le,ce){var Ce=le.page.marginBox,ze={top:ce.point.y,right:0,bottom:0,left:ce.point.x};return ei(Mi(Ce,ze))}function At(le){var ce=le.afterDragging,Ce=le.destination,ze=le.displacedBy,dt=le.viewport,ut=le.forceShouldAnimate,Mt=le.last;return ce.reduce(function(Fn,or){var Gt=Ci(or,ze),Sn=or.descriptor.id;Fn.all.push(Sn);var Hn=Yr({target:Gt,destination:Ce,viewport:dt,withDroppableDisplacement:!0});if(!Hn)return Fn.invisible[or.descriptor.id]=!0,Fn;var Br=fi(Sn,Mt,ut),wi={draggableId:Sn,shouldAnimate:Br};return Fn.visible[Sn]=wi,Fn},{all:[],visible:{},invisible:{}})}function vt(le,ce){if(!le.length)return 0;var Ce=le[le.length-1].descriptor.index;return ce.inHomeList?Ce:Ce+1}function On(le){var ce=le.insideDestination,Ce=le.inHomeList,ze=le.displacedBy,dt=le.destination,ut=vt(ce,{inHomeList:Ce});return{displaced:Ft,displacedBy:ze,at:{type:"REORDER",destination:{droppableId:dt.descriptor.id,index:ut}}}}function Cn(le){var ce=le.draggable,Ce=le.insideDestination,ze=le.destination,dt=le.viewport,ut=le.displacedBy,Mt=le.last,Pt=le.index,Fn=le.forceShouldAnimate,or=yt(ce,ze);if(Pt==null)return On({insideDestination:Ce,inHomeList:or,displacedBy:ut,destination:ze});var Gt=$a(Ce,function(Ja){return Ja.descriptor.index===Pt});if(!Gt)return On({insideDestination:Ce,inHomeList:or,displacedBy:ut,destination:ze});var Sn=it(ce,Ce),Hn=Ce.indexOf(Gt),Br=Sn.slice(Hn),wi=At({afterDragging:Br,destination:ze,displacedBy:ut,last:Mt,viewport:dt.frame,forceShouldAnimate:Fn});return{displaced:wi,displacedBy:ut,at:{type:"REORDER",destination:{droppableId:ze.descriptor.id,index:Pt}}}}function mr(le,ce){return!!ce.effected[le]}var Zr=function(le){var ce=le.isMovingForward,Ce=le.destination,ze=le.draggables,dt=le.combine,ut=le.afterCritical;if(!Ce.isCombineEnabled)return null;var Mt=dt.draggableId,Pt=ze[Mt],Fn=Pt.descriptor.index,or=mr(Mt,ut);return or?ce?Fn:Fn-1:ce?Fn+1:Fn},Zt=function(le){var ce=le.isMovingForward,Ce=le.isInHomeList,ze=le.insideDestination,dt=le.location;if(!ze.length)return null;var ut=dt.index,Mt=ce?ut+1:ut-1,Pt=ze[0].descriptor.index,Fn=ze[ze.length-1].descriptor.index,or=Ce?Fn:Fn+1;return Mt<Pt||Mt>or?null:Mt},Ht=function(le){var ce=le.isMovingForward,Ce=le.isInHomeList,ze=le.draggable,dt=le.draggables,ut=le.destination,Mt=le.insideDestination,Pt=le.previousImpact,Fn=le.viewport,or=le.afterCritical,Gt=Pt.at;if(Gt||ni(!1),Gt.type==="REORDER"){var Sn=Zt({isMovingForward:ce,isInHomeList:Ce,location:Gt.destination,insideDestination:Mt});return Sn==null?null:Cn({draggable:ze,insideDestination:Mt,destination:ut,viewport:Fn,last:Pt.displaced,displacedBy:Pt.displacedBy,index:Sn})}var Hn=Zr({isMovingForward:ce,destination:ut,displaced:Pt.displaced,draggables:dt,combine:Gt.combine,afterCritical:or});return Hn==null?null:Cn({draggable:ze,insideDestination:Mt,destination:ut,viewport:Fn,last:Pt.displaced,displacedBy:Pt.displacedBy,index:Hn})},tn=function(le){var ce=le.displaced,Ce=le.afterCritical,ze=le.combineWith,dt=le.displacedBy,ut=!!(ce.visible[ze]||ce.invisible[ze]);return mr(ze,Ce)?ut?Ko:nl(dt.point):ut?dt.point:Ko},xn=function(le){var ce=le.afterCritical,Ce=le.impact,ze=le.draggables,dt=Ae(Ce);dt||ni(!1);var ut=dt.draggableId,Mt=ze[ut].page.borderBox.center,Pt=tn({displaced:Ce.displaced,afterCritical:ce,combineWith:ut,displacedBy:Ce.displacedBy});return Do(Mt,Pt)},fr=function(ce,Ce){return Ce.margin[ce.start]+Ce.borderBox[ce.size]/2},wr=function(ce,Ce){return Ce.margin[ce.end]+Ce.borderBox[ce.size]/2},lr=function(ce,Ce,ze){return Ce[ce.crossAxisStart]+ze.margin[ce.crossAxisStart]+ze.borderBox[ce.crossAxisSize]/2},kr=function(ce){var Ce=ce.axis,ze=ce.moveRelativeTo,dt=ce.isMoving;return Sl(Ce.line,ze.marginBox[Ce.end]+fr(Ce,dt),lr(Ce,ze.marginBox,dt))},di=function(ce){var Ce=ce.axis,ze=ce.moveRelativeTo,dt=ce.isMoving;return Sl(Ce.line,ze.marginBox[Ce.start]-wr(Ce,dt),lr(Ce,ze.marginBox,dt))},Ni=function(ce){var Ce=ce.axis,ze=ce.moveInto,dt=ce.isMoving;return Sl(Ce.line,ze.contentBox[Ce.start]+fr(Ce,dt),lr(Ce,ze.contentBox,dt))},Si=function(le){var ce=le.impact,Ce=le.draggable,ze=le.draggables,dt=le.droppable,ut=le.afterCritical,Mt=Sr(dt.descriptor.id,ze),Pt=Ce.page,Fn=dt.axis;if(!Mt.length)return Ni({axis:Fn,moveInto:dt.page,isMoving:Pt});var or=ce.displaced,Gt=ce.displacedBy,Sn=or.all[0];if(Sn){var Hn=ze[Sn];if(mr(Sn,ut))return di({axis:Fn,moveRelativeTo:Hn.page,isMoving:Pt});var Br=$t(Hn.page,Gt.point);return di({axis:Fn,moveRelativeTo:Br,isMoving:Pt})}var wi=Mt[Mt.length-1];if(wi.descriptor.id===Ce.descriptor.id)return Pt.borderBox.center;if(mr(wi.descriptor.id,ut)){var Ja=$t(wi.page,nl(ut.displacedBy.point));return kr({axis:Fn,moveRelativeTo:Ja,isMoving:Pt})}return kr({axis:Fn,moveRelativeTo:wi.page,isMoving:Pt})},Jr=function(le,ce){var Ce=le.frame;return Ce?Do(ce,Ce.scroll.diff.displacement):ce},Bi=function(ce){var Ce=ce.impact,ze=ce.draggable,dt=ce.droppable,ut=ce.draggables,Mt=ce.afterCritical,Pt=ze.page.borderBox.center,Fn=Ce.at;return!dt||!Fn?Pt:Fn.type==="REORDER"?Si({impact:Ce,draggable:ze,draggables:ut,droppable:dt,afterCritical:Mt}):xn({impact:Ce,draggables:ut,afterCritical:Mt})},Wi=function(le){var ce=Bi(le),Ce=le.droppable,ze=Ce?Jr(Ce,ce):ce;return ze},da=function(le,ce){var Ce=Na(ce,le.scroll.initial),ze=nl(Ce),dt=ei({top:ce.y,bottom:ce.y+le.frame.height,left:ce.x,right:ce.x+le.frame.width}),ut={frame:dt,scroll:{initial:le.scroll.initial,max:le.scroll.max,current:ce,diff:{value:Ce,displacement:ze}}};return ut};function Vi(le,ce){return le.map(function(Ce){return ce[Ce]})}function Ei(le,ce){for(var Ce=0;Ce<ce.length;Ce++){var ze=ce[Ce].visible[le];if(ze)return ze}return null}var ga=function(le){var ce=le.impact,Ce=le.viewport,ze=le.destination,dt=le.draggables,ut=le.maxScrollChange,Mt=da(Ce,Do(Ce.scroll.current,ut)),Pt=ze.frame?Ii(ze,Do(ze.frame.scroll.current,ut)):ze,Fn=ce.displaced,or=At({afterDragging:Vi(Fn.all,dt),destination:ze,displacedBy:ce.displacedBy,viewport:Mt.frame,last:Fn,forceShouldAnimate:!1}),Gt=At({afterDragging:Vi(Fn.all,dt),destination:Pt,displacedBy:ce.displacedBy,viewport:Ce.frame,last:Fn,forceShouldAnimate:!1}),Sn={},Hn={},Br=[Fn,or,Gt];Fn.all.forEach(function(Ja){var io=Ei(Ja,Br);if(io){Hn[Ja]=io;return}Sn[Ja]=!0});var wi=(0,Te.Z)({},ce,{displaced:{all:Fn.all,invisible:Sn,visible:Hn}});return wi},Ca=function(le,ce){return Do(le.scroll.diff.displacement,ce)},fo=function(le){var ce=le.pageBorderBoxCenter,Ce=le.draggable,ze=le.viewport,dt=Ca(ze,ce),ut=Na(dt,Ce.page.borderBox.center);return Do(Ce.client.borderBox.center,ut)},Bo=function(le){var ce=le.draggable,Ce=le.destination,ze=le.newPageBorderBoxCenter,dt=le.viewport,ut=le.withDroppableDisplacement,Mt=le.onlyOnMainAxis,Pt=Mt===void 0?!1:Mt,Fn=Na(ze,ce.page.borderBox.center),or=_l(ce.page.borderBox,Fn),Gt={target:or,destination:Ce,withDroppableDisplacement:ut,viewport:dt};return Pt?ti(Gt):Xr(Gt)},xo=function(le){var ce=le.isMovingForward,Ce=le.draggable,ze=le.destination,dt=le.draggables,ut=le.previousImpact,Mt=le.viewport,Pt=le.previousPageBorderBoxCenter,Fn=le.previousClientSelection,or=le.afterCritical;if(!ze.isEnabled)return null;var Gt=Sr(ze.descriptor.id,dt),Sn=yt(Ce,ze),Hn=st({isMovingForward:ce,draggable:Ce,destination:ze,insideDestination:Gt,previousImpact:ut})||Ht({isMovingForward:ce,isInHomeList:Sn,draggable:Ce,draggables:dt,destination:ze,insideDestination:Gt,previousImpact:ut,viewport:Mt,afterCritical:or});if(!Hn)return null;var Br=Wi({impact:Hn,draggable:Ce,droppable:ze,draggables:dt,afterCritical:or}),wi=Bo({draggable:Ce,destination:ze,newPageBorderBoxCenter:Br,viewport:Mt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(wi){var Ja=fo({pageBorderBoxCenter:Br,draggable:Ce,viewport:Mt});return{clientSelection:Ja,impact:Hn,scrollJumpRequest:null}}var io=Na(Br,Pt),po=ga({impact:Hn,viewport:Mt,destination:ze,draggables:dt,maxScrollChange:io});return{clientSelection:Fn,impact:po,scrollJumpRequest:io}},Jt=function(ce){var Ce=ce.subject.active;return Ce||ni(!1),Ce},rn=function(le){var ce=le.isMovingForward,Ce=le.pageBorderBoxCenter,ze=le.source,dt=le.droppables,ut=le.viewport,Mt=ze.subject.active;if(!Mt)return null;var Pt=ze.axis,Fn=gn(Mt[Pt.start],Mt[Pt.end]),or=Qo(dt).filter(function(Sn){return Sn!==ze}).filter(function(Sn){return Sn.isEnabled}).filter(function(Sn){return!!Sn.subject.active}).filter(function(Sn){return Rn(ut.frame)(Jt(Sn))}).filter(function(Sn){var Hn=Jt(Sn);return ce?Mt[Pt.crossAxisEnd]<Hn[Pt.crossAxisEnd]:Hn[Pt.crossAxisStart]<Mt[Pt.crossAxisStart]}).filter(function(Sn){var Hn=Jt(Sn),Br=gn(Hn[Pt.start],Hn[Pt.end]);return Fn(Hn[Pt.start])||Fn(Hn[Pt.end])||Br(Mt[Pt.start])||Br(Mt[Pt.end])}).sort(function(Sn,Hn){var Br=Jt(Sn)[Pt.crossAxisStart],wi=Jt(Hn)[Pt.crossAxisStart];return ce?Br-wi:wi-Br}).filter(function(Sn,Hn,Br){return Jt(Sn)[Pt.crossAxisStart]===Jt(Br[0])[Pt.crossAxisStart]});if(!or.length)return null;if(or.length===1)return or[0];var Gt=or.filter(function(Sn){var Hn=gn(Jt(Sn)[Pt.start],Jt(Sn)[Pt.end]);return Hn(Ce[Pt.line])});return Gt.length===1?Gt[0]:Gt.length>1?Gt.sort(function(Sn,Hn){return Jt(Sn)[Pt.start]-Jt(Hn)[Pt.start]})[0]:or.sort(function(Sn,Hn){var Br=Ll(Ce,Fl(Jt(Sn))),wi=Ll(Ce,Fl(Jt(Hn)));return Br!==wi?Br-wi:Jt(Sn)[Pt.start]-Jt(Hn)[Pt.start]})[0]},kn=function(ce,Ce){var ze=ce.page.borderBox.center;return mr(ce.descriptor.id,Ce)?Na(ze,Ce.displacedBy.point):ze},zr=function(ce,Ce){var ze=ce.page.borderBox;return mr(ce.descriptor.id,Ce)?_l(ze,nl(Ce.displacedBy.point)):ze},Mr=function(le){var ce=le.pageBorderBoxCenter,Ce=le.viewport,ze=le.destination,dt=le.insideDestination,ut=le.afterCritical,Mt=dt.filter(function(Pt){return Xr({target:zr(Pt,ut),destination:ze,viewport:Ce.frame,withDroppableDisplacement:!0})}).sort(function(Pt,Fn){var or=Rl(ce,Jr(ze,kn(Pt,ut))),Gt=Rl(ce,Jr(ze,kn(Fn,ut)));return or<Gt?-1:Gt<or?1:Pt.descriptor.index-Fn.descriptor.index});return Mt[0]||null},tr=Ct(function(ce,Ce){var ze=Ce[ce.line];return{value:ze,point:Sl(ce.line,ze)}}),yr=function(ce,Ce,ze){var dt=ce.axis;if(ce.descriptor.mode==="virtual")return Sl(dt.line,Ce[dt.line]);var ut=ce.subject.page.contentBox[dt.size],Mt=Sr(ce.descriptor.id,ze),Pt=Mt.reduce(function(Gt,Sn){return Gt+Sn.client.marginBox[dt.size]},0),Fn=Pt+Ce[dt.line],or=Fn-ut;return or<=0?null:Sl(dt.line,or)},Ln=function(ce,Ce){return(0,Te.Z)({},ce,{scroll:(0,Te.Z)({},ce.scroll,{max:Ce})})},Xn=function(ce,Ce,ze){var dt=ce.frame;yt(Ce,ce)&&ni(!1),ce.subject.withPlaceholder&&ni(!1);var ut=tr(ce.axis,Ce.displaceBy).point,Mt=yr(ce,ut,ze),Pt={placeholderSize:ut,increasedBy:Mt,oldFrameMaxScroll:ce.frame?ce.frame.scroll.max:null};if(!dt){var Fn=Cr({page:ce.subject.page,withPlaceholder:Pt,axis:ce.axis,frame:ce.frame});return(0,Te.Z)({},ce,{subject:Fn})}var or=Mt?Do(dt.scroll.max,Mt):dt.scroll.max,Gt=Ln(dt,or),Sn=Cr({page:ce.subject.page,withPlaceholder:Pt,axis:ce.axis,frame:Gt});return(0,Te.Z)({},ce,{subject:Sn,frame:Gt})},qr=function(ce){var Ce=ce.subject.withPlaceholder;Ce||ni(!1);var ze=ce.frame;if(!ze){var dt=Cr({page:ce.subject.page,axis:ce.axis,frame:null,withPlaceholder:null});return(0,Te.Z)({},ce,{subject:dt})}var ut=Ce.oldFrameMaxScroll;ut||ni(!1);var Mt=Ln(ze,ut),Pt=Cr({page:ce.subject.page,axis:ce.axis,frame:Mt,withPlaceholder:null});return(0,Te.Z)({},ce,{subject:Pt,frame:Mt})},Pi=function(le){var ce=le.previousPageBorderBoxCenter,Ce=le.moveRelativeTo,ze=le.insideDestination,dt=le.draggable,ut=le.draggables,Mt=le.destination,Pt=le.viewport,Fn=le.afterCritical;if(!Ce){if(ze.length)return null;var or={displaced:Ft,displacedBy:wt,at:{type:"REORDER",destination:{droppableId:Mt.descriptor.id,index:0}}},Gt=Wi({impact:or,draggable:dt,droppable:Mt,draggables:ut,afterCritical:Fn}),Sn=yt(dt,Mt)?Mt:Xn(Mt,dt,ut),Hn=Bo({draggable:dt,destination:Sn,newPageBorderBoxCenter:Gt,viewport:Pt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Hn?or:null}var Br=ce[Mt.axis.line]<=Ce.page.borderBox.center[Mt.axis.line],wi=function(){var io=Ce.descriptor.index;return Ce.descriptor.id===dt.descriptor.id||Br?io:io+1}(),Ja=tr(Mt.axis,dt.displaceBy);return Cn({draggable:dt,insideDestination:ze,destination:Mt,viewport:Pt,displacedBy:Ja,last:Ft,index:wi})},Da=function(le){var ce=le.isMovingForward,Ce=le.previousPageBorderBoxCenter,ze=le.draggable,dt=le.isOver,ut=le.draggables,Mt=le.droppables,Pt=le.viewport,Fn=le.afterCritical,or=rn({isMovingForward:ce,pageBorderBoxCenter:Ce,source:dt,droppables:Mt,viewport:Pt});if(!or)return null;var Gt=Sr(or.descriptor.id,ut),Sn=Mr({pageBorderBoxCenter:Ce,viewport:Pt,destination:or,insideDestination:Gt,afterCritical:Fn}),Hn=Pi({previousPageBorderBoxCenter:Ce,destination:or,draggable:ze,draggables:ut,moveRelativeTo:Sn,insideDestination:Gt,viewport:Pt,afterCritical:Fn});if(!Hn)return null;var Br=Wi({impact:Hn,draggable:ze,droppable:or,draggables:ut,afterCritical:Fn}),wi=fo({pageBorderBoxCenter:Br,draggable:ze,viewport:Pt});return{clientSelection:wi,impact:Hn,scrollJumpRequest:null}},la=function(le){var ce=le.at;return ce?ce.type==="REORDER"?ce.destination.droppableId:ce.combine.droppableId:null},La=function(ce,Ce){var ze=la(ce);return ze?Ce[ze]:null},mo=function(le){var ce=le.state,Ce=le.type,ze=La(ce.impact,ce.dimensions.droppables),dt=!!ze,ut=ce.dimensions.droppables[ce.critical.droppable.id],Mt=ze||ut,Pt=Mt.axis.direction,Fn=Pt==="vertical"&&(Ce==="MOVE_UP"||Ce==="MOVE_DOWN")||Pt==="horizontal"&&(Ce==="MOVE_LEFT"||Ce==="MOVE_RIGHT");if(Fn&&!dt)return null;var or=Ce==="MOVE_DOWN"||Ce==="MOVE_RIGHT",Gt=ce.dimensions.draggables[ce.critical.draggable.id],Sn=ce.current.page.borderBoxCenter,Hn=ce.dimensions,Br=Hn.draggables,wi=Hn.droppables;return Fn?xo({isMovingForward:or,previousPageBorderBoxCenter:Sn,draggable:Gt,destination:Mt,draggables:Br,viewport:ce.viewport,previousClientSelection:ce.current.client.selection,previousImpact:ce.impact,afterCritical:ce.afterCritical}):Da({isMovingForward:or,previousPageBorderBoxCenter:Sn,draggable:Gt,isOver:Mt,draggables:Br,droppables:wi,viewport:ce.viewport,afterCritical:ce.afterCritical})};function Ui(le){return le.phase==="DRAGGING"||le.phase==="COLLECTING"}function pi(le){var ce=gn(le.top,le.bottom),Ce=gn(le.left,le.right);return function(dt){return ce(dt.y)&&Ce(dt.x)}}function ri(le,ce){return le.left<ce.right&&le.right>ce.left&&le.top<ce.bottom&&le.bottom>ce.top}function Xa(le){var ce=le.pageBorderBox,Ce=le.draggable,ze=le.candidates,dt=Ce.page.borderBox.center,ut=ze.map(function(Mt){var Pt=Mt.axis,Fn=Sl(Mt.axis.line,ce.center[Pt.line],Mt.page.borderBox.center[Pt.crossAxisLine]);return{id:Mt.descriptor.id,distance:Rl(dt,Fn)}}).sort(function(Mt,Pt){return Pt.distance-Mt.distance});return ut[0]?ut[0].id:null}function ya(le){var ce=le.pageBorderBox,Ce=le.draggable,ze=le.droppables,dt=Qo(ze).filter(function(ut){if(!ut.isEnabled)return!1;var Mt=ut.subject.active;if(!Mt||!ri(ce,Mt))return!1;if(pi(Mt)(ce.center))return!0;var Pt=ut.axis,Fn=Mt.center[Pt.crossAxisLine],or=ce[Pt.crossAxisStart],Gt=ce[Pt.crossAxisEnd],Sn=gn(Mt[Pt.crossAxisStart],Mt[Pt.crossAxisEnd]),Hn=Sn(or),Br=Sn(Gt);return!Hn&&!Br?!0:Hn?or<Fn:Gt>Fn});return dt.length?dt.length===1?dt[0].descriptor.id:Xa({pageBorderBox:ce,draggable:Ce,candidates:dt}):null}var to=function(ce,Ce){return ei(_l(ce,Ce))},Ba=function(le,ce){var Ce=le.frame;return Ce?to(ce,Ce.scroll.diff.value):ce};function Ua(le){var ce=le.displaced,Ce=le.id;return!!(ce.visible[Ce]||ce.invisible[Ce])}function ko(le){var ce=le.draggable,Ce=le.closest,ze=le.inHomeList;return Ce?ze&&Ce.descriptor.index>ce.descriptor.index?Ce.descriptor.index-1:Ce.descriptor.index:null}var Va=function(le){var ce=le.pageBorderBoxWithDroppableScroll,Ce=le.draggable,ze=le.destination,dt=le.insideDestination,ut=le.last,Mt=le.viewport,Pt=le.afterCritical,Fn=ze.axis,or=tr(ze.axis,Ce.displaceBy),Gt=or.value,Sn=ce[Fn.start],Hn=ce[Fn.end],Br=it(Ce,dt),wi=$a(Br,function(io){var po=io.descriptor.id,rl=io.page.borderBox.center[Fn.line],xl=mr(po,Pt),Bl=Ua({displaced:ut,id:po});return xl?Bl?Hn<=rl:Sn<rl-Gt:Bl?Hn<=rl+Gt:Sn<rl}),Ja=ko({draggable:Ce,closest:wi,inHomeList:yt(Ce,ze)});return Cn({draggable:Ce,insideDestination:dt,destination:ze,viewport:Mt,last:ut,displacedBy:or,index:Ja})},qi=4,So=function(le){var ce=le.draggable,Ce=le.pageBorderBoxWithDroppableScroll,ze=le.previousImpact,dt=le.destination,ut=le.insideDestination,Mt=le.afterCritical;if(!dt.isCombineEnabled)return null;var Pt=dt.axis,Fn=tr(dt.axis,ce.displaceBy),or=Fn.value,Gt=Ce[Pt.start],Sn=Ce[Pt.end],Hn=it(ce,ut),Br=$a(Hn,function(Ja){var io=Ja.descriptor.id,po=Ja.page.borderBox,rl=po[Pt.size],xl=rl/qi,Bl=mr(io,Mt),es=Ua({displaced:ze.displaced,id:io});return Bl?es?Sn>po[Pt.start]+xl&&Sn<po[Pt.end]-xl:Gt>po[Pt.start]-or+xl&&Gt<po[Pt.end]-or-xl:es?Sn>po[Pt.start]+or+xl&&Sn<po[Pt.end]+or-xl:Gt>po[Pt.start]+xl&&Gt<po[Pt.end]-xl});if(!Br)return null;var wi={displacedBy:Fn,displaced:ze.displaced,at:{type:"COMBINE",combine:{draggableId:Br.descriptor.id,droppableId:dt.descriptor.id}}};return wi},Ro=function(le){var ce=le.pageOffset,Ce=le.draggable,ze=le.draggables,dt=le.droppables,ut=le.previousImpact,Mt=le.viewport,Pt=le.afterCritical,Fn=to(Ce.page.borderBox,ce),or=ya({pageBorderBox:Fn,draggable:Ce,droppables:dt});if(!or)return Nt;var Gt=dt[or],Sn=Sr(Gt.descriptor.id,ze),Hn=Ba(Gt,Fn);return So({pageBorderBoxWithDroppableScroll:Hn,draggable:Ce,previousImpact:ut,destination:Gt,insideDestination:Sn,afterCritical:Pt})||Va({pageBorderBoxWithDroppableScroll:Hn,draggable:Ce,destination:Gt,insideDestination:Sn,last:ut.displaced,viewport:Mt,afterCritical:Pt})},fl=function(le,ce){var Ce;return(0,Te.Z)({},le,(Ce={},Ce[ce.descriptor.id]=ce,Ce))},Al=function(ce){var Ce=ce.previousImpact,ze=ce.impact,dt=ce.droppables,ut=la(Ce),Mt=la(ze);if(!ut||ut===Mt)return dt;var Pt=dt[ut];if(!Pt.subject.withPlaceholder)return dt;var Fn=qr(Pt);return fl(dt,Fn)},jt=function(le){var ce=le.draggable,Ce=le.draggables,ze=le.droppables,dt=le.previousImpact,ut=le.impact,Mt=Al({previousImpact:dt,impact:ut,droppables:ze}),Pt=la(ut);if(!Pt)return Mt;var Fn=ze[Pt];if(yt(ce,Fn)||Fn.subject.withPlaceholder)return Mt;var or=Xn(Fn,ce,Ce);return fl(Mt,or)},dn=function(le){var ce=le.state,Ce=le.clientSelection,ze=le.dimensions,dt=le.viewport,ut=le.impact,Mt=le.scrollJumpRequest,Pt=dt||ce.viewport,Fn=ze||ce.dimensions,or=Ce||ce.current.client.selection,Gt=Na(or,ce.initial.client.selection),Sn={offset:Gt,selection:or,borderBoxCenter:Do(ce.initial.client.borderBoxCenter,Gt)},Hn={selection:Do(Sn.selection,Pt.scroll.current),borderBoxCenter:Do(Sn.borderBoxCenter,Pt.scroll.current),offset:Do(Sn.offset,Pt.scroll.diff.value)},Br={client:Sn,page:Hn};if(ce.phase==="COLLECTING")return(0,Te.Z)({phase:"COLLECTING"},ce,{dimensions:Fn,viewport:Pt,current:Br});var wi=Fn.draggables[ce.critical.draggable.id],Ja=ut||Ro({pageOffset:Hn.offset,draggable:wi,draggables:Fn.draggables,droppables:Fn.droppables,previousImpact:ce.impact,viewport:Pt,afterCritical:ce.afterCritical}),io=jt({draggable:wi,impact:Ja,previousImpact:ce.impact,draggables:Fn.draggables,droppables:Fn.droppables}),po=(0,Te.Z)({},ce,{current:Br,dimensions:{draggables:Fn.draggables,droppables:io},impact:Ja,viewport:Pt,scrollJumpRequest:Mt||null,forceShouldAnimate:Mt?!1:null});return po};function Mn(le,ce){return le.map(function(Ce){return ce[Ce]})}var ur=function(le){var ce=le.impact,Ce=le.viewport,ze=le.draggables,dt=le.destination,ut=le.forceShouldAnimate,Mt=ce.displaced,Pt=Mn(Mt.all,ze),Fn=At({afterDragging:Pt,destination:dt,displacedBy:ce.displacedBy,viewport:Ce.frame,forceShouldAnimate:ut,last:Mt});return(0,Te.Z)({},ce,{displaced:Fn})},Qi=function(le){var ce=le.impact,Ce=le.draggable,ze=le.droppable,dt=le.draggables,ut=le.viewport,Mt=le.afterCritical,Pt=Wi({impact:ce,draggable:Ce,draggables:dt,droppable:ze,afterCritical:Mt});return fo({pageBorderBoxCenter:Pt,draggable:Ce,viewport:ut})},dr=function(le){var ce=le.state,Ce=le.dimensions,ze=le.viewport;ce.movementMode!=="SNAP"&&ni(!1);var dt=ce.impact,ut=ze||ce.viewport,Mt=Ce||ce.dimensions,Pt=Mt.draggables,Fn=Mt.droppables,or=Pt[ce.critical.draggable.id],Gt=la(dt);Gt||ni(!1);var Sn=Fn[Gt],Hn=ur({impact:dt,viewport:ut,destination:Sn,draggables:Pt}),Br=Qi({impact:Hn,draggable:or,droppable:Sn,draggables:Pt,viewport:ut,afterCritical:ce.afterCritical});return dn({impact:Hn,clientSelection:Br,state:ce,dimensions:Mt,viewport:ut})},ii=function(le){return{index:le.index,droppableId:le.droppableId}},si=function(le){var ce=le.draggable,Ce=le.home,ze=le.draggables,dt=le.viewport,ut=tr(Ce.axis,ce.displaceBy),Mt=Sr(Ce.descriptor.id,ze),Pt=Mt.indexOf(ce);Pt===-1&&ni(!1);var Fn=Mt.slice(Pt+1),or=Fn.reduce(function(Br,wi){return Br[wi.descriptor.id]=!0,Br},{}),Gt={inVirtualList:Ce.descriptor.mode==="virtual",displacedBy:ut,effected:or},Sn=At({afterDragging:Fn,destination:Ce,displacedBy:ut,last:null,viewport:dt.frame,forceShouldAnimate:!1}),Hn={displaced:Sn,displacedBy:ut,at:{type:"REORDER",destination:ii(ce.descriptor)}};return{impact:Hn,afterCritical:Gt}},ki=function(le,ce){return{draggables:le.draggables,droppables:fl(le.droppables,ce)}},Yi=function(ce){},Lr=function(ce){},ia=function(le){var ce=le.draggable,Ce=le.offset,ze=le.initialWindowScroll,dt=$t(ce.client,Ce),ut=$n(dt,ze),Mt=(0,Te.Z)({},ce,{placeholder:(0,Te.Z)({},ce.placeholder,{client:dt}),client:dt,page:ut});return Mt},Ha=function(le){var ce=le.frame;return ce||ni(!1),ce},ro=function(le){var ce=le.additions,Ce=le.updatedDroppables,ze=le.viewport,dt=ze.scroll.diff.value;return ce.map(function(ut){var Mt=ut.descriptor.droppableId,Pt=Ce[Mt],Fn=Ha(Pt),or=Fn.scroll.diff.value,Gt=Do(dt,or),Sn=ia({draggable:ut,offset:Gt,initialWindowScroll:ze.scroll.initial});return Sn})},Xi=function(le){var ce=le.state,Ce=le.published;Yi();var ze=Ce.modified.map(function(xl){var Bl=ce.dimensions.droppables[xl.droppableId],es=Ii(Bl,xl.scroll);return es}),dt=(0,Te.Z)({},ce.dimensions.droppables,{},Go(ze)),ut=Ho(ro({additions:Ce.additions,updatedDroppables:dt,viewport:ce.viewport})),Mt=(0,Te.Z)({},ce.dimensions.draggables,{},ut);Ce.removals.forEach(function(xl){delete Mt[xl]});var Pt={droppables:dt,draggables:Mt},Fn=la(ce.impact),or=Fn?Pt.droppables[Fn]:null,Gt=Pt.draggables[ce.critical.draggable.id],Sn=Pt.droppables[ce.critical.droppable.id],Hn=si({draggable:Gt,home:Sn,draggables:Mt,viewport:ce.viewport}),Br=Hn.impact,wi=Hn.afterCritical,Ja=or&&or.isCombineEnabled?ce.impact:Br,io=Ro({pageOffset:ce.current.page.offset,draggable:Pt.draggables[ce.critical.draggable.id],draggables:Pt.draggables,droppables:Pt.droppables,previousImpact:Ja,viewport:ce.viewport,afterCritical:wi});Lr();var po=(0,Te.Z)({phase:"DRAGGING"},ce,{phase:"DRAGGING",impact:io,onLiftImpact:Br,dimensions:Pt,afterCritical:wi,forceShouldAnimate:!1});if(ce.phase==="COLLECTING")return po;var rl=(0,Te.Z)({phase:"DROP_PENDING"},po,{phase:"DROP_PENDING",reason:ce.reason,isWaiting:!1});return rl},Wa=function(ce){return ce.movementMode==="SNAP"},_i=function(ce,Ce,ze){var dt=ki(ce.dimensions,Ce);return!Wa(ce)||ze?dn({state:ce,dimensions:dt}):dr({state:ce,dimensions:dt})};function jr(le){return le.isDragging&&le.movementMode==="SNAP"?(0,Te.Z)({phase:"DRAGGING"},le,{scrollJumpRequest:null}):le}var li={phase:"IDLE",completed:null,shouldFlush:!1},va=function(le,ce){if(le===void 0&&(le=li),ce.type==="FLUSH")return(0,Te.Z)({},li,{shouldFlush:!0});if(ce.type==="INITIAL_PUBLISH"){le.phase!=="IDLE"&&ni(!1);var Ce=ce.payload,ze=Ce.critical,dt=Ce.clientSelection,ut=Ce.viewport,Mt=Ce.dimensions,Pt=Ce.movementMode,Fn=Mt.draggables[ze.draggable.id],or=Mt.droppables[ze.droppable.id],Gt={selection:dt,borderBoxCenter:Fn.client.borderBox.center,offset:Ko},Sn={client:Gt,page:{selection:Do(Gt.selection,ut.scroll.initial),borderBoxCenter:Do(Gt.selection,ut.scroll.initial),offset:Do(Gt.selection,ut.scroll.diff.value)}},Hn=Qo(Mt.droppables).every(function(xf){return!xf.isFixedOnPage}),Br=si({draggable:Fn,home:or,draggables:Mt.draggables,viewport:ut}),wi=Br.impact,Ja=Br.afterCritical,io={phase:"DRAGGING",isDragging:!0,critical:ze,movementMode:Pt,dimensions:Mt,initial:Sn,current:Sn,isWindowScrollAllowed:Hn,impact:wi,afterCritical:Ja,onLiftImpact:wi,viewport:ut,scrollJumpRequest:null,forceShouldAnimate:null};return io}if(ce.type==="COLLECTION_STARTING"){if(le.phase==="COLLECTING"||le.phase==="DROP_PENDING")return le;le.phase!=="DRAGGING"&&ni(!1);var po=(0,Te.Z)({phase:"COLLECTING"},le,{phase:"COLLECTING"});return po}if(ce.type==="PUBLISH_WHILE_DRAGGING")return le.phase==="COLLECTING"||le.phase==="DROP_PENDING"||ni(!1),Xi({state:le,published:ce.payload});if(ce.type==="MOVE"){if(le.phase==="DROP_PENDING")return le;Ui(le)||ni(!1);var rl=ce.payload.client;return ml(rl,le.current.client.selection)?le:dn({state:le,clientSelection:rl,impact:Wa(le)?le.impact:null})}if(ce.type==="UPDATE_DROPPABLE_SCROLL"){if(le.phase==="DROP_PENDING"||le.phase==="COLLECTING")return jr(le);Ui(le)||ni(!1);var xl=ce.payload,Bl=xl.id,es=xl.newScroll,Pl=le.dimensions.droppables[Bl];if(!Pl)return le;var ms=Ii(Pl,es);return _i(le,ms,!1)}if(ce.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(le.phase==="DROP_PENDING")return le;Ui(le)||ni(!1);var Fu=ce.payload,vs=Fu.id,zs=Fu.isEnabled,nc=le.dimensions.droppables[vs];nc||ni(!1),nc.isEnabled===zs&&ni(!1);var Qu=(0,Te.Z)({},nc,{isEnabled:zs});return _i(le,Qu,!0)}if(ce.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(le.phase==="DROP_PENDING")return le;Ui(le)||ni(!1);var Mc=ce.payload,Rc=Mc.id,kc=Mc.isCombineEnabled,Ic=le.dimensions.droppables[Rc];Ic||ni(!1),Ic.isCombineEnabled===kc&&ni(!1);var cc=(0,Te.Z)({},Ic,{isCombineEnabled:kc});return _i(le,cc,!0)}if(ce.type==="MOVE_BY_WINDOW_SCROLL"){if(le.phase==="DROP_PENDING"||le.phase==="DROP_ANIMATING")return le;Ui(le)||ni(!1),le.isWindowScrollAllowed||ni(!1);var xd=ce.payload.newScroll;if(ml(le.viewport.scroll.current,xd))return jr(le);var $c=da(le.viewport,xd);return Wa(le)?dr({state:le,viewport:$c}):dn({state:le,viewport:$c})}if(ce.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ui(le))return le;var dd=ce.payload.maxScroll;if(ml(dd,le.viewport.scroll.max))return le;var Wc=(0,Te.Z)({},le.viewport,{scroll:(0,Te.Z)({},le.viewport.scroll,{max:dd})});return(0,Te.Z)({phase:"DRAGGING"},le,{viewport:Wc})}if(ce.type==="MOVE_UP"||ce.type==="MOVE_DOWN"||ce.type==="MOVE_LEFT"||ce.type==="MOVE_RIGHT"){if(le.phase==="COLLECTING"||le.phase==="DROP_PENDING")return le;le.phase!=="DRAGGING"&&ni(!1);var qc=mo({state:le,type:ce.type});return qc?dn({state:le,impact:qc.impact,clientSelection:qc.clientSelection,scrollJumpRequest:qc.scrollJumpRequest}):le}if(ce.type==="DROP_PENDING"){var yc=ce.payload.reason;le.phase!=="COLLECTING"&&ni(!1);var Dc=(0,Te.Z)({phase:"DROP_PENDING"},le,{phase:"DROP_PENDING",isWaiting:!0,reason:yc});return Dc}if(ce.type==="DROP_ANIMATE"){var yf=ce.payload,jc=yf.completed,_d=yf.dropDuration,tf=yf.newHomeClientOffset;le.phase==="DRAGGING"||le.phase==="DROP_PENDING"||ni(!1);var Yd={phase:"DROP_ANIMATING",completed:jc,dropDuration:_d,newHomeClientOffset:tf,dimensions:le.dimensions};return Yd}if(ce.type==="DROP_COMPLETE"){var bf=ce.payload.completed;return{phase:"IDLE",completed:bf,shouldFlush:!1}}return le},tt=function(ce){return{type:"BEFORE_INITIAL_CAPTURE",payload:ce}},nt=function(ce){return{type:"LIFT",payload:ce}},Qt=function(ce){return{type:"INITIAL_PUBLISH",payload:ce}},Kt=function(ce){return{type:"PUBLISH_WHILE_DRAGGING",payload:ce}},Bn=function(){return{type:"COLLECTION_STARTING",payload:null}},Gn=function(ce){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ce}},_n=function(ce){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ce}},Pr=function(ce){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ce}},Kr=function(ce){return{type:"MOVE",payload:ce}},Er=function(ce){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ce}},ta=function(ce){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ce}},zi=function(){return{type:"MOVE_UP",payload:null}},ji=function(){return{type:"MOVE_DOWN",payload:null}},Li=function(){return{type:"MOVE_RIGHT",payload:null}},ea=function(){return{type:"MOVE_LEFT",payload:null}},Hi=function(){return{type:"FLUSH",payload:null}},ka=function(ce){return{type:"DROP_ANIMATE",payload:ce}},vo=function(ce){return{type:"DROP_COMPLETE",payload:ce}},Fo=function(ce){return{type:"DROP",payload:ce}},Zo=function(ce){return{type:"DROP_PENDING",payload:ce}},Ao=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function qo(le){if(!(le.length<=1)){for(var ce=le.map(function(Pt){return Pt.descriptor.index}),Ce={},ze=1;ze<ce.length;ze++){var dt=ce[ze],ut=ce[ze-1];dt!==ut+1&&(Ce[dt]=!0)}if(Object.keys(Ce).length)var Mt=ce.map(function(Pt){var Fn=!!Ce[Pt];return Fn?"[\u{1F525}"+Pt+"]":""+Pt}).join(", ")}}function go(le,ce){if(0)var Ce}var Io=function(le){return function(ce){var Ce=ce.getState,ze=ce.dispatch;return function(dt){return function(ut){if(ut.type!=="LIFT"){dt(ut);return}var Mt=ut.payload,Pt=Mt.id,Fn=Mt.clientSelection,or=Mt.movementMode,Gt=Ce();Gt.phase==="DROP_ANIMATING"&&ze(vo({completed:Gt.completed})),Ce().phase!=="IDLE"&&ni(!1),ze(Hi()),ze(tt({draggableId:Pt,movementMode:or}));var Sn={shouldPublishImmediately:or==="SNAP"},Hn={draggableId:Pt,scrollOptions:Sn},Br=le.startPublishing(Hn),wi=Br.critical,Ja=Br.dimensions,io=Br.viewport;go(wi,Ja),ze(Qt({critical:wi,dimensions:Ja,clientSelection:Fn,movementMode:or,viewport:io}))}}}},Xo=function(le){return function(){return function(ce){return function(Ce){Ce.type==="INITIAL_PUBLISH"&&le.dragging(),Ce.type==="DROP_ANIMATE"&&le.dropping(Ce.payload.completed.result.reason),(Ce.type==="FLUSH"||Ce.type==="DROP_COMPLETE")&&le.resting(),ce(Ce)}}}},Fa={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},_a={opacity:{drop:0,combining:.7},scale:{drop:.75}},no={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Yo=no.outOfTheWay+"s "+Fa.outOfTheWay,Wo={fluid:"opacity "+Yo,snap:"transform "+Yo+", opacity "+Yo,drop:function(ce){var Ce=ce+"s "+Fa.drop;return"transform "+Ce+", opacity "+Ce},outOfTheWay:"transform "+Yo,placeholder:"height "+Yo+", width "+Yo+", margin "+Yo},il=function(ce){return ml(ce,Ko)?null:"translate("+ce.x+"px, "+ce.y+"px)"},el={moveTo:il,drop:function(ce,Ce){var ze=il(ce);return ze?Ce?ze+" scale("+_a.scale.drop+")":ze:null}},cl=no.minDropTime,vl=no.maxDropTime,gl=vl-cl,kl=1500,gr=.6,Gi=function(le){var ce=le.current,Ce=le.destination,ze=le.reason,dt=Rl(ce,Ce);if(dt<=0)return cl;if(dt>=kl)return vl;var ut=dt/kl,Mt=cl+gl*ut,Pt=ze==="CANCEL"?Mt*gr:Mt;return Number(Pt.toFixed(2))},ho=function(le){var ce=le.impact,Ce=le.draggable,ze=le.dimensions,dt=le.viewport,ut=le.afterCritical,Mt=ze.draggables,Pt=ze.droppables,Fn=la(ce),or=Fn?Pt[Fn]:null,Gt=Pt[Ce.descriptor.droppableId],Sn=Qi({impact:ce,draggable:Ce,draggables:Mt,afterCritical:ut,droppable:or||Gt,viewport:dt}),Hn=Na(Sn,Ce.client.borderBox.center);return Hn},Ga=function(le){var ce=le.draggables,Ce=le.reason,ze=le.lastImpact,dt=le.home,ut=le.viewport,Mt=le.onLiftImpact;if(!ze.at||Ce!=="DROP"){var Pt=ur({draggables:ce,impact:Mt,destination:dt,viewport:ut,forceShouldAnimate:!0});return{impact:Pt,didDropInsideDroppable:!1}}if(ze.at.type==="REORDER")return{impact:ze,didDropInsideDroppable:!0};var Fn=(0,Te.Z)({},ze,{displaced:Ft});return{impact:Fn,didDropInsideDroppable:!0}},mi=function(le){var ce=le.getState,Ce=le.dispatch;return function(ze){return function(dt){if(dt.type!=="DROP"){ze(dt);return}var ut=ce(),Mt=dt.payload.reason;if(ut.phase==="COLLECTING"){Ce(Zo({reason:Mt}));return}if(ut.phase!=="IDLE"){var Pt=ut.phase==="DROP_PENDING"&&ut.isWaiting;Pt&&ni(!1),ut.phase==="DRAGGING"||ut.phase==="DROP_PENDING"||ni(!1);var Fn=ut.critical,or=ut.dimensions,Gt=or.draggables[ut.critical.draggable.id],Sn=Ga({reason:Mt,lastImpact:ut.impact,afterCritical:ut.afterCritical,onLiftImpact:ut.onLiftImpact,home:ut.dimensions.droppables[ut.critical.droppable.id],viewport:ut.viewport,draggables:ut.dimensions.draggables}),Hn=Sn.impact,Br=Sn.didDropInsideDroppable,wi=Br?Tr(Hn):null,Ja=Br?Ae(Hn):null,io={index:Fn.draggable.index,droppableId:Fn.droppable.id},po={draggableId:Gt.descriptor.id,type:Gt.descriptor.type,source:io,reason:Mt,mode:ut.movementMode,destination:wi,combine:Ja},rl=ho({impact:Hn,draggable:Gt,dimensions:or,viewport:ut.viewport,afterCritical:ut.afterCritical}),xl={critical:ut.critical,afterCritical:ut.afterCritical,result:po,impact:Hn},Bl=!ml(ut.current.client.offset,rl)||!!po.combine;if(!Bl){Ce(vo({completed:xl}));return}var es=Gi({current:ut.current.client.offset,destination:rl,reason:Mt}),Pl={newHomeClientOffset:rl,dropDuration:es,completed:xl};Ce(ka(Pl))}}}},Sa=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function wa(le){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Ce){Ce.target!==window&&Ce.target!==window.document||le()}}}function Qa(le){var ce=le.onWindowScroll;function Ce(){ce(Sa())}var ze=An(Ce),dt=wa(ze),ut=bi;function Mt(){return ut!==bi}function Pt(){Mt()&&ni(!1),ut=Ti(window,[dt])}function Fn(){Mt()||ni(!1),ze.cancel(),ut(),ut=bi}return{start:Pt,stop:Fn,isActive:Mt}}var ca=function(ce){return ce.type==="DROP_COMPLETE"||ce.type==="DROP_ANIMATE"||ce.type==="FLUSH"},ba=function(le){var ce=Qa({onWindowScroll:function(ze){le.dispatch(Er({newScroll:ze}))}});return function(Ce){return function(ze){!ce.isActive()&&ze.type==="INITIAL_PUBLISH"&&ce.start(),ce.isActive()&&ca(ze)&&ce.stop(),Ce(ze)}}},Ta=function(le){var ce=!1,Ce=!1,ze=setTimeout(function(){Ce=!0}),dt=function(Mt){ce||Ce||(ce=!0,le(Mt),clearTimeout(ze))};return dt.wasCalled=function(){return ce},dt},Eo=function(){var le=[],ce=function(ut){var Mt=Ya(le,function(or){return or.timerId===ut});Mt===-1&&ni(!1);var Pt=le.splice(Mt,1),Fn=Pt[0];Fn.callback()},Ce=function(ut){var Mt=setTimeout(function(){return ce(Mt)}),Pt={timerId:Mt,callback:ut};le.push(Pt)},ze=function(){if(le.length){var ut=[].concat(le);le.length=0,ut.forEach(function(Mt){clearTimeout(Mt.timerId),Mt.callback()})}};return{add:Ce,flush:ze}},al=function(ce,Ce){return ce==null&&Ce==null?!0:ce==null||Ce==null?!1:ce.droppableId===Ce.droppableId&&ce.index===Ce.index},oa=function(ce,Ce){return ce==null&&Ce==null?!0:ce==null||Ce==null?!1:ce.draggableId===Ce.draggableId&&ce.droppableId===Ce.droppableId},Jo=function(ce,Ce){if(ce===Ce)return!0;var ze=ce.draggable.id===Ce.draggable.id&&ce.draggable.droppableId===Ce.draggable.droppableId&&ce.draggable.type===Ce.draggable.type&&ce.draggable.index===Ce.draggable.index,dt=ce.droppable.id===Ce.droppable.id&&ce.droppable.type===Ce.droppable.type;return ze&&dt},Po=function(ce,Ce){Yi(),Ce(),Lr()},ll=function(ce,Ce){return{draggableId:ce.draggable.id,type:ce.droppable.type,source:{droppableId:ce.droppable.id,index:ce.draggable.index},mode:Ce}},Yl=function(ce,Ce,ze,dt){if(!ce){ze(dt(Ce));return}var ut=Ta(ze),Mt={announce:ut};ce(Ce,Mt),ut.wasCalled()||ze(dt(Ce))},$l=function(le,ce){var Ce=Eo(),ze=null,dt=function(Hn,Br){ze&&ni(!1),Po("onBeforeCapture",function(){var wi=le().onBeforeCapture;if(wi){var Ja={draggableId:Hn,mode:Br};wi(Ja)}})},ut=function(Hn,Br){ze&&ni(!1),Po("onBeforeDragStart",function(){var wi=le().onBeforeDragStart;wi&&wi(ll(Hn,Br))})},Mt=function(Hn,Br){ze&&ni(!1);var wi=ll(Hn,Br);ze={mode:Br,lastCritical:Hn,lastLocation:wi.source,lastCombine:null},Ce.add(function(){Po("onDragStart",function(){return Yl(le().onDragStart,wi,ce,jl.onDragStart)})})},Pt=function(Hn,Br){var wi=Tr(Br),Ja=Ae(Br);ze||ni(!1);var io=!Jo(Hn,ze.lastCritical);io&&(ze.lastCritical=Hn);var po=!al(ze.lastLocation,wi);po&&(ze.lastLocation=wi);var rl=!oa(ze.lastCombine,Ja);if(rl&&(ze.lastCombine=Ja),!(!io&&!po&&!rl)){var xl=(0,Te.Z)({},ll(Hn,ze.mode),{combine:Ja,destination:wi});Ce.add(function(){Po("onDragUpdate",function(){return Yl(le().onDragUpdate,xl,ce,jl.onDragUpdate)})})}},Fn=function(){ze||ni(!1),Ce.flush()},or=function(Hn){ze||ni(!1),ze=null,Po("onDragEnd",function(){return Yl(le().onDragEnd,Hn,ce,jl.onDragEnd)})},Gt=function(){if(ze){var Hn=(0,Te.Z)({},ll(ze.lastCritical,ze.mode),{combine:null,destination:null,reason:"CANCEL"});or(Hn)}};return{beforeCapture:dt,beforeStart:ut,start:Mt,update:Pt,flush:Fn,drop:or,abort:Gt}},us=function(le,ce){var Ce=$l(le,ce);return function(ze){return function(dt){return function(ut){if(ut.type==="BEFORE_INITIAL_CAPTURE"){Ce.beforeCapture(ut.payload.draggableId,ut.payload.movementMode);return}if(ut.type==="INITIAL_PUBLISH"){var Mt=ut.payload.critical;Ce.beforeStart(Mt,ut.payload.movementMode),dt(ut),Ce.start(Mt,ut.payload.movementMode);return}if(ut.type==="DROP_COMPLETE"){var Pt=ut.payload.completed.result;Ce.flush(),dt(ut),Ce.drop(Pt);return}if(dt(ut),ut.type==="FLUSH"){Ce.abort();return}var Fn=ze.getState();Fn.phase==="DRAGGING"&&Ce.update(Fn.critical,Fn.impact)}}}},ds=function(le){return function(ce){return function(Ce){if(Ce.type!=="DROP_ANIMATION_FINISHED"){ce(Ce);return}var ze=le.getState();ze.phase!=="DROP_ANIMATING"&&ni(!1),le.dispatch(vo({completed:ze.completed}))}}},as=function(le){var ce=null,Ce=null;function ze(){Ce&&(cancelAnimationFrame(Ce),Ce=null),ce&&(ce(),ce=null)}return function(dt){return function(ut){if((ut.type==="FLUSH"||ut.type==="DROP_COMPLETE"||ut.type==="DROP_ANIMATION_FINISHED")&&ze(),dt(ut),ut.type==="DROP_ANIMATE"){var Mt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Fn=le.getState();Fn.phase==="DROP_ANIMATING"&&le.dispatch(Ao())}};Ce=requestAnimationFrame(function(){Ce=null,ce=Ti(window,[Mt])})}}}},uu=function(le){return function(){return function(ce){return function(Ce){(Ce.type==="DROP_COMPLETE"||Ce.type==="FLUSH"||Ce.type==="DROP_ANIMATE")&&le.stopPublishing(),ce(Ce)}}}},Xs=function(le){var ce=!1;return function(){return function(Ce){return function(ze){if(ze.type==="INITIAL_PUBLISH"){ce=!0,le.tryRecordFocus(ze.payload.critical.draggable.id),Ce(ze),le.tryRestoreFocusRecorded();return}if(Ce(ze),!!ce){if(ze.type==="FLUSH"){ce=!1,le.tryRestoreFocusRecorded();return}if(ze.type==="DROP_COMPLETE"){ce=!1;var dt=ze.payload.completed.result;dt.combine&&le.tryShiftRecord(dt.draggableId,dt.combine.draggableId),le.tryRestoreFocusRecorded()}}}}}},wu=function(ce){return ce.type==="DROP_COMPLETE"||ce.type==="DROP_ANIMATE"||ce.type==="FLUSH"},Rs=function(le){return function(ce){return function(Ce){return function(ze){if(wu(ze)){le.stop(),Ce(ze);return}if(ze.type==="INITIAL_PUBLISH"){Ce(ze);var dt=ce.getState();dt.phase!=="DRAGGING"&&ni(!1),le.start(dt);return}Ce(ze),le.scroll(ce.getState())}}}},ws=function(le){return function(ce){return function(Ce){if(ce(Ce),Ce.type==="PUBLISH_WHILE_DRAGGING"){var ze=le.getState();ze.phase==="DROP_PENDING"&&(ze.isWaiting||le.dispatch(Fo({reason:ze.reason})))}}}},Js=xe.qC,js=function(le){var ce=le.dimensionMarshal,Ce=le.focusMarshal,ze=le.styleMarshal,dt=le.getResponders,ut=le.announce,Mt=le.autoScroller;return(0,xe.MT)(va,Js((0,xe.md)(Xo(ze),uu(ce),Io(ce),mi,ds,as,ws,Rs(Mt),ba,Xs(Ce),us(dt,ut))))},Bs=function(){return{additions:{},removals:{},modified:{}}};function yu(le){var ce=le.registry,Ce=le.callbacks,ze=Bs(),dt=null,ut=function(){dt||(Ce.collectionStarting(),dt=requestAnimationFrame(function(){dt=null,Yi();var Gt=ze,Sn=Gt.additions,Hn=Gt.removals,Br=Gt.modified,wi=Object.keys(Sn).map(function(po){return ce.draggable.getById(po).getDimension(Ko)}).sort(function(po,rl){return po.descriptor.index-rl.descriptor.index}),Ja=Object.keys(Br).map(function(po){var rl=ce.droppable.getById(po),xl=rl.callbacks.getScrollWhileDragging();return{droppableId:po,scroll:xl}}),io={additions:wi,removals:Object.keys(Hn),modified:Ja};ze=Bs(),Lr(),Ce.publish(io)}))},Mt=function(Gt){var Sn=Gt.descriptor.id;ze.additions[Sn]=Gt,ze.modified[Gt.descriptor.droppableId]=!0,ze.removals[Sn]&&delete ze.removals[Sn],ut()},Pt=function(Gt){var Sn=Gt.descriptor;ze.removals[Sn.id]=!0,ze.modified[Sn.droppableId]=!0,ze.additions[Sn.id]&&delete ze.additions[Sn.id],ut()},Fn=function(){dt&&(cancelAnimationFrame(dt),dt=null,ze=Bs())};return{add:Mt,remove:Pt,stop:Fn}}var $s=function(le){var ce=le.scrollHeight,Ce=le.scrollWidth,ze=le.height,dt=le.width,ut=Na({x:Ce,y:ce},{x:dt,y:ze}),Mt={x:Math.max(0,ut.x),y:Math.max(0,ut.y)};return Mt},Fs=function(){var le=document.documentElement;return le||ni(!1),le},bu=function(){var le=Fs(),ce=$s({scrollHeight:le.scrollHeight,scrollWidth:le.scrollWidth,width:le.clientWidth,height:le.clientHeight});return ce},fc=function(){var le=Sa(),ce=bu(),Ce=le.y,ze=le.x,dt=Fs(),ut=dt.clientWidth,Mt=dt.clientHeight,Pt=ze+ut,Fn=Ce+Mt,or=ei({top:Ce,left:ze,right:Pt,bottom:Fn}),Gt={frame:or,scroll:{initial:le,current:le,max:ce,diff:{value:Ko,displacement:Ko}}};return Gt},$u=function(le){var ce=le.critical,Ce=le.scrollOptions,ze=le.registry;Yi();var dt=fc(),ut=dt.scroll.current,Mt=ce.droppable,Pt=ze.droppable.getAllByType(Mt.type).map(function(Sn){return Sn.callbacks.getDimensionAndWatchScroll(ut,Ce)}),Fn=ze.draggable.getAllByType(ce.draggable.type).map(function(Sn){return Sn.getDimension(ut)}),or={draggables:Ho(Fn),droppables:Go(Pt)};Lr();var Gt={dimensions:or,critical:ce,viewport:dt};return Gt};function Hs(le,ce,Ce){if(Ce.descriptor.id===ce.id||Ce.descriptor.type!==ce.type)return!1;var ze=le.droppable.getById(Ce.descriptor.droppableId);return ze.descriptor.mode==="virtual"}var rs=function(le,ce){var Ce=null,ze=yu({callbacks:{publish:ce.publishWhileDragging,collectionStarting:ce.collectionStarting},registry:le}),dt=function(Br,wi){le.droppable.exists(Br)||ni(!1),Ce&&ce.updateDroppableIsEnabled({id:Br,isEnabled:wi})},ut=function(Br,wi){Ce&&(le.droppable.exists(Br)||ni(!1),ce.updateDroppableIsCombineEnabled({id:Br,isCombineEnabled:wi}))},Mt=function(Br,wi){Ce&&(le.droppable.exists(Br)||ni(!1),ce.updateDroppableScroll({id:Br,newScroll:wi}))},Pt=function(Br,wi){Ce&&le.droppable.getById(Br).callbacks.scroll(wi)},Fn=function(){if(Ce){ze.stop();var Br=Ce.critical.droppable;le.droppable.getAllByType(Br.type).forEach(function(wi){return wi.callbacks.dragStopped()}),Ce.unsubscribe(),Ce=null}},or=function(Br){Ce||ni(!1);var wi=Ce.critical.draggable;Br.type==="ADDITION"&&Hs(le,wi,Br.value)&&ze.add(Br.value),Br.type==="REMOVAL"&&Hs(le,wi,Br.value)&&ze.remove(Br.value)},Gt=function(Br){Ce&&ni(!1);var wi=le.draggable.getById(Br.draggableId),Ja=le.droppable.getById(wi.descriptor.droppableId),io={draggable:wi.descriptor,droppable:Ja.descriptor},po=le.subscribe(or);return Ce={critical:io,unsubscribe:po},$u({critical:io,registry:le,scrollOptions:Br.scrollOptions})},Sn={updateDroppableIsEnabled:dt,updateDroppableIsCombineEnabled:ut,scrollDroppable:Pt,updateDroppableScroll:Mt,startPublishing:Gt,stopPublishing:Fn};return Sn},Zs=function(le,ce){return le.phase==="IDLE"?!0:le.phase!=="DROP_ANIMATING"||le.completed.result.draggableId===ce?!1:le.completed.result.reason==="DROP"},Au=function(le){window.scrollBy(le.x,le.y)},_u=Ct(function(le){return Qo(le).filter(function(ce){return!(!ce.isEnabled||!ce.frame)})}),Os=function(ce,Ce){var ze=$a(_u(Ce),function(dt){return dt.frame||ni(!1),pi(dt.frame.pageMarginBox)(ce)});return ze},gs=function(le){var ce=le.center,Ce=le.destination,ze=le.droppables;if(Ce){var dt=ze[Ce];return dt.frame?dt:null}var ut=Os(ce,ze);return ut},fs={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ce){return Math.pow(ce,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Mu=function(le,ce){var Ce=le[ce.size]*fs.startFromPercentage,ze=le[ce.size]*fs.maxScrollAtPercentage,dt={startScrollingFrom:Ce,maxScrollValueAt:ze};return dt},Gs=function(le){var ce=le.startOfRange,Ce=le.endOfRange,ze=le.current,dt=Ce-ce;if(dt===0)return 0;var ut=ze-ce,Mt=ut/dt;return Mt},mu=1,Hl=function(le,ce){if(le>ce.startScrollingFrom)return 0;if(le<=ce.maxScrollValueAt)return fs.maxPixelScroll;if(le===ce.startScrollingFrom)return mu;var Ce=Gs({startOfRange:ce.maxScrollValueAt,endOfRange:ce.startScrollingFrom,current:le}),ze=1-Ce,dt=fs.maxPixelScroll*fs.ease(ze);return Math.ceil(dt)},qa=fs.durationDampening.accelerateAt,jo=fs.durationDampening.stopDampeningAt,hl=function(le,ce){var Ce=ce,ze=jo,dt=Date.now(),ut=dt-Ce;if(ut>=jo)return le;if(ut<qa)return mu;var Mt=Gs({startOfRange:qa,endOfRange:ze,current:ut}),Pt=le*fs.ease(Mt);return Math.ceil(Pt)},Il=function(le){var ce=le.distanceToEdge,Ce=le.thresholds,ze=le.dragStartTime,dt=le.shouldUseTimeDampening,ut=Hl(ce,Ce);return ut===0?0:dt?Math.max(hl(ut,ze),mu):ut},Ds=function(le){var ce=le.container,Ce=le.distanceToEdges,ze=le.dragStartTime,dt=le.axis,ut=le.shouldUseTimeDampening,Mt=Mu(ce,dt),Pt=Ce[dt.end]<Ce[dt.start];return Pt?Il({distanceToEdge:Ce[dt.end],thresholds:Mt,dragStartTime:ze,shouldUseTimeDampening:ut}):-1*Il({distanceToEdge:Ce[dt.start],thresholds:Mt,dragStartTime:ze,shouldUseTimeDampening:ut})},ks=function(le){var ce=le.container,Ce=le.subject,ze=le.proposedScroll,dt=Ce.height>ce.height,ut=Ce.width>ce.width;return!ut&&!dt?ze:ut&&dt?null:{x:ut?0:ze.x,y:dt?0:ze.y}},cu=wl(function(le){return le===0?0:le}),Du=function(le){var ce=le.dragStartTime,Ce=le.container,ze=le.subject,dt=le.center,ut=le.shouldUseTimeDampening,Mt={top:dt.y-Ce.top,right:Ce.right-dt.x,bottom:Ce.bottom-dt.y,left:dt.x-Ce.left},Pt=Ds({container:Ce,distanceToEdges:Mt,dragStartTime:ce,axis:Wr,shouldUseTimeDampening:ut}),Fn=Ds({container:Ce,distanceToEdges:Mt,dragStartTime:ce,axis:Rr,shouldUseTimeDampening:ut}),or=cu({x:Fn,y:Pt});if(ml(or,Ko))return null;var Gt=ks({container:Ce,subject:ze,proposedScroll:or});return Gt?ml(Gt,Ko)?null:Gt:null},oc=wl(function(le){return le===0?0:le>0?1:-1}),Re=function(){var le=function(Ce,ze){return Ce<0?Ce:Ce>ze?Ce-ze:0};return function(ce){var Ce=ce.current,ze=ce.max,dt=ce.change,ut=Do(Ce,dt),Mt={x:le(ut.x,ze.x),y:le(ut.y,ze.y)};return ml(Mt,Ko)?null:Mt}}(),Ge=function(ce){var Ce=ce.max,ze=ce.current,dt=ce.change,ut={x:Math.max(ze.x,Ce.x),y:Math.max(ze.y,Ce.y)},Mt=oc(dt),Pt=Re({max:ut,current:ze,change:Mt});return!Pt||Mt.x!==0&&Pt.x===0||Mt.y!==0&&Pt.y===0},St=function(ce,Ce){return Ge({current:ce.scroll.current,max:ce.scroll.max,change:Ce})},Rt=function(ce,Ce){if(!St(ce,Ce))return null;var ze=ce.scroll.max,dt=ce.scroll.current;return Re({current:dt,max:ze,change:Ce})},un=function(ce,Ce){var ze=ce.frame;return ze?Ge({current:ze.scroll.current,max:ze.scroll.max,change:Ce}):!1},vn=function(ce,Ce){var ze=ce.frame;return!ze||!un(ce,Ce)?null:Re({current:ze.scroll.current,max:ze.scroll.max,change:Ce})},ir=function(le){var ce=le.viewport,Ce=le.subject,ze=le.center,dt=le.dragStartTime,ut=le.shouldUseTimeDampening,Mt=Du({dragStartTime:dt,container:ce.frame,subject:Ce,center:ze,shouldUseTimeDampening:ut});return Mt&&St(ce,Mt)?Mt:null},Ar=function(le){var ce=le.droppable,Ce=le.subject,ze=le.center,dt=le.dragStartTime,ut=le.shouldUseTimeDampening,Mt=ce.frame;if(!Mt)return null;var Pt=Du({dragStartTime:dt,container:Mt.pageMarginBox,subject:Ce,center:ze,shouldUseTimeDampening:ut});return Pt&&un(ce,Pt)?Pt:null},hr=function(le){var ce=le.state,Ce=le.dragStartTime,ze=le.shouldUseTimeDampening,dt=le.scrollWindow,ut=le.scrollDroppable,Mt=ce.current.page.borderBoxCenter,Pt=ce.dimensions.draggables[ce.critical.draggable.id],Fn=Pt.page.marginBox;if(ce.isWindowScrollAllowed){var or=ce.viewport,Gt=ir({dragStartTime:Ce,viewport:or,subject:Fn,center:Mt,shouldUseTimeDampening:ze});if(Gt){dt(Gt);return}}var Sn=gs({center:Mt,destination:la(ce.impact),droppables:ce.dimensions.droppables});if(Sn){var Hn=Ar({dragStartTime:Ce,droppable:Sn,subject:Fn,center:Mt,shouldUseTimeDampening:ze});Hn&&ut(Sn.descriptor.id,Hn)}},Qr=function(le){var ce=le.scrollWindow,Ce=le.scrollDroppable,ze=An(ce),dt=An(Ce),ut=null,Mt=function(Gt){ut||ni(!1);var Sn=ut,Hn=Sn.shouldUseTimeDampening,Br=Sn.dragStartTime;hr({state:Gt,scrollWindow:ze,scrollDroppable:dt,dragStartTime:Br,shouldUseTimeDampening:Hn})},Pt=function(Gt){Yi(),ut&&ni(!1);var Sn=Date.now(),Hn=!1,Br=function(){Hn=!0};hr({state:Gt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Br,scrollDroppable:Br}),ut={dragStartTime:Sn,shouldUseTimeDampening:Hn},Lr(),Hn&&Mt(Gt)},Fn=function(){ut&&(ze.cancel(),dt.cancel(),ut=null)};return{start:Pt,stop:Fn,scroll:Mt}},xi=function(le){var ce=le.move,Ce=le.scrollDroppable,ze=le.scrollWindow,dt=function(or,Gt){var Sn=Do(or.current.client.selection,Gt);ce({client:Sn})},ut=function(or,Gt){if(!un(or,Gt))return Gt;var Sn=vn(or,Gt);if(!Sn)return Ce(or.descriptor.id,Gt),null;var Hn=Na(Gt,Sn);Ce(or.descriptor.id,Hn);var Br=Na(Gt,Hn);return Br},Mt=function(or,Gt,Sn){if(!or||!St(Gt,Sn))return Sn;var Hn=Rt(Gt,Sn);if(!Hn)return ze(Sn),null;var Br=Na(Sn,Hn);ze(Br);var wi=Na(Sn,Br);return wi},Pt=function(or){var Gt=or.scrollJumpRequest;if(Gt){var Sn=la(or.impact);Sn||ni(!1);var Hn=ut(or.dimensions.droppables[Sn],Gt);if(Hn){var Br=or.viewport,wi=Mt(or.isWindowScrollAllowed,Br,Hn);wi&&dt(or,wi)}}};return Pt},qn=function(le){var ce=le.scrollDroppable,Ce=le.scrollWindow,ze=le.move,dt=Qr({scrollWindow:Ce,scrollDroppable:ce}),ut=xi({move:ze,scrollWindow:Ce,scrollDroppable:ce}),Mt=function(or){if(or.phase==="DRAGGING"){if(or.movementMode==="FLUID"){dt.scroll(or);return}or.scrollJumpRequest&&ut(or)}},Pt={scroll:Mt,start:dt.start,stop:dt.stop};return Pt},Ki="data-rbd",$i=function(){var le=Ki+"-drag-handle";return{base:le,draggableId:le+"-draggable-id",contextId:le+"-context-id"}}(),na=function(){var le=Ki+"-draggable";return{base:le,contextId:le+"-context-id",id:le+"-id"}}(),Ia=function(){var le=Ki+"-droppable";return{base:le,contextId:le+"-context-id",id:le+"-id"}}(),sa={contextId:Ki+"-scroll-container-context-id"},ja=function(ce){return function(Ce){return"["+Ce+'="'+ce+'"]'}},Ra=function(ce,Ce){return ce.map(function(ze){var dt=ze.styles[Ce];return dt?ze.selector+" { "+dt+" }":""}).join(" ")},oo="pointer-events: none;",Uo=function(le){var ce=ja(le),Ce=function(){var Pt=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:ce($i.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:Pt,dragging:oo,dropAnimating:Pt}}}(),ze=function(){var Pt=`
|
|
|
transition: `+Wo.outOfTheWay+`;
|
|
|
`;return{selector:ce(na.contextId),styles:{dragging:Pt,dropAnimating:Pt,userCancel:Pt}}}(),dt={selector:ce(Ia.contextId),styles:{always:"overflow-anchor: none;"}},ut={selector:"body",styles:{dragging:`
|
|
|
cursor: grabbing;
|
|
|
cursor: -webkit-grabbing;
|
|
|
user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
overflow-anchor: none;
|
|
|
`}},Mt=[ze,Ce,dt,ut];return{always:Ra(Mt,"always"),resting:Ra(Mt,"resting"),dragging:Ra(Mt,"dragging"),dropAnimating:Ra(Mt,"dropAnimating"),userCancel:Ra(Mt,"userCancel")}},lo=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect,To=function(){var ce=document.querySelector("head");return ce||ni(!1),ce},yl=function(ce){var Ce=document.createElement("style");return ce&&Ce.setAttribute("nonce",ce),Ce.type="text/css",Ce};function Kl(le,ce){var Ce=En(function(){return Uo(le)},[le]),ze=(0,E.useRef)(null),dt=(0,E.useRef)(null),ut=en(Ct(function(Sn){var Hn=dt.current;Hn||ni(!1),Hn.textContent=Sn}),[]),Mt=en(function(Sn){var Hn=ze.current;Hn||ni(!1),Hn.textContent=Sn},[]);lo(function(){!ze.current&&!dt.current||ni(!1);var Sn=yl(ce),Hn=yl(ce);return ze.current=Sn,dt.current=Hn,Sn.setAttribute(Ki+"-always",le),Hn.setAttribute(Ki+"-dynamic",le),To().appendChild(Sn),To().appendChild(Hn),Mt(Ce.always),ut(Ce.resting),function(){var Br=function(Ja){var io=Ja.current;io||ni(!1),To().removeChild(io),Ja.current=null};Br(ze),Br(dt)}},[ce,Mt,ut,Ce.always,Ce.resting,le]);var Pt=en(function(){return ut(Ce.dragging)},[ut,Ce.dragging]),Fn=en(function(Sn){if(Sn==="DROP"){ut(Ce.dropAnimating);return}ut(Ce.userCancel)},[ut,Ce.dropAnimating,Ce.userCancel]),or=en(function(){dt.current&&ut(Ce.resting)},[ut,Ce.resting]),Gt=En(function(){return{dragging:Pt,dropping:Fn,resting:or}},[Pt,Fn,or]);return Gt}var bo=function(le){return le&&le.ownerDocument?le.ownerDocument.defaultView:window};function ma(le){return le instanceof bo(le).HTMLElement}function fa(le,ce){var Ce="["+$i.contextId+'="'+le+'"]',ze=Za(document.querySelectorAll(Ce));if(!ze.length)return null;var dt=$a(ze,function(ut){return ut.getAttribute($i.draggableId)===ce});return!dt||!ma(dt)?null:dt}function Aa(le){var ce=(0,E.useRef)({}),Ce=(0,E.useRef)(null),ze=(0,E.useRef)(null),dt=(0,E.useRef)(!1),ut=en(function(Hn,Br){var wi={id:Hn,focus:Br};return ce.current[Hn]=wi,function(){var io=ce.current,po=io[Hn];po!==wi&&delete io[Hn]}},[]),Mt=en(function(Hn){var Br=fa(le,Hn);Br&&Br!==document.activeElement&&Br.focus()},[le]),Pt=en(function(Hn,Br){Ce.current===Hn&&(Ce.current=Br)},[]),Fn=en(function(){ze.current||dt.current&&(ze.current=requestAnimationFrame(function(){ze.current=null;var Hn=Ce.current;Hn&&Mt(Hn)}))},[Mt]),or=en(function(Hn){Ce.current=null;var Br=document.activeElement;Br&&Br.getAttribute($i.draggableId)===Hn&&(Ce.current=Hn)},[]);lo(function(){return dt.current=!0,function(){dt.current=!1;var Hn=ze.current;Hn&&cancelAnimationFrame(Hn)}},[]);var Gt=En(function(){return{register:ut,tryRecordFocus:or,tryRestoreFocusRecorded:Fn,tryShiftRecord:Pt}},[ut,or,Fn,Pt]);return Gt}function so(){var le={draggables:{},droppables:{}},ce=[];function Ce(Sn){return ce.push(Sn),function(){var Br=ce.indexOf(Sn);Br!==-1&&ce.splice(Br,1)}}function ze(Sn){ce.length&&ce.forEach(function(Hn){return Hn(Sn)})}function dt(Sn){return le.draggables[Sn]||null}function ut(Sn){var Hn=dt(Sn);return Hn||ni(!1),Hn}var Mt={register:function(Hn){le.draggables[Hn.descriptor.id]=Hn,ze({type:"ADDITION",value:Hn})},update:function(Hn,Br){var wi=le.draggables[Br.descriptor.id];wi&&wi.uniqueId===Hn.uniqueId&&(delete le.draggables[Br.descriptor.id],le.draggables[Hn.descriptor.id]=Hn)},unregister:function(Hn){var Br=Hn.descriptor.id,wi=dt(Br);wi&&Hn.uniqueId===wi.uniqueId&&(delete le.draggables[Br],ze({type:"REMOVAL",value:Hn}))},getById:ut,findById:dt,exists:function(Hn){return!!dt(Hn)},getAllByType:function(Hn){return Ka(le.draggables).filter(function(Br){return Br.descriptor.type===Hn})}};function Pt(Sn){return le.droppables[Sn]||null}function Fn(Sn){var Hn=Pt(Sn);return Hn||ni(!1),Hn}var or={register:function(Hn){le.droppables[Hn.descriptor.id]=Hn},unregister:function(Hn){var Br=Pt(Hn.descriptor.id);Br&&Hn.uniqueId===Br.uniqueId&&delete le.droppables[Hn.descriptor.id]},getById:Fn,findById:Pt,exists:function(Hn){return!!Pt(Hn)},getAllByType:function(Hn){return Ka(le.droppables).filter(function(Br){return Br.descriptor.type===Hn})}};function Gt(){le.draggables={},le.droppables={},ce.length=0}return{draggable:Mt,droppable:or,subscribe:Ce,clean:Gt}}function Mo(){var le=En(so,[]);return(0,E.useEffect)(function(){return function(){requestAnimationFrame(le.clean)}},[le]),le}var Dl=E.createContext(null),ol=function(){var le=document.body;return le||ni(!1),le},sl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Zl=function(ce){return"rbd-announcement-"+ce};function Ul(le){var ce=En(function(){return Zl(le)},[le]),Ce=(0,E.useRef)(null);(0,E.useEffect)(function(){var ut=document.createElement("div");return Ce.current=ut,ut.id=ce,ut.setAttribute("aria-live","assertive"),ut.setAttribute("aria-atomic","true"),(0,Te.Z)(ut.style,sl),ol().appendChild(ut),function(){setTimeout(function(){var Fn=ol();Fn.contains(ut)&&Fn.removeChild(ut),ut===Ce.current&&(Ce.current=null)})}},[ce]);var ze=en(function(dt){var ut=Ce.current;if(ut){ut.textContent=dt;return}},[]);return ze}var ts=0,Jl={separator:"::"};function Ls(){ts=0}function Is(le,ce){return ce===void 0&&(ce=Jl),En(function(){return""+le+ce.separator+ts++},[ce.separator,le])}function Ql(le){var ce=le.contextId,Ce=le.uniqueId;return"rbd-hidden-text-"+ce+"-"+Ce}function du(le){var ce=le.contextId,Ce=le.text,ze=Is("hidden-text",{separator:"-"}),dt=En(function(){return Ql({contextId:ce,uniqueId:ze})},[ze,ce]);return(0,E.useEffect)(function(){var Mt=document.createElement("div");return Mt.id=dt,Mt.textContent=Ce,Mt.style.display="none",ol().appendChild(Mt),function(){var Fn=ol();Fn.contains(Mt)&&Fn.removeChild(Mt)}},[dt,Ce]),dt}var os=E.createContext(null),As={react:"^16.8.5","react-dom":"^16.8.5"},xs=/(\d+)\.(\d+)\.(\d+)/,zl=function(ce){var Ce=xs.exec(ce);Ce==null&&ni(!1);var ze=Number(Ce[1]),dt=Number(Ce[2]),ut=Number(Ce[3]);return{major:ze,minor:dt,patch:ut,raw:ce}},wo=function(ce,Ce){return Ce.major>ce.major?!0:Ce.major<ce.major?!1:Ce.minor>ce.minor?!0:Ce.minor<ce.minor?!1:Ce.patch>=ce.patch},dl=function(le,ce){var Ce=zl(le),ze=zl(ce);wo(Ce,ze)},Ml=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,_o=function(le){var ce=le.doctype;ce&&(ce.name.toLowerCase(),ce.publicId)};function ys(le){}function co(le,ce){}function Wl(){co(function(){dl(As.react,E.version),_o(document)},[])}function ls(le){var ce=(0,E.useRef)(le);return(0,E.useEffect)(function(){ce.current=le}),ce}function ss(){var le=null;function ce(){return!!le}function Ce(Mt){return Mt===le}function ze(Mt){le&&ni(!1);var Pt={abandon:Mt};return le=Pt,Pt}function dt(){le||ni(!1),le=null}function ut(){le&&(le.abandon(),dt())}return{isClaimed:ce,isActive:Ce,claim:ze,release:dt,tryAbandon:ut}}var Nu=9,fu=13,zu=27,ha=32,ec=33,qs=34,Ku=35,Wu=36,hs=37,bs=38,Ts=39,Xl=40,iu,ns=(iu={},iu[fu]=!0,iu[Nu]=!0,iu),au=function(le){ns[le.keyCode]&&le.preventDefault()},hu=function(){var le="visibilitychange";if(typeof document=="undefined")return le;var ce=[le,"ms"+le,"webkit"+le,"moz"+le,"o"+le],Ce=$a(ce,function(ze){return"on"+ze in document});return Ce||le}(),xu=0,ju=5;function eu(le,ce){return Math.abs(ce.x-le.x)>=ju||Math.abs(ce.y-le.y)>=ju}var Uu={type:"IDLE"};function tu(le){var ce=le.cancel,Ce=le.completed,ze=le.getPhase,dt=le.setPhase;return[{eventName:"mousemove",fn:function(Mt){var Pt=Mt.button,Fn=Mt.clientX,or=Mt.clientY;if(Pt===xu){var Gt={x:Fn,y:or},Sn=ze();if(Sn.type==="DRAGGING"){Mt.preventDefault(),Sn.actions.move(Gt);return}Sn.type!=="PENDING"&&ni(!1);var Hn=Sn.point;if(eu(Hn,Gt)){Mt.preventDefault();var Br=Sn.actions.fluidLift(Gt);dt({type:"DRAGGING",actions:Br})}}}},{eventName:"mouseup",fn:function(Mt){var Pt=ze();if(Pt.type!=="DRAGGING"){ce();return}Mt.preventDefault(),Pt.actions.drop({shouldBlockNextClick:!0}),Ce()}},{eventName:"mousedown",fn:function(Mt){ze().type==="DRAGGING"&&Mt.preventDefault(),ce()}},{eventName:"keydown",fn:function(Mt){var Pt=ze();if(Pt.type==="PENDING"){ce();return}if(Mt.keyCode===zu){Mt.preventDefault(),ce();return}au(Mt)}},{eventName:"resize",fn:ce},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ze().type==="PENDING"&&ce()}},{eventName:"webkitmouseforcedown",fn:function(Mt){var Pt=ze();if(Pt.type==="IDLE"&&ni(!1),Pt.actions.shouldRespectForcePress()){ce();return}Mt.preventDefault()}},{eventName:hu,fn:ce}]}function Bu(le){var ce=(0,E.useRef)(Uu),Ce=(0,E.useRef)(bi),ze=En(function(){return{eventName:"mousedown",fn:function(Sn){if(!Sn.defaultPrevented&&Sn.button===xu&&!(Sn.ctrlKey||Sn.metaKey||Sn.shiftKey||Sn.altKey)){var Hn=le.findClosestDraggableId(Sn);if(Hn){var Br=le.tryGetLock(Hn,Mt,{sourceEvent:Sn});if(Br){Sn.preventDefault();var wi={x:Sn.clientX,y:Sn.clientY};Ce.current(),or(Br,wi)}}}}}},[le]),dt=En(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Sn){if(!Sn.defaultPrevented){var Hn=le.findClosestDraggableId(Sn);if(Hn){var Br=le.findOptionsForDraggable(Hn);Br&&(Br.shouldRespectForcePress||le.canGetLock(Hn)&&Sn.preventDefault())}}}}},[le]),ut=en(function(){var Sn={passive:!1,capture:!0};Ce.current=Ti(window,[dt,ze],Sn)},[dt,ze]),Mt=en(function(){var Gt=ce.current;Gt.type!=="IDLE"&&(ce.current=Uu,Ce.current(),ut())},[ut]),Pt=en(function(){var Gt=ce.current;Mt(),Gt.type==="DRAGGING"&&Gt.actions.cancel({shouldBlockNextClick:!0}),Gt.type==="PENDING"&&Gt.actions.abort()},[Mt]),Fn=en(function(){var Sn={capture:!0,passive:!1},Hn=tu({cancel:Pt,completed:Mt,getPhase:function(){return ce.current},setPhase:function(wi){ce.current=wi}});Ce.current=Ti(window,Hn,Sn)},[Pt,Mt]),or=en(function(Sn,Hn){ce.current.type!=="IDLE"&&ni(!1),ce.current={type:"PENDING",point:Hn,actions:Sn},Fn()},[Fn]);lo(function(){return ut(),function(){Ce.current()}},[ut])}var nu;function ou(){}var Qs=(nu={},nu[qs]=!0,nu[ec]=!0,nu[Wu]=!0,nu[Ku]=!0,nu);function Ws(le,ce){function Ce(){ce(),le.cancel()}function ze(){ce(),le.drop()}return[{eventName:"keydown",fn:function(ut){if(ut.keyCode===zu){ut.preventDefault(),Ce();return}if(ut.keyCode===ha){ut.preventDefault(),ze();return}if(ut.keyCode===Xl){ut.preventDefault(),le.moveDown();return}if(ut.keyCode===bs){ut.preventDefault(),le.moveUp();return}if(ut.keyCode===Ts){ut.preventDefault(),le.moveRight();return}if(ut.keyCode===hs){ut.preventDefault(),le.moveLeft();return}if(Qs[ut.keyCode]){ut.preventDefault();return}au(ut)}},{eventName:"mousedown",fn:Ce},{eventName:"mouseup",fn:Ce},{eventName:"click",fn:Ce},{eventName:"touchstart",fn:Ce},{eventName:"resize",fn:Ce},{eventName:"wheel",fn:Ce,options:{passive:!0}},{eventName:hu,fn:Ce}]}function hc(le){var ce=(0,E.useRef)(ou),Ce=En(function(){return{eventName:"keydown",fn:function(ut){if(ut.defaultPrevented||ut.keyCode!==ha)return;var Mt=le.findClosestDraggableId(ut);if(!Mt)return;var Pt=le.tryGetLock(Mt,Gt,{sourceEvent:ut});if(!Pt)return;ut.preventDefault();var Fn=!0,or=Pt.snapLift();ce.current();function Gt(){Fn||ni(!1),Fn=!1,ce.current(),ze()}ce.current=Ti(window,Ws(or,Gt),{capture:!0,passive:!1})}}},[le]),ze=en(function(){var ut={passive:!1,capture:!0};ce.current=Ti(window,[Ce],ut)},[Ce]);lo(function(){return ze(),function(){ce.current()}},[ze])}var bc={type:"IDLE"},Us=120,Lu=.15;function pd(le){var ce=le.cancel,Ce=le.getPhase;return[{eventName:"orientationchange",fn:ce},{eventName:"resize",fn:ce},{eventName:"contextmenu",fn:function(dt){dt.preventDefault()}},{eventName:"keydown",fn:function(dt){if(Ce().type!=="DRAGGING"){ce();return}dt.keyCode===zu&&dt.preventDefault(),ce()}},{eventName:hu,fn:ce}]}function Oc(le){var ce=le.cancel,Ce=le.completed,ze=le.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(ut){var Mt=ze();if(Mt.type!=="DRAGGING"){ce();return}Mt.hasMoved=!0;var Pt=ut.touches[0],Fn=Pt.clientX,or=Pt.clientY,Gt={x:Fn,y:or};ut.preventDefault(),Mt.actions.move(Gt)}},{eventName:"touchend",fn:function(ut){var Mt=ze();if(Mt.type!=="DRAGGING"){ce();return}ut.preventDefault(),Mt.actions.drop({shouldBlockNextClick:!0}),Ce()}},{eventName:"touchcancel",fn:function(ut){if(ze().type!=="DRAGGING"){ce();return}ut.preventDefault(),ce()}},{eventName:"touchforcechange",fn:function(ut){var Mt=ze();Mt.type==="IDLE"&&ni(!1);var Pt=ut.touches[0];if(Pt){var Fn=Pt.force>=Lu;if(Fn){var or=Mt.actions.shouldRespectForcePress();if(Mt.type==="PENDING"){or&&ce();return}if(or){if(Mt.hasMoved){ut.preventDefault();return}ce();return}ut.preventDefault()}}}},{eventName:hu,fn:ce}]}function is(le){var ce=(0,E.useRef)(bc),Ce=(0,E.useRef)(bi),ze=en(function(){return ce.current},[]),dt=en(function(Br){ce.current=Br},[]),ut=En(function(){return{eventName:"touchstart",fn:function(Br){if(!Br.defaultPrevented){var wi=le.findClosestDraggableId(Br);if(wi){var Ja=le.tryGetLock(wi,Pt,{sourceEvent:Br});if(Ja){var io=Br.touches[0],po=io.clientX,rl=io.clientY,xl={x:po,y:rl};Ce.current(),Sn(Ja,xl)}}}}}},[le]),Mt=en(function(){var Br={capture:!0,passive:!1};Ce.current=Ti(window,[ut],Br)},[ut]),Pt=en(function(){var Hn=ce.current;Hn.type!=="IDLE"&&(Hn.type==="PENDING"&&clearTimeout(Hn.longPressTimerId),dt(bc),Ce.current(),Mt())},[Mt,dt]),Fn=en(function(){var Hn=ce.current;Pt(),Hn.type==="DRAGGING"&&Hn.actions.cancel({shouldBlockNextClick:!0}),Hn.type==="PENDING"&&Hn.actions.abort()},[Pt]),or=en(function(){var Br={capture:!0,passive:!1},wi={cancel:Fn,completed:Pt,getPhase:ze},Ja=Ti(window,Oc(wi),Br),io=Ti(window,pd(wi),Br);Ce.current=function(){Ja(),io()}},[Fn,ze,Pt]),Gt=en(function(){var Br=ze();Br.type!=="PENDING"&&ni(!1);var wi=Br.actions.fluidLift(Br.point);dt({type:"DRAGGING",actions:wi,hasMoved:!1})},[ze,dt]),Sn=en(function(Br,wi){ze().type!=="IDLE"&&ni(!1);var Ja=setTimeout(Gt,Us);dt({type:"PENDING",point:wi,actions:Br,longPressTimerId:Ja}),or()},[or,ze,dt,Gt]);lo(function(){return Mt(),function(){Ce.current();var wi=ze();wi.type==="PENDING"&&(clearTimeout(wi.longPressTimerId),dt(bc))}},[ze,Mt,dt]),lo(function(){var Br=Ti(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Br},[])}function bl(le){}var vu={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ss(le,ce){if(ce==null)return!1;var Ce=!!vu[ce.tagName.toLowerCase()];if(Ce)return!0;var ze=ce.getAttribute("contenteditable");return ze==="true"||ze===""?!0:ce===le?!1:Ss(le,ce.parentElement)}function ku(le,ce){var Ce=ce.target;return ma(Ce)?Ss(le,Ce):!1}var Ri=function(le){return ei(le.getBoundingClientRect()).center};function Yu(le){return le instanceof bo(le).Element}var xc=function(){var le="matches";if(typeof document=="undefined")return le;var ce=[le,"msMatchesSelector","webkitMatchesSelector"],Ce=$a(ce,function(ze){return ze in Element.prototype});return Ce||le}();function rd(le,ce){return le==null?null:le[xc](ce)?le:rd(le.parentElement,ce)}function Od(le,ce){return le.closest?le.closest(ce):rd(le,ce)}function Ec(le){return"["+$i.contextId+'="'+le+'"]'}function id(le,ce){var Ce=ce.target;if(!Yu(Ce))return null;var ze=Ec(le),dt=Od(Ce,ze);return!dt||!ma(dt)?null:dt}function Wd(le,ce){var Ce=id(le,ce);return Ce?Ce.getAttribute($i.draggableId):null}function Iu(le,ce){var Ce="["+na.contextId+'="'+le+'"]',ze=Za(document.querySelectorAll(Ce)),dt=$a(ze,function(ut){return ut.getAttribute(na.id)===ce});return!dt||!ma(dt)?null:dt}function lc(le){le.preventDefault()}function Nc(le){var ce=le.expected,Ce=le.phase,ze=le.isLockActive,dt=le.shouldWarn;return!(!ze()||ce!==Ce)}function ad(le){var ce=le.lockAPI,Ce=le.store,ze=le.registry,dt=le.draggableId;if(ce.isClaimed())return!1;var ut=ze.draggable.findById(dt);return!(!ut||!ut.options.isEnabled||!Zs(Ce.getState(),dt))}function jd(le){var ce=le.lockAPI,Ce=le.contextId,ze=le.store,dt=le.registry,ut=le.draggableId,Mt=le.forceSensorStop,Pt=le.sourceEvent,Fn=ad({lockAPI:ce,store:ze,registry:dt,draggableId:ut});if(!Fn)return null;var or=dt.draggable.getById(ut),Gt=Iu(Ce,or.descriptor.id);if(!Gt||Pt&&!or.options.canDragInteractiveElements&&ku(Gt,Pt))return null;var Sn=ce.claim(Mt||bi),Hn="PRE_DRAG";function Br(){return or.options.shouldRespectForcePress}function wi(){return ce.isActive(Sn)}function Ja(Pl,ms){Nc({expected:Pl,phase:Hn,isLockActive:wi,shouldWarn:!0})&&ze.dispatch(ms())}var io=Ja.bind(null,"DRAGGING");function po(Pl){function ms(){ce.release(),Hn="COMPLETED"}Hn!=="PRE_DRAG"&&(ms(),Hn!=="PRE_DRAG"&&ni(!1)),ze.dispatch(nt(Pl.liftActionArgs)),Hn="DRAGGING";function Fu(vs,zs){if(zs===void 0&&(zs={shouldBlockNextClick:!1}),Pl.cleanup(),zs.shouldBlockNextClick){var nc=Ti(window,[{eventName:"click",fn:lc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(nc)}ms(),ze.dispatch(Fo({reason:vs}))}return(0,Te.Z)({isActive:function(){return Nc({expected:"DRAGGING",phase:Hn,isLockActive:wi,shouldWarn:!1})},shouldRespectForcePress:Br,drop:function(zs){return Fu("DROP",zs)},cancel:function(zs){return Fu("CANCEL",zs)}},Pl.actions)}function rl(Pl){var ms=An(function(vs){io(function(){return Kr({client:vs})})}),Fu=po({liftActionArgs:{id:ut,clientSelection:Pl,movementMode:"FLUID"},cleanup:function(){return ms.cancel()},actions:{move:ms}});return(0,Te.Z)({},Fu,{move:ms})}function xl(){var Pl={moveUp:function(){return io(zi)},moveRight:function(){return io(Li)},moveDown:function(){return io(ji)},moveLeft:function(){return io(ea)}};return po({liftActionArgs:{id:ut,clientSelection:Ri(Gt),movementMode:"SNAP"},cleanup:bi,actions:Pl})}function Bl(){var Pl=Nc({expected:"PRE_DRAG",phase:Hn,isLockActive:wi,shouldWarn:!0});Pl&&ce.release()}var es={isActive:function(){return Nc({expected:"PRE_DRAG",phase:Hn,isLockActive:wi,shouldWarn:!1})},shouldRespectForcePress:Br,fluidLift:rl,snapLift:xl,abort:Bl};return es}var Ud=[Bu,hc,is];function md(le){var ce=le.contextId,Ce=le.store,ze=le.registry,dt=le.customSensors,ut=le.enableDefaultSensors,Mt=[].concat(ut?Ud:[],dt||[]),Pt=(0,E.useState)(function(){return ss()})[0],Fn=en(function(rl,xl){rl.isDragging&&!xl.isDragging&&Pt.tryAbandon()},[Pt]);lo(function(){var rl=Ce.getState(),xl=Ce.subscribe(function(){var Bl=Ce.getState();Fn(rl,Bl),rl=Bl});return xl},[Pt,Ce,Fn]),lo(function(){return Pt.tryAbandon},[Pt.tryAbandon]);var or=en(function(po){return ad({lockAPI:Pt,registry:ze,store:Ce,draggableId:po})},[Pt,ze,Ce]),Gt=en(function(po,rl,xl){return jd({lockAPI:Pt,registry:ze,contextId:ce,store:Ce,draggableId:po,forceSensorStop:rl,sourceEvent:xl&&xl.sourceEvent?xl.sourceEvent:null})},[ce,Pt,ze,Ce]),Sn=en(function(po){return Wd(ce,po)},[ce]),Hn=en(function(po){var rl=ze.draggable.findById(po);return rl?rl.options:null},[ze.draggable]),Br=en(function(){Pt.isClaimed()&&(Pt.tryAbandon(),Ce.getState().phase!=="IDLE"&&Ce.dispatch(Hi()))},[Pt,Ce]),wi=en(Pt.isClaimed,[Pt]),Ja=En(function(){return{canGetLock:or,tryGetLock:Gt,findClosestDraggableId:Sn,findOptionsForDraggable:Hn,tryReleaseLock:Br,isLockClaimed:wi}},[or,Gt,Sn,Hn,Br,wi]);bl(Mt);for(var io=0;io<Mt.length;io++)Mt[io](Ja)}var od=function(ce){return{onBeforeCapture:ce.onBeforeCapture,onBeforeDragStart:ce.onBeforeDragStart,onDragStart:ce.onDragStart,onDragEnd:ce.onDragEnd,onDragUpdate:ce.onDragUpdate}};function Cc(le){return le.current||ni(!1),le.current}function Vu(le){var ce=le.contextId,Ce=le.setCallbacks,ze=le.sensors,dt=le.nonce,ut=le.dragHandleUsageInstructions,Mt=(0,E.useRef)(null);Wl();var Pt=ls(le),Fn=en(function(){return od(Pt.current)},[Pt]),or=Ul(ce),Gt=du({contextId:ce,text:ut}),Sn=Kl(ce,dt),Hn=en(function(vs){Cc(Mt).dispatch(vs)},[]),Br=En(function(){return(0,xe.DE)({publishWhileDragging:Kt,updateDroppableScroll:Gn,updateDroppableIsEnabled:_n,updateDroppableIsCombineEnabled:Pr,collectionStarting:Bn},Hn)},[Hn]),wi=Mo(),Ja=En(function(){return rs(wi,Br)},[wi,Br]),io=En(function(){return qn((0,Te.Z)({scrollWindow:Au,scrollDroppable:Ja.scrollDroppable},(0,xe.DE)({move:Kr},Hn)))},[Ja.scrollDroppable,Hn]),po=Aa(ce),rl=En(function(){return js({announce:or,autoScroller:io,dimensionMarshal:Ja,focusMarshal:po,getResponders:Fn,styleMarshal:Sn})},[or,io,Ja,po,Fn,Sn]);Mt.current=rl;var xl=en(function(){var vs=Cc(Mt),zs=vs.getState();zs.phase!=="IDLE"&&vs.dispatch(Hi())},[]),Bl=en(function(){var vs=Cc(Mt).getState();return vs.isDragging||vs.phase==="DROP_ANIMATING"},[]),es=En(function(){return{isDragging:Bl,tryAbort:xl}},[Bl,xl]);Ce(es);var Pl=en(function(vs){return Zs(Cc(Mt).getState(),vs)},[]),ms=en(function(){return Ui(Cc(Mt).getState())},[]),Fu=En(function(){return{marshal:Ja,focus:po,contextId:ce,canLift:Pl,isMovementAllowed:ms,dragHandleUsageInstructionsId:Gt,registry:wi}},[ce,Ja,Gt,po,Pl,ms,wi]);return md({contextId:ce,store:rl,registry:wi,customSensors:ze,enableDefaultSensors:le.enableDefaultSensors!==!1}),(0,E.useEffect)(function(){return xl},[xl]),E.createElement(os.Provider,{value:Fu},E.createElement(be,{context:Dl,store:rl},le.children))}var Sc=0;function Nd(){Sc=0}function Ld(){return En(function(){return""+Sc++},[])}function zc(){Nd(),Ls()}function Vd(le){var ce=Ld(),Ce=le.dragHandleUsageInstructions||jl.dragHandleUsageInstructions;return E.createElement(No,null,function(ze){return E.createElement(Vu,{nonce:le.nonce,contextId:ce,setCallbacks:ze,dragHandleUsageInstructions:Ce,enableDefaultSensors:le.enableDefaultSensors,sensors:le.sensors,onBeforeCapture:le.onBeforeCapture,onBeforeDragStart:le.onBeforeDragStart,onDragStart:le.onDragStart,onDragUpdate:le.onDragUpdate,onDragEnd:le.onDragEnd},le.children)})}var Kc=function(ce){return function(Ce){return ce===Ce}},vd=Kc("scroll"),Td=Kc("auto"),gd=Kc("visible"),Gl=function(ce,Ce){return Ce(ce.overflowX)||Ce(ce.overflowY)},Gd=function(ce,Ce){return Ce(ce.overflowX)&&Ce(ce.overflowY)},ld=function(ce){var Ce=window.getComputedStyle(ce),ze={overflowX:Ce.overflowX,overflowY:Ce.overflowY};return Gl(ze,vd)||Gl(ze,Td)},pc=function(){return!1;var ce,Ce,ze,dt},mc=function le(ce){return ce==null?null:ce===document.body?pc()?ce:null:ce===document.documentElement?null:ld(ce)?ce:le(ce.parentElement)},Lc=function(le){if(le)var ce=mc(le.parentElement)},Hc=function(le){return{x:le.scrollLeft,y:le.scrollTop}},yd=function le(ce){if(!ce)return!1;var Ce=window.getComputedStyle(ce);return Ce.position==="fixed"?!0:le(ce.parentElement)},sd=function(le){var ce=mc(le),Ce=yd(le);return{closestScrollable:ce,isFixedOnPage:Ce}},Zc=function(le){var ce=le.descriptor,Ce=le.isEnabled,ze=le.isCombineEnabled,dt=le.isFixedOnPage,ut=le.direction,Mt=le.client,Pt=le.page,Fn=le.closest,or=function(){if(!Fn)return null;var Br=Fn.scrollSize,wi=Fn.client,Ja=$s({scrollHeight:Br.scrollHeight,scrollWidth:Br.scrollWidth,height:wi.paddingBox.height,width:wi.paddingBox.width});return{pageMarginBox:Fn.page.marginBox,frameClient:wi,scrollSize:Br,shouldClipSubject:Fn.shouldClipSubject,scroll:{initial:Fn.scroll,current:Fn.scroll,max:Ja,diff:{value:Ko,displacement:Ko}}}}(),Gt=ut==="vertical"?Wr:Rr,Sn=Cr({page:Pt,withPlaceholder:null,axis:Gt,frame:or}),Hn={descriptor:ce,isCombineEnabled:ze,isFixedOnPage:dt,axis:Gt,isEnabled:Ce,client:Mt,page:Pt,frame:or,subject:Sn};return Hn},Qd=function(ce,Ce){var ze=Yn(ce);if(!Ce||ce!==Ce)return ze;var dt=ze.paddingBox.top-Ce.scrollTop,ut=ze.paddingBox.left-Ce.scrollLeft,Mt=dt+Ce.scrollHeight,Pt=ut+Ce.scrollWidth,Fn={top:dt,right:Pt,bottom:Mt,left:ut},or=Mi(Fn,ze.border),Gt=Hr({borderBox:or,margin:ze.margin,border:ze.border,padding:ze.padding});return Gt},Es=function(le){var ce=le.ref,Ce=le.descriptor,ze=le.env,dt=le.windowScroll,ut=le.direction,Mt=le.isDropDisabled,Pt=le.isCombineEnabled,Fn=le.shouldClipSubject,or=ze.closestScrollable,Gt=Qd(ce,or),Sn=$n(Gt,dt),Hn=function(){if(!or)return null;var wi=Yn(or),Ja={scrollHeight:or.scrollHeight,scrollWidth:or.scrollWidth};return{client:wi,page:$n(wi,dt),scroll:Hc(or),scrollSize:Ja,shouldClipSubject:Fn}}(),Br=Zc({descriptor:Ce,isEnabled:!Mt,isCombineEnabled:Pt,isFixedOnPage:ze.isFixedOnPage,direction:ut,client:Gt,page:Sn,closest:Hn});return Br},_s={passive:!1},qu={passive:!0},wc=function(le){return le.shouldPublishImmediately?_s:qu};function ps(le){var ce=(0,E.useContext)(le);return ce||ni(!1),ce}var Yc=function(ce){return ce&&ce.env.closestScrollable||null};function Rd(le){var ce=(0,E.useRef)(null),Ce=ps(os),ze=Is("droppable"),dt=Ce.registry,ut=Ce.marshal,Mt=ls(le),Pt=En(function(){return{id:le.droppableId,type:le.type,mode:le.mode}},[le.droppableId,le.mode,le.type]),Fn=(0,E.useRef)(Pt),or=En(function(){return Ct(function(Bl,es){ce.current||ni(!1);var Pl={x:Bl,y:es};ut.updateDroppableScroll(Pt.id,Pl)})},[Pt.id,ut]),Gt=en(function(){var Bl=ce.current;return!Bl||!Bl.env.closestScrollable?Ko:Hc(Bl.env.closestScrollable)},[]),Sn=en(function(){var Bl=Gt();or(Bl.x,Bl.y)},[Gt,or]),Hn=En(function(){return An(Sn)},[Sn]),Br=en(function(){var Bl=ce.current,es=Yc(Bl);Bl&&es||ni(!1);var Pl=Bl.scrollOptions;if(Pl.shouldPublishImmediately){Sn();return}Hn()},[Hn,Sn]),wi=en(function(Bl,es){ce.current&&ni(!1);var Pl=Mt.current,ms=Pl.getDroppableRef();ms||ni(!1);var Fu=sd(ms),vs={ref:ms,descriptor:Pt,env:Fu,scrollOptions:es};ce.current=vs;var zs=Es({ref:ms,descriptor:Pt,env:Fu,windowScroll:Bl,direction:Pl.direction,isDropDisabled:Pl.isDropDisabled,isCombineEnabled:Pl.isCombineEnabled,shouldClipSubject:!Pl.ignoreContainerClipping}),nc=Fu.closestScrollable;return nc&&(nc.setAttribute(sa.contextId,Ce.contextId),nc.addEventListener("scroll",Br,wc(vs.scrollOptions))),zs},[Ce.contextId,Pt,Br,Mt]),Ja=en(function(){var Bl=ce.current,es=Yc(Bl);return Bl&&es||ni(!1),Hc(es)},[]),io=en(function(){var Bl=ce.current;Bl||ni(!1);var es=Yc(Bl);ce.current=null,es&&(Hn.cancel(),es.removeAttribute(sa.contextId),es.removeEventListener("scroll",Br,wc(Bl.scrollOptions)))},[Br,Hn]),po=en(function(Bl){var es=ce.current;es||ni(!1);var Pl=Yc(es);Pl||ni(!1),Pl.scrollTop+=Bl.y,Pl.scrollLeft+=Bl.x},[]),rl=En(function(){return{getDimensionAndWatchScroll:wi,getScrollWhileDragging:Ja,dragStopped:io,scroll:po}},[io,wi,Ja,po]),xl=En(function(){return{uniqueId:ze,descriptor:Pt,callbacks:rl}},[rl,Pt,ze]);lo(function(){return Fn.current=xl.descriptor,dt.droppable.register(xl),function(){ce.current&&io(),dt.droppable.unregister(xl)}},[rl,Pt,io,xl,ut,dt.droppable]),lo(function(){ce.current&&ut.updateDroppableIsEnabled(Fn.current.id,!le.isDropDisabled)},[le.isDropDisabled,ut]),lo(function(){ce.current&&ut.updateDroppableIsCombineEnabled(Fn.current.id,le.isCombineEnabled)},[le.isCombineEnabled,ut])}function Ac(){}var bd={width:0,height:0,margin:Vo},Xc=function(ce){var Ce=ce.isAnimatingOpenOnMount,ze=ce.placeholder,dt=ce.animate;return Ce||dt==="close"?bd:{height:ze.client.borderBox.height,width:ze.client.borderBox.width,margin:ze.client.margin}},Hf=function(ce){var Ce=ce.isAnimatingOpenOnMount,ze=ce.placeholder,dt=ce.animate,ut=Xc({isAnimatingOpenOnMount:Ce,placeholder:ze,animate:dt});return{display:ze.display,boxSizing:"border-box",width:ut.width,height:ut.height,marginTop:ut.margin.top,marginRight:ut.margin.right,marginBottom:ut.margin.bottom,marginLeft:ut.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:dt!=="none"?Wo.placeholder:null}};function Ys(le){var ce=(0,E.useRef)(null),Ce=en(function(){ce.current&&(clearTimeout(ce.current),ce.current=null)},[]),ze=le.animate,dt=le.onTransitionEnd,ut=le.onClose,Mt=le.contextId,Pt=(0,E.useState)(le.animate==="open"),Fn=Pt[0],or=Pt[1];(0,E.useEffect)(function(){return Fn?ze!=="open"?(Ce(),or(!1),Ac):ce.current?Ac:(ce.current=setTimeout(function(){ce.current=null,or(!1)}),Ce):Ac},[ze,Fn,Ce]);var Gt=en(function(Hn){Hn.propertyName==="height"&&(dt(),ze==="close"&&ut())},[ze,ut,dt]),Sn=Hf({isAnimatingOpenOnMount:Fn,animate:le.animate,placeholder:le.placeholder});return E.createElement(le.placeholder.tagName,{style:Sn,"data-rbd-placeholder-context-id":Mt,onTransitionEnd:Gt,ref:le.innerRef})}var ud=E.memo(Ys),Jc=E.createContext(null);function Tc(le){le&&ma(le)||ni(!1)}function vc(le){return typeof le=="boolean"}function x(le,ce){ce.forEach(function(Ce){return Ce(le)})}var ee=[function(ce){var Ce=ce.props;Ce.droppableId||ni(!1),typeof Ce.droppableId!="string"&&ni(!1)},function(ce){var Ce=ce.props;vc(Ce.isDropDisabled)||ni(!1),vc(Ce.isCombineEnabled)||ni(!1),vc(Ce.ignoreContainerClipping)||ni(!1)},function(ce){var Ce=ce.getDroppableRef;Tc(Ce())}],ie=[function(ce){var Ce=ce.props,ze=ce.getPlaceholderRef;if(Ce.placeholder)var dt=ze()}],re=[function(ce){var Ce=ce.props;Ce.renderClone||ni(!1)},function(ce){var Ce=ce.getPlaceholderRef;Ce()&&ni(!1)}];function oe(le){co(function(){x(le,ee),le.props.mode==="standard"&&x(le,ie),le.props.mode==="virtual"&&x(le,re)})}var we=function(le){Ie(ce,le);function ce(){for(var ze,dt=arguments.length,ut=new Array(dt),Mt=0;Mt<dt;Mt++)ut[Mt]=arguments[Mt];return ze=le.call.apply(le,[this].concat(ut))||this,ze.state={isVisible:!!ze.props.on,data:ze.props.on,animate:ze.props.shouldAnimate&&ze.props.on?"open":"none"},ze.onClose=function(){ze.state.animate==="close"&&ze.setState({isVisible:!1})},ze}ce.getDerivedStateFromProps=function(dt,ut){return dt.shouldAnimate?dt.on?{isVisible:!0,data:dt.on,animate:"open"}:ut.isVisible?{isVisible:!0,data:ut.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!dt.on,data:dt.on,animate:"none"}};var Ce=ce.prototype;return Ce.render=function(){if(!this.state.isVisible)return null;var dt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(dt)},ce}(E.PureComponent),je={dragging:5e3,dropAnimating:4500},lt=function(ce,Ce){return Ce?Wo.drop(Ce.duration):ce?Wo.snap:Wo.fluid},mt=function(ce,Ce){return ce?Ce?_a.opacity.drop:_a.opacity.combining:null},It=function(ce){return ce.forceShouldAnimate!=null?ce.forceShouldAnimate:ce.mode==="SNAP"};function zn(le){var ce=le.dimension,Ce=ce.client,ze=le.offset,dt=le.combineWith,ut=le.dropping,Mt=!!dt,Pt=It(le),Fn=!!ut,or=Fn?el.drop(ze,Mt):el.moveTo(ze),Gt={position:"fixed",top:Ce.marginBox.top,left:Ce.marginBox.left,boxSizing:"border-box",width:Ce.borderBox.width,height:Ce.borderBox.height,transition:lt(Pt,ut),transform:or,opacity:mt(Mt,Fn),zIndex:Fn?je.dropAnimating:je.dragging,pointerEvents:"none"};return Gt}function ar(le){return{transform:el.moveTo(le.offset),transition:le.shouldAnimateDisplacement?null:"none"}}function ui(le){return le.type==="DRAGGING"?zn(le):ar(le)}function $r(le,ce,Ce){Ce===void 0&&(Ce=Ko);var ze=window.getComputedStyle(ce),dt=ce.getBoundingClientRect(),ut=mn(dt,ze),Mt=$n(ut,Ce),Pt={client:ut,tagName:ce.tagName.toLowerCase(),display:ze.display},Fn={x:ut.marginBox.width,y:ut.marginBox.height},or={descriptor:le,placeholder:Pt,displaceBy:Fn,client:ut,page:Mt};return or}function aa(le){var ce=Is("draggable"),Ce=le.descriptor,ze=le.registry,dt=le.getDraggableRef,ut=le.canDragInteractiveElements,Mt=le.shouldRespectForcePress,Pt=le.isEnabled,Fn=En(function(){return{canDragInteractiveElements:ut,shouldRespectForcePress:Mt,isEnabled:Pt}},[ut,Pt,Mt]),or=en(function(Br){var wi=dt();return wi||ni(!1),$r(Ce,wi,Br)},[Ce,dt]),Gt=En(function(){return{uniqueId:ce,descriptor:Ce,options:Fn,getDimension:or}},[Ce,or,Fn,ce]),Sn=(0,E.useRef)(Gt),Hn=(0,E.useRef)(!0);lo(function(){return ze.draggable.register(Sn.current),function(){return ze.draggable.unregister(Sn.current)}},[ze.draggable]),lo(function(){if(Hn.current){Hn.current=!1;return}var Br=Sn.current;Sn.current=Gt,ze.draggable.update(Gt,Br)},[Gt,ze.draggable])}function Oa(le,ce,Ce){co(function(){function ze(ut){return"Draggable[id: "+ut+"]: "}var dt=le.draggableId;dt||ni(!1),typeof dt!="string"&&ni(!1),Ma(le.index)||ni(!1),le.mapped.type!=="DRAGGING"&&(Tc(Ce()),le.isEnabled&&(fa(ce,dt)||ni(!1)))})}function uo(le){}function Oo(le){le.preventDefault()}function $o(le){var ce=(0,E.useRef)(null),Ce=en(function(vs){ce.current=vs},[]),ze=en(function(){return ce.current},[]),dt=ps(os),ut=dt.contextId,Mt=dt.dragHandleUsageInstructionsId,Pt=dt.registry,Fn=ps(Jc),or=Fn.type,Gt=Fn.droppableId,Sn=En(function(){return{id:le.draggableId,index:le.index,type:or,droppableId:Gt}},[le.draggableId,le.index,or,Gt]),Hn=le.children,Br=le.draggableId,wi=le.isEnabled,Ja=le.shouldRespectForcePress,io=le.canDragInteractiveElements,po=le.isClone,rl=le.mapped,xl=le.dropAnimationFinished;if(Oa(le,ut,ze),uo(po),!po){var Bl=En(function(){return{descriptor:Sn,registry:Pt,getDraggableRef:ze,canDragInteractiveElements:io,shouldRespectForcePress:Ja,isEnabled:wi}},[Sn,Pt,ze,io,Ja,wi]);aa(Bl)}var es=En(function(){return wi?{tabIndex:0,role:"button","aria-describedby":Mt,"data-rbd-drag-handle-draggable-id":Br,"data-rbd-drag-handle-context-id":ut,draggable:!1,onDragStart:Oo}:null},[ut,Mt,Br,wi]),Pl=en(function(vs){rl.type==="DRAGGING"&&rl.dropping&&vs.propertyName==="transform"&&xl()},[xl,rl]),ms=En(function(){var vs=ui(rl),zs=rl.type==="DRAGGING"&&rl.dropping?Pl:null,nc={innerRef:Ce,draggableProps:{"data-rbd-draggable-context-id":ut,"data-rbd-draggable-id":Br,style:vs,onTransitionEnd:zs},dragHandleProps:es};return nc},[ut,es,Br,rl,Pl,Ce]),Fu=En(function(){return{draggableId:Sn.id,type:Sn.type,source:{index:Sn.index,droppableId:Sn.droppableId}}},[Sn.droppableId,Sn.id,Sn.index,Sn.type]);return Hn(ms,rl.snapshot,Fu)}var Co=function(le,ce){return le===ce},tl=function(le){var ce=le.combine,Ce=le.destination;return Ce?Ce.droppableId:ce?ce.droppableId:null},Ol=function(ce){return ce.combine?ce.combine.draggableId:null},Tl=function(ce){return ce.at&&ce.at.type==="COMBINE"?ce.at.combine.draggableId:null};function cs(){var le=Ct(function(dt,ut){return{x:dt,y:ut}}),ce=Ct(function(dt,ut,Mt,Pt,Fn){return{isDragging:!0,isClone:ut,isDropAnimating:!!Fn,dropAnimation:Fn,mode:dt,draggingOver:Mt,combineWith:Pt,combineTargetFor:null}}),Ce=Ct(function(dt,ut,Mt,Pt,Fn,or,Gt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Fn,combineWith:or,mode:ut,offset:dt,dimension:Mt,forceShouldAnimate:Gt,snapshot:ce(ut,Pt,Fn,or,null)}}}),ze=function(ut,Mt){if(ut.isDragging){if(ut.critical.draggable.id!==Mt.draggableId)return null;var Pt=ut.current.client.offset,Fn=ut.dimensions.draggables[Mt.draggableId],or=la(ut.impact),Gt=Tl(ut.impact),Sn=ut.forceShouldAnimate;return Ce(le(Pt.x,Pt.y),ut.movementMode,Fn,Mt.isClone,or,Gt,Sn)}if(ut.phase==="DROP_ANIMATING"){var Hn=ut.completed;if(Hn.result.draggableId!==Mt.draggableId)return null;var Br=Mt.isClone,wi=ut.dimensions.draggables[Mt.draggableId],Ja=Hn.result,io=Ja.mode,po=tl(Ja),rl=Ol(Ja),xl=ut.dropDuration,Bl={duration:xl,curve:Fa.drop,moveTo:ut.newHomeClientOffset,opacity:rl?_a.opacity.drop:null,scale:rl?_a.scale.drop:null};return{mapped:{type:"DRAGGING",offset:ut.newHomeClientOffset,dimension:wi,dropping:Bl,draggingOver:po,combineWith:rl,mode:io,forceShouldAnimate:null,snapshot:ce(io,Br,po,rl,Bl)}}}return null};return ze}function Vs(le){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:le,combineWith:null}}var Gu={mapped:{type:"SECONDARY",offset:Ko,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Vs(null)}};function Eu(){var le=Ct(function(Mt,Pt){return{x:Mt,y:Pt}}),ce=Ct(Vs),Ce=Ct(function(Mt,Pt,Fn){return Pt===void 0&&(Pt=null),{mapped:{type:"SECONDARY",offset:Mt,combineTargetFor:Pt,shouldAnimateDisplacement:Fn,snapshot:ce(Pt)}}}),ze=function(Pt){return Pt?Ce(Ko,Pt,!0):null},dt=function(Pt,Fn,or,Gt){var Sn=or.displaced.visible[Pt],Hn=!!(Gt.inVirtualList&&Gt.effected[Pt]),Br=Ae(or),wi=Br&&Br.draggableId===Pt?Fn:null;if(!Sn){if(!Hn)return ze(wi);if(or.displaced.invisible[Pt])return null;var Ja=nl(Gt.displacedBy.point),io=le(Ja.x,Ja.y);return Ce(io,wi,!0)}if(Hn)return ze(wi);var po=or.displacedBy.point,rl=le(po.x,po.y);return Ce(rl,wi,Sn.shouldAnimate)},ut=function(Pt,Fn){if(Pt.isDragging)return Pt.critical.draggable.id===Fn.draggableId?null:dt(Fn.draggableId,Pt.critical.draggable.id,Pt.impact,Pt.afterCritical);if(Pt.phase==="DROP_ANIMATING"){var or=Pt.completed;return or.result.draggableId===Fn.draggableId?null:dt(Fn.draggableId,or.result.draggableId,or.impact,or.afterCritical)}return null};return ut}var sc=function(){var ce=cs(),Ce=Eu(),ze=function(ut,Mt){return ce(ut,Mt)||Ce(ut,Mt)||Gu};return ze},uc={dropAnimationFinished:Ao},Tu=Wt(sc,uc,null,{context:Dl,pure:!0,areStatePropsEqual:Co})($o);function tc(le){var ce=ps(Jc),Ce=ce.isUsingCloneFor;return Ce===le.draggableId&&!le.isClone?null:E.createElement(Tu,le)}function ql(le){var ce=typeof le.isDragDisabled=="boolean"?!le.isDragDisabled:!0,Ce=!!le.disableInteractiveElementBlocking,ze=!!le.shouldRespectForcePress;return E.createElement(tc,(0,Te.Z)({},le,{isClone:!1,isEnabled:ce,canDragInteractiveElements:Ce,shouldRespectForcePress:ze}))}function Pu(le){var ce=(0,E.useContext)(os);ce||ni(!1);var Ce=ce.contextId,ze=ce.isMovementAllowed,dt=(0,E.useRef)(null),ut=(0,E.useRef)(null),Mt=le.children,Pt=le.droppableId,Fn=le.type,or=le.mode,Gt=le.direction,Sn=le.ignoreContainerClipping,Hn=le.isDropDisabled,Br=le.isCombineEnabled,wi=le.snapshot,Ja=le.useClone,io=le.updateViewportMaxScroll,po=le.getContainerForClone,rl=en(function(){return dt.current},[]),xl=en(function(Qu){dt.current=Qu},[]),Bl=en(function(){return ut.current},[]),es=en(function(Qu){ut.current=Qu},[]);oe({props:le,getDroppableRef:rl,getPlaceholderRef:Bl});var Pl=en(function(){ze()&&io({maxScroll:bu()})},[ze,io]);Rd({droppableId:Pt,type:Fn,mode:or,direction:Gt,isDropDisabled:Hn,isCombineEnabled:Br,ignoreContainerClipping:Sn,getDroppableRef:rl});var ms=E.createElement(we,{on:le.placeholder,shouldAnimate:le.shouldAnimatePlaceholder},function(Qu){var Mc=Qu.onClose,Rc=Qu.data,kc=Qu.animate;return E.createElement(ud,{placeholder:Rc,onClose:Mc,innerRef:es,animate:kc,contextId:Ce,onTransitionEnd:Pl})}),Fu=En(function(){return{innerRef:xl,placeholder:ms,droppableProps:{"data-rbd-droppable-id":Pt,"data-rbd-droppable-context-id":Ce}}},[Ce,Pt,ms,xl]),vs=Ja?Ja.dragging.draggableId:null,zs=En(function(){return{droppableId:Pt,type:Fn,isUsingCloneFor:vs}},[Pt,vs,Fn]);function nc(){if(!Ja)return null;var Qu=Ja.dragging,Mc=Ja.render,Rc=E.createElement(tc,{draggableId:Qu.draggableId,index:Qu.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(kc,Ic){return Mc(kc,Ic,Qu)});return xr.createPortal(Rc,po())}return E.createElement(Jc.Provider,{value:zs},Mt(Fu,wi),nc())}var pu=function(ce,Ce){return ce===Ce.droppable.type},Cu=function(ce,Ce){return Ce.draggables[ce.draggable.id]},Ou=function(){var ce={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Ce=(0,Te.Z)({},ce,{shouldAnimatePlaceholder:!1}),ze=Ct(function(Mt){return{draggableId:Mt.id,type:Mt.type,source:{index:Mt.index,droppableId:Mt.droppableId}}}),dt=Ct(function(Mt,Pt,Fn,or,Gt,Sn){var Hn=Gt.descriptor.id,Br=Gt.descriptor.droppableId===Mt;if(Br){var wi=Sn?{render:Sn,dragging:ze(Gt.descriptor)}:null,Ja={isDraggingOver:Fn,draggingOverWith:Fn?Hn:null,draggingFromThisWith:Hn,isUsingPlaceholder:!0};return{placeholder:Gt.placeholder,shouldAnimatePlaceholder:!1,snapshot:Ja,useClone:wi}}if(!Pt)return Ce;if(!or)return ce;var io={isDraggingOver:Fn,draggingOverWith:Hn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Gt.placeholder,shouldAnimatePlaceholder:!0,snapshot:io,useClone:null}}),ut=function(Pt,Fn){var or=Fn.droppableId,Gt=Fn.type,Sn=!Fn.isDropDisabled,Hn=Fn.renderClone;if(Pt.isDragging){var Br=Pt.critical;if(!pu(Gt,Br))return Ce;var wi=Cu(Br,Pt.dimensions),Ja=la(Pt.impact)===or;return dt(or,Sn,Ja,Ja,wi,Hn)}if(Pt.phase==="DROP_ANIMATING"){var io=Pt.completed;if(!pu(Gt,io.critical))return Ce;var po=Cu(io.critical,Pt.dimensions);return dt(or,Sn,tl(io.result)===or,la(io.impact)===or,po,Hn)}if(Pt.phase==="IDLE"&&Pt.completed&&!Pt.shouldFlush){var rl=Pt.completed;if(!pu(Gt,rl.critical))return Ce;var xl=la(rl.impact)===or,Bl=!!(rl.impact.at&&rl.impact.at.type==="COMBINE"),es=rl.critical.droppable.id===or;return xl?Bl?ce:Ce:es?ce:Ce}return Ce};return ut},cd={updateViewportMaxScroll:ta};function gc(){return document.body||ni(!1),document.body}var Xu={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:gc},Ps=Wt(Ou,cd,null,{context:Dl,pure:!0,areStatePropsEqual:Co})(Pu);Ps.defaultProps=Xu},88359:function(In,Ut){"use strict";var te;var E=60103,fe=60106,Ie=60107,Te=60108,xe=60114,Be=60109,de=60110,Se=60112,pe=60113,De=60120,Xe=60115,Pe=60116,Ue=60121,rt=60122,qe=60117,He=60129,be=60131;if(typeof Symbol=="function"&&Symbol.for){var Qe=Symbol.for;E=Qe("react.element"),fe=Qe("react.portal"),Ie=Qe("react.fragment"),Te=Qe("react.strict_mode"),xe=Qe("react.profiler"),Be=Qe("react.provider"),de=Qe("react.context"),Se=Qe("react.forward_ref"),pe=Qe("react.suspense"),De=Qe("react.suspense_list"),Xe=Qe("react.memo"),Pe=Qe("react.lazy"),Ue=Qe("react.block"),rt=Qe("react.server.block"),qe=Qe("react.fundamental"),He=Qe("react.debug_trace_mode"),be=Qe("react.legacy_hidden")}function ht(pt){if(typeof pt=="object"&&pt!==null){var $e=pt.$$typeof;switch($e){case E:switch(pt=pt.type,pt){case Ie:case xe:case Te:case pe:case De:return pt;default:switch(pt=pt&&pt.$$typeof,pt){case de:case Se:case Pe:case Xe:case Be:return pt;default:return $e}}case fe:return $e}}}var Je=Be,Ze=E,ye=Se,Ee=Ie,Ye=Pe,Ne=Xe,ot=fe,ct=xe,_e=Te,Me=pe;te=de,te=Je,te=Ze,te=ye,te=Ee,te=Ye,te=Ne,te=ot,te=ct,te=_e,te=Me,te=function(){return!1},te=function(){return!1},Ut.isContextConsumer=function(pt){return ht(pt)===de},te=function(pt){return ht(pt)===Be},te=function(pt){return typeof pt=="object"&&pt!==null&&pt.$$typeof===E},te=function(pt){return ht(pt)===Se},te=function(pt){return ht(pt)===Ie},te=function(pt){return ht(pt)===Pe},te=function(pt){return ht(pt)===Xe},te=function(pt){return ht(pt)===fe},te=function(pt){return ht(pt)===xe},te=function(pt){return ht(pt)===Te},te=function(pt){return ht(pt)===pe},te=function(pt){return typeof pt=="string"||typeof pt=="function"||pt===Ie||pt===xe||pt===He||pt===Te||pt===pe||pt===De||pt===be||typeof pt=="object"&&pt!==null&&(pt.$$typeof===Pe||pt.$$typeof===Xe||pt.$$typeof===Be||pt.$$typeof===de||pt.$$typeof===Se||pt.$$typeof===qe||pt.$$typeof===Ue||pt[0]===rt)},te=ht},72973:function(In,Ut,te){"use strict";In.exports=te(88359)},32637:function(In){"use strict";In.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAtKADAAQAAAABAAAAtAAAAAD/7QA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h7hJSFHV5YtANU6l6zThlDUORwc23fQLXh3d2qegrlC7goopyvz9aeYJIZNHA0/pQRlboOSUuKMBiyNcUkgrfxLgSRYBBPLjdSfZ1n9IM2dyekbHSS228PoPMhoeQ/7zFrnfLu3riwZ3jHfYFskQkVarPMClqha0OOJSSFZI6TTmT3loioDpdKnV0WJhwY0RDtQn3dg7STRw9FLNeTOSnVhdpCsX0nYQRIxKSsAAa2NsxtninaDZgQNKEoz1U9TLBbZmSHP1WMMb5+XC5KKMfo4l3Bz6ucuVsNPVh2YQ+Jihg/LlgbSjTCpbJDkGJcdJHtR0/6rivJAsn7KIpmk5V9AOkz3loASvylBnUf/YWz/dNSnAMaUtsiin/qsPEdRjh+5ubsiFjAOr3zN78rl1C2AGeXtQjcBqoh5K34usWPXp2PqFKJkN2DWcV7yJkAVN3JFrqDcV/KSUVHuEmwxTdgKWjcBqoh5K36uLb4kLXpyjNvtZjFJvW4CVHEjV+QKHgLAKRpuAlQR81b8XA+AnKLhJkAVN3JFruBVQuui4SZAFTFvxc8tNceRoiFqzGf2X1JV/DtvXuFPWKDMJJSJhs6jFy/8E9e7eeh/2QL/B6DwevuUcCm/AAAAAElFTkSuQmCC"},20345:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAqCAYAAABfjB7GAAAAAXNSR0IArs4c6QAAE8RJREFUeF7tW2l4FWWWfuuG7GFP2MOissgiotCKsiPQDa449uiD2IoCtm2r03ajstOKji0IIgZQwLZnuhVkBNRukUAIWyCBIBiWCIQlK8SQhZCFkNzqOedb6qubSmAm84x/KOC599atqlt13u895z0L1sXDn9iWZQGWBcvyiVf6Q/tAH9V3/EHuD3wVx9kAbMuCj88EbJ+8hs2n8ndX23x+uoo8n64o/gK2rV9pj23zr4n9/FacR/v5nzqX9tt+2Lafv/fTKx3qt0F3bPvVteQx6nz5Ste1+GfEeeL69F79rl88t3G8uB+6nrhH9R09Pe8z7lU+nfN8QJ4P/kTLCprWYey8bKs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vfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(In){"use strict";In.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/9KvDPZHnCu9V3vc2r7zvZYW6dyL4T2WE83nQgYlpy73MQwZqdz52czyKns8jTUeR06uR0FBkGdkhW04VN7Rr7TRcIE85cl75X/ZC5Pj3R9YPs+t7GDPp22u+uE7k9iLy6E3m176TbkV/OJ5GddHLYgczkPcyhGE/F277YpHLmd10XvDsFFpH1oiB9KQjQYu1aYJcKdnYvLKiA/M5UFDdWbr6LvIyNZ7KgiEufRz9Hs7UxAVSAA8l03MYufDYMtX7kRXUPx05erxquN8AmPdyiUS2QWxNq0za/GWlc83TJHfVf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uSSwINlw66vnonq757l0gHwoTNt7cz8nd3Yz4f/0XK6vduVqt42shwKRVC5U58oEJnXL9FPjpcPhFGHaBhdxW4sOsYHZjZGul8dDeXg4eBKtw86VGhGVwicBOpT6OxwMMV/3EQg6AWKIUvH5RNolA29CDT3wmNspggFJXkNUkl1IuQKnQixEgIwkJ5MjBYF/fTCG7E6XWDeW06oJpdinfW8BEx7JYaHE0aM0JdIN1IOF8WgwFO5YnABqrkUiiFDCsnyPqU9PKWXmCwc5De9OC0XNdja1QysjHUcte17BFMJCEZ5K6RCDwN/tGnKlws/cKIg8Kj4vMASYVKjdqXExZzAh8op+/5zRwrdHv1HgGwW+UeAbBb5R4BsFvlGgpcA3YPFtR3yjwDcKfKPANwp8o8A3ClyMAv8DD8nJIGmcntAAAAAASUVORK5CYII="},96908:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oq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/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79633:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26bWaVVc5+VOTKdV3exHiD92J7ydqoBNsBa22MwlhmNrw5+2icNPOs9zIFYCW8uXNHCipX/1057Xl2WryHPPLma6H4jJo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graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},36459:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return E}});function E(fe){if(fe==null)throw new TypeError("Cannot destructure "+fe)}},84279:function(In,Ut,te){"use strict";var E=Object.defineProperty,fe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,de=(a,y,b)=>y in a?E(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,Se=(a,y)=>{for(var b in y||(y={}))xe.call(y,b)&&de(a,b,y[b]);if(Te)for(var b of Te(y))Be.call(y,b)&&de(a,b,y[b]);return a},pe=(a,y)=>fe(a,Ie(y)),De=a=>typeof a=="symbol"?a:a+"",Xe=(a,y)=>{var b={};for(var z in a)xe.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&&Be.call(a,z)&&(b[z]=a[z]);return b};function Pe(a){return Array.isArray(a)}var Ue={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 rt(){return"window"in globalThis&&"document"in globalThis}function qe(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function He(){return typeof navigator.vibrate=="function"}function be(){var a,y;if(!rt())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 Qe(){if(!rt())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 ht(){return HTMLElement.prototype.hasOwnProperty("popover")}var Je={strings:Ue,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return Je._locale||(Je._locale=rt()?navigator.language.slice(0,5):"en-US"),Je._locale},set locale(a){Je._locale=a,Je._numberFormatter=void 0,Je.dirty=!0},get numberFormatter(){return Je._numberFormatter||(Je._numberFormatter=new Intl.NumberFormat(Je.locale)),Je._numberFormatter},merge(a,y){if(typeof a=="string"&&y)Je.strings[a]=Se(Se({},Je.strings[a]),y),Je.dirty=!0;else for(const b of Object.keys(a))Je.merge(b,a[b])},get dirty(){return Je._dirty},set dirty(a){Je._dirty||Je._dirty===a||(Je._dirty=!0,setTimeout(()=>{Je._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return Je._subscribers.push(a),Je._subscribers.length-1},unsubscribe(a){a<0||a>=Je._subscribers.length||(Je._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 ne=Ze(z);ne&&b.setAttribute("data-tooltip",ne)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const z=b.getAttribute("data-l10n-arial-label");if(z){const ne=Ze(z);ne&&b.setAttribute("aria-label",ne)}}}};function Ze(a,...y){if(a===void 0)return;let b="";const z=Je.locale;Je.strings[z]&&(b=Je.strings[z][a]);const ne=z.slice(0,2);if(!b&&Je.strings[ne]&&(b=Je.strings[ne][a]),b||(b=Je.strings.en[a]),!b)return;const ae=/(%@|%([0-9]+)\$@)/g;let ue=ae.exec(b),ke=0;for(;ue;){if(y[ke++]){const Ve=ue[2]?parseInt(ue[2],10)-1:ke-1;let at=y[Ve];typeof at=="number"&&(at=Je.numberFormatter.format(at)),b=b.replace(ue[1],at)}ue=ae.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"},Ee={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Ye={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"},Ne={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"},ot={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"},ct={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 _e(a){var y,b,z,ne,ae,ue;const ke=a.split("!");let Le,Ve,at,Ot=255,ln=255,Zn=255,nr=-1;const Fi=ke.length>0&&ke[0].startsWith("-");Fi&&(ke[0]=ke[0].slice(1));for(let eo=0;eo<ke.length;eo++){Le=Ot,Ve=ln,at=Zn;const Ai=(y=ke[eo].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],pa=Ai==null?void 0:Ai.toLowerCase(),ao=Ai&&(ue=(ae=(ne=(z=(b=Ne[pa])!=null?b:Ne[ot[Ai]])!=null?z:Ee[Ai])!=null?ne:ct[Ai])!=null?ae:ye[Ai])!=null?ue:ke[eo].trim();let Pa=ao.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(Pa!=null&&Pa[1]&&Pa[2]&&Pa[3])Ot=Math.max(0,Math.min(255,Number.parseInt(Pa[1],16))),ln=Math.max(0,Math.min(255,Number.parseInt(Pa[2],16))),Zn=Math.max(0,Math.min(255,Number.parseInt(Pa[3],16)));else if(Pa=ao.match(/^#([\da-f]{3})$/i),Pa!=null&&Pa[1]){const ul=Number.parseInt(Pa[1][0],16),Nl=Number.parseInt(Pa[1][1],16),El=Number.parseInt(Pa[1][2],16);Ot=Math.max(0,Math.min(255,ul*16+ul)),ln=Math.max(0,Math.min(255,Nl*16+Nl)),Zn=Math.max(0,Math.min(255,El*16+El))}else if(Pa=ao.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),Pa!=null&&Pa[1]&&Pa[2]&&Pa[3])Ot=Math.max(0,Math.min(255,Number.parseInt(Pa[1]))),ln=Math.max(0,Math.min(255,Number.parseInt(Pa[2]))),Zn=Math.max(0,Math.min(255,Number.parseInt(Pa[3])));else return;nr>=0&&(Ot=(1-nr)*Ot+nr*Le,ln=(1-nr)*ln+nr*Ve,Zn=(1-nr)*Zn+nr*at,nr=-1),eo+1<ke.length&&(nr=Math.max(0,Math.min(100,Number.parseInt(ke[++eo])))/100)}return nr>=0&&(Ot=nr*Ot+(1-nr)*Le,ln=nr*ln+(1-nr)*Ve,Zn=nr*Zn+(1-nr)*at),Fi&&(Ot=255-Ot,ln=255-ln,Zn=255-Zn),"#"+("00"+Math.round(Ot).toString(16)).slice(-2)+("00"+Math.round(ln).toString(16)).slice(-2)+("00"+Math.round(Zn).toString(16)).slice(-2)}function Me(a){var y,b;return a=a.trim(),(b=(y=Ye[a.toLowerCase()])!=null?y:Ye[ot[a]])!=null?b:_e(a)}function pt(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 ft(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 ne=z<=.5?z*(b+1):z+b-z*b,ae=z*2-ne;return{r:Math.round(255*$e(ae,ne,y+2)),g:Math.round(255*$e(ae,ne,y)),b:Math.round(255*$e(ae,ne,y-2))}}function We(a){return a<0?0:a>255?255:Math.round(a)}function gt(a){const{r:y,g:b,b:z}=a;let ne=((1<<24)+(We(y)<<16)+(We(b)<<8)+We(z)).toString(16).slice(1);return ne[0]===ne[1]&&ne[2]===ne[3]&&ne[4]===ne[5]&&ne[6]===ne[7]&&(ne=ne[0]+ne[2]+ne[4]),"#"+ne}function kt(a){let{r:y,g:b,b:z}=a;y=y/255,b=b/255,z=z/255;const ne=Math.min(y,b,z),ae=Math.max(y,b,z),ue=ae-ne;let ke,Le;ae===ne?ke=0:y===ae?ke=(b-z)/ue:b===ae?ke=2+(z-y)/ue:z===ae&&(ke=4+(y-b)/ue),ke=Math.min(ke*60,360),ke<0&&(ke+=360);const Ve=(ne+ae)/2;return ae===ne?Le=0:Ve<=.5?Le=ue/(ae+ne):Le=ue/(2-ae-ne),{h:ke,s:Le,l:Ve}}function xt(a){let y=pt(a);if(!y)return a;let{h:b,s:z,l:ne}=kt(y);return z+=.1,ne-=.1,gt(ft({h:b,s:z,l:ne}))}var et={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"},Fe={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},Dt=[{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 qt(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 ne of Dt)if((!y||ne.variant===y)&&(!b||ne.style===b)&&z>=ne.offset&&z<ne.offset+ne.len){const ae=ne.start+z-ne.offset;return String.fromCodePoint(Fe[ae]||ae)}return a}function Xt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Fe)if(Fe[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Dt)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 Et(a){var y;let b="";for(const z of a){if("{}<>[]$&#^_%:'\u02DC".includes(z)){b+=z;continue}const ne=(y=z.codePointAt(0))!=null?y:0;let ae=et[ne];if(ae)ae.startsWith("\\")?b+=ae+" ":b+=ae;else{const{char:ue,variant:ke,style:Le}=Xt(ne);switch(ae=ue,ke){case"double-struck":ae=`\\mathbb{${ae}}`;break;case"fraktur":ae=`\\mathfrak{${ae}}`;break;case"script":ae=`\\mathscr{${ae}}`;break;case"sans-serif":ae=`\\mathsf{${ae}}`;break;case"monospace":ae=`\\mathtt{${ae}}`;break;case"calligraphic":ae=`\\mathcal{${ae}}`;break}switch(Le){case"bold":ae=`\\mathbf{${ae}}`;break;case"italic":ae=`\\mathit{${ae}}`;break;case"bolditalic":ae=`\\mathbfit{${ae}}`;break}b+=ae}}return b}function zt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Yt={},Vn=Se({},et),Pn={},_t={},pn={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}"},sr={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}},Tn={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}},Oe={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:Tn},"amsmath.sty":{package:sr,primitive:!0},"texvc.sty":{package:pn,primitive:!1}},me={" ":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},he=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,ge,ve;Qe()?(ge=new RegExp("\\p{Letter}","u"),ve=new RegExp("[0-9\\p{Letter}]","u")):(ge=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,ve=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function se(a,y,b="mord",z){y!==void 0&&(Yt[a]={definitionType:"symbol",type:b,variant:z,codepoint:y},Vn[y]||(Vn[y]=a))}function Ke(a,y,b){if(typeof a=="string"){for(let z=0;z<a.length;z++){const ne=a.charAt(z);se(ne,ne.codePointAt(0))}return}for(const[z,ne,ae,ue]of a)se(z,ne,ae!=null?ae:y,ue!=null?ue:b)}function bt(a,y){for(let b=a;b<=y;b++)se(String.fromCodePoint(b),b)}function Wt(a){var y;return(y=_t[a])!=null?y:null}function yn(a,y){var b,z;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ne=[];for(const ue in Pn)ue.startsWith(y)&&!Pn[ue].infix&&ne.push({match:ue,frequency:(b=Pn[ue].frequency)!=null?b:0});for(const ue in Yt)ue.startsWith(y)&&ne.push({match:ue,frequency:(z=Yt[ue].frequency)!=null?z:0});const ae=y.substring(1);for(const ue of Object.keys(a.options.macros))ue.startsWith(ae)&&ne.push({match:"\\"+ue,frequency:0});return ne.sort((ue,ke)=>{var Le,Ve;return ue.frequency===ke.frequency?ue.match.length===ke.match.length?ue.match<ke.match?-1:1:ue.match.length-ke.match.length:((Le=ke.frequency)!=null?Le:0)-((Ve=ue.frequency)!=null?Ve:0)}),ne.map(ue=>ue.match)}function bn(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function cn(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:bn(b[0].slice(1))});for(let z=1;z<=b.length;z++)y.push(...cn(b[z]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:bn(b[0].slice(1))});for(let z=1;z<=b.length;z++)y.push(...cn(b[z]))}return y}function wn(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 Tt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const z of a)_t[z]=b}function nn(a,y,b){typeof a=="string"&&(a=[a]);const ne={tabular:!0,params:cn(y),createAtom:b};for(const ae of a)_t[ae]=ne}function fn(a,y,b){var z,ne;b||(b={});const ae={definitionType:"function",params:cn(y),ifMode:b.ifMode,isFunction:(z=b.isFunction)!=null?z:!1,applyMode:b.applyMode,infix:(ne=b.infix)!=null?ne:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")Pn["\\"+a]=ae;else for(const ue of a)Pn["\\"+ue]=ae}var sn;function an(a){return sn||(sn=Lt(Oe)),a?Lt(Se(Se({},sn),a)):sn}function xr(a,y){var b,z,ne,ae;if(typeof a=="string"){let ue=0;const ke=a;return/(^|[^\\])#1/.test(ke)&&(ue=1),/(^|[^\\])#2/.test(ke)&&(ue=2),/(^|[^\\])#3/.test(ke)&&(ue=3),/(^|[^\\])#4/.test(ke)&&(ue=4),/(^|[^\\])#5/.test(ke)&&(ue=5),/(^|[^\\])#6/.test(ke)&&(ue=6),/(^|[^\\])#7/.test(ke)&&(ue=7),/(^|[^\\])#8/.test(ke)&&(ue=8),/(^|[^\\])#9/.test(ke)&&(ue=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(z=y==null?void 0:y.captureSelection)!=null?z:!0,args:ue,def:ke}}return Se({expand:(ne=y==null?void 0:y.expand)!=null?ne:!0,captureSelection:(ae=y==null?void 0:y.captureSelection)!=null?ae:!0,args:0},a)}function Lt(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 ne of Object.keys(z.package))y[ne]=xr(z.package[ne],{expand:!z.primitive,captureSelection:z.captureSelection});else y[b]=xr(z)}return y}function Vt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=Pn[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Yt[a]:me[a]&&(b={definitionType:"symbol",type:"mord",codepoint:me[a]})}else if(y==="math"){if(b=Yt[a],!b&&a.length===1){const z=En("math",a.codePointAt(0));return z.startsWith("\\")?pe(Se({},Vt(z,"math")),{command:z}):null}}else me[a]?b={definitionType:"symbol",type:"mord",codepoint:me[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function cr(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function En(a,y){if(y===void 0)return"";if(a==="math"&&Vn[y])return Vn[y];if(a==="text"){const b=Object.keys(me).find(z=>me[z]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var en=[0,.68889,0,0,.72222],Fr=[0,.68889,0,0,.66667],Ur=[0,.68889,0,0,.77778],ai=[0,.68889,0,0,.61111],ei=[.16667,.68889,0,0,.77778],Mi=[0,.68889,0,0,.55556],ci=[0,0,0,0,.25],Qn=[0,.825,0,0,2.33334],Or=[0,.9,0,0,2.33334],Hr=[0,.68889,0,0,.54028],vi=[-.03598,.46402,0,0,.5],Zi=[-.13313,.36687,0,0,1],$t=[.01354,.52239,0,0,1],$n=[.01354,.52239,0,0,1.11111],mn=[0,.54986,0,0,1],Yn=[0,.69224,0,0,.5],Dr=[0,.43056,0,0,1],hi=[.08198,.58198,0,0,.77778],oi=[.19444,.69224,0,0,.41667],Vr=[.1808,.675,0,0,1],Ct=[.19444,.69224,0,0,.83334],hn=[.13667,.63667,0,0,1],An=[-.064,.437,0,0,1.334],jn=[.08167,.58167,0,0,.77778],Bt=[0,.69224,0,0,.72222],on=[0,.69224,0,0,.66667],Kn=[-.13313,.36687,0,0,.77778],Dn=[.06062,.54986,0,0,.77778],rr=[0,.69224,0,0,.77778],er=[.25583,.75583,0,0,.77778],Gr=[.25142,.75726,0,0,.77778],ra=[.20576,.70576,0,0,.77778],Oi=[.30274,.79383,0,0,.77778],bi=[.22958,.72958,0,0,.77778],Ji=[.1808,.675,0,0,.77778],Ti=[.13667,.63667,0,0,.77778],ua=[.13597,.63597,0,0,.77778],br=[.03517,.54986,0,0,.77778],Di=[0,.675,0,0,.77778],ni=[.19444,.69224,0,0,.61111],No=[0,.54986,0,0,.76042],xa=[0,.54986,0,0,.66667],za=[.0391,.5391,0,0,.77778],Lo=[.03517,.54986,0,0,1.33334],Ea=[.38569,.88569,0,0,.77778],zo=[.23222,.74111,0,0,.77778],gi=[.19444,.69224,0,0,.77778],Cl=[0,.37788,0,0,.5],pl=[0,.54986,0,0,.72222],jl=[0,.69224,0,0,.83334],Ko=[.11111,.69224,0,0,.66667],Do=[.26167,.75726,0,0,.77778],Na=[.48256,.98256,0,0,.77778],ml=[.28481,.79383,0,0,.77778],nl=[.08167,.58167,0,0,.22222],Sl=[.08167,.58167,0,0,.38889],Rl=[0,.43056,.04028,0,.66667],Ll=[.41951,.91951,0,0,.77778],wl=[.24982,.74947,0,0,.38865],Vl=[.08319,.58283,0,0,.75623],_l=[0,.10803,0,0,.27764],Fl=[0,.47534,0,0,.50181],Vo=[.18906,.47534,0,0,.50181],Wn=[0,.69141,0,0,.50181],Nn=[.24982,.74947,0,0,.27764],Ir=[0,.69141,0,0,.21471],Cr=[.25,.75,0,0,.44722],Ii=[0,.64444,0,0,.575],Ma=[.08556,.58556,0,0,.89444],Ka=[0,.69444,0,0,.89444],Ya=[0,.68611,0,0,.9],$a=[0,.68611,0,0,.86944],Za=[.25,.75,0,0,.575],Go=[.25,.75,0,0,.31944],Ho=[0,.69444,0,0,.63889],Qo=[0,.69444,0,0,.31944],vr=[0,.44444,0,0,.63889],Sr=[0,.44444,0,0,.51111],Tr=[0,.69444,0,0,.575],Ae=[.13333,.63333,0,0,.89444],it=[0,.44444,0,0,.31944],st=[0,.69444,0,0,.86944],yt=[0,.68611,0,0,.69166],wt=[0,.68611,0,0,.83055],Ft=[0,.68611,0,0,.89444],Nt=[0,.69444,0,0,.60278],gn=[.19444,.69444,0,0,.51111],Rn=[0,.69444,0,0,.83055],Nr=[-.10889,.39111,0,0,1.14999],Wr=[.19444,.69444,0,0,.575],Rr=[.19444,.69444,0,0,1.14999],Un=[.19444,.69444,0,0,.70277],pr=[.05556,.75,0,0,.575],Jn=[0,.68611,0,0,.95833],_r=[.08556,.58556,0,0,.76666],yi=[-.02639,.47361,0,0,.575],Yr=[0,.44444,0,0,.89444],Xr=[0,.55556,0,0,.76666],ti=[-.10889,.39111,0,0,.89444],fi=[.00222,.50222,0,0,.89444],Ci=[.19667,.69667,0,0,.89444],At=[.08556,.58556,0,0,1.14999],vt=[0,.69444,0,0,.70277],On=[-.02778,.47222,0,0,.575],Cn=[.25,.75,0,0,.51111],mr=[-.13889,.36111,0,0,1.14999],Zr=[.19444,.69444,0,0,1.02222],Zt=[.12963,.69444,0,0,.89444],Ht=[.19444,.69444,0,0,.44722],tn=[0,.64444,.13167,0,.59111],xn=[.19444,.64444,.13167,0,.59111],fr=[0,.68611,.17208,0,.8961],wr=[.19444,.44444,.105,0,.53222],lr=[0,.44444,.085,0,.82666],kr=[0,.69444,.06709,0,.59111],di=[0,.69444,.12945,0,.35555],Ni=[0,.69444,0,0,.94888],Si=[0,.69444,.11472,0,.59111],Jr=[0,.68611,.10778,0,.88555],Bi=[0,.69444,.07939,0,.62055],Wi=[0,.69444,.12417,0,.30667],da=[0,.64444,.13556,0,.51111],Vi=[.19444,.64444,.13556,0,.51111],Ei=[0,.68333,.16389,0,.74333],ga=[.19444,.43056,.08847,0,.46],Ca=[0,.43056,.07514,0,.71555],fo=[0,.69444,.06646,0,.51111],Bo=[0,.69444,0,0,.83129],xo=[0,.69444,.1225,0,.51111],Jt=[0,.68333,.09403,0,.76666],rn=[0,.68333,.11111,0,.76666],kn=[0,.69444,.06961,0,.51444],zr=[0,.69444,0,0,.27778],Mr=[.25,.75,0,0,.38889],tr=[0,.64444,0,0,.5],yr=[0,.69444,0,0,.77778],Ln=[0,.68333,0,0,.75],Xn=[0,.68333,0,0,.77778],qr=[0,.68333,0,0,.68056],Pi=[0,.68333,0,0,.72222],Da=[.25,.75,0,0,.5],la=[.25,.75,0,0,.27778],La=[0,.69444,0,0,.5],mo=[0,.69444,0,0,.55556],Ui=[0,.43056,0,0,.44445],pi=[0,.43056,0,0,.5],ri=[.19444,.43056,0,0,.55556],Xa=[0,.43056,0,0,.55556],ya=[.08333,.58333,0,0,.77778],to=[0,.43056,0,0,.27778],Ba=[0,.66786,0,0,.27778],Ua=[0,.69444,0,0,.75],ko=[0,.66786,0,0,.5],Va=[0,.68333,0,0,.625],qi=[.19444,.69444,0,0,.44445],So=[0,.69444,0,0,.72222],Ro=[.19444,.69444,0,0,.5],fl=[.19444,.69444,0,0,1],Al=[.011,.511,0,0,1.126],jt=[.19444,.69444,0,0,.61111],dn=[.05556,.75,0,0,.5],Mn=[0,.68333,0,0,.83334],ur=[.0391,.5391,0,0,.66667],Qi=[-.05555,.44445,0,0,.5],dr=[0,.43056,0,0,.77778],ii=[0,.55556,0,0,.66667],si=[-.03625,.46375,0,0,.77778],ki=[-.01688,.48312,0,0,.77778],Yi=[.0391,.5391,0,0,1],Lr=[0,.69444,0,0,.61111],ia=[-.03472,.46528,0,0,.5],Ha=[.25,.75,0,0,.44445],ro=[-.14236,.35764,0,0,1],Xi=[.244,.744,0,0,.412],Wa=[.19444,.69444,0,0,.88889],_i=[.12963,.69444,0,0,.77778],jr=[.19444,.69444,0,0,.38889],li=[.011,.511,0,0,1.638],va=[.19444,.69444,0,0,0],tt=[0,.44444,0,0,.575],nt=[.19444,.44444,0,0,.575],Qt=[0,.68611,0,0,.75555],Kt=[0,.69444,0,0,.66759],Bn=[0,.68611,0,0,.80555],Gn=[0,.68611,.08229,0,.98229],_n=[0,.68611,0,0,.76666],Pr=[0,.44444,0,0,.58472],Kr=[.19444,.44444,0,0,.6118],Er=[.19444,.43056,0,0,.5],ta=[0,.68333,.02778,.08334,.76278],zi=[0,.68333,.08125,.05556,.83125],ji=[0,.43056,0,.05556,.48472],Li=[.19444,.43056,0,.08334,.51702],ea=[.25,.75,0,0,.42778],Hi=[0,.69444,0,0,.55],ka=[0,.69444,0,0,.73334],vo=[0,.69444,0,0,.79445],Fo=[0,.69444,0,0,.51945],Zo=[0,.69444,0,0,.70278],Ao=[0,.69444,0,0,.76389],qo=[.25,.75,0,0,.34306],go=[0,.69444,0,0,.56111],Io=[0,.69444,0,0,.25556],Xo=[.19444,.45833,0,0,.56111],Fa=[0,.45833,0,0,.56111],_a=[0,.69444,0,0,.30556],no=[0,.69444,0,0,.58056],Yo=[0,.69444,0,0,.67223],Wo=[0,.69444,0,0,.85556],il=[0,.69444,0,0,.55834],el=[0,.65556,.11156,0,.5],cl=[0,.69444,.08094,0,.70834],vl=[.17014,0,0,0,.44445],gl=[0,.69444,.0799,0,.5],kl=[0,.69444,0,0,.73752],gr=[0,.69444,.09205,0,.5],Gi=[0,.69444,.09031,0,.77778],ho=[0,.69444,.07816,0,.27778],Ga=[0,.69444,.00316,0,.5],mi=[.19444,.69444,0,0,.83334],Sa=[.05556,.75,0,0,.83334],wa=[0,.75,0,0,.5],Qa=[.125,.08333,0,0,.27778],ca=[0,.08333,0,0,.27778],ba=[0,.65556,0,0,.5],Ta=[0,.69444,0,0,.47222],Eo=[0,.69444,0,0,.66667],al=[0,.69444,0,0,.59722],oa=[0,.69444,0,0,.54167],Jo=[0,.69444,0,0,.70834],Po=[.25,.75,0,0,.28889],ll=[0,.69444,0,0,.51667],Yl=[0,.44444,0,0,.44445],$l=[.19444,.44444,0,0,.51667],us=[0,.44444,0,0,.38333],ds=[0,.44444,0,0,.51667],as=[0,.69444,0,0,.83334],uu=[.35001,.85,0,0,.45834],Xs=[.35001,.85,0,0,.57778],wu=[.35001,.85,0,0,.41667],Rs=[.35001,.85,0,0,.58334],ws=[0,.72222,0,0,.55556],Js=[1e-5,.6,0,0,.66667],js=[1e-5,.6,0,0,.77778],Bs=[.25001,.75,0,0,.94445],yu=[.306,.805,.19445,0,.47222],$s=[.30612,.805,.19445,0,.47222],Fs=[.25001,.75,0,0,.83334],bu=[.35001,.85,0,0,.47222],fc=[.25001,.75,0,0,1.11111],$u=[.65002,1.15,0,0,.59722],Hs=[.65002,1.15,0,0,.81111],rs=[.65002,1.15,0,0,.47222],Zs=[.65002,1.15,0,0,.66667],Au=[0,.75,0,0,1],_u=[.55001,1.05,0,0,1.27778],Os=[.862,1.36,.44445,0,.55556],gs=[.86225,1.36,.44445,0,.55556],fs=[.55001,1.05,0,0,1.11111],Mu=[.65002,1.15,0,0,.52778],Gs=[.65002,1.15,0,0,.61111],mu=[.55001,1.05,0,0,1.51112],Hl=[.95003,1.45,0,0,.73611],qa=[.95003,1.45,0,0,1.04445],jo=[.95003,1.45,0,0,.52778],hl=[.95003,1.45,0,0,.75],Il=[0,.75,0,0,1.44445],Ds=[.95003,1.45,0,0,.58334],ks=[1.25003,1.75,0,0,.79167],cu=[1.25003,1.75,0,0,1.27778],Du=[1.25003,1.75,0,0,.58334],oc=[1.25003,1.75,0,0,.80556],Re=[0,.825,0,0,1.8889],Ge=[1.25003,1.75,0,0,.63889],St=[.64502,1.155,0,0,.875],Rt=[1e-5,.6,0,0,.875],un=[-99e-5,.601,0,0,.66667],vn=[.64502,1.155,0,0,.66667],ir=[1e-5,.9,0,0,.88889],Ar=[.65002,1.15,0,0,.88889],hr=[.90001,0,0,0,.88889],Qr=[-.00499,.605,0,0,1.05556],xi=[0,.12,0,0,.45],qn=[0,.61111,0,0,.525],Ki=[.08333,.69444,0,0,.525],$i=[-.08056,.53055,0,0,.525],na=[-.05556,.55556,0,0,.525],Ia=[0,.43056,0,0,.525],sa=[.22222,.43056,0,0,.525],ja=[0,0,0,0,.525],Ra={"AMS-Regular":{32:ci,65:en,66:Fr,67:en,68:en,69:Fr,70:ai,71:Ur,72:Ur,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Ur,76:Fr,77:[0,.68889,0,0,.94445],78:en,79:ei,80:ai,81:ei,82:en,83:Mi,84:Fr,85:en,86:en,87:[0,.68889,0,0,1],88:en,89:en,90:Fr,107:Mi,160:ci,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Mi,295:Hr,710:Qn,732:Or,770:Qn,771:Or,989:jn,1008:Rl,8245:[0,.54986,0,0,.275],8463:Hr,8487:en,8498:Mi,8502:Fr,8503:[0,.68889,0,0,.44445],8504:Fr,8513:[0,.68889,0,0,.63889],8592:vi,8594:vi,8602:Zi,8603:Zi,8606:$t,8608:$t,8610:$n,8611:$n,8619:mn,8620:mn,8621:[-.13313,.37788,0,0,1.38889],8622:Zi,8624:Yn,8625:Yn,8630:Dr,8631:Dr,8634:hi,8635:hi,8638:oi,8639:oi,8642:oi,8643:oi,8644:Vr,8646:Vr,8647:Vr,8648:Ct,8649:Vr,8650:Ct,8651:$t,8652:$t,8653:Zi,8654:Zi,8655:Zi,8666:hn,8667:hn,8669:[-.13313,.37788,0,0,1],8672:An,8674:An,8705:[0,.825,0,0,.5],8708:Mi,8709:jn,8717:[0,.43056,0,0,.42917],8722:vi,8724:[.08198,.69224,0,0,.77778],8726:jn,8733:rr,8736:Bt,8737:Bt,8738:[.03517,.52239,0,0,.72222],8739:nl,8740:[.25142,.74111,0,0,.27778],8741:Sl,8742:[.25142,.74111,0,0,.5],8756:on,8757:on,8764:Kn,8765:[-.13313,.37788,0,0,.77778],8769:Kn,8770:si,8774:Oi,8776:ki,8778:jn,8782:Dn,8783:Dn,8785:hi,8786:hi,8787:hi,8790:rr,8791:bi,8796:[.08198,.91667,0,0,.77778],8806:er,8807:er,8808:Gr,8809:Gr,8812:[.25583,.75583,0,0,.5],8814:ra,8815:ra,8816:Oi,8817:Oi,8818:bi,8819:bi,8822:Ji,8823:Ji,8828:Ti,8829:Ti,8830:bi,8831:bi,8832:ra,8833:ra,8840:Oi,8841:Oi,8842:ua,8843:ua,8847:br,8848:br,8858:hi,8859:hi,8861:hi,8862:Di,8863:Di,8864:Di,8865:Di,8872:[0,.69224,0,0,.61111],8873:Bt,8874:[0,.69224,0,0,.88889],8876:ai,8877:ai,8878:en,8879:en,8882:br,8883:br,8884:Ti,8885:Ti,8888:[0,.54986,0,0,1.11111],8890:ri,8891:ni,8892:ni,8901:[0,.54986,0,0,.27778],8903:jn,8905:jn,8906:jn,8907:rr,8908:rr,8909:[-.03598,.46402,0,0,.77778],8910:No,8911:No,8912:br,8913:br,8914:xa,8915:xa,8916:on,8918:za,8919:za,8920:Lo,8921:Lo,8922:Ea,8923:Ea,8926:Ti,8927:Ti,8928:Oi,8929:Oi,8934:zo,8935:zo,8936:zo,8937:zo,8938:ra,8939:ra,8940:Oi,8941:Oi,8994:gi,8995:gi,9416:[.15559,.69224,0,0,.90222],9484:Yn,9488:Yn,9492:Cl,9496:Cl,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Di,9633:Di,9650:pl,9651:pl,9654:br,9660:pl,9661:pl,9664:br,9674:Ko,9733:[.19444,.69224,0,0,.94445],10003:jl,10016:jl,10731:Ko,10846:[.19444,.75583,0,0,.61111],10877:Ti,10878:Ti,10885:er,10886:er,10887:ua,10888:ua,10889:Do,10890:Do,10891:Na,10892:Na,10901:Ti,10902:Ti,10933:Gr,10934:Gr,10935:Do,10936:Do,10937:Do,10938:Do,10949:er,10950:er,10955:ml,10956:ml,57350:nl,57351:Sl,57352:jn,57353:Rl,57356:Gr,57357:Gr,57358:Ll,57359:Oi,57360:Oi,57361:Ll,57366:Gr,57367:Gr,57368:Gr,57369:Gr,57370:ua,57371:ua},"Caligraphic-Regular":{32:ci,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:ci},"Fraktur-Regular":{32:ci,33:[0,.69141,0,0,.29574],34:Ir,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:wl,41:wl,42:[0,.62119,0,0,.27764],43:Vl,44:_l,45:Vl,46:_l,47:[.24982,.74947,0,0,.50181],48:Fl,49:Fl,50:Fl,51:Vo,52:Vo,53:Vo,54:Wn,55:Vo,56:Wn,57:Vo,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:Nn,93:Nn,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:ci,8216:Ir,8217:Ir,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:ci,33:[0,.69444,0,0,.35],34:Nt,35:[.19444,.69444,0,0,.95833],36:pr,37:[.05556,.75,0,0,.95833],38:Ka,39:Qo,40:Cr,41:Cr,42:[0,.75,0,0,.575],43:Ae,44:[.19444,.15556,0,0,.31944],45:us,46:[0,.15556,0,0,.31944],47:Za,48:Ii,49:Ii,50:Ii,51:Ii,52:Ii,53:Ii,54:Ii,55:Ii,56:Ii,57:Ii,58:it,59:[.19444,.44444,0,0,.31944],60:Ma,61:ti,62:Ma,63:[0,.69444,0,0,.54305],64:Ka,65:$a,66:[0,.68611,0,0,.81805],67:wt,68:[0,.68611,0,0,.88194],69:Qt,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Ya,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:yt,77:[0,.68611,0,0,1.09166],78:Ya,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:$a,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Go,92:Za,93:Go,94:Tr,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Ho,99:Sr,100:Ho,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Ho,105:Qo,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Qo,109:[0,.44444,0,0,.95833],110:vr,111:tt,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:vr,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:Sr,123:Za,124:Go,125:Za,126:[.35,.34444,0,0,.575],160:ci,163:[0,.69444,0,0,.86853],168:Tr,172:[0,.44444,0,0,.76666],176:st,177:Ae,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Ae,216:[.04861,.73472,0,0,.89444],223:al,230:[0,.44444,0,0,.83055],247:Ae,248:[.09722,.54167,0,0,.575],305:it,338:[0,.68611,0,0,1.16944],339:Yr,567:[.19444,.44444,0,0,.35139],710:Tr,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Tr,715:Tr,728:Tr,729:Qo,730:st,732:Tr,733:Tr,915:yt,916:Jn,920:Ft,923:Bn,926:_n,928:Ya,931:wt,933:Ft,934:wt,936:Ft,937:wt,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Qo,8217:Qo,8220:Nt,8221:Nt,8224:gn,8225:gn,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:Kt,8465:Rn,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Rn,8501:vt,8592:Nr,8593:Wr,8594:Nr,8595:Wr,8596:Nr,8597:Za,8598:Rr,8599:Rr,8600:Rr,8601:Rr,8636:Nr,8637:Nr,8640:Nr,8641:Nr,8656:Nr,8657:Un,8658:Nr,8659:Un,8660:Nr,8661:[.25,.75,0,0,.70277],8704:Ho,8706:[0,.69444,.06389,0,.62847],8707:Ho,8709:pr,8711:Jn,8712:_r,8715:_r,8722:Ae,8723:Ae,8725:Za,8726:Za,8727:On,8728:yi,8729:yi,8730:[.18,.82,0,0,.95833],8733:Yr,8734:[0,.44444,0,0,1.14999],8736:Bt,8739:Go,8741:Za,8743:Xr,8744:Xr,8745:Xr,8746:Xr,8747:[.19444,.69444,.12778,0,.56875],8764:ti,8768:[.19444,.69444,0,0,.31944],8771:fi,8776:[.02444,.52444,0,0,.89444],8781:fi,8801:fi,8804:Ci,8805:Ci,8810:At,8811:At,8826:Ma,8827:Ma,8834:Ma,8835:Ma,8838:Ci,8839:Ci,8846:Xr,8849:Ci,8850:Ci,8851:Xr,8852:Xr,8853:Ae,8854:Ae,8855:Ae,8856:Ae,8857:Ae,8866:vt,8867:vt,8868:Ka,8869:Ka,8900:yi,8901:[-.02639,.47361,0,0,.31944],8902:On,8968:Cn,8969:Cn,8970:Cn,8971:Cn,8994:mr,8995:mr,9651:Zr,9657:On,9661:Zr,9667:On,9711:Rr,9824:Zt,9825:Zt,9826:Zt,9827:Zt,9837:[0,.75,0,0,.44722],9838:Ht,9839:Ht,10216:Cr,10217:Cr,10815:Ya,10927:Ci,10928:Ci,57376:va},"Main-BoldItalic":{32:ci,33:[0,.69444,.11417,0,.38611],34:Bi,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:di,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:tn,49:tn,50:tn,51:tn,52:xn,53:tn,54:tn,55:xn,56:tn,57:tn,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Si,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:fr,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:fr,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:kr,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:wr,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:wr,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:ci,168:[0,.69444,.11473,0,.59111],176:Ni,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:lr,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:lr,567:[.19444,.44444,.04611,0,.385],710:kr,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:di,730:Ni,732:Si,733:Si,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:fr,931:[0,.68611,.11431,0,.82666],933:Jr,934:[0,.68611,.05632,0,.82666],936:Jr,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:di,8217:di,8220:[0,.69444,.16772,0,.62055],8221:Bi},"Main-Italic":{32:ci,33:Wi,34:kn,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:Wi,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:da,49:da,50:da,51:da,52:Vi,53:da,54:da,55:Vi,56:da,57:da,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:xo,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:Ei,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:Ei,79:Jt,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:Ei,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:fo,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:ga,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:ga,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:ci,168:[0,.66786,.10474,0,.51111],176:Bo,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:Ca,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Ca,710:fo,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:Bo,732:[0,.66786,.11585,0,.51111],733:xo,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Jt,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Ei,931:[0,.68333,.12028,0,.71555],933:rn,934:[0,.68333,.05986,0,.71555],936:rn,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:Wi,8217:Wi,8220:[0,.69444,.1685,0,.51444],8221:kn,8463:Hr},"Main-Regular":{32:ci,33:zr,34:La,35:mi,36:dn,37:Sa,38:yr,39:zr,40:Mr,41:Mr,42:wa,43:ya,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Da,48:tr,49:tr,50:tr,51:tr,52:tr,53:tr,54:tr,55:tr,56:tr,57:tr,58:to,59:[.19444,.43056,0,0,.27778],60:za,61:Kn,62:za,63:Ta,64:yr,65:Ln,66:[0,.68333,0,0,.70834],67:Pi,68:[0,.68333,0,0,.76389],69:qr,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Ln,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Xn,76:Va,77:[0,.68333,0,0,.91667],78:Ln,79:Xn,80:qr,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Pi,85:Ln,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Ln,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:la,92:Da,93:la,94:La,95:[.31,.12056,.02778,0,.5],97:pi,98:mo,99:Ui,100:mo,101:Ui,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:mo,105:Ba,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:zr,109:[0,.43056,0,0,.83334],110:Xa,111:pi,112:ri,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:Xa,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:Ui,123:Da,124:la,125:Da,126:[.35,.31786,0,0,.5],160:ci,163:[0,.69444,0,0,.76909],167:qi,168:ko,172:[0,.43056,0,0,.66667],176:Ua,177:ya,182:jt,184:vl,198:[0,.68333,0,0,.90278],215:ya,216:[.04861,.73194,0,0,.77778],223:La,230:[0,.43056,0,0,.72222],247:ya,248:[.09722,.52778,0,0,.5],305:to,338:[0,.68333,0,0,1.01389],339:dr,567:[.19444,.43056,0,0,.30556],710:La,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:La,715:La,728:La,729:Ba,730:Ua,732:ko,733:La,915:Va,916:Mn,920:Xn,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Ln,931:Pi,933:Xn,934:Pi,936:Xn,937:Pi,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:zr,8217:zr,8220:La,8221:La,8224:qi,8225:qi,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Hr,8465:So,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:So,8501:Lr,8592:Zi,8593:Ro,8594:Zi,8595:Ro,8596:Zi,8597:Da,8598:fl,8599:fl,8600:fl,8601:fl,8614:[.011,.511,0,0,1],8617:Al,8618:Al,8636:Zi,8637:Zi,8640:Zi,8641:Zi,8652:[.011,.671,0,0,1],8656:Zi,8657:jt,8658:Zi,8659:jt,8660:Zi,8661:[.25,.75,0,0,.61111],8704:mo,8706:[0,.69444,.05556,.08334,.5309],8707:mo,8709:dn,8711:Mn,8712:ur,8715:ur,8722:ya,8723:ya,8725:Da,8726:Da,8727:ia,8728:Qi,8729:Qi,8730:[.2,.8,0,0,.83334],8733:dr,8734:Dr,8736:Bt,8739:la,8741:Da,8743:ii,8744:ii,8745:ii,8746:ii,8747:[.19444,.69444,.11111,0,.41667],8764:Kn,8768:[.19444,.69444,0,0,.27778],8771:si,8773:[-.022,.589,0,0,1],8776:ki,8781:si,8784:[-.133,.67,0,0,.778],8801:si,8804:ua,8805:ua,8810:Yi,8811:Yi,8826:za,8827:za,8834:za,8835:za,8838:ua,8839:ua,8846:ii,8849:ua,8850:ua,8851:ii,8852:ii,8853:ya,8854:ya,8855:ya,8856:ya,8857:ya,8866:Lr,8867:Lr,8868:yr,8869:yr,8872:[.249,.75,0,0,.867],8900:Qi,8901:[-.05555,.44445,0,0,.27778],8902:ia,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:Ha,8969:Ha,8970:Ha,8971:Ha,8994:ro,8995:ro,9136:Xi,9137:Xi,9651:Wa,9657:ia,9661:Wa,9667:ia,9711:fl,9824:_i,9825:_i,9826:_i,9827:_i,9837:[0,.75,0,0,.38889],9838:jr,9839:jr,10216:Mr,10217:Mr,10222:Xi,10223:Xi,10229:[.011,.511,0,0,1.609],10230:li,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:li,10815:Ln,10927:ua,10928:ua,57376:va},"Math-BoldItalic":{32:ci,48:tt,49:tt,50:tt,51:nt,52:nt,53:nt,54:Ii,55:nt,56:Ii,57:nt,65:$a,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:Gn,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Qt,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:Kt,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:Pr,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:ci,915:[0,.68611,.15972,0,.65694],916:Jn,920:[0,.68611,.03194,0,.86722],923:Bn,926:[0,.68611,.07458,0,.84125],928:Gn,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:_n,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:Pr,960:[0,.44444,.03704,0,.68241],961:Kr,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:Kr,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:ci,48:pi,49:pi,50:pi,51:Er,52:Er,53:Er,54:tr,55:Er,56:tr,57:Er,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:zi,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:ta,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:ji,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:ci,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:ta,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:zi,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:ji,960:[0,.43056,.03588,0,.57003],961:Li,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:Li,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:ci,33:[0,.69444,0,0,.36667],34:il,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:_a,40:ea,41:ea,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:Hi,49:Hi,50:Hi,51:Hi,52:Hi,53:Hi,54:Hi,55:Hi,56:Hi,57:Hi,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Fo,64:ka,65:ka,66:ka,67:Zo,68:vo,69:[0,.69444,0,0,.64167],70:Lr,71:ka,72:vo,73:[0,.69444,0,0,.33056],74:Fo,75:Ao,76:no,77:[0,.69444,0,0,.97778],78:vo,79:vo,80:Zo,81:[.10556,.69444,0,0,.79445],82:Zo,83:Lr,84:ka,85:Ao,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:ka,89:[0,.69444,.0275,0,.73334],90:Yo,91:qo,93:qo,94:Hi,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:go,99:[0,.45833,0,0,.48889],100:go,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:go,105:Io,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Io,109:[0,.45833,0,0,.86667],110:Fa,111:[0,.45833,0,0,.55],112:Xo,113:Xo,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Fa,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:ci,168:Hi,176:ka,180:Hi,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Hi,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Hi,729:_a,730:ka,732:Hi,733:Hi,915:no,916:[0,.69444,0,0,.91667],920:Wo,923:Yo,926:ka,928:vo,931:vo,933:Wo,934:vo,936:Wo,937:vo,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:_a,8217:_a,8220:il,8221:il},"SansSerif-Italic":{32:ci,33:[0,.69444,.05733,0,.31945],34:Ga,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:ho,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:Qa,45:[0,.44444,.01946,0,.33333],46:ca,47:[.25,.75,.13164,0,.5],48:el,49:el,50:el,51:el,52:el,53:el,54:el,55:el,56:el,57:el,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:Eo,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:cl,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:oa,77:[0,.69444,.08094,0,.875],78:cl,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:gl,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:ci,168:[0,.67937,.06385,0,.5],176:kl,184:vl,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:gl,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:gr,715:La,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:kl,732:[0,.67659,.08826,0,.5],733:gr,915:[0,.69444,.13372,0,.54167],916:as,920:[0,.69444,.07555,0,.77778],923:Lr,926:[0,.69444,.12816,0,.66667],928:cl,931:[0,.69444,.11983,0,.72222],933:Gi,934:[0,.69444,.04603,0,.72222],936:Gi,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:ho,8217:ho,8220:[0,.69444,.14205,0,.5],8221:Ga},"SansSerif-Regular":{32:ci,33:[0,.69444,0,0,.31945],34:La,35:mi,36:dn,37:Sa,38:[0,.69444,0,0,.75834],39:zr,40:Mr,41:Mr,42:wa,43:ya,44:Qa,45:[0,.44444,0,0,.33333],46:ca,47:Da,48:ba,49:ba,50:ba,51:ba,52:ba,53:ba,54:ba,55:ba,56:ba,57:ba,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Ta,64:Eo,65:Eo,66:Eo,67:Ho,68:[0,.69444,0,0,.72223],69:al,70:[0,.69444,0,0,.56945],71:Eo,72:Jo,73:zr,74:Ta,75:[0,.69444,0,0,.69445],76:oa,77:[0,.69444,0,0,.875],78:Jo,79:[0,.69444,0,0,.73611],80:Ho,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:mo,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:Eo,89:[0,.69444,.025,0,.66667],90:Lr,91:Po,93:Po,94:La,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:ll,99:Yl,100:ll,101:Yl,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:ll,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:ds,111:[0,.44444,0,0,.5],112:$l,113:$l,114:[0,.44444,.01389,0,.34167],115:us,116:[0,.57143,0,0,.36111],117:ds,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:ci,168:[0,.67937,0,0,.5],176:Eo,184:vl,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:La,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:La,715:La,728:La,729:[0,.67937,0,0,.27778],730:Eo,732:[0,.67659,0,0,.5],733:La,915:oa,916:as,920:yr,923:Lr,926:Eo,928:Jo,931:So,933:yr,934:So,936:yr,937:So,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:zr,8217:zr,8220:La,8221:La},"Script-Regular":{32:ci,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:ci},"Size1-Regular":{32:ci,40:uu,41:uu,47:Xs,91:wu,92:Xs,93:wu,123:Rs,125:Rs,160:ci,710:ws,732:ws,770:ws,771:ws,8214:[-99e-5,.601,0,0,.77778],8593:Js,8595:Js,8657:js,8659:js,8719:Bs,8720:Bs,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:$s,8748:yu,8749:yu,8750:$s,8896:Fs,8897:Fs,8898:Fs,8899:Fs,8968:bu,8969:bu,8970:bu,8971:bu,9168:un,10216:bu,10217:bu,10752:fc,10753:fc,10754:fc,10756:Fs,10758:Fs},"Size2-Regular":{32:ci,40:$u,41:$u,47:Hs,91:rs,92:Hs,93:rs,123:Zs,125:Zs,160:ci,710:Au,732:Au,770:Au,771:Au,8719:_u,8720:_u,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:gs,8748:Os,8749:Os,8750:gs,8896:fs,8897:fs,8898:fs,8899:fs,8968:Mu,8969:Mu,8970:Mu,8971:Mu,10216:Gs,10217:Gs,10752:mu,10753:mu,10754:mu,10756:fs,10758:fs},"Size3-Regular":{32:ci,40:Hl,41:Hl,47:qa,91:jo,92:qa,93:jo,123:hl,125:hl,160:ci,710:Il,732:Il,770:Il,771:Il,8730:[.95003,1.45,0,0,1],8968:Ds,8969:Ds,8970:Ds,8971:Ds,10216:hl,10217:hl},"Size4-Regular":{32:ci,40:ks,41:ks,47:cu,91:Du,92:cu,93:Du,123:oc,125:oc,160:ci,710:Re,732:Re,770:Re,771:Re,8730:[1.25003,1.75,0,0,1],8968:Ge,8969:Ge,8970:Ge,8971:Ge,9115:St,9116:Rt,9117:St,9118:St,9119:Rt,9120:St,9121:vn,9122:un,9123:vn,9124:vn,9125:un,9126:vn,9127:ir,9128:Ar,9129:hr,9130:[0,.3,0,0,.88889],9131:ir,9132:Ar,9133:hr,9143:[.88502,.915,0,0,1.05556],10216:oc,10217:oc,57344:Qr,57345:Qr,57680:xi,57681:xi,57682:xi,57683:xi},"Typewriter-Regular":{32:ja,33:qn,34:qn,35:qn,36:Ki,37:Ki,38:qn,39:qn,40:Ki,41:Ki,42:[0,.52083,0,0,.525],43:$i,44:[.13889,.125,0,0,.525],45:$i,46:[0,.125,0,0,.525],47:Ki,48:qn,49:qn,50:qn,51:qn,52:qn,53:qn,54:qn,55:qn,56:qn,57:qn,58:Ia,59:[.13889,.43056,0,0,.525],60:na,61:[-.19549,.41562,0,0,.525],62:na,63:qn,64:qn,65:qn,66:qn,67:qn,68:qn,69:qn,70:qn,71:qn,72:qn,73:qn,74:qn,75:qn,76:qn,77:qn,78:qn,79:qn,80:qn,81:[.13889,.61111,0,0,.525],82:qn,83:qn,84:qn,85:qn,86:qn,87:qn,88:qn,89:qn,90:qn,91:Ki,92:Ki,93:Ki,94:qn,95:[.09514,0,0,0,.525],96:qn,97:Ia,98:qn,99:Ia,100:qn,101:Ia,102:qn,103:sa,104:qn,105:qn,106:[.22222,.61111,0,0,.525],107:qn,108:qn,109:Ia,110:Ia,111:Ia,112:sa,113:sa,114:Ia,115:Ia,116:[0,.55358,0,0,.525],117:Ia,118:Ia,119:Ia,120:Ia,121:sa,122:Ia,123:Ki,124:Ki,125:Ki,126:qn,127:qn,160:ja,176:qn,184:[.19445,0,0,0,.525],305:Ia,567:sa,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:qn,715:qn,728:qn,730:qn,770:qn,771:qn,776:qn,915:qn,916:qn,920:qn,923:qn,926:qn,928:qn,931:qn,933:qn,934:qn,936:qn,937:qn,8216:qn,8217:qn,8242:qn,9251:[.11111,.21944,0,0,.525]}},oo=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Uo=10,lo=.25,To=1.2,yl=.431,Kl={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[yl,yl,yl],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:[lo,lo,lo],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]},bo=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ma=5,fa={"\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 Aa(a,y){a===void 0&&(a=77);const b=Ra[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 fa)a=fa[z].codePointAt(0);else if(oo.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 so={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]},Mo={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]},Dl={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(Mo[a]){const[Ve,at,Ot]=Mo[a],ln=`<span class="stretchy" style="height:${Ot}em"><svg width="100%" height="${Ot}em" viewBox="0 0 ${Ve} ${at}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Dl[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Ot/2)/100}em;min-width:0">${ln}</span>`}const[y,b,z,ne]=so[a];let ae,ue;const ke=z/1e3;y.length===3?(ae=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],ue=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(ae=["slice-1-of-2","slice-2-of-2"],ue=["xMinYMin","xMaxYMin"]):(ae=["slice-1-of-1"],ue=[ne]);const Le=y.map((Ve,at)=>`<span class="${ae[at]}" style=height:${ke}em><svg width=400em height=${ke}em viewBox="0 0 400000 ${z}" preserveAspectRatio="${ue[at]} slice"><path fill="currentcolor" d="${Dl[Ve]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${ke}em;min-width:${b}em;">${Le}</span>`}function sl(a){return so[a]?so[a][2]/1e3:Mo[a][2]}function Zl(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 ne=a.charCodeAt(b+1);if(ne>=56320&&ne<=57343){const ae=z-55296,ue=ne-56320;z=Fd(2,16)+ae*Fd(2,10)+ue,b++}}y.push(z)}return y}var Ul=8205,ts=[[Ul,1],[65038,2],[127995,5],[129456,4],[917536,96]],Jl,Ls=[127462,127487];function Is(a){var y;if(Jl===void 0){Jl={};for(const b of ts)for(let z=b[0];z<=b[0]+b[1]-1;z++)Jl[z]=!0}return(y=Jl[a])!=null?y:!1}function Ql(a){return a>=Ls[0]&&a<=Ls[1]}function du(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=Zl(a);let z=0;for(;z<b.length;){const ne=b[z++],ae=b[z];if(ae===Ul){const ue=z-1;for(z+=2;b[z]===Ul;)z+=2;y.push(String.fromCodePoint(...b.slice(ue,z-ue+1)))}else if(Is(ae)){const ue=z-1;for(;Is(b[z]);)z+=b[z]===Ul?2:1;y.push(String.fromCodePoint(...b.slice(ue,2*z-ue-1)))}else Ql(ne)?(z+=1,y.push(String.fromCodePoint(...b.slice(z-2,2)))):y.push(String.fromCodePoint(ne))}return y}var os=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=du(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 As(a,y){var b,z,ne,ae;const ue=[];let ke=a.next();if(ke&&ke!=="\\relax"){if(ke==="\\noexpand")ke=a.next(),ke&&ue.push(ke);else if(ke==="\\obeyspaces")a.obeyspaces=!0;else if(ke==="\\bgroup")ue.push("<{>");else if(ke==="\\egroup")ue.push("<}>");else if(ke==="\\string"){if(ke=a.next(),ke)if(ke.startsWith("\\"))for(const Le of ke)ue.push(Le==="\\"?"\\backslash":Le);else ke==="<{>"?ue.push("\\{"):ke==="<space>"?ue.push("~"):ke==="<}>"&&ue.push("\\}")}else if(ke==="\\csname"){for(;a.peek()==="<space>";)a.next();let Le="",Ve=!1,at=[];do{if(at.length===0)if(/^#[\d?@]$/.test(a.peek())){const Ot=a.get().slice(1);at=xs((z=(b=y==null?void 0:y(Ot))!=null?b:y==null?void 0:y("?"))!=null?z:"\\placeholder{}",y),ke=at[0]}else ke=a.next(),at=ke?[ke]:[];Ve=at.length===0,!Ve&&ke==="\\endcsname"&&(Ve=!0,at.shift()),Ve||(Ve=ke==="<$>"||ke==="<$$>"||ke==="<{>"||ke==="<}>"||typeof ke=="string"&&ke.length>1&&ke.startsWith("\\")),Ve||(Le+=at.shift())}while(!Ve);Le&&ue.push("\\"+Le),ue.push(...at)}else if(ke!=="\\endcsname")if(ke.length>1&&ke.startsWith("#")){const Le=ke.slice(1);ue.push(...xs((ae=(ne=y==null?void 0:y(Le))!=null?ne:y==null?void 0:y("?"))!=null?ae:"\\placeholder{}",y))}else ue.push(ke)}return ue}function xs(a,y=null){const b=[];let z="";for(const ue of a.toString().split(/\r?\n/)){z&&b.push(z),z=" ";const ke=ue.match(/((?:\\%)|[^%])*/);ke!==null&&b.push(ke[0])}const ne=new os(Et(b.join(""))),ae=[];do ae.push(...As(ne,y));while(!ne.end());return ae}function zl(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 wo(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:zl([a,...y.map(b=>`{${b}}`)])}function dl(a){return zl(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var Ml=class uh{constructor(y){uh._registry[y]=this}static createAtom(y,b,z){return uh._registry[y].createAtom(b,Vt(b,y),z)}static serialize(y,b){var z;if(!y||y.length===0)return"";if((z=b.skipStyles)!=null&&z){const ne=[];for(const ae of ys(y)){const ue=uh._registry[ae[0].mode];ne.push(...ue.serialize(ae,b))}return zl(ne)}return zl(ss(y,b))}static getFont(y,b,z){return uh._registry[y].getFont(b,z)}};Ml._registry={};var _o=Ml;function ys(a){const y=[];let b=[],z="NONE";for(const ne of a)ne.type!=="first"&&(ne.mode!==z?(b.length>0&&y.push(b),b=[ne],z=ne.mode):b.push(ne));return b.length>0&&y.push(b),y}function co(a,y){const b=[];let z=[],ne;for(const ae of a)if(ae.type!=="first"&&ae.style){let ue;y==="variant"?(ue=ae.style.variant,ae.style.variantStyle&&ae.style.variantStyle!=="up"&&(ue+="-"+ae.style.variantStyle)):ue=ae.style[y],ue===ne?z.push(ae):(z.length>0&&b.push(z),z=[ae],ne=ue)}return z.length>0&&b.push(z),b}function Wl(a,y){var b;const{parent:z}=a[0],ne=z==null?void 0:z.computedStyle.color,ae=[];for(const ue of ys(a)){const ke=y.defaultMode;for(const Le of co(ue,"color")){const Ve=Le[0].computedStyle,at=_o._registry[Le[0].mode].serialize(Le,pe(Se({},y),{defaultMode:ke==="text"?"text":"math"}));!y.skipStyles&&Ve.color&&Ve.color!=="none"&&(!z||ne!==Ve.color)?ae.push(wo("\\textcolor",(b=Ve.verbatimColor)!=null?b:Ve.color,zl(at))):ae.push(zl(at))}}return ae}function ls(a,y){const{parent:b}=a[0],z=b==null?void 0:b.computedStyle.backgroundColor;return co(a,"backgroundColor").map(ne=>{var ae;if(ne.length>0||ne[0].type!=="box"){const ue=ne[0].computedStyle;if(ue.backgroundColor&&ue.backgroundColor!=="none"&&(!b||z!==ue.backgroundColor))return wo("\\colorbox",(ae=ue.verbatimBackgroundColor)!=null?ae:ue.backgroundColor,zl(Wl(ne,pe(Se({},y),{defaultMode:"text"}))))}return zl(Wl(ne,y))})}function ss(a,y){if(a.length===0)return[];const{parent:b}=a[0],z=b==null?void 0:b.computedStyle.fontSize,ne=[];for(const ae of co(a,"fontSize")){const ue=ae[0].computedStyle.fontSize,ke=ls(ae,y);ke&&(ue&&ue!=="auto"&&(!b||z!==ue)?ne.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][ue],...ke):ne.push(...ke))}return ne}function Nu(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 fu(a){if(a.length===0)return"ord";const y=Nu(a[0].type),b=Nu(a[a.length-1].type);return y&&y===b?y:"ord"}function zu(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 ha=class Gm{constructor(y,b){var z,ne,ae,ue,ke;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Pe(y)?this.children=y.filter(Ve=>Ve!==null):y&&y instanceof Gm&&(this.children=[y]),this.children)for(const Ve of this.children)Ve.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=(ne=b==null?void 0:b.classes)!=null?ne:"",this.isTight=(ae=b==null?void 0:b.isTight)!=null?ae:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let Le=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(Le=(ke=_o.getFont((ue=b.mode)!=null?ue:"math",this,pe(Se({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?ke:void 0),Le||(Le="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),hs(this,Le)}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 ne=zu(b,z);ne.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ne)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=zu(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"]=zu(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"]=zu(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"]=zu(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 ne=y.backgroundColor;this.isSelected&&(ne=xt(ne)),ne&&ne!==b.backgroundColor&&(this.setStyle("background-color",ne),this.setStyle("display","inline-block"));const ae=y.scalingFactor;return this.scale=ae,this.skew*=ae,this.italic*=ae,this}toMarkup(){var y,b,z,ne;let ae=(y=this.value)!=null?y:"";if(this.children)for(const Zn of this.children)ae+=Zn.toMarkup();let ue="";if(this.svgBody)ue=ol(this.svgBody);else if(this.svgOverlay){ue='<span style="',ue+="display: inline-block;",ue+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,ue+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,ue+='">',ue+=ae,ue+="</span>",ue+='<svg style="position:absolute;overflow:visible;',ue+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Zn=(b=this.cssProperties)==null?void 0:b.padding;Zn?(ue+=`top:${Zn};`,ue+=`left:${Zn};`,ue+=`width:calc(100% - 2 * ${Zn} );`):ue+="top:0;left:0;width:100%;",ue+="z-index:2;",ue+='"',this.svgStyle&&(ue+=this.svgStyle),ue+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,ue+=`>${this.svgOverlay}</svg>`}let ke="";const Le=this.classes.split(" ");Le.push((z={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?z:""),this.caret==="latex"&&Le.push("ML__latex-caret"),this.isSelected&&Le.push("ML__selected");const Ve=Le.length===1?Le[0]:Le.filter((Zn,nr,Fi)=>Zn.length>0&&Fi.indexOf(Zn)===nr).join(" ");if(Ve.length>0&&(ke+=` class="${Ve}"`),this.id&&(ke+=` data-atom-id=${this.id}`),this.cssId&&(ke+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(ke+=" "+Object.keys(this.attributes).map(Zn=>`${Zn}="${this.attributes[Zn]}"`).join(" ")),this.htmlData){const Zn=this.htmlData.split(",");for(const nr of Zn){const Fi=nr.match(/([^=]+)=(.+$)/);if(Fi){const eo=Fi[1].trim().replace(/ /g,"-");eo&&(ke+=` data-${eo}="${Fi[2]}" `)}else{const eo=nr.trim().replace(/ /g,"-");eo&&(ke+=` data-${eo} `)}}}const at=(ne=this.cssProperties)!=null?ne:{};this.hasExplicitWidth&&at.width===void 0&&(at.width=`${Math.ceil(this._width*100)/100}em`);const Ot=Object.keys(at).map(Zn=>`${Zn}:${at[Zn]}`);if(this.scale!==void 0&&this.scale!==1&&(ae.length>0||ue.length>0)&&Ot.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Zn=this.htmlStyle.split(";");let nr="";for(const Fi of Zn){const eo=Fi.match(/([^=]+):(.+$)/);if(eo){const Ai=eo[1].trim().replace(/ /g,"-");Ai&&(nr+=`${Ai}:${eo[2]};`)}}nr&&(ke+=` style="${nr}"`)}Ot.length>0&&(ke+=` style="${Ot.join(";")}"`);let ln="";return ke.length>0||ue.length>0?ln=`<span${ke}>${ae}${ue}</span>`:ln=ae,this.caret==="text"?ln+='<span class="ML__text-caret"></span>':this.caret==="math"&&(ln+='<span class="ML__caret"></span>'),ln}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 Le of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&Le in y.cssProperties||this.cssProperties&&Le in this.cssProperties)return!1}const ne=this.cssProperties?Object.keys(this.cssProperties).length:0,ae=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ne!==ae)return!1;if(ne>0){for(const Le of Object.keys(this.cssProperties))if(this.cssProperties[Le]!==y.cssProperties[Le])return!1}const ue=this.classes.trim().replace(/\s+/g," ").split(" "),ke=y.classes.trim().replace(/\s+/g," ").split(" ");if(ue.length!==ke.length)return!1;ue.sort(),ke.sort();for(const[Le,Ve]of ue.entries())if(Ve==="vertical-separator"||Ve!==ke[Le])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 ec(a){if(!a||a.length===0)return[];a[0].children=ec(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=ec(a[b].children),y.push(a[b]));return y}function qs(a){return a.children&&(a.children=ec(a.children)),a}function Ku(a,y){if(!a)return new ha(null,y);const b=new ha(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const z=[b];if(a.depth!==0){const ne=new ha(null,{classes:"ML__strut--bottom",type:"ignore"});ne.setStyle("height",a.height+a.depth,"em"),ne.setStyle("vertical-align",-a.depth,"em"),z.push(ne)}return z.push(a),new ha(z,pe(Se({},y),{type:"lift"}))}function Wu(a){const y=sl(a)/2,b=new ha(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function hs(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 ne=Aa(a.value.codePointAt(z),y);a.height=Math.max(a.height,ne.height),a.depth=Math.max(a.depth,ne.depth),a._width+=ne.width,a.skew=ne.skew,a.italic=ne.italic}return}if(a.children&&a.children.length>0){let z=-1/0,ne=-1/0,ae=0;for(const ue of a.children)ue.height>z&&(z=ue.height),ue.depth>ne&&(ne=ue.depth),ae=Math.max(ae,(b=ue.maxFontSize)!=null?b:0);a.height=z,a.depth=ne,a._width=a.children.reduce((ue,ke)=>ue+ke.width,0),a.maxFontSize=ae}}function bs(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const z=[b],ne=-b.shift-b.box.depth;let ae=ne;for(let ue=1;ue<y.length;ue++){const ke=y[ue],Le=-ke.shift-ae-ke.box.depth,Ve=Le-(b.box.height+b.box.depth);ae=ae+Le,z.push(Ve),z.push(ke),b=ke}return[z,ne]}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 Ts(a){var y;const[b,z]=bs(a);if(!b)return[[],0,0];const ne=new ha(null,{classes:"pstrut"});let ae=0;for(const nr of b)if(typeof nr!="number"){const Fi=nr.box;ae=Math.max(ae,Fi.maxFontSize,Fi.height)}ae+=2,ne.height=ae,ne.setStyle("height",ae,"em");const ue=[];let ke=z,Le=z,Ve=z,at=0;for(const nr of b){if(typeof nr=="number")Ve+=nr;else{const Fi=nr.box,eo=(y=nr.classes)!=null?y:[],Ai=new ha([ne,Fi],{classes:eo.join(" "),style:nr.style});Fi.setStyle("height",Fi.height+Fi.depth,"em"),Fi.setStyle("display","inline-block"),Ai.setStyle("top",-ae-Ve-Fi.depth,"em"),nr.marginLeft&&Ai.setStyle("margin-left",nr.marginLeft,"em"),nr.marginRight&&Ai.setStyle("margin-right",nr.marginRight,"em"),ue.push(Ai),Ve+=Fi.height+Fi.depth,at=Math.max(at,Ai.width)}ke=Math.min(ke,Ve),Le=Math.max(Le,Ve)}ue.forEach(nr=>{nr.softWidth=at});const Ot=new ha(ue,{classes:"vlist"});if(Ot.softWidth=at,Ot.height=Le,Ot.setStyle("height",Le,"em"),ke>=0)return[[new ha(Ot,{classes:"vlist-r"})],Le,-ke];const ln=new ha(new ha(null),{classes:"vlist"});ln.height=-ke,ln.setStyle("height",-ke,"em");const Zn=new ha(8203,{classes:"vlist-s",maxFontSize:0});return Zn.softWidth=0,Zn.height=0,Zn.depth=0,[[new ha([Ot,Zn],{classes:"vlist-r"}),new ha(ln,{classes:"vlist-r"})],Le,-ke]}var Xl=class extends ha{constructor(a,y){var b;const[z,ne,ae]=Ts(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=ne,this.depth=ae,this.softWidth=z.reduce((ue,ke)=>Math.max(ue,ke.width),0)}};function iu(a,y){var b,z,ne,ae,ue;const ke=a.metrics,Le=new ha(y.base),Ve=(b=y.baseShift)!=null?b:0,at=(z=y.slant)!=null?z:0;let Ot=0,ln=0;y.above&&(Ot=(ne=y.aboveShift)!=null?ne:Math.max(ke.bigOpSpacing1,ke.bigOpSpacing3-y.above.depth)),y.below&&(ln=(ae=y.belowShift)!=null?ae:Math.max(ke.bigOpSpacing2,ke.bigOpSpacing4-y.below.height));let Zn=null;if(y.below&&y.above){const nr=ke.bigOpSpacing5+y.below.height+y.below.depth+ln+Le.depth+Ve;Zn=new Xl({bottom:nr,children:[ke.bigOpSpacing5,{box:y.below,marginLeft:-at,classes:["ML__center"]},ln,{box:Le,classes:["ML__center"]},Ot,{box:y.above,marginLeft:at,classes:["ML__center"]},ke.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)Zn=new Xl({top:Le.height-Ve,children:[ke.bigOpSpacing5,{box:y.below,marginLeft:-at,classes:["ML__center"]},ln,{box:Le,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const nr=Le.depth+Ve;Zn=new Xl({bottom:nr,children:[{box:Le,classes:["ML__center"]},Ot,{box:y.above,marginLeft:at,classes:["ML__center"]},ke.bigOpSpacing5]}).wrap(a)}else{const nr=Le.depth+Ve;Zn=new Xl({bottom:nr,children:[{box:Le},ke.bigOpSpacing5]}).wrap(a)}return new ha(Zn,{type:(ue=y.type)!=null?ue:"op"})}var ns=7,au=6,hu=5,xu=4,ju=3,eu=2,Uu=1,tu=0,Bu=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(Kl).reduce((ne,ae)=>pe(Se({},ne),{[ae]:Kl[ae][z]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return ou[[tu,Uu,tu,Uu,eu,ju,eu,ju][this.id]]}get sub(){return ou[[tu,tu,tu,tu,eu,eu,eu,eu][this.id]]}get fracNum(){return ou[[tu,Uu,tu,Uu,eu,ju,xu,hu][this.id]]}get fracDen(){return ou[[tu,tu,tu,tu,eu,eu,xu,xu][this.id]]}get cramp(){return ou[[tu,tu,eu,eu,xu,xu,au,au][this.id]]}get isTight(){return this.sizeDelta<0}},nu={7:new Bu(ns,0,!1),6:new Bu(au,0,!0),5:new Bu(hu,0,!1),4:new Bu(xu,0,!0),3:new Bu(ju,-3,!1),2:new Bu(eu,-3,!0),1:new Bu(Uu,-4,!1),0:new Bu(tu,-4,!0)},ou=pe(Se({},nu),{displaystyle:nu[ns],textstyle:nu[hu],scriptstyle:nu[ju],scriptscriptstyle:nu[Uu]});function Qs(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:Uo,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 ne=Fd(10,y);return Math.round(a.dimension/Uo*z*ne)/ne}return a.dimension*z}function Ws(a,y){if(a===null)return 0;const b=Qs(a)/Uo;if(Number.isFinite(y)){const z=Fd(10,y);return Math.round(b*z)/z}return b}function hc(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function bc(a){let y=hc(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${hc(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${hc(a.shrink)}`),y}function Us(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=bc(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 ne=Math.round(a.number)>>>0;a.base==="hexadecimal"?(z=Number(ne).toString(16).toUpperCase(),ne<=255?z=z.padStart(2,"0"):ne<=65535?z=z.padStart(4,"0"):ne<=16777215?z=z.padStart(6,"0"):z=z.padStart(8,"0"),z=`"${z}`):a.base==="octal"&&(z=Number(ne).toString(8),ne<=63?z=z.padStart(2,"0"):ne<=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 Lu(a,y){return a==null?null:"number"in a?pe(Se({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?pe(Se({},a),{factor:a.factor*y}):pe(Se({},a),{factor:y}):"dimension"in a?pe(Se({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:Lu(a.glue,y),shrink:Lu(a.shrink,y),grow:Lu(a.grow,y)}:a.shrink?{glue:Lu(a.glue,y),shrink:Lu(a.shrink,y)}:a.grow?{glue:Lu(a.glue,y),grow:Lu(a.grow,y)}:{glue:Lu(a.glue,y)}:null}var pd={"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 Oc(){return Se({},pd)}function is(){return{registers:Oc(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:Je.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:_e,backgroundColorMap:Me,getMacro:a=>cr(a,an())}}var bl=class Qm{constructor(y,b){var z,ne,ae,ue,ke,Le,Ve,at,Ot,ln,Zn,nr,Fi,eo,Ai;let pa;y!=null&&y.parent?(this.parent=y.parent,pa=y.parent,this.registers={}):(pa=Se(Se({},is()),(z=y==null?void 0:y.from)!=null?z:{}),this.registers=pa.registers),pa.atomIdsSettings&&(this.atomIdsSettings=Se({},pa.atomIdsSettings)),this.renderPlaceholder=pa.renderPlaceholder,this.isPhantom=(ue=(ae=y==null?void 0:y.isPhantom)!=null?ae:(ne=this.parent)==null?void 0:ne.isPhantom)!=null?ue:!1,this.letterShapeStyle=pa.letterShapeStyle,this.minFontScale=pa.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(Le=(ke=this.parent)==null?void 0:ke.color)!=null?Le:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(at=(Ve=this.parent)==null?void 0:Ve.backgroundColor)!=null?at:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Ot=this.parent)==null?void 0:Ot.size)?this.size=b.fontSize:this.size=(Zn=(ln=this.parent)==null?void 0:ln.size)!=null?Zn:ma;let ao=(Fi=(nr=this.parent)==null?void 0:nr.mathstyle)!=null?Fi:ou.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(pa instanceof Qm)switch(y.mathstyle){case"cramp":ao=ao.cramp;break;case"superscript":ao=ao.sup;break;case"subscript":ao=ao.sub;break;case"numerator":ao=ao.fracNum;break;case"denominator":ao=ao.fracDen;break}switch(y.mathstyle){case"textstyle":ao=ou.textstyle;break;case"displaystyle":ao=ou.displaystyle;break;case"scriptstyle":ao=ou.scriptstyle;break;case"scriptscriptstyle":ao=ou.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=ao,this.smartFence=pa.smartFence,this.placeholderSymbol=pa.placeholderSymbol,this.colorMap=(eo=pa.colorMap)!=null?eo:Pa=>Pa,this.backgroundColorMap=(Ai=pa.backgroundColorMap)!=null?Ai:Pa=>Pa,this.getMacro=pa.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===ns||this.mathstyle.id===au}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(bo[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 Ws(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 ne=b.getRegister(y.register);if(ne===void 0)return;if(typeof ne=="string")return{string:Number(ne).toString()+ne};if(typeof ne=="number")return{number:z*ne};const ae=b.evaluate(ne);if(ae!==void 0)return"string"in ae?{string:Number(ne).toString()+ae.string}:"number"in ae?{number:z*ae.number}:"dimension"in ae?pe(Se({},ae),{dimension:z*ae.dimension}):"glue"in ae?pe(Se({},ae),{glue:pe(Se({},ae.glue),{dimension:z*ae.glue.dimension}),shrink:ae.shrink?pe(Se({},ae.shrink),{dimension:z*ae.shrink.dimension}):void 0,grow:ae.grow?pe(Se({},ae.grow),{dimension:z*ae.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:Qs(z,b)/Uo}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 ne=this.evaluate(y);return ne===void 0?null:"string"in ne?(z=(b=this.colorMap)==null?void 0:b.call(this,ne.string))!=null?z:ne.string:null}toBackgroundColor(y){var b,z;if(y===null)return null;const ne=this.evaluate(y);return ne===void 0?null:"string"in ne?(z=(b=this.backgroundColorMap)==null?void 0:b.call(this,ne.string))!=null?z:ne.string:null}},vu=["body","above","below","superscript","subscript"];function Ss(a){return typeof a=="string"&&vu.includes(a)}function ku(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Ri=class Hd{constructor(y){var b,z,ne,ae,ue,ke;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=(ne=y.mode)!=null?ne:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=Se({},y.style),this.displayContainsHighlight=(ae=y.displayContainsHighlight)!=null?ae:!1,this.captureSelection=(ue=y.captureSelection)!=null?ue:!1,this.skipBoundary=(ke=y.skipBoundary)!=null?ke:!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 ne;if(!b)return null;const ae=Yu(b),ue=[];for(const Le of ae){const Ve=Le[0].style,at=xc(y,Le,{style:{color:Ve.color,backgroundColor:Ve.backgroundColor,fontSize:Ve.fontSize}});at&&ue.push(at)}if(ue.length===0)return null;const ke=((ne=z==null?void 0:z.classes)!=null?ne:"").trim();return ue.length===1&&!ke&&!(z!=null&&z.type)?ue[0].wrap(y):new ha(ue,{classes:ke,type:z==null?void 0:z.type}).wrap(y)}static serialize(y,b){return _o.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const z=new WeakSet;let{parent:ne}=y;for(;ne;)z.add(ne),ne=ne.parent;for(ne=b.parent;ne;){if(z.has(ne))return ne;ne=ne.parent}console.assert(!!ne)}static fromJson(y){return typeof y=="string"?new Hd({type:"mord",value:y,mode:"math"}):new Hd(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=Se({},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=Od(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=Vt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?zl([wo(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?zl([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return _o.serialize(this.body,pe(Se({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return _o.serialize(this.above,y)}belowToLatex(y){return _o.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=pe(Se({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const z=_o.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=_o.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(Ss(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of vu)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(Ss(y)),Ss(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 ku(this.parentBranch)?this.parentBranch[0]:-1}get col(){return ku(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",ne=typeof this.style.verbatimBackgroundColor=="string",ae=Se(Se({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete ae.variant,delete ae.variantStyle,ne||delete ae.verbatimBackgroundColor,z||delete ae.verbatimColor,ae}applyStyle(y){this.isDirty=!0,this.style=Se(Se({},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(Ss(b)),!Ss(b)))return;console.assert(((z=y[0])==null?void 0:z.type)!=="first");const ne=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ne:this._branches={[b]:ne};for(const ae of y)ae.parent=this,ae.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Hd({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 ne of y)ne.parent=this,ne.parentBranch=b,z.push(ne);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 ne of y)ne.parent=this,ne.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(Ss(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 vu)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=Vt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const z=new bl({parent:y},this.style);let ne=this.createBox(z,{classes:this.parent?"":"ML__base"});return ne?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ne=this.attachSupsub(z,{base:ne})),ne.wrap(z)):null}attachSupsub(y,b){var z;const ne=b.base,ae=this.superscript,ue=this.subscript;if(!ae&&!ue)return ne;let ke=null,Le=null;const Ve=(z=b.isCharacterBox)!=null?z:this.isCharacterBox();let at=0;if(ae){const Fi=new bl({parent:y,mathstyle:"superscript"});ke=Hd.createBox(Fi,ae),Ve||(at=ne.height-y.metrics.supDrop*Fi.scalingFactor)}let Ot=0;if(ue){const Fi=new bl({parent:y,mathstyle:"subscript"});Le=Hd.createBox(Fi,ue),Ve||(Ot=ne.depth+y.metrics.subDrop*Fi.scalingFactor)}let ln;y.isDisplayStyle?ln=y.metrics.sup1:y.isCramped?ln=y.metrics.sup3:ln=y.metrics.sup2;const Zn=.5/Uo/y.scalingFactor;let nr=null;if(Le&&ke){at=Math.max(at,ln,ke.depth+.25*y.metrics.xHeight),Ot=Math.max(Ot,y.metrics.sub2);const Fi=y.metrics.defaultRuleThickness;if(at-ke.depth-(Le.height-Ot)<4*Fi){Ot=4*Fi-(at-ke.depth)+Le.height;const Ai=.8*y.metrics.xHeight-(at-ke.depth);Ai>0&&(at+=Ai,Ot-=Ai)}const eo=this.isExtensibleSymbol&&ne.italic?-ne.italic:0;nr=new Xl({individualShift:[{box:Le,shift:Ot,marginLeft:eo},{box:ke,shift:-at}]}).wrap(y)}else Le&&!ke?(Ot=Math.max(Ot,y.metrics.sub1,Le.height-.8*yl),nr=new Xl({shift:Ot,children:[{box:Le,marginRight:Zn,marginLeft:this.isCharacterBox()?-ne.italic:0}]})):!Le&&ke&&(at=Math.max(at,ln,ke.depth+.25*yl),nr=new Xl({shift:-at,children:[{box:ke,marginRight:Zn}]}));return new ha([ne,new ha(nr,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const z=this.superscript?Hd.createBox(new bl({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ne=this.subscript?Hd.createBox(new bl({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!z&&!ne?b.base.wrap(y):iu(y,pe(Se({},b),{above:z,below:ne}))}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,ne,ae,ue;const ke=(z=this.value)!=null?z:this.body,Le=(ne=b==null?void 0:b.boxType)!=null?ne:Nu(this.type);let Ve=(ae=b==null?void 0:b.classes)!=null?ae:"";this.mode==="text"&&(Ve+=" ML__text");const at=typeof ke=="string"||ke===void 0?new ha(ke!=null?ke:null,{type:Le,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:pe(Se({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Ve}):(ue=Hd.createBox(y,ke,{type:Le,classes:Ve}))!=null?ue:new ha(null);return y.isTight&&(at.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(at.italic=0),at.right=at.italic,this.bind(y,at),this.caret&&!this.superscript&&!this.subscript&&(at.caret=this.caret),at}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 Yu(a){let y;const b=[];let z=[];for(const ne of a)if(!y&&!ne.style)z.push(ne);else{const ae=ne.computedStyle;y&&ae.color===y.color&&ae.backgroundColor===y.backgroundColor&&ae.fontSize===y.fontSize?z.push(ne):(z.length>0&&b.push(z),z=[ne],y=ae)}return z.length>0&&b.push(z),b}function xc(a,y,b){var z,ne,ae,ue,ke;if(!y||y.length===0)return null;const Le=new bl({parent:a},b.style),Ve=!((z=Le.atomIdsSettings)!=null&&z.groupNumbers);let at=[];if(y.length===1){const ln=y[0],Zn=ln.render(Le);Zn&&(Ve&&ln.isSelected&&Zn.selected(!0),at=[Zn])}else{let ln="",Zn=!0;for(const nr of y){(ne=Le.atomIdsSettings)!=null&&ne.groupNumbers&&ln&&(Zn&&nr.isDigit()||!Zn&&rd(nr))&&(Le.atomIdsSettings.overrideID=ln);const Fi=nr.render(Le);Le.atomIdsSettings&&(Le.atomIdsSettings.overrideID=void 0),Fi&&((ae=Le.atomIdsSettings)!=null&&ae.groupNumbers&&((nr.isDigit()||rd(nr))&&(!ln||Zn!==nr.isDigit())&&(Zn=nr.isDigit(),ln=(ue=nr.id)!=null?ue:""),ln&&(!(nr.isDigit()||rd(nr))||!nr.hasEmptyBranch("superscript")||!nr.hasEmptyBranch("subscript"))&&(ln="")),Ve&&nr.isSelected&&Fi.selected(!0),at.push(Fi))}}if(at.length===0)return null;const Ot=new ha(at,pe(Se({isTight:Le.isTight},b),{type:(ke=b.type)!=null?ke:"lift"}));return Ot.isSelected=at.every(ln=>ln.isSelected),Ot.wrap(Le)}function rd(a){return a.mode==="text"}function Od(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Ri?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var Ec=class Ym extends Ri{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 Ym(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:En("text",this.value.codePointAt(0))}};function id(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let z=0;for(;z<b&&Wd(a.ranges[z],y.ranges[z])==="equal";)z++;return z===b?"equal":"different"}}return"different"}function Wd(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Iu(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 lc(a){return typeof a=="number"&&!Number.isNaN(a)}function Nc(a){return Array.isArray(a)&&a.length===2}function ad(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function jd(a,y){const b=a.at(y);let z;if(b){z=b.mode;let ne=b.parent;for(;!z&≠)ne&&(z=ne.mode),ne=ne.parent}return z}function Ud(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,ne=!1,ae=!1,ue=!1,ke=!1,Le=!1,Ve=!1,at=!1,Ot=!1,ln=!1,Zn=!1,nr=!1,Fi=!1,eo=!1,Ai=a[0],pa=0;for(;Ai!=null&&Ai.type&&/^(subsup|placeholder)$/.test(Ai.type);)pa+=1,Ai=a[pa];return b=!Ai||Ai.type==="first",Ai&&(Fi=Ai.mode==="text",z=!Fi&&Ai.type==="mord"&&ge.test(Ai.value),ne=!Fi&&Ai.type==="mord"&&/\d+$/.test(Ai.value),ae=!Fi&&Ai.isFunction,ue=Ai.type==="genfrac",ke=Ai.type==="surd",Le=Ai.type==="mbin",Ve=Ai.type==="mrel",at=Ai.type==="mop"||Ai.type==="operator"||Ai.type==="extensible-symbol",Ot=Ai.type==="mpunct"||Ai.type==="minner",ln=Ai.type==="array",Zn=Ai.type==="mopen",nr=Ai.type==="mclose"||Ai.type==="leftright",eo=Ai.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&z||y.after.includes("digit")&&ne||y.after.includes("function")&&ae||y.after.includes("frac")&&ue||y.after.includes("surd")&&ke||y.after.includes("binop")&&Le||y.after.includes("relop")&&Ve||y.after.includes("operator")&&at||y.after.includes("punct")&&Ot||y.after.includes("array")&&ln||y.after.includes("openfence")&&Zn||y.after.includes("closefence")&&nr||y.after.includes("text")&&Fi||y.after.includes("space")&&eo?y.value:""}function md(a,y,b){return b?Ud(a,b[y]):""}var od={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Cc(a,y){var b;let z=(b=y==null?void 0:y.format)!=null?b:"auto";return z==="auto"&&([z,a]=Vd(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",Vu(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function Vu(a,y){var b,z,ne;if(!a)return"";let ae=!1,ue;const ke=(b=y.inlineShortcuts)!=null?b:od;if(!ae&&(a.startsWith("^")||a.startsWith("_"))&&(ue=Sc(a.slice(1),{inlineShortcuts:ke,noWrap:!0}),a=a[0]+"{"+ue.match+"}",a+=Vu(ue.rest,y),ae=!0),ae||(ue=a.match(/^(sqrt|\u221A)(.*)/),ue&&(ue=Sc(ue[2],{inlineShortcuts:ke,noWrap:!0}),a="\\sqrt{"+((z=ue.match)!=null?z:"\\placeholder{}")+"}",a+=Vu(ue.rest,y),ae=!0)),ae||(ue=a.match(/^(\\cbrt|\u221B)(.*)/),ue&&(ue=Sc(ue[2],{inlineShortcuts:ke,noWrap:!0}),a="\\sqrt[3]{"+((ne=ue.match)!=null?ne:"\\placeholder{}")+"}",a+=Vu(ue.rest,y),ae=!0)),ae||(ue=a.match(/^abs(.*)/),ue&&(ue=Sc(ue[1],{inlineShortcuts:ke,noWrap:!0}),a="\\left|"+ue.match+"\\right|",a+=Vu(ue.rest,y),ae=!0)),ae||(ue=a.match(/^["”“](.*?)["”“](.*)/),ue&&(a="\\text{"+ue[1]+"}",a+=Vu(ue[2],y),ae=!0)),ae||(ue=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),ue&&(a=Nd(ue[1],ke),a+=Vu(ue[2],y),ae=!0)),!ae&&/^([fgh])[^a-zA-Z]/.test(a)&&(ue=Sc(a.slice(1),{inlineShortcuts:ke,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+ue.match+"\\right)":a[0]+ue.match,a+=Vu(ue.rest,y),ae=!0),ae||(ue=a.match(/^([a-zA-Z]+)(.*)/),ue&&(a=Nd(ue[1],ke),a+=Vu(ue[2],y),ae=!0)),!ae)if(ue=Sc(a,{inlineShortcuts:ke,noWrap:!0}),ue.match&&ue.rest[0]==="/"){const Le=Sc(ue.rest.slice(1),{inlineShortcuts:ke,noWrap:!0});Le.match&&(a="\\frac{"+ue.match+"}{"+Le.match+"}"+Vu(Le.rest,y)),ae=!0}else ue.match&&(a=a.startsWith("(")?"\\left("+ue.match+"\\right)"+Vu(ue.rest,y):ue.match+Vu(ue.rest,y),ae=!0);return ae||(ue=a.match(/^(\s+)(.*)$/),ue&&(a=" "+Vu(ue[2],y),ae=!0)),a}function Sc(a,y){let b="";a=a.trim();let z=a,ne=a.charAt(0),ae={"(":")","{":"}","[":"]"}[ne];if(ae){let ue=1,ke=1;for(;ke<a.length&&ue>0;)a[ke]===ne&&ue++,a[ke]===ae&&ue--,ke++;ue===0?(y.noWrap&&ne==="("?b=Vu(a.substring(1,ke-1),y):(ne==="{"&&ae==="}"&&(ne="\\{",ae="\\}"),b="\\left"+ne+Vu(a.substring(1,ke-1),y)+"\\right"+ae),z=a.slice(Math.max(0,ke))):(b=a.substring(1,ke),z="")}else{let ue=a.match(/^([a-zA-Z]+)/);if(ue){let ke=md(null,a,y.inlineShortcuts);if(ke)return ke=ke.replace("_{#?}",""),ke=ke.replace("^{#?}",""),{match:ke,rest:a.slice(ke.length)}}if(ue=a.match(/^([a-zA-Z])/),ue)return{match:ue[1],rest:a.slice(1)};if(ue=a.match(/^(-)?\d+(\.\d*)?/),ue)return{match:ue[0],rest:a.slice(ue[0].length)};/^\\(left|right)/.test(a)||(ue=a.match(/^(\\[a-zA-Z]+)/),ue&&(z=a.slice(ue[1].length),b=ue[1]))}return{match:b,rest:z}}function Nd(a,y){let b=md(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Ld=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function zc(a){const y=a.trim();for(const b of Ld)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 Vd(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=zc(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 Kc="$$",vd="$$",Td=(a,y,b)=>(Ld.some(z=>y.startsWith(z[0])&&y.endsWith(z[1]))||(y=`${Kc} ${y} ${vd}`),y),gd=class Uh{constructor(y){Uh._modes[y]=this}static onPaste(y,b,z){var ne;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof z=="string"){const ue=new DataTransfer;ue.setData("text/plain",z),z=ue}const ae=new ClipboardEvent("paste",{clipboardData:z,cancelable:!0});return(ne=b.host)!=null&&ne.dispatchEvent(ae)?Uh._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,ne=z.selectionIsCollapsed?[0,z.lastOffset]:Iu(z.selection),ae=z.getValue(ne,b);navigator.clipboard.writeText(ae).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 ne=y.model,ae=ne.selectionIsCollapsed?[0,ne.lastOffset]:Iu(ne.selection);let ue=ne.getAtoms(ae);if(ue.every(ke=>ke.mode==="text"||!ke.mode))b.clipboardData.setData("text/plain",ue.filter(ke=>ke instanceof Ec).map(ke=>ke.value).join(""));else if(ue.every(ke=>ke.mode==="latex"))b.clipboardData.setData("text/plain",ne.getAtoms(ae,{includeChildren:!0}).map(ke=>{var Le;return(Le=ke.value)!=null?Le:""}).join(""));else{let ke;ue.length===1&&ue[0].verbatimLatex!==void 0?ke=ue[0].verbatimLatex:ke=ne.getValue(ae,"latex-expanded"),b.clipboardData.setData("application/x-latex",ke);try{b.clipboardData.setData("text/plain",y.options.onExport(y,ke,ae))}catch(Le){}if(ue.length===1){const Le=ue[0];(Le.type==="root"||Le.type==="group")&&(ue=Le.body.filter(Ve=>Ve.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(ue.map(Le=>Le.toJson())))}catch(Le){}if((z=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&z.ComputeEngine){const Le=window.MathfieldElement.computeEngine;if(Le)try{const Ve=Le.jsonSerializationOptions;Le.jsonSerializationOptions={metadata:["latex"]};const at=Le.parse(ne.getValue(ae,"latex-unstyled"));Le.jsonSerializationOptions=Ve;const Ot=JSON.stringify(at.json);Ot&&b.clipboardData.setData("application/json",Ot)}catch(Ve){}}}b.preventDefault()}static insert(y,b,z={}){var ne;const ae=z.mode==="auto"?y.mode:(ne=z.mode)!=null?ne:y.mode;return Uh._modes[ae].insert(y,b,z)}onPaste(y,b){return!1}insert(y,b,z){return!1}};gd._modes={};var Gl=gd,Gd=[{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","^"]}],ld={"\\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 pc(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function mc(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 Lc(a){const y=mc(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Hc(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 yd(a,y,b){if(!y)return null;const z=a.field.getBoundingClientRect(),ne=y.right-y.left,ae=y.bottom-y.top,ue=Math.ceil(y.left-z.left+a.field.scrollLeft*b),ke=Math.ceil(y.top-z.top);return{left:ue,right:ue+ne,top:ke,bottom:ke+ae}}function sd(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 ne of a.children)if(ne.nodeType===1&&"atomId"in ne.dataset&&!ne.classList.contains("pstrut")){const ae=sd(ne);z.left=Math.min(z.left,ae.left),z.right=Math.max(z.right,ae.right),z.top=Math.min(z.top,ae.top),z.bottom=Math.max(z.bottom,ae.bottom)}return z}function Zc(a,y){var b,z;if(!y.id)return null;let ne=(z=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?z:null;if(ne!==null)return ne;const ae=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ne=ae?sd(ae):null,a.atomBoundsCache&&(ne?a.atomBoundsCache.set(y.id,ne):a.atomBoundsCache.delete(y.id)),ne!=null?ne:null}function Qd(a,y,b){const z=new Map;for(const ne of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ne.style.backgroundColor)continue;const ae=a.field,ue=ae.offsetWidth;let Le=Math.floor(ae.getBoundingClientRect().width)/ue;Le=isNaN(Le)?1:Le;const Ve=yd(a,Zc(a,ne),Le);if(Ve){const at=Hc(ne);if(z.has(at)){const Ot=z.get(at);z.set(at,{left:Math.min(Ot.left,Ve.left),right:Math.max(Ot.right,Ve.right),top:Math.min(Ot.top,Ve.top),bottom:Math.max(Ot.bottom,Ve.bottom)})}else z.set(at,Ve)}}return[...z.values()]}function Es(a,y){return a.model.selection.ranges.reduce((b,z)=>b.concat(...Qd(a,z,y)),[])}function _s(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function qu(a){let y=0,b=0;const z=a.offsetWidth,ne=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,z,ne)}var wc=`@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;
|
|
|
}
|
|
|
`,ps=`.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);
|
|
|
}
|
|
|
`,Yc=`#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);
|
|
|
}
|
|
|
`,Rd=`/* 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;
|
|
|
}
|
|
|
`,Ac=`/* 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);*/
|
|
|
}
|
|
|
`,bd=`.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));
|
|
|
}
|
|
|
`,Xc=`: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;
|
|
|
}
|
|
|
`,Hf=`.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;
|
|
|
}
|
|
|
`,Ys;function ud(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=ps;break;case"mathfield":y=wc;break;case"environment-popover":y=Yc;break;case"suggestion-popover":y=Rd;break;case"keystroke-caption":y=Ac;break;case"virtual-keyboard":y=bd;break;case"ui":y=Xc;break;case"menu":y=Hf;break;default:debugger}return y}function Jc(a){return Ys||(Ys={}),Ys[a]||(Ys[a]=new CSSStyleSheet,Ys[a].replaceSync(ud(a))),Ys[a]}var Tc;function vc(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(ud(a))),window.document.head.appendChild(b);return}if(Tc||(Tc={}),((y=Tc[a])!=null?y:0)!==0)Tc[a]+=1;else{const b=Jc(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],Tc[a]=1}}function x(a){if("adoptedStyleSheets"in document&&Tc!=null&&Tc[a]&&(Tc[a]-=1,Tc[a]<=0)){const y=Ys[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var ee=class Xm extends Ri{constructor(y){var b;super(pe(Se({},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 Xm(y)}toJson(){return pe(Se({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const z=new bl({parent:y,mathstyle:"cramp"},this.style),ne=(b=Ri.createBox(z,this.body))!=null?b:new ha("\u25A2",{style:this.style});let ae=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(ae=ne.skew);let ue=Math.min(ne.height,yl),ke;if(this.svgAccent)ke=Wu(this.svgAccent),ue=z.metrics.bigOpSpacing1-ue;else if(this.accent){const Ve=new ha(this.accent,{fontFamily:"Main-Regular"});Ve.italic=0;const at=this.accent===8407?" ML__accent-vec":"";ke=new ha(new ha(Ve),{classes:"ML__accent-body"+at})}ke=new Xl({shift:0,children:[{box:new ha(ne)},-ue,{box:ke,marginLeft:ne.left+2*ae,classes:["ML__center"]}]});const Le=new ha(ke,{type:"lift"});return this.caret&&(Le.caret=this.caret),this.bind(z,Le.wrap(z)),this.attachSupsub(z,{base:Le})}},ie={"(":")","{":"}","[":"]","|":"|","\\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"},re=Object.fromEntries(Object.entries(ie).map(([a,y])=>[y,a]));function oe(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 we(a,y,b,z){var ne;const ue=new ha(oe(a),{fontFamily:"Main-Regular",isSelected:z.isSelected,classes:"ML__small-delim "+((ne=z.classes)!=null?ne:"")}).wrap(y);return b&&ue.setTop((1-y.scalingFactor)*lo),ue}function je(a,y,b,z,ne){var ae,ue;const ke=new bl({parent:z,mathstyle:"textstyle"},ne==null?void 0:ne.style),Le=new ha(oe(a),{fontFamily:`Size${y}-Regular`,isSelected:ne.isSelected,classes:((ae=ne.classes)!=null?ae:"")+` ML__delim-size${y}`,type:(ue=ne.type)!=null?ue:"ignore"}).wrap(ke);return b&&Le.setTop((1-ke.scalingFactor)*lo),Le}function lt(a,y,b,z,ne){var ae;let ue,ke,Le,Ve;ue=Le=Ve=oe(a),ke=null;let at="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?Le=ue=Ve=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?Le=ue=Ve=8741:a==="\\uparrow"?Le=Ve=9168:a==="\\Uparrow"?Le=Ve=8214:a==="\\downarrow"?ue=Le=9168:a==="\\Downarrow"?ue=Le=8214:a==="\\updownarrow"?(ue=8593,Le=9168,Ve=8595):a==="\\Updownarrow"?(ue=8657,Le=8214,Ve=8659):a==="["||a==="\\lbrack"?(ue=9121,Le=9122,Ve=9123,at="Size4-Regular"):a==="]"||a==="\\rbrack"?(ue=9124,Le=9125,Ve=9126,at="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(Le=ue=9122,Ve=9123,at="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(ue=9121,Le=Ve=9122,at="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(Le=ue=9125,Ve=9126,at="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(ue=9124,Le=Ve=9125,at="Size4-Regular"):a==="("||a==="\\lparen"?(ue=9115,Le=9116,Ve=9117,at="Size4-Regular"):a===")"||a==="\\rparen"?(ue=9118,Le=9119,Ve=9120,at="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(ue=9127,ke=9128,Ve=9129,Le=9130,at="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(ue=9131,ke=9132,Ve=9133,Le=9130,at="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(ue=9127,Ve=9129,Le=9130,at="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(ue=9131,Ve=9133,Le=9130,at="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(ue=9127,Ve=9133,Le=9130,at="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(ue=9131,Ve=9129,Le=9130,at="Size4-Regular"):a==="\\surd"?(ue=57345,Ve=9143,Le=57344,at="Size4-Regular"):a==="\\ulcorner"?(ue=9484,Le=Ve=32):a==="\\urcorner"?(ue=9488,Le=Ve=32):a==="\\llcorner"?(Ve=9492,Le=ue=32):a==="\\lrcorner"&&(ue=9496,Le=ue=32);const Ot=Aa(ue,at),ln=Ot.height+Ot.depth,Zn=Aa(Le,at),nr=Zn.height+Zn.depth,Fi=Aa(Ve,at),eo=Fi.height+Fi.depth;let Ai=0,pa=1;if(ke!==null){const ic=Aa(ke,at);Ai=ic.height+ic.depth,pa=2}const ao=ln+eo+Ai,Pa=Math.max(0,Math.ceil((y-ao)/(pa*nr))),ul=ao+Pa*pa*nr;let Nl=lo;b&&(Nl=Nl*z.scalingFactor);const El=ul/2-Nl,Ms=.008,ru=[];ru.push({box:new ha(Ve,{fontFamily:at})}),ru.push(-Ms);const yo=new ha(Le,{fontFamily:at});if(ke===null)for(let ic=0;ic<Pa;ic++)ru.push({box:yo});else{for(let ic=0;ic<Pa;ic++)ru.push({box:yo});ru.push(-Ms),ru.push({box:new ha(ke,{fontFamily:at})}),ru.push(-Ms);for(let ic=0;ic<Pa;ic++)ru.push({box:yo})}ru.push(-Ms),ru.push({box:new ha(ue,{fontFamily:at})});let Gc="";at==="Size1-Regular"?Gc=" delim-size1":at==="Size4-Regular"&&(Gc=" delim-size4");const Dd=new Xl({bottom:El,children:ru},{classes:Gc});return new ha(Dd,pe(Se({},ne!=null?ne:{}),{classes:((ae=ne==null?void 0:ne.classes)!=null?ae:"")+" ML__delim-mult"}))}var mt=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),It=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),zn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),ar=[0,1.2,1.8,2.4,3];function ui(a,y,b,z){return a===void 0||a==="."?tl(b,z.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),mt.has(a)||zn.has(a)?je(a,y,!1,b,z):It.has(a)?lt(a,ar[y],!1,b,z):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var $r=[{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}],aa=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Oa=[{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 uo(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function Oo(a,y,b,z){const ne={"-4":0,"-3":1,0:2}[z.mathstyle.sizeDelta];for(let ae=ne;ae<b.length&&b[ae].type!=="stack";ae++){const ue=Aa(a,uo(b[ae]));if(ue.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let ke=ue.height+ue.depth;if(b[ae].type==="small"&&(b[ae].mathstyle==="scriptscriptstyle"?ke*=Math.max(bo[Math.max(1,z.size-2)],z.minFontScale):b[ae].mathstyle==="scriptstyle"&&(ke*=Math.max(bo[Math.max(1,z.size-1)],z.minFontScale))),ke>y)return b[ae]}return b[b.length-1]}function $o(a,y,b,z,ne,ae){if(!y||y.length===0||y===".")return tl(ne);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let ue;zn.has(y)?ue=$r:mt.has(y)?ue=Oa:ue=aa;const ke=Oo(oe(y),b,ue,ne),Le=new bl({parent:ne,mathstyle:ke.mathstyle},ae==null?void 0:ae.style);return ke.type==="small"?we(y,Le,z,pe(Se({},ae),{type:a})):ke.type==="large"?je(y,ke.size,z,Le,pe(Se({},ae),{type:a})):(console.assert(ke.type==="stack"),lt(y,b,z,Le,pe(Se({},ae),{type:a})))}function Co(a,y,b,z,ne,ae){if(y===".")return tl(ne,ae==null?void 0:ae.classes);const ue=lo*ne.scalingFactor,ke=901,Le=5/Uo,Ve=Math.max(b-ue,z+ue),at=Math.max(Ve/500*ke,2*Ve-Le);return $o(a,y,at,!0,ne,ae)}function tl(a,y){const b=new ha(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new bl({parent:a,mathstyle:"textstyle"}))}var Ol=class Jm extends Ri{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 Jm(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{}"}},Tl=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],cs=["cases","dcases","rcases"],Vs=["align","align*","aligned","gather","gathered","split"],Gu=["array","subequations","eqnarray"];function Eu(a){return Gu.concat(Vs).concat(cs).concat(Tl).includes(a)}function sc(a){return Tl.includes(a)}function uc(a){return cs.includes(a)}function Tu(a){return Vs.includes(a)}function tc(a,y,b){let z=0;for(const Ve of b)"align"in Ve&&(z+=1);let ne=0;const ae=[];for(const Ve of y){let at=0;for(ne=Math.max(ne,Math.min(Ve.length,z));at<Ve.length;){const Ot=[],ln=Math.min(Ve.length,at+z);for(;at<ln;){const Zn=Ve[at];Zn.length===0?Ot.push([new Ri({type:"first",mode:a.mode})]):Zn[0].type!=="first"?Ot.push([new Ri({type:"first",mode:a.mode}),...Zn]):(console.assert(!Zn.slice(1).some(nr=>nr.type==="first")),Ot.push(Zn)),at+=1}ae.push(Ot)}}ae.length>0&&ae[ae.length-1].length===1&&ae[ae.length-1][0].length===1&&ae[ae.length-1][0][0].type==="first"&&ae.pop();const ue=[];for(const Ve of ae){if(Ve.length!==ne)for(let at=Ve.length;at<ne;at++)Ve.push([new Ri({type:"first",mode:a.mode}),new Ol]);ue.push(Ve)}let ke=0,Le=0;for(const Ve of ue){Le=0;for(const at of Ve){for(const Ot of at)Ot.parent=a,Ot.parentBranch=[ke,Le];Le+=1}ke+=1}return a.isDirty=!0,ue}var ql=class $m extends Ri{constructor(y,b,z,ne={}){var ae;super({type:"array"}),this.environmentName=y,this.rowGaps=z,ne.mathstyleName&&(this.mathstyleName=ne.mathstyleName),ne.columns&&(ne.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ne.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=tc(this,b,this.colFormat),ne.leftDelim&&(this.leftDelim=ne.leftDelim),ne.rightDelim&&(this.rightDelim=ne.rightDelim),ne.arraycolsep!==void 0&&(this.arraycolsep=ne.arraycolsep),this.colSeparationType=ne.colSeparationType,ne.arraystretch!==void 0&&(this.arraystretch=ne.arraystretch),this.minColumns=(ae=ne.minColumns)!=null?ae:1}static fromJson(y){return new $m(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=pe(Se({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(z=>z.map(ne=>ne.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(ku(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return ku(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(Ss(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 ne of z)y.push(...ne.children),y.push(ne);return[...y,...super.children]}render(y){var b,z,ne,ae,ue,ke;const Le=new bl({parent:y,mathstyle:this.mathstyleName},this.style),Ve=Le.getRegisterAsEm("arrayrulewidth"),at=Le.getRegisterAsEm("arraycolsep"),Ot=Le.getRegisterAsEm("doublerulesep"),ln=(z=(b=this.arraystretch)!=null?b:Le.getRegisterAsNumber("arraystretch"))!=null?z:1;let Zn=typeof this.arraycolsep=="number"?this.arraycolsep:at;this.colSeparationType==="small"&&(Zn=.2778*(new bl({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const nr=ln*To,Fi=.7*nr,eo=.3*nr;let Ai=0;const pa=[];let ao=0;const Pa=this.array.length;for(let su=0;su<Pa;++su){const Zu=this.array[su];ao=Math.max(ao,Zu.length);const ac=new bl({parent:Le,mathstyle:this.mathstyleName},this.style);let Bd=Fi/ac.scalingFactor,kd=eo/ac.scalingFactor;const Id={cells:[],height:0,depth:0,pos:0};for(const hd of Zu){const Op=(ne=Ri.createBox(ac,hd,{type:"ignore"}))!=null?ne:new ha(null,{type:"ignore"});kd=Math.max(kd,Op.depth),Bd=Math.max(Bd,Op.height),Id.cells.push(Op)}let Pd=(ae=Ws(this.rowGaps[su]))!=null?ae:0;Pd>0&&(Pd+=eo,kd=Math.max(kd,Pd),Pd=0),su<Pa-1&&!sc(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(kd+=Le.getRegisterAsEm("jot")),Id.height=Bd,Id.depth=kd,Ai+=Bd,Id.pos=Ai,Ai+=kd+Pd,pa.push(Id)}const ul=Ai/2+lo,Nl=[];for(let su=0;su<ao;su++){const Zu=[];for(const ac of pa){const Bd=ac.cells[su];Bd.depth=ac.depth,Bd.height=ac.height,Zu.push({box:Bd,shift:ac.pos-ul})}Zu.length>0&&Nl.push(new Xl({individualShift:Zu}))}const El=[];let Ms=!1,ru=!1,yo=0,Gc=!this.leftDelim;const{colFormat:Dd}=this;for(const su of Dd){if("align"in su&&yo>=Nl.length)break;if("align"in su)Ms?El.push(pu(2*Zn)):(ru||Gc)&&El.push(pu(Zn)),El.push(new ha(Nl[yo],{classes:"col-align-"+su.align})),yo++,Ms=!0,ru=!1,Gc=!1;else if("gap"in su){if(typeof su.gap=="number")El.push(pu(su.gap));else{const Zu=Cu(y,pa,ul,su.gap);Zu&&El.push(Zu)}Ms=!1,ru=!1,Gc=!1}else if("separator"in su){const Zu=new ha(null,{classes:"vertical-separator"});Zu.height=Ai,Zu.setStyle("height",Ai,"em"),Zu.setStyle("border-right",`${Ve}em ${su.separator} currentColor`),Zu.setStyle("vertical-align",-(Ai-ul),"em");let ac=0;ru?ac=Ot-Ve:Ms&&(ac=Zn-Ve),Zu.left=ac,El.push(Zu),Ms=!1,ru=!0,Gc=!1}}Ms&&!this.rightDelim&&El.push(pu(Zn));const td=new ha(El,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(td.caret=this.caret),this.bind(y,td);const ic=td.height,Qc=td.depth,Fc=this.bind(y,new ha([this.bind(y,Co("open",(ue=this.leftDelim)!=null?ue:".",ic,Qc,Le,{isSelected:this.isSelected})),td,this.bind(y,Co("close",(ke=this.rightDelim)!=null?ke:".",ic,Qc,Le,{isSelected:this.isSelected}))],{type:"ord"}));return Fc?(Fc.setStyle("display","inline-block"),this.caret&&(Fc.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Fc}))):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 ne of this.colFormat)"align"in ne&&typeof ne.align=="string"?z.push(ne.align):"separator"in ne&&ne.separator==="solid"?z.push("|"):"separator"in ne&&ne.separator==="dashed"&&z.push(":");z.push("}")}for(let ne=0;ne<this.array.length;ne++){for(let ae=0;ae<this.array[ne].length;ae++)ae>0&&z.push(" & "),z.push(Ri.serialize(this.array[ne][ae],y));if(ne<this.array.length-1){const ae=this.rowGaps[ne];ae!=null&&ae.dimension?z.push(`\\\\[${ae.dimension} ${(b=ae.unit)!=null?b:"pt"}] `):z.push("\\\\ ")}}return this.environmentName==="lines"?z.push("}"):z.push(`\\end{${this.environmentName}}`),zl(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 ae of this.array[y][b])ae.parent=void 0,ae.parentBranch=void 0;let ne=z;(z.length===0||z[0].type!=="first")&&(ne=[new Ri({type:"first",mode:this.mode}),...z]),this.array[y][b]=ne;for(const ae of ne)ae.parent=this,ae.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(Pu(this));this.array.splice(y,0,b);for(let z=y;z<this.rowCount;z++)for(let ne=0;ne<this.colCount;ne++){const ae=this.array[z][ne];if(ae)for(const ue of ae)ue.parentBranch=[z,ne]}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(Pu(this));this.array.splice(y+1,0,b);for(let z=y+1;z<this.rowCount;z++)for(let ne=0;ne<this.colCount;ne++){const ae=this.array[z][ne];if(ae)for(const ue of ae)ue.parentBranch=[z,ne]}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 ne of z)if(ne)for(const ae of ne)ae.parent=void 0,ae.parentBranch=void 0;for(let z=y;z<this.rowCount;z++)for(let ne=0;ne<this.colCount;ne++){const ae=this.array[z][ne];if(ae)for(const ue of ae)ue.parentBranch=[z,ne]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Pu(this));for(let b=0;b<this.rowCount;b++)for(let z=y;z<this.colCount;z++){const ne=this.array[b][z];if(ne)for(const ae of ne)ae.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,Pu(this));for(let b=0;b<this.rowCount;b++)for(let z=y+1;z<this.colCount;z++){const ne=this.array[b][z];if(ne)for(const ae of ne)ae.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 ne of z)if(ne)for(const ae of ne)ae.parent=void 0,ae.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let z=y;z<this.colCount;z++){const ne=this.array[b][z];if(ne)for(const ae of ne)ae.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(ne=>ne.type!=="first"));return y}};function Pu(a){const y=new Ri({type:"first",mode:a.mode});y.parent=a;const b=new Ol;return b.parent=a,[y,b]}function pu(a){const y=new ha(null,{classes:"arraycolsep"});return y.width=a,y}function Cu(a,y,b,z){if(!z)return null;const ne=[];for(const ae of y){const ue=Ri.createBox(a,z,{type:"ignore"});ue&&(ue.depth=ae.depth,ue.height=ae.height,ne.push({box:ue,shift:ae.pos-b}))}return new Xl({individualShift:ne}).wrap(a)}var Ou=class qm extends Ri{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 qm(y)}toJson(){return pe(Se({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,z,ne,ae;const ue=Ri.createBox(y,this.body,{type:"lift"});if(!ue)return null;const ke=y.toEm((b=this.offset)!=null?b:{dimension:0});ue.depth+=ke,ue.setStyle("display","inline-block"),ue.setStyle("position","relative"),ue.setStyle("height",Math.floor(100*ue.height+ue.depth)/100,"em"),ue.setStyle("vertical-align",-Math.floor(100*ue.height)/100,"em");const Le=new bl({parent:y},this.style),Ve=Le.toEm((z=this.padding)!=null?z:{register:"fboxsep"}),at=new ha(null,{classes:"ML__box"});at.height=ue.height+Ve,at.depth=ue.depth+Ve,at.setStyle("box-sizing","border-box"),at.setStyle("position","absolute"),at.setStyle("top",-Ve+.3,"em"),at.setStyle("left",0),at.setStyle("height",at.height+at.depth,"em"),at.setStyle("width","100%"),this.backgroundcolor&&at.setStyle("background-color",(ne=Le.toColor(this.backgroundcolor))!=null?ne:"transparent"),this.framecolor&&at.setStyle("border",`${Le.getRegisterAsEm("fboxrule",2)}em solid ${(ae=Le.toColor(this.framecolor))!=null?ae:"black"}`),this.border&&at.setStyle("border",this.border);const Ot=new ha([at,ue],{type:"lift"});return Ot.setStyle("display","inline-block"),Ot.setStyle("position","relative"),Ot.setStyle("line-height",0),Ot.height=ue.height+Ve+(ke>0?ke:0),Ot.depth=ue.depth+Ve+(ke<0?-ke:0),Ot.setStyle("padding-left",Ve,"em"),Ot.setStyle("padding-right",Ve,"em"),Ot.setStyle("height",Math.floor(100*(ue.height+ue.depth+2*Ve+Math.abs(ke)))/100,"em"),Ot.setStyle("margin-top",-Ve,"em"),Ot.setStyle("top",Math.floor(100*(ue.depth-ue.height+2*Ve-ke))/100,"em"),Ot.setStyle("vertical-align",Math.floor(100*(ue.depth+2*Ve))/100,"em"),this.caret&&(Ot.caret=this.caret),this.attachSupsub(y,{base:Ot})}_serialize(y){return y.skipStyles?zl([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},cd=class e0 extends Ri{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 e0(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new ha(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},gc=class t0 extends Ri{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new t0(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Xu=class n0 extends Ri{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 n0(y.body,y.mode,y.style)}render(y){const b=Ri.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=Vt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Ps=class r0 extends Ri{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 r0((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 ne=this.matchingRightDelim();return this.variant==="left...right"?zl(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ne]):this.variant==="mleft...mright"?zl(["\\mleft",(z=this.leftDelim)!=null?z:".",this.bodyToLatex(y),"\\mright",ne]):zl([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ne])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const z=(y=this.leftDelim)!=null?y:".";return(b=ie[z])!=null?b:z}render(y){var b,z;const ne=new bl({parent:y},this.style);console.assert(this.body!==void 0);const ae=new bl({parent:y,mathstyle:"textstyle"},this.style),ue=(b=Ri.createBox(ne,this.body,{type:"inner"}))!=null?b:new ha(null,{type:"inner"}),ke=ue.height/ae.scalingFactor,Le=ue.depth/ae.scalingFactor,Ve=[];if(this.leftDelim&&Ve.push(this.bind(ae,Co("open",this.leftDelim,ke,Le,ae,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),ue&&(le(ue.children,this,ne,ke,Le),Ve.push(ue)),this.rightDelim){let Zn=this.containsCaret?" ML__contains-caret":"",nr=this.rightDelim;nr==="?"&&(ne.smartFence?(nr=this.matchingRightDelim(),Zn+=" ML__smart-fence__close"):nr="."),Ve.push(this.bind(ae,Co("close",nr,ke,Le,ae,{isSelected:this.isSelected,classes:Zn+" ML__close",mode:this.mode,style:this.style})))}let at=this.variant==="mleft...mright";const Ot=this.leftSibling;Ot&&(!at&&Ot.isFunction&&(at=!0),!at&&Ot.type==="subsup"&&((z=Ot.leftSibling)!=null&&z.isFunction)&&(at=!0));const ln=new ha(Ve,{type:at?"close":"inner",classes:"left-right"});return ln.setStyle("margin-top",`${-ue.depth}em`),ln.setStyle("height",`${ue.height+ue.depth}em`),this.caret&&(ln.caret=this.caret),this.bind(ne,ln.wrap(ne))}};function le(a,y,b,z,ne){if(a)for(let ae=0;ae<a.length;ae++){const ue=a[ae];ue.type==="middle"?(a[ae]=y.bind(b,Co("inner",ue.value,z,ne,b,{isSelected:y.isSelected})),a[ae].caret=ue.caret,a[ae].isSelected=ue.isSelected,a[ae].cssId=ue.cssId,a[ae].htmlData=ue.htmlData,a[ae].htmlStyle=ue.htmlStyle,a[ae].attributes=ue.attributes,a[ae].cssProperties=ue.cssProperties):ue.children&&le(ue.children,y,b,z,ne)}}var ce=class i0 extends Ri{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 i0(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=Ri.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},Ce=class a0 extends Ri{constructor(){super({type:"macro-argument"})}static fromJson(y){return new a0}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},ze=class o0 extends Ri{constructor(y,b,z=!1,ne,ae){var ue;super({type:"prompt",mode:(ue=ae==null?void 0:ae.mode)!=null?ue:"math",style:ae==null?void 0:ae.style,command:"\\placeholder"}),this.body=ne,this.correctness=b,this.placeholderId=y,this.locked=z,this.captureSelection=this.locked}static fromJson(y){return new o0(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 bl({parent:y}),z=b.getRegisterAsEm("fboxsep"),ne=z,ae=z,ue=Ri.createBox(y,this.body);if(!ue)return null;ue.height||(ue.height=b.metrics.xHeight),ue.setStyle("vertical-align",-ue.height,"em"),this.correctness==="correct"?ue.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&ue.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const ke=new ha(ue,{type:"ord"});ke.setStyle("display","inline-block"),ke.setStyle("height",ue.height+ue.depth,"em"),ke.setStyle("vertical-align",-ae,"em");let Le="ML__prompt ";this.locked?Le+=" ML__lockedPromptBox ":Le+=" ML__editablePromptBox ",this.correctness==="correct"?Le+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(Le+=" ML__incorrectPromptBox "),this.containsCaret&&(Le+=" ML__focusedPromptBox ");const Ve=new ha(null,{classes:Le,attributes:{part:"prompt"}});Ve.height=ke.height+ae,Ve.depth=ke.depth+ae,Ve.width=ke.width+2*ne,Ve.setStyle("box-sizing","border-box"),Ve.setStyle("position","absolute"),Ve.setStyle("height",ke.height+ke.depth+2*ae,"em"),ne===0&&Ve.setStyle("width","100%"),ne!==0&&(Ve.setStyle("width",`calc(100% + ${2*ne}em)`),Ve.setStyle("top",z,"em"),Ve.setStyle("left",-ne,"em")),(!this.body||this.body.length===1)&&(Ve.width=3*ne,Ve.setStyle("width",`calc(100% + ${3*ne}em)`),Ve.setStyle("left",-1.5*ne,"em"));let at="";this.correctness==="incorrect"&&(at+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),at&&(Ve.svgOverlay=at);const Ot=new ha([Ve,ke],{classes:"ML__prompt-atom"});return Ot.setStyle("position","relative"),Ot.setStyle("display","inline-block"),Ot.setStyle("line-height",0),Ot.height=ke.height+ae+.2,Ot.depth=ke.depth+ae,Ot.left=ne,Ot.right=ne,Ot.setStyle("height",ke.height+ae,"em"),Ot.setStyle("top",ke.depth-ke.height,"em"),Ot.setStyle("vertical-align",ke.depth+ae,"em"),Ot.setStyle("margin-left",.5,"em"),Ot.setStyle("margin-right",.5,"em"),this.caret&&(Ot.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Ot}))}_serialize(y){var b;const z=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return z;let ne="\\placeholder";return this.placeholderId&&(ne+=`[${this.placeholderId}]`),this.correctness==="correct"?ne+="[correct]":this.correctness==="incorrect"&&(ne+="[incorrect]"),this.locked&&(ne+="[locked]"),wo(ne,z)}},dt=class l0 extends Ri{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new l0(y);for(const z of vu)y[z]&&b.setChildren(y[z],z);return b}render(y){var b;const z=new bl({parent:y,isPhantom:!0}),ne=this.leftSibling,ae=(b=ne.render(z))!=null?b:new ha(null),ue=new ha(null);return ue.height=ae.height,ue.depth=ae.depth,this.attachSupsub(y,{base:ue,isCharacterBox:ne.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function ut(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Mt=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var z,ne,ae,ue;b!=null||(b={}),this.tokens=a,this.context=y instanceof bl&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new bl({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:(ne=b.style)!=null?ne:{},parseMode:(ae=b.parseMode)!=null?ae:"math",mathstyle:(ue=b.mathstyle)!=null?ue:"displaystyle",tabular:!1}}beginContext(a){var y,b,z;const ne=this.parsingContext,ae={parent:ne,mathlist:[],style:Se({},ne.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ne.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ne.mathstyle,tabular:(z=a==null?void 0:a.tabular)!=null?z:!1};this.parsingContext=ae}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(Se({before:dl(this.tokens.slice(this.index,this.index+10)),after:dl(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 Se({},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 dt({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=Vt(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?Pt(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Ol({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 ae=this.get();ut(ae)?(z+=ae,b=this.end()||z.length>=a.length):b=!0}const ne=a.toUpperCase()===z.toUpperCase();return ne||(this.index=y),ne}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(ut(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,ne=this.peek();for(;ne==="<space>"||ne==="+"||ne==="-";)this.get(),ne==="-"&&(z=!z),ne=this.peek();a=!!a;let ae=10,ue=/\d/;if(this.match("'"))ae=8,ue=/[0-7]/,a=!0;else if(this.match('"'))ae=16,ue=/[\dA-F]/,a=!0;else if(this.match("x"))ae=16,ue=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ne=this.get(),ne?ne.length===2&&ne.startsWith("\\")?{number:(z?-1:1)*((y=ne.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(z?-1:1)*((b=ne.codePointAt(0))!=null?b:0),base:"alpha"}:null;let ke="";for(;this.hasPattern(ue);)ke+=this.get();if(!a&&(this.match(".")||this.match(",")))for(ke+=".";this.hasPattern(ue);)ke+=this.get();const Le=a?Number.parseInt(ke,ae):Number.parseFloat(ke);return Number.isNaN(Le)?null:{number:z?-Le:Le,base:ae===16?"hexadecimal":ae===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 ae=this.peek();if(ae==="-")z=!z;else if(ae!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const ae=this.get();return ae.startsWith("\\")?b?{register:ae,global:!0,factor:(z?-1:1)*b.number}:z?{register:ae,global:!0,factor:-1}:{register:ae,global:!0}:(this.index=y,null)}let ne=this.get();return ne!=null&&ne.startsWith("\\")?(ne=ne.substring(1),this.context.registers[ne]?!z||b!==null?{register:ne,factor:(z?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ne}:(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()||!ut(this.peek()))return null;const ne=this.scanString();return ne.length>0?{string:ne}: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=Wt(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const ke of y.params)if(ke.isOptional)b.push(this.scanOptionalArgument(ke.type));else{const Le=this.scanArgument(ke.type);Le||this.onError({code:"missing-argument",arg:a}),b.push(Le)}this.beginContext({tabular:y.tabular});const z=[],ne=[];let ae=[],ue=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),ue=!0),!ue&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),ue=!0),!ue)if(this.matchColumnSeparator())ae.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){ae.push(this.mathlist),this.mathlist=[];let ke=null;this.skipWhitespace(),this.match("[")&&(ke=this.scanDimen(),this.skipWhitespace(),this.match("]")),ne.push(ke!=null?ke:{dimension:0}),z.push(ae),ae=[]}else this.mathlist.push(...this.scan(ke=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(ke)));while(!ue);return ae.push(this.mathlist),ae.length>0&&z.push(ae),this.endContext(),y.createAtom(a,z,ne,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=ue=>ue==="<}>");let y="",b=null,z=[],ne=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=Vt(y,"math"),b&&(z=this.scanArguments(b)[1]),ne=this.mathlist,this.mathlist=[]):this.parseExpression();let ae;return y?(console.assert(!!b),z.unshift(this.mathlist),ne&&z.unshift(ne),ae=[b.createAtom({command:y,args:z,style:this.style,mode:this.parseMode})]):ae=this.mathlist,this.endContext(),ae}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 Xu(y,this.parseMode,this.style);return b.verbatimLatex=dl(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 Ps("",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(!ut(a)&&!a.startsWith("\\"))return null;this.next();const y=Vt(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 gc("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new gc("\\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 gc(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const z=this.mathlist;this.endContext();const ne=(a=this.scanDelim())!=null?a:".";return new Ps(y==="\\right"?"left...right":"mleft...mright",z,{leftDelim:b,rightDelim:ne,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 Ri({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Ri({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(zt(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 ne=a.params[z];ne.type==="rest"?b.push(this.scan(ae=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(ae))):ne.isOptional?b.push(this.scanOptionalArgument(ne.type)):ne.type.endsWith("*")?y=ne.type.slice(0,-1):b.push(this.scanArgument(ne.type)),z+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(ut(a)){const b=_o.createAtom(this.parseMode,a,Se({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=Vt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new gc(a)];if(b.definitionType==="symbol"){const z=Se({},this.style);b.variant&&(z.variant=b.variant),y=new Ri({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 gc(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 ne=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ne}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ne=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ne}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 ne=this.mathlist;return this.endContext(),{group:ne}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ne=this.mathlist;return this.endContext(),{group:ne}}let z=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ne=this.mathlist;return this.endContext(),{group:ne}}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 ne of z){const ae=ne.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(ae)b.padding={dimension:parseInt(ae[1]),unit:ae[2]};else{const ue=ne.match(/^\s*border\s*:\s*(.*)/);ue?b.border=ue[1]:b.backgroundcolor={string:ne}}}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 ke=this.scanOptionalArgument("string"),Le=this.scanOptionalArgument("math"),Ve=Ri.serialize(Le,{defaultMode:"math"});let at=[],Ot;!Ot&&Ve==="correct"?Ot="correct":!Ot&&Ve==="incorrect"?Ot="incorrect":Ve!==""&&(at=Le);const ln=this.scanOptionalArgument("string")==="locked",Zn=this.scanArgument("auto");let nr;return Zn&&Array.isArray(Zn)&&Zn.length>0?nr=Zn:Zn&&typeof Zn=="object"&&"group"in Zn?nr=Zn.group:nr=at,ke?[new ze(ke,Ot,ln,nr!=null?nr:at,{mode:this.parseMode,style:this.style})]:[new Ol({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const ke=this.index,Le=this.scanLiteralGroup()||this.next();if(!Le)return null;if(this.context.registers[Le.substring(1)]){const Ve=this.scanArgument("string");Ve!==null&&(this.context.registers[Le.substring(1)]=Ve);const at=zl([a,dl(this.tokens.slice(ke,this.index))]);return[new Ri({type:"text",value:"",verbatimLatex:at})]}}let ne=this.scanMacro(a);if(ne)return[ne];const ae=Vt(a,this.parseMode);if(!ae)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(ke=>new Ri({type:"text",value:ke,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new gc(a)]);const ue=this.index;if(ae.definitionType==="symbol"){const ke=Se({},this.style);ae.variant&&(ke.variant=ae.variant),ne=new Ri({type:ae.type,command:a,style:ke,value:String.fromCodePoint(ae.codepoint),mode:this.parseMode})}else{if(ae.ifMode&&!ae.ifMode.includes(this.parseMode))return[];const ke=this.parseMode;ae.applyMode&&(this.parseMode=ae.applyMode);let Le,Ve=[];if(ae.parse?Ve=ae.parse(this):[Le,Ve]=this.scanArguments(ae),this.parseMode=ke,ae.applyMode&&!ae.applyStyle&&!ae.createAtom)return zt(Ve[0]);if(ae.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof ae.createAtom=="function")ne=ae.createAtom({command:a,args:Ve,style:this.style,mode:this.parseMode}),Le&&(ne.body=zt(this.scanArgument(Le)));else if(typeof ae.applyStyle=="function"){const at=Se(Se({},this.style),ae.applyStyle(a,Ve,this.context)),Ot=this.parseMode;if(ae.applyMode&&(this.parseMode=ae.applyMode),Le){const ln=this.style;this.style=at;const Zn=this.scanArgument(Le);return this.style=ln,this.parseMode=Ot,zt(Zn)}this.style=at}else ne=new Ri({type:"mord",command:(b=ae.command)!=null?b:a,style:Se({},this.style),value:a,mode:(z=ae.applyMode)!=null?z:this.parseMode})}if(!ne)return null;if(ne instanceof Ri&&ne.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const ke=zl([a,dl(this.tokens.slice(ue,this.index))]);ke&&(ne.verbatimLatex=ke)}if(ne.verbatimLatex===null&&(ne.verbatimLatex=void 0),ne.isFunction&&this.smartFence){const ke=this.scanSmartFence();if(ke)return[ne,ke]}return[ne]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(ut(a)){const y=_o.createAtom(this.parseMode,a,Se({},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 Ec(" "," ",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,ne=b.args,ae={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let ue=1;ue<=ne;ue++){let ke=this.scanLiteralGroup();if(!ke){const Le=this.index;this.scanExpression(),ke=dl(this.tokens.slice(Le,this.index))}ae[ue]=ke}return new ce(a,{expand:b.expand,captureSelection:b.captureSelection,args:z===this.index?null:dl(this.tokens.slice(z,this.index)),style:this.parsingContext.style,body:Pt(b.def,{context:this.context,parseMode:this.parseMode,args:ue=>ae[ue],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,z;let ne=(z=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?z:this.scanLeftRight();if(ne===null){if(this.parseSupSub()||this.parseLimits())return!0;ne=this.scanSymbolCommandOrLiteral()}return ne?(Array.isArray(ne)?this.mathlist.push(...ne):this.mathlist.push(ne),!0):!1}};function Pt(a,y){var b,z,ne,ae;const ue=(b=y==null?void 0:y.args)!=null?b:void 0,ke=new Mt(xs(a,ue),y==null?void 0:y.context,{args:ue,mathstyle:(z=y==null?void 0:y.mathstyle)!=null?z:"displaystyle",parseMode:(ne=y==null?void 0:y.parseMode)!=null?ne:"math",style:(ae=y==null?void 0:y.style)!=null?ae:{}}),Le=[];for(;!ke.end();)Le.push(...ke.scan(()=>!1));return Le}function Fn(a,y){var b;const z=new Mt(xs(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 or=class s0 extends Ri{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const z=Sn.go(Gt.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Pt(z),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new s0(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return pe(Se({},super.toJson()),{arg:this.arg})}render(y){const b=Ri.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}};fn(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new or(a.command,(y=a.args[0])!=null?y:"")}});var Gt={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 ne,ae=10,ue=[];;){ne!==a?(ae=10,ne=a):ae--;var ke=Gt.stateMachines[y],Le=ke.transitions[b]||ke.transitions["*"];e:for(var Ve=0;Ve<Le.length;Ve++){var at=Gt.patterns.match_(Le[Ve].pattern,a);if(at){for(var Ot=Le[Ve].task,ln=0;ln<Ot.action_.length;ln++){var Zn;if(ke.actions[Ot.action_[ln].type_])Zn=ke.actions[Ot.action_[ln].type_](z,at.match_,Ot.action_[ln].option);else if(Gt.actions[Ot.action_[ln].type_])Zn=Gt.actions[Ot.action_[ln].type_](z,at.match_,Ot.action_[ln].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Ot.action_[ln].type_+")"];Gt.concatArray(ue,Zn)}if(b=Ot.nextState||b,a.length>0){if(Ot.revisit||(a=at.remainder),!Ot.toContinue)break e}else return ue}}if(ae<=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=Gt.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 Gt.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Gt.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Gt.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Gt.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Gt.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Gt.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Gt.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Gt.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Gt.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Gt.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Gt.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Gt.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Gt.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 Gt.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Gt.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Gt.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Gt.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 Gt.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Gt.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Gt.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Gt.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Gt.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Gt.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Gt.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Gt.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=Gt.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,ne,ae,ue,ke,Le,Ve){var at=function(Ai,pa){if(typeof pa=="string")return Ai.indexOf(pa)!==0?null:pa;var ao=Ai.match(pa);return ao?ao[0]:null},Ot=function(Ai,pa,ao){for(var Pa=0;pa<Ai.length;){var ul=Ai.charAt(pa),Nl=at(Ai.substr(pa),ao);if(Nl!==null&&Pa===0)return{endMatchBegin:pa,endMatchEnd:pa+Nl.length};if(ul==="{")Pa++;else if(ul==="}"){if(Pa===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];Pa--}pa++}return Pa>0,null},ln=at(a,y);if(ln===null||(a=a.substr(ln.length),ln=at(a,b),ln===null))return null;var Zn=Ot(a,ln.length,z||ne);if(Zn===null)return null;var nr=a.substring(0,z?Zn.endMatchEnd:Zn.endMatchBegin);if(ae||ue){var Fi=this.findObserveGroups(a.substr(Zn.endMatchEnd),ae,ue,ke,Le);if(Fi===null)return null;var eo=[nr,Fi.match_];return{match_:Ve?eo.join(""):eo,remainder:Fi.remainder}}else return{match_:nr,remainder:a.substr(Zn.endMatchEnd)}},match_:function(a,y){var b=Gt.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Gt.patterns.patterns[a](y);var z=y.match(b);if(z){var ne;return z[2]?ne=[z[1],z[2]]:z[1]?ne=z[1]:ne=z[0],{match_:ne,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 Gt.go(y,"text")},"{text}":function(a,y){var b=["{"];return Gt.concatArray(b,Gt.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Gt.go(y,"tex-math")},"tex-math tight":function(a,y){return Gt.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 Gt.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 Gt.go(y,"9,9")}},createTransitions:function(a){var y,b,z,ne,ae={};for(y in a)for(b in a[y])for(z=b.split("|"),a[y][b].stateArray=z,ne=0;ne<z.length;ne++)ae[z[ne]]=[];for(y in a)for(b in a[y])for(z=a[y][b].stateArray||[],ne=0;ne<z.length;ne++){var ue=a[y][b];if(ue.action_){ue.action_=[].concat(ue.action_);for(var ke=0;ke<ue.action_.length;ke++)typeof ue.action_[ke]=="string"&&(ue.action_[ke]={type_:ue.action_[ke]})}else ue.action_=[];for(var Le=y.split("|"),Ve=0;Ve<Le.length;Ve++)if(z[ne]==="*")for(var at in ae)ae[at].push({pattern:Le[Ve],task:ue});else ae[z[ne]].push({pattern:Le[Ve],task:ue})}return ae},stateMachines:{}};Gt.stateMachines={ce:{transitions:Gt.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 Gt.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 Gt.concatArray(b,this.output(a)),Gt.concatArray(b,Gt.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var z=Gt.patterns.match_("orbital",a.o||""),ne=Gt.patterns.match_("one lowercase greek letter $",a.o||""),ae=Gt.patterns.match_("one lowercase latin letter $",a.o||""),ue=Gt.patterns.match_("$one lowercase latin letter$ $",a.o||""),ke=y==="-"&&(z&&z.remainder===""||ne||ae||ue);ke&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!z&&ae&&(a.o="$"+a.o+"$");var Le=[];return ke?(Gt.concatArray(Le,this.output(a)),Le.push({type_:"hyphen"})):(z=Gt.patterns.match_("digits",a.d||""),b&&z&&z.remainder===""?(Gt.concatArray(Le,Gt.actions["d="](a,y)),Gt.concatArray(Le,this.output(a))):(Gt.concatArray(Le,this.output(a)),Gt.concatArray(Le,Gt.actions.bond(a,y,"-")))),Le},"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:Gt.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"&&Gt.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:Gt.go(a.a,"a"),b:Gt.go(a.b,"bd"),p:Gt.go(a.p,"pq"),o:Gt.go(a.o,"o"),q:Gt.go(a.q,"pq"),d:Gt.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ne;a.rdt==="M"?ne=Gt.go(a.rd,"tex-math"):a.rdt==="T"?ne=[{type_:"text",p1:a.rd||""}]:ne=Gt.go(a.rd);var ae;a.rqt==="M"?ae=Gt.go(a.rq,"tex-math"):a.rqt==="T"?ae=[{type_:"text",p1:a.rq||""}]:ae=Gt.go(a.rq),z={type_:"arrow",r:a.r,rd:ne,rq:ae}}for(var ue in a)ue!=="parenthesisLevel"&&ue!=="beginsWithBond"&&delete a[ue];return z},"oxidation-output":function(a,y){var b=["{"];return Gt.concatArray(b,Gt.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Gt.go(y[0]),p2:Gt.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Gt.go(y[0]),p2:Gt.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Gt.go(y[0]),p2:Gt.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Gt.go(y[0]),p2:Gt.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Gt.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:Gt.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:Gt.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:Gt.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:Gt.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:Gt.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Gt.go(y[1],"pq")}}}},bd:{transitions:Gt.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:Gt.go(y[1],"bd")}}}},oxidation:{transitions:Gt.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:Gt.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:Gt.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:Gt.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Gt.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]&&(Gt.concatArray(b,Gt.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Gt.concatArray(b,Gt.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]),Gt.concatArray(b,Gt.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=Gt.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var z=Gt.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 ne={d:Gt.go(a.d,"pu"),q:Gt.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ne.d,p2:ne.q}:(y=ne.d,ne.d.length>1||ne.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),Gt.concatArray(y,ne.q))}else y=Gt.go(a.d,"pu-2");for(var ae in a)delete a[ae];return y}}},"pu-2":{transitions:Gt.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=Gt.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Gt.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var z in a)delete a[z];return y}}},"pu-9,9":{transitions:Gt.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 ne in a)delete a[ne];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 ne in a)delete a[ne];return y}}}};var Sn={go:function(a,y){if(!a)return"";for(var b="",z=!1,ne=0;ne<a.length;ne++){var ae=a[ne];typeof ae=="string"?b+=ae:(b+=Sn._go2(ae),ae.type_==="1st-level escape"&&(z=!0))}return!y&&!z&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Sn.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Sn._goInner(a.a),b:Sn._goInner(a.b),p:Sn._goInner(a.p),o:Sn._goInner(a.o),q:Sn._goInner(a.q),d:Sn._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 "+Sn._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Sn._goInner(a.p1);break;case"bond":if(y=Sn._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 ne="\\frac{"+Sn._goInner(a.p1)+"}{"+Sn._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ne+"}{"+ne+"}{"+ne+"}{"+ne+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Sn._goInner(a.p1)+"}{"+Sn._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Sn._goInner(a.p1)+"}{"+Sn._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Sn._goInner(a.p1)+"}{"+Sn._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Sn._goInner(a.p1)+"}_{"+Sn._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Sn._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var ae={rd:Sn._goInner(a.rd),rq:Sn._goInner(a.rq)},ue=Sn._getArrow(a.r);ae.rd||ae.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(ue="\\long"+ue,ae.rd&&(ue="\\overset{"+ae.rd+"}{"+ue+"}"),ae.rq&&(a.r==="<-->"?ue="\\underset{\\lower2mu{"+ae.rq+"}}{"+ue+"}":ue="\\underset{\\lower6mu{"+ae.rq+"}}{"+ue+"}"),ue=" {}\\mathrel{"+ue+"}{} "):(ae.rq&&(ue+="[{"+ae.rq+"}]"),ue+="{"+ae.rd+"}",ue=" {}\\mathrel{\\x"+ue+"}{} "):ue=" {}\\mathrel{\\long"+ue+"}{} ",y=ue;break;case"operator":y=Sn._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 Hn(a){}function Br(a){}var wi=class u0 extends Ri{constructor(y){super(pe(Se({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new u0(y)}toJson(){return pe(Se({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new ha(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Vt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):wo(this.command,this.value)}},Ja=class c0 extends Ri{constructor(y){super(pe(Se({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new c0(y)}toJson(){return pe(Se({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=ui(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=Vt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):wo(this.command,this.value)}},io=class d0 extends Ri{constructor(y,b,z,ne){var ae,ue;super({type:"enclose",command:y,style:ne.style}),this.body=b,this.backgroundcolor=ne.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=(ae=ne.shadow)!=null?ae:"none",this.strokeWidth=(ue=ne.strokeWidth)!=null?ue:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ne.strokeStyle,this.svgStrokeStyle=ne.svgStrokeStyle,this.strokeColor=ne.strokeColor,this.borderStyle=ne.borderStyle,this.padding=ne.padding,this.captureSelection=!1}static fromJson(y){return new d0(y.command,y.body,y.notation,y)}toJson(){return pe(Se({},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=Vt(this.command,this.mode);if(z!=null&&z.serialize)return z.serialize(this,y);let ne=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ne+="{"+Object.keys(this.notation).join(" ")+"}";let ae="",ue="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(ae+=ue+'mathbackground="'+this.backgroundcolor+'"',ue=","),this.shadow&&this.shadow!=="auto"&&(ae+=ue+'shadow="'+this.shadow+'"',ue=","),this.strokeWidth||this.strokeStyle!=="solid"?(ae+=ue+this.borderStyle,ue=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(ae+=ue+'mathcolor="'+this.strokeColor+'"',ue=","),ae&&(ne+=`[${ae}]`)}return wo(ne,this.bodyToLatex(y))}render(y){const b=new bl({parent:y},this.style),z=Ri.createBox(b,this.body);if(!z)return null;const ne=rl(this.borderStyle),ae=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});z.setStyle("position","relative"),z.setStyle("display","inline-block"),z.setStyle("top",ae,"em"),z.setStyle("height",z.height+z.depth,"em"),z.setStyle("width",z.width,"em");const ue=new ha(null,{classes:"ML__notation"});let ke=z.height+z.depth+2*ae;const Le=z.width+2*ae;let Ve="";if(this.notation.horizontalstrike&&(Ve+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Ve+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Ve+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Ve+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Ve+=this.line(ae.toString(),(ae+z.depth+z.height).toString(),(ae+z.width).toString(),ae.toString());const nr=.03*Math.sqrt(Le*Le+ke*ke)*1,Fi=z.width*nr,eo=(z.depth+z.height)*nr,Ai=ae+z.width;let pa=ae;pa+eo-.4*Fi<0&&(pa=.4*Fi-eo),Ve+='<polygon points="',Ve+=`${Ai},${pa} ${Ai-Fi-.4*eo},${pa+eo-.4*Fi} `,Ve+=`${Ai-.7*Fi},${pa+.7*eo} ${Ai-Fi+.4*eo},${pa+eo+.4*Fi} `,Ve+=`${Ai},${pa}`,Ve+=`" stroke='none' fill="${this.strokeColor}"`,Ve+="/>"}let at=0;if(this.notation.phasorangle){const ln=Bl(b),Zn=(z.height+z.depth+2*ln+ae).toString(),nr=(z.height+z.depth)/2;Ve+=this.line(ae.toString(),Zn,(ae+nr+z.width).toString(),Zn),Ve+=this.line(ae.toString(),Zn,(ae+nr).toString(),(ae-ln).toString()),ke+=ln,at=nr,z.left+=ke/2-ae}if(this.notation.longdiv){const ln=Bl(b);ke+=ln,Ve+=this.line(ae.toString(),ae.toString(),(ae+z.width).toString(),ae.toString());const Zn=.3;at=Zn+ln,z.left+=Zn+ln,z.setTop(ae+ln),Ve+='<path d="',Ve+=`M ${ae} ${ae} a${Zn} ${(z.depth+z.height+2*ln)/2}, 0, 1, 1, 0 ${z.depth+z.height+2*ln} "`,Ve+=` stroke-width="${xl(b)}" stroke="${this.strokeColor}" fill="none"`,Ve+="/>"}if(ue.width=z.width+2*ae+at,ue.height=z.height+ae,ue.depth=z.depth+ae,ue.setStyle("box-sizing","border-box"),ue.setStyle("left",`calc(-${ne} / 2 )`),ue.setStyle("height",`${Math.floor(100*ke)/100}em`),ue.setStyle("top",`calc(${ne} / 2 )`),this.backgroundcolor&&ue.setStyle("background-color",this.backgroundcolor),this.notation.box&&ue.setStyle("border","1px solid red"),this.notation.actuarial&&(ue.setStyle("border-top",this.borderStyle),ue.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(ue.setStyle("border-bottom",this.borderStyle),ue.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(ue.setStyle("border-radius","8px"),ue.setStyle("border",this.borderStyle)),this.notation.circle&&(ue.setStyle("border-radius","50%"),ue.setStyle("border",this.borderStyle)),this.notation.top&&ue.setStyle("border-top",this.borderStyle),this.notation.left&&ue.setStyle("border-left",this.borderStyle),this.notation.right&&ue.setStyle("border-right",this.borderStyle),this.notation.bottom&&ue.setStyle("border-bottom",this.borderStyle),Ve){let ln="";this.shadow==="auto"&&(ln+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(ln+=`filter: drop-shadow(${this.shadow})`),ln+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,ln+=' stroke-linecap="round"',this.svgStrokeStyle&&(ln+=` stroke-dasharray="${this.svgStrokeStyle}"`),ue.svgStyle=ln,ue.svgOverlay=Ve}const Ot=new ha([ue,z]);return Ot.setStyle("position","relative"),Ot.setStyle("vertical-align",ae,"em"),Ot.setStyle("height",`${Math.floor(100*(z.height+z.depth+2*ae))/100}em`),Ot.setStyle("display","inline-block"),Ot.height=ue.height,Ot.depth=ue.depth,Ot.width=ue.width-2*ae,Ot.left=ae,Ot.right=ae,this.caret&&(Ot.caret=this.caret),Ot.wrap(b)}line(y,b,z,ne){return`<line x1="${po(y)}" y1="${po(b)}" x2="${po(z)}" y2="${po(ne)}" vector-effect="non-scaling-stroke"></line>`}};function po(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function rl(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function xl(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function Bl(a){const y=a.isDisplayStyle?yl:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var es=class f0 extends Ri{constructor(y,b,z){var ne,ae;super(pe(Se({},z),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ne=z==null?void 0:z.hasBarLine)!=null?ne:!0,this.continuousFraction=(ae=z==null?void 0:z.continuousFraction)!=null?ae:!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 f0(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),Se(Se({},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 ne=new bl({parent:y,mathstyle:this.mathstyleName},this.style),ae=ne.metrics,ue=new bl({parent:ne,mathstyle:this.continuousFraction?"":"numerator"},this.style),ke=this.numerPrefix?new ha([new ha(this.numerPrefix),Ri.createBox(ue,this.above)],{isTight:ue.isTight,type:"ignore"}):(b=Ri.createBox(ue,this.above,{type:"ignore"}))!=null?b:new ha(null,{type:"ignore"}),Le=new bl({parent:ne,mathstyle:this.continuousFraction?"":"denominator"},this.style),Ve=this.denomPrefix?new ha([new ha(this.denomPrefix),Ri.createBox(Le,this.below,{type:"ignore"})]):(z=Ri.createBox(Le,this.below,{type:"ignore"}))!=null?z:new ha(null,{type:"ignore"}),at=this.hasBarLine?ae.defaultRuleThickness:0;let Ot,ln=0,Zn;ne.isDisplayStyle?(Ot=ue.metrics.num1,ln=at>0?3*at:7*at,Zn=Le.metrics.denom1):(at>0?(Ot=ue.metrics.num2,ln=at):(Ot=ue.metrics.num3,ln=3*ae.defaultRuleThickness),Zn=Le.metrics.denom2);const nr=[];this.isSelected&&nr.push("ML__selected");const Fi=ke.depth,eo=Ve.height;let Ai;if(at<=0){const El=Ot-Fi-(eo-Zn);El<ln&&(Ot+=(ln-El)/2,Zn+=(ln-El)/2),Ai=new Xl({individualShift:[{box:ke,shift:-Ot,classes:[...nr,"ML__center"]},{box:Ve,shift:Zn,classes:[...nr,"ML__center"]}]}).wrap(ne)}else{const El=new ha(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});El.softWidth=Math.max(ke.width,Ve.width),El.height=at/2,El.depth=at/2;const Ms=lo+at/2;Ot<ln+Fi+Ms&&(Ot=ln+Fi+Ms);const ru=lo-at/2;Zn<ln+eo-ru&&(Zn=ln+eo-ru),Ai=new Xl({individualShift:[{box:Ve,shift:Zn,classes:[...nr,"ML__center"]},{box:El,shift:-ru,classes:nr},{box:ke,shift:-Ot,classes:[...nr,"ML__center"]}]}).wrap(ne)}const pa=ne.isDisplayStyle?ae.delim1:ae.delim2,ao=this.leftDelim?this.bind(y,$o("open",this.leftDelim,pa,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):tl(ne,"open");let Pa=null;this.continuousFraction?Pa=new ha(null,{type:"close"}):this.rightDelim?Pa=this.bind(y,$o("close",this.rightDelim,pa,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Pa=tl(ne,"close");const ul=new ha([ao,Ai,Pa],{isTight:ne.isTight,type:"inner",classes:"mfrac"}),Nl=this.bind(y,ul);return this.caret&&(Nl.caret=this.caret),this.attachSupsub(y,{base:Nl})}},Pl=class h0 extends Ri{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 h0(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),Se({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new ha(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}},ms=class p0 extends Ri{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Pl(b)),this.skipBoundary=!1}static fromJson(y){return new p0("")}toJson(){return super.toJson()}render(y){const b=Ri.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(ne=>ne.value).join(""))!=null?z:""}},Fu=class m0 extends Ri{constructor(y,b){super(pe(Se({},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 m0(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",ne=new ha(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(!ne)return null;ne.right=ne.italic;const ae=(ne.height-ne.depth)/2-lo*y.scalingFactor,ue=ne.italic;ne.setTop(ae);let ke=ne;if(this.superscript||this.subscript){const Le=(b=this.subsupPlacement)!=null?b:"auto";ke=Le==="over-under"||Le==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ne,baseShift:ae,slant:ue}):this.attachSupsub(y,{base:ne})}return new ha(this.bind(y,ke),{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=Vt(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)),zl(z)}},vs=class v0 extends Ri{constructor(y){const b=y.body;super(pe(Se({},y),{type:"overlap",body:typeof b=="string"?[new Ri({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 v0(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),Se(Se({},super.toJson()),y)}render(y){const b=Ri.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new ha([b,new ha(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},zs=class g0 extends Ri{constructor(y){var b,z,ne,ae;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=(ne=y.paddedBody)!=null?ne:!1,this.paddedLabels=(ae=y.paddedLabels)!=null?ae:!1}static fromJson(y){return new g0(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?Wu(this.svgBody):Ri.createBox(y,this.body,{type:"ignore"});const z=new bl({parent:y,mathstyle:"scriptstyle"},this.style);let ne=null;this.svgAbove?ne=Wu(this.svgAbove):this.above&&(ne=Ri.createBox(z,this.above,{type:"ignore"}));let ae=null;this.svgBelow?ae=Wu(this.svgBelow):this.below&&(ae=Ri.createBox(z,this.below,{type:"ignore"})),this.paddedBody&&(b=new ha([tl(y,"open"),b,tl(y,"close")],{type:"ignore"}));let ue=nc(y,{base:b,above:ne,below:ae,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return ue?(this.subsupPlacement==="over-under"?ue=this.attachLimits(y,{base:ue,type:ue.type}):ue=this.attachSupsub(y,{base:ue}),this.caret&&(ue.caret=this.caret),this.bind(y,ue)):null}};function nc(a,y){if(!y.base)return null;if(!y.above&&!y.below){const ke=new ha(y.base,{type:y.type});return ke.setStyle("position","relative"),ke}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let z=null;const ne=y.base,ae=0,ue=["ML__center"];if(y.paddedAboveBelow&&ue.push("ML__label_padding"),y.below&&y.above){const ke=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ne.depth+ae;z=new Xl({bottom:ke,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ue},{box:ne,classes:["ML__center"]},b,{box:y.above,classes:ue},a.metrics.bigOpSpacing5]})}else y.below?z=new Xl({top:ne.height-ae,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:ue},{box:ne,classes:["ML__center"]}]}):y.above&&(z=new Xl({bottom:ne.depth+ae,children:[{box:ne,classes:["ML__center"]},b,{box:y.above,classes:ue},a.metrics.bigOpSpacing5]}));return new ha(z,{type:y.type})}var Qu=class y0 extends Ri{constructor(y){var b,z,ne,ae;super(pe(Se({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(z=y.smashDepth)!=null?z:!1,this.smashHeight=(ne=y.smashHeight)!=null?ne:!1,this.smashWidth=(ae=y.smashWidth)!=null?ae:!1}static fromJson(y){return new y0(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),Se(Se({},super.toJson()),y)}render(y){const b=new bl({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Ri.createBox(b,this.body,{classes:"inner"});const z=Ri.createBox(this.isInvisible?b:y,this.body);if(!z)return null;if(this.smashWidth){const ne=new ha(null,{classes:"fix"});return new ha([z,ne],{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 ne of z.children)this.smashHeight&&(ne.height=0),this.smashDepth&&(ne.depth=0);return new Xl({firstBaseline:[{box:z}]},{type:z.type}).wrap(y)}},Mc=class b0 extends Ri{constructor(y){var b;super(Se({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 b0(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 ha(this.mode==="math"?null:" ");let z;if(this.width!==void 0)z=new ha(null,{classes:"mspace"}),z.left=y.toEm(this.width);else{const ne=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";z=new ha(null,{classes:ne})}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=Vt(this.command,this.mode);if(z!=null&&z.serialize)return z.serialize(this,y);const ne=(b=this.command)!=null?b:"";return this.width===void 0?ne:this._braced&&!("register"in this.width)?`${ne}{${Us(this.width)}}`:`${ne}${Us(this.width)}`}},Rc=class x0 extends Ri{constructor(y){var b;super(pe(Se({},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 x0(pe(Se({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Vt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const z=this.command,ne=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?wo(`${z}[${this.aboveToLatex(y)}]`,ne):/^[0-9]$/.test(ne)?`${z}${ne}`:wo(z,ne)}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 bl({parent:y,mathstyle:"cramp"},this.style),ne=(b=Ri.createBox(z,this.body,{type:"inner"}))!=null?b:new ha(null),ae=z.scalingFactor,ue=z.metrics.defaultRuleThickness/ae,ke=y.isDisplayStyle?yl:ue,Le=new ha(null,{classes:"ML__sqrt-line",style:this.style});Le.height=ue,Le.softWidth=ne.width;let Ve=ae*(ue+ke/4);const Ot=Math.max(ae*2*ke,ne.height+ne.depth)+Ve+ue,ln=new bl({parent:y},this.style),Zn=this.bind(ln,new ha($o("inner","\\surd",Ot,!1,ln,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Zn)return null;const nr=Zn.height+Zn.depth-ue;nr>ne.height+ne.depth+Ve&&(Ve=(Ve+nr-(ne.height+ne.depth))/2),Zn.setTop(Zn.height-ne.height-Ve);const Fi=this.bind(y,new Xl({firstBaseline:[{box:new ha(ne)},Ve-2*ue,{box:Le},ue]})),eo=Ri.createBox(new bl({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!eo){const ao=new ha([Zn,Fi],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return ao.setStyle("display","inline-block"),ao.setStyle("height",ao.height+ao.depth,"em"),this.caret&&(ao.caret=this.caret),this.bind(y,ao)}const Ai=new Xl({shift:-.6*(Math.max(Zn.height,Fi.height)-Math.max(Zn.depth,Fi.depth)),children:[{box:eo}]}),pa=new ha([new ha(Ai,{classes:"ML__sqrt-index",type:"ignore"}),Zn,Fi],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return pa.height=Zn.height,pa.depth=Zn.depth,this.caret&&(pa.caret=this.caret),this.bind(y,pa)}},kc=class extends ha{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 Ic(a,y){if(!a.parent)return;const b=a.parent.children,z=b.indexOf(a);let ne=z-1;for(;ne>=0&&b[ne].type==="ignore";)ne-=1;if(ne<0&&a.parent.parent&&a.parent.type==="lift"){Ic(a.parent,y);return}z>0&&b[z-1].type==="skip"?b[z-1].width+=y:b.splice(z,0,new kc(y))}var cc={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}},xd={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function $c(a){Wc(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 dd(a,y){if(!a.children)return a;const b=a.children;$c(b);const z=y.getRegisterAsEm("thinmuskip"),ne=y.getRegisterAsEm("medmuskip"),ae=y.getRegisterAsEm("thickmuskip");return Wc(b,(ue,ke)=>{var Le,Ve,at;if(!ue)return;const Ot=ue.type,ln=ke.isTight?(Le=xd[Ot])!=null?Le:null:(Ve=cc[Ot])!=null?Ve:null,Zn=(at=ln==null?void 0:ln[ke.type])!=null?at:null;Zn===3&&Ic(ke,z),Zn===4&&Ic(ke,ne),Zn===5&&Ic(ke,ae)}),a}function Wc(a,y,b=void 0){if(!a)return b;a=[...a];for(const z of a)z.type==="lift"?b=Wc(z.children,y,b):z.type==="ignore"?Wc(z.children,y):(y(b,z),Wc(z.children,y),b=z);return b}var qc=class E0 extends Ri{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Ri({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new E0(pe(Se({},y),{tooltip:Dc(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 pe(Se({},super.toJson()),{tooltip:b})}render(y){const b=Ri.createBox(new bl,this.body);if(!b)return null;const z=new bl({parent:y,mathstyle:"displaystyle"},{fontSize:ma}),ne=qs(dd(new ha(this.tooltip.render(z),{classes:"ML__tooltip-content"}),z)),ae=new ha([ne,b],{classes:"ML__tooltip-container"});return this.caret&&(ae.caret=this.caret),this.bind(y,ae)}},yc=class C0 extends Ri{constructor(y,b){super(pe(Se({},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 C0(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 ha(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ne=z;if(this.superscript||this.subscript){const ae=(b=this.subsupPlacement)!=null?b:"auto";ne=ae==="over-under"||ae==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:z}):this.attachSupsub(y,{base:z})}return new ha(this.bind(y,ne),{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=Vt(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)),zl(z)}};function Dc(a){if(Pe(a))return a.map(z=>Dc(z));if(typeof a=="string")return Ri.fromJson(a);a=Se({},a);for(const z of vu)a[z]&&(a[z]=Dc(a[z]));a.args&&(a.args=yf(a.args)),a.array&&(a.array=Dc(a.array));const y=a.type;let b;y==="accent"&&(b=ee.fromJson(a)),y==="array"&&(b=ql.fromJson(a)),y==="box"&&(b=Ou.fromJson(a)),y==="chem"&&(b=or.fromJson(a)),y==="composition"&&(b=cd.fromJson(a)),y==="delim"&&(b=wi.fromJson(a)),y==="enclose"&&(b=io.fromJson(a)),y==="error"&&(b=gc.fromJson(a)),y==="extensible-symbol"&&(b=Fu.fromJson(a)),y==="genfrac"&&(b=es.fromJson(a)),y==="group"&&(b=Xu.fromJson(a)),y==="latex"&&(b=Pl.fromJson(a)),y==="latexgroup"&&(b=ms.fromJson(a)),y==="leftright"&&(b=Ps.fromJson(a)),y==="macro"&&(b=ce.fromJson(a)),y==="macro-argument"&&(b=Ce.fromJson(a)),y==="operator"&&(b=yc.fromJson(a)),y==="overlap"&&(b=vs.fromJson(a)),y==="overunder"&&(b=zs.fromJson(a)),y==="placeholder"&&(b=Ol.fromJson(a)),y==="prompt"&&(b=ze.fromJson(a)),y==="phantom"&&(b=Qu.fromJson(a)),y==="sizeddelim"&&(b=Ja.fromJson(a)),y==="spacing"&&(b=Mc.fromJson(a)),y==="subsup"&&(b=dt.fromJson(a)),y==="surd"&&(b=Rc.fromJson(a)),y==="text"&&(b=Ec.fromJson(a)),y==="tooltip"&&(b=qc.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=Ri.fromJson(a));for(const z of vu)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 yf(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>Dc(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>Dc(b)):y)}var jc={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"]},_d={"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]$/},tf=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Yd=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,bf=[/^[a-z]$/,/^[A-Z]$/,tf,Yd],xf={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},ch=class extends _o{constructor(){super("math")}createAtom(a,y,b){var z,ne,ae,ue;if(y===null)return new Ri({type:"mord",mode:"math",command:a,value:a,style:b});const ke=window.MathfieldElement.isFunction((z=y.command)!=null?z:a);if(y.definitionType==="symbol"){const Ve=new Ri({type:(ne=y.type)!=null?ne:"mord",mode:"math",command:(ae=y.command)!=null?ae:a,value:String.fromCodePoint(y.codepoint),style:b});return ke&&(Ve.isFunction=!0),a.startsWith("\\")&&(Ve.verbatimLatex=a),Ve}const Le=new Ri({type:"mord",mode:"math",command:(ue=y.command)!=null?ue:a,value:a,style:b});return ke&&(Le.isFunction=!0),a.startsWith("\\")&&(Le.verbatimLatex=a),Le}serialize(a,y){const b=Vh(a,pe(Se({},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&&bf.forEach((ke,Le)=>{var Ve;ke.test(a.value)&&xf[(Ve=y.letterShapeStyle)!=null?Ve:"tex"][Le]==="it"&&(z="italic")}),z==="up"&&(z=void 0);const ne=z?b+"-"+z:b;console.assert(jc[ne]!==void 0);const[ae,ue]=jc[ne];return _d[b]&&!_d[b].test(a.value)?(a.value=qt(a.value,b,z),null):(tf.test(a.value)&&(a.classes+=" lcGreek"),ue&&(a.classes+=" "+ue),ae)}};function Vh(a,y){const{parent:b}=a[0],z=nf(b);return co(a,"variant").map(ne=>{const ae=nf(ne[0]);let ue="";ae&&ae!==z&&(ue={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"}[ae],console.assert(ue!==void 0));const ke=zl(ne.map(Le=>Le._serialize(y)));return ue?wo(ue,ke):ke})}function nf(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 ch;function Gh(a,y){return a.map(b=>b._serialize(y))}function dh(a,y){return co(a,"fontShape").map(b=>{const z=Gh(b,y),{fontShape:ne}=b[0].style;let ae="";return ne==="it"&&(ae="\\textit"),ne==="sl"&&(ae="\\textsl"),ne==="sc"&&(ae="\\textsc"),ne==="n"&&(ae="\\textup"),!ae&&ne?`{${wo("\\fontshape",ne)}${zl(z)}}`:ae?wo(ae,zl(z)):zl(z)})}function Zf(a,y){return co(a,"fontSeries").map(b=>{const z=dh(b,y),{fontSeries:ne}=b[0].style;let ae="";return ne==="b"&&(ae="\\textbf"),ne==="l"&&(ae="\\textlf"),ne==="m"&&(ae="\\textmd"),ne&&!ae?`{${wo("\\fontseries",ne)}${zl(z)}}`:ae?wo(ae,zl(z)):zl(z)})}function Ef(a,y){return co(a,"fontSize").map(b=>{var z,ne;const ae=Zf(b,y),ue=(ne=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(z=b[0].style.fontSize)!=null?z:""])!=null?ne:"";return ue?`${ue} ${zl(ae)}`:zl(ae)})}function fh(a,y,b){return co(a,"fontFamily").map(z=>{var ne,ae;const ue=Ef(z,y),ke=(ae={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ne=z[0].style.fontFamily)!=null?ne:""])!=null?ae:"";return ke?`\\${ke}{${zl(ue)}}`:z[0].style.fontFamily?`{\\fontfamily{${z[0].style.fontFamily}} ${zl(ue)}}`:b?`\\text{${zl(ue)}}`:zl(ue)})}var Cf={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Wf=class extends _o{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new Ec(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return fh(a,pe(Se({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,z,ne,ae,ue;const{fontFamily:ke}=y;if(Cf[ke]?a.classes+=" "+Cf[ke]:ke&&a.setStyle("font-family",ke),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 Le=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);Le&&(a.classes+=" ",a.classes+=(ne={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=Le[1])!=null?z:""])!=null?ne:"",a.classes+=" ",a.classes+=(ue={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"}[(ae=Le[2])!=null?ae:""])!=null?ue:"")}return"Main-Regular"}};new Wf;var Qh=class extends _o{constructor(){super("latex")}createAtom(a){return new Pl(a)}serialize(a,y){return a.filter(b=>b instanceof Pl&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Qh;var rf={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:["","=","","="]}},af={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:["","=","","="]}},Np={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:["\\","|","",""]}},Lp={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:[")",")",")",")"]}},D0={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:["=","=","=","="]}},B0={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:["<",">","",""]}},k0={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"]}},I0={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:["=","=","=","="]}},P0={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:["<",">","|",""]}},F0={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:[".",".",".","."]}},O0={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"]}},N0={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:["<",">","",""]}},L0={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 Tp(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 Sf(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 T0={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]"},jf=[],Uf;function Yh(){switch(be()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Uc(a){(!a.platform||a.platform===Yh())&&jf.push(a)}function R0(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[ne,ae]of Object.entries(y.mapping)){if(ae[0]===a)return z.key=`[${ne}]`,z;if(ae[1]===a)return z.shift=!0,z.key=`[${ne}]`,z;if(ae[2]===a)return z.alt=!0,z.key=`[${ne}]`,z;if(ae[3]===a)return z.shift=!0,z.alt=!0,z.key=`[${ne}]`,z}return z.key=(b=T0[a])!=null?b:"",z}function _0(a){if(a.code)return a;const y=Object.entries(Vf().mapping);let b=!1,z=!1,ne="";for(let ae=0;ae<4;ae++){for(const[ue,ke]of y)if(ke[ae]===a.key){ne=ue,ae===3?(b=!0,z=!0):ae===2?b=!0:ae===1&&(z=!0);break}if(ne)break}return new KeyboardEvent(a.type,pe(Se({},a),{altKey:b,shiftKey:z,code:ne}))}function z0(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 ne of jf)((y=ne.mapping[a.code])==null?void 0:y[z])===a.key?ne.score+=1:(b=ne.mapping[a.code])!=null&&b[z]&&(ne.score=0);jf.sort((ne,ae)=>ae.score-ne.score)}function K0(a){Uf=jf.find(y=>a.startsWith(y.locale))}function Vf(){return Uf!=null?Uf:jf[0]}function H0(){switch(Yh()){case"apple":return af;case"windows":return Np;case"linux":return Lp}return af}switch(Yh()){case"apple":Uc(af),Uc(D0),Uc(O0),Uc(I0);break;case"windows":Uc(Np),Uc(B0),Uc(N0),Uc(P0);break;case"linux":Uc(Lp),Uc(k0),Uc(L0),Uc(F0);break}Uc(rf);function Xh(a){var y;const b=/macos|ios/.test(be()),z=a.split("+");let ne="";for(const ae of z)ne&&(ne+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),ae.startsWith("[Key")?ne+=ae.slice(4,5):ae.startsWith("Key")?ne+=ae.slice(3,4):ae.startsWith("[Digit")?ne+=ae.slice(6,7):ae.startsWith("Digit")?ne+=ae.slice(5,6):ne+=(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"}[ae.toLowerCase()])!=null?y:ae.toUpperCase();return ne}function hh(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,ne)=>({x:z.x+ne.clientX,y:z.y+ne.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function of(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 W0=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 ph(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:W0.has(a.code)}function mh(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Ed=class Zd{static get scrim(){return Zd._scrim||(Zd._scrim=new Zd),Zd._scrim}static open(y){Zd.scrim.open(y)}static close(){Zd.scrim.close()}static get state(){return Zd.scrim.state}static get element(){return Zd.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=mh();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 ne=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const ae=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${ae+ne}px`,y!=null&&y.child&&z.append(y.child),this.state="open"}close(){var y,b,z,ne;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:ae}=this;ae.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),ae.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",mh()!==this.savedActiveElement&&((ne=(z=this.savedActiveElement)==null?void 0:z.focus)==null||ne.call(z)),ae.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 j0(a,y,b){let z=null,ne=null,ae=!1,ue=!1,ke=!1;const Le=new AbortController,Ve=Le.signal;return a.addEventListener("keydown",at=>{if(ae||at.key==="Process"||at.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(at.code)){z=null;return}z=at,ne=null,b.onKeystroke(at)?a.textContent="":z=null},{capture:!0,signal:Ve}),a.addEventListener("keypress",at=>{ae||(z&&ne&&b.onKeystroke(z),ne=at)},{capture:!0,signal:Ve}),a.addEventListener("compositionstart",at=>{a.textContent="",ae=!0,b.onCompositionStart(at.data)},{capture:!0,signal:Ve}),a.addEventListener("compositionupdate",at=>{ae&&b.onCompositionUpdate(at.data)},{capture:!0,signal:Ve}),a.addEventListener("compositionend",at=>{a.textContent="",ae&&(ae=!1,b.onCompositionEnd(at.data))},{capture:!0,signal:Ve}),a.addEventListener("beforeinput",at=>at.stopImmediatePropagation(),{signal:Ve}),a.addEventListener("input",at=>{var Ot;if(!ae&&(a.textContent="",at.inputType!=="insertCompositionText")){if(at.inputType==="insertFromPaste"){at.preventDefault(),at.stopPropagation();return}b.onInput((Ot=at.data)!=null?Ot:""),at.preventDefault(),at.stopPropagation()}},{signal:Ve}),a.addEventListener("paste",at=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(at)||at.preventDefault(),at.stopImmediatePropagation()},{signal:Ve}),a.addEventListener("cut",at=>b.onCut(at),{capture:!0,signal:Ve}),a.addEventListener("copy",at=>b.onCopy(at),{capture:!0,signal:Ve}),a.addEventListener("blur",at=>{var Ot,ln;if(((ln=(Ot=at.relatedTarget)==null?void 0:Ot._mathfield)==null?void 0:ln.element)===y){a.focus({preventScroll:!0}),at.preventDefault(),at.stopPropagation();return}const Zn=Ed.state;if(Zn==="open"||Zn==="opening"){at.preventDefault(),at.stopPropagation();return}if(at.relatedTarget===at.target.getRootNode().host){at.preventDefault(),at.stopPropagation();return}ke||ue||(ke=!0,z=null,ne=null,b.onBlur(),ke=!1)},{capture:!0,signal:Ve}),a.addEventListener("focus",at=>{ke||ue||(ue=!0,b.onFocus(),ue=!1)},{capture:!0,signal:Ve}),{dispose:()=>Le.abort(),cancelComposition:()=>{ae&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!ue&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>mh()===a,setAriaLabel:at=>a.setAttribute("aria-label",at),setValue:at=>{var Ot;a.textContent=at,a.style.left="-1000px",(Ot=window.getSelection())==null||Ot.selectAllChildren(a)},moveTo:(at,Ot)=>{a.style.top=`${Ot}px`,a.style.left=`${at}px`}}}function wf(a){var y;if(!a||!ph(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 Rp(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(rt()){const y=be(),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=Sf(Tp(Rp(b))),ne=Sf({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(be()),cmd:!1,win:!1});for(let ae=a.length-1;ae>=0;ae--)if((a[ae].key===z||a[ae].key===ne)&&(!a[ae].ifMode||a[ae].ifMode===y))return a[ae].command;return""}function _p(a){let y=a;return Pe(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function G0(a,y){let b=[];if(typeof y=="string"){const ae=ld[y];Pe(ae)?b=ae.slice():ae&&b.push(ae)}const z=_p(y),ne=new RegExp("^"+z.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const ae of a)ne.test(_p(ae.command))&&b.push(ae.key);return b.map(Xh)}function Q0(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=Tp(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=be()==="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 pe(Se({},a),{key:Sf(b)});const ne=R0(b.key,y);if(!ne)return pe(Se({},a),{key:Sf(b)});if(ne.shift&&b.shift||ne.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${Jh(a.command)}) is conflicting with the key combination ${Sf(ne)} using the ${y.displayName} keyboard layout`);return ne.shift=ne.shift||b.shift,ne.alt=ne.alt||b.alt,ne.meta=b.meta,ne.ctrl=b.ctrl,pe(Se({},a),{key:Sf(ne)})}function Jh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Y0(a,y){const b=[],z=[];for(const ne of a)try{const ae=Q0(ne,y);if(!ae)continue;const ue=z.find(ke=>ke.key===ae.key&&ke.ifMode===ae.ifMode);if(ue)throw new Error(`Ambiguous key binding ${ne.key} (${Jh(ne.command)}) matches ${ue.key} (${Jh(ue.command)}) with the ${y.displayName} keyboard layout`);z.push(ae)}catch(ae){ae instanceof Error&&b.push(ae.message)}return[z,b]}var X0=class extends Gl{constructor(){super("latex")}createAtom(a){return new Pl(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"}),Ru(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 ne=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Iu(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 ae=[];for(const Le of y)he.test(Le)&&ae.push(new Pl(Le));let ue=a.at(a.position);if(ue instanceof ms&&(ue=ue.lastChild),!(ue.parent instanceof ms)){const Le=new ms("");ue.parent.addChildAfter(Le,ue),ue=Le.firstChild}const ke=ue.parent.addChildrenAfter(ae,ue);return a.silenceNotifications=ne,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(ke)):ke&&(a.position=a.offsetOf(ke))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=z,!0}};function J0(a){return a.atoms.find(y=>y.type==="latexgroup")}function Gf(a){var y,b;const z=a.atoms.find(ne=>ne.type==="latexgroup");return z?(b=(y=z.body)==null?void 0:y.filter(ne=>ne.type==="latex"))!=null?b:[]:[]}function zp(a,y){var b;let z=0,ne=!1;const ae=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;z<=ae&&!ne;){const Le=a.at(z);ne=Le instanceof Pl&&Le.isSuggestion,ne||z++}if(!ne)return[void 0,void 0];let ue=z,ke=!1;for(;ue<=ae&&!ke;){const Le=a.at(ue);ke=!(Le instanceof Pl&&Le.isSuggestion),ke||ue++}return[z-1,ue-1]}new X0;function vh(a){const y=Gf(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 Qf(a,y){var b;const{model:z}=a;vh(a);for(const at of Gf(z))at.isError=!1;if(!z.selectionIsCollapsed||a.options.popoverPolicy==="off"){Mf(a);return}const ne=[];let ae=z.at(z.position);for(;ae&&ae instanceof Pl&&/^[a-zA-Z\*]$/.test(ae.value);)ae=ae.leftSibling;if(ae&&ae instanceof Pl&&ae.value==="\\")for(ne.push(ae),ae=ae.rightSibling;ae&&ae instanceof Pl&&/^[a-zA-Z\*]$/.test(ae.value);)ne.push(ae),ae=ae.rightSibling;const ue=ne.map(at=>at.value).join(""),ke=yn(a,ue);if(ke.length===0){if(/^\\[a-zA-Z\*]+$/.test(ue))for(const at of ne)at.isError=!0;Mf(a);return}const Le=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=Le<0?ke.length-1:Le%ke.length;const Ve=ke[a.suggestionIndex];if(Ve!==ue){const at=ne[ne.length-1];at.parent.addChildrenAfter([...Ve.slice(ue.length-Ve.length)].map(Ot=>new Pl(Ot,{isSuggestion:!0})),at),lf(a,{interactive:!0})}q0(a,ke)}function Kp(a){const[y,b]=zp(a,{before:a.position});if(y===void 0||b===void 0)return!1;let z=!1;return a.getAtoms([y,b]).forEach(ne=>{ne.isSuggestion&&(ne.isSuggestion=!1,z=!0)}),z}function Af(a,y="accept",b){var z,ne;Mf(a);const ae=J0(a.model);if(!ae)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Ve=Gf(a.model).filter(at=>at.isSuggestion);if(Ve.length!==0){for(const at of Ve)at.isSuggestion=!1;a.model.position=a.model.offsetOf(Ve[Ve.length-1])}if(y==="accept-suggestion")return Ve.length!==0}const ke=Gf(a.model).filter(Ve=>!Ve.isSuggestion).map(Ve=>Ve.value).join(""),Le=ae.leftSibling;return ae.parent.removeChild(ae),a.model.position=a.model.offsetOf(Le),a.switchMode((z=b==null?void 0:b.mode)!=null?z:"math"),y==="reject"||(Gl.insert(a.model,ke,{selectionMode:(ne=b==null?void 0:b.selectItem)!=null&&ne?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function gh(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 $h(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 $0(a,y){const b=new bl({from:a.context}),z=new Ri({mode:"math",type:"root",body:Pt(y,{context:b})}),ne=qs(dd(new ha(z.render(b),{classes:"ML__base"}),b));return Ku(ne,{classes:"ML__latex"}).toMarkup()}function q0(a,y){var b;if(y.length===0){Mf(a);return}let z="";for(const[ae,ue]of y.entries()){const ke=ue,Le=$0(a,ue),Ve=G0(a.keybindings,ke).join("<br>");z+=`<li role="button" data-command="${ke}" ${ae===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${ke}</span><span class="ML__popover__command">${Le}</span>`,Ve&&(z+=`<span class="ML__popover__keybinding">${Ve}</span>`),z+="</li>"}const ne=ev(a,`<ul>${z}</ul>`);qh()&&((b=ne.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var ae;ne&&!qh()&&(ne.classList.add("is-visible"),yh(a),(ae=ne.querySelector(".ML__popover__current"))==null||ae.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function qh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function yh(a,y){var b;if(!a.element||a.element.mathfield!==a||!qh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){Mf(a);return}if(y!=null&&y.deferred){setTimeout(()=>yh(a),32);return}const z=Lc(a.field);if(!z)return;const ne=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ae=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,ue=window.innerWidth-document.documentElement.clientWidth,ke=window.innerHeight-document.documentElement.clientHeight,Le=window.mathVirtualKeyboard.boundingRect.height,Ve=document.getElementById("mathlive-suggestion-popover");z.x+Ve.offsetWidth/2>ae-ue?Ve.style.left=`${ae-Ve.offsetWidth-ue}px`:z.x-Ve.offsetWidth/2<0?Ve.style.left="0":Ve.style.left=`${z.x-Ve.offsetWidth/2}px`;const at=z.y-z.height;ne-ke-Le-z.y<at?(Ve.classList.add("ML__popover--reverse-direction"),Ve.classList.remove("top-tip"),Ve.classList.add("bottom-tip"),Ve.style.top=`${z.y-z.height-Ve.offsetHeight-15}px`):(Ve.classList.remove("ML__popover--reverse-direction"),Ve.classList.add("top-tip"),Ve.classList.remove("bottom-tip"),Ve.style.top=`${z.y+15}px`)}function Mf(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function ev(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=gh("mathlive-suggestion-popover"),vc("suggestion-popover"),vc("core"),b.addEventListener("pointerdown",z=>z.preventDefault()),b.addEventListener("click",z=>{let ne=z.target;for(;ne&&!ne.dataset.command;)ne=ne.parentElement;ne&&(Af(a,"reject"),Gl.insert(a.model,ne.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function tv(){document.getElementById("mathlive-suggestion-popover")&&($h("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function nv(){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 bh=null,Hp,Zp,ep=((Zp=(Hp=globalThis==null?void 0:globalThis.document)==null?void 0:Hp.currentScript)==null?void 0:Zp.src)||nv();function Wp(a){return ef(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(bh===null)try{const y=yield fetch(ep,{method:"HEAD"});y.status===200&&(bh=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${ep}")`)}return new URL(a,bh!=null?bh:ep).href})}function rv(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Vc="not-loaded";function iv(){return ef(this,null,function*(){return Vc="not-loaded",xh()})}function xh(){return ef(this,null,function*(){var a;if(Vc!=="not-loaded")return;if(Vc="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Vc="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(ue=>ue.family);if(b.every(ue=>z.includes(ue))){Vc="ready";return}if(!window.MathfieldElement.fontsDirectory){Vc="not-loaded";return}const ne=yield Wp(window.MathfieldElement.fontsDirectory);if(!ne){document.body.classList.add("ML__fonts-did-not-load"),Vc="error";return}const ae=[["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(ue=>rv(ue[0].replace(/-[a-zA-Z]+$/,""),`${ne}/${ue[0]}`,ue[1]));try{(yield Promise.all(ae.map(ke=>{try{return ke.load()}catch(Le){}}))).forEach(ke=>document.fonts.add(ke)),Vc="ready";return}catch(ue){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ne}"`,{cause:ue}),document.body.classList.add("ML__fonts-did-not-load")}Vc="error"}})}function av(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 Ru(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{pc(a)&&a.dirty&&(a.atomBoundsCache=new Map,lf(a,y),a.atomBoundsCache=void 0)})))}function ov(a,y){var b;y=y!=null?y:{};const z=new bl({from:pe(Se({},a.context),{atomIdsSettings:{seed:y.forHighlighting?av(Ri.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"}),ne=a.model.root.render(z);return Ku(dd(ne,z),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function jp(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ne of b.atoms)ne.caret=void 0,ne.isSelected=!1,ne.containsCaret=!1;if(b.selectionIsCollapsed){const ne=b.at(b.position);ne.caret=a.model.mode;let ae=ne.parent;for(;ae;)ae.containsCaret=!0,ae=ae.parent}else{const ne=b.getAtoms(b.selection,{includeChildren:!0});for(const ae of ne)ae.isSelected=!0}return ov(a,y).toMarkup()}function lf(a,y){if(!pc(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 ne=a.isSelectionEditable&&a.hasFocus(),ae=z.classList.contains("ML__focused");ae&&!ne?z.classList.remove("ML__focused"):!ae&&ne&&z.classList.add("ML__focused");let ue=jp(a,y);const ke=a.element.querySelector("[part=menu-toggle]");if(ke&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?ke.style.display="none":ke.style.display=""),a.model.atoms.length<=1){const Le=a.options.contentPlaceholder;Le&&(ue+=`<span part=placeholder class="ML__content-placeholder">${rc(Le)}</span>`)}z.innerHTML=window.MathfieldElement.createHTML(ue),Eh(a,y.interactive),a.dirty=!1}function Eh(a,y){const b=a.field;if(!b)return;for(const ke of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))ke.remove();!(y!=null&&y)&&Vc!=="error"&&Vc!=="ready"&&setTimeout(()=>{Vc==="ready"?Eh(a):setTimeout(()=>Eh(a),128)},32);const z=a.model,ne=b.offsetWidth,ae=b.getBoundingClientRect().width;let ue=Math.floor(ae)/ne;if(ue=isNaN(ue)?1:ue,z.selectionIsCollapsed){yh(a,{deferred:!0});let ke=z.at(z.position);for(;ke&&ke.type!=="prompt"&&!(ke.containsCaret&&ke.displayContainsHighlight);)ke=ke.parent;if(ke!=null&&ke.containsCaret&&ke.displayContainsHighlight){const Le=yd(a,Zc(a,ke),ue);if(Le){Le.left/=ue,Le.right/=ue,Le.top/=ue,Le.bottom/=ue;const Ve=document.createElement("div");Ve.classList.add("ML__contains-highlight"),Ve.style.position="absolute",Ve.style.left=`${Le.left+1}px`,Ve.style.top=`${Math.ceil(Le.top)}px`,Ve.style.width=`${Math.ceil(Le.right-Le.left)}px`,Ve.style.height=`${Math.ceil(Le.bottom-Le.top)}px`,b.insertBefore(Ve,b.childNodes[0])}}return}for(const ke of lv(Es(a,{excludeAtomsWithBackground:!0}))){ke.left/=ue,ke.right/=ue,ke.top/=ue,ke.bottom/=ue;const Le=document.createElement("div");Le.classList.add("ML__selection"),Le.style.position="absolute",Le.style.left=`${ke.left}px`,Le.style.top=`${ke.top}px`,Le.style.width=`${Math.ceil(ke.right-ke.left)}px`,Le.style.height=`${Math.ceil(ke.bottom-ke.top-1)}px`,b.insertBefore(Le,b.childNodes[0])}}function lv(a){let y=[];for(const b of a){let z=!1;for(const ne of y)if(b.left===ne.left&&b.right===ne.right&&b.top===ne.top&&b.bottom===ne.bottom){z=!0;break}z||y.push(b)}a=y,y=[];for(const b of a){let z=0;for(const ne of a)if(b.left>=ne.left&&b.right<=ne.right&&b.top>=ne.top&&b.bottom<=ne.bottom&&(z+=1,z>1))break;z===1&&y.push(b)}return y}var Up=3,Cd;function _c(a,y){y=Se({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Cd||(Cd={});for(const b of Object.keys(a))console.assert(!Cd[b],"Selector already defined: ",b),Cd[b]=pe(Se({},y),{fn:a[b]})}function tp(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return tp(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Cd[y]}function Df(a){var y;return(y=tp(a))==null?void 0:y.target}function sv(a,y){var b;if(!y)return!1;let z,ne=[],ae=!1,ue=!1;Pe(y)?(z=y[0],ne=y.slice(1)):z=y,z=z.replace(/-\w/g,Ve=>Ve[1].toUpperCase());const ke=Cd[z],Le=ke==null?void 0:ke.target;if(Le==="model"){if(!a.isSelectionEditable&&(ke!=null&&ke.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(z)&&(z!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(z)),/^complete/.test(z)||vh(a),Cd[z].fn(a.model,...ne),Qf(a),ue=!0,ae=!0}else if(Le==="virtual-keyboard")ue=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,ae=!0;else if(Cd[z]){if(!a.isSelectionEditable&&(ke!=null&&ke.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(z)&&a.flushInlineShortcutBuffer(),ue=Cd[z].fn(a,...ne),ae=!0}else throw new Error(`Unknown command "${z}"`);return Le!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||ke!=null&&ke.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),ke!=null&&ke.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),ue&&Ru(a),ae}function uv(a,y){var b;if(!a)return!1;a.focus(),Km.keypressVibration&&He()&&navigator.vibrate(Up);const z=tp(y);window.MathfieldElement.playSound((b=z==null?void 0:z.audioFeedback)!=null?b:"keypress");const ne=a.executeCommand(y);return a.scrollIntoView(),ne}_c({performWithFeedback:(a,y)=>uv(a,y)});function cv(a){return Qf(a,{atIndex:a.suggestionIndex+1}),!1}function dv(a){return Qf(a,{atIndex:a.suggestionIndex-1}),!1}_c({complete:Af},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),_c({nextSuggestion:cv,previousSuggestion:dv},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Ch="mathlive#virtual-keyboard-message";function np(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Ch}var fv=class S0{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 S0),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(np(y)){if(!_s(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;Df(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(Se({type:Ch,action:y},b),this.targetOrigin)}},Vp={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]"]]}},Sh={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"}]},Yf;function Gp(a,y){var b,z,ne;const ae=Xd.singleton;if(!ae)return;const ue=Bf(a),ke=(z=(b=ae.getKeycap(ue==null?void 0:ue.id))==null?void 0:b.variants)!=null?z:"";if(typeof ke=="string"&&!Qp(ke)||Array.isArray(ke)&&ke.length===0){y==null||y();return}const Le={};let Ve="";for(const Fi of pv(ke)){const eo=Xp(Fi),Ai=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);Le[Ai]=eo;const[pa,ao]=wh(eo);Ve+=`<div id=${Ai} class="item ${ao}">${pa}</div>`}const at=document.createElement("div");at.setAttribute("aria-hidden","true"),at.className="MLK__variant-panel",at.style.height="auto";const Ot=Object.keys(Le).length;let ln=5;Ot===1?ln=1:Ot===2||Ot===4?ln=2:Ot===3||Ot===5||Ot===6?ln=3:Ot>=7&&Ot<14&&(ln=4),at.style.width=`calc(var(--variant-keycap-length) * ${ln} + 12px)`,at.innerHTML=Km.createHTML(Ve),Ed.open({root:(ne=ae==null?void 0:ae.container)==null?void 0:ne.querySelector(".ML__keyboard"),child:at}),Yf=new AbortController;const{signal:Zn}=Yf,nr=a==null?void 0:a.getBoundingClientRect();if(nr){nr.top-at.clientHeight<0&&(at.style.width="auto",Ot<=6?at.style.height="56px":Ot<=12?at.style.height="108px":Ot<=18?at.style.height="205px":at.classList.add("compact"));const Fi=Math.max(0,Math.min(window.innerWidth-at.offsetWidth,(nr.left+nr.right-at.offsetWidth)/2)),eo=nr.top-at.clientHeight+5;at.style.transform=`translate(${Fi}px, ${eo}px)`,at.classList.add("is-visible"),requestAnimationFrame(()=>{at.addEventListener("pointerup",Ai=>{const pa=Bf(Ai.target);!(pa!=null&&pa.id)||!Le[pa.id]||(rp(Le[pa.id]),Xf(),y==null||y(),Ai.preventDefault())},{capture:!0,passive:!1,signal:Zn}),at.addEventListener("pointerenter",Ai=>{const pa=Bf(Ai.target);!(pa!=null&&pa.id)||!Le[pa.id]||pa.classList.add("is-active")},{capture:!0,signal:Zn}),at.addEventListener("pointerleave",Ai=>{const pa=Bf(Ai.target);!(pa!=null&&pa.id)||!Le[pa.id]||pa.classList.remove("is-active")},{capture:!0,signal:Zn}),window.addEventListener("pointercancel",()=>{Xf(),y==null||y()},{signal:Zn}),window.addEventListener("pointerup",()=>{Xf(),y==null||y()},{signal:Zn})})}}function Xf(){Yf==null||Yf.abort(),Yf=null,Ed.state==="open"&&Ed.close()}function hv(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ne))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ne[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Ye))y.push({class:"swatch-button",label:'<span style="background:'+Ye[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function Qp(a){return Sh[a]!==void 0}function pv(a){var y;return typeof a!="string"?a:(Sh[a]||(Sh[a]=(y=hv(a))!=null?y:[]),Sh[a])}function mv(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function vv(a){return Object.keys(a).map(y=>`${y} {${mv(a[y])}}`).join("")}function Jf(a){if(!a)return"";const y=new bl,b=new Ri({mode:"math",type:"root",body:Pt(a,{context:y,args:ne=>ne==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),z=qs(dd(new ha(b.render(y),{classes:"ML__base"}),y));return Ku(z,{classes:"ML__latex"}).toMarkup()}function $f(a){var y;if(Array.isArray(a))return a.map(z=>$f(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(ne=>Xp(ne)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function gv(){var a,y;let z=window.mathVirtualKeyboard.alphabeticLayout;if(z==="auto"){const ke=Vf();ke&&(z=ke.virtualLayout),(!z||z==="auto")&&(z=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[Je.locale.slice(0,2)])!=null?a:"qwerty")}const ne={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},ae=(y=ne[z])!=null?y:ne.qwerty,ue=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 ke of ae){const Le=[];for(const Ve of ke)/[a-z]/.test(Ve)?Le.push({label:Ve,class:"hide-shift",shift:{label:Ve.toUpperCase()},variants:Qp(Ve)?Ve:void 0}):Ve==="~"?z!=="dvorak"?Le.push("[backspace]"):Le.push({label:"[backspace]",width:1}):Ve==="^"?Le.push("[shift]"):Ve===" "&&Le.push("[separator-5]");ue.push(Le)}return ue.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:$f({rows:ue})}}function Yp(a){if(a==="alphabetic")return gv();if(typeof a=="string")return console.assert(Vp[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),Yp(Vp[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 ne=a,{rows:ae}=ne,ue=Xe(ne,["rows"]);y=pe(Se({},ue),{layers:$f({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ne=a,{markup:ae}=ne,ue=Xe(ne,["markup"]);y=pe(Se({},ue),{layers:$f(a.markup)})}else y=Se({},a),"layers"in a?y.layers=$f(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,z=!1;for(const ne of y.layers)if(ne.rows)for(const ae of ne.rows.flat()){kf(ae)&&(b=!0);const ue=ae.command;typeof ue=="string"&&["undo","redo","cut","copy","paste"].includes(ue)&&(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 yv(a,y){var b,z;let ne='<div class="left">';if(a.normalizedLayouts.length>1)for(const[ae,ue]of a.normalizedLayouts.entries()){const ke=ue,Le=[ae===y?"selected":"layer-switch"];ke.tooltip&&Le.push("MLK__tooltip"),ke.labelClass&&Le.push(...ke.labelClass.split(" ")),ne+=`<div class="${Le.join(" ")}"`,ke.tooltip&&(ne+=" data-tooltip='"+((b=Ze(ke.tooltip))!=null?b:ke.tooltip)+"' "),ae!==y&&(ne+=`data-layer="${ke.layers[0].id}"`),ne+=`>${(z=ke.label)!=null?z:"untitled"}</div>`}return ne+="</div>",ne}function bv(a,y){let b="";if(a.editToolbar==="none")return"";const ne=[];y.selectionIsCollapsed?ne.push("undo","redo","pasteFromClipboard"):ne.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const ae={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${Ze("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${Ze("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${Ze("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${Ze("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${Ze("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ne.map(ue=>ae[ue]).join(""),b}function xv(a){for(const y of a)Ev(y)}function Ev(a){const y=Xd.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,ne]=wh(b);a.innerHTML=window.MathfieldElement.createHTML(z)}}function Cv(){vc("virtual-keyboard"),vc("core"),xh()}function Sv(){x("core"),x("virtual-keyboard")}var wv=`<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 Av(a){a.resetKeycapRegistry(),Cv();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(wv+a.normalizedLayouts.map((ue,ke)=>Mv(a,ue,ke)).join(""));const z=document.createElement("div");z.className="MLK__backdrop",z.appendChild(b),y.appendChild(z),y.addEventListener("pointerdown",Bv,{passive:!1});const ne=y.querySelectorAll(".ML__edit-toolbar");if(ne)for(const ue of ne)ue.addEventListener("click",ke=>{var Le,Ve;let at=ke.target,Ot="";for(;at&&!Ot;)Ot=(Le=at==null?void 0:at.getAttribute("data-command"))!=null?Le:"",at=(Ve=at==null?void 0:at.parentElement)!=null?Ve:null;Ot&&a.executeCommand(JSON.parse(Ot))});xv(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const ae=y.querySelectorAll(".MLK__layer");console.assert(ae.length>0,"No virtual keyboards available");for(const ue of ae)ue.addEventListener("pointerdown",ke=>ke.preventDefault());return a.currentLayer=a.latentLayer,y}function Mv(a,y,b){const z=[];if(!("layers"in y))return"";for(const ne of y.layers)z.push(`<div tabindex="-1" class="MLK__layer" id="${ne.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(z.push("<div class='MLK__toolbar' role='toolbar'>"),z.push(yv(a,b)),y.displayEditToolbar&&z.push('<div class="ML__edit-toolbar right"></div>'),z.push("</div>")),z.push(Dv(a,ne)),z.push("</div>");return z.join("")}function Dv(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>${vv(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 ne of z)if(ne){const ae=a.registerKeycap(ne),[ue,ke]=wh(ne);/(^|\s)separator/.test(ke)?b+=`<div class="${ke}"`:b+=`<div tabindex="-1" id="${ae}" class="${ke}"`,ne.tooltip&&(b+=` data-tooltip="${ne.tooltip}"`),b+=`>${ue}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function wh(a,y={shifted:!1}){var b,z,ne,ae,ue,ke,Le;let Ve="",at=(b=a.class)!=null?b:"";if(y.shifted&&kf(a)&&(at+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Ve=Jf(a.shift):typeof a.shift=="object"&&(Ve=a.shift.label?a.shift.label:(z=Jf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?z:""),typeof a.shift=="object"&&(at=(ae=(ne=a.shift.class)!=null?ne:a.class)!=null?ae:"");else{if(Ve=a.label?a.label:(ue=Jf(a.latex||a.insert||"")||a.key)!=null?ue:"",a.shift){let Ot;typeof a.shift=="string"?Ot=Jf(a.shift):a.shift.label?Ot=a.shift.label:Ot=(ke=Jf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?ke:"",Ve+=`<span class="MLK__shift">${Ot}</span>`}a.aside&&(Ve+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(at)&&(at+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(at)||(at+=" MLK__keycap"),!/\bw[0-9]+\b/.test(at)&&a.width&&(at+=(Le={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?Le:""),[Ve,at||"MLK__keycap"]}var sf={"[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 Xp(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!sf[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&sf[a.label]&&(b=pe(Se(Se({},sf[a.label]),a),{label:sf[a.label].label})),"key"in a&&a.key&&sf[a.key]&&(b=pe(Se(Se({},sf[a.key]),a),{key:sf[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=Se(Se({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=Se(Se({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=Se(Se({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=Se(Se({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var qf;function Bv(a){var y;if(a.button!==0)return;const b=Xd.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 ne=Bf(a.target);if(!(ne!=null&&ne.id))return;const ae=b.getKeycap(ne.id);if(!ae)return;console.assert(a.type==="pointerdown");const ue=new AbortController,ke=ue.signal;ne.classList.add("is-pressed"),ne.addEventListener("pointerenter",Ah(ue),{capture:!0,signal:ke}),ne.addEventListener("pointerleave",Ah(ue),{capture:!0,signal:ke}),ne.addEventListener("pointercancel",Ah(ue),{signal:ke}),ne.addEventListener("pointerup",Ah(ue),{signal:ke}),kf(ae)&&(ne.classList.add("is-active"),b.shiftPressCount++),ae.variants&&(qf&&clearTimeout(qf),qf=setTimeout(()=>{ne.classList.contains("is-pressed")&&(ne.classList.remove("is-pressed"),ne.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),Gp(ne,()=>{ue.abort(),ne==null||ne.classList.remove("is-active")}))},300)),a.preventDefault()}function Ah(a){return y=>{const b=Bf(y.target);if(!(b!=null&&b.id))return;const z=Xd.singleton;if(!z)return;const ne=z.getKeycap(b.id);if(ne){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),kf(ne)&&(z.shiftPressCount--,b.classList.toggle("is-active",z.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),kf(ne)&&(z.shiftPressCount--,b.classList.toggle("is-active",z.isShifted));return}if(y.type==="pointerup"){qf&&clearTimeout(qf),kf(ne)?b.classList.toggle("is-active",z.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),z.isShifted&&ne.shift?typeof ne.shift=="string"?z.executeCommand(["insert",ne.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):rp(ne.shift):rp(ne),z.shiftPressCount===1&&!y.shiftKey&&(z.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function rp(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=Xd.singleton)==null||y.executeCommand(b)}function kv(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 Bf(a){if(!a)return;let y=a;for(;y&&!kv(y);)y=y.parentElement;return y!=null?y:void 0}function kf(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Xd=class w0{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(ne=>{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(ne){window.addEventListener("message",this)}document.body.addEventListener("focusin",ne=>{const ae=ne.target;ae!=null&&ae.isConnected&&setTimeout(()=>{const ue=Jp();ue&&!ue.readOnly&&ue.mathVirtualKeyboardPolicy==="auto"&&qe()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ne=>{ne.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Jp()||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 ne of z.layers)if(ne.id===y)return ne}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(ne=>ne==="default");z>=0&&b.splice(z,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ne=>Yp(ne))}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 w0}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 ne=z-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ne}px)`:`${ne}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 ne=this.getKeycap(z.id);if(ne){const[ae,ue]=wh(ne,{shifted:this.isShifted});z.innerHTML=window.MathfieldElement.createHTML(ae),z.className=ue}}}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 ne=this._element.getElementsByClassName("MLK__plate")[0];if(ne&&this.observer.observe(ne),z===window.document.body){const ae=z.style.paddingBottom;this.originalContainerBottomPadding=ae;const ue=ne.offsetHeight-1;z.style.paddingBottom=ae?`calc(${ae} + ${ue}px)`:`${ue}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 ne;return(ne=this._element)==null?void 0:ne.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 ne=this._element.getElementsByClassName("MLK__plate")[0];ne&&this.observer.unobserve(ne),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}),Xf(),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=Av(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Gp(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(np(y)){if(!_s(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:ne}=y,ae=Df(ne);if(window.top!==void 0&&ae!=="virtual-keyboard")return;this.executeCommand(ne);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:Se({type:Ch,action:y},b)}));return}if(z)z.postMessage(Se({type:Ch,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 ne=b.command[1].split("");for(const ae of ne)this.dispatchEvent(new KeyboardEvent("keydown",{key:ae,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:ae,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 ne of z)ne.innerHTML=bv(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=[],ne=Df(y);return Pe(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ne=Df(y)),z=y.slice(1)):b=y,b=b.replace(/-\w/g,ae=>ae[1].toUpperCase()),ne==="virtual-keyboard"?Cd[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 Jp(){var a,y;let b=mh(),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(rt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Xd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>fv.singleton,configurable:!0});function Mh(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const z=a.scriptDepth;if(Pe(z))y.scriptDepth=[z[0],z[1]];else if(typeof z=="number")y.scriptDepth=[z,z];else if(typeof z=="string"){const[ae,ue]=z.split(",").map(ke=>parseInt(ke.trim()));y.scriptDepth=[ae,ue]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ne=a.mathVirtualKeyboardPolicy.toLowerCase();if(ne==="sandboxed"){if(window!==window.top){const ae=Xd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ae})}ne="manual"}y.mathVirtualKeyboardPolicy=ne;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?Je.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=Lt(a.macros);break;default:Pe(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=Se({},a[b]):y[b]=a[b]}return y}function uf(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const z={};for(const ne of b)a[ne]===null?z[ne]=null:Pe(a[ne])?z[ne]=[...a[ne]]:typeof a[ne]=="object"&&!(a[ne]instanceof Element)&&ne!=="computeEngine"?z[ne]=Se({},a[ne]):z[ne]=a[ne];return typeof y=="string"?z[y]:z}function Dh(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:_e,backgroundColorMap:Me,letterShapeStyle:Je.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:Gd,inlineShortcuts:od,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Td,value:""}}function $p(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Jd(a,y){!a||!y||(Pe(a)?a.forEach(b=>Jd(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),Jd(a.body,y),Jd(a.above,y),Jd(a.below,y),Jd(a.subscript,y),Jd(a.superscript,y)))}function ip(a,y,b,z){function ne(ue,ke){for(const Le of ae)if(Le.style[ue]!==ke)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const ae=a.getAtoms(y,{includeChildren:!0});z.operation==="toggle"&&(b.color&&ne("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ne("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ne("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ne("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ne("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ne("fontSize",b.fontSize)&&(b.fontSize=ma),b.variant&&ne("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ne("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const ue of ae)ue.applyStyle(b);return!0}function Iv(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 ne=new cd(y,{mode:b.mode});ne.caret=z,b.parent.addChildAfter(ne,b),a.position+=1}}function Pv(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}Tt(["math","displaymath"],ed),Tt("center",ed),fn("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 ql("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),nn("array","{columns:colspec}",(a,y,b,z)=>new ql(a,ap(y),b,{columns:z[0],mathstyleName:"textstyle"})),nn(["equation","equation*","subequations"],"",(a,y,b)=>new ql(a,ap(y),b,{columns:[{align:"c"}]})),nn(["multline","multline*"],"",ed),nn(["align","align*","aligned","eqnarray"],"",ed),nn("split","",ed),nn(["gather","gathered"],"",ed),nn(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",ed),nn(["smallmatrix","smallmatrix*"],"[columns:colspec]",ed),nn(["cases","dcases","rcases"],"",ed);function Fv(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function ap(a,y=1){return Fv(a)?Array(y).fill([[new Ri({type:"first"}),new Ol]]):a.map(b=>b.length===0?[[new Ri({type:"first"})]]:b.map(z=>z.length===0?[new Ri({type:"first"})]:(z[0].type!=="first"&&z.unshift(new Ri({type:"first"})),z)))}function ed(a,y=[[[]]],b=[],z=[]){switch(y=ap(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new ql(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new ql(a,y,b,{mathstyleName:"textstyle"});case"center":return new ql(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new ql(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new ql(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new ql(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new ql(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:cf(z[0])});case"bmatrix":case"bmatrix*":return new ql(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:cf(z[0])});case"Bmatrix":case"Bmatrix*":return new ql(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:cf(z[0])});case"vmatrix":case"vmatrix*":return new ql(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:cf(z[0])});case"Vmatrix":case"Vmatrix*":return new ql(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:cf(z[0])});case"matrix":case"matrix*":return new ql(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:cf(z==null?void 0:z[0])});case"smallmatrix":case"smallmatrix*":return new ql(a,y,b,{mathstyleName:"scriptstyle",columns:cf(z==null?void 0:z[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new ql(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 ql(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new ql(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ne=0;for(const ke of y)ne=Math.max(ne,ke.length);const ae=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let ue=2;for(;ue<ne;)ae.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),ue+=2;return ae.push({gap:0}),new ql(a,y,b,{arraycolsep:0,columns:ae,minColumns:2})}}return new ql(a,y,b,{mathstyleName:"textstyle"})}function cf(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 Ov(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof ql);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof ql)){const z=a.at(a.position);if(b=z,!b.parent.parent){let ne=a.extractAtoms([a.position,a.lastOffset]),ae=a.extractAtoms([0,a.position]);ae.length===0&&(ae=Ih()),ne.length===0&&(ne=Ih());let ue;return y.endsWith("column")?(ue=ed("split",[[ae,ne]]),a.root=ue,df(ue,0,0)?ff(a,ue,0,0):df(ue,0,1)?ff(a,ue,0,1):a.position=a.offsetOf(z)):(ue=ed("lines",[[ae],[ne]]),a.root=ue,df(ue,0,0)?ff(a,ue,0,0):df(ue,1,0)?ff(a,ue,1,0):a.position=a.offsetOf(z)),[void 0,[0,0]]}if(b.parent instanceof Ps){const ne=b.parent;let ae=a.extractAtoms([a.position,a.offsetOf(ne.lastChild)]),ue=a.extractAtoms([a.offsetOf(ne.firstChild),a.position]);ue.length===0&&(ue=Ih()),ae.length===0&&(ae=Ih());let ke="pmatrix";const Le=ne.leftDelim,Ve=ne.rightDelim;Le==="("&&(Ve===")"||Ve==="?")?ke="pmatrix":(Le==="["||Le==="\\lbrack")&&(Ve==="]"||Ve==="\\rbrack"||Ve==="?")?ke="bmatrix":Le==="\\vert"&&Ve==="\\vert"?ke="vmatrix":Le==="\\Vert"&&Ve==="\\Vert"?ke="Vmatrix":(Le==="{"||Le==="\\lbrace")&&(Ve==="."||Ve==="?")&&(ke="cases");const at=ed(ke,y.endsWith("column")?[[ue,ae]]:[[ue],[ae]]);return ne.parent.addChildBefore(at,ne),ne.parent.removeChild(ne),df(at,0,0)?ff(a,at,0,0):y.endsWith("column")?df(at,0,1)?ff(a,at,0,1):a.position=a.offsetOf(b):df(at,1,0)?ff(a,at,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof ql?[b.parent,b.parentBranch]:[void 0,[0,0]]}function df(a,y,b){const z=a.getCell(y,b);return!z||z.length!==2?!1:z[1].type==="placeholder"}function Nv(a,y,b,z){const ne=y.getCell(b,z);return ne?[a.offsetOf(ne[0]),a.offsetOf(ne[ne.length-1])]:-1}function ff(a,y,b,z){const ne=Nv(a,y,b,z);typeof ne!="number"&&a.setSelection(ne)}function Bh(a,y,b,z,ne){const ae=y.getCell(b,z);ae&&a.setPositionHandlingPlaceholder(a.offsetOf(ae[ne==="start"?0:ae.length-1]))}function kh(a,y){const[b,[z,ne]]=Ov(a,y);if(b)switch(y){case"after row":b.addRowAfter(z),Bh(a,b,z+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ne),Bh(a,b,z,ne+1,"end");break;case"before row":b.addRowBefore(z),Bh(a,b,z,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ne),Bh(a,b,z,ne,"start");break}}function qp(a){return a.contentWillChange({inputType:"insertText"})?(kh(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Lv(a){return a.contentWillChange({inputType:"insertText"})?(kh(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function em(a){return a.contentWillChange({inputType:"insertText"})?(kh(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Tv(a){return a.contentWillChange({inputType:"insertText"})?(kh(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function tm(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 ne=a.at(a.position),ae=ne.type==="array"?ne:a.parentEnvironment;return ae.environmentName=y,ae.leftDelim=b,ae.rightDelim=z,a.contentDidChange({}),!0}function nm(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof ql);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof ql){const z=b.parent,ne=b.parentBranch;let ae;switch(y){case"row":if(z.rowCount>1){z.removeRow(ne[0]);const ue=z.getCell(Math.max(0,ne[0]-1),ne[1]);ae=a.offsetOf(ue[ue.length-1])}break;case"column":if(z.colCount>z.minColumns){z.removeColumn(ne[1]);const ue=z.getCell(ne[0],Math.max(0,ne[1]-1));ae=a.offsetOf(ue[ue.length-1])}break}ae&&a.setPositionHandlingPlaceholder(ae)}}function Rv(a){return a.contentWillChange({inputType:"deleteContent"})?(nm(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function _v(a){return a.contentWillChange({inputType:"deleteContent"})?(nm(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}_c({addRowAfter:qp,addColumnAfter:em,addRowBefore:Lv,addColumnBefore:Tv,removeRow:Rv,removeColumn:_v,setEnvironment:tm},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Ih(){return[new Ol]}var rm=class A0{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>A0.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};rm.maximumDepth=1e3;var zv=rm;function op(a,y,b){if(a.at(y).mode!=="text")return y;const z=b==="backward"?-1:1;let ne;if(ve.test(a.at(y).value)){let ae=y,ue;do ue=a.at(ae).mode==="text"&&ve.test(a.at(ae).value),ae+=z;while(a.at(ae)&&ue);ne=a.at(ae)?ae-2*z:ae-z}else if(/\s/.test(a.at(y).value)){let ae=y;for(;a.at(ae)&&a.at(ae).mode==="text"&&/\s/.test(a.at(ae).value);)ae+=z;if(!a.at(ae))ne=ae-z;else{let ue=!0;do ue=a.at(ae).mode==="text"&&!/\s/.test(a.at(ae).value),ae+=z;while(a.at(ae)&&ue);ne=a.at(ae)?ae-2*z:ae-z}}else{let ae=y;for(;a.at(ae)&&a.at(ae).mode==="text"&&!/\s/.test(a.at(ae).value);)ae+=z;ne=a.at(ae)?ae:ae-z;let ue=!0;for(;a.at(ae)&&ue;)ue=a.at(ae).mode==="text"&&/\s/.test(a.at(ae).value),ue&&(ne=ae),ae+=z;ne=a.at(ae)?ae-2*z:ae-z}return ne-(z>0?0:1)}function If(a,y,b){var z,ne,ae,ue,ke,Le,Ve;const at=a.position;(z=b==null?void 0:b.extend)!=null&&z||a.collapseSelection(y);let Ot=a.at(a.position);if(y==="forward"&&(Ot.type==="subsup"?(Ot=Ot.rightSibling,Ot||(Ot=a.at(a.position+1))):Ot=a.at(a.position+1)),!Ot)return a.announce("plonk"),!1;let ln=a.offsetOf(Ot);if(Ot instanceof Ec)ln=op(a,ln,y);else if(Ot instanceof Pl)if(Ot.isSuggestion)for(console.assert(y==="forward");Ot&&Ot instanceof Pl;)Ot.isSuggestion=!1,ln=a.offsetOf(Ot),Ot=Ot.rightSibling;else if(y==="forward"){if(Ot=Ot.rightSibling,!Ot||!(Ot instanceof Pl))return a.announce("plonk"),!1;for(;Ot&&Ot instanceof Pl&&/[a-zA-Z\*]/.test(Ot.value);)ln=a.offsetOf(Ot),Ot=Ot.rightSibling}else{if(Ot=Ot.leftSibling,!Ot||!(Ot instanceof Pl))return a.announce("plonk"),!1;for(;Ot&&Ot instanceof Pl&&/[a-zA-Z\*]/.test(Ot.value);)ln=a.offsetOf(Ot),Ot=Ot.leftSibling}else if(y==="forward"&&Ot.type==="mopen"){let Zn=0;do Ot.type==="mopen"?Zn+=1:Ot.type==="mclose"&&(Zn-=1),Ot=Ot.rightSibling;while(!Ot.isLastSibling&&Zn!==0);ln=a.offsetOf(Ot.leftSibling)}else if(y==="backward"&&Ot.type==="mclose"){let Zn=0;do Ot.type==="mopen"?Zn+=1:Ot.type==="mclose"&&(Zn-=1),Ot=Ot.leftSibling;while(!Ot.isFirstSibling&&Zn!==0);ln=a.offsetOf(Ot)}else if(y==="backward")if(Ot.type==="first")for(;ln>0&&Ot.type==="first";)ln-=1,Ot=a.at(ln);else{const Zn=Ot.type;Ot.type==="subsup"&&(ln=a.offsetOf(a.at(ln).leftSibling)),ln-=1;let nr=(ne=a.at(ln))==null?void 0:ne.type;for(;ln>=0&&nr===Zn;)((ae=a.at(ln))==null?void 0:ae.type)==="subsup"?ln=a.offsetOf(a.at(ln).leftSibling):ln-=1,nr=a.at(ln).type}else{const{type:Zn}=Ot;let nr=(ue=a.at(ln))==null?void 0:ue.type;const{lastOffset:Fi}=a;for(;ln<=Fi&&(nr===Zn||nr==="subsup");){for(;((ke=a.at(ln).rightSibling)==null?void 0:ke.type)==="subsup";)ln=a.offsetOf(a.at(ln).rightSibling);ln+=1,nr=(Le=a.at(ln))==null?void 0:Le.type}ln-=1}if((Ve=b==null?void 0:b.extend)!=null&&Ve){if(!a.setSelection(a.anchor,ln))return a.announce("plonk"),!1}else{if(ln===a.position)return a.announce("plonk"),!1;a.position=ln}return a.announce("move",at),a.mathfield.stopCoalescingUndo(),!0}function Sd(a,y,b){var z,ne;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[ke,Le]=zp(a);ke!==void 0&&Le!==void 0&&a.deleteAtoms([ke,Le])}if(y==="upward")return Hv(a,b);if(y==="downward")return Zv(a,b);if(b.extend){let ke=Ph(a,a.position,y);ke<0&&(ke=0),ke>a.lastOffset&&(ke=a.lastOffset);const Le=a.setSelection(a.anchor,ke);return a.mathfield.stopCoalescingUndo(),Le}if(a.selectionIsPlaceholder){a.collapseSelection(y);const ke=Sd(a,y);return a.mathfield.stopCoalescingUndo(),ke}let ae=a.position;const ue=ae;if(a.collapseSelection(y)?(ae=a.position,im(a,ae)||(ae=Ph(a,ae,y))):ae=Ph(a,ae,y),ae<0||ae>a.lastOffset){let ke=!0;return a.silenceNotifications||(ke=(ne=(z=a.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ne:!0),ke&&a.announce("plonk"),ke}return a.setPositionHandlingPlaceholder(ae),a.mathfield.stopCoalescingUndo(),a.announce("move",ue),!0}function Ph(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||im(a,y)?y:Ph(a,y,b)}function im(a,y){var b;const z=a.at(y);let ne=z.parent;for(;ne&&!ne.inCaptureSelection;)ne=ne.parent;return!(ne!=null&&ne.inCaptureSelection||(b=z.parent)!=null&&b.skipBoundary&&(!z.isFirstSibling&&z.isLastSibling||z.type==="first")||a.mathfield.hasEditablePrompts&&!z.parentPrompt)}function Kv(a,y,b){let z=1/0,ne=0;for(;ne<y.length;ne++){const ae=qu(a.getHTMLElement(y[ne])).right,ue=Math.abs(b-ae);if(ue<=z)z=ue;else break}return y[ne-1]}function Fh(a,y,b,z,ne){const ae=a.mathfield.hasEditablePrompts,ue=ae?b.filter(Ve=>Ve.type==="prompt"&&!Ve.captureSelection):b,ke=qu(a.mathfield.getHTMLElement(y)).right,Le=a.offsetOf(Kv(a.mathfield,ue,ke))-(ae?1:0);if(z){const[Ve,at]=a.selection.ranges[0];let Ot;Le<(ne==="up"?Ve:at)?Ot={ranges:[[Le,at]],direction:"backward"}:Ot={ranges:[[Ve,Le]],direction:"forward"},a.setSelection(Ot)}else a.setPositionHandlingPlaceholder(Le);a.announce(`move ${ne}`)}function Hv(a,y){var b,z;const ne=(b=y==null?void 0:y.extend)!=null?b:!1;ne||a.collapseSelection("backward");const ae=()=>{var Le,Ve;let at=!0;return a.silenceNotifications||(at=(Ve=(Le=a.mathfield.host)==null?void 0:Le.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Ve:!0),a.announce(at?"plonk":"line"),at},ue=a.at(a.position);let ke=ue;for(;ke&&ke.parentBranch!=="below"&&!(Array.isArray(ke.parentBranch)&&ke.parent instanceof ql);)ke=ke.parent;if(Array.isArray(ke==null?void 0:ke.parentBranch)&&ke.parent instanceof ql){const Le=ke.parent;if(ke.parentBranch[0]<1)return ae();const Ve=ke.parentBranch[0]-1,at=Le.array[Ve][ke.parentBranch[1]];if(!at.some(ln=>ln.type==="prompt"&&!ln.captureSelection)&&a.mathfield.hasEditablePrompts)return ae();Fh(a,ue,at,ne,"up")}else if(ke){const Le=(z=ke.parent.branch("above"))!=null?z:ke.parent.createBranch("above");if(!Le.some(at=>at.type==="prompt"&&at.placeholderId)&&a.mathfield.hasEditablePrompts)return ae();Fh(a,ue,Le,ne,"up")}else return ae();return a.mathfield.stopCoalescingUndo(),!0}function Zv(a,y){var b,z;const ne=(b=y==null?void 0:y.extend)!=null?b:!1;ne||a.collapseSelection("forward");const ae=()=>{var Le,Ve;let at=!0;return a.silenceNotifications||(at=(Ve=(Le=a.mathfield.host)==null?void 0:Le.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Ve:!0),a.announce(at?"plonk":"line"),at},ue=a.at(a.position);let ke=ue;for(;ke&&ke.parentBranch!=="above"&&!(Array.isArray(ke.parentBranch)&&ke.parent instanceof ql);)ke=ke.parent;if(Array.isArray(ke==null?void 0:ke.parentBranch)&&ke.parent instanceof ql){const Le=ke.parent;if(ke.parentBranch[0]+1>Le.array.length-1)return ae();const Ve=ke.parentBranch[0]+1,at=Le.array[Ve][ke.parentBranch[1]];if(!at.some(ln=>ln.type==="prompt"&&!ln.captureSelection)&&a.mathfield.hasEditablePrompts)return ae();Fh(a,ue,at,ne,"down")}else if(ke){const Le=(z=ke.parent.branch("below"))!=null?z:ke.parent.createBranch("below");if(!Le.some(at=>at.type==="prompt")&&a.mathfield.hasEditablePrompts)return ae();Fh(a,ue,Le,ne,"down")}else return ae();return!0}function am(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 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=!1):z=!0,b=b.parent;return z?y:0}function jv(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 om(a){var y;if(a.collapseSelection(),Wv(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 dt({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function lm(a){var y;if(a.collapseSelection(),jv(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 dt({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(Le){const Ve=[],at=[];return[...Le.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((ln,Zn)=>{const nr=z(ln);nr===0?Ve.push(ln):at.push({documentOrder:Zn,tabIndex:nr,node:ln})}),at.sort((ln,Zn)=>ln.tabIndex===Zn.tabIndex?ln.documentOrder-Zn.documentOrder:ln.tabIndex-Zn.tabIndex).map(ln=>ln.node).concat(Ve)}function y(Le){return!(!b(Le)||ne(Le)||z(Le)<0)}function b(Le){return!(Le.disabled||Le.type==="hidden"&&Le.tagName.toUpperCase()==="INPUT"||ke(Le))}function z(Le){var Ve;const at=Number.parseInt((Ve=Le.getAttribute("tabindex"))!=null?Ve:"NaN",10);return Number.isNaN(at)?Le.contentEditable==="true"||(Le.nodeName==="AUDIO"||Le.nodeName==="VIDEO")&&Le.getAttribute("tabindex")===null?0:Le.tabIndex:at}function ne(Le){return Le.tagName.toUpperCase()==="INPUT"&&Le.type==="radio"&&!ue(Le)}function ae(Le,Ve){for(const at of Le)if(at.checked&&at.form===Ve)return at;return null}function ue(Le){var Ve;if(!Le.name)return!0;const Ot=((Ve=Le.form)!=null?Ve:Le.ownerDocument).querySelectorAll('input[type="radio"][name="'+Le.name+'"]'),ln=ae(Ot,Le.form);return!ln||ln===Le}function ke(Le){if(!rt()||Le===document.activeElement||Le.contains(document.activeElement))return!1;if(getComputedStyle(Le).visibility==="hidden")return!0;const Ve=Le.getBoundingClientRect();if(Ve.width===0||Ve.height===0)return!0;for(;Le;){if(getComputedStyle(Le).display==="none")return!0;Le=Le.parentElement}return!1}return rt()?a(document.body):[]}function Bc(a,y,b="forward"){const z=a.position;if(Array.isArray(y)){const ne=a.offsetOf(y[0]),ae=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ne,ae):a.setSelection(ae,ne),a.announce("move",z),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?Bc(a,[y.leftSibling,y]):Bc(a,[y,y.leftSibling])}function fd(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 Oh(a,y,b=!0){var z,ne;const ae=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Sd(a,y);let ue;const ke=a.at(a.anchor).parentPrompt;ke?y==="forward"?ue=a.offsetOf(ke)+1:ue=a.offsetOf(ke.leftSibling):ue=Math.max(a.position+ae,0);const Le=lp(a,ue,y);if(!Le||y==="forward"&&a.offsetOf(Le)<ue||y==="backward"&&a.offsetOf(Le)>ue){if(!b||!((ne=(z=a.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ne))return a.announce("plonk"),!1;const at=Uv();if(!document.activeElement||at.length<=1)return a.announce("plonk"),!1;let Ot=at.indexOf(document.activeElement)+ae;return Ot<0&&(Ot=at.length-1),Ot>=at.length&&(Ot=0),at[Ot].focus(),a.mathfield.stopCoalescingUndo(),!0}return fd(a,Le),!0}function lp(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)}_c({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 ne=b.parentBranch;let ae;if(typeof ne=="string"&&(ae=y[ne]),!ae){const ke=b.subsupPlacement?lm(a):om(a);return a.mathfield.stopCoalescingUndo(),ke}z.branch(ae)||z.createBranch(ae);const ue=a.setSelection(a.getBranchRange(a.offsetOf(z),ae));return a.mathfield.stopCoalescingUndo(),ue},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=>am(a),moveToNextChar:a=>Sd(a,"forward"),moveToPreviousChar:a=>Sd(a,"backward"),moveUp:a=>Sd(a,"upward"),moveDown:a=>Sd(a,"downward"),moveToNextWord:a=>If(a,"forward"),moveToPreviousWord:a=>If(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,ne;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Oh(a,"forward");const ae=a.at(a.position);if(ae.mode==="text"){if(a.selectionIsCollapsed){let ln=ae;for(;ln&&ln.mode==="text";)ln=ln.leftSibling;let Zn=ae;for(;((y=Zn.rightSibling)==null?void 0:y.mode)==="text";)Zn=Zn.rightSibling;if(ln&&Zn)return Bc(a,[ln,Zn])}if(ae.rightSibling.mode==="text"){let ln=ae;for(;ln&&ln.mode==="text";)ln=ln.rightSibling;return ln?(fd(a,(b=ln.leftSibling)!=null?b:ln),a.mathfield.switchMode("math"),!0):fd(a,a.lastOffset)}}const ke=a.at(a.anchor).parentPrompt,Le=ke?a.offsetOf(ke)+1:Math.max(a.position+1,0),Ve=lp(a,Le,"forward");if(Ve)return fd(a,Ve);const at=sm(a,ae,ln=>ln.type==="leftright"||ln.type==="text","forward");if(at){if(at.mode==="text"){let ln=at;for(;ln&&ln.mode==="text";)ln=ln.rightSibling;return Bc(a,[(z=at.leftSibling)!=null?z:at,(ne=ln.leftSibling)!=null?ne:ln])}return Bc(a,at)}const Ot=ae.parent;if(Ot){if(Ot.type==="leftright"||Ot.type==="surd")return Bc(a,Ot);if(ae.parentBranch==="superscript"&&Ot.subscript)return Bc(a,Ot.subscript);if(ae.parentBranch==="above"&&Ot.below)return Bc(a,Ot.below);if(ae.parentBranch==="superscript"||ae.parentBranch==="subscript")return fd(a,Ot);if(ae.parentBranch==="above"||ae.parentBranch==="below")return Bc(a,Ot)}return fd(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Oh(a,"backward");let b=a.at(a.position);const z=b.mode;if(z==="text"){if(a.selectionIsCollapsed){let ke=b;for(;ke&&ke.mode==="text";)ke=ke.leftSibling;let Le=b;for(;((y=Le.rightSibling)==null?void 0:y.mode)==="text";)Le=Le.rightSibling;if(ke&&Le)return Bc(a,[ke,Le])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?fd(a,b):fd(a,0)}const ne=a.at(a.anchor).parentPrompt,ae=ne?a.offsetOf(ne.leftSibling):Math.max(a.position-1,0),ue=lp(a,ae,"backward");if(ue)return fd(a,ue);if(z==="math"){const ke=sm(a,b,Ve=>Ve.type==="leftright"||Ve.type==="text","backward");if(ke){if(ke.mode==="text"){let Ve=ke;for(;Ve&&Ve.mode==="text";)Ve=Ve.leftSibling;return Bc(a,[ke,Ve])}return Bc(a,ke)}const Le=b.parent;if(Le){if(Le.type==="leftright"||Le.type==="surd")return Bc(a,Le);if(b.parentBranch==="subscript"&&Le.superscript)return Bc(a,Le.superscript);if(b.parentBranch==="below"&&Le.above)return Bc(a,Le.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return fd(a,Le);if(b.parentBranch==="above"||b.parentBranch==="below")return Bc(a,Le)}return fd(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:om,moveToSubscript:lm},{target:"model",changeSelection:!0}),_c({moveToNextPlaceholder:a=>Oh(a,"forward"),moveToPreviousPlaceholder:a=>Oh(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function sm(a,y,b,z){if(z==="forward"){let ae=y.rightSibling;for(;ae&&!b(ae);)ae=ae.rightSibling;return ae}let ne=y.leftSibling;for(;ne&&!b(ne);)ne=ne.leftSibling;return ne}function Nh(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let z=a.position,ne=!1,ae="";for(;!ne;){const ue=a.at(z);ne=y===0||ue===void 0||ue.type==="first"||ue.mode!=="math"||!(ue.type&&/mord|mpunct|operator/.test(ue.type)||ue.type==="mop"&&/[a-zA-Z ]+/.test(ue.value))||!ue.hasEmptyBranch("superscript")||!ue.hasEmptyBranch("subscript")||typeof b=="function"&&!b(ue),ne||(ue.mode="text",ue.command=ue.value,ue.verbatimLatex=void 0,ae+=ue.value),z-=1,y-=1}a.contentDidChange({data:ae,inputType:"insertText"})}function hf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let z=a.position,ne=!1;const ae=[];for(;!ne;){const ue=a.at(z);ne=y===0||!ue||ue.type==="first"||ue.isFirstSibling||ue.mode!=="text"||ue.value===" "||typeof b=="function"&&!b(ue),ne||(ae.push(Ri.serialize([ue],{defaultMode:"math"})),ue.mode="math"),z-=1,y-=1}sp(a),a.contentDidChange({data:zl(ae),inputType:"insertText"})}function sp(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 ne=a.at(b);z=!(ne&&(ne.mode==="text"||ne.mode==="math"&&ne.type&&/mord|mpunct/.test(ne.type))),z||(y=ne.value+y),b-=1}return y}function Gv(a,y,b){const{model:z}=a;if(z.mode==="latex"||!z.at(z.position).isLastSibling||!b||!ph(b))return!1;const ne=wf(b);if(!z.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ne));const ae=Vv(z)+ne;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ne))return!0;if(/[\^_]/.test(ne))return/(^|\s)[a-zA-Z][^_]$/.test(ae)&&hf(z,1),!0;const ue={")":"(","}":"{","]":"["}[ne],{parent:ke}=z.at(z.position);if(ue&&ke instanceof Ps&&ke.leftDelim===ue)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(ae))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ne))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(ae))return hf(z,1),!1;if(/\D\.[^\d\s]$/.test(ae)){hf(z,1);const Le=z.at(z.position);return Le.value="\u22C5",Le.style.variant="normal",Le.command="\\cdot",Le.verbatimLatex=void 0,z.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(ae)||/\.\d$/.test(ae)||/\([\d+\-.]$/.test(ae))return hf(z,1),!0;if(/\([a-z][,;]$/.test(ae))return hf(z,2),!0;if(/[\d+\-=><*|]$/.test(ne))return sp(z),!0}else{if(y==="[Space]")return Nh(z,void 0,ue=>/[a-z][:,;.]$/.test(ue.value)),!0;if(/[a-zA-Z]{3,}$/.test(ae)&&!/(dxd|abc|xyz|uvw)$/.test(ae))return Nh(z,void 0,ue=>/[a-zA-Z]/.test(ue.value)),!0;if(/(^|\W)(if)$/i.test(ae))return Nh(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(ae)&&!/(αβγ)$/.test(ae))return Nh(z,void 0,ue=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(ue.value)),!0;if(ne==="?"||ne==="."&&!/[\d-+]\.$/.test(ae))return!0}return!1}function Qv(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=um(),z=a.element.getBoundingClientRect();b.style.left=`${z.left}px`,b.style.top=`${z.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(Xh(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 Yv(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=um();y.innerHTML=""}else{const y=gh("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function um(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(vc("keystroke-caption"),vc("core"),gh("mathlive-keystroke-caption-panel"))}function Xv(){document.getElementById("mathlive-keystroke-caption-panel")&&($h("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function cm(a,y){var b,z,ne;const{model:ae}=a,ue=Rp(y);if(y.isTrusted){z0(y);const Zn=Vf();a.keyboardLayout!==Zn.id&&(a.keyboardLayout=Zn.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Qv(a,ue),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let ke,Le="",Ve;const at=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(ae.mode==="math")if(ue==="[Backspace]")at.pop();else if(!ph(y))a.flushInlineShortcutBuffer();else{const Zn=wf(y),nr=[...(z=(b=at[at.length-1])==null?void 0:b.keystrokes)!=null?z:[],Zn];at.push({state:ae.getState(),keystrokes:nr,leftSiblings:Jv(a)});let Fi=0,eo="";for(;!ke&&Fi<nr.length;)Ve=at.length-(nr.length-Fi),eo=nr.slice(Fi).join(""),ke=md(at[Ve].leftSiblings,eo,a.options.inlineShortcuts),!ke&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(eo)&&(ke=a.options.onInlineShortcut(a,eo)),Fi+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(ke?a.switchMode("math"):Gv(a,ue,y)&&(a.switchMode({math:"text",text:"math"}[ae.mode]),Le=""))}if(!ke){if(Le||(Le=V0(a.keybindings,ae.mode,y)),!Le&&(ue==="[Enter]"||ue==="[Return]")){let Zn=!1;return ae.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(Zn=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Zn||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),ae.contentDidChange({inputType:"insertLineBreak"})),Zn}if((!Le||ue==="[Space]")&&ae.mode==="math"){if(ue==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Gl.insert(ae,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),Le="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const Zn=ae.at(ae.position+1),nr=ae.at(ae.position-1);if((Zn==null?void 0:Zn.mode)==="text"||(nr==null?void 0:nr.mode)==="text")return Gl.insert(ae," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ne=ae.at(ae.position))!=null&&ne.isDigit()&&window.MathfieldElement.decimalSeparator===","&&wf(y)===","&&(Le="insertDecimalSeparator")}}if(!ke&&!Le){if(ae.mathfield.smartFence){if(cp(ae,wf(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:Zn}=ae.at(ae.position);if(Zn instanceof Ps&&Zn.rightDelim==="?"&&ae.at(ae.position).isLastSibling&&/^[)}\]|]$/.test(ue))return a.snapshot(),Zn.isDirty=!0,Zn.rightDelim=ue,ae.position+=1,ae.selectionDidChange(),ae.contentDidChange({data:wf(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!ae.selectionIsCollapsed){const nr=wf(y);if(nr==="("||nr==="{"||nr==="["){const Fi={"(":"(","{":"\\lbrace","[":"\\lbrack"}[nr],eo={"(":")","{":"\\rbrace","[":"\\rbrack"}[nr],[Ai,pa]=Iu(ae.selection);return a.snapshot(),ae.position=pa,Gl.insert(ae,eo,{format:"latex"}),ae.position=Ai,Gl.insert(ae,Fi,{format:"latex"}),ae.setSelection(Ai+1,pa+1),ae.contentDidChange({data:nr,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Ot=ae.at(Math.max(ae.position,ae.anchor)),{parent:ln}=Ot;if(Le==="moveAfterParent"&&(ln==null?void 0:ln.type)==="leftright"&&Ot.isLastSibling&&a.options.smartFence&&cp(ae,".",a.defaultStyle)&&(Le="",Ru(a)),a.keyboardDelegate.cancelComposition(),Le)a.executeCommand(Le);else if(ke){const Zn=a.effectiveStyle;ae.setState(at[Ve].state);const nr=at[at.length-1].keystrokes;for(const Fi of nr)Gl.insert(ae,Fi,{silenceNotifications:!0,style:Zn});a.snapshot("insert-shortcut"),ae.setState(at[Ve].state),ae.deferNotifications({content:!0,selection:!0,data:ke,type:"insertText"},()=>(Gl.insert(ae,ke,{format:"latex",style:Zn}),sp(a.model),ke.endsWith(" ")&&(a.switchMode("text"),Gl.insert(ae," ",{style:Zn,mode:"text"})),a.snapshot(),ae.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,ae.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function up(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 ne=du(y);const ae=window.mathVirtualKeyboard;if(ae!=null&&ae.isShifted&&(ne=typeof ne=="string"?ne.toUpperCase():ne.map(Le=>Le.toUpperCase())),b.simulateKeystroke){let Le=!0;for(const Ve of ne)cm(a,new KeyboardEvent("keypress",{key:Ve}))&&(Le=!1);if(Le)return}const ue=z.at(z.position),ke=Se(Se({},ue.computedStyle),a.defaultStyle);if(z.selectionIsCollapsed||(z.deleteAtoms(Iu(z.selection)),a.snapshot("delete")),z.mode==="latex")z.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{vh(a);for(const Le of ne)Gl.insert(z,Le);a.snapshot("insert-latex"),Qf(a)});else if(z.mode==="text"){for(const Le of ne)Gl.insert(z,Le,{style:ke});a.snapshot("insert-text")}else if(z.mode==="math")for(const Le of ne)$v(a,Le,ke,ue);a.dirty=!0,a.scrollIntoView()}function Jv(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 $v(a,y,b,z){const ne=a.model;let ae={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(ae=["insert",a.options.mathModeSpace]),ae){a.executeCommand(ae);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){qv(ne),Gl.insert(ne,y,{style:b}),a.snapshot(),am(ne),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const ue=a.adoptStyle==="left"?z:z.parent?z.rightSibling:null;(ue==null?void 0:ue.type)==="mord"&&/[a-zA-Z0-9]/.test(ue.value)&&(b=Se({},b),ue.style.variant&&(b.variant=ue.style.variant),ue.style.variantStyle&&(b.variantStyle=ue.style.variantStyle))}Gl.insert(ne,y,{style:b}),a.snapshot(`insert-${ne.at(ne.position).type}`)}function qv(a){a.selectionIsCollapsed||(a.deleteAtoms(Iu(a.selection)),a.mathfield.snapshot("delete"))}function cp(a,y,b){if(!y||a.mode!=="math")return!1;const z=a.at(a.position),{parent:ne}=z,ae={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!ae)return!1;const ue=re[ae],ke=ie[ae];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[Le,Ve]=Iu(a.selection),at=a.extractAtoms([Le,Ve]),Ot=ne.addChildrenAfter([new Ps("left...right",at,{leftDelim:ae,rightDelim:ke})],a.at(Le));return a.setSelection(a.offsetOf(Ot.firstChild),a.offsetOf(Ot.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ae,inputType:"insertText"}),!0}if(ae==="|"){const Le=ne instanceof Ps?ne.leftDelim+ne.rightDelim:"";if(Le==="\\lbrace\\rbrace"||Le==="\\{\\}"||Le==="\\lbrace?")return a.mathfield.snapshot(),Gl.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ae,inputType:"insertText"}),!0}if(ke){if(ne instanceof Ps&&ne.firstChild===z&&(ne.leftDelim==="?"||ne.leftDelim==="."))return ne.leftDelim=ae,ne.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ne instanceof Ps)){let Ot=z;for(;Ot&&!(Ot.type==="mclose"&&Ot.value===ke);)Ot=Ot.rightSibling;if(Ot){a.mathfield.snapshot();const ln=a.extractAtoms([a.offsetOf(z),a.offsetOf(Ot)]);return ln.pop(),ne.addChildrenAfter([new Ps("left...right",ln,{leftDelim:ae,rightDelim:ke})],z),a.position=a.offsetOf(ne.firstChild)+1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const Le=a.offsetOf(z.lastSibling);let Ve;for(Ve=a.position;Ve<=Le;Ve++){const Ot=a.at(Ve);if(Ot instanceof Ps&&(Ot.leftDelim==="?"||Ot.leftDelim===".")&&dm(ae,Ot.rightDelim))break}const at=a.at(Ve);if(Ve<=Le&&at instanceof Ps){at.leftDelim=ae,a.mathfield.snapshot();let Ot=a.extractAtoms([a.position,Ve-1]);return Ot=Ot.filter(ln=>ln.type!=="first"),at.addChildren(Ot,at.parentBranch),a.position+=1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ne instanceof Ps&&(ne.leftDelim==="?"||ne.leftDelim===".")&&dm(ae,ne.rightDelim)){ne.isDirty=!0,ne.leftDelim=ae,a.mathfield.snapshot();const Ot=a.extractAtoms([a.offsetOf(z.firstSibling),a.position]);for(const ln of Ot)ne.parent.addChildBefore(ln,ne);return a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ne instanceof Ps&&ne.leftDelim==="|")){if(a.mathfield.snapshot(),Gl.insert(a,`\\left${ae}\\right?`,{format:"latex",style:b}),z.lastSibling.type!=="first"){const Ot=a.offsetOf(z.lastSibling),ln=a.extractAtoms([a.position,Ot]);a.at(a.position).body=ln,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(ue){let Le=z;for(;Le;){if(Le.type==="mopen"&&Le.value===ue){a.mathfield.snapshot();const Zn=Le.leftSibling,nr=a.extractAtoms([a.offsetOf(Le.leftSibling),a.offsetOf(z)]);nr.shift();const Fi=new Ps("left...right",nr,{leftDelim:ue,rightDelim:ae});return ne.addChildrenAfter([Fi],Zn),a.position=a.offsetOf(Fi),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}Le=Le.leftSibling}if(ne instanceof Ps&&z.isLastSibling&&dp(ne.leftDelim,ae))return a.mathfield.snapshot(),ne.isDirty=!0,ne.rightDelim=ae,a.position+=1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Ve=a.offsetOf(z.firstSibling);let at;for(at=a.position;at>=Ve;at--){const Zn=a.at(at);if(Zn instanceof Ps&&(Zn.rightDelim==="?"||Zn.rightDelim===".")&&dp(Zn.leftDelim,ae))break}const Ot=a.at(at);if(at>=Ve&&Ot instanceof Ps)return a.mathfield.snapshot(),Ot.rightDelim=ae,Ot.addChildren(a.extractAtoms([at,a.position]),Ot.parentBranch),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ne instanceof Ps&&(ne.rightDelim==="?"||ne.rightDelim===".")&&dp(ne.leftDelim,ae))return a.mathfield.snapshot(),ne.isDirty=!0,ne.rightDelim=ae,ne.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(z.lastSibling)]),ne.parentBranch),a.position=a.offsetOf(ne),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const ln=ne.parent;return ln instanceof Ps&&(ln.rightDelim==="?"||ln.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(ln),cp(a,ae,b)):!1}return!1}function dp(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ie[a]===y:!0}function dm(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):re[y]===a:!0}_c({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:Yv,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)=>(up(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 ne="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ae=0;for(;z.includes(ne)&&ae<100;){if(ae===99)return console.error("could not find a unique ID after 100 tries"),!1;ne="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ae++}return a.insert(`\\placeholder[${y!=null?y:ne}]{}`,b),!0}}),_c({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"}),_c({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})&&(Qf(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ru(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function eg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=fp(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=Se(Se({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{z.selection.ranges.forEach(ne=>ip(z,ne,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}_c({applyStyle:eg},{target:"mathfield",canUndo:!0,changeContent:!0});function fp(a,y){var b,z,ne,ae,ue,ke,Le,Ve,at,Ot;const ln={};if(typeof y.color=="string"){const nr=(z=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?z:"none";nr!==y.color&&(ln.verbatimColor=(ne=y.verbatimColor)!=null?ne:y.color),ln.color=nr}if(typeof y.backgroundColor=="string"){const nr=(ue=a.backgroundColorMap((ae=y.backgroundColor)!=null?ae:y.verbatimBackgroundColor))!=null?ue:"none";nr!==y.backgroundColor&&(ln.verbatimBackgroundColor=(ke=y.verbatimBackgroundColor)!=null?ke:y.backgroundColor),ln.backgroundColor=nr}typeof y.fontFamily=="string"&&(ln.fontFamily=y.fontFamily),typeof y.series=="string"&&(ln.fontSeries=y.series),typeof y.fontSeries=="string"&&(ln.fontSeries=y.fontSeries.toLowerCase()),ln.fontSeries&&(ln.fontSeries=(Le={bold:"b",medium:"m",normal:"m"}[ln.fontSeries])!=null?Le:ln.fontSeries),typeof y.shape=="string"&&(ln.fontShape=y.shape),typeof y.fontShape=="string"&&(ln.fontShape=y.fontShape.toLowerCase()),ln.fontShape&&(ln.fontShape=(Ve={italic:"it",up:"n",upright:"n",normal:"n"}[ln.fontShape])!=null?Ve:ln.fontShape),y.variant&&(ln.variant=y.variant.toLowerCase()),y.variantStyle&&(ln.variantStyle=y.variantStyle.toLowerCase());const Zn=(at=y.size)!=null?at:y.fontSize;return typeof Zn=="number"?ln.fontSize=Math.max(1,Math.min(10,Zn)):typeof Zn=="string"&&(ln.fontSize=(Ot={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Zn.toLowerCase()])!=null?Ot:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Zn]),ln}function hp(a){let[y,b]=Iu(a.selection);if(y=fm(a,y,"backward"),b=fm(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 fm(a,y,b){var z,ne,ae;let ue=a.at(y);if(!ue)return y;const ke=b==="forward"?1:-1;if(ue.mode==="text"){for(;ue&&!(ue.mode!=="text"||!ve.test(ue.value));)y+=ke,ue=a.at(y);return b==="backward"?y-1:y}if(ue.mode==="latex"){if(/[a-zA-Z\*]/.test(ue.value))if(b==="backward")for(;ue&&ue.mode==="latex"&&ue.value!=="\\"&&/[a-zA-Z]/.test(ue.value);)y+=ke,ue=a.at(y);else for(;ue&&ue.mode==="latex"&&/[a-zA-Z\*]/.test(ue.value);)y+=ke,ue=a.at(y);else if(ue.value==="{"){if(b==="forward"){for(;ue&&ue.mode==="latex"&&ue.value!=="}";)y+=ke,ue=a.at(y);return y}return y-1}else if(ue.value==="}"){if(b==="backward"){for(;ue&&ue.mode==="latex"&&ue.value!=="{";)y+=ke,ue=a.at(y);return y-1}return y}return y-1}if(ue.mode==="math"){if(ue.isDigit()){for(;(z=a.at(y+ke))!=null&&z.isDigit();)y+=ke;return b==="backward"?y-1:y}if(ue.style.variant||ue.style.variantStyle){let Le=(ne=a.at(y))==null?void 0:ne.style;for(;Le&&Le.variant===ue.style.variant&&Le.variantStyle===ue.style.variantStyle;)Le=(ae=a.at(y+ke))==null?void 0:ae.style,y+=ke;return b==="backward"?y-1:y}return y}return y}_c({selectGroup:a=>{const y=hp(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Sd(a,"forward",{extend:!0}),extendSelectionBackward:a=>Sd(a,"backward",{extend:!0}),extendToNextWord:a=>If(a,"forward",{extend:!0}),extendToPreviousWord:a=>If(a,"backward",{extend:!0}),extendSelectionUpward:a=>Sd(a,"upward",{extend:!0}),extendSelectionDownward:a=>Sd(a,"downward",{extend:!0}),extendToNextBoundary:a=>If(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>If(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 pf=null,eh=0,Lh=class nd{static start(y,b,z,ne){var ae;nd.element=y,(ae=nd.controller)==null||ae.abort(),nd.controller=new AbortController;const ue={signal:nd.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",z,ue),y.addEventListener("pointerup",ne,ue),y.addEventListener("pointercancel",ne,ue),pp(b)&&(nd.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",z,ue),window.addEventListener("blur",ne,ue),window.addEventListener("mouseup",ne,ue))}static stop(){var y;(y=nd.controller)==null||y.abort(),nd.controller=void 0,typeof nd.pointerId=="number"&&(nd.element.releasePointerCapture(nd.pointerId),nd.pointerId=void 0)}};function pp(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function hm(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const z=a;let ne,ae=!1,ue=!1,ke="none",Le=!1,Ve=!1;const at=y.clientX,Ot=y.clientY,ln=Date.now(),Zn=z.field,nr=setInterval(()=>{Le?Zn.scroll({top:0,left:Zn.scrollLeft-16}):Ve&&Zn.scroll({top:0,left:Zn.scrollLeft+16})},32);function Fi(){Lh.stop(),ae=!1,clearInterval(nr),a.element.classList.remove("tracking"),y&&y.preventDefault()}function eo(pa){if(!z.hasFocus()){Fi();return}const ao=pa.clientX,Pa=pa.clientY,ul=pp(pa)&&pa.pointerType==="touch"?20:5;if(Date.now()<ln+500&&Math.abs(at-ao)<ul&&Math.abs(Ot-Pa)<ul){pa.preventDefault(),pa.stopPropagation();return}const Nl=Zn.getBoundingClientRect();Ve=ao>Nl.right,Le=ao<Nl.left;let El=ne;pp(pa)&&(pa.isPrimary||(El=th(z,pa.clientX,pa.clientY,{bias:0})));const Ms=th(z,ao,Pa,{bias:ao<=at?ao===at?0:-1:1});El>=0&&Ms>=0&&(z.model.extendSelectionTo(El,Ms),Ru(a)),ue&&hp(z.model)}pf&&Math.abs(pf.x-at)<5&&Math.abs(pf.y-Ot)<5&&Date.now()<pf.time+500?(eh+=1,pf.time=ln):(pf={x:at,y:Ot,time:ln},eh=1);const Ai=Zn.getBoundingClientRect();if(at>=Ai.left&&at<=Ai.right&&Ot>=Ai.top&&Ot<=Ai.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ne=th(a,at,Ot,{bias:0}),ne>=0){if(a.element.classList.add("tracking"),y.shiftKey){const pa=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ne),Kp(a.model)||pa?ke="all":ke="selection"}else a.model.at(ne).type==="placeholder"?(a.model.setSelection(ne-1,ne),ke="selection"):((b=a.model.at(ne).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ne,ne+1),ke="selection"):(a.model.position=ne,Kp(a.model)?ke="all":ke="selection");a.defaultStyle={},y.detail===3||eh>2?(Fi(),(y.detail===3||eh===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},ke="all")):ae||(ae=!0,Lh.start(Zn,y,eo,Fi),(y.detail===2||eh===2)&&(ue=!0,hp(a.model),ke="all"))}a.hasFocus()||(ke="none",a.focus({preventScroll:!0}))}else pf=null;a.stopCoalescingUndo(),ke!=="none"&&(a.model.selectionIsCollapsed&&(ke="all"),Ru(a)),y.preventDefault()}function tg(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,ne=y-(b.top+b.bottom)/2;return z*z+ne*ne}function pm(a,y,b,z,ne){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const ae=Zc(a,b);if(!ae)return[1/0,null];let ue=[1/0,null];if(b.hasChildren&&!b.captureSelection&&z>=ae.left&&z<=ae.right)for(const ke of b.children){const Le=pm(a,y,ke,z,ne);Le[0]<=ue[0]&&(ue=Le)}return ue[1]||(ue=[tg(z,ne,ae),b]),y.set(b.id,ue),ue}function ng(a,y,b){const[,z]=pm(a,new Map,a.model.root,y,b);return z}function th(a,y,b,z){var ne;const ae=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!ae)return 0;if(y>ae.right||b>ae.bottom+8)return a.model.lastOffset;if(y<ae.left||b<ae.top-8)return 0;z=z!=null?z:{},z.bias=(ne=z.bias)!=null?ne:0;let ue=ng(a,y,b);const ke=[];let Le=ue;for(;Le;)ke.unshift(Le),Le=Le.parent;for(const at of ke)if(at.captureSelection){ue=at;break}let Ve=a.model.offsetOf(ue);if(Ve<0)return-1;if(ue.leftSibling)if(z.bias===0&&ue.type!=="placeholder"){const at=Zc(a,ue);at&&y<(at.left+at.right)/2&&(Ve=a.model.offsetOf(ue.leftSibling))}else z.bias<0&&(Ve=a.model.offsetOf(ue.leftSibling));return Ve}var rg=class extends Gl{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",ne=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ne)try{const ae=JSON.parse(ne);if(ae&&Array.isArray(ae)){a.snapshot();const ue=Dc(ae),{model:ke}=a;ke.selectionIsCollapsed||ke.deleteAtoms(Iu(ke.selection));const Le=ke.at(ke.position);if(Le.parent instanceof ql){console.assert(Le.parentBranch!==void 0);const Ve=[];let at=[];ue[0].type==="first"&&ue.shift(),ue[ue.length-1].type==="first"&&ue.pop();for(const nr of ue)nr.type==="first"&&at.length>0?(Ve.push(at),at=[nr]):at.push(nr);at.length>0&&Ve.push(at);let Ot=Number(Le.parentBranch[0]),ln=Number(Le.parentBranch[1]);const Zn=Le.parent.maxColumns;for(;Le.parent.colCount-ln<Ve.length&&Le.parent.colCount<Zn;)Le.parent.addColumn();Le.parent.addChildrenAfter(Ve[0],Le);for(let nr=1;nr<Ve.length;nr++)ln++,ln>=Zn&&(ln=0,Le.parent.addRowAfter(Ot),Ot++),Le.parent.setCell(Ot,ln,Ve[nr])}else Le.parent.addChildrenAfter(ue.filter(Ve=>Ve.type!=="first"),Le);return ke.position=ke.offsetOf(ue[ue.length-1]),ke.contentDidChange({inputType:"insertFromPaste"}),Ru(a),!0}}catch(ae){}if(ne=typeof y!="string"?y.getData("application/json"):"",ne&&window.MathfieldElement.computeEngine)try{const ae=JSON.parse(ne);if(typeof ae=="object"&&"latex"in ae&&ae.latex&&(b=ae.latex),!b){const ue=window.MathfieldElement.computeEngine.box(ae);ue&&!ue.has("Error")&&(b=ue.latex)}b||(z="latex")}catch(ae){}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 ae;return[ae,b]=zc(b),z==="auto"&&ae&&(z="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:z})&&(a.startRecording(),a.snapshot("paste"),Ru(a)),a.startRecording(),!0}return!1}insert(a,y,b){var z,ne;const ae=typeof y=="string"?y:(ne=(z=window.MathfieldElement.computeEngine)==null?void 0:z.box(y).latex)!=null?ne:"";if(!b.silenceNotifications&&!a.contentWillChange({data:ae,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:ue}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ke=a.silenceNotifications;a.silenceNotifications=!0;const Le={"?":"\\placeholder{}","@":"\\placeholder{}"};Le[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Iu(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 Ve=-1;Le[0]?Le["@"]=Le[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Ve=ag(a),Ve>=0&&(Le["@"]=a.getValue(Ve,a.position,"latex"))),Le[0]||(Le[0]=Le["?"]);let at=!1;const Ot=ao=>(at=!0,Le[ao]);let[ln,Zn]=mm(a,y,Ot,b);if(!Zn)return!1;const nr=Zn.length===1&&Zn[0].type==="genfrac";nr&&Ve>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(Le["@"]=Le["?"],at=!1,[ln,Zn]=mm(a,y,Ot,b)):Ve>=0&&a.deleteAtoms([Ve,a.position]);const{parent:Fi}=a.at(a.position),eo=Fi.hasEmptyBranch("body");if(nr&&ln!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Fi instanceof Ps&&Fi.leftDelim==="("&&eo){const ao=Fi.parent,Pa=Fi.parentBranch;ao.removeChild(Fi),ao.setChildren(Zn,Pa)}const Ai=a.at(a.position);Ai.parent.addChildrenAfter(Zn,Ai),ln==="latex"&&typeof y=="string"&&(Fi==null?void 0:Fi.type)==="root"&&eo&&!at&&(Fi.verbatimLatex=y),a.silenceNotifications=ke;const pa=Zn[Zn.length-1];if(b.selectionMode==="placeholder"){const ao=Zn.flatMap(Pa=>[Pa,...Pa.children]).find(Pa=>Pa.type==="placeholder");if(ao){const Pa=a.offsetOf(ao);a.setSelection(Pa-1,Pa),a.announce("move")}else pa&&(a.position=a.offsetOf(pa))}else b.selectionMode==="before"||(b.selectionMode==="after"?pa&&(a.position=a.offsetOf(pa)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(pa)));return a.contentDidChange({data:ae,inputType:"insertText"}),a.silenceNotifications=ue,!0}};function mm(a,y,b,z){var ne;let ae,ue=[];if(typeof y!="string"||z.format==="math-json"){const ke=window.MathfieldElement.computeEngine;if(!ke)return["math-json",[]];[ae,y]=["latex",ke.box(y).latex],ue=Pt(y,{context:a.mathfield.context})}else typeof y=="string"&&z.format==="ascii-math"?([ae,y]=Cc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),ue=Pt(y,{context:a.mathfield.context}),ae!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Th(ue)):(z.format==="auto"||(ne=z.format)!=null&&ne.startsWith("latex"))&&(z.format==="auto"&&([ae,y]=Cc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),z.format==="latex"&&([,y]=zc(y)),ue=Pt(y,{context:a.mathfield.context,args:b}),z.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Th(ue));return Jd(ue,z.style),[ae!=null?ae:"latex",ue]}function ig(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Ps&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Th(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Ps&&b.leftDelim==="("){let z=0,ne=0,ae=0;for(let ue=0;b.body[ue];ue++)b.body[ue].type==="genfrac"&&(z++,ne=ue),ae++;ae===0&&z===1&&(a[y]=b.body[ne])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Th(y.branch(b));const z=ig(y.branch(b));z&&y.setChildren(z,b)}if(y instanceof ql)for(const b of y.cells)Th(b)}}}function ag(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 ne=re[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ne);)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||vm(y));)y=y.leftSibling;else{const ne=[];for(;!y.isFirstSibling&&(vm(y)||ne.length>0);)y.type==="mclose"&&ne.unshift(y.value),y.type==="mopen"&&ne.length>0&&y.value===re[ne[0]]&&ne.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function vm(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new rg;var og=class extends Gl{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"),Ru(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 ne=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Iu(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 ae=lg(y,a.mathfield.context);if(Jd(ae,b.style),!ae)return!1;const ue=a.at(a.position),ke=ue.parent.addChildrenAfter(ae,ue);return a.silenceNotifications=ne,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(ke)):ke&&(a.position=a.offsetOf(ke))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=z,!0}};function lg(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 "),Pt(a,{context:y,parseMode:"text"})}new og;function wd(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var gu=4,Pc=20,Ju=2*(Pc+gu),Rh=(a,y)=>`
|
|
|
<line x1="${a+Pc}" y1="${y+Pc}"
|
|
|
x2="${a>y?a+Pc:7*Pc+10*gu}"
|
|
|
y2="${a<y?y+Pc:7*Pc+10*gu}"/>
|
|
|
<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>`,gm=(a,y)=>`
|
|
|
<line x1="${a+Pc}" y1="${y+Pc}"
|
|
|
x2="${a>y?a+Pc:7*Pc+10*gu}"
|
|
|
y2="${a<y?y+Pc:7*Pc+10*gu}"/>
|
|
|
<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>`,_h=(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*Pc+10*gu+5} ${8*Pc+10*gu+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${Ju+gu}"
|
|
|
height="${3*Ju}"
|
|
|
width="${Ju}"
|
|
|
rx="${Ju/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${Ju+gu}"
|
|
|
y="0"
|
|
|
height="${Ju}"
|
|
|
width="${3*Ju}"
|
|
|
rx="${Ju/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${_h(2*(gu+Ju),2*gu+3*Ju,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${_h(2*(gu+Ju),2*gu+Ju,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${_h(2*gu+3*Ju,2*(gu+Ju),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${_h(2*gu+Ju,2*(gu+Ju),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Rh(2*gu+Ju,gu)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${gm(2*gu+2*Ju,gu)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Rh(2*gu+3*Ju,gu)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Rh(gu,2*gu+Ju)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${gm(gu,2*gu+2*Ju)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Rh(gu,2*gu+3*Ju)}
|
|
|
</g>
|
|
|
</svg>`,ug=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>`,ym=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>`,dg=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>`,fg=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>`,hg=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>`,pg=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>`,mg=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>`,mp={matrix:ug,pmatrix:cg,bmatrix:dg,Bmatrix:ym,vmatrix:fg,Vmatrix:hg},vp={cases:pg,rcases:mg,Bmatrix:ym};function vg(a){var y,b;const z=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!z)return;let ne=0;z.forEach(nr=>{(!ne||nr.length>ne)&&(ne=nr.length)});let ae=document.getElementById("mathlive-environment-popover");ae||(ae=gh("mathlive-environment-popover"),vc("environment-popover"),vc("core"),ae.setAttribute("aria-hidden","true"));let ue;const ke=ae.querySelector(".MLEP__environment-controls");ke?ue=ke:(ue=document.createElement("div"),ae.innerHTML="",ae.appendChild(ue)),ue.className="MLEP__environment-controls",ue.style.display="flex",ue.style.width="100%",ue.style.height="100%",ue.style.boxSizing="border-box",ue.innerHTML=sg;let Le=[],Ve="";const at=a.model.parentEnvironment.environmentName;if(sc(at)){const nr=yg(at);Ve=mp[nr]("active");const Fi=mp,{[nr]:eo}=Fi,Ai=Xe(Fi,[De(nr)]);Le=Object.values(Ai).map(pa=>pa("inactive"))}else if(uc(at)){const nr=bg(at);Ve=vp[nr]("active");const Fi=vp,{[nr]:eo}=Fi,Ai=Xe(Fi,[De(nr)]);Le=Object.values(Ai).map(pa=>pa("inactive"))}else Tu(at)&&(Ve=mp.matrix("active"),Le=Object.values(vp).map(nr=>nr("inactive")));const Ot=document.createElement("div");Ot.className="MLEP__environment-delimiter-controls",Ot.style.display="flex",Ot.style.flexDirection="column",Ot.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${Ve}
|
|
|
${Le.join("")}
|
|
|
</div>`,Ve&&ue.appendChild(Ot),ue.querySelectorAll("[data-command]").forEach(nr=>{const Fi=nr.dataset.command;let eo=Fi;try{eo=JSON.parse(Fi)}catch(Ai){}nr.addEventListener("mousedown",Ai=>Ai.preventDefault()),eo&&nr.addEventListener("click",()=>a.executeCommand(eo))});const Zn=(b=a.field)==null?void 0:b.getBoundingClientRect();Zn&&(ae.style.top=`${window.scrollY+(Zn.top-ae.clientHeight-15)}px`,ae.style.left=`${Zn.left+20}px`,ae.classList.add("is-visible"))}function gp(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function gg(){document.getElementById("mathlive-environment-popover")&&($h("mathlive-environment-popover"),x("environment-popover"),x("core"))}function zh(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Eu(b.environmentName)){const z=a.options.environmentPopoverPolicy;y=z==="auto"||z==="on"}}y?vg(a):gp()}function yg(a){return a.replace("*","")}function bg(a){return a==="dcases"?"cases":a}function bm(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function xm(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function yp(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 xg(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 Eg(a,y){var b,z,ne;const ae=(b=bm(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 ue=a.getBoundingClientRect(),ke=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let Le=Math.min(ke,(z=y.height)!=null?z:ue.height),Ve=yp(y.location.y,Le,y.verticalPos,ae);Ve+Le>window.innerHeight-8&&(y.alternateLocation?(Ve=yp(y.alternateLocation.y,Le,y.verticalPos,ae),Ve+Le>window.innerHeight-8&&(Ve=void 0)):Ve=void 0),Number.isFinite(Ve)||(Ve=Math.max(8,window.innerHeight-8-Le),8+Le>window.innerHeight-8&&(a.style.bottom="8px")),Le=Math.min(Ve+Le,window.innerHeight-8)-Ve;const at=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Ot=Math.min(at,(ne=y.width)!=null?ne:ue.width),ln=yp(y.location.x,Ot,y.horizontalPos,ae);ln+Ot>window.innerWidth-8&&(y.alternateLocation?(ln=xg(y.alternateLocation.x,Ot,y.verticalPos,ae),ln+Ot>window.innerWidth-8&&(ln=void 0)):ln=void 0),Number.isFinite(ln)||(ln=Math.max(8,window.innerWidth-8-Ot),8+Ot>window.innerWidth-8&&(a.style.right="8px")),Ot=Math.min(ln+Ot,window.innerWidth-8)-ln,ae==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-ln-Ot).toString()}px`:a.style.left=`${Math.ceil(ln).toString()}px`,a.style.top=`${Math.ceil(Ve).toString()}px`,Le!==ue.height&&(a.style.height=`${Math.ceil(Le).toString()}px`),Ot!==ue.width&&(a.style.width=`${Math.ceil(Ot).toString()}px`)}function Cg(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Pf(a){return"submenu"in a}function Ad(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function bp(a){return"type"in a&&a.type==="divider"}function xp(a){return"type"in a&&a.type==="heading"}var Em={};function Ep(a){let y=Em[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,Em[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 Cm=80,Sm=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Pf(a)?(this.type="submenu",this.submenu=new wm(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Ad(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 ne=this._declaration;if(bp(ne)){this.enabled=!1,this.checked=!1;return}xp(ne)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Ad(ne)&&(this.checked=Ad(ne)&&((y=Ff(ne.checked,a))!=null?y:!1)),(Ad(ne)||Pf(ne))&&(this.enabled=(b=Ff(ne.enabled,a))!=null?b:!0,this.visible=(z=Ff(ne.visible,a))!=null?z:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Ad(ne)||xp(ne)||Pf(ne))&&(this.label=Ff(ne.label,a),this.tooltip=Ff(ne.tooltip,a),this.ariaLabel=Ff(ne.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(Ep("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Ep("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),Ad(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=Xh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Ep("trailing-chevron"))}get element(){if(this._element)return this._element;if(bp(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,(Ad(this._declaration)||xp(this._declaration)||Pf(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(!Ad(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()},Cm)},Cm)}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=bm(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:xm(b,"trailing",z),y:b.top-4},alternateLocation:{x:xm(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 ae="right";if(this.submenu.element){const ue=this.submenu.element.getBoundingClientRect(),ke=this.element.getBoundingClientRect();ue.left<ke.left+ke.width/2&&(ae="left")}return ae==="right"?z>0:z<0}};function Sg(a,y,b){return Math.hypot(a,y)/b}function Ff(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var wm=class Kf{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var z,ne;this.parentMenu=(z=b==null?void 0:b.parentMenu)!=null?z:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ne=b==null?void 0:b.columnCount)!=null?ne: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 Sm(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,ne;this._menuItems.forEach(Ve=>Ve.updateState(y));const ae=this.hasCheck;this.hasCheck=this._menuItems.some(Ve=>Ve.visible&&Ve.hasCheck),this.hasCheck!==ae&&this._menuItems.forEach(Ve=>Ve.updateState(y));let ue,ke=0;for(const Ve of this._menuItems)Ve.type==="heading"?(ue&&ke===0&&(ue.visible=!1),ue=Ve,ke=0):Ve.type==="divider"&&ue?(ue.visible=ke>0,ue=void 0,ke=0):ue&&Ve.visible&&(ke+=1);ue&&(ue.visible=ke>0);let Le=!0;for(const Ve of this._menuItems)Ve.type==="divider"?(Ve.visible=!Le,Le=!0):Ve.visible&&(Le=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((z=this.activeMenuItem)!=null&&z.enabled)&&((ne=this.activeMenuItem)==null?void 0:ne.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,ne,ae;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const ue=this.activeMenuItem;ue.active=!1,(b=ue.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?(ne=y.element)==null||ne.focus({preventScroll:!0}):(ae=this._element)==null||ae.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const z=this._menuItems;for(;!b&&y<=z.length-1;){const ne=z[y];b=ne.type!=="divider"&&ne.visible&&ne.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 ne=y[b];z=ne.type!=="divider"&&ne.visible&&ne.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 ne=this._menuItems.indexOf(this._activeMenuItem),ae=1;for(;ne>=b&&ne<=z;){ne+=y>0?1:-1;const ue=this._menuItems[ne];if(!ue)break;if(ue.visible&&ue.enabled){if(ae===Math.abs(y))return this._menuItems[ne];ae+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const z=this._menuItems.filter(ne=>ne.visible&&ne.enabled).indexOf(y);return z<0?-1:z%this.columnCount}static get collator(){return Kf._collator||(Kf._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Kf._collator}findMenuItem(y){var b;this.updateIfDirty();const z=this._menuItems.filter(ke=>ke.type!=="divider"&&ke.visible&&ke.enabled);if(z.length===0)return null;const ne=Math.max(...z.map(ke=>ke.label.length))-y.length;if(ne<0)return null;let ae=null,ue=0;for(;ue<ne&&!ae;)ae=(b=z.find(ke=>Kf.collator.compare(y,ke.label.substring(ue,y.length))===0))!=null?b:null,ue++;return ae}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),ht()&&(this.element.popover="manual",this.element.showPopover()),y.location&&Eg(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,ne,ae;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),ht()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(z=(b=this.parentMenu)==null?void 0:b.element)==null||z.focus(),(ae=(ne=this._element)==null?void 0:ne.parentNode)==null||ae.removeChild(this._element)}set openSubmenu(y){var b,z,ne,ae;const ue=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((z=this.activeMenuItem.element)==null||z.setAttribute("aria-expanded",ue.toString())),(ae=(ne=this.activeMenuItem)==null?void 0:ne.element)==null||ae.classList.toggle("is-submenu-open",ue),this.isSubmenuOpen=ue}},Am=class M0 extends wm{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(Mm),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=of(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,z,ne;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=of(y));let ae=!0;const ue=this.activeSubmenu,ke=ue.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":ke==null||ke.select(of(y));break;case"ArrowRight":if((ke==null?void 0:ke.type)==="submenu")ke.select(of(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!ke)ue.activeMenuItem=ue.firstMenuItem;else{const Le=(b=ue.getMenuItemColumn(ke))!=null?b:-1;if(Le>=0&&Le<((z=ue.columnCount)!=null?z:1)-1){const Ve=ue.nextMenuItem(1);Ve&&(ue.activeMenuItem=Ve)}}break;case"ArrowLeft":if(ue===this.rootMenu)ke||(ue.activeMenuItem=ue.firstMenuItem);else if((ke&&(ne=ue.getMenuItemColumn(ke))!=null?ne:-1)<=0||!ke){ue.hide();const Ve=ue.parentMenu.activeMenuItem;if(Ve){const{element:at}=Ve;at==null||at.focus(),at==null||at.classList.remove("is-submenu-open")}}else{const Ve=ue.nextMenuItem(-1);Ve&&(ue.activeMenuItem=Ve)}break;case"ArrowDown":ue.activeMenuItem=ue.nextMenuItem(ue.columnCount);break;case"ArrowUp":ue.activeMenuItem=ue.nextMenuItem(-ue.columnCount);break;case"Home":case"PageUp":ue.activeMenuItem=ue.firstMenuItem;break;case"End":case"PageDown":ue.activeMenuItem=ue.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const Le=ue.findMenuItem(this.typingBuffer);Le&&(ue.activeMenuItem=Le),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(ph(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const Le=ue.findMenuItem(this.typingBuffer);Le&&(ue.activeMenuItem=Le),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else ae=!1}ae&&(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 Ed.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),Ed.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),Ed.state==="open"&&Ed.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(pe(Se({},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,Ed.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=M0.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};Am.SUBMENU_DELAY=120;var wg=Am;function Mm(a){return bp(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Ad(a)||Pf(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Ad(a)&&typeof a.checked=="function"?!0:Pf(a)?a.submenu.some(Mm):!1}var Kh=class{};Kh.DELAY=300,Kh.MAX_DISTANCE=10;function Ag(a){return new Promise((y,b)=>{const z=hh(a);z||y(!1);let ne=z;const ae=setTimeout(()=>{ue.abort(),y(Cg(ne,z)<Kh.MAX_DISTANCE)},Kh.DELAY),ue=new AbortController,ke=ue.signal;for(const Le of["pointermove","pointerup","pointercancel"])window.addEventListener(Le,Ve=>{if(Ve.type==="pointerup"||Ve.type==="pointercancel")clearTimeout(ae),ue.abort(),y(!1);else if(Ve.type==="pointermove"){const at=hh(Ve);at&&(ne=at)}},{passive:!0,signal:ke})})}function Dm(a,y,b){return ef(this,null,function*(){if(a.type==="contextmenu"){const z=a;if(b.show({target:y,location:hh(z),modifiers:of(z)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const z=a;if(z.code==="ContextMenu"||z.code==="F10"&&z.shiftKey){const ne=y==null?void 0:y.getBoundingClientRect();if(ne&&b.show({target:y,location:{x:Math.ceil(ne.left+ne.width/2),y:Math.ceil(ne.top+ne.height/2)},modifiers:of(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 ne=hh(a);if(yield Ag(a))return b.state!=="closed"?!1:(b.show({target:y,location:ne}),!0)}return!1})}var Bm={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};fn(Object.keys(Bm),"{body:auto}",{createAtom:a=>new ee(pe(Se({},a),{body:zt(a.args[0]),accentChar:Bm[a.command.slice(1)]}))}),fn(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=wn(zt(a.args[0]));return new ee(pe(Se({},a),{body:zt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),fn(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new ee(pe(Se({},a),{body:zt(a.args[0]),svgAccent:"overarc"}))}),fn(["underarc","underparen"],"{body:auto}",{createAtom:a=>new zs(pe(Se({},a),{body:zt(a.args[0]),svgBelow:"underarc"}))}),fn("utilde","{body:auto}",{createAtom:a=>{const y=zt(a.args[0]),b=wn(y),z="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new zs(pe(Se({},a),{body:y,svgBelow:z,boxType:fu(y)}))}}),fn("^","{:string}",{createAtom:a=>{var y;return new Ri(pe(Se({},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:"^"}))}}),fn("`","{:string}",{createAtom:a=>{var y;return new Ri(pe(Se({},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:"`"}))}}),fn("'","{:string}",{createAtom:a=>{var y;return new Ri(pe(Se({},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:"'"}))}}),fn('"',"{:string}",{createAtom:a=>{var y,b;return new Ri(pe(Se({},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]:'"'}))}}),fn(".","{:string}",{createAtom:a=>{var y,b;return new Ri(pe(Se({},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]:"."}))}}),fn("=","{:string}",{createAtom:a=>{var y,b;return new Ri(pe(Se({},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]:"="}))}}),fn("~","{:string}",{createAtom:a=>{var y;return new Ri(pe(Se({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"}))}}),fn("c","{:string}",{createAtom:a=>{var y;return new Ri(pe(Se({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),fn("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const z=a.args,ne={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 ue=z[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ke of ue){const Le=ke.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(Le)ne.strokeWidth=Le[1],ne.strokeStyle=Le[2],ne.strokeColor=Le[3];else{const Ve=ke.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Ve&&(Ve[1]==="mathbackground"?ne.backgroundcolor=Ve[2]:Ve[1]==="mathcolor"?ne.strokeColor=Ve[2]:Ve[1]==="padding"?ne.padding=Ve[2]:Ve[1]==="shadow"&&(ne.shadow=Ve[2]))}}ne.strokeStyle==="dashed"?ne.svgStrokeStyle="5,5":ne.strokeStyle==="dotted"&&(ne.svgStrokeStyle="1,5")}ne.borderStyle=`${ne.strokeWidth} ${ne.strokeStyle} ${ne.strokeColor}`;const ae={};return((b=z[0])!=null?b:"").split(/[, ]/).filter(ue=>ue.length>0).forEach(ue=>{ae[ue.toLowerCase()]=!0}),new io(a.command,zt(z[2]),ae,ne)}}),fn("cancel","{body:auto}",{createAtom:a=>{var y;return new io(a.command,zt(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:{}})}}),fn("bcancel","{body:auto}",{createAtom:a=>{var y;return new io(a.command,zt(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:{}})}}),fn("xcancel","{body:auto}",{createAtom:a=>{var y;return new io(a.command,zt(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:{}})}}),fn(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new zs(pe(Se({},a),{body:zt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),fn("overbrace","{:auto}",{createAtom:a=>new zs(pe(Se({},a),{body:zt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),fn(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new zs(pe(Se({},a),{body:zt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),fn(["underbrace"],"{:auto}",{createAtom:a=>new zs(pe(Se({},a),{body:zt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),fn(["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,ne,ae;return new zs(pe(Se({},a),{svgBody:a.command.slice(1),above:((b=zt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:zt((z=a.args)==null?void 0:z[1]),below:(ae=zt((ne=a.args)==null?void 0:ne[0]))!=null?ae: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)}`}),fn(["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 yc(a.command.slice(1),pe(Se({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),fn(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new yc({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],pe(Se({},a),{limits:"over-under",variant:"main"}))}),fn(["lim","mod"],"",{ifMode:"math",createAtom:a=>new yc(a.command.slice(1),pe(Se({},a),{limits:"over-under",variant:"main"}))}),fn(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new yc(a.command.slice(1),pe(Se({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),fn(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Ri(pe(Se({},a),{body:zt(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 ne=new ha("\xB0",{style:pe(Se({},a.style),{variant:"normal",variantStyle:"up"})});return new ha([b,ne],{type:"inner",isSelected:a.isSelected,caret:z})}}),fn("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new Rc(pe(Se({},a),{body:zt(a.args[1]),index:a.args[0]?zt(a.args[0]):void 0}))}),fn(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=Se({},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 es(z[0]?zt(z[0]):[new Ol],z[1]?zt(z[1]):[new Ol],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}`:wo(a.command,b,z)}}),fn(["brace","brack"],"",{infix:!0,createAtom:a=>new es(zt(a.args[0]),zt(a.args[1]),pe(Se({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>zl([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),fn(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const z=a.args;return a.command==="\\choose"&&(y="(",b=")"),new es(zt(z[0]),zt(z[1]),pe(Se({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>zl([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),fn(["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 es(zt(z[0]),zt(z[1]),pe(Se({},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)}`}),fn("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new es(zt(a.args[0]),zt(a.args[1]),pe(Se({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),fn(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new Fu({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)],pe(Se({},a),{limits:"auto",variant:"main"}))}),fn("smallint","",{ifMode:"math",createAtom:a=>new yc("\u222B",pe(Se({},a),{limits:"adjacent",variant:"main"}))});var km={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"};fn(Object.keys(km),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=km[y.slice(1)];return new Fu(b,pe(Se({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),fn(["Re","Im"],"",{ifMode:"math",createAtom:a=>new yc({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],pe(Se({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),fn("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new wi(pe(Se({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),fn("the","{:value}",{createAtom:a=>new Ri(pe(Se({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const z=new bl({parent:y},a.style);let ne="";a.isSelected&&(ne+=" ML__selected");const ae=z.evaluate(a.args[0]);return new ha(((b=Us(ae))!=null?b:"").split("").map(ue=>new ha(ue,{type:"ord",classes:ne,mode:a.mode,isSelected:a.isSelected,style:Se({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ne}).wrap(z)},serialize:a=>{var y;return`\\the${(y=Us(a.args[0]))!=null?y:"\\relax"}`}}),fn("mathtip","{:auto}{:math}",{createAtom:a=>new qc(pe(Se({},a),{body:zt(a.args[0]),tooltip:zt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Ri.serialize([a.tooltip],pe(Se({},y),{defaultMode:"math"}))}}`}),fn("texttip","{:auto}{:text}",{createAtom:a=>new qc(pe(Se({},a),{body:zt(a.args[0]),tooltip:zt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Ri.serialize([a.tooltip],pe(Se({},y),{defaultMode:"text"}))}}`}),fn("error","{:math}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),fn("ensuremath","{:math}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(pe(Se({},y),{defaultMode:"math"}))}}`}),fn("color","{:value}",{applyStyle:(a,y,b)=>{var z,ne;return{verbatimColor:(z=Us(y[0]))!=null?z:void 0,color:b.toColor((ne=y[0])!=null?ne:{string:"red"})}}}),fn("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var z,ne;return{verbatimColor:(z=Us(y[0]))!=null?z:void 0,color:b.toColor((ne=y[0])!=null?ne:{string:"red"})}}}),fn("boxed","{content:math}",{createAtom:a=>new Ou(pe(Se({},a),{body:zt(a.args[0]),framecolor:{string:"black"}}))}),fn("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var z,ne;return{verbatimBackgroundColor:(z=Us(y[0]))!=null?z:void 0,backgroundColor:b.toBackgroundColor((ne=y[0])!=null?ne:{string:"yellow"})}}}),fn("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Ou(pe(Se({},a),{body:zt(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(pe(Se({},y),{defaultMode:"text"})):wo(a.command,(b=Us(a.framecolor))!=null?b:"",(z=Us(a.backgroundcolor))!=null?z:"",a.bodyToLatex(pe(Se({},y),{defaultMode:"text"})))}}),fn("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],z=zt(a.args[1]);return b?new Ou(pe(Se({},a),{body:z,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Ou(pe(Se({},a),{body:z}))},serialize:(a,y)=>{var b,z;if(y.skipStyles)return a.bodyToLatex(y);let ne=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const ae=[];a.padding&&ae.push((b=Us(a.padding))!=null?b:""),a.border&&ae.push(`border: ${a.border}`),a.backgroundcolor&&ae.push((z=Us(a.backgroundcolor))!=null?z:""),ne+=`[${ae.join(",")}]`}return wo(ne,a.bodyToLatex(y))}}),fn(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(a.args[0])})),render:(a,y)=>{const b=new bl({parent:y,mathstyle:a.command.slice(1)},a.style),z=Ri.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):`{${zl([a.command,a.bodyToLatex(y)])}}`}),fn(["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]})}),fn("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),fn("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),fn("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),fn("selectfont","",{ifMode:"text",applyStyle:()=>({})}),fn("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),fn(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Ri(pe(Se({},a),{body:zt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),fn("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),fn("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),fn("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),fn("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),fn("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),fn("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),fn("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),fn("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),fn("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),fn("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),fn("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),fn("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),fn("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),fn("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),fn("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),fn("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),fn("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),fn("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),fn("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),fn("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),fn("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),fn("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),fn("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),fn("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),fn("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),fn("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),fn("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),fn(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),fn(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),fn("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),fn("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),fn("mbox","{:text}",{ifMode:"math",createAtom:a=>new Ri(pe(Se({},a),{type:"mord",body:zt(a.args[0]),mode:"math"})),serialize:(a,y)=>wo("\\mbox",a.bodyToLatex(pe(Se({},y),{defaultMode:"text"})))}),fn("text","{:text}",{ifMode:"math",applyMode:"text"}),fn(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(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:""})}}),fn(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(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}}),fn("htmlData","{data:string}{content:auto}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(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}}),fn(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(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}}),fn("em","{:rest}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(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"})}),fn("emph","{:auto}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(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 Im={"\\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}};fn(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new Ja(pe(Se({},a),{delim:(y=a.args[0])!=null?y:".",size:Im[a.command].size,delimType:Im[a.command].mclass}))}}),fn(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Mc(pe(Se({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),fn(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Mc(pe(Se({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),fn("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Ri(a),render:(a,y)=>{let b=0;const z=y.mathstyle.id;(z===hu||z===xu)&&(b=1),(z===ju||z===eu)&&(b=2),(z===Uu||z===tu)&&(b=3);const ne=zt(a.args[b]);return Ri.createBox(y,ne)},serialize:(a,y)=>`\\mathchoice{${Ri.serialize(a.args[0],y)}}{${Ri.serialize(a.args[1],y)}}{${Ri.serialize(a.args[2],y)}}{${Ri.serialize(a.args[3],y)}}`}),fn("mathop","{:auto}",{createAtom:a=>new Ri(pe(Se({},a),{type:"mop",body:zt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let z=Ri.createBox(y,a.body);if(a.superscript||a.subscript){const ne=(b=a.subsupPlacement)!=null?b:"auto";z=ne==="over-under"||ne==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:z}):a.attachSupsub(y,{base:z})}return new ha(a.bind(y,z),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[wo(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)),zl(b)}}),fn(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Ri(pe(Se({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:zt(a.args[0])}))}),fn(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=zt(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 Ri(pe(Se({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let z=Ri.createBox(y,a.body);if(a.superscript||a.subscript){const ne=(b=a.subsupPlacement)!=null?b:"auto";z=ne==="over-under"||ne==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:z}):a.attachSupsub(y,{base:z})}return a.caret&&(z.caret=a.caret),new ha(a.bind(y,z),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[wo(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)),zl(b)}}),fn(["char","unicode"],"{charcode:value}",{createAtom:a=>new Ri(pe(Se({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Us((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)}}),fn("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Ri(a),render:(a,y)=>{var b,z,ne;const ae=new bl({parent:y,mathstyle:"textstyle"},a.style),ue=ae.toEm((b=a.args[0])!=null?b:{dimension:0}),ke=ae.toEm((z=a.args[1])!=null?z:{dimension:10}),Le=ae.toEm((ne=a.args[2])!=null?ne:{dimension:10}),Ve=new ha(null,{classes:"rule",type:"ord"});return Ve.width=ke,Ve.height=Le+ue,Ve.depth=-ue,Ve.setStyle("border-right-width",ke,"em"),Ve.setStyle("border-top-width",Le,"em"),Ve.setStyle("border-color",a.style.color),Ve.setStyle("vertical-align",ue,"em"),a.isSelected&&Ve.setStyle("opacity","50%"),a.bind(ae,Ve),a.caret&&(Ve.caret=a.caret),Ve.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Us(a.args[0])}]`:""}{${Us(a.args[1])}}{${Us(a.args[2])}}`}),fn(["overline","underline"],"{:auto}",{createAtom:a=>new Ri(pe(Se({},a),{body:zt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),z=new bl({parent:y,mathstyle:"cramp"},a.style),ne=Ri.createBox(z,a.body);if(!ne)return null;const ae=z.metrics.defaultRuleThickness/z.scalingFactor,ue=new ha(null,{classes:b+"-line"});ue.height=ae,ue.maxFontSize=ae*1.125*z.scalingFactor;let ke;return b==="overline"?ke=new Xl({shift:0,children:[{box:ne},3*ae,{box:ue},ae]}):ke=new Xl({top:ne.height,children:[ae,{box:ue},3*ae,{box:ne}]}),a.caret&&(ke.caret=a.caret),new ha(ke,{classes:b,type:"ignore"})}}),fn("overset","{:auto}{base:auto}",{createAtom:a=>{const y=zt(a.args[1]);return new zs(pe(Se({},a),{above:zt(a.args[0]),body:y,skipBoundary:!1,boxType:fu(y)}))},serialize:(a,y)=>wo(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),fn("underset","{:auto}{base:auto}",{createAtom:a=>{const y=zt(a.args[1]);return new zs(pe(Se({},a),{below:zt(a.args[0]),body:y,skipBoundary:!1,boxType:fu(y)}))},serialize:(a,y)=>wo(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),fn("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=zt(a.args[2]);return new zs(pe(Se({},a),{above:zt(a.args[0]),below:zt(a.args[1]),body:y,skipBoundary:!1,boxType:fu(y)}))},serialize:(a,y)=>wo(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),fn(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new zs(pe(Se({},a),{body:zt(a.args[2]),above:zt(a.args[1]),below:zt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>wo(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),fn("smash","[:string]{:auto}",{createAtom:a=>{var y,b,z,ne;return new Qu(pe(Se({},a),{body:zt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ne=(z=a.args[0])==null?void 0:z.includes("b"))!=null?ne:!0}))}}),fn(["vphantom"],"{:auto}",{createAtom:a=>new Qu(pe(Se({},a),{body:zt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),fn(["hphantom"],"{:auto}",{createAtom:a=>new Qu(pe(Se({},a),{body:zt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),fn(["phantom"],"{:auto}",{createAtom:a=>new Qu(pe(Se({},a),{body:zt(a.args[0]),isInvisible:!0}))}),fn("not","{:math}",{createAtom:a=>{const y=zt(a.args[0]);return y.length===0?new Ri(pe(Se({},a),{type:"mrel",value:"\uE020"})):new Ri(pe(Se({},a),{body:[new vs(pe(Se({},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{${Ri.serialize(b.group,y)}}`:`\\not${Ri.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":fu(zt(a.args[0])),ne=Ri.createBox(y,a.body,{type:z});return a.caret&&(ne.caret=a.caret),a.bind(y,ne)}}),fn(["ne","neq"],"",{createAtom:a=>new Ri(pe(Se({},a),{type:"mrel",body:[new vs(pe(Se({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Ri(pe(Se({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),fn("rlap","{:auto}",{createAtom:a=>new vs(pe(Se({},a),{body:zt(a.args[0]),align:"right"}))}),fn("llap","{:auto}",{createAtom:a=>new vs(pe(Se({},a),{body:zt(a.args[0]),align:"left"}))}),fn("mathrlap","{:math}",{createAtom:a=>new vs(pe(Se({},a),{body:zt(a.args[0]),align:"left"}))}),fn("mathllap","{:math}",{createAtom:a=>new vs(pe(Se({},a),{body:zt(a.args[0]),align:"left"}))}),fn("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Ou(pe(Se({},a),{body:zt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return wo("\\raisebox",(b=Us(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),fn("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Ou(pe(Se({},a),{body:zt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return wo("\\raise",(b=Us(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),fn("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Ou(pe(Se({},a),{body:zt(a.args[1]),padding:{dimension:0},offset:(y=Lu(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,z;return wo("\\lower",(z=Us(Lu((b=a.offset)!=null?b:{dimension:0},-1)))!=null?z:"0pt",a.bodyToLatex(y))}}),Ke("0123456789/@.?!"),bt(65,90),bt(97,122),Ke([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Ke([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Ke([["\\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]]),Ke([["\\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"),Ke([["\\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"]]),Ke([["\\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"]]),Ke([["\\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"),Ke([["+",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"),Ke([["\\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"),Ke([["\\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]]),Ke([["=",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"),Ke([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Ke([["\\wp",8472],["\\aleph",8501]]),Ke([["\\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"),Ke([["\\ ",160],["~",160]],"space"),fn(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Mc(a)}),fn("space","",{createAtom:a=>new Mc(a)}),Ke([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Ke([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Ke([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var Pm="<mo>⁡</mo>",Hh="<mo>⁢</mo>";function Zh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function lu(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Mg(a,y,b){var z,ne,ae,ue,ke,Le,Ve,at,Ot,ln,Zn;let nr=!1;y=y!=null?y:a.atoms.length;let Fi="",eo="",Ai=a.atoms[a.index];const pa=(ne=(z=Ai.style)==null?void 0:z.variant)!=null?ne:"",ao=(ue=(ae=Ai.style)==null?void 0:ae.variantStyle)!=null?ue:"";let Pa="";if(pa||ao){const Nl=qt(Ai.value,(ke=Ai.style)==null?void 0:ke.variant,(Le=Ai.style)==null?void 0:Le.variantStyle);if(Nl!==Ai.value)return a.index+=1,Fi=`<mi${lu(Ai.id,b)}>${Nl}</mi>`,zd(Fi,a,b)||(a.mathML+=Fi,a.lastType="mi"),!0;Pa=(Ve={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"}[ao+pa])!=null?Ve:"",Pa=` mathvariant="${Pa}"`}const ul={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Ai.command==="!")return a.index+=1,Fi="<mo>!</mo>",zd(Fi,a,b)||(a.mathML+=Fi,a.lastType="mo"),!0;if(ul[Ai.command]){a.index+=1;let Nl=`<mi${lu(Ai.id,b)}${Pa}>${ul[Ai.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Nl=Hh+Nl),zd(Nl,a,b)||(a.mathML+=Nl,a.lastType="mi"),!0}if(Ai.command==="\\operatorname")eo=Of(Ai.body),a.index+=1;else if(pa||ao)for(;a.index<y&&(Ai.type==="mord"||Ai.type==="macro")&&!Ai.isDigit()&&pa===((Ot=(at=Ai.style)==null?void 0:at.variant)!=null?Ot:"")&&ao===((Zn=(ln=Ai.style)==null?void 0:ln.variantStyle)!=null?Zn:"");)eo+=Of([Ai]),a.index+=1,Ai=a.atoms[a.index];else(Ai.type==="mord"||Ai.type==="macro")&&!Ai.isDigit()&&(eo+=Of([Ai]),a.index+=1);if(eo.length>0){nr=!0,Fi=`<mi${Pa}>${eo}</mi>`;const Nl=a.lastType;Fi.endsWith(">f</mi>")||Fi.endsWith(">g</mi>")?(Fi+=Pm,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Fi)?"mo":"mi",zd(Fi,a,b)||((Nl==="mi"||Nl==="mn"||Nl==="mtext"||Nl==="fence")&&(Fi=Hh+Fi),a.mathML+=Fi)}return nr}function Dg(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Bg(a){let y=-1,b=a.index,z=!1,ne=!1;for(;b<a.atoms.length&&!z&&!ne;){const ae=a.atoms[b];z=!ae.isDigit(),ne=!z&&ae.superscript!==void 0,b++}return ne&&(y=b-1),y}function zd(a,y,b){var z;let ne=y.atoms[y.index-1];if(!ne)return!1;if(!ne.superscript&&!ne.subscript)if(((z=y.atoms[y.index])==null?void 0:z.type)==="subsup")ne=y.atoms[y.index],y.index+=1;else return!1;const ae=y.lastType;y.lastType="";const ue=Ks(ne.superscript,b);y.lastType="";const ke=Ks(ne.subscript,b);if(y.lastType=ae,!ue&&!ke)return!1;let Le="";return ue&&ke?Le=`<msubsup>${a}${ke}${ue}</msubsup>`:ue?Le=`<msup>${a}${ue}</msup>`:ke&&(Le=`<msub>${a}${ke}</msub>`),y.mathML+=Le,y.lastType="",!0}function kg(a,y,b){y=y!=null?y:a.atoms.length;const z=a.index;let ne="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ne+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ne.length>0?(a.mathML+=`<mtext ${lu(a.atoms[z].id,b)}>${ne}</mtext>`,a.lastType="mtext",!0):!1}function Ig(a,y,b){y=y!=null?y:a.atoms.length;const z=a.index;let ne="",ae=Bg(a);for(ae>=0&&ae<y&&(y=ae);a.index<y&&a.atoms[a.index].isDigit();)ne+=a.atoms[a.index].asDigit(),a.index+=1;return ne.length<=0?!1:(ne="<mn"+lu(a.atoms[z].id,b)+">"+ne+"</mn>",ae<0&&Dg(a)&&(ae=a.index,a.index+=1),zd(ne,a,b)||(a.mathML+=ne,a.lastType="mn"),!0)}function Pg(a,y,b){let z=!1;y=y!=null?y:a.atoms.length;let ne="",ae="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let ue=!1,ke=0;const Le=a.index;let Ve=-1,at=Le+1;for(;at<y&&!ue;)a.atoms[at].type==="mopen"?ke+=1:a.atoms[at].type==="mclose"&&(ke-=1),ke===-1&&(ue=!0,Ve=at),at+=1;ue&&(ne="<mrow>",ne+=mf(a.atoms[Le],b),ne+=Ks(a.atoms,b,Le+1,Ve),ne+=mf(a.atoms[Ve],b),ne+="</mrow>",a.index=Ve+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=Hh),zd(ne,a,b)&&(z=!0,a.lastType="",ne=""),ae="fence")}return ne.length>0&&(z=!0,a.mathML+=ne,a.lastType=ae),z}function Fg(a,y,b){let z=!1;y=y!=null?y:a.atoms.length;let ne="",ae="";const ue=a.atoms[a.index];if(!ue)return!1;const ke={"\\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(ke[ue.command]){a.index+=1;const Le=`<mo${lu(ue.id,b)}>${ke[ue.command]}</mo>`;return zd(Le,a,b)||(a.mathML+=Le,a.lastType="mo"),!0}if(a.index<y&&(ue.type==="mbin"||ue.type==="mrel"))ne+=Cp(a.atoms[a.index],b),a.index+=1,ae="mo";else if(a.index<y&&(ue.type==="mop"||ue.type==="operator"||ue.type==="extensible-symbol")){if(ue.subsupPlacement==="over-under"&&(ue.superscript||ue.subscript)){const Le=mf(ue,b);return ue.superscript&&ue.subscript?(ne+="<munderover>"+Le,ne+=Ks(ue.subscript,b),ne+=Ks(ue.superscript,b),ne+="</munderover>"):ue.superscript?(ne+="<mover>"+Le,ne+=Ks(ue.superscript,b),ne+="</mover>"):ue.subscript&&(ne+="<munder>"+Le,ne+=Ks(ue.subscript,b),ne+="</munder>"),a.mathML+=ne,a.lastType="mo",a.index+=1,!0}{const Le=a.atoms[a.index],Ve=Le.value==="\\operatorname",at=Ve?'<mi class="MathML-Unit"'+lu(Le.id,b)+">"+Of(Le.value)+"</mi>":mf(Le,b);ne+=at,!Ve&&!/^<mo>(.*)<\/mo>$/.test(at)?(ne+=Pm,ae="applyfunction"):ae=Ve?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ne)&&(ne=Hh+ne),a.index+=1}return ne.length>0&&(z=!0,zd(ne,a,b)||(a.mathML+=ne,a.lastType=ae)),z}function Ks(a,y,b,z){y!=null||(y={});const ne={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ne.mathML=a.toString();else if(typeof a=="string")ne.mathML=a;else if(a instanceof Ri)ne.mathML=Cp(a,y);else if(Array.isArray(a)){ne.atoms=a;let ae=0;for(z=z||(a?a.length:0);ne.index<z;)if(kg(ne,z,y)||Ig(ne,z,y)||Mg(ne,z,y)||Fg(ne,z,y)||Pg(ne,z,y))ae+=1;else if(ne.index<z){let ue=Cp(ne.atoms[ne.index],y);ne.lastType==="mn"&&ue.length>0&&ne.atoms[ne.index].type==="genfrac"&&(ue="<mo>⁤</mo>"+ue),ne.atoms[ne.index].type==="genfrac"?ne.lastType="mfrac":ne.lastType="",ne.index+=1,zd(ue,ne,y)?ae+=1:ue.length>0&&(ne.mathML+=ue,ae+=1)}ae>1&&(ne.mathML="<mrow>"+ne.mathML+"</mrow>")}return ne.mathML}function mf(a,y){let b="";const z=Of(a.value);return z&&(b="<mo"+lu(a.id,y)+">"+z+"</mo>"),b}function Of(a){if(!a)return"";if(typeof a=="string")return Zh(a);if(!Array.isArray(a)&&typeof a.body=="string")return Zh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return Zh(y)}function Cp(a,y){var b,z,ne,ae,ue,ke,Le,Ve,at,Ot,ln,Zn,nr,Fi,eo,Ai,pa,ao,Pa,ul,Nl,El;if(a.mode==="text")return`<mi${lu(a.id,y)}>${a.value}</mi>`;const Ms={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"},ru={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let yo="",Gc="",Dd,td,ic,Qc,Fc,su;const{command:Zu}=a;if(a.command==="\\error")return`<merror${lu(a.id,y)}>${Ks(a.body,y)}</merror>`;const ac={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Bd={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":yo=Ks(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(yo+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(yo+="<mo>"+(ac[a.leftDelim]||a.leftDelim)+"</mo>")),yo+="<mtable",a.colFormat){for(yo+=' columnalign="',ic=0;ic<a.colFormat.length;ic++)a.colFormat[ic].align&&(yo+={l:"left",c:"center",r:"right"}[a.colFormat[ic].align]+" ");yo+='"'}for(yo+=">",td=0;td<a.array.length;td++){for(yo+="<mtr>",Dd=0;Dd<a.array[td].length;Dd++)yo+="<mtd>"+Ks(a.array[td][Dd],y)+"</mtd>";yo+="</mtr>"}yo+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(yo+="<mo>"+(ac[a.leftDelim]||a.rightDelim)+"</mo>"),yo+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(yo+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(yo+="<mo"+lu(a.id,y)+">"+(ac[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(yo+="<mfrac>",yo+=Ks(a.above,y)||"<mi> </mi>",yo+=Ks(a.below,y)||"<mi> </mi>",yo+="</mfrac>"):(yo+="<mtable"+lu(a.id,y)+">",yo+="<mtr>"+Ks(a.above,y)+"</mtr>",yo+="<mtr>"+Ks(a.below,y)+"</mtr>",yo+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(yo+="<mo"+lu(a.id,y)+">"+(ac[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(yo+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(yo+="<msqrt"+lu(a.id,y)+">",yo+=Ks(a.body,y),yo+="</msqrt>"):(yo+="<mroot"+lu(a.id,y)+">",yo+=Ks(a.body,y),yo+=Ks(a.above,y),yo+="</mroot>");break;case"leftright":const kd=a,Id=kd.leftDelim;yo="<mrow>",Id&&Id!=="."&&(yo+=`<mo${lu(a.id,y)}>${(b=ac[Id])!=null?b:Id}</mo>`),a.body&&(yo+=Ks(a.body,y));const Pd=kd.matchingRightDelim();Pd&&Pd!=="."&&(yo+=`<mo${lu(a.id,y)}>${(z=ac[Pd])!=null?z:Pd}</mo>`),yo+="</mrow>";break;case"sizeddelim":case"delim":yo+=`<mo${lu(a.id,y)}>${ac[a.value]||a.value}</mo>`;break;case"accent":yo+='<mover accent="true"'+lu(a.id,y)+">",yo+=Ks(a.body,y),yo+="<mo>"+(Bd[Zu]||a.accent)+"</mo>",yo+="</mover>";break;case"line":case"overlap":break;case"overunder":Fc=a.above,Qc=a.below,(a.svgAbove||Fc)&&(a.svgBelow||Qc)?su=a.body:Fc&&Fc.length>0?(su=a.body,(ae=(ne=a.body)==null?void 0:ne[0])!=null&&ae.below?(Qc=a.body[0].below,su=a.body[0].body):((ke=(ue=a.body)==null?void 0:ue[0])==null?void 0:ke.type)==="first"&&((Ve=(Le=a.body)==null?void 0:Le[1])!=null&&Ve.below)&&(Qc=a.body[1].below,su=a.body[1].body)):Qc&&Qc.length>0&&(su=a.body,(Ot=(at=a.body)==null?void 0:at[0])!=null&&Ot.above?(Fc=a.body[0].above,su=a.body[0].body):((Zn=(ln=a.body)==null?void 0:ln[0])==null?void 0:Zn.type)==="first"&&((Fi=(nr=a.body)==null?void 0:nr[1])!=null&&Fi.above)&&(Fc=a.body[1].overscript,su=a.body[1].body)),(a.svgAbove||Fc)&&(a.svgBelow||Qc)?(yo+=`<munderover ${lu(a.id,y)}>`,yo+=(eo=Ms[a.svgBody])!=null?eo:Ks(su,y),yo+=(Ai=Ms[a.svgBelow])!=null?Ai:Ks(Qc,y),yo+=(pa=Ms[a.svgAbove])!=null?pa:Ks(Fc,y),yo+="</munderover>"):a.svgAbove||Fc?(yo+=`<mover ${lu(a.id,y)}>`+((ao=Ms[a.svgBody])!=null?ao:Ks(su,y)),yo+=(Pa=Ms[a.svgAbove])!=null?Pa:Ks(Fc,y),yo+="</mover>"):(a.svgBelow||Qc)&&(yo+=`<munder ${lu(a.id,y)}>`+((ul=Ms[a.svgBody])!=null?ul:Ks(su,y)),yo+=(Nl=Ms[a.svgBelow])!=null?Nl:Ks(Qc,y),yo+="</munder>");break;case"placeholder":yo+="?";break;case"mord":{yo=typeof a.value=="string"?a.value:Zu,Zu==="\\char"?yo="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":yo.length>0&&yo.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?yo="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?yo=a.value.charAt(0):(console.error("Did not expect this"),yo=""));const hd=/\d/.test(yo)?"mn":"mi";yo=`<${hd}${lu(a.id,y)}>${Zh(yo)}</${hd}>`;break}case"mbin":case"mrel":case"minner":yo=mf(a,y);break;case"mpunct":yo='<mo separator="true"'+lu(a.id,y)+">"+Zu+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(yo="<mo"+lu(a.id,y)+">",yo+=Zu==="\\operatorname"?a.body:Zu||a.body,yo+="</mo>");break;case"box":yo='<menclose notation="box"',a.backgroundcolor&&(yo+=' mathbackground="'+a.backgroundcolor+'"'),yo+=lu(a.id,y)+">"+Ks(a.body,y)+"</menclose>";break;case"spacing":yo+='<mspace width="'+((El=ru[Zu])!=null?El:0)+'em"/>';break;case"enclose":yo='<menclose notation="';for(const hd in a.notation)Object.prototype.hasOwnProperty.call(a.notation,hd)&&a.notation[hd]&&(yo+=Gc+hd,Gc=" ");yo+=lu(a.id,y)+'">'+Ks(a.body,y)+"</menclose>";break;case"prompt":yo='<menclose notation="roundexbox""">'+Ks(a.body,y)+"</menclose>";break;case"space":yo+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":yo+=mf(a,y);break;case"mclose":yo+=mf(a,y);break;case"macro":{const hd=a.command+Of(a.macroArgs);hd&&(yo+=`<mo ${lu(a.id,y)}>${hd}</mo>`)}break;case"latexgroup":yo+=Ks(a.body,y);break;case"latex":yo+="<mtext"+lu(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":yo+=Ks(a.body,y);break;case"text":yo+=`<mtext ${lu(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${lu(a.id,y)} displaystyle="true">${Ks(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${lu(a.id,y)} displaystyle="false">${Ks(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return yo}var Nf={"\\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"},Sp={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 Og(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function nh(a){let y=0;if(Pe(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Ng(a){if(Pe(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function Fm(a){let y="";if(Pe(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Lg(a){return a?a.map(y=>y.value).join(""):""}function Cs(a,y){var b,z,ne,ae,ue;function ke(at){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(at)?` <say-as interpret-as="character">${at}</say-as>`:/[A-Z]/.test(at)?`capital <say-as interpret-as="character">${at.toLowerCase()}</say-as>`:at:/[a-z]/.test(at)?" '"+at.toUpperCase()+"'":/[A-Z]/.test(at)?" 'capital "+at.toUpperCase()+"'":at}function Le(at){return"<emphasis>"+at+"</emphasis>"}if(!y)return"";let Ve="";if(Pe(y)){let at=!1,Ot=!1;for(let ln=0;ln<y.length;ln++)y[ln].type!=="first"&&(y[ln].mode!=="text"&&(Ot=!1),ln<y.length-2&&y[ln].type==="mopen"&&y[ln+2].type==="mclose"&&y[ln+1].type==="mord"?(Ve+=" of ",Ve+=Le(Cs(a,y[ln+1])),ln+=2):y[ln].mode==="text"?Ot?Ve+=(b=y[ln].value)!=null?b:" ":(Ot=!0,Ve+=Cs("text",y[ln])):y[ln].isDigit()?at?Ve+=y[ln].asDigit():(at=!0,Ve+=Cs(a,y[ln])):(at=!1,Ve+=Cs(a,y[ln])))}else if(y.mode==="text")y.id&&a==="math"&&(Ve+='<mark name="'+y.id.toString()+'"/>'),Ve+=y.value;else{y.id&&a==="math"&&(Ve+='<mark name="'+y.id.toString()+'"/>');let at="",Ot="",ln="",Zn=!1;const{command:nr}=y;switch(nr){case"\\vec":return"vector "+Cs(a,y.body);case"\\acute":return Cs(a,y.body)+" acute";case"\\grave":return Cs(a,y.body)+" grave";case"\\dot":return"dot over"+Cs(a,y.body);case"\\ddot":return"double dot over"+Cs(a,y.body);case"\\mathring":return"ring over"+Cs(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Cs(a,y.body);case"\\bar":return Cs(a,y.body)+" bar";case"\\breve":return Cs(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Cs(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Cs(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Cs(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Cs(a,y.body)}switch(y.type){case"prompt":const Fi=y.body.length>1?'start input . <break time="500ms"/> '+Cs(a,y.body)+'. <break time="500ms"/> end input':"blank";Ve+=' <break time="300ms"/> '+Fi+'. <break time="700ms"/>'+((z=y.correctness)!=null?z:"")+' . <break time="700ms"/> ';break;case"array":const eo=y.array,Ai=y.environmentName;if(Object.keys(Sp).includes(Ai)){Ve+=` begin ${Sp[Ai]} `;for(let Pa=0;Pa<eo.length;Pa++){Pa>0&&(Ve+=","),Ve+=` row ${Pa+1} `;for(let ul=0;ul<eo[Pa].length;ul++)ul>0&&(Ve+=","),Ve+=` column ${ul+1}: `,Ve+=Cs("math",eo[Pa][ul])}Ve+=` end ${Sp[Ai]} `}break;case"group":nr==="\\ne"?Ve+=" not equal ":(nr==="\\not"&&(Ve+=" not "),Ve+=Cs("math",y.body));break;case"root":Ve+=Cs("math",y.body);break;case"genfrac":if(at=Cs("math",y.above),Ot=Cs("math",y.below),nh(y.above)&&nh(y.below)){const ul={"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 "}[Fm(y.above)+"/"+Fm(y.below)];ul?Ve=ul:Ve+=at+" over "+Ot}else Ve+=' the fraction <break time="150ms"/>'+at+' over <break time="150ms"/>'+Ot+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(ln=Cs("math",y.body),y.hasEmptyBranch("above"))Ve+=nh(y.body)?" the square root of "+ln+" , ":' the square root of <break time="200ms"/>'+ln+'. <break time="200ms"/> End square root';else{let Pa=Cs("math",y.above);Pa=Pa.trim();const ul=Pa.replace(/<mark([^/]*)\/>/g,"");ul==="3"?Ve+=' the cube root of <break time="200ms"/>'+ln+'. <break time="200ms"/> End cube root':ul==="n"?Ve+=' the nth root of <break time="200ms"/>'+ln+'. <break time="200ms"/> End root':Ve+=' the root with index: <break time="200ms"/>'+Pa+', of <break time="200ms"/>'+ln+'. <break time="200ms"/> End root'}break;case"leftright":{const Pa=y;Ve+=(ne=Pa.leftDelim?Nf[Pa.leftDelim]:void 0)!=null?ne:Pa.leftDelim,Ve+=Cs("math",y.body),Ve+=(ae=Pa.rightDelim?Nf[Pa.rightDelim]:void 0)!=null?ae:Pa.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const pa=nr.replace(/^\\/g,""),ao=an()[pa];ao&&(ao!=null&&ao.expand?Ve+=Cs("math",y.body):Ve+=`${pa} `);break;case"placeholder":Ve+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(nr==="\\mathbin"||nr==="\\mathrel"||nr==="\\mathopen"||nr==="\\mathclose"||nr==="\\mathpunct"||nr==="\\mathord"||nr==="\\mathinner"){Ve=Cs(a,y.body);break}let Pa=y.isDigit()?y.asDigit():y.value,ul=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(ul=y.value,Pa=ul),a==="text")Ve+=Pa;else{if(y.type==="mbin"&&(Ve+='<break time="150ms"/>'),Pa){const Nl=Nf[Pa]||(ul?Nf[ul.trim()]:"");if(Nl)Ve+=" "+Nl;else{const El=ul?Og(ul.trim()):"";Ve+=El||ke(Pa)}}else Ve+=Cs("math",y.body);y.type==="mbin"&&(Ve+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const Pa=y.command;if(Pa==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ul=Cs("math",y.superscript);ul=ul.trim();let Nl=Cs("math",y.subscript);Nl=Nl.trim(),Ve+=' the summation from <break time="200ms"/>'+Nl+'<break time="200ms"/> to <break time="200ms"/>'+ul+'<break time="200ms"/> of <break time="150ms"/>',Zn=!0}else if(y.hasEmptyBranch("subscript"))Ve+=" the summation of";else{let ul=Cs("math",y.subscript);ul=ul.trim(),Ve+=' the summation from <break time="200ms"/>'+ul+'<break time="200ms"/> of <break time="150ms"/>',Zn=!0}else if(Pa==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ul=Cs("math",y.superscript);ul=ul.trim();let Nl=Cs("math",y.subscript);Nl=Nl.trim(),Ve+=' the product from <break time="200ms"/>'+Nl+'<break time="200ms"/> to <break time="200ms"/>'+ul+'<break time="200ms"/> of <break time="150ms"/>',Zn=!0}else if(y.hasEmptyBranch("subscript"))Ve+=" the product of ";else{let ul=Cs("math",y.subscript);ul=ul.trim(),Ve+=' the product from <break time="200ms"/>'+ul+'<break time="200ms"/> of <break time="150ms"/>',Zn=!0}else if(Pa==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ul=Cs("math",y.superscript);ul=ul.trim();let Nl=Cs("math",y.subscript);Nl=Nl.trim(),Ve+=' the integral from <break time="200ms"/>'+Le(Nl)+'<break time="200ms"/> to <break time="200ms"/>'+Le(ul)+' <break time="200ms"/> of ',Zn=!0}else Ve+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const ul=(ue=Nf[y.value])!=null?ue:y.command?Nf[y.command]:void 0;Ve+=ul||" "+y.value}else y.command&&(y.command==="\\mathop"?Ve+=Cs("math",y.body):y.command==="\\operatorname"?Ve+=Lg(y.body):Ve+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":ln=Cs("math",y.body),Ve+=" crossed out "+ln+". End crossed out.";break;case"space":case"spacing":break}if(!Zn&&!y.hasEmptyBranch("superscript")){let Fi=Cs(a,y.superscript);Fi=Fi.trim();const eo=Fi.replace(/<[^>]*>/g,"");if(nh(y.superscript)){if(a==="math"){const Ai=Ng(y.superscript);Ai&&(Ve+='<mark name="'+Ai+'"/>')}eo==="\u2032"?Ve+=" prime ":eo==="2"?Ve+=" squared ":eo==="3"?Ve+=" cubed ":Number.isNaN(Number.parseInt(eo))?Ve+=" to the "+Fi+"; ":Ve+=' to the <say-as interpret-as="ordinal">'+eo+"</say-as> power; "}else Number.isNaN(Number.parseInt(eo))?Ve+=" raised to the "+Fi+"; ":Ve+=' raised to the <say-as interpret-as="ordinal">'+eo+"</say-as> power; "}if(!Zn&&!y.hasEmptyBranch("subscript")){let Fi=Cs("math",y.subscript);Fi=Fi.trim(),Ve+=nh(y.subscript)?" sub "+Fi:" subscript "+Fi+". End subscript. "}}return Ve}function Lf(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ne=Ks(a);if(ne){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=pe(Se({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=pe(Se({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=pe(Se({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const ae=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&ae.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let ue="";try{ue=ae.toSpeech(ne)}catch(ke){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",ke)}return ue}return""}let z=Cs("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ne="";window.MathfieldElement.speechEngineRate&&(ne='<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>'+ne+"<p><s>"+z+"</s></p>"+(ne?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&be()==="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 rh={"\\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"},ih={"\\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 Tg(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 Hu(a){var y,b,z,ne,ae,ue,ke,Le,Ve,at,Ot,ln,Zn;if(!a)return"";if(Pe(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Hu).join("");if(a[0].mode==="text"){let ao=0,Pa="";for(;((y=a[ao])==null?void 0:y.mode)==="text";)Pa+=a[ao].body?Hu(a[ao].body):a[ao].value,ao++;return`"${Pa}" ${Hu(a.slice(ao))}`}let Ai=0;const pa=[];for(;a[Ai]&&a[Ai].mode==="math";){let ao="";for(;a[Ai]&&a[Ai].type==="mord"&&/\d/.test(a[Ai].value);)ao+=a[Ai++].value;ao?pa.push(ao):pa.push(Hu(a[Ai++]))}return pa.push(Hu(a.slice(Ai))),Tg(pa)}if(a.mode==="text")return`"${a.value}"`;let nr="";const{command:Fi}=a;let eo;if(Fi==="\\placeholder")return`(${Hu(a.body)})`;switch(a.type){case"accent":const Ai={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Fi];nr=`${Ai!=null?Ai:""} ${Hu(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(El=>El.value).join("");case"group":case"root":nr=(b=rh[Fi])!=null?b:Hu(a.body);break;case"genfrac":{const El=a;(El.leftDelim||El.rightDelim)&&(nr=El.leftDelim==="."||!El.leftDelim?"{:":El.leftDelim),El.hasBarLine?(nr+="(",nr+=Hu(El.above),nr+=")/(",nr+=Hu(El.below),nr+=")"):(nr+="("+Hu(El.above)+"),",nr+="("+Hu(El.below)+")"),(El.leftDelim||El.rightDelim)&&(nr+=El.rightDelim==="."||!El.rightDelim?"{:":El.rightDelim)}break;case"surd":nr+=a.hasEmptyBranch("above")?"sqrt("+Hu(a.body)+")":"root("+Hu(a.above)+")("+Hu(a.body)+")";break;case"latex":nr=a.value;break;case"leftright":{const El=a,Ms=El.leftDelim;nr+=Ms==="."||!Ms?"{:":Ms,nr+=Hu(El.body);const ru=El.matchingRightDelim();nr+=ru==="."||!ru?":}":ru}break;case"sizeddelim":case"delim":nr=a.value;break;case"overlap":break;case"overunder":break;case"mord":nr=(ne=(z=rh[Fi])!=null?z:Fi)!=null?ne:typeof a.value=="string"?a.value:"",nr.startsWith("\\")&&(nr+=" "),eo=Fi?Fi.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,eo?nr=String.fromCodePoint(Number.parseInt("0x"+eo[1])):nr.length>0&&nr.startsWith("\\")&&(nr=typeof a.value=="string"?a.value.charAt(0):a.command),nr=Rg(nr,a.style);break;case"mbin":case"mrel":case"minner":nr=(ue=(ae=rh[Fi])!=null?ae:ih[Fi])!=null?ue:a.value;break;case"mopen":case"mclose":nr=a.value;break;case"mpunct":nr=(ke=ih[Fi])!=null?ke:Fi;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(ih[Fi]?nr=ih[Fi]:nr=Fi==="\\operatorname"?Hu(a.body):(Le=a.value)!=null?Le:Fi,nr+=" ");break;case"array":const pa=a.array,ao=a.environmentName,Pa=(Ve={bmatrix:["[","]"],"bmatrix*":["[","]"]}[ao])!=null?Ve:["(",")"],ul=[];for(const El of pa){const Ms=[];for(const ru of El)Ms.push(Pa[0]+Hu(ru)+Pa[1]);ul.push(Ms.join(","))}const Nl=(at={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[ao])!=null?at:["(",")"];nr=Nl[0]+ul.join(",")+Nl[1];break;case"box":break;case"spacing":nr=(Ot=rh[Fi])!=null?Ot:" ";break;case"enclose":nr="("+Hu(a.body)+")";break;case"space":nr=" ";break;case"subsup":nr="";break;case"macro":nr=(Zn=(ln=rh[Fi])!=null?ln:ih[Fi])!=null?Zn:Hu(a.body);break}if(!a.hasEmptyBranch("subscript")){nr+="_";const Ai=Hu(a.subscript);nr+=Ai.length!==1?`(${Ai})`:Ai}if(!a.hasEmptyBranch("superscript")){nr+="^";const Ai=Hu(a.superscript);nr+=Ai.length!==1?`(${Ai})`:Ai}return nr}function Rg(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 rc(a,y){var b,z;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ne=new bl({from:pe(Se({},is()),{renderPlaceholder:()=>new ha(160,{maxFontSize:1}),letterShapeStyle:(z=y==null?void 0:y.letterShapeStyle)!=null?z:"tex"}),mathstyle:y.mathstyle}),ue=new Ri({mode:"math",type:"root",body:Pt(a,{context:ne,parseMode:"math",mathstyle:y.mathstyle})}).render(ne);return ue?(qs(dd(ue,ne)),Ku(ue,{classes:"ML__latex"}).toMarkup()):""}function Dy(a){return Fn(a,{context:is()})}function _g(a,y={}){return Ks(Pt(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function zg(a){const y=Pt(a,{parseMode:"math",mathstyle:"displaystyle"});return Lf(y)}var Wh;function Kg(a){var y,b;if(!Wh){const z=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;z?Wh=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=Wh==null?void 0:Wh.box(a).latex)!=null?b:""}function By(a,y="math"){return Hu(new Ri({type:"root",body:Pt(a,{parseMode:y})}))}function ky(a){return Cc(a,{format:"ascii-math"})[1]}function wp(a){if(typeof a=="string"){const y=Hg(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Wg(a):"a"in a?Om(a):a}function Tf(a){return a<0?0:a>255?255:Math.round(a)}function Hg(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 Ap(a){const[y,b,z]=[a.L,a.C,a.H],ne=z*Math.PI/180,ae={L:y,a:b*Math.cos(ne),b:b*Math.sin(ne)};return a.alpha!==void 0&&(ae.alpha=a.alpha),ae}function Zg(a){const[y,b,z]=[a.L,a.a,a.b],ne=Math.sqrt(b*b+z*z),ue=Math.atan2(z,b)*180/Math.PI,ke={L:y,C:ne,H:ue};return a.alpha!==void 0&&(ke.alpha=a.alpha),ke}function Mp(a){const[y,b,z]=[a.L,a.a,a.b],ne=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*z,3),ae=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*z,3),ue=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*z,3),ke=4.076741661347994*ne-3.307711590408193*ae+.230969928729428*ue,Le=-1.2684380040921763*ne+2.6097574006633715*ae-.3413193963102197*ue,Ve=-.004196086541837188*ne-.7034186144594493*ae+1.7076147009309444*ue,at=Ot=>{const ln=Math.abs(Ot);return ln<=.0031308?Ot*12.92:(Math.sign(Ot)||1)*(1.055*Math.pow(ln,1/2.4)-.055)};return[at(ke),at(Le),at(Ve)]}function Dp(a){const[y,b,z]=a;return y>=0&&y<=1&&b>=0&&b<=1&&z>=0&&z<=1}function Bp(a,y){let[b,z,ne]=a;return b=Tf(b*255),z=Tf(z*255),ne=Tf(ne*255),y!==void 0?{r:b,g:z,b:ne,alpha:y}:{r:b,g:z,b:ne}}function Om(a){let[y,b,z]=Mp(a);if(Dp([y,b,z]))return Bp([y,b,z],a.alpha);const ne=Zg(a);if(ne.C=0,[y,b,z]=Mp(Ap(ne)),!Dp([y,b,z]))return Bp([y,b,z],a.alpha);let ae=0,ue=a.L,ke=(ae+ue)/2;ne.C=ke;const Le=.36/Math.pow(2,12);for(;ue-ae>Le;)ke=(ae+ue)/2,ne.C=ke,[y,b,z]=Mp(Ap(ne)),Dp([y,b,z])?ae=ke:ue=ke;return Bp([y,b,z],a.alpha)}function Wg(a){return Om(Ap(a))}function Nm(a,y){const b=wp(a),z=wp(y),ne=.56,ae=.57,ue=.62,ke=.65,Le=.022,Ve=1.414,at=.1,Ot=5e-4,ln=1.14,Zn=.027,nr=1.14,Fi=.027;function eo(El){return El>=Le?El:El+Fd(Le-El,Ve)}function Ai(El){return(El<0?-1:1)*Math.pow(Math.abs(El),2.4)}const pa=eo(Ai(z.r/255)*.2126729+Ai(z.g/255)*.7151522+Ai(z.b/255)*.072175),ao=eo(Ai(b.r/255)*.2126729+Ai(b.g/255)*.7151522+Ai(b.b/255)*.072175);let Pa,ul,Nl;return Math.abs(ao-pa)<Ot?ul=0:ao>pa?(Pa=Fd(ao,ne)-Fd(pa,ae),ul=Pa*ln):(Pa=Fd(ao,ke)-Fd(pa,ue),ul=Pa*nr),Math.abs(ul)<at?Nl=0:ul>0?Nl=ul-Fi:Nl=ul+Zn,Nl*100}function Lm(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const z=Nm(a,b),ne=Nm(a,y);return Math.abs(z)>Math.abs(ne)?b:y}function jg(a){const y=wp(a);let b=((1<<24)+(Tf(y.r)<<16)+(Tf(y.g)<<8)+Tf(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 Su(a){const y=Tm(a);let b="";for(const z of y){if(typeof z.value!="string")return"";b+=z.value}return b}function Tm(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Ug(a,y){const b=Tm(a);if(b.length!==1)return!1;const z=_d[y];return z?!!z.test(b[0].value):!1}function Vg(a,y){return Su(a).length>0}function Gg(a){return[kp(a,"double-struck","mathbb","tooltip.blackboard"),kp(a,"fraktur","mathfrak","tooltip.fraktur"),kp(a,"calligraphic","mathcal","tooltip.caligraphic"),Ip(a,"up","mathrm","tooltip.roman-upright"),Ip(a,"bold","mathbf","tooltip.bold"),Ip(a,"italic","mathit","tooltip.italic")]}function Qg(a){return[{label:()=>rc(`\\vec{${Su(a)}}`),visible:()=>Su(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>rc(`\\overrightarrow{${Su(a)}}`),visible:()=>Su(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>rc(`\\overleftarrow{${Su(a)}}`),visible:()=>Su(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>rc(`\\dot{${Su(a)}}`),visible:()=>Su(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>rc(`\\ddot{${Su(a)}}`),visible:()=>Su(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>rc(`\\bar{${Su(a)}}`),visible:()=>Su(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>rc(`\\overline{${Su(a)}}`),visible:()=>Su(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>rc(`\\overgroup{${Su(a)}}`),visible:()=>Su(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>rc(`\\overbrace{${Su(a)}}`),visible:()=>Su(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>rc(`\\underline{${Su(a)}}`),visible:()=>Su(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>rc(`\\undergroup{${Su(a)}}`),visible:()=>Su(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>rc(`\\underbrace{${Su(a)}}`),visible:()=>Su(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Yg(a){return[{label:()=>rc(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>rc(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>rc(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Xg(a){const y=[];for(const b of Object.keys(Ye))y.push({class:(jg(Lm(Ye[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ye[b]} "></span>`,ariaLabel:()=>{var z;return(z=Ze(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 Jg(a){const y=[];for(const b of Object.keys(Ne))y.push({class:(Lm(Ne[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ne[b]} "></span>`,ariaLabel:()=>{var z;return(z=Ze(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 $g=class extends Sm{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 qg(a){const y=[];for(let b=1;b<=5;b++)for(let z=1;z<=5;z++)y.push({onCreate:(ne,ae)=>new $g(ne,ae,b,z),label:"\u2610",tooltip:()=>Ze("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 ey(a){return[{label:()=>Ze("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>vf(a)},{label:()=>Ze("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>vf(a)},{label:()=>Ze("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>vf(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,z]=ny(a);return b<y.maxColumns}},{label:()=>Ze("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>vf(a)},{type:"divider"},{label:()=>Ze("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>vf(a)},{label:()=>Ze("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>vf(a)},{type:"divider"},{label:()=>Ze("menu.borders"),visible:()=>(ty(a)||vf(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>ah(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>ah(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>ah(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>ah(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>ah(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>Ze("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:qg(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>Ze("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>Ze("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Af(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>Ze("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Af(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>Ze("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>Ze("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Gg(a),submenuClass:"variant-submenu"},{label:()=>Ze("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Jg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Ze("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Xg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Ze("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Qg(a),submenuClass:"variant-submenu"},{label:()=>Ze("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Su(a).length>0,submenu:Yg(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>Ze("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=ry(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:()=>Ze("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?Ze("menu.solve-for",rc(b)):Ze("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],ne=(y=b.solve(z))==null?void 0:y.map(ae=>{var ue;return(ue=ae.simplify().latex)!=null?ue:""});if(!ne){a.model.announce("plonk");return}a.insert(`${z}=${ne.length===1?ne[0]:"\\left\\lbrace"+(ne==null?void 0:ne.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>Ze("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>Ze("menu.copy"),id:"copy",submenu:[{label:()=>Ze("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Gl.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>Ze("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Gl.copyToClipboard(a,"ascii-math")},{label:()=>Ze("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Gl.copyToClipboard(a,"math-ml")}]},{label:()=>Ze("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>Ze("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function vf(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function ty(a){return a.model.at(a.model.position).type==="array"}function ny(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((z,ne)=>Math.max(z,ne.length),0)]:[0,0]}function ah(a,y){vh(a),a.flushInlineShortcutBuffer(),tm(a.model,y),Ru(a)}function ry(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 ne=z.evaluate();return ne.isSame(z)&&(ne=z.N()),ne.latex}function kp(a,y,b,z){return{label:()=>rc(`\\${b}{${Su(a)}}`),tooltip:()=>{var ne;return(ne=Ze(z))!=null?ne:z},visible:()=>Ug(a,y),checked:()=>{var ne;return{some:"mixed",all:!0}[(ne=a.queryStyle({variant:y}))!=null?ne:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Ip(a,y,b,z){return{label:()=>rc(`\\${b}{${Su(a)}}`),tooltip:()=>{var ne;return(ne=Ze(z))!=null?ne:z},visible:()=>Vg(a,y),checked:()=>{var ne;return{some:"mixed",all:!0}[(ne=a.queryStyle({variantStyle:y}))!=null?ne:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Rf(a,y){return a+Lf(y)}_c({speak:(a,y,b)=>iy(a,y,b)},{target:"mathfield"});function iy(a,y,b){var z,ne;b=b!=null?b:{withHighlighting:!1};const{model:ae}=a;function ue(at){let Ot=null;switch(at){case"all":Ot=ae.root;break;case"selection":Ot=ae.getAtoms(ae.selection);break;case"left":{Ot=ae.getAtoms(ae.offsetOf(ae.at(ae.position).leftSibling),ae.position);break}case"right":{Ot=ae.getAtoms(ae.position,ae.offsetOf(ae.at(ae.position).rightSibling));break}case"group":Ot=ae.getAtoms(ae.getSiblingsRange(ae.position));break;case"parent":{const{parent:ln}=ae.at(ae.position);ln!=null&&ln.parent?Ot=ln:Ot=ae.root;break}default:Ot=ae.root}return Ot}function ke(at){let Ot="";switch(at){case"all":console.log("Internal failure: speak all failed");break;case"selection":Ot="no selection";break;case"left":Ot="at start";break;case"right":Ot="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Ot="no parent";break;default:console.log('unknown speak_ param value: "'+at+'"');break}return Ot}const Le=ue(y);if(Le===null)return(ne=(z=window.MathfieldElement).speakHook)==null||ne.call(z,ke(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Ve=Lf(Le);return rt()&&b.withHighlighting?(qd().readAloudMathfield=a,lf(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Ve)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Ve),!1}function ay(a){var y,b;if(!rt()){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"}),ne={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(ne,(ae,ue)=>{if(ae)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ae}`);else if(ue!=null&&ue.AudioStream){const ke=new Uint8Array(ue.AudioStream),Le=new Blob([ke.buffer],{type:"audio/mpeg"}),Ve=URL.createObjectURL(Le);new Audio(Ve).play().catch(Ot=>console.log(Ot))}else console.log("polly.synthesizeSpeech():",ue)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function Rm(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 oy(a,y,b,z){let ne="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ne=Rf("deleted: ",z);else if(y==="focus"||y.includes("move"))ne=ly(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+sy(a.model);else if(y==="replacement")ne=Rf("",a.model.at(a.model.position));else if(y==="line"){const ae=Rf("",a.model.root);a.keyboardDelegate.setAriaLabel(ae)}else ne=z?Rf(y+" ",z):y;if(ne){const ae=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ne+ae}}function ly(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let z="",ne=b.parent;const ae=a.at(a.position).parent;for(;ne!==a.root&&ne!==ae;)z+=`out of ${Rm(ne)};`,ne=ne.parent;return z}function sy(a){if(!a.selectionIsCollapsed)return Rf("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),z=Rm(b);return b.isFirstSibling&&(y=(z?"start of "+z:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=z?"end of "+z:"unknown"):y+=Rf("",b),y}var uy=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 ne={};if((y==null?void 0:y.type)==="undo"&&(ne={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ne={inputType:"historyRedo"}),this.contentWillChange(ne)){const ae=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=Dc(a.content),this.selection=a.selection,this.silenceNotifications=ae,this.contentDidChange(ne)}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,ne;const ae=this.normalizeSelection(a,y);if(ae===void 0)throw new TypeError("Invalid selection");if(ae.ranges.length===1&&ae.ranges[0][0]===ae.ranges[0][1]){const at=ae.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(at))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((z=this.at(at-1))!=null&&z.parentPrompt){this._anchor=this.normalizeOffset(at-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ne=this.at(at+1))!=null&&ne.parentPrompt){this._anchor=this.normalizeOffset(at+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=at,this._position=at,this._selection=ae;return}const ue=Iu(ae);ae.direction==="backward"?[this._position,this._anchor]=ue:[this._anchor,this._position]=ue;const ke=this.at(ue[0]+1),Le=this.at(ue[1]),Ve=Ri.commonAncestor(ke,Le);(Ve==null?void 0:Ve.type)==="array"&&ke.parent===Ve&&Le.parent===Ve?this._selection={ranges:[ue],direction:ae.direction}:this._selection={ranges:[ue],direction:ae.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 Pl&&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(ad(a)){if(z=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Ve,at)=>[...Ve,...this.getAtoms(at,z)],[]);a=a.ranges[0]}let ne,ae;if(lc(a)){if(ne=a,!lc(y))return[];ae=y}else[ne,ae]=a,z=y!=null?y:{};if(!Number.isFinite(ne))return[];z.includeChildren===void 0&&(z.includeChildren=!1),ne<0&&(ne=this.lastOffset-ne+1),ae<0&&(ae=this.lastOffset-ae+1);const ue=Math.min(ne,ae)+1,ke=Math.max(ne,ae);if(!z.includeChildren&&ue===1&&ke===this.lastOffset)return[this.root];let Le=[];for(let Ve=ue;Ve<=ke;Ve++){const at=this.atoms[Ve];_m(this,at,ue,ke)&&Le.push(at)}return z.includeChildren||(Le=Le.filter(Ve=>{let at=!1,{parent:Ot}=Ve;for(;Ot&&!at;)at=_m(this,Ot,ue,ke),Ot=Ot.parent;return!at})),Le}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 ne=this.lastOffset;if(b==="forward"){for(let ae=y;ae<=ne;ae++)if(z=this.atoms[ae],a(z))return z;for(let ae=0;ae<y;ae++)if(z=this.atoms[ae],a(z))return z;return}for(let ae=y;ae>=0;ae--)if(z=this.atoms[ae],a(z))return z;for(let ae=ne;ae>y;ae--)if(z=this.atoms[ae],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 Ri({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 Ri.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 Ks(a);if(b==="spoken")return Lf(a);if(b==="spoken-text"){const z=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ne=Lf(a);return window.MathfieldElement.textToSpeechMarkup=z,ne}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const z=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ne=Lf(a);return window.MathfieldElement.textToSpeechMarkup=z,ne}return b==="ascii-math"?Hu(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,ne;if(lc(a)&&lc(y)?(z=[this.normalizeRange([a,y])],ne=b):Nc(a)?(z=[this.normalizeRange(a)],ne=y):ad(a)?(z=a.ranges,ne=y):(z=[this.normalizeRange([0,-1])],ne=a),ne!=null||(ne="latex"),ne==="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 ae=this.getValue({ranges:z},"latex-unstyled");try{const ue=window.MathfieldElement.computeEngine.parse(ae);return JSON.stringify(ue.json)}catch(ue){return JSON.stringify(["Error",`'${ue.toString()}'`])}}if(ne.startsWith("latex")){const ae={expandMacro:ne==="latex-expanded",skipStyles:ne==="latex-unstyled",skipPlaceholders:ne==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return zl(z.map(ue=>Ri.serialize(this.getAtoms(ue),ae)))}return z.map(ae=>this.getAtoms(ae).map(ue=>this.atomToString(ue,ne)).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,ne]=b,{parent:ae}=this.at(ne);if(ae&&(ae.type==="genfrac"||ae.type==="subsup"))for(;ae!==this.root&&Pp(this,ae,[z,ne]);)ne=this.offsetOf(ae),ae=ae.parent;for(ae=this.at(z).parent;ae!==this.root&&Pp(this,ae,[z,ne]);)z=this.offsetOf(ae.leftSibling),ae=ae.parent;if(ae=this.at(ne).parent,(ae==null?void 0:ae.type)==="genfrac")for(;ae!==this.root&&Pp(this,ae,[z,ne]);)ne=this.offsetOf(ae),console.assert(ne>=0),ae=ae.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[z,ne]],direction:"none"}})}announce(a,y,b=[]){var z,ne;((ne=(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?ne:!0)&&oy(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,z=this._anchor,ne=this._position,ae=this.silenceNotifications;this.silenceNotifications=!0;const ue=this.root.changeCounter;y();const ke=this.root.changeCounter!==ue,Le=z!==this._anchor||ne!==this._position||id(this._selection,b)==="different";return this.silenceNotifications=ae,a.content&&ke&&this.contentDidChange({inputType:a.type}),a.selection&&Le&&this.selectionDidChange(),ke||Le}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(lc(a)){const ne=this.normalizeOffset(a);if(lc(y)){const ae=this.normalizeOffset(y);z=ne<=ae?{ranges:[[ne,ae]],direction:"none"}:{ranges:[[ae,ne]],direction:"backward"}}else z={ranges:[[ne,ne]],direction:"none"}}else if(Nc(a)){const ne=this.normalizeOffset(a[0]),ae=this.normalizeOffset(a[1]);z=ne<=ae?{ranges:[[ne,ae]],direction:"none"}:{ranges:[[ae,ne]],direction:"backward"}}else ad(a)&&(z={ranges:a.ranges.map(ne=>this.normalizeRange(ne)),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(wd(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",pe(Se({},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(wd(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function _m(a,y,b,z){const ne=a.offsetOf(y);if(ne<b||ne>z)return!1;if(!y.hasChildren)return!0;const ae=a.offsetOf(y.firstChild);if(ae>=b&&ae<=z){const ue=a.offsetOf(y.lastChild);if(ue>=b&&ue<=z)return!0}return!1}function Pp(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[z,ne]=b,ae=a.offsetOf(y.firstChild),ue=a.offsetOf(y.lastChild);return ae>=z&&ae<=ne&&ue>=ae&&ue<=ne}function oh(a,y,b,z){var ne,ae,ue,ke,Le,Ve;const at=b.parent;if(at&&b instanceof Ps){const Ot=!z&&y==="forward"||z==="body"&&y==="backward";let ln=Ot?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Ot?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(at.addChildrenAfter(b.removeBranch("body"),b),at.removeChild(b),ln--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(at.addChildrenAfter(b.removeBranch("body"),b),at.removeChild(b),ln--),a.position=ln,!0}if(at&&b.type==="surd"){if(y==="forward"&&!z||y==="backward"&&z==="body"){const Ot=b.leftSibling;b.hasChildren&&at.addChildrenAfter(b.removeBranch("body"),b),at.removeChild(b),a.position=a.offsetOf(Ot)}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),at.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(at&&(b.type==="box"||b.type==="enclose")){const Ot=z&&y==="backward"||!z&&y==="forward"?b.leftSibling:b.lastChild;return at.addChildrenAfter(b.removeBranch("body"),b),at.removeChild(b),a.position=a.offsetOf(Ot),!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 Ot=lh.fractionNavigationOrder==="numerator-denominator"?"above":"below",ln=Ot==="above"?"below":"above";if(at&&(y==="forward"&&z===Ot||y==="backward"&&z===ln)){const Zn=b.removeBranch(Ot),nr=b.removeBranch(ln);return at.addChildrenAfter([...Zn,...nr],b),at.removeChild(b),a.position=a.offsetOf(Zn.length>0?Zn[Zn.length-1]:nr[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 Ot=y==="forward"?(ue=(ne=b.superscript)==null?void 0:ne[0])!=null?ue:(ae=b.subscript)==null?void 0:ae[0]:(Ve=(ke=b.subscript)==null?void 0:ke[0].lastSibling)!=null?Ve:(Le=b.superscript)==null?void 0:Le[0].lastSibling;return Ot&&(a.position=a.offsetOf(Ot)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Ot=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Ot,!0}if(z==="superscript")if(y==="backward"){const Ot=a.offsetOf(b.firstChild)-1;console.assert(Ot>=0),a.position=Ot}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 Ot=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Ot}return!0}if((at==null?void 0:at.type)==="genfrac"&&!z&&b.type!=="first"){let Ot=a.offsetOf(b.leftSibling);return at.removeChild(b),at.hasEmptyBranch("above")&&at.hasEmptyBranch("below")?(Ot=a.offsetOf(at.leftSibling),at.parent.removeChild(at),a.announce("delete",void 0,[at]),a.position=Ot,!0):(a.announce("delete",void 0,[b]),a.position=Ot,!0)}if(y==="backward"&&((at==null?void 0:at.command)==="\\ln"||(at==null?void 0:at.command)==="\\log")&&b.parentBranch!=="body"){const Ot=a.offsetOf(at.leftSibling);return at.parent.removeChild(at),a.announce("delete",void 0,[at]),a.position=Ot,!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&&oh(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(oh(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])}}):Md(a,Iu(a.selection),"deleteContentBackward")}function dy(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&&oh(a,"forward",z))return;if(z){if(a.at(a.position).isLastSibling&&oh(a,"forward",z.parent,z.parentBranch))return}else{if(z=a.at(a.position),z.isLastSibling&&oh(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 ne=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ne==null?void 0:ne.type)==="subsup";)ne.parent.removeChild(ne),ne=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[z])}):Md(a,Iu(a.selection),"deleteContentForward")}function Md(a,y,b){const z=a.getAtoms(y);if(z.length>0&&z[0].parent){let ne=z[0].parent.firstChild;ne.type==="first"&&(ne=ne.rightSibling);const ae=z[z.length-1].parent.lastChild;let ue=z[0];ue.type==="first"&&(ue=ue.rightSibling);const ke=z[z.length-1];if(ue===ne&&ke===ae){const Le=z[0].parent;Le.parent&&Le.type!=="prompt"&&(y=[a.offsetOf(Le.leftSibling),a.offsetOf(Le)])}if(z.length===1&&z[0].type==="placeholder"&&z[0].parent.type==="genfrac"){const Le=z[0].parent,Ve=z[0].parentBranch==="below"?"above":"below",at=a.offsetOf(Le.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Ot,ln;const Zn=Le.removeBranch(Ve);if(Zn.length===1&&Zn[0].type==="placeholder")(ln=Le.parent)==null||ln.removeChild(Le),a.position=Math.max(0,at);else{const nr=Le.parent.addChildrenAfter(Zn,Le);(Ot=Le.parent)==null||Ot.removeChild(Le),a.position=a.offsetOf(nr)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}_c({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Md(a,[0,-1],"deleteContent"),deleteForward:a=>dy(a),deleteBackward:a=>cy(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Md(a,[a.anchor,op(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Md(a,[a.anchor,op(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Md(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Md(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Md(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Md(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var fy=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${Ze("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>`,hy=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${Ze("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>`,py=class{constructor(a,y){this.focusBlurInProgress=!1;var b,z,ne;this.options=Se(pe(Se({},Dh()),{macros:an(),registers:Oc()}),Mh(y)),this.eventController=new AbortController;const ae=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 ue=(z=(b=y.value)!=null?b:this.element.textContent)!=null?z:"";ue=ue.trim();const ke=$p(this.options),Le=new Ri({type:"root",mode:ke,body:Pt(ue,{context:this.context})});this.model=new uy(this,ke,Le),this.undoManager=new zv(this.model);const Ve=[];if(Ve.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>"),Ve.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Ve.push("<span part=content class=ML__content>"),Ve.push(jp(this)),Ve.push("</span>"),window.mathVirtualKeyboard&&(Ve.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">`),Ve.push(fy),Ve.push("</div>")),Ve.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Ve.push(hy),Ve.push("</div>"),Ve.push("</span>"),Ve.push("<span class=ML__sr-only>"),Ve.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Ve.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Ve.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=Je.subscribe(()=>Je.update(this.element)),Je.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Ot=>Ot.stopImmediatePropagation(),{capture:!1,signal:ae}),this.field.addEventListener("wheel",this,{passive:!1,signal:ae}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:ae}):this.field.addEventListener("mousedown",this,{signal:ae}),(ne=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ne.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(wd(this)))},{signal:ae}),this._menu=new wg(ey(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:ae});const at=this.element.querySelector("[part=menu-toggle]");at==null||at.addEventListener("pointerdown",Ot=>{if(Ot.currentTarget!==at||this._menu.state!=="closed")return;this.element.classList.add("tracking");const ln=at.getBoundingClientRect();this._menu.modifiers=of(Ot),this._menu.show({target:at,location:{x:ln.left,y:ln.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Ot.preventDefault(),Ot.stopPropagation()},{signal:ae}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(at.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=j0(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:ae}),document.addEventListener("scroll",this,{signal:ae}),this.resizeObserver=new ResizeObserver(()=>Ru(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:ae}),Uf&&!Je.locale.startsWith(Uf.locale)&&K0(Je.locale),Vc!=="ready"&&document.fonts.ready.then(()=>Eh(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(wd(this)),zh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,gp())}showMenu(a){var y,b;const z=(b=(y=a==null?void 0:a.location)!=null?y:Lc(this.field))!=null?b:void 0,ne=a==null?void 0:a.modifiers,ae=this.element.querySelector("[part=container]");return this._menu.show({target:ae,location:z,modifiers:ne})}get colorMap(){return a=>{var y,b,z;return(z=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?z:_e(a)}}get backgroundColorMap(){return a=>{var y,b,z,ne,ae,ue;return(ue=(ae=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?ae:(ne=(z=this.options).colorMap)==null?void 0:ne.call(z,a))!=null?ue:Me(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=Ri.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=Se({},a[0].style);for(const b of a)for(const[z,ne]of Object.entries(b.style))y[z]!==ne&&delete y[z];return y}queryStyle(a){const y=fp(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 Le of Object.keys(y)){const Ve=this.queryStyle({[Le]:y[Le]});if(Ve==="none")return"none";if(Ve==="some")return"some"}return"all"}const z=Object.keys(y)[0],ne=y[z];if(this.model.selectionIsCollapsed)return this.effectiveStyle[z]===ne?"all":"none";const ae=this.model.getAtoms(this.model.selection,{includeChildren:!0});let ue=ae.length;if(ue===0)return"none";let ke=0;for(const Le of ae){if(Le.type==="first"){ue-=1;continue}Le.style[z]===ne&&(ke+=1)}return ke===0?"none":ke===ue?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,z]=Y0(this.options.keybindings,(a=Vf())!=null?a:H0());return((y=Vf())==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=Se(Se({},this.options),Mh(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=Ri.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==z)&&Gl.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)&&Ru(this)}getOptions(a){return uf(this.options,a)}getOption(a){return uf(this.options,a)}handleEvent(a){return ef(this,null,function*(){var y;if(pc(this)){if(np(a)){if(!_s(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(Df(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"&&hm(this,a);break;case"pointerdown":this.userSelect!=="none"&&(hm(this,a),a.shiftKey===!1&&(yield Dm(a,this.element.querySelector("[part=container]"),this._menu))&&Lh.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield Dm(a,this.element.querySelector("[part=container]"),this._menu))&&Lh.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&zh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>pc(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>pc(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!pc(this))return;Je.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,Xv(),tv(),gg()}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 Df(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(wd(this))),!1):sv(this,a)}get errors(){return Fn(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=jd(this.model,this.model.position))!=null?b:"math");const z=this.undoManager.canUndo();Gl.insert(this.model,a,y)&&(Ru(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,ne=this.host.getBoundingClientRect();ne.bottom>z.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ne.bottom-z.top+8))}}this.dirty&&lf(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Lc(this.field);else{const z=Es(this);if(z.length>0){let ne=-1/0,ae=-1/0;for(const ue of z)ue.right>ne&&(ne=ue.right),ue.top<ae&&(ae=ue.top);b={x:ne+y.left-this.field.scrollLeft,y:ae+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const z=this.host.getBoundingClientRect(),ne=b.y;let ae=this.host.scrollTop;ne<z.top?ae=ne-z.top+this.host.scrollTop:ne>z.bottom&&(ae=ne-z.bottom+this.host.scrollTop+b.height),this.host.scroll({top:ae,left:0})}if(b){const z=b.x-window.scrollX;let ne=this.field.scrollLeft;z<y.left?ne=z-y.left+this.field.scrollLeft-20:z>y.right&&(ne=z-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ne})}}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&&He()&&navigator.vibrate(Up),window.MathfieldElement.playSound("keypress")),a==="\\\\"?qp(this.model):a==="&"?em(this.model):this.model.selectionIsCollapsed?Gl.insert(this.model,a,Se({style:this.model.at(this.model.position).computedStyle},y)):Gl.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Ru(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 ne=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=ne;return}const ae=this.model.mode,{model:ue}=this;ue.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let ke=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const Le=Pt(y,{context:this.context,parseMode:a});ue.collapseSelection("forward");const Ve=ue.at(ue.position);ue.position=ue.offsetOf(Ve.parent.addChildrenAfter(Le,Ve)),ke=!0}if(this.model.mode=a,a==="latex"){let Le=ue.selectionIsCollapsed;Af(this,"accept");let Ve,at=ue.at(ue.position);if(Le)Ve="\\";else{const ln=Iu(ue.selection);Ve=this.model.getValue(ln,"latex");const Zn=this.model.extractAtoms(ln);Zn.length===1&&Zn[0].type==="placeholder"&&(Ve=y,Le=!0),at=ue.at(ln[0])}const Ot=new ms(Ve);at.parent.addChildAfter(Ot,at),Le?ue.position=ue.offsetOf(Ot.lastChild):ue.setSelection(ue.offsetOf(Ot.firstChild),ue.offsetOf(Ot.lastChild))}else Gf(ue).forEach(Le=>{Le.isError=!1});if(b){const Le=Pt(b,{context:this.context,parseMode:ae});ue.collapseSelection("forward");const Ve=ue.at(ue.position);ue.position=ue.offsetOf(Ve.parent.addChildrenAfter(Le,Ve)),ke=!0}return Ru(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),ke}),this.model.mode=a,window.mathVirtualKeyboard.update(wd(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 ne={operation:"set",silenceNotifications:!1};Nc(y)?ne.range=y:(y.operation==="toggle"&&(ne.operation="toggle"),ne.range=y.range,ne.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const ae=fp(this,a),ue=(z=ne.operation)!=null?z:"set";if(ne.range===void 0&&this.model.selectionIsCollapsed){if(ue==="set"){this.defaultStyle=Se(Se({},this.defaultStyle),ae);return}const ke=Se({},this.defaultStyle);for(const Le of Object.keys(ae))ke[Le]===ae[Le]?(Le==="color"&&delete ke.verbatimColor,Le==="backgroundColor"&&delete ke.verbatimBackgroundColor,delete ke[Le]):ke[Le]=ae[Le];this.defaultStyle=ke;return}this.model.deferNotifications({content:!ne.silenceNotifications,type:"insertText"},()=>{if(ne.range===void 0)for(const ke of this.model.selection.ranges)ip(this.model,ke,ae,{operation:ue});else ip(this.model,ne.range,ae,{operation:ue})}),Ru(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=Lc(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=th(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),Ru(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),ne=this.model.offsetOf(b.lastChild);return this.model.getValue(z,ne,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 ne=this.model.getBranchRange(this.model.offsetOf(z),"body");this.model.setSelection(ne),this.insert(y,pe(Se({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Ru(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),Ru(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(wd(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(wd(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(wd(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),ne=(a=z.mode)!=null?a:$p(this.options);this.model.mode!==ne&&(this.model.mode==="latex"?(Af(this,"accept",{mode:ne}),b.position=b.offsetOf(z)):this.switchMode(ne))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(wd(this)),zh(this)}onContentWillChange(a){var y,b,z;return(z=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",pe(Se({},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(),lf(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="",Mf(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})),Ru(this),this.focusBlurInProgress=!1,gp();const z=new AbortController,ne=z.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{pc(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ne})},{once:!0,signal:ne}),setTimeout(()=>z.abort(),100)}onInput(a){up(this,a)}onKeystroke(a){return cm(this,a)}onCompositionStart(a){this.model.deleteAtoms(Iu(this.model.selection));const y=Lc(this.field);y&&requestAnimationFrame(()=>{lf(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Iv(this.model,a),Ru(this)}onCompositionEnd(a){Pv(this.model),up(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Gl.onCopy(this,a),Md(this.model,Iu(this.model.selection),"deleteByCut"),this.snapshot("cut"),Ru(this))}onCopy(a){Gl.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Gl.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(),yh(this),zh(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=>cr(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function zm(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)zm(y)}function Fp(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&&Fp(z)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(z=>{z instanceof HTMLElement&&Fp(z,y)})))}function my(a,y){var b;if(!rt())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"}),ne={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};qd().readAloudElement=a,z.synthesizeSpeech(ne,(ae,ue)=>{if(ae){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ae}`);return}if(!(ue!=null&&ue.AudioStream)){console.log("polly.synthesizeSpeech():",ue);return}const ke=new TextDecoder("utf-8").decode(new Uint8Array(ue.AudioStream));qd().readAloudMarks=ke.split(`
|
|
|
`).map(Le=>Le?JSON.parse(Le):{}),qd().readAloudTokens=[];for(const Le of qd().readAloudMarks)Le.value&&qd().readAloudTokens.push(Le.value);qd().readAloudCurrentMark="",ne.OutputFormat="mp3",ne.SpeechMarkTypes=[],z.synthesizeSpeech(ne,(Le,Ve)=>{if(Le){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${Le}`);return}if(!(Ve!=null&&Ve.AudioStream))return;const at=new Uint8Array(Ve.AudioStream),Ot=new Blob([at.buffer],{type:"audio/mpeg"}),ln=URL.createObjectURL(Ot),Zn=qd();Zn.readAloudAudio?Zn.readAloudAudio.pause():(Zn.readAloudAudio=new Audio,Zn.readAloudAudio.addEventListener("ended",()=>{const nr=Zn.readAloudMathfield;Zn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),nr?(lf(nr),Zn.readAloudElement=null,Zn.readAloudMathfield=null,Zn.readAloudTokens=[],Zn.readAloudMarks=[],Zn.readAloudCurrentMark=""):zm(Zn.readAloudElement)}),Zn.readAloudAudio.addEventListener("timeupdate",()=>{let nr="";const Fi=Zn.readAloudAudio.currentTime*1e3+100;for(const eo of Zn.readAloudMarks)eo.time<Fi&&(nr=eo.value);Zn.readAloudCurrentMark!==nr&&(Zn.readAloudCurrentToken=nr,nr&&nr===Zn.readAloudFinalToken?Zn.readAloudAudio.pause():(Zn.readAloudCurrentMark=nr,Fp(Zn.readAloudElement,Zn.readAloudCurrentMark)))})),Zn.readAloudAudio.src=ln,Zn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Zn.readAloudAudio.play()})})}rt()||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 Ns=new WeakMap,vy=.5,$d={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 = ..."},dc=class gf extends HTMLElement{static get formAssociated(){return _f()}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,iv())}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,ne;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:(ne=y.delete)!=null?ne: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 Je.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),Je.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 Je.strings}static set strings(y){Je.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 ef(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 ae=yield(yield fetch(yield Wp(`${z}/${b}`))).arrayBuffer(),ue=yield this.audioContext.decodeAudioData(ae);this.audioBuffers[y]=ue}catch(ne){}})}static playSound(y){return ef(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=vy,b.connect(z).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const z of Object.keys(y))if($d[z])if($d[z].startsWith("mf."))if($d[z].startsWith(`mf.${z}`))b.push(`Option \`${z}\` cannot be used as a constructor option. Use ${$d[z]}`);else{const ne=$d[z].match(/([a-zA-Z]+) =/);b.push(`Option \`${z}\` has been renamed \`${ne[1]}\``)}else b.push(`Option \`${z}\` cannot be used as a constructor option. Use ${$d[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(_f()&&(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=[Jc("core"),Jc("mathfield"),Jc("mathfield-element"),Jc("ui"),Jc("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>"+ud("core")+ud("mathfield")+ud("mathfield-element")+ud("ui")+ud("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(ne=>ne.nodeType===3?ne.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,ne;return(ne=(z=this._mathfield)==null?void 0:z.getPromptValue(y,b))!=null?ne:""}setPromptValue(y,b,z){var ne;(ne=this._mathfield)==null||ne.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 ne=(z=(b=gf.computeEngine)==null?void 0:b.box(y).latex)!=null?z:null;ne!==null&&this._mathfield.setValue(ne),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?uf(this._mathfield.options,y):Ns.has(this)?Se({},uf(Se(Se({},Dh()),Mh(Ns.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?uf(this._mathfield.options,y):Ns.has(this)?uf(Se(Se({},Dh()),Mh(Ns.get(this).options)),y):null}reflectAttributes(){const y=Dh(),b=this._getOptions();Object.keys(gf.optionsAttributes).forEach(z=>{const ne=Kd(z);gf.optionsAttributes[z]==="on/off"?y[ne]!==b[ne]?this.setAttribute(z,b[ne]?"on":"off"):this.removeAttribute(z):y[ne]!==b[ne]&&(gf.optionsAttributes[z]==="boolean"?b[ne]?this.setAttribute(z,""):this.removeAttribute(z):(typeof b[ne]=="string"||typeof b[ne]=="number")&&this.setAttribute(z,b[ne].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(Ns.has(this)){const b=Se(Se({},Ns.get(this).options),y);Ns.set(this,pe(Se({},Ns.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Ns.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))$d[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${$d[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 ne,ae;if(this._mathfield)return this._mathfield.model.getValue(y,b,z);if(Ns.has(this)){let ue,ke,Le;if(ad(y)?([ue,ke]=y.ranges[0],Le=b):Nc(y)?([ue,ke]=y,Le=b):lc(y)&&lc(b)?(ue=y,ke=b,Le=z):(ue=0,ke=-1,Le=y),(Le===void 0||Le==="latex")&&ue===0&&ke===-1)return(ae=(ne=Ns.get(this).value)!=null?ne:this.textContent)!=null?ae:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Ns.has(this)){const ne=Ns.get(this).options;Ns.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ne,menuItems:void 0});return}const z=sh(this);Ns.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,ne;return(ne=(z=this._mathfield)==null?void 0:z.insert(y,b))!=null?ne:!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,ne;return(ne=(z=this._mathfield)==null?void 0:z.setCaretPoint(y,b))!=null?ne:!1}offsetFromPoint(y,b,z){return this._mathfield?th(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=Zc(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,ne,ae;Ed.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"&&((ne=this._mathfield)==null||ne.focus()),y.type==="blur"&&((ae=this._mathfield)==null||ae.blur()))}connectedCallback(){var y,b,z,ne;const ae=window.getComputedStyle(this),ue=this.shadowRoot,ke=ae.userSelect!=="none";if(ke)ue.host.addEventListener("pointerdown",this,!0);else{const at=ue.querySelector("span");at.style.pointerEvents="none"}ue.host.addEventListener("focus",this,!0),ue.host.addEventListener("blur",this,!0),_f()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),ke&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const Le=ue.querySelector("slot:not([name])");if(Le)try{this._style=Le.assignedElements().filter(at=>at.tagName.toLowerCase()==="style").map(at=>at.textContent).join("")}catch(at){console.error(at)}if(this._style){const at=document.createElement("style");at.textContent=this._style,ue.appendChild(at)}let Ve="";if(this.hasAttribute("value")?Ve=this.getAttribute("value"):Ve=(y=Le==null?void 0:Le.assignedNodes().map(at=>at.nodeType===3?at.textContent:"").join("").trim())!=null?y:"",this._mathfield=new py(ue.querySelector(":host > span"),pe(Se({},(z=(b=Ns.get(this))==null?void 0:b.options)!=null?z:sh(this)),{eventSink:this,value:Ve})),!Ns.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const at of Object.keys(gf.optionsAttributes))this.upgradeProperty(Kd(at))}if(!((ne=this._mathfield)!=null&&ne.model)){this._mathfield=null;return}if(Ns.has(this)){const at=this._mathfield,Ot=Ns.get(this),ln=Ot.menuItems;at.model.deferNotifications({content:!1,selection:!1},()=>{const Zn=Ot.value;Zn!==void 0&&at.setValue(Zn),at.model.selection=Ot.selection,Ns.delete(this)}),ln&&(this.menuItems=ln)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),xh()}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=uf(this._mathfield.options,Object.keys(gf.optionsAttributes).map(ne=>Kd(ne)));Ns.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 ne=z!==null;switch(y){case"contenteditable":Ru(this._mathfield);break;case"disabled":this.disabled=ne;break;case"read-only":case"readonly":this.readOnly=ne;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),_f()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(_f()?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"),_f()?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,ne){return typeof z!="string"?!1:(y._setOptions({registers:pe(Se({},y._getOption("registers")),{[z]:ne})}),!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(ne=>ne.menuItem))!=null?y:[]:(z=(b=Ns.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}Ns.has(this)?Ns.set(this,pe(Se({},Ns.get(this)),{menuItems:y})):Ns.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:sh(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 ne;(ne=this._mathfield)==null||ne.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:Ns.has(this)?Ns.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,Ru(this._mathfield);return}if(Ns.has(this)){Ns.set(this,pe(Se({},Ns.get(this)),{selection:y}));return}Ns.set(this,{value:void 0,selection:y,options:sh(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:Ns.has(this)?Ns.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Ru(this._mathfield)),Ns.has(this)){Ns.set(this,pe(Se({},Ns.get(this)),{selection:{ranges:[[y,y]]}}));return}Ns.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:sh(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}};dc.version="0.98.5",dc._fontsDirectory="./fonts",dc._soundsDirectory="./sounds",dc.keypressVibration=!0,dc._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},dc._plonkSound="plonk.wav",dc.audioBuffers={},dc.createHTML=a=>a,dc._speechEngineRate="100%",dc._speechEngineVoice="Joanna",dc._textToSpeechMarkup="",dc._textToSpeechRules="mathlive",dc._textToSpeechRulesOptions={},dc.speakHook=ay,dc.readAloudHook=my,dc._decimalSeparator=".",dc.fractionNavigationOrder="numerator-denominator",dc._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 lh=dc;function Kd(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function sh(a){const y={readOnly:!1},b=lh.optionsAttributes;return Object.keys(b).forEach(z=>{if(a.hasAttribute(z)){const ne=a.getAttribute(z);z==="placeholder"?y.contentPlaceholder=ne!=null?ne:"":b[z]==="boolean"?y[Kd(z)]=!0:b[z]==="on/off"?ne==="on"?y[Kd(z)]=!0:ne==="off"?y[Kd(z)]=!1:y[Kd(z)]=void 0:b[z]==="number"?y[Kd(z)]=Number.parseFloat(ne!=null?ne:"0"):y[Kd(z)]=ne}}),y}function _f(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Km=lh,Hm,Zm,Wm,jm;if(rt()&&!((Hm=window.customElements)!=null&&Hm.get("math-field"))){(Wm=window[Zm=Symbol.for("io.cortexjs.mathlive")])!=null||(window[Zm]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=lh,(jm=window.customElements)==null||jm.define("math-field",lh)}function gy(a,y,b){let z=b,ne=0;const ae=a.length;for(;z<y.length;){const ue=y[z];if(ne<=0&&y.slice(z,z+ae)===a)return z;ue==="\\"?z++:ue==="{"?ne++:ue==="}"&&ne--,z++}return-1}function jh(a,y,b,z,ne="latex"){const ae=[];for(const ue of a)if(ue.type==="text"){const ke=ue.data;let Le=!0,Ve=0,at;at=ke.indexOf(y),at!==-1&&(Ve=at,Ve>0&&ae.push({type:"text",data:ke.slice(0,Ve)}),Le=!1);let Ot=!1;for(;!Ot;){if(Le){if(at=ke.indexOf(y,Ve),at===-1){Ot=!0;break}Ve!==at&&ae.push({type:"text",data:ke.slice(Ve,at)}),Ve=at}else{if(at=gy(b,ke,Ve+y.length),at===-1){Ot=!0;break}let ln=ke.slice(Ve+y.length,at);ne==="ascii-math"&&([,ln]=Cc(ln,{format:"ascii-math"})),ae.push({type:"math",data:ln,rawData:ke.slice(Ve,at+b.length),mathstyle:z}),Ve=at+b.length}Le=!Le}Ve<ke.length&&ae.push({type:"text",data:ke.slice(Ve)})}else ae.push(ue);return ae}function Um(a,y,b){let z=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ne,ae])=>{z=jh(z,ne,ae,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ne,ae])=>{z=jh(z,ne,ae,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ne,ae])=>{z=jh(z,ne,ae,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ne,ae])=>{z=jh(z,ne,ae,"displaystyle","ascii-math")}),z}function yy(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 by(a,y,b,z){try{const ne=y.renderToMarkup(a,{mathstyle:b,format:"html"}),ae=document.createElement("span");return ae.dataset.latex=a,ae.style.display=b==="displaystyle"?"flex":"inline-flex",ae.setAttribute("aria-hidden","true"),ae.setAttribute("translate","no"),ae.innerHTML=window.MathfieldElement.createHTML(ne),ae}catch(ne){if(console.error("Could not parse'"+a+"' with ",ne),z)return document.createTextNode(a)}return null}function zf(a,y,b,z){var ne;const ae=by(a,b,y||"textstyle",z),ue=(ne=b.renderAccessibleContent)!=null?ne:"";if(ae&&/\b(mathml|speakable-text)\b/i.test(ue)){const ke=document.createElement("span");if(/\bmathml\b/i.test(ue)&&b.renderToMathML&&ke.append(yy(a,b)),/\bspeakable-text\b/i.test(ue)&&b.renderToSpeakableText){const Le=document.createElement("span");Le.setAttribute("translate","no");const Ve=b.renderToSpeakableText(a);Le.innerHTML=window.MathfieldElement.createHTML(Ve),Le.className="ML__sr-only",ke.append(Le)}return ke.append(ae),ke}return ae}function xy(a,y){var b,z,ne;let ae=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){ae=document.createDocumentFragment();const ue=zf(a,"",y,!0);ue&&ae.appendChild(ue)}else{if(!a.trim())return null;const ue=Um(a,(z=y.TeX)==null?void 0:z.delimiters,(ne=y.asciiMath)==null?void 0:ne.delimiters);if(ue.length===1&&ue[0].type==="text")return null;ae=document.createDocumentFragment();for(const ke of ue)if(ke.type==="text")ae.appendChild(document.createTextNode(ke.data));else{const Le=zf(ke.data,ke.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Le&&ae.appendChild(Le)}}return ae}function Vm(a,y){var b,z,ne,ae,ue,ke,Le,Ve,at,Ot,ln,Zn,nr,Fi,eo,Ai;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const pa=(b=a.childNodes[0].textContent)!=null?b:"";if((z=y.TeX)!=null&&z.processEnvironments&&/^\s*\\begin/.test(pa)){a.textContent="";const Pa=zf(pa,"",y,!0);Pa&&a.append(Pa);return}const ao=Um(pa,(ne=y.TeX)==null?void 0:ne.delimiters,(ae=y.asciiMath)==null?void 0:ae.delimiters);if(ao.length===1&&ao[0].type==="math"){a.textContent="";const Pa=zf(ao[0].data,ao[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Pa&&a.append(Pa);return}if(ao.length===1&&ao[0].type==="text")return}for(let pa=a.childNodes.length-1;pa>=0;pa--){const ao=a.childNodes[pa];if(ao.nodeType===3){const Pa=xy((ue=ao.textContent)!=null?ue:"",y);Pa&&(pa+=Pa.childNodes.length-1,ao.replaceWith(Pa))}else if(ao.nodeType===1){const Pa=ao,ul=ao.nodeName.toLowerCase();if(ul==="script"){const Nl=ao;let El;if((ke=y.processScriptTypePattern)!=null&&ke.test(Nl.type))El=(Le=Nl.textContent)!=null?Le:"";else if((Ve=y.processMathJSONScriptTypePattern)!=null&&Ve.test(Nl.type))try{El=(Ot=y.serializeToLatex)==null?void 0:Ot.call(y,JSON.parse((at=Nl.textContent)!=null?at:""))}catch(Ms){console.error(Ms)}if(El){let Ms="textstyle";for(const yo of Nl.type.split(";")){const[Gc,Dd]=yo.toLowerCase().split("=");Gc.trim()==="mode"&&(Ms=Dd.trim()==="display"?"displaystyle":"textstyle")}const ru=zf(El,Ms,y,!0);ru&&Nl.parentNode.replaceChild(ru,Nl)}}else if(((Zn=(ln=y.processClassPattern)==null?void 0:ln.test(Pa.className))!=null?Zn:!1)||!((Fi=(nr=y.skipTags)==null?void 0:nr.includes(ul))!=null&&Fi||(Ai=(eo=y.ignoreClassPattern)==null?void 0:eo.test(Pa.className))!=null&&Ai))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const El=a.textContent;a.textContent="";const Ms=zf(El!=null?El:"","displaystyle",y,!0);Ms&&a.append(Ms)}else Vm(Pa,y)}}}var Ey={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 Cy(a,y){var b,z,ne,ae;try{const ue=Se(Se({},Ey),y);ue.ignoreClassPattern=new RegExp((b=ue.ignoreClass)!=null?b:""),ue.processClassPattern=new RegExp((z=ue.processClass)!=null?z:""),ue.processScriptTypePattern=new RegExp((ne=ue.processScriptType)!=null?ne:""),ue.processMathJSONScriptTypePattern=new RegExp((ae=ue.processMathJSONScriptType)!=null?ae:""),xh(),vc("core"),Vm(a,ue)}catch(ue){ue instanceof Error?console.error("renderMathInElement(): "+ue.message):console.error("renderMathInElement(): Could not render math for element",a)}}function Sy(a,y){const b=Xd.singleton;return b?(b.show(),Xf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function wy(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}_c({switchKeyboardLayer:Sy,toggleVirtualKeyboard:wy,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function qd(){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 Py(a){My(document.body,a)}function Ay(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 My(a,y){var b,z,ne,ae;const ue=Ay(a);if(!ue)return;const ke=y!=null?y:{};(b=ke.renderToMarkup)!=null||(ke.renderToMarkup=rc),(z=ke.renderToMathML)!=null||(ke.renderToMathML=_g),(ne=ke.renderToSpeakableText)!=null||(ke.renderToSpeakableText=zg),(ae=ke.serializeToLatex)!=null||(ke.serializeToLatex=Kg),Cy(ue,ke)}var Fy={mathlive:"0.98.5"}},17423:function(In,Ut,te){"use strict";te.d(Ut,{Z:function(){return Se}});const E=pe=>typeof pe=="object"&&pe!=null&&pe.nodeType===1,fe=(pe,De)=>(!De||pe!=="hidden")&&pe!=="visible"&&pe!=="clip",Ie=(pe,De)=>{if(pe.clientHeight<pe.scrollHeight||pe.clientWidth<pe.scrollWidth){const Xe=getComputedStyle(pe,null);return fe(Xe.overflowY,De)||fe(Xe.overflowX,De)||(Pe=>{const Ue=(rt=>{if(!rt.ownerDocument||!rt.ownerDocument.defaultView)return null;try{return rt.ownerDocument.defaultView.frameElement}catch(qe){return null}})(Pe);return!!Ue&&(Ue.clientHeight<Pe.scrollHeight||Ue.clientWidth<Pe.scrollWidth)})(pe)}return!1},Te=(pe,De,Xe,Pe,Ue,rt,qe,He)=>rt<pe&&qe>De||rt>pe&&qe<De?0:rt<=pe&&He<=Xe||qe>=De&&He>=Xe?rt-pe-Pe:qe>De&&He<Xe||rt<pe&&He>Xe?qe-De+Ue:0,xe=pe=>{const De=pe.parentElement;return De==null?pe.getRootNode().host||null:De},Be=(pe,De)=>{var Xe,Pe,Ue,rt;if(typeof document=="undefined")return[];const{scrollMode:qe,block:He,inline:be,boundary:Qe,skipOverflowHiddenElements:ht}=De,Je=typeof Qe=="function"?Qe:Xt=>Xt!==Qe;if(!E(pe))throw new TypeError("Invalid target");const Ze=document.scrollingElement||document.documentElement,ye=[];let Ee=pe;for(;E(Ee)&&Je(Ee);){if(Ee=xe(Ee),Ee===Ze){ye.push(Ee);break}Ee!=null&&Ee===document.body&&Ie(Ee)&&!Ie(document.documentElement)||Ee!=null&&Ie(Ee,ht)&&ye.push(Ee)}const Ye=(Pe=(Xe=window.visualViewport)==null?void 0:Xe.width)!=null?Pe:innerWidth,Ne=(rt=(Ue=window.visualViewport)==null?void 0:Ue.height)!=null?rt:innerHeight,{scrollX:ot,scrollY:ct}=window,{height:_e,width:Me,top:pt,right:$e,bottom:ft,left:We}=pe.getBoundingClientRect(),{top:gt,right:kt,bottom:xt,left:et}=(Xt=>{const Et=window.getComputedStyle(Xt);return{top:parseFloat(Et.scrollMarginTop)||0,right:parseFloat(Et.scrollMarginRight)||0,bottom:parseFloat(Et.scrollMarginBottom)||0,left:parseFloat(Et.scrollMarginLeft)||0}})(pe);let Fe=He==="start"||He==="nearest"?pt-gt:He==="end"?ft+xt:pt+_e/2-gt+xt,Dt=be==="center"?We+Me/2-et+kt:be==="end"?$e+kt:We-et;const qt=[];for(let Xt=0;Xt<ye.length;Xt++){const Et=ye[Xt],{height:zt,width:Yt,top:Vn,right:Pn,bottom:_t,left:pn}=Et.getBoundingClientRect();if(qe==="if-needed"&&pt>=0&&We>=0&&ft<=Ne&&$e<=Ye&&pt>=Vn&&ft<=_t&&We>=pn&&$e<=Pn)return qt;const sr=getComputedStyle(Et),Tn=parseInt(sr.borderLeftWidth,10),Oe=parseInt(sr.borderTopWidth,10),me=parseInt(sr.borderRightWidth,10),he=parseInt(sr.borderBottomWidth,10);let ge=0,ve=0;const se="offsetWidth"in Et?Et.offsetWidth-Et.clientWidth-Tn-me:0,Ke="offsetHeight"in Et?Et.offsetHeight-Et.clientHeight-Oe-he:0,bt="offsetWidth"in Et?Et.offsetWidth===0?0:Yt/Et.offsetWidth:0,Wt="offsetHeight"in Et?Et.offsetHeight===0?0:zt/Et.offsetHeight:0;if(Ze===Et)ge=He==="start"?Fe:He==="end"?Fe-Ne:He==="nearest"?Te(ct,ct+Ne,Ne,Oe,he,ct+Fe,ct+Fe+_e,_e):Fe-Ne/2,ve=be==="start"?Dt:be==="center"?Dt-Ye/2:be==="end"?Dt-Ye:Te(ot,ot+Ye,Ye,Tn,me,ot+Dt,ot+Dt+Me,Me),ge=Math.max(0,ge+ct),ve=Math.max(0,ve+ot);else{ge=He==="start"?Fe-Vn-Oe:He==="end"?Fe-_t+he+Ke:He==="nearest"?Te(Vn,_t,zt,Oe,he+Ke,Fe,Fe+_e,_e):Fe-(Vn+zt/2)+Ke/2,ve=be==="start"?Dt-pn-Tn:be==="center"?Dt-(pn+Yt/2)+se/2:be==="end"?Dt-Pn+me+se:Te(pn,Pn,Yt,Tn,me+se,Dt,Dt+Me,Me);const{scrollLeft:yn,scrollTop:bn}=Et;ge=Wt===0?0:Math.max(0,Math.min(bn+ge/Wt,Et.scrollHeight-zt/Wt+Ke)),ve=bt===0?0:Math.max(0,Math.min(yn+ve/bt,Et.scrollWidth-Yt/bt+se)),Fe+=bn-ge,Dt+=yn-ve}qt.push({el:Et,top:ge,left:ve})}return qt},de=pe=>pe===!1?{block:"end",inline:"nearest"}:(De=>De===Object(De)&&Object.keys(De).length!==0)(pe)?pe:{block:"start",inline:"nearest"};function Se(pe,De){if(!pe.isConnected||!(Ue=>{let rt=Ue;for(;rt&&rt.parentNode;){if(rt.parentNode===document)return!0;rt=rt.parentNode instanceof ShadowRoot?rt.parentNode.host:rt.parentNode}return!1})(pe))return;const Xe=(Ue=>{const rt=window.getComputedStyle(Ue);return{top:parseFloat(rt.scrollMarginTop)||0,right:parseFloat(rt.scrollMarginRight)||0,bottom:parseFloat(rt.scrollMarginBottom)||0,left:parseFloat(rt.scrollMarginLeft)||0}})(pe);if((Ue=>typeof Ue=="object"&&typeof Ue.behavior=="function")(De))return De.behavior(Be(pe,De));const Pe=typeof De=="boolean"||De==null?void 0:De.behavior;for(const{el:Ue,top:rt,left:qe}of Be(pe,de(De))){const He=rt-Xe.top+Xe.bottom,be=qe-Xe.left+Xe.right;Ue.scroll({top:He,left:be,behavior:Pe})}}}}]);
|
|
|
}()); |