|
|
!(function(){var Pc=Math.pow;var ed=(zn,en,ae)=>new Promise((ce,De)=>{var Te=ke=>{try{be(ae.next(ke))}catch(pe){De(pe)}},dt=ke=>{try{be(ae.throw(ke))}catch(pe){De(pe)}},be=ke=>ke.done?ce(ke.value):Promise.resolve(ke.value).then(Te,dt);be((ae=ae.apply(zn,en)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4070],{89489:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},59477:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},40001:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},26227:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},49198:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},84105:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},41464:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},18785:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},87169:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},73331:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},15277:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},52671:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},8657:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},56082:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},33853:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},15075:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},62772:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},43531:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},61485:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},38819:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},47472:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},87395:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Ke,vt){return De.createElement(be.Z,(0,ce.Z)({},Ke,{ref:vt,icon:dt}))},pe=De.forwardRef(ke),xe=pe},14618:function(){"use strict"},66552:function(){"use strict"},18760:function(zn,en){"use strict";en.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},7923:function(zn,en){"use strict";en.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},81194:function(zn,en){"use strict";en.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},3352: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 zn={},en="5.0",ae={},ce=null,De=!1,Te=!1,dt=null,be=!1,ke=null,pe=null,xe=0;xe<arguments.length;xe++){var Me=arguments[xe];if(Me!==null)switch(typeof Me){case"number":en=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?en=Me:dt=Me;break;case"object":typeof Me.is3D!="undefined"?ce=Me:ae=Me;break;case"boolean":De=Me,Te=!0;break}}ce===null&&(ce={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Te&&(De=!0)),dt!==null&&ae.id===void 0&&(ae.id=dt);var Ke="",vt="",Pe=!1,Be=null,et=null,Je=null,tt=!1,yt=null,wt=null,It=null,gt=null,st=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var ze=function(lt){return parseFloat(lt)>4?parseFloat(lt):5};zn.setHTML5Codebase=function(lt,pt){pe=lt,Et(lt,pt)},zn.setJavaCodebase=zn.setJavaCodebaseVersion=zn.isCompiledInstalled=zn.setPreCompiledScriptPath=zn.setPreCompiledResourcePath=function(){},zn.setHTML5CodebaseVersion=function(lt,pt){var Ft=parseFloat(lt);if(Ft!==NaN&&Ft<5){console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead.");return}ke=lt,Ce(lt,pt)},zn.getHTML5CodebaseVersion=function(){return et},zn.getParameters=function(){return ae},zn.setFontsCSSURL=function(lt){gt=lt},zn.setGiacJSURL=function(lt){},zn.setJNLPFile=function(lt){Ke=lt},zn.setJNLPBaseDir=function(lt){},zn.inject=function(){function lt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var pt="auto",Ft=ae.id,Sn,$t=!1,Pn=0;Pn<arguments.length;Pn++){var Zt=arguments[Pn];typeof Zt=="string"?(Zt=Zt.toLowerCase(),Zt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?pt=Zt:Ft=arguments[Pn]):typeof Zt=="boolean"?$t=Zt:Zt instanceof HTMLElement&&(Sn=Zt)}an();function an(){if(!be){setTimeout(an,200);return}pt=jt(pt);var Ht=Sn||document.getElementById(Ft);if(!Ht){console.log("possibly bug on ajax loading? ");return}if(zn.removeExistingApplet(Ht,!1),ae.width===void 0&&Ht.clientWidth&&(ae.width=Ht.clientWidth),ae.height===void 0&&Ht.clientHeight&&(ae.height=Ht.clientHeight),!(ae.width&&ae.height)&&pt==="html5"&&(delete ae.width,delete ae.height),Be=pt,pt==="screenshot")at(Ht,ae);else{var ye=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?ye=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(ye=(!he()||lt())&&je()),ye?(Be="screenshot",Lt(Ht,ae,$t,pt)):Bt(Ht,ae,$t)}}};function he(){try{return window.self!==window.top}catch(lt){return!0}}function je(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}zn.getViews=function(){return ce},zn.isJavaInstalled=function(){return!1};var Xe=function(lt){var pt=function(Pn){var Zt=JSON.parse(Pn),an=function(ue){return ue.type=="G"||ue.type=="E"},Ht=Zt.elements?Zt.elements.filter(an)[0]:Zt;if(!Ht||!Ht.url){Ft();return}ae.fileName=Ht.url,Qe(Ht.settings||{}),ce.is3D=!0;var ye="https://www.geogebra.org/images/";zn.setPreviewImage(yt||Ht.previewUrl,ye+"GeoGebra_loading.png",ye+"applet_play.png"),lt()},Ft=function(){ae.onError&&ae.onError(),on("Error: Fetching material (id "+ae.material_id+") failed.",ae)},Sn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",$t="/materials/"+ae.material_id+"?scope=basic";Ue("https://"+Sn+"/api/proxy.php?path="+encodeURIComponent($t),pt,Ft)};function Qe(lt){var pt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ft){lt[Ft]=!!lt[Ft]}),pt.forEach(function(Ft){ae[Ft]===void 0&<[Ft]!==void 0&&(ae[Ft]=lt[Ft])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function Ue(lt,pt,Ft){var Sn=new XMLHttpRequest;Sn.open("GET",lt),Sn.onload=function(){pt(Sn.responseText)},Sn.onerror=Ft,Sn.send()}zn.isHTML5Installed=function(){return!0},zn.getLoadedAppletType=function(){return Be},zn.setPreviewImage=function(lt,pt,Ft){yt=lt,wt=pt,It=Ft},zn.removeExistingApplet=function(lt,pt){var Ft;typeof lt=="string"&&(lt=document.getElementById(lt)),Be=null;var Sn=null;for(Ft=0;Ft<lt.childNodes.length;Ft++){var $t=lt.childNodes[Ft],Pn=$t.className;Pn==="applet_screenshot"?pt?($t.style.display="block",Be="screenshot"):$t.style.display="none":Pn!=="applet_scaler prerender"&&(lt.removeChild($t),Sn=Pn&&Pn.indexOf("appletParameters")!=-1?$t.id:null,Ft--)}var Zt=ae.id!==void 0?ae.id:Sn,an=window[Zt];an&&typeof an.getBase64=="function"&&(an.remove(),window[Zt]=null)},zn.refreshHitPoints=function(){if(ze(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var lt=zn.getAppletObject();return lt&&typeof lt.recalculateEnvironments=="function"?(lt.recalculateEnvironments(),!0):!1},zn.startAnimation=function(){var lt=zn.getAppletObject();return lt&&typeof lt.startAnimation=="function"?(lt.startAnimation(),!0):!1},zn.stopAnimation=function(){var lt=zn.getAppletObject();return lt&&typeof lt.stopAnimation=="function"?(lt.stopAnimation(),!0):!1},zn.getAppletObject=function(){var lt=ae.id!==void 0?ae.id:"ggbApplet";return window[lt]},zn.resize=function(){};var mt=function(lt,pt,Ft){var Sn=document.createElement("param");Sn.setAttribute("name",pt),Sn.setAttribute("value",Ft),lt.appendChild(Sn)},Le=function(lt){return lt&<!=="false"},Bt=function(lt,pt,Ft){ze(et)<=4.2&&(Ft=!0);var Sn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==et||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(Sn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var $t=document.createElement("div");$t.classList.add("appletParameters","notranslate");var Pn=pt.width,Zt=pt.height;if(pt.disableAutoScale=pt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():pt.disableAutoScale,pt.width!==void 0)if(ze(et)<=4.4)Le(pt.showToolBar)&&(pt.height-=7),Le(pt.showAlgebraInput)&&(pt.height-=37),pt.width<605&&Le(pt.showToolBar)&&(pt.width=605,Pn=605);else{var an=100;(Le(pt.showToolBar)||Le(pt.showMenuBar))&&(pt.hasOwnProperty("customToolBar")&&(pt.customToolbar=pt.customToolBar),an=Le(pt.showMenuBar)?245:155),Pn<an&&(pt.width=an,Pn=an)}$t.style.border="none",$t.style.display="inline-block";for(var Ht in pt)pt.hasOwnProperty(Ht)&&Ht!=="appletOnLoad"&&$t.setAttribute("data-param-"+Ht,pt[Ht]);gt&&$t.setAttribute("data-param-fontscssurl",gt),zn.resize=function(){GGBAppletUtils.responsiveResize(lt,pt)},window.addEventListener("resize",function(rt){zn.resize()});var ye=typeof pt.appletOnLoad=="function"?pt.appletOnLoad:function(){};if(!Ft&&pt.width!==void 0){pt.hasOwnProperty("showSplash")||$t.setAttribute("data-param-showSplash","false");var ue=lt.querySelector(".applet_scaler.prerender"),le=ue!==null;if(le)var de=ue.querySelector(".ggb_preview");else{var de=Xt(Pn,Zt,pt.borderColor,!1);ue=document.createElement("div"),ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.style.width=Pn+"px",ue.style.height=Zt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ue,"66%"),ze(et)>=5?(pt.appletOnLoad=function(rt){var Dt=lt.querySelector(".ggb_preview");Dt&&Dt.parentNode.removeChild(Dt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),ye(rt)},le||ue.appendChild(de)):$t.appendChild(de),ue.appendChild($t),le||lt.appendChild(ue),setTimeout(function(){zn.resize()},1)}else{var ge=document.createElement("div");ge.className="applet_scaler",ge.style.position="relative",ge.style.display="block",ge.appendChild($t),lt.appendChild(ge),pt.appletOnLoad=function(rt){zn.resize(),ye(rt)}}function se(rt,Dt){Dt&&typeof Dt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(rt,Dt.appletOnLoad):renderGGBElement(rt),on("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Dt)}function Oe(rt,Dt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:rt,params:Dt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xn){se(xn.article,xn.params)}),html5AppletsToProcess=null)},ze(et)<5&&(rt.className+=" geogebraweb")):se(rt,Dt)}if(Sn){scriptLoadStarted=!0;for(var ut=0;ut<$t.childNodes.length;ut++){var Ge=$t.childNodes[ut].tagName;Ge==="TABLE"&&($t.removeChild($t.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var _e=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');_e!=null&&_e.parentNode.removeChild(_e)}var St=document.createElement("script"),bt=function(){Oe($t,pt)};St.src=vt+Je,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=et,ggbHTML5LoadedScript=St.src,on("GeoGebra HTML5 codebase loaded: '"+vt+"'.",pt),!pe&&(!ke||ke=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):vt.requirejs?__webpack_require__.e(7206).then(function(){var rt=[__webpack_require__(97206)];bt.apply(null,rt)}.bind(this)).catch(__webpack_require__.oe):(St.onload=bt,lt.appendChild(St))}else Oe($t,pt);pt.height=Zt,pt.width=Pn},at=function(lt,pt,Ft){var Sn=Xt(pt.width,pt.height,pt.borderColor,Ft),$t=document.createElement("div");$t.style.position="relative",$t.style.display="block",$t.style.width=pt.width+"px",$t.style.height=pt.height+"px",$t.className="applet_screenshot applet_scaler"+(Ft?" applet_screenshot_play":""),$t.appendChild(Sn);var Pn=GGBAppletUtils.getScale(pt,lt,Ft);Ft?(lt.appendChild(Tt()),window.GGBT_wsf_view||(lt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($t,"66%"),lt.appendChild($t),Pn!==1&&!isNaN(Pn)&&(GGBAppletUtils.scaleElement($t,Pn),$t.style.width=pt.width+"px",$t.style.height=pt.height+"px",$t.parentNode.style.width=pt.width*Pn+"px",$t.parentNode.style.height=pt.height*Pn+"px"),zn.resize=function(){Wt(lt,Sn,$t,Ft)},window.addEventListener("resize",function(Zt){zn.resize()}),zn.resize()};function Wt(lt,pt,Ft,Sn){if(lt.contains(pt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(lt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(lt)}var $t=GGBAppletUtils.getScale(ae,lt,Sn);Ft.parentNode!==null&&(!isNaN($t)&&$t!==1?(GGBAppletUtils.scaleElement(Ft,$t),Ft.parentNode.style.width=ae.width*$t+"px",Ft.parentNode.style.height=ae.height*$t+"px"):(GGBAppletUtils.scaleElement(Ft,1),Ft.parentNode.style.width=ae.width+"px",Ft.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(lt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}zn.onExitFullscreen=function(lt,pt){pt.appendChild(lt)};var Lt=function(lt,pt,Ft,Sn){at(lt,pt,!0);for(var $t=function(){var an=[];for(Zt=0;Zt<lt.childNodes.length;Zt++)an.push(lt.childNodes[Zt]);if(window.GGBT_wsf_view){var Ht=window.GGBT_wsf_view.renderFullScreen(lt,pt.id),ye=document.getElementById("fullscreencontainer"),ue=jQuery(lt).find(".fullscreencontent");ue.length>0?(Ht.remove(),ue.attr("id","fullscreencontent").show(),jQuery(ye).append(ue),window.dispatchEvent(new Event("resize"))):Bt(Ht,pt,!1),window.GGBT_wsf_view.launchFullScreen(ye)}else Be=Sn,Bt(lt,pt,!1);if(!window.GGBT_wsf_view)for(Zt=0;Zt<an.length;Zt++)lt.removeChild(an[Zt])},Pn=lt.getElementsByClassName("ggb_preview_play"),Zt=0;Zt<Pn.length;Zt++)Pn[Zt].addEventListener("click",$t,!1),Pn[Zt].addEventListener("ontouchstart",$t,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(lt),je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Tt=function(){var lt=document.createElement("div");if(lt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var pt='.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");}',Ft=document.createElement("style");Ft.styleSheet?Ft.styleSheet.cssText=pt:Ft.appendChild(document.createTextNode(pt)),document.getElementsByTagName("head")[0].appendChild(Ft)}return lt},Xt=function(lt,pt,Ft,Sn){var $t=document.createElement("div");$t.className="ggb_preview",$t.style.position="absolute",$t.style.zIndex="90",$t.style.width=lt-2+"px",$t.style.height=pt-2+"px",$t.style.top="0px",$t.style.left="0px",$t.style.overflow="hidden",$t.style.backgroundColor="white";var Pn="lightgrey";Ft!==void 0&&(Ft==="none"?Pn="transparent":Pn=Ft),$t.style.border="1px solid "+Pn;var Zt=document.createElement("img");if(Zt.style.position="relative",Zt.style.zIndex="1000",Zt.style.top="-1px",Zt.style.left="-1px",yt!==null&&Zt.setAttribute("src",yt),Zt.style.opacity=.7,wt!==null){var an,Ht,ye;if(!Sn){an=document.createElement("img"),an.style.position="absolute",an.style.zIndex="1001",an.style.opacity=1,Zt.style.opacity=.3,Ht=360,Ht>lt/4*3&&(Ht=lt/4*3),ye=Ht/5.8,an.setAttribute("src",wt),an.setAttribute("width",Ht),an.setAttribute("height",ye);var ue=(lt-Ht)/2,le=(pt-ye)/2;an.style.left=ue+"px",an.style.top=le+"px",$t.appendChild(an)}}return $t.appendChild(Zt),$t},jt=function(lt){return lt=lt.toLowerCase(),lt==="html5"||lt==="screenshot"?lt:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],Ce=function(lt,pt){if(et=lt,pt){Et(et,!0);return}var Ft=!De;if(Ft){var Sn=ze(et);!isNaN(Sn)&&Sn<4.4&&(Ft=!1)}var $t,Pn;window.location.protocol.substr(0,4)==="http"?$t=window.location.protocol:$t="http:";var Zt=et.indexOf("//");Zt>0?Pn=et:Zt===0?Pn=$t+et:Pn="https://www.geogebra.org/apps/5.2.814.0/";for(var an in it)if(et.slice(it[an].length*-1)===it[an]||et.slice((it[an].length+1)*-1)===it[an]+"/"){Et(Pn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ft&&!ce.is3D&&!ce.AV&&!ce.SV&&!ce.CV&&!ce.EV2&&!ce.CP&&!ce.PC&&!ce.DA&&!ce.FI&&!ce.PV&&!Le(ae.showToolBar)&&!Le(ae.showMenuBar)&&!Le(ae.showAlgebraInput)&&!Le(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?Pn+="webSimple/":Pn+="web3d/",Et(Pn,!1)},Et=function(lt,pt){if(lt.requirejs){vt=lt;return}lt.slice(-1)!=="/"&&(lt+="/"),vt=lt,pt===null&&(pt=lt.indexOf("http")===-1),Pe=pt,Je="web.nocache.js",tt=!1;var Ft=vt.split("/");Ft.length>1&&(!pt&&Ft[Ft.length-2]==="webSimple"?(Je="webSimple.nocache.js",tt=!0):it.indexOf(Ft[Ft.length-2])>=0&&(Je=Ft[Ft.length-2]+".nocache.js")),Ft=lt.split("/"),et=Ft[Ft.length-3],et.substr(0,4)==="test"?et=et.substr(4,1)+"."+et.substr(5,1):(et.substr(0,3)==="war"||et.substr(0,4)==="beta")&&(et="5.0");var Sn=parseFloat(et);Sn!==NaN&&Sn<5&<.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Sn+" is deprecated. Using version latest instead."),Ce("5.0",pt))},on=function(lt,pt){window.console&&window.console.log&&(!pt||typeof pt.showLogging=="undefined"||pt.showLogging&&pt.showLogging!=="false")&&console.log(lt)};ae.material_id!==void 0?Xe(Yt):Yt();function Yt(){var lt=en;ke!==null?lt=ke:parseFloat(lt)<5&&(lt="5.0"),Ce(lt,!1),pe!==null&&Et(pe,Pe),be=!0}return zn},GGBAppletUtils=function(){"use strict";function zn(){return window.GGBT_wsf_edit!==void 0}function en(be,ke){ke!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+ke+","+ke+")",be.style.webkitTransform="scale("+ke+","+ke+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function ae(be,ke,pe,xe,Me,Ke){var vt=null;if(Ke!=null&&Ke!="")for(var Pe=be.parentNode;Pe!=null;)if((" "+Pe.className+" ").indexOf(" "+Ke+" ")>-1){vt=Pe;break}else Pe=Pe.parentNode;var Be=0,et=0,Je=0,tt=0,yt=0,wt=0,It=0;if(vt)Be=vt.offsetWidth,et=Math.max(xe?vt.offsetWidth:0,vt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Be=Math.min(window.innerWidth,document.documentElement.clientWidth),et=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=Be):(Be=window.innerWidth,et=window.innerHeight,Je=window.innerWidth),be){var gt=be.getBoundingClientRect();gt.left>0&>.left<=Be&&(Me===void 0||!Me)&&(document.dir==="rtl"?(yt=Be-gt.width-gt.left,wt=Je<=480?10:30):(wt=gt.left,yt=Je<=480?10:30),tt=wt+yt)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var st=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,It=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,It=40)}}return be&&((pe===void 0||!pe)&&ke>0&&ke+tt<Be?Be=ke:Be-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pe===void 0||!pe)&&(et-=It)),{width:Be,height:et}}function ce(be,ke,pe,xe,Me){if(be.isScreenshoGenerator)return 1;var Ke=xe!==void 0&&xe,vt=be.noScaleMargin!=null&&be.noScaleMargin,Pe=function(st){return st&&st!=="false"},Be=Pe(be.autoHeight),et=ae(ke,be.width,pe,Be,Ke&&window.GGBT_wsf_view||vt,Me),Je=parseInt(et.width),tt=be.width,yt=be.height;if(tt===void 0){var wt=ke.querySelector(".appletParameters");wt&&(tt=wt.offsetWidth,yt=wt.offsetHeight)}var It=Je/tt,gt=Ke?1:et.height/yt;return pe!==void 0&&!pe&&(It=Math.min(1,It),gt=Math.min(1,gt)),Math.min(It,gt)}function De(be,ke,pe){var xe=1,Me,Ke=!1;if(be.hasOwnProperty("allowUpscale")&&(Ke=be.allowUpscale),be.hasOwnProperty("scale")&&(xe=parseFloat(be.scale),(isNaN(xe)||xe===null||xe===0)&&(xe=1),xe>1&&(Ke=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ke=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Me=ce(be,ke,Ke,pe,be.scaleContainerClass);else return xe;return Ke&&(!be.hasOwnProperty("scale")||xe===1)?Me:Math.min(xe,Me)}function Te(be){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),pe=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=be.getBoundingClientRect(),Me=(ke-xe.width)/2,Ke=(pe-xe.height)/2;Ke<0&&(Ke=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?be.style.left="40px":be.style.left=Me+"px",be.style.top=Ke+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ke<40?be.style.top="40px":be.style.top=Ke+"px",be.style.left=Me+"px")}function dt(be,ke){var pe=be.querySelector(".appletParameters");if(pe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==pe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(pe.parentElement&&/fullscreen/.test(pe.parentElement.className))return;var xe=De(ke,be);zn()&&pe.setAttribute("data-param-scale",xe);for(var Me=null,Ke=0;Ke<be.childNodes.length;Ke++)if(be.childNodes[Ke].className!==void 0&&be.childNodes[Ke].className.match(/^applet_scaler/)){Me=be.childNodes[Ke];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var vt=ke.id!==void 0?ke.id:"ggbApplet",Pe=window[vt];(Pe==null||!Pe.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(xe)&&xe!==1?(Me.parentNode.style.width=ke.width*xe+"px",Me.parentNode.style.height=ke.height*xe+"px",en(Me,xe)):(en(Me,1),Me.parentNode.style.width=ke.width+"px",Me.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Te(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(pe).parents(".content-added-content"))}}return{responsiveResize:dt,isFlexibleWorksheetEditor:zn,positionCenter:Te,getScale:De,scaleElement:en}}();__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 zn=n.location.search;return zn.indexOf(J)!=-1||zn.indexOf(K)!=-1}function q(zn,en){}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(zn){var en=s[L].bindings;s[L].bindings=function(){for(var ae=en?en():{},ce=zn[webModule.__softPermutationId],De=O;De<ce.length;De++){var Te=ce[De];ae[Te[O]]=Te[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var zn=o.createElement(Q);if(zn.id=L,zn.style.cssText=R+S,zn.tabIndex=-1,o.body.appendChild(zn),t=zn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var en=document.compatMode==U?V:W;t.write(en+X),t.close()}}}function w(zn){function en(ce){function De(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Te=De();if(Te){ce();return}function dt(){if(!Te){if(!De())return;Te=!0,ce(),o.removeEventListener&&o.removeEventListener(Z,dt,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,dt,!1);var be=setInterval(function(){dt()},$)}function ae(ce){var De=u(),Te=De.body,dt=De.createElement(_);dt.language=ab,dt.crossOrigin=W,dt.src=ce,webModule.__errFn&&(dt.onerror=function(){webModule.__errFn(L,new Error(bb+ce))}),Te.appendChild(dt)}en(function(){ae(zn)})}webModule.__startLoadingFragment=function(zn){return C(zn)},webModule.__installRunAsyncCode=function(zn){var en=u(),ae=en.body,ce=en.createElement(_);ce.language=ab,ce.text=zn,ae.appendChild(ce),ae.removeChild(ce)};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(zn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(zn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(zn){var en=c[zn];return en==null?null:en},r=d,webModule.__errFn=e}function B(){function zn(be){var ke=be.lastIndexOf(rb);ke==-1&&(ke=be.length);var pe=be.indexOf(sb);pe==-1&&(pe=be.length);var xe=be.lastIndexOf(tb,Math.min(pe,ke));return xe>=O?be.substring(O,xe+P):W}function en(be){if(!be.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=be+vb,be=zn(ke.src)}return be}function ae(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ce(){for(var be=o.getElementsByTagName(_),ke=O;ke<be.length;++ke)if(be[ke].src.indexOf(xb)!=-1)return zn(be[ke].src);return W}function De(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function Te(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var dt=ae();return dt==W&&(dt=ce()),dt==W&&(dt=De()),dt==W&&Te()&&(dt=zn(o.location.href)),dt=en(dt),dt}function C(zn){return zn.match(/^\//)||zn.match(/^[a-zA-Z]+:\/\//)?zn:webModule.__moduleBase+zn}function D(){var zn=[],en=O,ae=[],ce=[];function De(be){var ke=ce[be](),pe=ae[be];if(ke in pe)return ke;var xe=[];for(var Me in pe)xe[pe[Me]]=Me;throw r&&r(be,xe,ke),null}if(__gwt_isKnownPropertyValue=function(be,ke){return ke in ae[be]},webModule.__getPropMap=function(){var be={};for(var ke in ae)ae.hasOwnProperty(ke)&&(be[ke]=De(ke));return be},webModule.__computePropValue=De,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Te;try{Te=Cb;var dt=Te.indexOf(Db);dt!=-1&&(en=parseInt(Te.substring(dt+P),$),Te=Te.substring(O,dt))}catch(be){}return webModule.__softPermutationId=en,C(Te+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})()},79090:function(zn,en,ae){"use strict";ae.d(en,{Ax:function(){return dt},Ds:function(){return be},KI:function(){return pe},SI:function(){return Te},f1:function(){return De}});var ce=ae(6521);function De(xe){let Me=!0;if(xe.length>0){for(let Ke=0;Ke<xe.length;Ke++)if(xe[Ke].compile_success==0||!xe[Ke].compile_success){Me=!1;break}}else Me=!1;return Me}function Te(xe,Me=""){let Ke=[];for(let vt=0;vt<xe.length;vt++){let Pe=xe[vt],Be=Me?`${Me}/${Pe.name}`:`${Pe.name}`;Ke.push({title:Pe.name,type:Pe.type,isLeaf:Pe.type!=="tree",key:Be})}return Ke}function dt(xe,Me,Ke){for(let vt=0;vt<xe.length;vt++){let Pe=xe[vt];if(Pe.key===Me){Pe.children=Ke;break}Pe.children&&dt(Pe.children,Me,Ke)}return xe}function be(xe,Me,Ke){let vt;return function(){let Pe=this,Be=arguments,et=function(){vt=null,Ke||xe.apply(Pe,Be)},Je=Ke&&!vt;clearTimeout(vt),vt=setTimeout(et,Me),Je&&xe.apply(Pe,Be)}}const ke=!0,pe=ce.Z.API_SERVER},29279:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return It}});var ce=ae(59301),De=ae(78241),Te=ae(8591),dt=ae(43418),be=ae(5083),ke=ae(92832),pe=ae(1710),xe=ae(95237),Me=ae(43604),Ke=ae(66649),vt=ae.n(Ke),Pe=ae(25544),Be=ae(91482),et={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},Je=ae(20996),tt=ae(43255),yt=(gt,st,ze)=>new Promise((he,je)=>{var Xe=mt=>{try{Ue(ze.next(mt))}catch(Le){je(Le)}},Qe=mt=>{try{Ue(ze.throw(mt))}catch(Le){je(Le)}},Ue=mt=>mt.done?he(mt.value):Promise.resolve(mt.value).then(Xe,Qe);Ue((ze=ze.apply(gt,st)).next())});const wt=({dispatch:gt,courseEndTime:st,classroomList:ze,successCallback:he=()=>{},visible:je,homeworkIds:Xe,courseId:Qe,isBatch:Ue,shixunHomeworks:mt})=>{const[Le]=De.default.useForm(),[Bt,at]=(0,ce.useState)(!1),[Wt,Lt]=(0,ce.useState)(!1),[Tt,Xt]=(0,ce.useState)(!1),[jt,it]=(0,ce.useState)([]),[Ce,Et]=(0,ce.useState)([]),[on,Yt]=(0,ce.useState)([]),[lt,pt]=(0,ce.useState)([]),[Ft,Sn]=(0,ce.useState)([]),[$t,Pn]=(0,ce.useState)([]),[Zt,an]=(0,ce.useState)([]),[Ht,ye]=(0,ce.useState)([]),[ue,le]=(0,ce.useState)([]);(0,ce.useEffect)(()=>{je?de():se()},[je]);const de=()=>yt(void 0,null,function*(){at(!0);const Oe=yield(0,Je.oR)(Xe[0],{course_id:Qe});Xt(Oe.no_group),Ue?(an(Oe.all_course_groups),ye(Oe.all_course_groups)):(pt(Oe.late_course_groups),Sn(Oe.late_course_groups),it(Oe.submit_course_groups),Et(Oe.submit_course_groups)),at(!1),Le.setFieldsValue({end_time:vt()()})}),ge=()=>yt(void 0,null,function*(){const Oe=Le.getFieldsValue(),ut=vt()(Oe.end_time).format("YYYY-MM-DD HH:mm");if((Ue?ue.length===0:on.length===0&&$t.length===0)&&!Tt){Te.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}Lt(!0);const _e=yield(0,Je.Mc)(Qe,{no_group:Tt,homework_ids:Xe,group_ids:Ue?ue:on,end_time:ut,late_group_ids:Ue?ue:$t});Lt(!1),_e.status===0&&(se(),Te.ZP.success("\u64CD\u4F5C\u6210\u529F"),he(),gt({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),se=()=>{Yt([]),Pn([]),Et([]),Sn([])};return ce.createElement(dt.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:et.modalWrapper,width:Ue||Tt?520:760,open:je,confirmLoading:Wt,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>ge(),onCancel:()=>{se(),gt({type:"classroomList/setActionTabs",payload:{}})}},ce.createElement("div",{className:et.tips},ce.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),ce.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),ce.createElement(De.default,{form:Le,layout:"vertical"},ce.createElement(De.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},ce.createElement(be.default,{style:{width:"100%"},disabledDate:Oe=>(0,tt.Q8)(Oe,st),disabledTime:Oe=>(0,tt.d0)(Oe),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:vt()((0,Pe.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!Tt&&ce.createElement(ce.Fragment,null,Ue?ce.createElement("div",null,ce.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Oe=>{ye(Zt.filter(ut=>ut.name.indexOf(Oe.target.value)>-1))}}),ce.createElement(pe.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:et.antdTable,rowSelection:{type:"checkbox",onChange:Oe=>{le(Oe)}},rowKey:"id",pagination:!1,dataSource:Ht,loading:Bt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):ce.createElement(xe.Z,{gutter:24},ce.createElement(Me.Z,{span:14},ce.createElement("div",{className:et.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),ce.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Oe=>{Et(jt.filter(ut=>ut.name.indexOf(Oe.target.value)>-1))}}),ce.createElement("div",{className:et.tableWrapper},ce.createElement(pe.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:et.antdTable,rowSelection:{type:"checkbox",onChange:Oe=>{Yt(Oe)}},rowKey:"id",pagination:!1,dataSource:Ce,loading:Bt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),ce.createElement(Me.Z,{flex:10,style:{maxWidth:"280px"}},ce.createElement("div",{className:et.homeworkType},"\u8865\u4EA4\u622A\u6B62"),ce.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Oe=>{Sn(lt.filter(ut=>ut.name.indexOf(Oe.target.value)>-1))}}),ce.createElement("div",{className:et.tableWrapper},ce.createElement(pe.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:et.antdTable,rowSelection:{type:"checkbox",onChange:Oe=>{Pn(Oe)}},rowKey:"id",pagination:!1,loading:Bt,dataSource:Ft,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var It=(0,Be.connect)(({shixunHomeworks:gt,classroomList:st})=>({shixunHomeworks:gt,classroomList:st}))(wt)},15868:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return vt}});var ce=ae(59301),De={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Te=ae(92310),dt=ae.n(Te),be=ae(71418),ke=ae(2859),pe=ae(79769),xe=ae(25544),Me=(Pe,Be,et)=>new Promise((Je,tt)=>{var yt=gt=>{try{It(et.next(gt))}catch(st){tt(st)}},wt=gt=>{try{It(et.throw(gt))}catch(st){tt(st)}},It=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(yt,wt);It((et=et.apply(Pe,Be)).next())}),vt=({data:Pe,className:Be,fullWidth:et,style:Je={},onClose:tt,onOk:yt,showFullTools:wt,noAssociationId:It})=>{const gt=(0,ce.useRef)(null),st=(0,ce.useRef)(null),ze=(0,ce.useRef)(null),he=(0,ce.useRef)(null),[je,Xe]=(0,ce.useState)(!1),[Qe,Ue]=(0,ce.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ce.useEffect)(()=>{ze.current||(ze.current=document.createElement("style"),document.head.appendChild(ze.current)),Pe!=null&&Pe.visible?(document.body.setAttribute("data-custom","y-hidden"),ze.current.innerHTML=" html { overflow-y: hidden; }",Pe!=null&&Pe.src&&mt()):(document.body.removeAttribute("data-custom"),ze.current&&(document.head.removeChild(ze.current),ze.current=null))},[Pe==null?void 0:Pe.visible]);const mt=()=>Me(void 0,null,function*(){Xe(!0),Ue("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Lt=yield(0,xe.ZJ)(Pe==null?void 0:Pe.src);gt.current.src="",gt.current.src=Lt,gt.current.onload=function(){Wt()},Xe(!1),Ue("")}),Le=()=>{document.body.removeAttribute("data-custom"),ze.current.innerHTML=" ",tt()},Bt=Lt=>Me(void 0,null,function*(){Xe(!0),Ue("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Tt=yield(0,pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Pe.title,file:Lt.dataUrl}});Tt!=null&&Tt.id&&!It?(yield(0,pe.ZP)(`/api/attachments/${Pe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Tt==null?void 0:Tt.id,settings:JSON.stringify(Lt.state)}})).status===0&&yt():Tt!=null&&Tt.id&&yt(Tt),document.body.removeAttribute("data-custom"),ze.current.innerHTML=" ",Xe(!1),Ue("")}),at=()=>{const Lt=document.querySelector('a[href="https://markerjs.com/"]');Lt&&Lt.parentNode&&(Lt.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(Xt=>{const jt=document.querySelector(Xt.name);jt&&jt.setAttribute("title",Xt.title)})},Wt=()=>{st.current=new ke.hP(gt.current),st.current.targetRoot=he.current,st.current.addEventListener("render",Bt),st.current.addEventListener("beforeclose",Le),wt&&(st.current.availableMarkerTypes=st.current.ALL_MARKER_TYPES,st.current.uiStyleSettings.redoButtonVisible=!0,st.current.uiStyleSettings.notesButtonVisible=!0,st.current.uiStyleSettings.zoomButtonVisible=!0,st.current.uiStyleSettings.zoomOutButtonVisible=!0,st.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=st.current.uiStyleSettings,st.current.show(),Pe!=null&&Pe.snapshotData&&st.current.restoreState(Pe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),at()},300)};return ce.createElement(ce.Fragment,null,(Pe==null?void 0:Pe.visible)&&ce.createElement(be.Z,{spinning:je,tip:Qe,style:{position:"absolute"}},ce.createElement("div",{ref:he,className:dt()(De.imageDimensions,Be,et?De.fullWidth:""),style:Je},ce.createElement("img",{className:De.img,ref:gt}))))}},3315:function(zn,en,ae){"use strict";var ce=ae(59301),De=ae(95237),Te=ae(43604),dt=ae(99313),be=ae(3113),ke=ae(39655),pe=ae(18760),xe=ae(48136),Me=ae(59301);const Ke=(0,ce.forwardRef)(({callback:vt,showSaveButton:Pe,value:Be=""},et)=>{const Je=(0,ce.useRef)(),tt=[{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 "}]}]}],yt=[{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}`}]}]}],wt=st=>{Je.current.setValue(Je.current.getValue()+" "+st.value+" ")},It=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(De.Z,{className:pe.Z.lists,gutter:[10,10]},tt.map((st,ze)=>Me.createElement(Te.Z,{flex:"110px",className:pe.Z.item},Me.createElement("div",null,Me.createElement(ke.Z,{value:`$$${st.value}$$`}),st.name),Me.createElement("div",{className:pe.Z.children},st.children.map((he,je)=>Me.createElement("div",{key:je},Me.createElement("h1",null,he.name),Me.createElement(De.Z,{gutter:[10,10]},he.data.map((Xe,Qe)=>Me.createElement(Te.Z,{key:Qe,onClick:()=>wt(Xe),className:pe.Z.diamond},Me.createElement(ke.Z,{value:"`$$"+Xe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(De.Z,{className:pe.Z.lists,gutter:[10,10]},yt.map((st,ze)=>Me.createElement(Te.Z,{flex:"110px",className:pe.Z.item},Me.createElement("div",null,Me.createElement(ke.Z,{value:"`$$"+st.value+"$$`"}),st.name),Me.createElement("div",{className:pe.Z.children},st.children.map((he,je)=>Me.createElement("div",{key:je},he.name&&Me.createElement("h1",null,he.name),Me.createElement(De.Z,{gutter:[10,10]},he.data.map((Xe,Qe)=>Me.createElement(Te.Z,{key:Qe,onClick:()=>wt(Xe),className:pe.Z.diamond},Me.createElement(ke.Z,{value:"`$$"+Xe.value+"$$`"}))))))))))}],gt=()=>{var st=document.createElement("div");st.innerHTML=Je.current.getValue();var ze=st.innerText;return vt&&vt(ze),ze};return(0,ce.useImperativeHandle)(et,()=>({getData:gt})),Me.createElement("div",{className:pe.Z.mathWrap},Me.createElement(dt.default,{defaultActiveKey:"1",items:It}),Me.createElement("math-field",{locale:"zh_cn",className:pe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Je,style:{width:800,marginTop:30,fontSize:18}},Be||""),Pe&&Me.createElement("div",{className:pe.Z.button},Me.createElement(be.ZP,{size:"large",onClick:gt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});en.Z=Ke},78707:function(zn,en,ae){"use strict";ae.d(en,{Q:function(){return ke}});var ce=ae(59301),De=ae(57809),Te=ae(5112),dt=ae(5871),be=ae(59301),ke=(xe=>(xe[xe.Number=1]="Number",xe[xe.Percent=2]="Percent",xe))(ke||{});const pe=({value:xe,onChange:Me,disabled:Ke,hidePercentOption:vt=!1,percentType:Pe="select"})=>{const Be=(0,ce.useMemo)(()=>vt?1:2,[vt]),[et,Je]=(0,ce.useState)(Be);console.log(et);const tt=wt=>xe.type===1?`${wt}\u5206`:`${wt}%`,yt=(0,ce.useCallback)(wt=>{if(et===1){const It=wt.replace("\u5206","");return isNaN(parseInt(It,10))?0:It}else return wt.replace("%","")},[et]);return(0,ce.useEffect)(()=>{Je(xe.type)},[xe]),be.createElement("div",{style:{display:"flex",alignItems:"center"}},Pe=="select"&&be.createElement(De.default,{size:"large",onChange:wt=>{Je(wt),Me({type:wt,inputValue:wt===1?5:20})},value:et||Be,style:{width:100},options:vt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Ke}),Pe=="radio"&&be.createElement(Te.ZP.Group,{size:"large",onChange:wt=>{const It=wt.target.value;Je(It),Me({type:It,inputValue:It===1?5:20})},value:et||Be,disabled:Ke},!vt&&be.createElement(Te.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),be.createElement(Te.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Pe=="radio"&&be.createElement("div",{style:{marginRight:"10px",color:"#000000"}},xe.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),be.createElement(dt.Z,{size:"large",disabled:Ke,value:xe.inputValue,style:{width:"120px"},parser:yt,addonAfter:xe.type===1?"\u5206":"%",max:et===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:wt=>{Me({type:et,inputValue:wt})}}),Pe=="radio"&&xe.type==2&&be.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};en.Z=pe},77754:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(59301),De={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"},Te=ae(43418),dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",ke=(Me,Ke,vt)=>new Promise((Pe,Be)=>{var et=yt=>{try{tt(vt.next(yt))}catch(wt){Be(wt)}},Je=yt=>{try{tt(vt.throw(yt))}catch(wt){Be(wt)}},tt=yt=>yt.done?Pe(yt.value):Promise.resolve(yt.value).then(et,Je);tt((vt=vt.apply(Me,Ke)).next())}),xe=({type:Me,resdata:Ke,onok:vt,oktext:Pe,okloading:Be})=>{const[et,Je]=(0,ce.useState)(!1),{can_copy_list:tt,can_copy_num:yt,challenge_type:wt,course_data_list:It,no_copy_list:gt,no_copy_num:st,no_use_list:ze,no_use_num:he,repeat_shixun_num:je,student_count:Xe,total_num:Qe,use_num:Ue}=Ke;let mt=yt>0||Me==="exercise";(0,ce.useEffect)(()=>{(Ke==null?void 0:Ke.student_count)>0&&Je(!0)},[Ke]),console.log("---11",Be),(0,ce.useEffect)(()=>{Be||Je(!1)},[Be]);const Le=()=>{if(Me==="exercise"&&wt===1)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},Xe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.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(Me==="exercise"&&wt===2)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},Xe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},Ue),"\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",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="shixun"&&wt===1)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},Xe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="shixun"&&wt===2)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},Xe),"\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",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="subject"&&wt===1)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},Xe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="subject"&&wt===2)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ce.createElement("span",{className:De.orangeColor},Xe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ce.createElement("span",{className:De.orangeColor},Ue)," \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",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="exercisepush")return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},Xe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ce.createElement("span",{className:De.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(Me==="shixunpush"&&wt===1)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},Xe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ce.createElement("span",{className:De.orangeColor},Ue),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="shixunpush"&&wt===2)return ce.createElement(ce.Fragment,null,"\u8BFE\u5802\u5185\u6709",ce.createElement("span",{className:De.orangeColor},Xe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ce.createElement("span",{className:De.orangeColor},Ue),"\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",ce.createElement("span",{className:De.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Bt=()=>{if(Me==="exercise"||Me==="subject"||Me==="exercisepush"||Me==="shixunpush")return ce.createElement("div",{style:{marginTop:20}},st>0&&ce.createElement("div",null,ce.createElement("span",{className:De.flex},ce.createElement("img",{src:be,style:{width:14}}),ce.createElement("span",{className:De.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ce.createElement("div",{className:De.statusbody},Me==="exercise"&&ce.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ce.createElement("span",{className:De.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"),(Me==="subject"||Me==="exercisepush")&&ce.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",mt&&ce.createElement("span",{className:De.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"),Me==="shixunpush"&&ce.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",mt&&ce.createElement("span",{className:De.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"),ce.createElement("div",null,gt==null?void 0:gt.map((at,Wt)=>ce.createElement("a",{href:`/shixuns/${at.identifier}/challenges`,target:"_blank"},"\u300A",at==null?void 0:at.name,"\u300B",Wt+1!==st&&"\u3001"))))),yt>0&&ce.createElement("div",{style:{marginTop:20}},ce.createElement("span",{className:De.flex},ce.createElement("img",{src:dt,style:{width:14}}),ce.createElement("span",{className:De.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ce.createElement("div",{className:De.statusbody},Me==="exercise"&&ce.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"),(Me==="subject"||Me==="exercisepush")&&ce.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"),Me==="shixunpush"&&ce.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"),ce.createElement("div",null,tt==null?void 0:tt.map((at,Wt)=>ce.createElement("a",{href:`/shixuns/${at.identifier}/challenges`,target:"_blank"},"\u300A",at==null?void 0:at.name,"\u300B",Wt+1!==yt&&"\u3001"))))));if(Me==="shixun")return ce.createElement("div",{style:{marginTop:20}},yt>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 ce.createElement(Te.default,{open:et,onCancel:()=>{Je(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!mt&&"none"}},zIndex:1003,confirmLoading:Be,okText:mt?Pe:"\u6211\u77E5\u9053\u4E86",onOk:()=>ke(void 0,null,function*(){mt?yield vt([...tt,...ze]):Je(!1)})},ce.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Le(),Bt()))}},67831:function(zn,en,ae){"use strict";ae.d(en,{h:function(){return st}});var ce=ae(59301),De=ae(57809),Te=ae(78241),dt=ae(3113),be=ae(89780),ke=ae.n(be),pe=ae(14618),xe=ae(66552),Me=Object.defineProperty,Ke=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Je=(ze,he,je)=>he in ze?Me(ze,he,{enumerable:!0,configurable:!0,writable:!0,value:je}):ze[he]=je,tt=(ze,he)=>{for(var je in he||(he={}))Be.call(he,je)&&Je(ze,je,he[je]);if(Pe)for(var je of Pe(he))et.call(he,je)&&Je(ze,je,he[je]);return ze},yt=(ze,he)=>Ke(ze,vt(he));const wt=De.default.Option,It={labelCol:{span:4},wrapperCol:{span:20}},gt={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"]};en.Z=({callback:ze,onCancel:he})=>{const[je,Xe]=(0,ce.useState)("python");function Qe(mt){Xe(gt[mt][1])}function Ue(mt){ze(mt)}return ce.createElement(Te.default,yt(tt({},It),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ue,style:{width:500}}),ce.createElement(Te.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ce.createElement(De.default,{getPopupContainer:mt=>mt.parentNode,onChange:Qe},Object.keys(gt).map(mt=>ce.createElement(wt,{key:mt,value:mt},gt[mt][0])))),ce.createElement(Te.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ce.createElement(st,{mode:je})),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(dt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(dt.ZP,{type:"ghost",onClick:he},"\u53D6\u6D88")))};function st({value:ze,onChange:he,mode:je,options:Xe={}}){const Qe=(0,ce.useRef)(),[Ue,mt]=(0,ce.useState)();return(0,ce.useEffect)(()=>{if(Ue){let Le=function(Bt){const at=Bt.getValue();he&&he(at)};return Ue.on("change",Le),()=>{Ue.off("change",Le)}}},[Ue,he]),(0,ce.useEffect)(()=>{Ue&&Ue.setOption("mode",je)},[Ue,je]),(0,ce.useEffect)(()=>{Ue&&(ze!==Ue.getValue()||ze==="")&&setTimeout(()=>{Ue.setValue(ze||"")},300)},[Ue,ze]),(0,ce.useEffect)(()=>{if(Qe.current&&!Ue){const Le=ke().fromTextArea(Qe.current,tt({mode:je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Xe));mt(Le)}},[Qe.current,Ue]),ce.createElement("div",{className:"my-codemirror-container"},ce.createElement("textarea",{ref:Qe}))}},40973:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Yr}});var ce=ae(59301),De=ae(89780),Te=ae.n(De),dt=ae(76374),be=ae(14618),ke=ae(6313),pe=ae(25717),xe=ae(99498),Me=ae(25419),Ke=ae(67549),vt=ae(39655),Pe=({value:cr="",className:Ir,showTextOnly:or,showLines:Jn,style:Dr={}})=>{const _t=(0,ce.useMemo)(()=>"",[cr]);return ce.createElement(ce.Fragment,null,ce.createElement("div",{dangerouslySetInnerHTML:{__html:_t}}))},Be=ae(59301),et=Object.defineProperty,Je=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,gt=(cr,Ir,or)=>Ir in cr?et(cr,Ir,{enumerable:!0,configurable:!0,writable:!0,value:or}):cr[Ir]=or,st=(cr,Ir)=>{for(var or in Ir||(Ir={}))wt.call(Ir,or)&>(cr,or,Ir[or]);if(yt)for(var or of yt(Ir))It.call(Ir,or)&>(cr,or,Ir[or]);return cr},ze=(cr,Ir)=>Je(cr,tt(Ir));let he=[{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 je({onActionCallback:cr,title:Ir,icon:or,actionName:Jn,className:Dr="",children:_t}){function He(){cr(Jn)}return Be.createElement("a",{title:Ir,className:Dr,onClick:He},Be.createElement("i",{className:`${or}`}),_t)}var Xe=({watch:cr,showNullButton:Ir,showNullProgramButton:or,onActionCallback:Jn,fullScreen:Dr,insertTemp:_t,hidetoolBar:He,extraUse:nt})=>{const Ye=[...he,{title:`${cr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${cr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Be.createElement("ul",{className:"markdown-toolbar-container"},!He&&Ye.map((qe,Mt)=>Be.createElement("li",{key:Mt},qe.actionName?Be.createElement(je,ze(st({},qe),{onActionCallback:Jn})):Be.createElement("span",{className:"v-line"}))),Ir?Be.createElement("li",null,Be.createElement(je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Jn},Be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,or?Be.createElement(Be.Fragment,null,Be.createElement("li",null,Be.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Jn},Be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Be.createElement("li",null,Be.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Jn},Be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,_t&&Be.createElement("li",null,Be.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${_t}`,onActionCallback:Jn},Be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),nt&&Be.createElement("li",null,nt),Be.createElement("li",{className:"btn-full-screen"},Be.createElement(je,{icon:`${Dr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Dr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Jn})))},Qe=ae(53531),Ue=ae(78241),mt=ae(92832),Le=ae(3113),Bt=Object.defineProperty,at=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,jt=(cr,Ir,or)=>Ir in cr?Bt(cr,Ir,{enumerable:!0,configurable:!0,writable:!0,value:or}):cr[Ir]=or,it=(cr,Ir)=>{for(var or in Ir||(Ir={}))Tt.call(Ir,or)&&jt(cr,or,Ir[or]);if(Lt)for(var or of Lt(Ir))Xt.call(Ir,or)&&jt(cr,or,Ir[or]);return cr},Ce=(cr,Ir)=>at(cr,Wt(Ir));const Et={labelCol:{span:4},wrapperCol:{span:20}};var on=({callback:cr,onCancel:Ir})=>{function or(Jn){cr(Jn)}return ce.createElement(Ue.default,Ce(it({},Et),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:or,style:{width:500}}),ce.createElement(Ue.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ce.createElement(mt.default,null)),ce.createElement(Ue.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ce.createElement(mt.default,null)),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Le.ZP,{type:"ghost",onClick:Ir},"\u53D6\u6D88")))},Yt=ae(67831),lt=ae(58448),pt=ae(43418),Ft=ae(95237),Sn=ae(15868),$t=ae(59301),Pn=({callback:cr,onCancel:Ir})=>{const or=document.createElement("canvas"),Jn=or.getContext("2d");or.width=1e3,or.height=800,Jn.fillStyle="#ffffff",Jn.fillRect(0,0,or.width,or.height);const Dr=or.toDataURL("image/png");return $t.createElement(pt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},$t.createElement(Ft.Z,{style:{height:"100vh"}},$t.createElement(Sn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Dr,visible:!0,title:String(Date.now())},onOk:_t=>{cr({src:_t.url})},onClose:Ir})))},Zt=ae(8591),an=ae(43428),Ht=ae(43604),ye={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=ae(59301),de=(0,ce.forwardRef)(({onCancel:cr,editImgId:Ir,callback:or},Jn)=>{let Dr=(0,ce.useRef)(),_t=(0,ce.useRef)(),He=(0,ce.useRef)(),nt=(0,ce.useRef)(!1);const Ye=(0,ce.useRef)(!1);console.log("ref:",Jn);const[qe,Mt]=(0,ce.useState)(0),[Ut,An]=(0,ce.useState)("100vh");(0,ce.useEffect)(()=>{Mt(1);try{indexedDB.databases().then(Nn=>{Nn.forEach(Wn=>indexedDB.deleteDatabase(Wn.name))})}catch(Nn){}},[]),(0,ce.useEffect)(()=>(window.addEventListener("message",ln),()=>{window.removeEventListener("message",ln)}),[]),(0,ce.useImperativeHandle)(Jn,()=>({setHeight:An}));const mn=Nn=>{window.saveDrawData(Wn=>{if(Wn===null&&!Nn){Zt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Zt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),or({src:`/api/attachments/${Wn}`,id:Wn,disabledClose:!0})})},ln=Nn=>{var Wn;((Wn=Nn==null?void 0:Nn.data)==null?void 0:Wn.type)==="closePop"&&mn(!0)};return ue.createElement("div",{ref:Ye,className:"body-overflow-initial"},ue.createElement(an.Z,{width:"100vw",height:Ut,footer:null,closable:!0,placement:"bottom",open:!!qe,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ye.drawerWrap}`,onClose:()=>{window.saveDrawData(Nn=>{or({src:`/api/attachments/${Nn}`,id:Nn})})},title:ue.createElement(Ft.Z,{align:"middle"},ue.createElement(Ht.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(Ht.Z,{onClick:()=>{An(Ut==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(Ht.Z,{onClick:mn},ue.createElement(Le.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Ir||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:_t})))}),ge=ae(6521),se=ae(5112),Oe=ae(5871);const ut=se.ZP.Group,Ge={margin:"0 8px"};var _e=({callback:cr,onCancel:Ir})=>{function or(Jn){cr(Jn)}return ce.createElement(Ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:or},ce.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ce.createElement("span",{style:Ge},"\u5355\u5143\u683C\u6570\uFF1A"),ce.createElement("span",{style:Ge},"\u884C\u6570"),ce.createElement(Ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ce.createElement(Oe.Z,null)),ce.createElement("span",{style:Ge},"\u5217\u6570"),ce.createElement(Ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ce.createElement(Oe.Z,null))),ce.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ce.createElement("span",{style:Ge},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ce.createElement(Ue.default.Item,{name:"align"},ce.createElement(ut,null,ce.createElement(se.ZP,{value:"default"},ce.createElement("i",{className:"fa fa-align-justify"})),ce.createElement(se.ZP,{value:"left"},ce.createElement("i",{className:"fa fa-align-left"})),ce.createElement(se.ZP,{value:"center"},ce.createElement("i",{className:"fa fa-align-center"})),ce.createElement(se.ZP,{value:"right"},ce.createElement("i",{className:"fa fa-align-right"}))))),ce.createElement("div",{className:"flex-container flex-end"},ce.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Le.ZP,{type:"ghost",onClick:Ir},"\u53D6\u6D88")))},St=ae(78673),bt=ae(3352),rt=ae.n(bt),xn=(0,ce.forwardRef)(({use3d:cr,width:Ir,height:or,callback:Jn,showSaveButton:Dr},_t)=>{const He=(0,ce.useRef)(),nt=(0,ce.useRef)(),[Ye,qe]=(0,ce.useState)(!1),Mt=(0,ce.useRef)({id:He,appName:"graphing",width:Ir||1e3,height:or||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ce.useEffect)(()=>{nt.current=new(rt())(Mt.current,!0),window.onload=function(){nt.current.inject("applet_container")}},[]);const Ut=()=>{var An=window.ggbApplet.getPNGBase64(1,!0,72);return Jn&&Jn(An),An};return(0,ce.useEffect)(()=>{Mt.current.appName=Ye?"3D":"graphing",nt.current.inject("applet_container")},[Ye]),(0,ce.useEffect)(()=>{qe(cr)},[cr]),(0,ce.useImperativeHandle)(_t,()=>({getImgData:Ut})),ce.createElement(ce.Fragment,null,ce.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:He}),ce.createElement(Ft.Z,{align:"middle"},ce.createElement(Ht.Z,{flex:1},ce.createElement(St.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ye,onChange:An=>qe(An)})),ce.createElement(Ht.Z,null,ce.createElement(Le.ZP,{size:"large",onClick:Ut,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),xt=ae(3315),Rt=ae(1012);const cn="link",ct="upload-image",Ae="add-flowchart",Ve="draw-image",Kt="add-flowchart",Gt="code-block",hn="add-table",On="------------",Ln={default:On,left:`:${On}`,center:`:${On}:`,right:`${On}:`};var Kn=ae(57649),tr=(cr,Ir,or)=>new Promise((Jn,Dr)=>{var _t=Ye=>{try{nt(or.next(Ye))}catch(qe){Dr(qe)}},He=Ye=>{try{nt(or.throw(Ye))}catch(qe){Dr(qe)}},nt=Ye=>Ye.done?Jn(Ye.value):Promise.resolve(Ye.value).then(_t,He);nt((or=or.apply(cr,Ir)).next())});function gr(){}let Un=0;const Cr=1e4,Rr="\u2581",$r="@\u2581\u2581@",vr="@\u2581@",Er=`
|
|
|
**\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`,Hr=["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 wn(cr){return/^\d+$/.test(cr)?`${cr}px`:cr}const Or=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",br={[Or+"-B"]:"bold",[Or+"-I"]:"italic"},hr={[cn]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ct]:"\u6DFB\u52A0\u56FE\u7247",[Ve]:"\u6DFB\u52A0\u753B\u56FE",[Ae]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[hn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Yr=({defaultValue:cr="",onChange:Ir,width:or="100%",height:Jn=400,miniToolbar:Dr=!1,isFocus:_t=!1,watch:He,insertTemp:nt,mode:Ye="markdown",id:qe="markdown-editor-id",showResizeBar:Mt=!1,noStorage:Ut=!1,showNullButton:An=!1,showNullProgramButton:mn=!1,hidetoolBar:ln=!1,fullScreen:Nn=!1,onBlur:Wn,onCMBeforeChange:Xn,onFullScreen:rn,className:Tn="",disablePaste:Nt=!1,disabled:Jt=!1,disabledFill:sn=!1,placeholder:fn="",values:In="",extraUse:un,onAddBlank:Bn})=>{const[ot,tn]=(0,ce.useState)(null),[nn,En]=(0,ce.useState)(cr),[gn,Mn]=(0,ce.useState)(He),[kn,Vn]=(0,ce.useState)(Nn),[qn,pr]=(0,ce.useState)(""),[Tr,Jr]=(0,ce.useState)(0),[ai,Nr]=(0,ce.useState)(Jn),[yr,di]=(0,ce.useState)(!1),ti=(0,ce.useRef)((0,Rt.Z)()),vi=(0,ce.useRef)(!1),Wr=(0,ce.useRef)(),[jr,yi]=(0,ce.useState)(0),[ui,$i]=(0,ce.useState)(0),sa=(0,ce.useRef)(),oi=(0,ce.useRef)(),ar=(0,ce.useRef)(),rr=(0,ce.useRef)(),pi=(0,ce.useRef)(),ni=(0,ce.useRef)(),ki=()=>tr(void 0,null,function*(){var Gr;const Zr=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ti.current}});(Gr=Zr==null?void 0:Zr.attachments)!=null&&Gr.length&&(console.log("cm:",ot,sa),Zr.attachments.map(Kr=>{Kr.content_type.indexOf("image")>-1?ot.replaceSelection(``):Kr.content_type.indexOf("video")>-1?ot.replaceSelection(`<video width="100%" controls src="${ge.Z.API_SERVER}/api/attachments/${data.id}"></video>`):Kr.content_type.indexOf("pdf")>-1?ot.replaceSelection(`<a href="${ge.Z.API_SERVER}/api/attachments/${Kr.id}?type=${Kr.content_type}&disposition=inline" target="_blank">${Kr.name}</a>`):ot.replaceSelection(`[${Kr.name}](${ge.Z.API_SERVER}/api/attachments/${Kr.id}?type=${Kr.content_type})`)}))});(0,ce.useEffect)(()=>{const Gr=window.scrollY||window.pageYOffset;En(In),ot==null||ot.setValue(In),window.scrollTo(0,Gr)},[In]),(0,ce.useEffect)(()=>{rn==null||rn(kn)},[kn]),(0,ce.useEffect)(()=>{if(sa.current){let Gr=function(Kr,fi){var ga;if(Nt){fi.preventDefault();return}const Fa=fi.clipboardData;if(Fa){const Ua=Fa.types.toString(),za=Fa.items;if(Ua==="Files"||Fa.types.indexOf("Files")>-1){if(fi.preventDefault(),Ye=="stex")return;try{let Ta=za[1];((ga=za[0])==null?void 0:ga.kind)==="file"&&(Ta=za[0]);const lo=Ta.getAsFile(),jo=lo.name.split(".").pop();(0,lt.I)(lo,_o=>{var hs,la,ya;_o.id?((hs=lo==null?void 0:lo.type)==null?void 0:hs.indexOf("image"))>-1?Zr.replaceSelection(`<img width="100%" src="/api/attachments/${_o.id}?type=${_o.content_type})" alt="" />`):((la=lo==null?void 0:lo.type)==null?void 0:la.indexOf("video"))>-1?Zr.replaceSelection(`<video width="100%" controls src="/api/attachments/${_o.id}"></video>`):((ya=lo==null?void 0:lo.type)==null?void 0:ya.indexOf("pdf"))>-1?Zr.replaceSelection(`<a href="/api/attachments/${_o.id}?type=${lo.type}&disposition=inline" target="_blank">${lo.name}</a>`):Hr.includes(jo)?Zr.replaceSelection(`<a href="/api/attachments/${_o.id}?type=office&disposition=inline" target="_blank">${lo.name}</a>`):Zr.replaceSelection(`[${lo.name}](/api/attachments/${_o.id}?type=${_o.content_type})`):(_o==null?void 0:_o.status)===401&&(Zt.ZP.warning((_o==null?void 0:_o.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ta){Zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Zr=Te().fromTextArea(sa.current,{mode:Ye,lineNumbers:!Dr,lineWrapping:!0,value:cr,autoCloseTags:!mn,autoCloseBrackets:!0});return Zr.on("keyup",function(Kr,fi){fi.keyCode===8&&(Kr.getValue()==""?Zr.setOption("placeholder",fn):Zr.setOption("placeholder",null))}),Zr.on("keydown",function(Kr,fi){if(fi.keyCode===8){var ga=Ti(Kr);ga&&fi.preventDefault()}}),_t&&Zr.focus(),Zr.on("paste",Gr),Zr.on("dragleave",function(Kr,fi){oi.current.classList.remove("mouse-hover-md")}),Jt&&Zr.on("beforeChange",function(Kr,fi){(fi.origin==="paste"||fi.origin==="+input")&&fi.cancel()}),tn(Zr),()=>{Zr.off("paste",Gr)}}},[]);const Ai=(0,ce.useCallback)(()=>{if(oi.current)try{}catch(Gr){console.log(Gr,"---- to set md editor body height")}},[ai,oi,kn]);(0,ce.useEffect)(()=>{function Gr(){let Zr=new dt.Z(Kr=>{for(let fi of Kr)(fi.target.offsetHeight>0||fi.target.offsetWidth>0)&&(Ai(),ot.setSize("100%","100%"),ot.refresh())});return Zr.observe(sa.current.parentElement),Zr}if(ot){const Zr=Gr();return()=>{var Kr,fi;(Kr=sa.current)!=null&&Kr.parentElement&&Zr.unobserve((fi=sa.current)==null?void 0:fi.parentElement)}}},[ot,Ai]),(0,ce.useEffect)(()=>{if(ot){let Gr=[];for(const[Zr,Kr]of Object.entries(br)){let fi={[Zr]:()=>{mi(Kr)}};Gr.push(fi),ot.addKeyMap(fi)}return Wr.current=setInterval(()=>{vi.current&&ki()},4e3),()=>{clearInterval(Wr.current);for(let Zr of Gr)ot.removeKeyMap(Zr)}}},[ot]),(0,ce.useEffect)(()=>{Nn!==kn&&Vn(Nn)},[Nn]),(0,Kn.Z)(()=>{if(!Ut&&Tr>0){let Gr=new Date().getTime(),Zr=window.sessionStorage.getItem(qe);Gr>=Tr+Cr&&(!Zr||Zr!==nn)&&(window.sessionStorage.setItem(qe,nn),di(!0))}},Cr),(0,ce.useEffect)(()=>{Mn(He)},[ot,He]),(0,ce.useEffect)(()=>{ot&&_t&&ot.focus()},[ot,_t]),(0,ce.useEffect)(()=>{if(gn&&ot){let Gr=function(Kr){let fi=Kr.target;if(rr.current){let ga=fi.scrollTop/fi.scrollHeight;rr.current.scrollTop=rr.current.scrollHeight*ga}};const Zr=ot.getScrollerElement();return Zr.addEventListener("scroll",Gr),()=>{Zr.removeEventListener("scroll",Gr)}}},[ot,gn]),(0,ce.useEffect)(()=>{if(ot&&Xn){let Gr=function(Zr,Kr){Xn(Zr,Kr)};return ot.on("beforeChange",Gr),()=>{ot.off("beforeChange",Gr)}}},[ot,Xn]),(0,ce.useEffect)(()=>{if(ot&&Wn){let Gr=function(){Wn(ot.getValue())};return ot.on("blur",Gr),()=>{ot.off("blur",Gr)}}},[ot,Wn]);function Ti(Gr,Zr){var Kr=Gr.getDoc(),fi=Kr.getCursor(),ga=Kr.getLine(fi.line),Fa=ga.charAt(fi.ch-1),Ua=ga.lastIndexOf("@\u2581@",fi.ch),za=ga.lastIndexOf("@\u2581\u2581@",fi.ch),Ta=Ua>za?Ua:za,lo=Ua>za?3:4;if($r.indexOf(Fa)===-1)return null;if(console.log("change1:",Zr,Gr,ga,fi,Ta,Ua,za,Fa),Ta>=0&&fi.ch-Ta<5){var jo=Ta+lo;return Kr.replaceRange("",{line:fi.line,ch:Ta},{line:fi.line,ch:jo}),{line:fi.line,ch:jo}}return null}(0,ce.useEffect)(()=>{if(ot){let Gr=function(Zr,Kr){const fi=Zr.getValue();En(fi),Jr(new Date().getTime()),Zr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ir&&(mn?Ir(fi,Ra(fi)):Ir(fi))};return ot.on("change",Gr),()=>{ot.off("change",Gr)}}},[ot,Ir]),(0,ce.useEffect)(()=>{if(ot)if(cr==null)ot.setValue(""),En("");else{const Gr=window.scrollY||window.pageYOffset;cr!==ot.getValue()&&(ot.setValue(cr),En(cr),ot.setCursor(Jt?1:ot.lineCount(),0),window.scrollTo(0,Gr))}},[ot,cr]);const mi=(0,ce.useCallback)(Gr=>{const Zr=ot.getCursor(),Kr=ot.getSelection();let fi=Kr.split(`
|
|
|
`);switch(Gr){case"bold":return ot.replaceSelection("**"+Kr+"**"),Kr===""&&ot.setCursor(Zr.line,Zr.ch+2),ot.focus();case"italic":return ot.replaceSelection("*"+Kr+"*"),Kr===""&&ot.setCursor(Zr.line,Zr.ch+1),ot.focus();case"code":return ot.replaceSelection("`"+Kr+"`"),Kr===""&&ot.setCursor(Zr.line,Zr.ch+1),ot.focus();case"inline-latex":return pr("inline-latex"),ot.focus();case"latex":return ot.replaceSelection("```latex\n"+Kr+"\n```"),ot.setCursor(Zr.line+1,Kr.length+1),ot.focus();case"line-break":return ot.replaceSelection(`<br/>
|
|
|
`),ot.focus();case"list-ul":return Kr===""?ot.replaceSelection("- "+Kr):ot.replaceSelection(fi.map(ga=>ga===""?"":`- ${ga}`).join(`
|
|
|
`)),ot.focus();case"list-ol":return Kr===""?ot.replaceSelection("1. "+Kr):ot.replaceSelection(fi.map((ga,Fa)=>ga===""?"":`${Fa+1}. ${ga}`).join(`
|
|
|
`)),ot.focus();case"add-null-ch":Bn==null||Bn();return;case"add-signal":return Kr===""&&ot.setCursor(Zr.line,Zr.ch),ot.replaceSelection(vr),ot.focus();case"add-multiple":return Kr===""&&ot.setCursor(Zr.line,Zr.ch),ot.replaceSelection($r),ot.focus();case"inster-template-1":return Kr===""&&ot.setCursor(Zr.line,Zr.ch),ot.replaceSelection(Er),ot.focus();case"eraser":return ot.setValue(""),ot.focus();case"trigger-watch":return Mn(!gn),ot.focus();case"trigger-full-screen":return Vn(!kn),ot.focus();case cn:pr(cn);return;case Gt:pr(Gt);return;case ct:pr(ct);return;case Ve:pr(Ve);return;case"maths-latex":pr("maths-latex");return;case Ae:pi.current="",sessionStorage.removeItem("file_id"),pr(Ae);return;case hn:pr(hn);return;default:throw new Error}},[ot,gn,kn]),Ci=(0,ce.useCallback)((Gr,Zr)=>{var Kr,fi,ga,Fa,Ua,za;pr("");const{src:Ta,alt:lo,id:jo}=Gr||{};switch(qn){case cn:const{title:po,link:La}=Gr;return ot.replaceSelection(`[${po}](${La})`),ot.focus();case Gt:const{language:$a,content:Ya}=Gr;return ot.replaceSelection(["```"+$a,Ya,"```"].join(`
|
|
|
`)),ot.focus();case"maths-latex":for(var _o=atob(Gr),hs=new Uint8Array(_o.length),la=0;la<_o.length;la++)hs[la]=_o.charCodeAt(la);var ya=new Blob([hs],{type:"image/png"});(0,lt.I)(ya,Ba=>{Ba.id?ot.replaceSelection(``):(Ba==null?void 0:Ba.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ot.replaceSelection("`$$"+Gr+"$$`");break;case Kt:if(!jo)return;ot.focus(),ot.getValue().indexOf(Ta)===-1?ot.replaceSelection(`<center><img id="${jo}" width="80%" src="${Ta}" class="draw-flowchart" alt="${lo||""}" /></center>`):document.getElementById(jo).src=ge.Z.API_SERVER+Ta+"?t="+Date.now();try{setTimeout(()=>{Wn(ot.getValue())},100)}catch(Ba){}break;case ct:case Ve:const Za=Zr,Oi=(ga=(fi=(Kr=Za==null?void 0:Za.name)==null?void 0:Kr.split("."))==null?void 0:fi.pop)==null?void 0:ga.call(fi);return((Fa=Za==null?void 0:Za.type)==null?void 0:Fa.indexOf("image"))>-1||!(Za!=null&&Za.type)?Za!=null&&Za.align||Za!=null&&Za.width?ot.replaceSelection(`<p style="text-align:${Za.align||"initial"}"><img width="${Za.width?Za.width+"%":"initial"}" src="${Ta}" alt="${lo||""}" /></p>`):ot.replaceSelection(`<img width="100%" src="${Ta}" alt="${lo||""}" />`):((Ua=Za==null?void 0:Za.type)==null?void 0:Ua.indexOf("video"))>-1?ot.replaceSelection(`<video width="100%" controls src="${Ta}"></video>`):((za=Za==null?void 0:Za.type)==null?void 0:za.indexOf("pdf"))>-1?ot.replaceSelection(`<a href="${Ta}?type=${Za.type}&disposition=inline" target="_blank">${Za.name}</a>`):Hr.includes(Oi)?ot.replaceSelection(`<a href="${Ta}?type=office&disposition=inline" target="_blank">${Za.name}</a>`):ot.replaceSelection(`[${Za.name}](${Ta})`),ot.focus();case hn:const{row:ua,col:ra,align:Wi}=Gr;let Oa=`
|
|
|
`;for(let Ba=0;Ba<ua;Ba++){let zo=[],Vo=[];for(let $o=0;$o<ra;$o++)Ba===1&&Vo.push(Ln[Wi]),zo.push(" ");Ba===1&&(Oa+=`| ${Vo.join(" | ")} |
|
|
|
`),Oa+=`| ${zo.join(ra===1?"":" | ")} |
|
|
|
`}return ot.replaceSelection(Oa+`
|
|
|
`),ot.focus();default:throw new Error}},[ot,qn]),Pa=(0,ce.useMemo)(()=>{switch(qn){case cn:return ce.createElement(on,{callback:Ci,onCancel:_r});case Gt:return ce.createElement(Yt.Z,{callback:Ci,onCancel:_r});case ct:return ce.createElement(lt.Z,{callback:Ci,onCancel:_r});case Ae:return ce.createElement(de,{editImgId:pi.current,callback:Ci,onCancel:_r});case hn:return ce.createElement(_e,{callback:Ci,onCancel:_r});case"maths-latex":return ce.createElement(xn,{showSaveButton:!0,callback:Ci});case"inline-latex":return ce.createElement(xt.Z,{showSaveButton:!0,callback:Ci});default:return null}},[qn]);function _r(){pr("")}(0,ce.useEffect)(()=>{if(ar.current){let Gr=function(Ua){ga=!0,Fa=Ua.pageY},Zr=function(){ga=!1},Kr=function(Ua){if(ga){let za=Ua.pageY-Fa;za<0&&(za=0),za>300&&(za=300);let Ta=Jn+za+"px";Nr(Ta)}},fi=ar.current,ga=!1,Fa=0;return fi.addEventListener("mousedown",Gr),document.addEventListener("mousemove",Kr),document.addEventListener("mouseup",Zr),()=>{fi.removeEventListener("mousedown",Gr),document.removeEventListener("mousemove",Kr),document.removeEventListener("mouseup",Zr)}}},[ot,ar]),(0,ce.useEffect)(()=>{Nr(Jn)},[Jn]);const Xr=wn(or),Pi=wn(ai),Hi={width:Xr,height:Pi},Na=(0,ce.useMemo)(()=>{if(Tr){let Gr=new Date(Tr),Zr=Gr.getHours(),Kr=Gr.getMinutes(),fi=Gr.getSeconds();return Zr=Zr<10?"0"+Zr:Zr,Kr=Kr<10?"0"+Kr:Kr,fi=fi<10?"0"+fi:fi,`${Zr}:${Kr}:${fi}`}return 0},[Tr]),Ra=Gr=>{const Zr=[];if(mn){let Kr=-1;Gr=Gr.replace(/(@▁▁@|@▁@)/g,function(fi,ga,Fa){Zr.push({multiLine:fi!==vr})})}return Zr};function ka(){window.sessionStorage.removeItem(qe),di(!1),Jr(0)}function ha(){di(!1),Jr(0),ot.setValue(window.sessionStorage.getItem(qe))}(0,ce.useEffect)(()=>{hr[qn]&&qn!==Ve&&qn!==Ae&&setTimeout(()=>{const Gr=document.getElementsByClassName("markdown-popup-form")[0],Zr=window.innerWidth/2-Gr.offsetWidth/2,Kr=window.innerHeight/2-Gr.offsetHeight/2;yi(Zr),$i(Kr)},0)},[qn]);const Qa=Gr=>{Gr.preventDefault();const Zr=Gr.clientX-jr,Kr=Gr.clientY-ui;document.body.onmousemove=fi=>{let ga=fi.clientX-Zr,Fa=fi.clientY-Kr;const Ua=document.getElementsByClassName("markdown-popup-form")[0],za=window.innerWidth-Ua.offsetWidth,Ta=window.innerHeight-Ua.offsetHeight;ga=Math.max(0,Math.min(ga,za)),Fa=Math.max(0,Math.min(Fa,Ta)),Ja(fi.clientX,fi.clientY,Zr,Kr)&&(yi(ga),$i(Fa))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ja=(Gr,Zr,Kr,fi)=>{const ga=document.body.clientHeight,Fa=document.body.clientWidth;return Gr<20&&Kr>Gr||Gr>Fa-20&&Kr<Gr||Zr<20&&fi>Zr||Zr>ga-20&&fi<Zr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:"markdown-editor-wrapper",ref:oi},ce.createElement("div",{className:`markdown-editor-container ${Tn} ${gn?"on-preview":""} ${Dr?"mini":""} ${kn?"full-screen":""}`,style:Hi},ce.createElement(Xe,{insertTemp:nt,watch:gn,fullScreen:kn,showNullButton:An,showNullProgramButton:mn,onActionCallback:mi,hidetoolBar:ln,extraUse:un}),ce.createElement("div",{className:"markdown-editor-body"},ce.createElement("div",{className:"codemirror-container"},ce.createElement("textarea",{ref:sa,placeholder:fn})),gn?ce.createElement("div",{ref:rr,className:"preview-container"},Ye==="stex"&&ce.createElement(Pe,{value:nn}),Ye!=="stex"&&ce.createElement(vt.Z,{edit:!0,disabledFill:sn,showProgramFill:mn,value:nn,openEditor:Gr=>{var Zr;pi.current=Gr,(Zr=ni.current)==null||Zr.setHeight("100vh"),setTimeout(()=>{pr("add-flowchart")},150)}})):null))),Mt?ce.createElement("a",{ref:ar,className:"editor-resize"}):null,qn===Ve&&ce.createElement(Pn,{callback:Ci,onCancel:_r}),qn===Ae&&ce.createElement(de,{ref:ni,editImgId:pi.current,callback:Ci,onCancel:_r}),ce.createElement(Qe.Z,null,hr[qn]&&qn!==Ve&&qn!==Ae?ce.createElement(pt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:jr,top:ui},title:ce.createElement("div",{style:{cursor:"move"},onMouseDown:Qa},hr[qn]),open:!0,onCancel:_r,footer:null,destroyOnClose:!0,width:qn===Ae?"1200px":null,height:qn===Ae?"80vh":null,className:"markdown-popup-form"},Pa):null))}},58448:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return je},I:function(){return Qe}});var ce=ae(78241),De=ae(8591),Te=ae(92832),dt=ae(81327),be=ae(5871),ke=ae(5112),pe=ae(3113),xe=ae(79090),Me=ae(59301),Ke=ae(7544),vt=ae(59301),Pe=Object.defineProperty,Be=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,wt=(Ue,mt,Le)=>mt in Ue?Pe(Ue,mt,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ue[mt]=Le,It=(Ue,mt)=>{for(var Le in mt||(mt={}))tt.call(mt,Le)&&wt(Ue,Le,mt[Le]);if(Je)for(var Le of Je(mt))yt.call(mt,Le)&&wt(Ue,Le,mt[Le]);return Ue},gt=(Ue,mt)=>Be(Ue,et(mt));const{useForm:st}=ce.default,ze={width:280,marginRight:10},he={labelCol:{span:5},wrapperCol:{span:19}};var je=({callback:Ue,onCancel:mt})=>{const[Le]=st();let Bt=(0,Me.useRef)();function at(Tt){Bt.current.width=Le.getFieldValue("width"),Bt.current.align=Le.getFieldValue("align"),Ue(Tt,Bt.current)}function Wt(Tt,Xt){if(Tt.status===-1){De.ZP.error(Tt.message);return}Le.setFieldsValue({src:`/api/attachments/${Tt.id}`,type:Xt.type})}function Lt(Tt){let Xt=Tt.target.files[0];Bt.current=Xt,Qe(Xt,Wt)}return vt.createElement(ce.default,gt(It({form:Le},he),{className:"upload-image-panel",onFinish:at,style:{width:470,overflow:"hidden"}}),vt.createElement(ce.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},vt.createElement("div",{className:"flex-container"},vt.createElement(ce.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},vt.createElement(Te.default,{style:ze})),vt.createElement(Xe,{onFileChange:Lt}))),vt.createElement(ce.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},vt.createElement(Te.default,{style:{width:264}})),vt.createElement(ce.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},vt.createElement(dt.Z,null,vt.createElement(ce.default.Item,{name:"width",style:{margin:0}},vt.createElement(be.Z,{style:{width:264}})),vt.createElement("span",{className:"ml8"},"%"))),vt.createElement(ce.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},vt.createElement(ke.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"}]})),vt.createElement("aside",null,vt.createElement(ce.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},vt.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),vt.createElement(pe.ZP,{type:"default",onClick:mt},"\u53D6\u6D88"))))};function Xe({onFileChange:Ue}){return vt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",vt.createElement("input",{type:"file",onChange:Ue}))}function Qe(Ue,mt){if(!Ue)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ke.bg)())throw De.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",Ue),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var Bt=new window.XMLHttpRequest;Bt.withCredentials=!0,Bt.addEventListener("load",function(at){mt(JSON.parse(at.target.responseText),Ue)},!1),Bt.addEventListener("error",function(at){console.error(at)},!1),Bt.open("POST",`${xe.KI}/api/attachments.json`),Bt.send(Le)}},53531:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Te}});var ce=ae(59301),De=ae(4676);class Te extends ce.Component{constructor(be){super(be);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,De.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},57649:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return De}});var ce=ae(59301);function De(Te,dt){const be=(0,ce.useRef)();(0,ce.useEffect)(()=>{be.current=Te}),(0,ce.useEffect)(()=>{function ke(){be.current()}if(dt!==null){let pe=setInterval(ke,dt);return()=>clearInterval(pe)}},[dt])}},43255:function(zn,en,ae){"use strict";ae.d(en,{Q8:function(){return Ce},d0:function(){return Et},w6:function(){return it}});var ce=ae(59301),De=ae(5083),Te=ae(57809),dt=ae(8591),be=ae(43418),ke=ae(5112),pe=ae(95237),xe=ae(43604),Me=ae(6848),Ke=ae(24905),vt=ae(3113),Pe=ae(66649),Be=ae.n(Pe),et=ae(7544),Je=ae(79769),tt=ae(78267),yt=ae.n(tt),wt=ae(25544),It=ae(7923),gt=ae(91482),st=ae(78707),ze=ae(20808),he=ae(73438),je=ae(77754),Xe=ae(44093),Qe=ae(59301),Ue=Object.defineProperty,mt=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Lt=(pt,Ft,Sn)=>Ft in pt?Ue(pt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):pt[Ft]=Sn,Tt=(pt,Ft)=>{for(var Sn in Ft||(Ft={}))at.call(Ft,Sn)&&Lt(pt,Sn,Ft[Sn]);if(Bt)for(var Sn of Bt(Ft))Wt.call(Ft,Sn)&&Lt(pt,Sn,Ft[Sn]);return pt},Xt=(pt,Ft)=>mt(pt,Le(Ft)),jt=(pt,Ft,Sn)=>new Promise(($t,Pn)=>{var Zt=ye=>{try{Ht(Sn.next(ye))}catch(ue){Pn(ue)}},an=ye=>{try{Ht(Sn.throw(ye))}catch(ue){Pn(ue)}},Ht=ye=>ye.done?$t(ye.value):Promise.resolve(ye.value).then(Zt,an);Ht((Sn=Sn.apply(pt,Ft)).next())});function it(pt,Ft){const Sn=[];for(let $t=pt;$t<Ft;$t++)Sn.push($t);return Sn}const Ce=(pt,Ft,Sn)=>{const $t=pt<Be()().startOf("day"),Pn=pt>Be()(Ft).endOf("day"),Zt=pt<Be()(Sn).startOf("day");return Ft?Sn?Be()()<=Be()(Sn)?Zt||Pn:$t||Pn:pt&&$t||Pn:Sn&&Be()()<=Be()(Sn)?Zt:$t},Et=(pt,Ft)=>{const Sn=parseInt(Be()(pt).format("HH")),$t=parseInt(Be()().format("HH")),Pn=parseInt(Be()().format("mm"));if(!pt)return{disabledHours:()=>it(0,$t),disabledMinutes:()=>it(0,Pn)};if(Ft){const Zt=parseInt(Be()(Ft).format("HH")),an=parseInt(Be()(Ft).format("mm"));return Be()(pt).isSame(Be()(Ft),"day")?{disabledHours:()=>it(0,Zt),disabledMinutes:()=>Sn<=Zt?it(0,an):[]}:void 0}if(Be()(pt).isSame(Be()(),"day"))return{disabledHours:()=>it(0,$t),disabledMinutes:()=>Be()(pt).isSame(Be()(),"hour")&&Sn<=$t?it(0,Pn):[]}},{RangePicker:on}=De.default,{Option:Yt}=Te.default,lt=({shixunHomeworks:pt,loading:Ft,dispatch:Sn,classroomList:$t,user:Pn})=>{var Zt,an,Ht,ye,ue,le,de,ge,se;const Oe=(0,gt.useParams)(),{workSetting:ut,workList:Ge,shixunWorkList:_e,headerInfo:St,changeData:bt}=pt,[rt,Dt]=(0,ce.useState)(!1),[xn,xt]=(0,ce.useState)(!1);let[Rt,cn]=(0,ce.useState)([]),[ct,Ae]=(0,ce.useState)([]),[Ve,Kt]=(0,ce.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:st.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Gt,hn]=(0,ce.useState)({}),[On,Ln]=(0,ce.useState)({});(0,ce.useEffect)(()=>()=>{cn([])},[]),(0,ce.useEffect)(()=>{Dt(!(0,et.GJ)())},[(0,et.GJ)()]);const Kn=()=>{Sn({type:"shixunHomeworks/getWorkSetting",payload:Tt({},Oe)})};(0,ce.useEffect)(()=>{if(!(ut!=null&&ut.course_id))return;Object.keys(Ve).map(function(Zn){Ve[Zn]=ut[Zn]}),(!Ve.allow_late||!Ve.unified_late)&&(Ve.late_penalty=20,Ve.penalty_type=st.Q.Percent),Ve.unified_setting||(Ve.unified_late=!1,Ve.unified_anonymous_comment=!1,Ve.unified_anonymous_appeal=!1),Rt=JSON.parse(JSON.stringify(ut.group_settings.map(Zn=>Xt(Tt({},Zn),{group_name:[Zn.group_name]})).filter(Zn=>Zn.publish_time!==null))),ct=JSON.parse(JSON.stringify(ut.allow_late_settings.map(Zn=>Xt(Tt({},Zn),{group_name:[Zn.group_name]})).filter(Zn=>Zn.late_time!==null))),Kt(Tt({},Ve));const wn=(0,wt.QE)((Rt==null?void 0:Rt.length)>0?Rt:[]);cn([...wn]),(ct==null?void 0:ct.length)<=0?Ae([{penalty_type:st.Q.Percent,late_penalty:20}]):Ae([...ct])},[ut]);const tr=()=>jt(void 0,null,function*(){var wn,Zn;if(((wn=Pn==null?void 0:Pn.userInfo)==null?void 0:wn.user_status)===2){(0,ze.Rd)();return}const Or=JSON.parse(JSON.stringify(Ve));if(Or.challenge_settings.filter(hr=>!hr.hide),Or.categoryId=Oe.categoryId,(Zn=Or.challenge_settings)!=null&&Zn.every(hr=>!hr.checked)){dt.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Rt),!Ve.unified_setting)Rt=Rt==null?void 0:Rt.map(hr=>{var Yr;if(!hr.publish_time||!hr.end_time)throw dt.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!hr.group_name)throw dt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return hr.group_name=typeof(hr==null?void 0:hr.group_name)=="string"?[hr==null?void 0:hr.group_name]:hr==null?void 0:hr.group_name,hr.group_id=(Yr=ut.group_settings)==null?void 0:Yr.filter(cr=>{var Ir;return(Ir=hr==null?void 0:hr.group_name)==null?void 0:Ir.includes(cr.group_name)}).map(cr=>cr.group_id||cr.id).toString().split(","),hr});else if(!Ve.publish_time||!Ve.end_time)throw dt.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(Or.group_settings=Rt,Ve.allow_late)if(Ve.unified_late){if(Ve.late_penalty===null||Ve.late_penalty===void 0||Ve.late_penalty<0||Ve.late_penalty>100)throw dt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ve.late_time)throw dt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else ct=ct==null?void 0:ct.map(hr=>{var Yr,cr;if(hr.late_penalty===null||hr.late_penalty===void 0||hr.late_penalty<0||hr.late_penalty>100)throw dt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!hr.late_time)throw dt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!hr.group_name)throw dt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return hr.group_name=typeof(hr==null?void 0:hr.group_name)=="string"?[hr==null?void 0:hr.group_name]:hr==null?void 0:hr.group_name,hr.group_id=(cr=(Yr=hr==null?void 0:hr.group_name)==null?void 0:Yr.map(Ir=>{var or,Jn;let Dr=(Jn=(or=ut.group_settings)==null?void 0:or.filter(_t=>(_t==null?void 0:_t.group_name)===Ir))==null?void 0:Jn[0];return Dr==null?void 0:Dr.group_id}))==null?void 0:cr.toString().split(","),hr}),Or.allow_late_settings=ct;let br=yield(0,Xe.Tr)({homework_common_ids:[parseInt(Oe.categoryId)],course_id:Oe.coursesId,type:"homework_common"});(br==null?void 0:br.student_count)===0?gr(Or):(Ln(Or),hn(br))}),gr=wn=>{var Zn;if(wn.total_score===null){dt.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(wn!=null&&wn.work_efficiency&&wn.eff_score===null){dt.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Or=wn.challenge_settings.reduce((Yr,cr)=>Yr+Number(cr.challenge_score),0);if((Or==null?void 0:Or.toFixed(10))!==((Zn=wn.total_score-wn.eff_score)==null?void 0:Zn.toFixed(10))){dt.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${wn.total_score}\u5206`);return}const br={shixun_evaluation:wn.shixun_evaluation,challenge_settings:wn.challenge_settings};let hr=()=>{var Yr;const cr=()=>jt(void 0,null,function*(){xt(!0),(yield(0,Je.ZP)(`/api/homework_commons/${Oe.categoryId}/publish_setting.json`,{method:"post",body:Tt({},wn)})).status===0&&(dt.ZP.success("\u66F4\u65B0\u6210\u529F"),Kn(),Sn({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Tt({},Oe)})),xt(!1)});!(0,tt.isEqual)(bt,br)&&!((Yr=St==null?void 0:St.homework_status)!=null&&Yr.includes("\u672A\u53D1\u5E03"))?be.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:cr}):cr()};ut!=null&&ut.high_resources_consume&&!(ut!=null&&ut.high_resources_consume_permission)?Sn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Oe.coursesId,type:"shixun",type_id:Oe.categoryId,name:ut.homework_name,fn:()=>{hr()}}}):hr()},Un=(wn,Zn,Or="group_id")=>{var br;return Zn?Zn.find(hr=>hr[Or]===wn):(br=ut==null?void 0:ut.group_settings)==null?void 0:br.find(hr=>hr.group_id[0]===wn)},Cr=(ut==null?void 0:ut.allow_late)||(ut==null?void 0:ut.anonymous_comment),Rr=wn=>{var Zn,Or;const br=Un(wn,ut==null?void 0:ut.allow_late_settings,"id"),hr=Un(wn,ut==null?void 0:ut.anonymous_comment_settings),Yr=Un(wn);return(ut==null?void 0:ut.allow_late)&&br&&Be()(br==null?void 0:br.late_time)<=Be()()||(ut==null?void 0:ut.anonymous_comment)&&hr&&(hr==null?void 0:hr.evaluation_start)!==null||((Or=(Be()(Yr==null?void 0:Yr.end_time)<=Be()()&&((Zn=ut==null?void 0:ut.allow_late_settings)==null?void 0:Zn.filter(cr=>cr.group_id.includes(wn))))[0])==null?void 0:Or.late_time)!=null},$r=(0,ce.useMemo)(()=>(ut==null?void 0:ut.allow_late)||(ut==null?void 0:ut.all_group_late),[ut,St]),vr=ut==null?void 0:ut.anonymous_comment,Er=wn=>{if(!wn)return!1;const Zn=Un(wn,ut==null?void 0:ut.anonymous_comment_settings);return(ut==null?void 0:ut.anonymous_comment)&&Zn&&(Zn==null?void 0:Zn.evaluation_start)!==null},Hr=(wn,Zn)=>{var Or,br,hr;Sn({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:wn,index:Zn,rangePickerDisabled:rt||(Be()()<=Be()((br=Un((Or=wn==null?void 0:wn.group_id)==null?void 0:Or[0]))==null?void 0:br.publish_time)?!1:[!0,Rr((hr=wn==null?void 0:wn.group_id)==null?void 0:hr[0])]),disabledDate:ut==null?void 0:ut.course_end_date}})};return Qe.createElement("section",{className:It.Z.form},Qe.createElement("div",{className:It.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Qe.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Qe.createElement("div",null,Qe.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Qe.createElement(ke.ZP.Group,{disabled:rt||!((Zt=St==null?void 0:St.homework_status)!=null&&Zt.includes("\u672A\u53D1\u5E03"))||(0,et.Rm)()&&!((an=$t.AssistantObject.practice)!=null&&an.can_publish),value:Ve.unified_setting,onChange:wn=>{var Zn;if(!((Zn=St==null?void 0:St.homework_status)!=null&&Zn.includes("\u672A\u53D1\u5E03"))){dt.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Ve.unified_setting=!Ve.unified_setting,Ve.unified_setting||(Ve.unified_late=!1,Ae([{late_penalty:5}])),Kt(Object.assign({},Ve)),Ve.unified_setting===!1&&Rt==""){cn(Rt.concat({}));return}Ve.unified_setting&&(cn([]),Ae([{late_penalty:5}]))}},Qe.createElement(ke.ZP,{value:!0,disabled:rt||!(ut!=null&&ut.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Qe.createElement(ke.ZP,{disabled:rt||!((Ht=ut==null?void 0:ut.group_settings)!=null&&Ht.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((ye=ut==null?void 0:ut.group_settings)==null?void 0:ye.length)===0&&Qe.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),Ve.unified_setting&&Qe.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Qe.createElement(pe.Z,{align:"middle"},Qe.createElement(xe.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Qe.createElement(xe.Z,{className:"ml10"},Qe.createElement(De.default,{size:"large",disabled:rt||!((ue=St==null?void 0:St.homework_status)!=null&&ue.includes("\u672A\u53D1\u5E03")||(le=St==null?void 0:St.homework_status)!=null&&le.includes("\u672A\u5F00\u59CB"))||(0,et.Rm)()&&!((de=$t.AssistantObject.practice)!=null&&de.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:wn=>Ce(wn,ut==null?void 0:ut.course_end_date),disabledTime:wn=>Et(wn),value:Ve.publish_time?Be()(Ve.publish_time):"",onChange:(wn,Zn)=>{Ve.publish_time=Zn,(Ve.end_time==""||!Ve.end_time)&&Ve.unified_setting&&(Ve.end_time=Be()(wn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Kt(Object.assign({},Ve))}}))),Qe.createElement(pe.Z,{align:"middle",className:"pl30"},Qe.createElement(xe.Z,null,"\u622A\u6B62\u65F6\u95F4"),Qe.createElement(xe.Z,{className:"ml10"},Qe.createElement(De.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Be()((0,wt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(ut==null?void 0:ut.allow_late)&&(ut==null?void 0:ut.homework_status.includes("\u5DF2\u622A\u6B62"))||rt||(ut==null?void 0:ut.allow_late)&&Be()()>=Be()(ut==null?void 0:ut.end_time)||(0,et.Rm)()&&!((ge=$t.AssistantObject.practice)!=null&&ge.can_publish),disabledDate:wn=>Ce(wn,ut==null?void 0:ut.course_end_date,Ve.publish_time),disabledTime:wn=>Et(wn,Ve.publish_time),value:Ve.end_time?Be()(Ve.end_time):"",onChange:(wn,Zn)=>{Ve.end_time=Zn,Kt(Object.assign({},Ve))}})))),!Ve.unified_setting&&(Rt==null?void 0:Rt.length)>0&&Qe.createElement(pe.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Rt&&Rt.map(function(wn,Zn){var Or,br,hr,Yr,cr,Ir,or;return Qe.createElement(xe.Z,{span:24,key:Zn},Qe.createElement(pe.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Zn==(Rt==null?void 0:Rt.length)-1?"0px":"10px"}},Qe.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Zn+1),Qe.createElement(Te.default,{disabled:rt||((Or=St==null?void 0:St.homework_status)!=null&&Or.includes("\u672A\u53D1\u5E03")&&wn.id||Be()()<Be()(wn==null?void 0:wn.publish_time)?!1:!!(wn!=null&&wn.publish_time))||(0,et.Rm)()&&!((br=$t.AssistantObject.practice)!=null&&br.can_publish),mode:"multiple",className:It.Z.multiple_select,style:{width:"250px"},value:wn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Jn=>{var Dr;if((0,et.Rm)()&&!((Dr=$t.AssistantObject.practice)!=null&&Dr.can_publish)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Rt[Zn].group_name=Jn,Rt[Zn].group_id=wn.group_id;const _t=(0,tt.flattenDeep)(Rt.map(nt=>nt.group_name)),He=ct.map(nt=>{let Ye=(nt==null?void 0:nt.group_name)||[];return Xt(Tt({},nt),{group_name:(0,tt.remove)(Ye,qe=>_t.includes(qe))})});Ae(He),cn(Rt.slice())},maxTagCount:4,maxTagPlaceholder:Jn=>Qe.createElement("div",{style:{cursor:"pointer"},onClick:()=>Hr(wn,Zn)},"+",Jn==null?void 0:Jn.length)},ut.group_settings&&ut.group_settings.map(function(Jn){if(!Rt.map(_t=>_t.group_name).flat().includes(Jn.group_name))return Qe.createElement(Yt,{value:Jn.group_name,key:Jn.id},Jn.group_name)})),Qe.createElement("div",{className:"ml20"},Qe.createElement(on,{size:"large",ranges:{\u6B64\u523B:[wn.publish_time?Be()(wn.publish_time):Be()(),Be()()]},allowClear:!1,disabled:rt||(Be()()<=Be()((Yr=Un((hr=wn==null?void 0:wn.group_id)==null?void 0:hr[0]))==null?void 0:Yr.publish_time)?!1:[!0,Rr((cr=wn==null?void 0:wn.group_id)==null?void 0:cr[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Jn=>Ce(Jn,ut==null?void 0:ut.course_end_date),disabledTime:Jn=>Et(Jn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Be()((0,wt.U6)(),"HH:mm"),Be()((0,wt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:wn.publish_time&&[Be()(wn.publish_time),wn.end_time?Be()(wn.end_time):void 0],onChange:(Jn,Dr)=>{var _t;if((0,et.Rm)()&&!((_t=$t.AssistantObject.practice)!=null&&_t.can_publish)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Rt[Zn].publish_time=Dr[0],!wn.end_time&&Dr[0]?Rt[Zn].end_time=Be()(Dr[0]).add(7,"days"):Rt[Zn].end_time=Dr[1],cn([...Rt])},onCalendarChange:(Jn,Dr,_t)=>{if(Dr!=null&&Dr[0]&&!Dr[1]){const He=Be()(Dr[0]).add(7,"days");Rt[Zn].publish_time=Dr[0],Rt[Zn].end_time=He,cn([...Rt])}}})),!rt&&Qe.createElement("div",{style:{display:"flex",width:"50px"}},((Ir=wn==null?void 0:wn.group_id)==null?void 0:Ir.length)>1&&Qe.createElement(Me.Z,{title:"\u89C4\u5219\u62C6\u5206"},Qe.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Hr(wn,Zn)})),Rt.length<((or=ut==null?void 0:ut.group_settings)==null?void 0:or.length)&&Qe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Jn;if((0,et.Rm)()&&!((Jn=$t.AssistantObject.practice)!=null&&Jn.can_publish)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cn(Rt.concat({}))}}),((wn==null?void 0:wn.publish_time)&&Be()()<Be()(wn==null?void 0:wn.publish_time)||!(wn!=null&&wn.publish_time))&&Zn!=0&&Qe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Jn=(0,tt.cloneDeep)(ct);Jn.forEach((Dr,_t)=>{Dr.group_name&&(Dr.group_name=Dr.group_name.filter(He=>{var nt;return!((nt=Rt[Zn].group_name)!=null&&nt.includes(He))}))}),Rt=Rt.filter((Dr,_t)=>Zn!==_t),Ae(Jn),cn(Rt.slice()),setTimeout(()=>cn(Rt.slice()),10)}}))))}))),Qe.createElement(pe.Z,null,Qe.createElement(xe.Z,null,Qe.createElement("div",{className:It.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Qe.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Qe.createElement(xe.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Qe.createElement(Ke.default,{checked:Ve.allow_late,disabled:rt||$r,onChange:wn=>{var Zn;if((0,et.Rm)()&&!((Zn=$t.AssistantObject.practice)!=null&&Zn.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}wn.target.checked&&be.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Qe.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Qe.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Qe.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Qe.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),Ve.allow_late=!Ve.allow_late,ct==""&&Ae([{late_penalty:5}]),Kt(Object.assign({},Ve))}},Qe.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Ve==null?void 0:Ve.allow_late)&&Qe.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Qe.createElement("div",{style:{display:"flex"}},Qe.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Qe.createElement(ke.ZP.Group,{style:{marginLeft:"20px"},disabled:rt||(ut==null?void 0:ut.anonymous_comment)||(ut==null?void 0:ut.allow_late),value:Ve.unified_late,onChange:wn=>{var Zn;if((0,et.Rm)()&&!((Zn=$t.AssistantObject.practice)!=null&&Zn.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve.unified_late=wn.target.value,ct==""&&!wn.target.value&&Ae([{penalty_type:st.Q.Percent,late_penalty:20}]),Kt(Tt({},Ve))}},(Ve==null?void 0:Ve.unified_setting)&&Qe.createElement(ke.ZP,{value:!0,disabled:!(ut!=null&&ut.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((se=ut==null?void 0:ut.group_settings)==null?void 0:se.length)>0&&Qe.createElement(ke.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Ve!=null&&Ve.unified_late?Qe.createElement(Qe.Fragment,null,Qe.createElement(pe.Z,{align:"middle",style:{marginTop:"10px"}},Qe.createElement(xe.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Qe.createElement(xe.Z,{className:"ml20"},Qe.createElement(st.Z,{disabled:rt||vr,value:{type:Ve.penalty_type,inputValue:Ve.late_penalty},onChange:wn=>{var Zn;if((0,et.Rm)()&&!((Zn=$t.AssistantObject.practice)!=null&&Zn.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Kt(Xt(Tt({},Ve),{late_penalty:wn.inputValue,penalty_type:wn.type}))}})),Qe.createElement(xe.Z,{flex:"1",className:"ml5"},Qe.createElement("span",{className:"c-grey-c ml10"},Ve.penalty_type===st.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Qe.createElement(pe.Z,{align:"middle",style:{marginTop:"15px"}},Qe.createElement(xe.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Qe.createElement(xe.Z,{className:"ml20"},Qe.createElement(De.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Be()((0,wt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:rt||vr,value:Ve.late_time?Be()(Ve.late_time):"",disabledDate:wn=>Ce(wn,ut==null?void 0:ut.course_end_date),onChange:(wn,Zn)=>{var Or;if((0,et.Rm)()&&!((Or=$t.AssistantObject.practice)!=null&&Or.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve.late_time=Zn,Kt(Object.assign({},Ve))}})))):ct.map(function(wn,Zn){var Or;return Qe.createElement(xe.Z,{span:24,key:Zn},Qe.createElement(pe.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Qe.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Zn+1),Qe.createElement(Te.default,{disabled:rt||!((Or=St==null?void 0:St.homework_status)!=null&&Or.includes("\u672A\u53D1\u5E03"))&&wn.id||(ut==null?void 0:ut.anonymous_comment),mode:"multiple",className:It.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof wn.group_name=="string"?[wn.group_name]:wn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:br=>{var hr;if((0,et.Rm)()&&!((hr=$t.AssistantObject.practice)!=null&&hr.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ct[Zn].group_name=br,ct[Zn].group_id=wn.group_id,Ae(ct.slice())}},ut.group_settings&&ut.group_settings.map(function(br){const hr=ct.map(cr=>cr.group_name).flat(),Yr=Rt.map(cr=>cr.group_name).flat();if(Ve!=null&&Ve.unified_setting){if(!hr.includes(br.group_name))return Qe.createElement(Yt,{value:br.group_name,key:br.id},br.group_name)}else if(Yr.includes(br.group_name)&&!hr.includes(br.group_name))return Qe.createElement(Yt,{value:br.group_name,key:br.id},br.group_name)})),Qe.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Qe.createElement(st.Z,{disabled:rt||Er(wn.id),value:{type:wn.penalty_type,inputValue:wn.late_penalty},onChange:br=>{var hr;if((0,et.Rm)()&&!((hr=$t.AssistantObject.practice)!=null&&hr.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ct[Zn].late_penalty=br.inputValue,ct[Zn].penalty_type=br.type,Ae([...ct])}}),Qe.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Qe.createElement(De.default,{size:"large",disabled:rt||Er(wn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Be()((0,wt.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:br=>Ce(br,ut==null?void 0:ut.course_end_date),format:"YYYY-MM-DD HH:mm",value:wn!=null&&wn.late_time?Be()(wn.late_time):void 0,onChange:(br,hr)=>{var Yr;if((0,et.Rm)()&&!((Yr=$t.AssistantObject.practice)!=null&&Yr.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ct[Zn].late_time=hr,Ae([...ct])}}),!rt&&Qe.createElement("div",{style:{display:"flex",width:"50px"}},Qe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var br;if((0,et.Rm)()&&!((br=$t.AssistantObject.practice)!=null&&br.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ae(ct.concat({penalty_type:st.Q.Percent,late_penalty:20}))}}),Zn>0&&!wn.id&&Qe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var br;if((0,et.Rm)()&&!((br=$t.AssistantObject.practice)!=null&&br.can_late)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ct=ct.filter((hr,Yr)=>Zn!==Yr),Ae(ct.slice()),setTimeout(()=>Ae(ct.slice()),10)}}))))})),!rt&&Qe.createElement(Qe.Fragment,null,Qe.createElement(vt.ZP,{type:"primary",size:"large",loading:xn,style:{width:"138px",marginTop:"30px"},onClick:()=>tr()},"\u4FDD\u5B58")),Qe.createElement(he.Z,{onConfirm:(wn,Zn)=>{Rt.splice(wn,0,...Zn),Rt.splice(wn+Zn.length,1);const Or=(0,wt.QE)([...Rt]);cn([...Or])}}),Qe.createElement(je.Z,{resdata:Gt,type:"shixun",okloading:xn,oktext:(Gt==null?void 0:Gt.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:wn=>jt(void 0,null,function*(){xt(!0);let Zn=yield(0,Je.ZP)(`/api/courses/${Oe.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Oe.categoryId)]}});xt(!1),(Zn==null?void 0:Zn.status)===0&&gr(On)})}))};en.ZP=(0,gt.connect)(({shixunHomeworks:pt,classroomList:Ft,loading:Sn,user:$t})=>({shixunHomeworks:pt,classroomList:Ft,loading:Sn.effects,user:$t}))(lt)},66372:function(zn,en,ae){"use strict";var ce=ae(59301),De=ae(54580),Te=ae(78241),dt=ae(43418),be=ae(8591),ke=ae(1710),pe=ae(91482),xe=ae(6521),Me=ae(81194),Ke=ae(79769),vt=ae(66649),Pe=ae.n(vt),Be=ae(25544),et=ae(59301),Je=Object.defineProperty,tt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,It=(je,Xe,Qe)=>Xe in je?Je(je,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):je[Xe]=Qe,gt=(je,Xe)=>{for(var Qe in Xe||(Xe={}))yt.call(Xe,Qe)&&It(je,Qe,Xe[Qe]);if(tt)for(var Qe of tt(Xe))wt.call(Xe,Qe)&&It(je,Qe,Xe[Qe]);return je},st=(je,Xe,Qe)=>new Promise((Ue,mt)=>{var Le=Wt=>{try{at(Qe.next(Wt))}catch(Lt){mt(Lt)}},Bt=Wt=>{try{at(Qe.throw(Wt))}catch(Lt){mt(Lt)}},at=Wt=>Wt.done?Ue(Wt.value):Promise.resolve(Wt.value).then(Le,Bt);at((Qe=Qe.apply(je,Xe)).next())});const{Dragger:ze}=De.default,he=({classroomList:je,dispatch:Xe,onOk:Qe})=>{const Ue=(0,pe.useParams)(),[mt]=Te.default.useForm(),[Le,Bt]=(0,ce.useState)(),[at,Wt]=(0,ce.useState)(!1),Lt={height:100,onRemove:()=>{Bt("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Tt=>st(void 0,null,function*(){return Bt(Tt),!1})};return(0,ce.useEffect)(()=>{mt.setFieldsValue({publish_time:Pe()(Pe()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Pe()(Pe()(new Date((0,Be.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),et.createElement(dt.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:je.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:at},onOk:()=>st(void 0,null,function*(){mt.submit()}),onCancel:()=>{mt.resetFields(),Xe({type:"classroomList/setActionTabs",payload:{}})}},et.createElement(Te.default,{form:mt,onFinish:Tt=>st(void 0,null,function*(){var Xt,jt,it;if(!(Le!=null&&Le.size)){be.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Wt(!0);let Ce=new FormData;Ce.append("type",je.actionTabs.type),Ce.append("file",Le);let Et;window.location.href.indexOf("exercise")>-1?Et=`/api/exercises/${je.actionTabs.id}/supplement_score.json`:Et=`/api/homework_commons/${je.actionTabs.id}/supplement_score.json`;let on=yield(0,Ke.ZP)(Et,{method:"post",body:Ce},!0);Wt(!1),(on==null?void 0:on.status)===0&&(Qe(),mt.resetFields(),Xe({type:"classroomList/setActionTabs",payload:{}}),((jt=(Xt=on==null?void 0:on.data)==null?void 0:Xt.fail)==null?void 0:jt.length)>0&&dt.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:et.createElement(ke.default,{pagination:!1,dataSource:(it=on==null?void 0:on.data)==null?void 0:it.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Be.FH)("",xe.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${je.actionTabs.type}`)}}))})},et.createElement(Te.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},je.actionTabs.name),et.createElement(Te.default.Item,{style:{marginBottom:0},label:et.createElement("div",null,et.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),et.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},et.createElement("div",null,et.createElement("a",{download:"\u6A21\u7248.xlsx",className:Me.Z.downloadbutton,href:xe.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${je.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),et.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),et.createElement(Te.default.Item,{style:{marginBottom:0}},et.createElement(ze,gt({},Lt),et.createElement("a",{className:Me.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),et.createElement("br",null),et.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};en.Z=(0,pe.connect)(({classroomList:je})=>({classroomList:je}))(he)},38551:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Ke}});var ce=ae(59301),De=ae(92832),Te=ae(24905),dt=ae(95237),be={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",pe=ae(18540),xe=(vt,Pe,Be)=>new Promise((et,Je)=>{var tt=It=>{try{wt(Be.next(It))}catch(gt){Je(gt)}},yt=It=>{try{wt(Be.throw(It))}catch(gt){Je(gt)}},wt=It=>It.done?et(It.value):Promise.resolve(It.value).then(tt,yt);wt((Be=Be.apply(vt,Pe)).next())}),Ke=({data:vt,value:Pe=[],handleChangePage:Be,setSelectedRowKeys:et,selectedRowKeys:Je,onChange:tt=()=>{}})=>{const[yt,wt]=(0,ce.useState)([]),[It,gt]=(0,ce.useState)([]),[st,ze]=(0,ce.useState)([]);let[he,je]=(0,ce.useState)(1),[Xe,Qe]=(0,ce.useState)();return(0,ce.useEffect)(()=>{wt(vt),gt([]),ze([])},[vt]),(0,ce.useEffect)(()=>{et&&(gt(Je),ze(Je))},[Je]),ce.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ce.createElement("div",{className:be.leftdiv},ce.createElement(De.default.Search,{size:"middle",onChange:Ue=>xe(void 0,null,function*(){wt(vt.filter(mt=>{var Le;return(Le=mt==null?void 0:mt.name)==null?void 0:Le.includes(Ue.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),yt.length===0&&ce.createElement(pe.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),ce.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},ce.createElement(Te.default.Group,{value:It.map(Ue=>`${Ue.id}`),onChange:Ue=>{et(yt.filter(mt=>Ue.includes(`${mt.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},yt.map((Ue,mt)=>ce.createElement(dt.Z,{key:Ue.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},ce.createElement(Te.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Ue.is_published,value:`${Ue.id}`},ce.createElement("div",{className:be.listClass},ce.createElement("span",{className:be.spantitle,style:{width:Ue.is_published?"108px":"170px"}},Ue.name),Ue.is_published&&ce.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),ce.createElement("div",{className:be.rightdiv},ce.createElement(De.default.Search,{onChange:Ue=>{ze(It.filter(mt=>mt.name.includes(Ue.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),st.length===0&&ce.createElement(pe.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),st.length>0&&ce.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},ce.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},st.map((Ue,mt)=>ce.createElement(dt.Z,{justify:"space-between",style:{marginTop:"10px"},key:Ue.id},ce.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Ue.name),ce.createElement("img",{src:ke,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{et(It.filter(Le=>`${Le.id}`!=`${Ue.id}`))}})))))))}},73438:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return tt}});var ce=ae(59301),De=ae(91482),Te=ae(5083),dt=ae(43418),be=ae(92832),ke=ae(95237),pe=ae(43604),xe={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Me=ae(66649),Ke=ae.n(Me),vt=ae(25544),Pe=ae(18540),Be=ae(59301);const{RangePicker:et}=Te.default,Je=({dispatch:yt,classroomList:wt,onConfirm:It})=>{const[gt,st]=(0,ce.useState)([]),[ze,he]=(0,ce.useState)([]),[je,Xe]=(0,ce.useState)("");(0,ce.useEffect)(()=>{var mt;if(wt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let Le=wt.actionTabs.data;console.log("data",Le);let Bt=(mt=Le==null?void 0:Le.group_name)==null?void 0:mt.map((at,Wt)=>{var Lt;return{group_id:Le==null?void 0:Le.group_id[Wt],group_name:Le==null?void 0:Le.group_name[Wt],is_admin:Le==null?void 0:Le.is_admin,end_time:Le==null?void 0:Le.end_time,publish_time:Array.isArray(Le==null?void 0:Le.publish_time)?(Lt=Le==null?void 0:Le.publish_time)==null?void 0:Lt[0]:Le==null?void 0:Le.publish_time}});Bt&&(st([...Bt]),he([...Bt]))}},[wt.actionTabs]);const Qe=()=>{yt({type:"classroomList/setActionTabs",payload:{}}),Xe("")},Ue=mt=>{if(mt){const Le=ze==null?void 0:ze.filter(Bt=>{var at,Wt;return(Wt=(at=Bt==null?void 0:Bt.group_name)==null?void 0:at.toLowerCase())==null?void 0:Wt.includes(mt==null?void 0:mt.toLowerCase())});st(Le)}else st(ze)};return Be.createElement(dt.default,{width:980,title:Be.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Be.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Be.createElement("span",{className:xe.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Be.createElement(be.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:je,onChange:mt=>{Xe(mt.target.value.trim()),Ue(mt.target.value.trim())}})),centered:!0,maskClosable:!1,open:wt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>Qe(),onOk:()=>{var mt;It((mt=wt.actionTabs)==null?void 0:mt.index,ze),Qe()}},Be.createElement("div",{className:xe.modal_con},Be.createElement(ke.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(gt==null?void 0:gt.length)>0?gt.map(function(mt,Le){var Bt,at;return Be.createElement(pe.Z,{span:24,key:Le},Be.createElement(ke.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Le==(gt==null?void 0:gt.length)-1?"0px":"10px"}},Be.createElement("div",{className:xe.multiple_select,title:mt.group_name},mt.group_name),Be.createElement("div",{className:"ml20"},Be.createElement(et,{size:"large",ranges:{\u6B64\u523B:[mt.publish_time?Ke()(mt.publish_time):Ke()(),Ke()()]},allowClear:!1,disabled:(Bt=wt.actionTabs)==null?void 0:Bt.rangePickerDisabled,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Wt=>{var Lt;return(0,vt.Q8)(Wt,(Lt=wt.actionTabs)==null?void 0:Lt.disabledDate)},disabledTime:Wt=>(0,vt.d0)(Wt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ke()((0,vt.U6)(),"HH:mm"),Ke()((0,vt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:mt.publish_time&&[Ke()(mt.publish_time),mt.end_time?Ke()(mt.end_time):void 0],onChange:(Wt,Lt)=>{gt[Le].publish_time=Lt[0],gt[Le].end_time=Lt[1],st([...gt]),ze.forEach(Tt=>{Tt.group_id===mt.group_id&&(Tt.publish_time=Lt[0],Tt.end_time=Lt[1])}),he([...ze])}})),(at=wt.actionTabs)!=null&&at.rangePickerDisabled?Be.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Be.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{gt.splice(Le,1),st([...gt]),ze.forEach((Wt,Lt)=>{Wt.group_id===mt.group_id&&ze.splice(Lt,1)}),he([...ze])}})))}):Be.createElement(Pe.Z,null))))};var tt=(0,De.connect)(({classroomList:yt})=>({classroomList:yt}))(Je)},20808:function(zn,en,ae){"use strict";ae.d(en,{rX:function(){return st},pW:function(){return ze},gy:function(){return he},xY:function(){return gt},O5:function(){return It},tJ:function(){return et},o1:function(){return Je},Rd:function(){return wt}});var ce=ae(91482),De=ae(43418),Te=ae(28103),dt=ae(8591),be=ae(7544),ke=ae(25544),pe=ae(87169),xe=ae(25510),Me="data:image/png;base64,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",Ke=ae.p+"static/newqrcode.a8740efb.png",vt=ae(32637),Pe=ae(59301),Be=(je,Xe,Qe)=>new Promise((Ue,mt)=>{var Le=Wt=>{try{at(Qe.next(Wt))}catch(Lt){mt(Lt)}},Bt=Wt=>{try{at(Qe.throw(Wt))}catch(Lt){mt(Lt)}},at=Wt=>Wt.done?Ue(Wt.value):Promise.resolve(Wt.value).then(Le,Bt);at((Qe=Qe.apply(je,Xe)).next())});const et=(je,Xe=!1)=>!!(Je(je)&&tt(Xe)),Je=je=>(0,be.bg)()?!0:(je({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=(je=!1)=>{var Xe;const{user:Qe}=(0,ce.getDvaApp)()._store.getState();return(Xe=Qe.userInfo)!=null&&Xe.profile_completed?!0:(De.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ke.xg)("/account/profile/edit"),yt()}}),!1)},yt=()=>{De.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},wt=()=>{De.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Pe.createElement("div",{style:{textAlign:"center"}},Pe.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),Pe.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:vt}),Pe.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},It=()=>{var je;const{user:Xe}=(0,ce.getDvaApp)()._store.getState();return(je=Xe.userInfo)!=null&&je.professional_certification?!0:(De.default.confirm({title:"\u63D0\u793A",centered:!0,content:Pe.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ke.xg)("/account/certification")}}),!1)},gt=()=>(0,be.V9)()?!0:(De.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Pe.createElement("div",{className:"tc",style:{marginLeft:-38}},Pe.createElement("p",null,"\u626B\u7801\u52A0\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Pe.createElement("img",{src:Ke,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),st=(je,Xe)=>je?!0:(De.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Pe.createElement("div",null,Pe.createElement("p",null,Xe||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),Pe.createElement("div",{style:{marginLeft:"110px"}},Pe.createElement("img",{src:Me,width:200}),Pe.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ke.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ze=je=>{De.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Pe.createElement("div",null,Pe.createElement("div",null,Pe.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),Pe.createElement(Te.Z,null),Pe.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Pe.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",Pe.createElement("a",null,je),"\u5929\u3002"),Pe.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Pe.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),Pe.createElement("div",{style:{textAlign:"center",marginTop:30}},Pe.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:xe,alt:"\u4E8C\u7EF4\u7801",width:160})))})},he=(je,Xe="")=>{const{shixunsDetail:{detail:Qe}}=(0,ce.getDvaApp)()._store.getState();if((Qe==null?void 0:Qe.public)===2||(Qe==null?void 0:Qe.public)===1||(Qe==null?void 0:Qe.shixun_status)===3){let Ue="";return(Qe==null?void 0:Qe.public)===2&&(Ue="\u5DF2\u516C\u5F00"),(Qe==null?void 0:Qe.public)===1&&(Ue="\u5F85\u5BA1\u6838"),(Qe==null?void 0:Qe.shixun_status)===3&&(Ue="\u5DF2\u5173\u95ED"),De.default.info({centered:!0,icon:Pe.createElement(pe.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Pe.createElement("div",{className:"tc",style:{marginLeft:-38}},Pe.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Pe.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Ue,"\uFF0C",Xe,"\u3002"),Pe.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Pe.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:xe,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Qe==null?void 0:Qe.shixun_status)===2?(De.default.confirm({centered:!0,icon:Pe.createElement(pe.Z,null),title:"\u63D0\u793A",content:Pe.createElement("div",null,Pe.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Xe,"\u3002"),Pe.createElement("br",null),Pe.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{De.default.confirm({width:440,centered:!0,icon:Pe.createElement(pe.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Be(void 0,null,function*(){(yield je({type:"shixunsDetail/cancelRelease",payload:{id:Qe==null?void 0:Qe.identifier}})).status!==401&&(dt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),je({type:"shixunsDetail/getShixunsDetail",payload:{id:Qe==null?void 0:Qe.identifier}}),je({type:"practiceSetting/getCommonData",payload:{id:Qe==null?void 0:Qe.identifier}}))})})}}),!0):!1}},50371:function(zn,en){"use strict";function ae(){const ce=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let De=1;De<arguments.length;De++){const Te=De<0||arguments.length<=De?void 0:arguments[De];Te&&Object.keys(Te).forEach(dt=>{const be=Te[dt];be!==void 0&&(ce[dt]=be)})}return ce}en.Z=ae},13845:function(zn,en,ae){"use strict";ae.d(en,{F:function(){return ce},Z:function(){return De}});function ce(Te){return Te!=null&&Te===Te.window}function De(Te,dt){var be,ke;if(typeof window=="undefined")return 0;const pe=dt?"scrollTop":"scrollLeft";let xe=0;return ce(Te)?xe=Te[dt?"pageYOffset":"pageXOffset"]:Te instanceof Document?xe=Te.documentElement[pe]:(Te instanceof HTMLElement||Te)&&(xe=Te[pe]),Te&&!ce(Te)&&typeof xe!="number"&&(xe=(ke=((be=Te.ownerDocument)!==null&&be!==void 0?be:Te).documentElement)===null||ke===void 0?void 0:ke[pe]),xe}},56762:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return De}});var ce=ae(59301);function De(){const[,Te]=ce.useReducer(dt=>dt+1,0);return Te}},68031:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return dt}});var ce=ae(16089);function De(be,ke,pe,xe){const Me=pe-ke;return be/=xe/2,be<1?Me/2*be*be*be+ke:Me/2*((be-=2)*be*be+2)+ke}var Te=ae(13845);function dt(be){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:pe=()=>window,callback:xe,duration:Me=450}=ke,Ke=pe(),vt=(0,Te.Z)(Ke,!0),Pe=Date.now(),Be=()=>{const Je=Date.now()-Pe,tt=De(Je>Me?Me:Je,vt,be,Me);(0,Te.F)(Ke)?Ke.scrollTo(window.pageXOffset,tt):Ke instanceof Document||Ke.constructor.name==="HTMLDocument"?Ke.documentElement.scrollTop=tt:Ke.scrollTop=tt,Je<Me?(0,ce.Z)(Be):typeof xe=="function"&&xe()};(0,ce.Z)(Be)}},19080:function(zn,en,ae){"use strict";ae.d(en,{F:function(){return be},Z:function(){return dt}});var ce=ae(92310),De=ae.n(ce);const Te=null;function dt(ke,pe,xe){return De()({[`${ke}-status-success`]:pe==="success",[`${ke}-status-warning`]:pe==="warning",[`${ke}-status-error`]:pe==="error",[`${ke}-status-validating`]:pe==="validating",[`${ke}-has-feedback`]:xe})}const be=(ke,pe)=>pe||ke},24905:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return je}});var ce=ae(92310),De=ae.n(ce),Te=ae(5630),dt=ae(59301),be=ae(36355),ke=ae(1684),pe=ae(32441),Me=dt.createContext(null),Ke=ae(98447),vt=ae(14088),Pe=ae(4572),Be=function(Xe,Qe){var Ue={};for(var mt in Xe)Object.prototype.hasOwnProperty.call(Xe,mt)&&Qe.indexOf(mt)<0&&(Ue[mt]=Xe[mt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,mt=Object.getOwnPropertySymbols(Xe);Le<mt.length;Le++)Qe.indexOf(mt[Le])<0&&Object.prototype.propertyIsEnumerable.call(Xe,mt[Le])&&(Ue[mt[Le]]=Xe[mt[Le]]);return Ue};const et=(Xe,Qe)=>{var Ue;const{prefixCls:mt,className:Le,rootClassName:Bt,children:at,indeterminate:Wt=!1,style:Lt,onMouseEnter:Tt,onMouseLeave:Xt,skipGroup:jt=!1,disabled:it}=Xe,Ce=Be(Xe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Et,direction:on,checkbox:Yt}=dt.useContext(be.E_),lt=dt.useContext(Me),{isFormItemInput:pt}=dt.useContext(pe.aM),Ft=dt.useContext(ke.Z),Sn=(Ue=(lt==null?void 0:lt.disabled)||it)!==null&&Ue!==void 0?Ue:Ft,$t=dt.useRef(Ce.value);dt.useEffect(()=>{lt==null||lt.registerValue(Ce.value)},[]),dt.useEffect(()=>{if(!jt)return Ce.value!==$t.current&&(lt==null||lt.cancelValue($t.current),lt==null||lt.registerValue(Ce.value),$t.current=Ce.value),()=>lt==null?void 0:lt.cancelValue(Ce.value)},[Ce.value]);const Pn=Et("checkbox",mt),[Zt,an]=(0,Ke.ZP)(Pn),Ht=Object.assign({},Ce);lt&&!jt&&(Ht.onChange=function(){Ce.onChange&&Ce.onChange.apply(Ce,arguments),lt.toggleOption&<.toggleOption({label:at,value:Ce.value})},Ht.name=lt.name,Ht.checked=lt.value.includes(Ce.value));const ye=De()(`${Pn}-wrapper`,{[`${Pn}-rtl`]:on==="rtl",[`${Pn}-wrapper-checked`]:Ht.checked,[`${Pn}-wrapper-disabled`]:Sn,[`${Pn}-wrapper-in-form-item`]:pt},Yt==null?void 0:Yt.className,Le,Bt,an),ue=De()({[`${Pn}-indeterminate`]:Wt},Pe.A,an),le=Wt?"mixed":void 0;return Zt(dt.createElement(vt.Z,{component:"Checkbox",disabled:Sn},dt.createElement("label",{className:ye,style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),Lt),onMouseEnter:Tt,onMouseLeave:Xt},dt.createElement(Te.Z,Object.assign({"aria-checked":le},Ht,{prefixCls:Pn,className:ue,disabled:Sn,ref:Qe})),at!==void 0&&dt.createElement("span",null,at))))};var tt=dt.forwardRef(et),yt=ae(77654),wt=ae(2738),It=function(Xe,Qe){var Ue={};for(var mt in Xe)Object.prototype.hasOwnProperty.call(Xe,mt)&&Qe.indexOf(mt)<0&&(Ue[mt]=Xe[mt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,mt=Object.getOwnPropertySymbols(Xe);Le<mt.length;Le++)Qe.indexOf(mt[Le])<0&&Object.prototype.propertyIsEnumerable.call(Xe,mt[Le])&&(Ue[mt[Le]]=Xe[mt[Le]]);return Ue};const gt=(Xe,Qe)=>{const{defaultValue:Ue,children:mt,options:Le=[],prefixCls:Bt,className:at,rootClassName:Wt,style:Lt,onChange:Tt}=Xe,Xt=It(Xe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:jt,direction:it}=dt.useContext(be.E_),[Ce,Et]=dt.useState(Xt.value||Ue||[]),[on,Yt]=dt.useState([]);dt.useEffect(()=>{"value"in Xt&&Et(Xt.value||[])},[Xt.value]);const lt=dt.useMemo(()=>Le.map(de=>typeof de=="string"||typeof de=="number"?{label:de,value:de}:de),[Le]),pt=de=>{Yt(ge=>ge.filter(se=>se!==de))},Ft=de=>{Yt(ge=>[].concat((0,yt.Z)(ge),[de]))},Sn=de=>{const ge=Ce.indexOf(de.value),se=(0,yt.Z)(Ce);ge===-1?se.push(de.value):se.splice(ge,1),"value"in Xt||Et(se),Tt==null||Tt(se.filter(Oe=>on.includes(Oe)).sort((Oe,ut)=>{const Ge=lt.findIndex(St=>St.value===Oe),_e=lt.findIndex(St=>St.value===ut);return Ge-_e}))},$t=jt("checkbox",Bt),Pn=`${$t}-group`,[Zt,an]=(0,Ke.ZP)($t),Ht=(0,wt.Z)(Xt,["value","disabled"]),ye=Le.length?lt.map(de=>dt.createElement(tt,{prefixCls:$t,key:de.value.toString(),disabled:"disabled"in de?de.disabled:Xt.disabled,value:de.value,checked:Ce.includes(de.value),onChange:de.onChange,className:`${Pn}-item`,style:de.style,title:de.title},de.label)):mt,ue={toggleOption:Sn,value:Ce,disabled:Xt.disabled,name:Xt.name,registerValue:Ft,cancelValue:pt},le=De()(Pn,{[`${Pn}-rtl`]:it==="rtl"},at,Wt,an);return Zt(dt.createElement("div",Object.assign({className:le,style:Lt},Ht,{ref:Qe}),dt.createElement(Me.Provider,{value:ue},ye)))},st=dt.forwardRef(gt);var ze=dt.memo(st);const he=tt;he.Group=ze,he.__ANT_CHECKBOX=!0;var je=he},98447:function(zn,en,ae){"use strict";ae.d(en,{C2:function(){return be}});var ce=ae(17313),De=ae(37613),Te=ae(83116);const dt=ke=>{const{checkboxCls:pe}=ke,xe=`${pe}-wrapper`;return[{[`${pe}-group`]:Object.assign(Object.assign({},(0,ce.Wf)(ke)),{display:"inline-flex",flexWrap:"wrap",columnGap:ke.marginXS,[`> ${ke.antCls}-row`]:{flex:1}}),[xe]:Object.assign(Object.assign({},(0,ce.Wf)(ke)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${xe}`]:{marginInlineStart:0},[`&${xe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[pe]:Object.assign(Object.assign({},(0,ce.Wf)(ke)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ke.borderRadiusSM,alignSelf:"center",[`${pe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${pe}-inner`]:Object.assign({},(0,ce.oN)(ke))},[`${pe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ke.checkboxSize,height:ke.checkboxSize,direction:"ltr",backgroundColor:ke.colorBgContainer,border:`${ke.lineWidth}px ${ke.lineType} ${ke.colorBorder}`,borderRadius:ke.borderRadiusSM,borderCollapse:"separate",transition:`all ${ke.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ke.checkboxSize/14*5,height:ke.checkboxSize/14*8,border:`${ke.lineWidthBold}px solid ${ke.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ke.motionDurationFast} ${ke.motionEaseInBack}, opacity ${ke.motionDurationFast}`}},"& + span":{paddingInlineStart:ke.paddingXS,paddingInlineEnd:ke.paddingXS}})},{[`
|
|
|
${xe}:not(${xe}-disabled),
|
|
|
${pe}:not(${pe}-disabled)
|
|
|
`]:{[`&:hover ${pe}-inner`]:{borderColor:ke.colorPrimary}},[`${xe}:not(${xe}-disabled)`]:{[`&:hover ${pe}-checked:not(${pe}-disabled) ${pe}-inner`]:{backgroundColor:ke.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${pe}-checked:not(${pe}-disabled):after`]:{borderColor:ke.colorPrimaryHover}}},{[`${pe}-checked`]:{[`${pe}-inner`]:{backgroundColor:ke.colorPrimary,borderColor:ke.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ke.motionDurationMid} ${ke.motionEaseOutBack} ${ke.motionDurationFast}`}}},[`
|
|
|
${xe}-checked:not(${xe}-disabled),
|
|
|
${pe}-checked:not(${pe}-disabled)
|
|
|
`]:{[`&:hover ${pe}-inner`]:{backgroundColor:ke.colorPrimaryHover,borderColor:"transparent"}}},{[pe]:{"&-indeterminate":{[`${pe}-inner`]:{backgroundColor:ke.colorBgContainer,borderColor:ke.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ke.fontSizeLG/2,height:ke.fontSizeLG/2,backgroundColor:ke.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${xe}-disabled`]:{cursor:"not-allowed"},[`${pe}-disabled`]:{[`&, ${pe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${pe}-inner`]:{background:ke.colorBgContainerDisabled,borderColor:ke.colorBorder,"&:after":{borderColor:ke.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ke.colorTextDisabled},[`&${pe}-indeterminate ${pe}-inner::after`]:{background:ke.colorTextDisabled}}}]};function be(ke,pe){const xe=(0,De.TS)(pe,{checkboxCls:`.${ke}`,checkboxSize:pe.controlInteractiveSize});return[dt(xe)]}en.ZP=(0,Te.Z)("Checkbox",(ke,pe)=>{let{prefixCls:xe}=pe;return[be(xe,ke)]})},93891:function(zn,en,ae){"use strict";var ce=ae(59301),De=ae(36355),Te=ae(64165);const dt=be=>{const{componentName:ke}=be,{getPrefixCls:pe}=(0,ce.useContext)(De.E_),xe=pe("empty");switch(ke){case"Table":case"List":return ce.createElement(Te.Z,{image:Te.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Te.Z,{image:Te.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return ce.createElement(Te.Z,null)}};en.Z=dt},5083:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return Hl}});var ce=ae(66649),De=ae.n(ce),Te=ae(48736),dt=ae(9007),be=ae.n(dt),ke=ae(50991),pe=ae.n(ke),xe=ae(9084),Me=ae.n(xe),Ke=ae(58626),vt=ae.n(Ke),Pe=ae(13477),Be=ae.n(Pe),et=ae(64796),Je=ae.n(et);De().extend(Je()),De().extend(Be()),De().extend(be()),De().extend(pe()),De().extend(Me()),De().extend(vt()),De().extend(function(we,Ie){var $e=Ie.prototype,At=$e.format;$e.format=function(Dn){var Cn=(Dn||"").replace("Wo","wo");return At.bind(this)(Cn)}});var tt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},yt=function(Ie){var $e=tt[Ie];return $e||Ie.split("_")[0]},wt=function(){(0,Te.ET)(!1,"Not match any format. Please help to fire a issue about this.")},It={getNow:function(){return De()()},getFixedDate:function(Ie){return De()(Ie,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Ie){return Ie.endOf("month")},getWeekDay:function(Ie){var $e=Ie.locale("en");return $e.weekday()+$e.localeData().firstDayOfWeek()},getYear:function(Ie){return Ie.year()},getMonth:function(Ie){return Ie.month()},getDate:function(Ie){return Ie.date()},getHour:function(Ie){return Ie.hour()},getMinute:function(Ie){return Ie.minute()},getSecond:function(Ie){return Ie.second()},addYear:function(Ie,$e){return Ie.add($e,"year")},addMonth:function(Ie,$e){return Ie.add($e,"month")},addDate:function(Ie,$e){return Ie.add($e,"day")},setYear:function(Ie,$e){return Ie.year($e)},setMonth:function(Ie,$e){return Ie.month($e)},setDate:function(Ie,$e){return Ie.date($e)},setHour:function(Ie,$e){return Ie.hour($e)},setMinute:function(Ie,$e){return Ie.minute($e)},setSecond:function(Ie,$e){return Ie.second($e)},isAfter:function(Ie,$e){return Ie.isAfter($e)},isValidate:function(Ie){return Ie.isValid()},locale:{getWeekFirstDay:function(Ie){return De()().locale(yt(Ie)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Ie,$e){return $e.locale(yt(Ie)).weekday(0)},getWeek:function(Ie,$e){return $e.locale(yt(Ie)).week()},getShortWeekDays:function(Ie){return De()().locale(yt(Ie)).localeData().weekdaysMin()},getShortMonths:function(Ie){return De()().locale(yt(Ie)).localeData().monthsShort()},format:function(Ie,$e,At){return $e.locale(yt(Ie)).format(At)},parse:function(Ie,$e,At){for(var Ot=yt(Ie),Dn=0;Dn<At.length;Dn+=1){var Cn=At[Dn],Yn=$e;if(Cn.includes("wo")||Cn.includes("Wo")){for(var Gn=Yn.split("-")[0],nr=Yn.split("-")[1],qr=De()(Gn,"YYYY").startOf("year").locale(Ot),dr=0;dr<=52;dr+=1){var ur=qr.add(dr,"week");if(ur.format("Wo")===nr)return ur}return wt(),null}var Mr=De()(Yn,Cn,!0).locale(Ot);if(Mr.isValid())return Mr}return $e&&wt(),null}}},gt=It,st=ae(53487),ze=ae(60499),he=ae(59301),je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Xe=je,Qe=ae(7657),Ue=function(Ie,$e){return he.createElement(Qe.Z,(0,ze.Z)({},Ie,{ref:$e,icon:Xe}))},mt=he.forwardRef(Ue),Le=mt,Bt={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},at=Bt,Wt=function(Ie,$e){return he.createElement(Qe.Z,(0,ze.Z)({},Ie,{ref:$e,icon:at}))},Lt=he.forwardRef(Wt),Tt=Lt,Xt=ae(19248),jt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},it=jt,Ce=function(Ie,$e){return he.createElement(Qe.Z,(0,ze.Z)({},Ie,{ref:$e,icon:it}))},Et=he.forwardRef(Ce),on=Et,Yt=ae(92310),lt=ae.n(Yt),pt=ae(38705),Ft=ae(17212),Sn=ae(15793),$t=ae(39153),Pn=ae(55401),Zt=ae(18642),an=ae(85899),Ht=ae(72190),ye=ae(18929),ue=ae(26112),le=ae(80547),de=ae(13697),ge=10,se=ge*10,Oe=7;function ut(we,Ie){if(!we&&!Ie)return!0;if(!we||!Ie)return!1}function Ge(we,Ie,$e){var At=ut(Ie,$e);if(typeof At=="boolean")return At;var Ot=Math.floor(we.getYear(Ie)/10),Dn=Math.floor(we.getYear($e)/10);return Ot===Dn}function _e(we,Ie,$e){var At=ut(Ie,$e);return typeof At=="boolean"?At:we.getYear(Ie)===we.getYear($e)}function St(we,Ie){var $e=Math.floor(we.getMonth(Ie)/3);return $e+1}function bt(we,Ie,$e){var At=ut(Ie,$e);return typeof At=="boolean"?At:_e(we,Ie,$e)&&St(we,Ie)===St(we,$e)}function rt(we,Ie,$e){var At=ut(Ie,$e);return typeof At=="boolean"?At:_e(we,Ie,$e)&&we.getMonth(Ie)===we.getMonth($e)}function Dt(we,Ie,$e){var At=ut(Ie,$e);return typeof At=="boolean"?At:we.getYear(Ie)===we.getYear($e)&&we.getMonth(Ie)===we.getMonth($e)&&we.getDate(Ie)===we.getDate($e)}function xn(we,Ie,$e){var At=ut(Ie,$e);return typeof At=="boolean"?At:we.getHour(Ie)===we.getHour($e)&&we.getMinute(Ie)===we.getMinute($e)&&we.getSecond(Ie)===we.getSecond($e)}function xt(we,Ie,$e,At){var Ot=ut($e,At);return typeof Ot=="boolean"?Ot:_e(we,$e,At)&&we.locale.getWeek(Ie,$e)===we.locale.getWeek(Ie,At)}function Rt(we,Ie,$e){return Dt(we,Ie,$e)&&xn(we,Ie,$e)}function cn(we,Ie,$e,At){return!Ie||!$e||!At?!1:!Dt(we,Ie,At)&&!Dt(we,$e,At)&&we.isAfter(At,Ie)&&we.isAfter($e,At)}function ct(we,Ie,$e){var At=Ie.locale.getWeekFirstDay(we),Ot=Ie.setDate($e,1),Dn=Ie.getWeekDay(Ot),Cn=Ie.addDate(Ot,At-Dn);return Ie.getMonth(Cn)===Ie.getMonth($e)&&Ie.getDate(Cn)>1&&(Cn=Ie.addDate(Cn,-7)),Cn}function Ae(we,Ie,$e){var At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Ie){case"year":return $e.addYear(we,At*10);case"quarter":case"month":return $e.addYear(we,At);default:return $e.addMonth(we,At)}}function Ve(we,Ie){var $e=Ie.generateConfig,At=Ie.locale,Ot=Ie.format;return typeof Ot=="function"?Ot(we):$e.locale.format(At.locale,we,Ot)}function Kt(we,Ie){var $e=Ie.generateConfig,At=Ie.locale,Ot=Ie.formatList;return!we||typeof Ot[0]=="function"?null:$e.locale.parse(At.locale,we,Ot)}function Gt(we){var Ie=we.cellDate,$e=we.mode,At=we.disabledDate,Ot=we.generateConfig;if(!At)return!1;var Dn=function(Lr,Hn,ir){for(var Ar=Hn;Ar<=ir;){var Ri=void 0;switch(Lr){case"date":{if(Ri=Ot.setDate(Ie,Ar),!At(Ri))return!1;break}case"month":{if(Ri=Ot.setMonth(Ie,Ar),!Gt({cellDate:Ri,mode:"month",generateConfig:Ot,disabledDate:At}))return!1;break}case"year":{if(Ri=Ot.setYear(Ie,Ar),!Gt({cellDate:Ri,mode:"year",generateConfig:Ot,disabledDate:At}))return!1;break}}Ar+=1}return!0};switch($e){case"date":case"week":return At(Ie);case"month":{var Cn=1,Yn=Ot.getDate(Ot.getEndDate(Ie));return Dn("date",Cn,Yn)}case"quarter":{var Gn=Math.floor(Ot.getMonth(Ie)/3)*3,nr=Gn+2;return Dn("month",Gn,nr)}case"year":return Dn("month",0,11);case"decade":{var qr=Ot.getYear(Ie),dr=Math.floor(qr/ge)*ge,ur=dr+ge-1;return Dn("year",dr,ur)}}}function hn(we,Ie){var $e=Ie.formatList,At=Ie.generateConfig,Ot=Ie.locale;return(0,le.Z)(function(){if(!we)return[[""],""];for(var Dn="",Cn=[],Yn=0;Yn<$e.length;Yn+=1){var Gn=$e[Yn],nr=Ve(we,{generateConfig:At,locale:Ot,format:Gn});Cn.push(nr),Yn===0&&(Dn=nr)}return[Cn,Dn]},[we,$e,Ot],function(Dn,Cn){return!Rt(At,Dn[0],Cn[0])||!(0,de.Z)(Dn[1],Cn[1],!0)||!(0,de.Z)(Dn[2],Cn[2],!0)})}function On(we,Ie){var $e=Ie.formatList,At=Ie.generateConfig,Ot=Ie.locale,Dn=(0,he.useState)(null),Cn=(0,Ht.Z)(Dn,2),Yn=Cn[0],Gn=Cn[1],nr=(0,he.useRef)(null);function qr(ir){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(nr.current),Ar){Gn(ir);return}nr.current=requestAnimationFrame(function(){Gn(ir)})}var dr=hn(Yn,{formatList:$e,generateConfig:At,locale:Ot}),ur=(0,Ht.Z)(dr,2),Mr=ur[1];function Lr(ir){qr(ir)}function Hn(){var ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qr(null,ir)}return(0,he.useEffect)(function(){Hn(!0)},[we]),(0,he.useEffect)(function(){return function(){return cancelAnimationFrame(nr.current)}},[]),[Mr,Lr,Hn]}var Ln=ae(10228),Kn=ae(16089),tr=ae(77654),gr=ae(29194),Un=new Map;function Cr(we,Ie){var $e;function At(){(0,gr.Z)(we)?Ie():$e=(0,Kn.Z)(function(){At()})}return At(),function(){Kn.Z.cancel($e)}}function Rr(we,Ie,$e){if(Un.get(we)&&cancelAnimationFrame(Un.get(we)),$e<=0){Un.set(we,requestAnimationFrame(function(){we.scrollTop=Ie}));return}var At=Ie-we.scrollTop,Ot=At/$e*10;Un.set(we,requestAnimationFrame(function(){we.scrollTop+=Ot,we.scrollTop!==Ie&&Rr(we,Ie,$e-10)}))}function $r(we,Ie){var $e=Ie.onLeftRight,At=Ie.onCtrlLeftRight,Ot=Ie.onUpDown,Dn=Ie.onPageUpDown,Cn=Ie.onEnter,Yn=we.which,Gn=we.ctrlKey,nr=we.metaKey;switch(Yn){case Ln.Z.LEFT:if(Gn||nr){if(At)return At(-1),!0}else if($e)return $e(-1),!0;break;case Ln.Z.RIGHT:if(Gn||nr){if(At)return At(1),!0}else if($e)return $e(1),!0;break;case Ln.Z.UP:if(Ot)return Ot(-1),!0;break;case Ln.Z.DOWN:if(Ot)return Ot(1),!0;break;case Ln.Z.PAGE_UP:if(Dn)return Dn(-1),!0;break;case Ln.Z.PAGE_DOWN:if(Dn)return Dn(1),!0;break;case Ln.Z.ENTER:if(Cn)return Cn(),!0;break}return!1}function vr(we,Ie,$e,At){var Ot=we;if(!Ot)switch(Ie){case"time":Ot=At?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ot="gggg-wo";break;case"month":Ot="YYYY-MM";break;case"quarter":Ot="YYYY-[Q]Q";break;case"year":Ot="YYYY";break;default:Ot=$e?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ot}function Er(we,Ie,$e){var At=we==="time"?8:10,Ot=typeof Ie=="function"?Ie($e.getNow()).length:Ie.length;return Math.max(At,Ot)+2}var Hr=null,wn=new Set;function Zn(we){return!Hr&&typeof window!="undefined"&&window.addEventListener&&(Hr=function($e){(0,tr.Z)(wn).forEach(function(At){At($e)})},window.addEventListener("mousedown",Hr)),wn.add(we),function(){wn.delete(we),wn.size===0&&(window.removeEventListener("mousedown",Hr),Hr=null)}}function Or(we){var Ie=we.target;if(we.composed&&Ie.shadowRoot){var $e;return(($e=we.composedPath)===null||$e===void 0?void 0:$e.call(we)[0])||Ie}return Ie}var br=function(Ie){return Ie==="month"||Ie==="date"?"year":Ie},hr=function(Ie){return Ie==="date"?"month":Ie},Yr=function(Ie){return Ie==="month"||Ie==="date"?"quarter":Ie},cr=function(Ie){return Ie==="date"?"week":Ie},Ir={year:br,month:hr,quarter:Yr,week:cr,time:null,date:null};function or(we,Ie){return we.some(function($e){return $e&&$e.contains(Ie)})}function Jn(we){var Ie=we.open,$e=we.value,At=we.isClickOutside,Ot=we.triggerOpen,Dn=we.forwardKeyDown,Cn=we.onKeyDown,Yn=we.blurToCancel,Gn=we.onSubmit,nr=we.onCancel,qr=we.onFocus,dr=we.onBlur,ur=we.changeOnBlur,Mr=(0,he.useState)(!1),Lr=(0,Ht.Z)(Mr,2),Hn=Lr[0],ir=Lr[1],Ar=(0,he.useState)(!1),Ri=(0,Ht.Z)(Ar,2),Si=Ri[0],Ni=Ri[1],_i=(0,he.useRef)(!1),Li=(0,he.useRef)(!1),Ei=(0,he.useRef)(!1),Ka={onMouseDown:function(){ir(!0),Ot(!0)},onKeyDown:function(_a){var uo=function(){Ei.current=!0};if(Cn(_a,uo),!Ei.current){switch(_a.which){case Ln.Z.ENTER:{Ie?Gn()!==!1&&ir(!0):Ot(!0),_a.preventDefault();return}case Ln.Z.TAB:{Hn&&Ie&&!_a.shiftKey?(ir(!1),_a.preventDefault()):!Hn&&Ie&&!Dn(_a)&&_a.shiftKey&&(ir(!0),_a.preventDefault());return}case Ln.Z.ESC:{ir(!0),nr();return}}!Ie&&![Ln.Z.SHIFT].includes(_a.which)?Ot(!0):Hn||Dn(_a)}},onFocus:function(_a){ir(!0),Ni(!0),qr&&qr(_a)},onBlur:function(_a){if(_i.current||!At(document.activeElement)){_i.current=!1;return}Yn?setTimeout(function(){for(var uo=document,co=uo.activeElement;co&&co.shadowRoot;)co=co.shadowRoot.activeElement;At(co)&&nr()},0):Ie&&(Ot(!1),Li.current&&Gn()),Ni(!1),dr==null||dr(_a)}};return(0,he.useEffect)(function(){Li.current=!1},[Ie]),(0,he.useEffect)(function(){Li.current=!0},[$e]),(0,he.useEffect)(function(){return Zn(function(Ca){var _a=Or(Ca),uo=At(_a);Ie&&(uo?!ur&&(!Si||uo)&&Ot(!1):(_i.current=!0,(0,Kn.Z)(function(){_i.current=!1})))})}),[Ka,{focused:Si,typing:Hn}]}function Dr(we,Ie){return he.useMemo(function(){return we||(Ie?((0,Te.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ie).map(function($e){var At=(0,Ht.Z)($e,2),Ot=At[0],Dn=At[1];return{label:Ot,value:Dn}})):[])},[we,Ie])}var _t=ae(34280);function He(we){var Ie=we.valueTexts,$e=we.onTextChange,At=he.useState(""),Ot=(0,Ht.Z)(At,2),Dn=Ot[0],Cn=Ot[1],Yn=he.useRef([]);Yn.current=Ie;function Gn(qr){Cn(qr),$e(qr)}function nr(){Cn(Yn.current[0])}return(0,_t.Z)(function(){Ie.every(function(qr){return qr!==Dn})&&nr()},[Ie.join("||")]),[Dn,Gn,nr]}var nt=he.createContext({}),Ye=nt,qe=ae(43749);function Mt(we){var Ie=we.cellRender,$e=we.monthCellRender,At=we.dateRender,Ot=he.useMemo(function(){if(Ie)return Ie;if(!(!$e&&!At))return function(Dn,Cn){var Yn=Dn;return At&&Cn.type==="date"?At(Yn,Cn.today):$e&&Cn.type==="month"?$e(Yn,Cn.locale):Cn.originNode}},[Ie,$e,At]);return Ot}function Ut(we,Ie){for(var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",At=String(we);At.length<Ie;)At="".concat($e).concat(we);return At}var An=function(){for(var Ie=arguments.length,$e=new Array(Ie),At=0;At<Ie;At++)$e[At]=arguments[At];return $e};function mn(we){return we==null?[]:Array.isArray(we)?we:[we]}function ln(we,Ie){return we?we[Ie]:null}function Nn(we,Ie,$e){var At=[ln(we,0),ln(we,1)];return At[$e]=typeof Ie=="function"?Ie(At[$e]):Ie,!At[0]&&!At[1]?null:At}function Wn(we){return typeof we=="function"?we():we}function Xn(we){var Ie=we.cellPrefixCls,$e=we.generateConfig,At=we.rangedValue,Ot=we.hoverRangedValue,Dn=we.isInView,Cn=we.isSameCell,Yn=we.offsetCell,Gn=we.today,nr=we.value;function qr(dr){var ur,Mr=Yn(dr,-1),Lr=Yn(dr,1),Hn=ln(At,0),ir=ln(At,1),Ar=ln(Ot,0),Ri=ln(Ot,1),Si=cn($e,Ar,Ri,dr);function Ni(_a){return Cn(Hn,_a)}function _i(_a){return Cn(ir,_a)}var Li=Cn(Ar,dr),Ei=Cn(Ri,dr),Ka=(Si||Ei)&&(!Dn(Mr)||_i(Mr)),Ca=(Si||Li)&&(!Dn(Lr)||Ni(Lr));return ur={},(0,Zt.Z)(ur,"".concat(Ie,"-in-view"),Dn(dr)),(0,Zt.Z)(ur,"".concat(Ie,"-in-range"),cn($e,Hn,ir,dr)),(0,Zt.Z)(ur,"".concat(Ie,"-range-start"),Ni(dr)),(0,Zt.Z)(ur,"".concat(Ie,"-range-end"),_i(dr)),(0,Zt.Z)(ur,"".concat(Ie,"-range-start-single"),Ni(dr)&&!ir),(0,Zt.Z)(ur,"".concat(Ie,"-range-end-single"),_i(dr)&&!Hn),(0,Zt.Z)(ur,"".concat(Ie,"-range-start-near-hover"),Ni(dr)&&(Cn(Mr,Ar)||cn($e,Ar,Ri,Mr))),(0,Zt.Z)(ur,"".concat(Ie,"-range-end-near-hover"),_i(dr)&&(Cn(Lr,Ri)||cn($e,Ar,Ri,Lr))),(0,Zt.Z)(ur,"".concat(Ie,"-range-hover"),Si),(0,Zt.Z)(ur,"".concat(Ie,"-range-hover-start"),Li),(0,Zt.Z)(ur,"".concat(Ie,"-range-hover-end"),Ei),(0,Zt.Z)(ur,"".concat(Ie,"-range-hover-edge-start"),Ka),(0,Zt.Z)(ur,"".concat(Ie,"-range-hover-edge-end"),Ca),(0,Zt.Z)(ur,"".concat(Ie,"-range-hover-edge-start-near-range"),Ka&&Cn(Mr,ir)),(0,Zt.Z)(ur,"".concat(Ie,"-range-hover-edge-end-near-range"),Ca&&Cn(Lr,Hn)),(0,Zt.Z)(ur,"".concat(Ie,"-today"),Cn(Gn,dr)),(0,Zt.Z)(ur,"".concat(Ie,"-selected"),Cn(nr,dr)),ur}return qr}var rn=he.createContext({}),Tn=rn;function Nt(we,Ie,$e,At,Ot){var Dn=we.setHour(Ie,$e);return Dn=we.setMinute(Dn,At),Dn=we.setSecond(Dn,Ot),Dn}function Jt(we,Ie,$e){if(!$e)return Ie;var At=Ie;return At=we.setHour(At,we.getHour($e)),At=we.setMinute(At,we.getMinute($e)),At=we.setSecond(At,we.getSecond($e)),At}function sn(we,Ie,$e,At,Ot,Dn){var Cn=Math.floor(we/At)*At;if(Cn<we)return[Cn,60-Ot,60-Dn];var Yn=Math.floor(Ie/Ot)*Ot;if(Yn<Ie)return[Cn,Yn,60-Dn];var Gn=Math.floor($e/Dn)*Dn;return[Cn,Yn,Gn]}function fn(we,Ie){var $e=we.getYear(Ie),At=we.getMonth(Ie)+1,Ot=we.getEndDate(we.getFixedDate("".concat($e,"-").concat(At,"-01"))),Dn=we.getDate(Ot),Cn=At<10?"0".concat(At):"".concat(At);return"".concat($e,"-").concat(Cn,"-").concat(Dn)}function In(we){for(var Ie=we.prefixCls,$e=we.disabledDate,At=we.onSelect,Ot=we.picker,Dn=we.rowNum,Cn=we.colNum,Yn=we.prefixColumn,Gn=we.rowClassName,nr=we.baseDate,qr=we.getCellClassName,dr=we.getCellText,ur=we.getCellNode,Mr=we.getCellDate,Lr=we.generateConfig,Hn=we.titleCell,ir=we.headerCells,Ar=he.useContext(Ye),Ri=Ar.onDateMouseEnter,Si=Ar.onDateMouseLeave,Ni=Ar.mode,_i="".concat(Ie,"-cell"),Li=[],Ei=0;Ei<Dn;Ei+=1){for(var Ka=[],Ca=void 0,_a=function(){var Co,Oo=Ei*Cn+uo,Wa=Mr(nr,Oo),ja=Gt({cellDate:Wa,mode:Ni,disabledDate:$e,generateConfig:Lr});uo===0&&(Ca=Wa,Yn&&Ka.push(Yn(Ca)));var no=Hn&&Hn(Wa),Po=he.createElement("div",{className:"".concat(_i,"-inner")},dr(Wa));Ka.push(he.createElement("td",{key:uo,title:no,className:lt()(_i,(0,an.Z)((Co={},(0,Zt.Z)(Co,"".concat(_i,"-disabled"),ja),(0,Zt.Z)(Co,"".concat(_i,"-start"),dr(Wa)===1||Ot==="year"&&Number(no)%10===0),(0,Zt.Z)(Co,"".concat(_i,"-end"),no===fn(Lr,Wa)||Ot==="year"&&Number(no)%10===9),Co),qr(Wa))),onClick:function(){ja||At(Wa)},onMouseEnter:function(){!ja&&Ri&&Ri(Wa)},onMouseLeave:function(){!ja&&Si&&Si(Wa)}},ur?ur(Wa,Po):Po))},uo=0;uo<Cn;uo+=1)_a();Li.push(he.createElement("tr",{key:Ei,className:Gn&&Gn(Ca)},Ka))}return he.createElement("div",{className:"".concat(Ie,"-body")},he.createElement("table",{className:"".concat(Ie,"-content")},ir&&he.createElement("thead",null,he.createElement("tr",null,ir)),he.createElement("tbody",null,Li)))}function un(we){var Ie=we.prefixCls,$e=we.generateConfig,At=we.prefixColumn,Ot=we.locale,Dn=we.rowCount,Cn=we.viewDate,Yn=we.value,Gn=we.cellRender,nr=we.isSameCell,qr=he.useContext(Tn),dr=qr.rangedValue,ur=qr.hoverRangedValue,Mr=ct(Ot.locale,$e,Cn),Lr="".concat(Ie,"-cell"),Hn=$e.locale.getWeekFirstDay(Ot.locale),ir=$e.getNow(),Ar=[],Ri=Ot.shortWeekDays||($e.locale.getShortWeekDays?$e.locale.getShortWeekDays(Ot.locale):[]);At&&Ar.push(he.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Si=0;Si<Oe;Si+=1)Ar.push(he.createElement("th",{key:Si},Ri[(Si+Hn)%Oe]));var Ni=Xn({cellPrefixCls:Lr,today:ir,value:Yn,generateConfig:$e,rangedValue:At?null:dr,hoverRangedValue:At?null:ur,isSameCell:nr||function(Li,Ei){return Dt($e,Li,Ei)},isInView:function(Ei){return rt($e,Ei,Cn)},offsetCell:function(Ei,Ka){return $e.addDate(Ei,Ka)}}),_i=Gn?function(Li,Ei){return Gn(Li,{originNode:Ei,today:ir,type:"date",locale:Ot})}:void 0;return he.createElement(In,(0,ze.Z)({},we,{rowNum:Dn,colNum:Oe,baseDate:Mr,getCellNode:_i,getCellText:$e.getDate,getCellClassName:Ni,getCellDate:$e.addDate,titleCell:function(Ei){return Ve(Ei,{locale:Ot,format:"YYYY-MM-DD",generateConfig:$e})},headerCells:Ar}))}var Bn=un,ot={visibility:"hidden"};function tn(we){var Ie=we.prefixCls,$e=we.prevIcon,At=$e===void 0?"\u2039":$e,Ot=we.nextIcon,Dn=Ot===void 0?"\u203A":Ot,Cn=we.superPrevIcon,Yn=Cn===void 0?"\xAB":Cn,Gn=we.superNextIcon,nr=Gn===void 0?"\xBB":Gn,qr=we.onSuperPrev,dr=we.onSuperNext,ur=we.onPrev,Mr=we.onNext,Lr=we.children,Hn=he.useContext(Ye),ir=Hn.hideNextBtn,Ar=Hn.hidePrevBtn;return he.createElement("div",{className:Ie},qr&&he.createElement("button",{type:"button",onClick:qr,tabIndex:-1,className:"".concat(Ie,"-super-prev-btn"),style:Ar?ot:{}},Yn),ur&&he.createElement("button",{type:"button",onClick:ur,tabIndex:-1,className:"".concat(Ie,"-prev-btn"),style:Ar?ot:{}},At),he.createElement("div",{className:"".concat(Ie,"-view")},Lr),Mr&&he.createElement("button",{type:"button",onClick:Mr,tabIndex:-1,className:"".concat(Ie,"-next-btn"),style:ir?ot:{}},Dn),dr&&he.createElement("button",{type:"button",onClick:dr,tabIndex:-1,className:"".concat(Ie,"-super-next-btn"),style:ir?ot:{}},nr))}var nn=tn;function En(we){var Ie=we.prefixCls,$e=we.generateConfig,At=we.locale,Ot=we.viewDate,Dn=we.onNextMonth,Cn=we.onPrevMonth,Yn=we.onNextYear,Gn=we.onPrevYear,nr=we.onYearClick,qr=we.onMonthClick,dr=he.useContext(Ye),ur=dr.hideHeader;if(ur)return null;var Mr="".concat(Ie,"-header"),Lr=At.shortMonths||($e.locale.getShortMonths?$e.locale.getShortMonths(At.locale):[]),Hn=$e.getMonth(Ot),ir=he.createElement("button",{type:"button",key:"year",onClick:nr,tabIndex:-1,className:"".concat(Ie,"-year-btn")},Ve(Ot,{locale:At,format:At.yearFormat,generateConfig:$e})),Ar=he.createElement("button",{type:"button",key:"month",onClick:qr,tabIndex:-1,className:"".concat(Ie,"-month-btn")},At.monthFormat?Ve(Ot,{locale:At,format:At.monthFormat,generateConfig:$e}):Lr[Hn]),Ri=At.monthBeforeYear?[Ar,ir]:[ir,Ar];return he.createElement(nn,(0,ze.Z)({},we,{prefixCls:Mr,onSuperPrev:Gn,onPrev:Cn,onNext:Dn,onSuperNext:Yn}),Ri)}var gn=En,Mn=6;function kn(we){var Ie=we.prefixCls,$e=we.panelName,At=$e===void 0?"date":$e,Ot=we.keyboardConfig,Dn=we.active,Cn=we.operationRef,Yn=we.generateConfig,Gn=we.value,nr=we.viewDate,qr=we.onViewDateChange,dr=we.onPanelChange,ur=we.onSelect,Mr="".concat(Ie,"-").concat(At,"-panel");Cn.current={onKeyDown:function(Ar){return $r(Ar,(0,an.Z)({onLeftRight:function(Si){ur(Yn.addDate(Gn||nr,Si),"key")},onCtrlLeftRight:function(Si){ur(Yn.addYear(Gn||nr,Si),"key")},onUpDown:function(Si){ur(Yn.addDate(Gn||nr,Si*Oe),"key")},onPageUpDown:function(Si){ur(Yn.addMonth(Gn||nr,Si),"key")}},Ot))}};var Lr=function(Ar){var Ri=Yn.addYear(nr,Ar);qr(Ri),dr(null,Ri)},Hn=function(Ar){var Ri=Yn.addMonth(nr,Ar);qr(Ri),dr(null,Ri)};return he.createElement("div",{className:lt()(Mr,(0,Zt.Z)({},"".concat(Mr,"-active"),Dn))},he.createElement(gn,(0,ze.Z)({},we,{prefixCls:Ie,value:Gn,viewDate:nr,onPrevYear:function(){Lr(-1)},onNextYear:function(){Lr(1)},onPrevMonth:function(){Hn(-1)},onNextMonth:function(){Hn(1)},onMonthClick:function(){dr("month",nr)},onYearClick:function(){dr("year",nr)}})),he.createElement(Bn,(0,ze.Z)({},we,{onSelect:function(Ar){return ur(Ar,"mouse")},prefixCls:Ie,value:Gn,viewDate:nr,rowCount:Mn})))}var Vn=kn;function qn(we){var Ie=he.useContext(Ye),$e=Ie.hideHeader;if($e)return null;var At=we.prefixCls,Ot=we.generateConfig,Dn=we.locale,Cn=we.value,Yn=we.format,Gn="".concat(At,"-header");return he.createElement(nn,{prefixCls:Gn},Cn?Ve(Cn,{locale:Dn,format:Yn,generateConfig:Ot}):"\xA0")}var pr=qn;function Tr(we){var Ie=we.value,$e=we.generateConfig,At=we.disabledMinutes,Ot=we.disabledSeconds,Dn=we.minutes,Cn=we.seconds,Yn=we.use12Hours,Gn=function(qr,dr,ur,Mr){var Lr=$e.getNow(),Hn=Ie||Lr,ir=dr<0?$e.getHour(Lr):dr,Ar=ur<0?$e.getMinute(Lr):ur,Ri=Mr<0?$e.getSecond(Lr):Mr,Si=At&&At(ir);if(Si!=null&&Si.includes(Ar)){var Ni=Dn.find(function(Ei){return!Si.includes(Ei.value)});if(Ni)Ar=Ni.value;else return null}var _i=Ot&&Ot(ir,Ar);if(_i!=null&&_i.includes(Ri)){var Li=Cn.find(function(Ei){return!_i.includes(Ei.value)});if(Li)Ri=Li.value;else return null}return Hn=Nt($e,Hn,!Yn||!qr?ir:ir+12,Ar,Ri),Hn};return Gn}function Jr(we){var Ie=we.prefixCls,$e=we.units,At=we.onSelect,Ot=we.value,Dn=we.active,Cn=we.hideDisabledOptions,Yn=we.info,Gn=we.type,nr="".concat(Ie,"-cell"),qr=he.useContext(Ye),dr=qr.open,ur=(0,he.useRef)(null),Mr=(0,he.useRef)(new Map),Lr=(0,he.useRef)();return(0,he.useLayoutEffect)(function(){var Hn=Mr.current.get(Ot);Hn&&dr!==!1&&Rr(ur.current,Hn.offsetTop,120)},[Ot]),(0,he.useLayoutEffect)(function(){if(dr){var Hn=Mr.current.get(Ot);Hn&&(Lr.current=Cr(Hn,function(){Rr(ur.current,Hn.offsetTop,0)}))}return function(){var ir;(ir=Lr.current)===null||ir===void 0||ir.call(Lr)}},[dr]),he.createElement("ul",{className:lt()("".concat(Ie,"-column"),(0,Zt.Z)({},"".concat(Ie,"-column-active"),Dn)),ref:ur,style:{position:"relative"}},$e.map(function(Hn){var ir;return Cn&&Hn.disabled?null:he.createElement("li",{key:Hn.value,ref:function(Ri){Mr.current.set(Hn.value,Ri)},className:lt()(nr,(ir={},(0,Zt.Z)(ir,"".concat(nr,"-disabled"),Hn.disabled),(0,Zt.Z)(ir,"".concat(nr,"-selected"),Ot===Hn.value),ir)),onClick:function(){Hn.disabled||At(Hn.value)}},Yn.cellRender?Yn.cellRender(Hn.value,{today:Yn.today,locale:Yn.locale,originNode:he.createElement("div",{className:"".concat(nr,"-inner")},Hn.label),type:"time",subType:Gn}):he.createElement("div",{className:"".concat(nr,"-inner")},Hn.label))}))}var ai=Jr;function Nr(we,Ie){if(we.length!==Ie.length)return!0;for(var $e=0;$e<we.length;$e+=1)if(we[$e].disabled!==Ie[$e].disabled)return!0;return!1}function yr(we,Ie,$e,At){for(var Ot=[],Dn=$e>=1?$e|0:1,Cn=we;Cn<=Ie;Cn+=Dn)Ot.push({label:Ut(Cn,2),value:Cn,disabled:(At||[]).includes(Cn)});return Ot}function di(we){var Ie=we.generateConfig,$e=we.prefixCls,At=we.operationRef,Ot=we.activeColumnIndex,Dn=we.value,Cn=we.showHour,Yn=we.showMinute,Gn=we.showSecond,nr=we.use12Hours,qr=we.hourStep,dr=qr===void 0?1:qr,ur=we.minuteStep,Mr=ur===void 0?1:ur,Lr=we.secondStep,Hn=Lr===void 0?1:Lr,ir=we.disabledHours,Ar=we.disabledMinutes,Ri=we.disabledSeconds,Si=we.disabledTime,Ni=we.hideDisabledOptions,_i=we.onSelect,Li=we.cellRender,Ei=we.locale,Ka=[],Ca="".concat($e,"-content"),_a="".concat($e,"-time-panel"),uo,co=Dn?Ie.getHour(Dn):-1,Co=co,Oo=Dn?Ie.getMinute(Dn):-1,Wa=Dn?Ie.getSecond(Dn):-1,ja=Ie.getNow(),no=he.useMemo(function(){if(Si){var Rn=Si(ja);return[Rn.disabledHours,Rn.disabledMinutes,Rn.disabledSeconds]}return[ir,Ar,Ri]},[ir,Ar,Ri,Si,ja]),Po=(0,Ht.Z)(no,3),Fo=Po[0],yo=Po[1],ro=Po[2],as=yr(0,23,dr,Fo&&Fo()),Cs=(0,le.Z)(function(){return as},as,Nr);nr&&(uo=Co>=12,Co%=12);var Re=he.useMemo(function(){if(!nr)return[!1,!1];var Rn=[!0,!0];return Cs.forEach(function(_n){var sr=_n.disabled,lr=_n.value;sr||(lr>=12?Rn[1]=!1:Rn[0]=!1)}),Rn},[nr,Cs]),Ze=(0,Ht.Z)(Re,2),Ct=Ze[0],kt=Ze[1],Vt=he.useMemo(function(){return nr?Cs.filter(uo?function(Rn){return Rn.value>=12}:function(Rn){return Rn.value<12}).map(function(Rn){var _n=Rn.value%12,sr=_n===0?"12":Ut(_n,2);return(0,an.Z)((0,an.Z)({},Rn),{},{label:sr,value:_n})}):Cs},[nr,uo,Cs]),zt=yr(0,59,Mr,yo&&yo(co)),bn=yr(0,59,Hn,ro&&ro(co,Oo)),vn=Tr({value:Dn,generateConfig:Ie,disabledMinutes:yo,disabledSeconds:ro,minutes:zt,seconds:bn,use12Hours:nr});At.current={onUpDown:function(_n){var sr=Ka[Ot];if(sr)for(var lr=sr.units.findIndex(function(ei){return ei.value===sr.value}),fr=sr.units.length,Pr=1;Pr<fr;Pr+=1){var Sr=sr.units[(lr+_n*Pr+fr)%fr];if(Sr.disabled!==!0){sr.onSelect(Sr.value);break}}}};function yn(Rn,_n,sr,lr,fr){Rn!==!1&&Ka.push({node:he.cloneElement(_n,{prefixCls:_a,value:sr,active:Ot===Ka.length,onSelect:fr,units:lr,hideDisabledOptions:Ni}),onSelect:fr,value:sr,units:lr})}yn(Cn,he.createElement(ai,{key:"hour",type:"hour",info:{today:ja,locale:Ei,cellRender:Li}}),Co,Vt,function(Rn){_i(vn(uo,Rn,Oo,Wa),"mouse")}),yn(Yn,he.createElement(ai,{key:"minute",type:"minute",info:{today:ja,locale:Ei,cellRender:Li}}),Oo,zt,function(Rn){_i(vn(uo,Co,Rn,Wa),"mouse")}),yn(Gn,he.createElement(ai,{key:"second",type:"second",info:{today:ja,locale:Ei,cellRender:Li}}),Wa,bn,function(Rn){_i(vn(uo,Co,Oo,Rn),"mouse")});var Fn=-1;return typeof uo=="boolean"&&(Fn=uo?1:0),yn(nr===!0,he.createElement(ai,{key:"meridiem",type:"meridiem",info:{today:ja,locale:Ei,cellRender:Li}}),Fn,[{label:"AM",value:0,disabled:Ct},{label:"PM",value:1,disabled:kt}],function(Rn){_i(vn(!!Rn,Co,Oo,Wa),"mouse")}),he.createElement("div",{className:Ca},Ka.map(function(Rn){var _n=Rn.node;return _n}))}var ti=di,vi=function(Ie){return Ie.filter(function($e){return $e!==!1}).length};function Wr(we){var Ie=we.generateConfig,$e=we.format,At=$e===void 0?"HH:mm:ss":$e,Ot=we.prefixCls,Dn=we.active,Cn=we.operationRef,Yn=we.showHour,Gn=we.showMinute,nr=we.showSecond,qr=we.use12Hours,dr=qr===void 0?!1:qr,ur=we.onSelect,Mr=we.value,Lr="".concat(Ot,"-time-panel"),Hn=he.useRef(),ir=he.useState(-1),Ar=(0,Ht.Z)(ir,2),Ri=Ar[0],Si=Ar[1],Ni=vi([Yn,Gn,nr,dr]);return Cn.current={onKeyDown:function(Li){return $r(Li,{onLeftRight:function(Ka){Si((Ri+Ka+Ni)%Ni)},onUpDown:function(Ka){Ri===-1?Si(0):Hn.current&&Hn.current.onUpDown(Ka)},onEnter:function(){ur(Mr||Ie.getNow(),"key"),Si(-1)}})},onBlur:function(){Si(-1)}},he.createElement("div",{className:lt()(Lr,(0,Zt.Z)({},"".concat(Lr,"-active"),Dn))},he.createElement(pr,(0,ze.Z)({},we,{format:At,prefixCls:Ot})),he.createElement(ti,(0,ze.Z)({},we,{prefixCls:Ot,activeColumnIndex:Ri,operationRef:Hn})))}var jr=Wr,yi=An("date","time");function ui(we){var Ie=we.prefixCls,$e=we.operationRef,At=we.generateConfig,Ot=we.value,Dn=we.defaultValue,Cn=we.disabledTime,Yn=we.showTime,Gn=we.onSelect,nr=we.cellRender,qr="".concat(Ie,"-datetime-panel"),dr=he.useState(null),ur=(0,Ht.Z)(dr,2),Mr=ur[0],Lr=ur[1],Hn=he.useRef({}),ir=he.useRef({}),Ar=(0,qe.Z)(Yn)==="object"?(0,an.Z)({},Yn):{};function Ri(Li){var Ei=yi.indexOf(Mr)+Li,Ka=yi[Ei]||null;return Ka}var Si=function(Ei){ir.current.onBlur&&ir.current.onBlur(Ei),Lr(null)};$e.current={onKeyDown:function(Ei){if(Ei.which===Ln.Z.TAB){var Ka=Ri(Ei.shiftKey?-1:1);return Lr(Ka),Ka&&Ei.preventDefault(),!0}if(Mr){var Ca=Mr==="date"?Hn:ir;return Ca.current&&Ca.current.onKeyDown&&Ca.current.onKeyDown(Ei),!0}return[Ln.Z.LEFT,Ln.Z.RIGHT,Ln.Z.UP,Ln.Z.DOWN].includes(Ei.which)?(Lr("date"),!0):!1},onBlur:Si,onClose:Si};var Ni=function(Ei,Ka){var Ca=Ei;Ka==="date"&&!Ot&&Ar.defaultValue?(Ca=At.setHour(Ca,At.getHour(Ar.defaultValue)),Ca=At.setMinute(Ca,At.getMinute(Ar.defaultValue)),Ca=At.setSecond(Ca,At.getSecond(Ar.defaultValue))):Ka==="time"&&!Ot&&Dn&&(Ca=At.setYear(Ca,At.getYear(Dn)),Ca=At.setMonth(Ca,At.getMonth(Dn)),Ca=At.setDate(Ca,At.getDate(Dn))),Gn&&Gn(Ca,"mouse")},_i=Cn?Cn(Ot||null):{};return he.createElement("div",{className:lt()(qr,(0,Zt.Z)({},"".concat(qr,"-active"),Mr))},he.createElement(Vn,(0,ze.Z)({},we,{cellRender:nr,operationRef:Hn,active:Mr==="date",onSelect:function(Ei){Ni(Jt(At,Ei,!Ot&&(0,qe.Z)(Yn)==="object"?Yn.defaultValue:null),"date")}})),he.createElement(jr,(0,ze.Z)({},we,{cellRender:nr?function(Li,Ei){return nr(Li,(0,an.Z)((0,an.Z)({},Ei),{},{type:"time"}))}:void 0,format:void 0},Ar,_i,{disabledTime:null,defaultValue:void 0,operationRef:ir,active:Mr==="time",onSelect:function(Ei){Ni(Ei,"time")}})))}var $i=ui;function sa(we){var Ie=we.prefixCls,$e=we.generateConfig,At=we.viewDate,Ot=we.onPrevDecades,Dn=we.onNextDecades,Cn=he.useContext(Ye),Yn=Cn.hideHeader;if(Yn)return null;var Gn="".concat(Ie,"-header"),nr=$e.getYear(At),qr=Math.floor(nr/se)*se,dr=qr+se-1;return he.createElement(nn,(0,ze.Z)({},we,{prefixCls:Gn,onSuperPrev:Ot,onSuperNext:Dn}),qr,"-",dr)}var oi=sa,ar=3,rr=4;function pi(we){var Ie=ge-1,$e=we.prefixCls,At=we.viewDate,Ot=we.generateConfig,Dn=we.cellRender,Cn=we.locale,Yn="".concat($e,"-cell"),Gn=Ot.getYear(At),nr=Math.floor(Gn/ge)*ge,qr=Math.floor(Gn/se)*se,dr=qr+se-1,ur=Ot.setYear(At,qr-Math.ceil((ar*rr*ge-se)/2)),Mr=function(ir){var Ar,Ri=Ot.getYear(ir),Si=Ri+Ie;return Ar={},(0,Zt.Z)(Ar,"".concat(Yn,"-in-view"),qr<=Ri&&Si<=dr),(0,Zt.Z)(Ar,"".concat(Yn,"-selected"),Ri===nr),Ar},Lr=Dn?function(Hn,ir){return Dn(Hn,{originNode:ir,today:Ot.getNow(),type:"decade",locale:Cn})}:void 0;return he.createElement(In,(0,ze.Z)({},we,{rowNum:rr,colNum:ar,baseDate:ur,getCellNode:Lr,getCellText:function(ir){var Ar=Ot.getYear(ir);return"".concat(Ar,"-").concat(Ar+Ie)},getCellClassName:Mr,getCellDate:function(ir,Ar){return Ot.addYear(ir,Ar*ge)}}))}var ni=pi;function ki(we){var Ie=we.prefixCls,$e=we.onViewDateChange,At=we.generateConfig,Ot=we.viewDate,Dn=we.operationRef,Cn=we.onSelect,Yn=we.onPanelChange,Gn="".concat(Ie,"-decade-panel");Dn.current={onKeyDown:function(ur){return $r(ur,{onLeftRight:function(Lr){Cn(At.addYear(Ot,Lr*ge),"key")},onCtrlLeftRight:function(Lr){Cn(At.addYear(Ot,Lr*se),"key")},onUpDown:function(Lr){Cn(At.addYear(Ot,Lr*ge*ar),"key")},onEnter:function(){Yn("year",Ot)}})}};var nr=function(ur){var Mr=At.addYear(Ot,ur*se);$e(Mr),Yn(null,Mr)},qr=function(ur){Cn(ur,"mouse"),Yn("year",ur)};return he.createElement("div",{className:Gn},he.createElement(oi,(0,ze.Z)({},we,{prefixCls:Ie,onPrevDecades:function(){nr(-1)},onNextDecades:function(){nr(1)}})),he.createElement(ni,(0,ze.Z)({},we,{prefixCls:Ie,onSelect:qr})))}var Ai=ki;function Ti(we){var Ie=we.prefixCls,$e=we.generateConfig,At=we.locale,Ot=we.viewDate,Dn=we.onNextYear,Cn=we.onPrevYear,Yn=we.onYearClick,Gn=he.useContext(Ye),nr=Gn.hideHeader;if(nr)return null;var qr="".concat(Ie,"-header");return he.createElement(nn,(0,ze.Z)({},we,{prefixCls:qr,onSuperPrev:Cn,onSuperNext:Dn}),he.createElement("button",{type:"button",onClick:Yn,className:"".concat(Ie,"-year-btn")},Ve(Ot,{locale:At,format:At.yearFormat,generateConfig:$e})))}var mi=Ti,Ci=3,Pa=4;function _r(we){var Ie=we.prefixCls,$e=we.locale,At=we.value,Ot=we.viewDate,Dn=we.generateConfig,Cn=we.cellRender,Yn=he.useContext(Tn),Gn=Yn.rangedValue,nr=Yn.hoverRangedValue,qr="".concat(Ie,"-cell"),dr=Xn({cellPrefixCls:qr,value:At,generateConfig:Dn,rangedValue:Gn,hoverRangedValue:nr,isSameCell:function(ir,Ar){return rt(Dn,ir,Ar)},isInView:function(){return!0},offsetCell:function(ir,Ar){return Dn.addMonth(ir,Ar)}}),ur=$e.shortMonths||(Dn.locale.getShortMonths?Dn.locale.getShortMonths($e.locale):[]),Mr=Dn.setMonth(Ot,0),Lr=Cn?function(Hn,ir){return Cn(Hn,{originNode:ir,locale:$e,today:Dn.getNow(),type:"month"})}:void 0;return he.createElement(In,(0,ze.Z)({},we,{rowNum:Pa,colNum:Ci,baseDate:Mr,getCellNode:Lr,getCellText:function(ir){return $e.monthFormat?Ve(ir,{locale:$e,format:$e.monthFormat,generateConfig:Dn}):ur[Dn.getMonth(ir)]},getCellClassName:dr,getCellDate:Dn.addMonth,titleCell:function(ir){return Ve(ir,{locale:$e,format:"YYYY-MM",generateConfig:Dn})}}))}var Xr=_r;function Pi(we){var Ie=we.prefixCls,$e=we.operationRef,At=we.onViewDateChange,Ot=we.generateConfig,Dn=we.value,Cn=we.viewDate,Yn=we.onPanelChange,Gn=we.onSelect,nr="".concat(Ie,"-month-panel");$e.current={onKeyDown:function(ur){return $r(ur,{onLeftRight:function(Lr){Gn(Ot.addMonth(Dn||Cn,Lr),"key")},onCtrlLeftRight:function(Lr){Gn(Ot.addYear(Dn||Cn,Lr),"key")},onUpDown:function(Lr){Gn(Ot.addMonth(Dn||Cn,Lr*Ci),"key")},onEnter:function(){Yn("date",Dn||Cn)}})}};var qr=function(ur){var Mr=Ot.addYear(Cn,ur);At(Mr),Yn(null,Mr)};return he.createElement("div",{className:nr},he.createElement(mi,(0,ze.Z)({},we,{prefixCls:Ie,onPrevYear:function(){qr(-1)},onNextYear:function(){qr(1)},onYearClick:function(){Yn("year",Cn)}})),he.createElement(Xr,(0,ze.Z)({},we,{prefixCls:Ie,onSelect:function(ur){Gn(ur,"mouse"),Yn("date",ur)}})))}var Hi=Pi;function Na(we){var Ie=we.prefixCls,$e=we.generateConfig,At=we.locale,Ot=we.viewDate,Dn=we.onNextYear,Cn=we.onPrevYear,Yn=we.onYearClick,Gn=he.useContext(Ye),nr=Gn.hideHeader;if(nr)return null;var qr="".concat(Ie,"-header");return he.createElement(nn,(0,ze.Z)({},we,{prefixCls:qr,onSuperPrev:Cn,onSuperNext:Dn}),he.createElement("button",{type:"button",onClick:Yn,className:"".concat(Ie,"-year-btn")},Ve(Ot,{locale:At,format:At.yearFormat,generateConfig:$e})))}var Ra=Na,ka=4,ha=1;function Qa(we){var Ie=we.prefixCls,$e=we.locale,At=we.value,Ot=we.viewDate,Dn=we.generateConfig,Cn=we.cellRender,Yn=he.useContext(Tn),Gn=Yn.rangedValue,nr=Yn.hoverRangedValue,qr="".concat(Ie,"-cell"),dr=Xn({cellPrefixCls:qr,value:At,generateConfig:Dn,rangedValue:Gn,hoverRangedValue:nr,isSameCell:function(Hn,ir){return bt(Dn,Hn,ir)},isInView:function(){return!0},offsetCell:function(Hn,ir){return Dn.addMonth(Hn,ir*3)}}),ur=Dn.setDate(Dn.setMonth(Ot,0),1),Mr=Cn?function(Lr,Hn){return Cn(Lr,{originNode:Hn,locale:$e,today:Dn.getNow(),type:"quarter"})}:void 0;return he.createElement(In,(0,ze.Z)({},we,{rowNum:ha,colNum:ka,baseDate:ur,getCellNode:Mr,getCellText:function(Hn){return Ve(Hn,{locale:$e,format:$e.quarterFormat||"[Q]Q",generateConfig:Dn})},getCellClassName:dr,getCellDate:function(Hn,ir){return Dn.addMonth(Hn,ir*3)},titleCell:function(Hn){return Ve(Hn,{locale:$e,format:"YYYY-[Q]Q",generateConfig:Dn})}}))}var Ja=Qa;function Gr(we){var Ie=we.prefixCls,$e=we.operationRef,At=we.onViewDateChange,Ot=we.generateConfig,Dn=we.value,Cn=we.viewDate,Yn=we.onPanelChange,Gn=we.onSelect,nr="".concat(Ie,"-quarter-panel");$e.current={onKeyDown:function(ur){return $r(ur,{onLeftRight:function(Lr){Gn(Ot.addMonth(Dn||Cn,Lr*3),"key")},onCtrlLeftRight:function(Lr){Gn(Ot.addYear(Dn||Cn,Lr),"key")},onUpDown:function(Lr){Gn(Ot.addYear(Dn||Cn,Lr),"key")}})}};var qr=function(ur){var Mr=Ot.addYear(Cn,ur);At(Mr),Yn(null,Mr)};return he.createElement("div",{className:nr},he.createElement(Ra,(0,ze.Z)({},we,{prefixCls:Ie,onPrevYear:function(){qr(-1)},onNextYear:function(){qr(1)},onYearClick:function(){Yn("year",Cn)}})),he.createElement(Ja,(0,ze.Z)({},we,{prefixCls:Ie,onSelect:function(ur){Gn(ur,"mouse")}})))}var Zr=Gr;function Kr(we){var Ie=we.prefixCls,$e=we.generateConfig,At=we.locale,Ot=we.value,Dn=we.disabledDate,Cn=we.onSelect,Yn=he.useContext(Tn),Gn=Yn.rangedValue,nr=Yn.hoverRangedValue,qr=he.useContext(Ye),dr=qr.onDateMouseEnter,ur=qr.onDateMouseLeave,Mr=(nr==null?void 0:nr[0])||(Gn==null?void 0:Gn[0]),Lr=(nr==null?void 0:nr[1])||(Gn==null?void 0:Gn[1]),Hn="".concat(Ie,"-cell"),ir=function(Ni){var _i=Gt({cellDate:Ni,mode:"week",disabledDate:Dn,generateConfig:$e});return he.createElement("td",{key:"week",className:lt()(Hn,"".concat(Hn,"-week")),onClick:function(){_i||Cn(Ni,"mouse")},onMouseEnter:function(){!_i&&dr&&dr(Ni)},onMouseLeave:function(){!_i&&ur&&ur(Ni)}},he.createElement("div",{className:"".concat(Hn,"-inner")},$e.locale.getWeek(At.locale,Ni)))},Ar="".concat(Ie,"-week-panel-row"),Ri=function(Ni){var _i,Li=xt($e,At.locale,Mr,Ni),Ei=xt($e,At.locale,Lr,Ni);return lt()(Ar,(_i={},(0,Zt.Z)(_i,"".concat(Ar,"-selected"),!Gn&&xt($e,At.locale,Ot,Ni)),(0,Zt.Z)(_i,"".concat(Ar,"-range-start"),Li),(0,Zt.Z)(_i,"".concat(Ar,"-range-end"),Ei),(0,Zt.Z)(_i,"".concat(Ar,"-range-hover"),!Li&&!Ei&&cn($e,Mr,Lr,Ni)),_i))};return he.createElement(Vn,(0,ze.Z)({},we,{panelName:"week",prefixColumn:ir,rowClassName:Ri,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var fi=Kr,ga=10;function Fa(we){var Ie=we.prefixCls,$e=we.generateConfig,At=we.viewDate,Ot=we.onPrevDecade,Dn=we.onNextDecade,Cn=we.onDecadeClick,Yn=he.useContext(Ye),Gn=Yn.hideHeader;if(Gn)return null;var nr="".concat(Ie,"-header"),qr=$e.getYear(At),dr=Math.floor(qr/ga)*ga,ur=dr+ga-1;return he.createElement(nn,(0,ze.Z)({},we,{prefixCls:nr,onSuperPrev:Ot,onSuperNext:Dn}),he.createElement("button",{type:"button",onClick:Cn,className:"".concat(Ie,"-decade-btn")},dr,"-",ur))}var Ua=Fa,za=3,Ta=4;function lo(we){var Ie=we.prefixCls,$e=we.value,At=we.viewDate,Ot=we.locale,Dn=we.generateConfig,Cn=we.cellRender,Yn=he.useContext(Tn),Gn=Yn.rangedValue,nr=Yn.hoverRangedValue,qr="".concat(Ie,"-cell"),dr=Dn.getYear(At),ur=Math.floor(dr/ga)*ga,Mr=ur+ga-1,Lr=Dn.setYear(At,ur-Math.ceil((za*Ta-ga)/2)),Hn=Dn.getNow(),ir=function(Ni){var _i=Dn.getYear(Ni);return ur<=_i&&_i<=Mr},Ar=Xn({cellPrefixCls:qr,value:$e,generateConfig:Dn,rangedValue:Gn,hoverRangedValue:nr,isSameCell:function(Ni,_i){return _e(Dn,Ni,_i)},isInView:ir,offsetCell:function(Ni,_i){return Dn.addYear(Ni,_i)}}),Ri=Cn?function(Si,Ni){return Cn(Si,{originNode:Ni,today:Hn,type:"year",locale:Ot})}:void 0;return he.createElement(In,(0,ze.Z)({},we,{rowNum:Ta,colNum:za,baseDate:Lr,getCellNode:Ri,getCellText:Dn.getYear,getCellClassName:Ar,getCellDate:Dn.addYear,titleCell:function(Ni){return Ve(Ni,{locale:Ot,format:"YYYY",generateConfig:Dn})}}))}var jo=lo;function _o(we){var Ie=we.prefixCls,$e=we.operationRef,At=we.onViewDateChange,Ot=we.generateConfig,Dn=we.value,Cn=we.viewDate,Yn=we.sourceMode,Gn=we.onSelect,nr=we.onPanelChange,qr="".concat(Ie,"-year-panel");$e.current={onKeyDown:function(Mr){return $r(Mr,{onLeftRight:function(Hn){Gn(Ot.addYear(Dn||Cn,Hn),"key")},onCtrlLeftRight:function(Hn){Gn(Ot.addYear(Dn||Cn,Hn*ga),"key")},onUpDown:function(Hn){Gn(Ot.addYear(Dn||Cn,Hn*za),"key")},onEnter:function(){nr(Yn==="date"?"date":"month",Dn||Cn)}})}};var dr=function(Mr){var Lr=Ot.addYear(Cn,Mr*10);At(Lr),nr(null,Lr)};return he.createElement("div",{className:qr},he.createElement(Ua,(0,ze.Z)({},we,{prefixCls:Ie,onPrevDecade:function(){dr(-1)},onNextDecade:function(){dr(1)},onDecadeClick:function(){nr("decade",Cn)}})),he.createElement(jo,(0,ze.Z)({},we,{prefixCls:Ie,onSelect:function(Mr){nr(Yn==="date"?"date":"month",Mr),Gn(Mr,"mouse")}})))}var hs=_o;function la(we,Ie,$e){return $e?he.createElement("div",{className:"".concat(we,"-footer-extra")},$e(Ie)):null}function ya(we){var Ie=we.prefixCls,$e=we.components,At=$e===void 0?{}:$e,Ot=we.needConfirmButton,Dn=we.onNow,Cn=we.onOk,Yn=we.okDisabled,Gn=we.showNow,nr=we.locale,qr,dr;if(Ot){var ur=At.button||"button";Dn&&Gn!==!1&&(qr=he.createElement("li",{className:"".concat(Ie,"-now")},he.createElement("a",{className:"".concat(Ie,"-now-btn"),onClick:Dn},nr.now))),dr=Ot&&he.createElement("li",{className:"".concat(Ie,"-ok")},he.createElement(ur,{disabled:Yn,onClick:Cn},nr.ok))}return!qr&&!dr?null:he.createElement("ul",{className:"".concat(Ie,"-ranges")},qr,dr)}var po=["date","month"];function La(we){var Ie,$e=we,At=$e.prefixCls,Ot=At===void 0?"rc-picker":At,Dn=$e.className,Cn=$e.style,Yn=$e.locale,Gn=$e.generateConfig,nr=$e.value,qr=$e.defaultValue,dr=$e.pickerValue,ur=$e.defaultPickerValue,Mr=$e.disabledDate,Lr=$e.mode,Hn=$e.picker,ir=Hn===void 0?"date":Hn,Ar=$e.tabIndex,Ri=Ar===void 0?0:Ar,Si=$e.showNow,Ni=$e.showTime,_i=$e.showToday,Li=$e.renderExtraFooter,Ei=$e.hideHeader,Ka=$e.onSelect,Ca=$e.onChange,_a=$e.onPanelChange,uo=$e.onMouseDown,co=$e.onPickerValueChange,Co=$e.onOk,Oo=$e.components,Wa=$e.direction,ja=$e.hourStep,no=ja===void 0?1:ja,Po=$e.minuteStep,Fo=Po===void 0?1:Po,yo=$e.secondStep,ro=yo===void 0?1:yo,as=$e.dateRender,Cs=$e.monthCellRender,Re=$e.cellRender,Ze=ir==="date"&&!!Ni||ir==="time",Ct=24%no===0,kt=60%Fo===0,Vt=60%ro===0,zt=he.useContext(Ye),bn=zt.operationRef,vn=zt.onSelect,yn=zt.hideRanges,Fn=zt.defaultOpenValue,Rn=he.useContext(Tn),_n=Rn.inRange,sr=Rn.panelPosition,lr=Rn.rangedValue,fr=Rn.hoverRangedValue,Pr=he.useRef({}),Sr=he.useRef(!0),ei=(0,ye.Z)(null,{value:nr,defaultValue:qr,postState:function(mr){return!mr&&Fn&&ir==="time"?Fn:mr}}),Fr=(0,Ht.Z)(ei,2),si=Fr[0],Zi=Fr[1],Xi=(0,ye.Z)(null,{value:dr,defaultValue:ur||si,postState:function(mr){var gi=Gn.getNow();if(!mr)return gi;if(!si&&Ni){var fa=(0,qe.Z)(Ni)==="object"?Ni.defaultValue:qr;return Jt(Gn,Array.isArray(mr)?mr[0]:mr,fa||gi)}return Array.isArray(mr)?mr[0]:mr}}),Bi=(0,Ht.Z)(Xi,2),ji=Bi[0],ma=Bi[1],hi=function(mr){ma(mr),co&&co(mr)},Fi=function(mr){var gi=Ir[ir];return gi?gi(mr):mr},xi=(0,ye.Z)(function(){return ir==="time"?"time":Fi("date")},{value:Lr}),Br=(0,Ht.Z)(xi,2),ri=Br[0],Vi=Br[1];he.useEffect(function(){Vi(ir)},[ir]);var Ea=he.useState(function(){return ri}),Gi=(0,Ht.Z)(Ea,2),Qr=Gi[0],ia=Gi[1],va=function(mr,gi){var fa=Fi(mr||ri);ia(ri),Vi(fa),_a&&(ri!==fa||Rt(Gn,ji,ji))&&_a(gi,fa)},wa=function(mr,gi){var fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(ri===ir||fa)&&(Zi(mr),Ka&&Ka(mr),vn&&vn(mr,gi),Ca&&!Rt(Gn,mr,si)&&!(Mr!=null&&Mr(mr))&&Ca(mr))},Da=function(mr){if(po.includes(ri)){var gi,fa,Aa=ri==="date";switch(mr===Ln.Z.PAGE_UP||mr===Ln.Z.PAGE_DOWN?fa=Aa?Gn.addMonth:Gn.addYear:fa=Aa?Gn.addDate:Gn.addMonth,mr){case Ln.Z.LEFT:case Ln.Z.PAGE_UP:gi=fa(ji,-1);break;case Ln.Z.RIGHT:case Ln.Z.PAGE_DOWN:gi=fa(ji,1);break;case Ln.Z.UP:case Ln.Z.DOWN:gi=fa(ji,Number("".concat(mr===Ln.Z.UP?"-":"").concat(Aa?Oe:Ci)));break}if(gi)return!(Mr!=null&&Mr(gi))}return!0},So=function(mr){if(Pr.current&&Pr.current.onKeyDown){var gi=!0,fa=mr.which;if([Ln.Z.LEFT,Ln.Z.RIGHT,Ln.Z.UP,Ln.Z.DOWN,Ln.Z.PAGE_UP,Ln.Z.PAGE_DOWN,Ln.Z.ENTER].includes(fa)&&(mr.preventDefault(),fa!==Ln.Z.ENTER&&Ri===0&&(gi=Da(fa))),gi)return Pr.current.onKeyDown(mr)}return(0,Te.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Ia=function(mr){Pr.current&&Pr.current.onBlur&&Pr.current.onBlur(mr)};bn&&sr!=="right"&&(bn.current={onKeyDown:So,onClose:function(){Pr.current&&Pr.current.onClose&&Pr.current.onClose()}}),he.useEffect(function(){nr&&!Sr.current&&ma(nr)},[nr]),he.useEffect(function(){Sr.current=!1},[]);var aa,Lo=Mt({cellRender:Re,monthCellRender:Cs,dateRender:as}),Qi=(0,an.Z)((0,an.Z)({},we),{},{cellRender:Lo,operationRef:Pr,prefixCls:Ot,viewDate:ji,value:si,onViewDateChange:hi,sourceMode:Qr,onPanelChange:va,disabledDate:Mr});switch(delete Qi.onChange,delete Qi.onSelect,ri){case"decade":aa=he.createElement(Ai,(0,ze.Z)({},Qi,{onSelect:function(mr,gi){hi(mr),wa(mr,gi)}}));break;case"year":aa=he.createElement(hs,(0,ze.Z)({},Qi,{onSelect:function(mr,gi){hi(mr),wa(mr,gi)}}));break;case"month":aa=he.createElement(Hi,(0,ze.Z)({},Qi,{onSelect:function(mr,gi){hi(mr),wa(mr,gi)}}));break;case"quarter":aa=he.createElement(Zr,(0,ze.Z)({},Qi,{onSelect:function(mr,gi){hi(mr),wa(mr,gi)}}));break;case"week":aa=he.createElement(fi,(0,ze.Z)({},Qi,{onSelect:function(mr,gi){hi(mr),wa(mr,gi)}}));break;case"time":delete Qi.showTime,aa=he.createElement(jr,(0,ze.Z)({},Qi,(0,qe.Z)(Ni)==="object"?Ni:null,{onSelect:function(mr,gi){hi(mr),wa(mr,gi)}}));break;default:Ni?aa=he.createElement($i,(0,ze.Z)({},Qi,{onSelect:function(mr,gi){hi(mr),wa(mr,gi)}})):aa=he.createElement(Vn,(0,ze.Z)({},Qi,{onSelect:function(mr,gi){hi(mr),wa(mr,gi)}}))}var mo,io,No=function(){var mr=Gn.getNow(),gi=sn(Gn.getHour(mr),Gn.getMinute(mr),Gn.getSecond(mr),Ct?no:1,kt?Fo:1,Vt?ro:1),fa=Nt(Gn,mr,gi[0],gi[1],gi[2]);wa(fa,"submit")};yn||(mo=la(Ot,ri,Li),Ni&&ri!=="date"?io=null:io=ya({prefixCls:Ot,components:Oo,needConfirmButton:Ze,okDisabled:!si||Mr&&Mr(si),locale:Yn,showNow:Si,onNow:Ze&&No,onOk:function(){si&&(wa(si,"submit",!0),Co&&Co(si))}}));var ea;if(_i&&ri==="date"&&ir==="date"&&!Ni){var Ui=Gn.getNow(),Ji="".concat(Ot,"-today-btn"),Ki=Mr&&Mr(Ui);ea=he.createElement("a",{className:lt()(Ji,Ki&&"".concat(Ji,"-disabled")),"aria-disabled":Ki,onClick:function(){Ki||wa(Ui,"mouse",!0)}},Yn.today)}return he.createElement(Ye.Provider,{value:(0,an.Z)((0,an.Z)({},zt),{},{mode:ri,hideHeader:"hideHeader"in we?Ei:zt.hideHeader,hidePrevBtn:_n&&sr==="right",hideNextBtn:_n&&sr==="left"})},he.createElement("div",{tabIndex:Ri,className:lt()("".concat(Ot,"-panel"),Dn,(Ie={},(0,Zt.Z)(Ie,"".concat(Ot,"-panel-has-range"),lr&&lr[0]&&lr[1]),(0,Zt.Z)(Ie,"".concat(Ot,"-panel-has-range-hover"),fr&&fr[0]&&fr[1]),(0,Zt.Z)(Ie,"".concat(Ot,"-panel-rtl"),Wa==="rtl"),Ie)),style:Cn,onKeyDown:So,onBlur:Ia,onMouseDown:uo},aa,mo||io||ea?he.createElement("div",{className:"".concat(Ot,"-footer")},mo,io,ea):null))}var $a=La,Ya=ae(35593),Za={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Oi(we){var Ie,$e=we.prefixCls,At=we.popupElement,Ot=we.popupStyle,Dn=we.visible,Cn=we.dropdownClassName,Yn=we.dropdownAlign,Gn=we.transitionName,nr=we.getPopupContainer,qr=we.children,dr=we.range,ur=we.popupPlacement,Mr=we.direction,Lr="".concat($e,"-dropdown"),Hn=function(){return ur!==void 0?ur:Mr==="rtl"?"bottomRight":"bottomLeft"};return he.createElement(Ya.Z,{showAction:[],hideAction:[],popupPlacement:Hn(),builtinPlacements:Za,prefixCls:Lr,popupTransitionName:Gn,popup:At,popupAlign:Yn,popupVisible:Dn,popupClassName:lt()(Cn,(Ie={},(0,Zt.Z)(Ie,"".concat(Lr,"-range"),dr),(0,Zt.Z)(Ie,"".concat(Lr,"-rtl"),Mr==="rtl"),Ie)),popupStyle:Ot,getPopupContainer:nr},qr)}var ua=Oi;function ra(we){var Ie=we.prefixCls,$e=we.presets,At=we.onClick,Ot=we.onHover;return $e.length?he.createElement("div",{className:"".concat(Ie,"-presets")},he.createElement("ul",null,$e.map(function(Dn,Cn){var Yn=Dn.label,Gn=Dn.value;return he.createElement("li",{key:Cn,onClick:function(){return At==null?void 0:At(Wn(Gn))},onMouseEnter:function(){return Ot==null?void 0:Ot(Wn(Gn))},onMouseLeave:function(){return Ot==null?void 0:Ot(null)}},Yn)}))):null}function Wi(we){var Ie=we.picker,$e=we.disabledHours,At=we.disabledMinutes,Ot=we.disabledSeconds;Ie==="time"&&($e||At||Ot)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Oa(we,Ie,$e){var At=(0,qe.Z)(Ie)==="object"?Ie.clearIcon:$e;return At||he.createElement("span",{className:"".concat(we,"-clear-btn")})}function Ba(we){var Ie,$e=we,At=$e.prefixCls,Ot=At===void 0?"rc-picker":At,Dn=$e.id,Cn=$e.name,Yn=$e.tabIndex,Gn=$e.style,nr=$e.className,qr=$e.dropdownClassName,dr=$e.dropdownAlign,ur=$e.popupStyle,Mr=$e.transitionName,Lr=$e.generateConfig,Hn=$e.locale,ir=$e.inputReadOnly,Ar=$e.allowClear,Ri=$e.autoFocus,Si=$e.showTime,Ni=$e.picker,_i=Ni===void 0?"date":Ni,Li=$e.format,Ei=$e.use12Hours,Ka=$e.value,Ca=$e.defaultValue,_a=$e.presets,uo=$e.open,co=$e.defaultOpen,Co=$e.defaultOpenValue,Oo=$e.suffixIcon,Wa=$e.clearIcon,ja=$e.disabled,no=$e.disabledDate,Po=$e.placeholder,Fo=$e.getPopupContainer,yo=$e.pickerRef,ro=$e.panelRender,as=$e.onChange,Cs=$e.onOpenChange,Re=$e.onFocus,Ze=$e.onBlur,Ct=$e.onMouseDown,kt=$e.onMouseUp,Vt=$e.onMouseEnter,zt=$e.onMouseLeave,bn=$e.onContextMenu,vn=$e.onClick,yn=$e.onKeyDown,Fn=$e.onSelect,Rn=$e.direction,_n=$e.autoComplete,sr=_n===void 0?"off":_n,lr=$e.inputRender,fr=$e.changeOnBlur,Pr=he.useRef(null),Sr=_i==="date"&&!!Si||_i==="time",ei=Dr(_a),Fr=mn(vr(Li,_i,Si,Ei)),si=he.useRef(null),Zi=he.useRef(null),Xi=he.useRef(null),Bi=(0,ye.Z)(null,{value:Ka,defaultValue:Ca}),ji=(0,Ht.Z)(Bi,2),ma=ji[0],hi=ji[1],Fi=he.useState(ma),xi=(0,Ht.Z)(Fi,2),Br=xi[0],ri=xi[1],Vi=he.useRef(null),Ea=(0,ye.Z)(!1,{value:uo,defaultValue:co,postState:function(ca){return ja?!1:ca},onChange:function(ca){Cs&&Cs(ca),!ca&&Vi.current&&Vi.current.onClose&&Vi.current.onClose()}}),Gi=(0,Ht.Z)(Ea,2),Qr=Gi[0],ia=Gi[1],va=hn(Br,{formatList:Fr,generateConfig:Lr,locale:Hn}),wa=(0,Ht.Z)(va,2),Da=wa[0],So=wa[1],Ia=He({valueTexts:Da,onTextChange:function(ca){var Ho=Kt(ca,{locale:Hn,formatList:Fr,generateConfig:Lr});Ho&&(!no||!no(Ho))&&ri(Ho)}}),aa=(0,Ht.Z)(Ia,3),Lo=aa[0],Qi=aa[1],mo=aa[2],io=function(ca){ri(ca),hi(ca),as&&!Rt(Lr,ma,ca)&&as(ca,ca?Ve(ca,{generateConfig:Lr,locale:Hn,format:Fr[0]}):"")},No=function(ca){ja&&ca||ia(ca)},ea=function(ca){return Qr&&Vi.current&&Vi.current.onKeyDown?Vi.current.onKeyDown(ca):((0,Te.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ui=function(){for(var ca=arguments.length,Ho=new Array(ca),Ro=0;Ro<ca;Ro++)Ho[Ro]=arguments[Ro];vn==null||vn.apply(void 0,Ho),Pr.current&&(Pr.current.focus(),No(!0))},Ji=function(ca){fr&&io(Br),Ze==null||Ze(ca)},Ki=Jn({blurToCancel:Sr,open:Qr,value:Lo,triggerOpen:No,forwardKeyDown:ea,isClickOutside:function(ca){return!or([si.current,Zi.current,Xi.current],ca)},onSubmit:function(){return!Br||no&&no(Br)?!1:(io(Br),No(!1),mo(),!0)},onCancel:function(){No(!1),ri(ma),mo()},onKeyDown:function(ca,Ho){yn==null||yn(ca,Ho)},onFocus:Re,onBlur:Ji,changeOnBlur:fr}),Di=(0,Ht.Z)(Ki,2),mr=Di[0],gi=Di[1],fa=gi.focused,Aa=gi.typing;he.useEffect(function(){Qr||(ri(ma),!Da.length||Da[0]===""?Qi(""):So!==Lo&&mo())},[Qr,Da]),he.useEffect(function(){Qr||mo()},[_i]),he.useEffect(function(){ri(ma)},[ma]),yo&&(yo.current={focus:function(){var ca;(ca=Pr.current)===null||ca===void 0||ca.focus()},blur:function(){var ca;(ca=Pr.current)===null||ca===void 0||ca.blur()}});var Ms=On(Lo,{formatList:Fr,generateConfig:Lr,locale:Hn}),ls=(0,Ht.Z)(Ms,3),fl=ls[0],Yo=ls[1],Xo=ls[2],ta=(0,an.Z)((0,an.Z)({},we),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),vs=he.createElement("div",{className:"".concat(Ot,"-panel-layout")},he.createElement(ra,{prefixCls:Ot,presets:ei,onClick:function(ca){io(ca),No(!1)}}),he.createElement($a,(0,ze.Z)({},ta,{generateConfig:Lr,className:lt()((0,Zt.Z)({},"".concat(Ot,"-panel-focused"),!Aa)),value:Br,locale:Hn,tabIndex:-1,onSelect:function(ca){Fn==null||Fn(ca),ri(ca)},direction:Rn,onPanelChange:function(ca,Ho){var Ro=we.onPanelChange;Xo(!0),Ro==null||Ro(ca,Ho)}})));ro&&(vs=ro(vs));var Fs=he.createElement("div",{className:"".concat(Ot,"-panel-container"),ref:si,onMouseDown:function(ca){ca.preventDefault()}},vs),Xa;Oo&&(Xa=he.createElement("span",{className:"".concat(Ot,"-suffix"),onMouseDown:function(ca){ca.preventDefault()}},Oo));var Vr=Oa(Ot,Ar,Wa),fo=he.createElement("span",{onMouseDown:function(ca){ca.preventDefault(),ca.stopPropagation()},onMouseUp:function(ca){ca.preventDefault(),ca.stopPropagation(),io(null),No(!1)},className:"".concat(Ot,"-clear"),role:"button"},Vr),us=!!Ar&&ma&&!ja,cs=(0,an.Z)((0,an.Z)((0,an.Z)({id:Dn,tabIndex:Yn,disabled:ja,readOnly:ir||typeof Fr[0]=="function"||!Aa,value:fl||Lo,onChange:function(ca){Qi(ca.target.value)},autoFocus:Ri,placeholder:Po,ref:Pr,title:Lo},mr),{},{size:Er(_i,Fr[0],Lr),name:Cn},(0,ue.Z)(we,{aria:!0,data:!0})),{},{autoComplete:sr}),ba=lr?lr(cs):he.createElement("input",cs),bo=function(ca,Ho){(Ho==="submit"||Ho!=="key"&&!Sr)&&(io(ca),No(!1))},Ss=Rn==="rtl"?"bottomRight":"bottomLeft";return he.createElement(Ye.Provider,{value:{operationRef:Vi,hideHeader:_i==="time",onSelect:bo,open:Qr,defaultOpenValue:Co,onDateMouseEnter:Yo,onDateMouseLeave:Xo}},he.createElement(ua,{visible:Qr,popupElement:Fs,popupStyle:ur,prefixCls:Ot,dropdownClassName:qr,dropdownAlign:dr,getPopupContainer:Fo,transitionName:Mr,popupPlacement:Ss,direction:Rn},he.createElement("div",{ref:Xi,className:lt()(Ot,nr,(Ie={},(0,Zt.Z)(Ie,"".concat(Ot,"-disabled"),ja),(0,Zt.Z)(Ie,"".concat(Ot,"-focused"),fa),(0,Zt.Z)(Ie,"".concat(Ot,"-rtl"),Rn==="rtl"),Ie)),style:Gn,onMouseDown:Ct,onMouseUp:kt,onMouseEnter:Vt,onMouseLeave:zt,onContextMenu:bn,onClick:Ui},he.createElement("div",{className:lt()("".concat(Ot,"-input"),(0,Zt.Z)({},"".concat(Ot,"-input-placeholder"),!!fl)),ref:Zi},ba,Xa,us&&fo))))}var zo=function(we){(0,$t.Z)($e,we);var Ie=(0,Pn.Z)($e);function $e(){var At;(0,pt.Z)(this,$e);for(var Ot=arguments.length,Dn=new Array(Ot),Cn=0;Cn<Ot;Cn++)Dn[Cn]=arguments[Cn];return At=Ie.call.apply(Ie,[this].concat(Dn)),(0,Zt.Z)((0,Sn.Z)(At),"pickerRef",he.createRef()),(0,Zt.Z)((0,Sn.Z)(At),"focus",function(){At.pickerRef.current&&At.pickerRef.current.focus()}),(0,Zt.Z)((0,Sn.Z)(At),"blur",function(){At.pickerRef.current&&At.pickerRef.current.blur()}),At}return(0,Ft.Z)($e,[{key:"render",value:function(){return he.createElement(Ba,(0,ze.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),$e}(he.Component),Vo=zo;function $o(we,Ie){var $e=we.picker,At=we.locale,Ot=we.selectedValue,Dn=we.disabledDate,Cn=we.disabled,Yn=we.generateConfig,Gn=ln(Ot,0),nr=ln(Ot,1);function qr(Hn){return Yn.locale.getWeekFirstDate(At.locale,Hn)}function dr(Hn){var ir=Yn.getYear(Hn),Ar=Yn.getMonth(Hn);return ir*100+Ar}function ur(Hn){var ir=Yn.getYear(Hn),Ar=St(Yn,Hn);return ir*10+Ar}var Mr=he.useCallback(function(Hn){if(Cn[0]||Dn&&Dn(Hn))return!0;if(Cn[1]&&nr)return!Dt(Yn,Hn,nr)&&Yn.isAfter(Hn,nr);if(!Ie&&nr)switch($e){case"quarter":return ur(Hn)>ur(nr);case"month":return dr(Hn)>dr(nr);case"week":return qr(Hn)>qr(nr);default:return!Dt(Yn,Hn,nr)&&Yn.isAfter(Hn,nr)}return!1},[Dn,Cn[1],nr,Ie]),Lr=he.useCallback(function(Hn){if(Cn[1]||Dn&&Dn(Hn))return!0;if(Cn[0]&&Gn)return!Dt(Yn,Hn,nr)&&Yn.isAfter(Gn,Hn);if(!Ie&&Gn)switch($e){case"quarter":return ur(Hn)<ur(Gn);case"month":return dr(Hn)<dr(Gn);case"week":return qr(Hn)<qr(Gn);default:return!Dt(Yn,Hn,Gn)&&Yn.isAfter(Gn,Hn)}return!1},[Dn,Cn[0],Gn,Ie]);return[Mr,Lr]}var Qo=ae(70425),qa=ae(6089);function eo(we,Ie,$e,At,Ot,Dn,Cn,Yn,Gn,nr){var qr=he.useState(!1),dr=(0,Ht.Z)(qr,2),ur=dr[0],Mr=dr[1],Lr=(0,Qo.useMergedState)(we||!1,{value:Ie}),Hn=(0,Ht.Z)(Lr,2),ir=Hn[0],Ar=Hn[1],Ri=(0,Qo.useMergedState)(we||!1,{value:Ie,onChange:function(no){nr==null||nr(no)}}),Si=(0,Ht.Z)(Ri,2),Ni=Si[0],_i=Si[1],Li=(0,Qo.useMergedState)(0,{value:$e}),Ei=(0,Ht.Z)(Li,2),Ka=Ei[0],Ca=Ei[1],_a=he.useState(null),uo=(0,Ht.Z)(_a,2),co=uo[0],Co=uo[1];he.useEffect(function(){Ni&&Mr(!0)},[Ni]);var Oo=function(no){return no===0?1:0},Wa=(0,qa.Z)(function(ja,no,Po){if(no===!1)_i(ja);else if(ja){Ca(no),_i(ja);var Fo=Oo(no);!Ni||![Cn,Yn][Fo]?Co(Fo):(Mr(!1),co!==null&&Co(null))}else if(Po==="confirm"||Po==="blur"&&At){var yo=ir?Oo(no):co;yo!==null&&(Mr(!1),Ca(yo)),Co(null),yo!==null&&!Gn[yo]?(0,Kn.Z)(function(){var ro,as=[Ot,Dn][yo];(ro=as.current)===null||ro===void 0||ro.focus()}):_i(!1)}else _i(!1),Ar(!1)});return[Ni,Ka,ur,Wa]}function ns(we,Ie,$e,At){var Ot=Ae(we,$e,At,1);function Dn(Cn){return Cn(we,Ie)?"same":Cn(Ot,Ie)?"closing":"far"}switch($e){case"year":return Dn(function(Cn,Yn){return Ge(At,Cn,Yn)});case"quarter":case"month":return Dn(function(Cn,Yn){return _e(At,Cn,Yn)});default:return Dn(function(Cn,Yn){return rt(At,Cn,Yn)})}}function rs(we,Ie,$e,At){var Ot=ln(we,0),Dn=ln(we,1);if(Ie===0)return Ot;if(Ot&&Dn){var Cn=ns(Ot,Dn,$e,At);switch(Cn){case"same":return Ot;case"closing":return Ot;default:return Ae(Dn,$e,At,-1)}}return Ot}function ps(we){var Ie=we.values,$e=we.picker,At=we.defaultDates,Ot=we.generateConfig,Dn=he.useState(function(){return[ln(At,0),ln(At,1)]}),Cn=(0,Ht.Z)(Dn,2),Yn=Cn[0],Gn=Cn[1],nr=he.useState(null),qr=(0,Ht.Z)(nr,2),dr=qr[0],ur=qr[1],Mr=ln(Ie,0),Lr=ln(Ie,1);function Hn(Ar){return Yn[Ar]?Yn[Ar]:ln(dr,Ar)||rs(Ie,Ar,$e,Ot)||Mr||Lr||Ot.getNow()}function ir(Ar,Ri){if(Ar){var Si=Nn(dr,Ar,Ri);Gn(Nn(Yn,null,Ri)||[null,null]);var Ni=(Ri+1)%2;ln(Ie,Ni)||(Si=Nn(Si,Ar,Ni)),ur(Si)}else(Mr||Lr)&&ur(null)}return[Hn,ir]}function Jo(we,Ie){return we&&we[0]&&we[1]&&Ie.isAfter(we[0],we[1])?[we[1],we[0]]:we}function Vl(we,Ie,$e,At){return!!(we||At&&At[Ie]||$e[(Ie+1)%2])}function Cl(we){var Ie,$e,At,Ot=we,Dn=Ot.prefixCls,Cn=Dn===void 0?"rc-picker":Dn,Yn=Ot.id,Gn=Ot.style,nr=Ot.className,qr=Ot.popupStyle,dr=Ot.dropdownClassName,ur=Ot.transitionName,Mr=Ot.dropdownAlign,Lr=Ot.getPopupContainer,Hn=Ot.generateConfig,ir=Ot.locale,Ar=Ot.placeholder,Ri=Ot.autoFocus,Si=Ot.disabled,Ni=Ot.format,_i=Ot.picker,Li=_i===void 0?"date":_i,Ei=Ot.showTime,Ka=Ot.use12Hours,Ca=Ot.separator,_a=Ca===void 0?"~":Ca,uo=Ot.value,co=Ot.defaultValue,Co=Ot.defaultPickerValue,Oo=Ot.open,Wa=Ot.defaultOpen,ja=Ot.disabledDate,no=Ot.disabledTime,Po=Ot.dateRender,Fo=Ot.monthCellRender,yo=Ot.cellRender,ro=Ot.panelRender,as=Ot.presets,Cs=Ot.ranges,Re=Ot.allowEmpty,Ze=Ot.allowClear,Ct=Ot.suffixIcon,kt=Ot.clearIcon,Vt=Ot.pickerRef,zt=Ot.inputReadOnly,bn=Ot.mode,vn=Ot.renderExtraFooter,yn=Ot.onChange,Fn=Ot.onOpenChange,Rn=Ot.onPanelChange,_n=Ot.onCalendarChange,sr=Ot.onFocus,lr=Ot.onBlur,fr=Ot.onMouseDown,Pr=Ot.onMouseUp,Sr=Ot.onMouseEnter,ei=Ot.onMouseLeave,Fr=Ot.onClick,si=Ot.onOk,Zi=Ot.onKeyDown,Xi=Ot.components,Bi=Ot.order,ji=Ot.direction,ma=Ot.activePickerIndex,hi=Ot.autoComplete,Fi=hi===void 0?"off":hi,xi=Ot.changeOnBlur,Br=Li==="date"&&!!Ei||Li==="time",ri=(0,he.useRef)(null),Vi=(0,he.useRef)(null),Ea=(0,he.useRef)(null),Gi=(0,he.useRef)(null),Qr=(0,he.useRef)(null),ia=(0,he.useRef)(null),va=(0,he.useRef)(null),wa=(0,he.useRef)(null),Da=mn(vr(Ni,Li,Ei,Ka)),So=(0,he.useRef)(null),Ia=he.useMemo(function(){return Array.isArray(Si)?Si:[Si||!1,Si||!1]},[Si]),aa=(0,ye.Z)(null,{value:uo,defaultValue:co,postState:function(oa){return Li==="time"&&!Bi?oa:Jo(oa,Hn)}}),Lo=(0,Ht.Z)(aa,2),Qi=Lo[0],mo=Lo[1],io=ps({values:Qi,picker:Li,defaultDates:Co,generateConfig:Hn}),No=(0,Ht.Z)(io,2),ea=No[0],Ui=No[1],Ji=(0,ye.Z)(Qi,{postState:function(oa){var da=oa;if(Ia[0]&&Ia[1])return da;for(var ho=0;ho<2;ho+=1)Ia[ho]&&!da&&!ln(da,ho)&&!ln(Re,ho)&&(da=Nn(da,Hn.getNow(),ho));return da}}),Ki=(0,Ht.Z)(Ji,2),Di=Ki[0],mr=Ki[1],gi=(0,ye.Z)([Li,Li],{value:bn}),fa=(0,Ht.Z)(gi,2),Aa=fa[0],Ms=fa[1];(0,he.useEffect)(function(){Ms([Li,Li])},[Li]);var ls=function(oa,da){Ms(oa),Rn&&Rn(da,oa)},fl=eo(Wa,Oo,ma,xi,ia,va,ln(Di,0),ln(Di,1),Ia,Fn),Yo=(0,Ht.Z)(fl,4),Xo=Yo[0],ta=Yo[1],vs=Yo[2],Fs=Yo[3],Xa=Xo&&ta===0,Vr=Xo&&ta===1,fo=$o({picker:Li,selectedValue:Di,locale:ir,disabled:Ia,disabledDate:ja,generateConfig:Hn},!Xo||vs),us=(0,Ht.Z)(fo,2),cs=us[0],ba=us[1],bo=(0,he.useState)(0),Ss=(0,Ht.Z)(bo,2),xo=Ss[0],ca=Ss[1];(0,he.useEffect)(function(){!Xo&&ri.current&&ca(ri.current.offsetWidth)},[Xo]);function Ho(Io){Fs(!0,Io,"open"),(0,Kn.Z)(function(){var oa,da=[ia,va][Io];(oa=da.current)===null||oa===void 0||oa.focus()},0)}function Ro(Io,oa){var da=Io,ho=ln(da,0),Es=ln(da,1);ho&&Es&&Hn.isAfter(ho,Es)&&(Li==="week"&&!xt(Hn,ir.locale,ho,Es)||Li==="quarter"&&!bt(Hn,ho,Es)||Li!=="week"&&Li!=="quarter"&&Li!=="time"&&!Dt(Hn,ho,Es)?oa===0?(da=[ho,null],Es=null):(ho=null,da=[null,Es]):(Li!=="time"||Bi!==!1)&&(da=Jo(da,Hn))),mr(da);var Gu=da&&da[0]?Ve(da[0],{generateConfig:Hn,locale:ir,format:Da[0]}):"",bl=da&&da[1]?Ve(da[1],{generateConfig:Hn,locale:ir,format:Da[0]}):"";if(_n){var Nu={range:oa===0?"start":"end"};_n(da,[Gu,bl],Nu)}var Su=Vl(ho,0,Ia,Re),Rc=Vl(Es,1,Ia,Re),rc=da===null||Su&&Rc;rc&&(mo(da),yn&&(!Rt(Hn,ln(Qi,0),ho)||!Rt(Hn,ln(Qi,1),Es))&&yn(da,[Gu,bl]))}var Zl=function(oa){return Xo&&So.current&&So.current.onKeyDown?So.current.onKeyDown(oa):((0,Te.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},zs={formatList:Da,generateConfig:Hn,locale:ir},hl=hn(ln(Di,0),zs),Ws=(0,Ht.Z)(hl,2),Zo=Ws[0],os=Ws[1],il=hn(ln(Di,1),zs),Gl=(0,Ht.Z)(il,2),pl=Gl[0],Yl=Gl[1],cu=function(oa,da){var ho=Kt(oa,{locale:ir,formatList:Da,generateConfig:Hn}),Es=da===0?cs:ba;ho&&!Es(ho)&&(mr(Nn(Di,ho,da)),Ui(ho,da))},uc=He({valueTexts:Zo,onTextChange:function(oa){return cu(oa,0)}}),ao=(0,Ht.Z)(uc,3),Eo=ao[0],ks=ao[1],Bo=ao[2],Bs=He({valueTexts:pl,onTextChange:function(oa){return cu(oa,1)}}),Is=(0,Ht.Z)(Bs,3),Ys=Is[0],Xl=Is[1],cc=Is[2],Du=(0,he.useState)(null),Ql=(0,Ht.Z)(Du,2),oo=Ql[0],ss=Ql[1],Jl=(0,he.useState)(null),Au=(0,Ht.Z)(Jl,2),Xs=Au[0],Lc=Au[1],Ds=On(Eo,{formatList:Da,generateConfig:Hn,locale:ir}),ec=(0,Ht.Z)(Ds,3),Bc=ec[0],dc=ec[1],Zu=ec[2],Wu=On(Ys,{formatList:Da,generateConfig:Hn,locale:ir}),wu=(0,Ht.Z)(Wu,3),li=wu[0],Ic=wu[1],ju=wu[2],fc=function(oa){Lc(Nn(Di,oa,ta)),ta===0?dc(oa):Ic(oa)},Wl=function(){Lc(Nn(Di,null,ta)),ta===0?Zu():ju()},Pu=he.useState(Xo),Iu=(0,Ht.Z)(Pu,2),Tu=Iu[0],qo=Iu[1];he.useEffect(function(){qo(Xo)},[Xo]);var Wc=function(oa){if(xi&&Tu){var da=ln(Di,ta);da&&Ro(Di,ta)}return lr==null?void 0:lr(oa)},tc=function(oa,da){return{blurToCancel:!xi&&Br,forwardKeyDown:Zl,onBlur:Wc,isClickOutside:function(Es){return!or([Vi.current,Ea.current,Gi.current,ri.current],Es)},onFocus:function(Es){sr&&sr(Es)},triggerOpen:function(Es){Es?Fs(Es,oa,"open"):Fs(Es,ln(Di,oa)?oa:!1,"blur")},onSubmit:function(){if(!Di||ja&&ja(Di[oa]))return!1;Ro(Di,oa),da(),Fs(!1,ta,"confirm")},onCancel:function(){Fs(!1,oa,"cancel"),mr(Qi),da()}}},ql={onKeyDown:function(oa,da){Zi==null||Zi(oa,da)},changeOnBlur:xi},nc=Jn((0,an.Z)((0,an.Z)({},tc(0,Bo)),{},{open:Xa,value:Eo},ql)),du=(0,Ht.Z)(nc,2),Cu=du[0],al=du[1],El=al.focused,js=al.typing,fu=Jn((0,an.Z)((0,an.Z)({},tc(1,cc)),{},{open:Vr,value:Ys},ql)),so=(0,Ht.Z)(fu,2),Mo=so[0],ol=so[1],eu=ol.focused,tu=ol.typing,Tc=function(oa){Fr&&Fr(oa),!Xo&&!ia.current.contains(oa.target)&&!va.current.contains(oa.target)&&(Ia[0]?Ia[1]||Ho(1):Ho(0))},As=function(oa){fr&&fr(oa),Xo&&(El||eu)&&!ia.current.contains(oa.target)&&!va.current.contains(oa.target)&&oa.preventDefault()},jl=Qi&&Qi[0]?Ve(Qi[0],{locale:ir,format:"YYYYMMDDHHmmss",generateConfig:Hn}):"",Oc=Qi&&Qi[1]?Ve(Qi[1],{locale:ir,format:"YYYYMMDDHHmmss",generateConfig:Hn}):"";(0,he.useEffect)(function(){Xo||(mr(Qi),!Zo.length||Zo[0]===""?ks(""):os!==Eo&&Bo(),!pl.length||pl[0]===""?Xl(""):Yl!==Ys&&cc())},[Xo,Zo,pl]),(0,he.useEffect)(function(){mr(Qi)},[jl,Oc]);var hu=Mt({cellRender:yo,monthCellRender:Fo,dateRender:Po}),jc=he.useMemo(function(){if(hu)return function(Io,oa){return hu(Io,(0,an.Z)((0,an.Z)({},oa),{},{range:ta?"end":"start"}))}},[ta,hu]);Vt&&(Vt.current={focus:function(){ia.current&&ia.current.focus()},blur:function(){ia.current&&ia.current.blur(),va.current&&va.current.blur()}});var wo=Dr(as,Cs);function Vu(){var Io=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},da=null;Xo&&Xs&&Xs[0]&&Xs[1]&&Hn.isAfter(Xs[1],Xs[0])&&(da=Xs);var ho=Ei;if(Ei&&(0,qe.Z)(Ei)==="object"&&Ei.defaultValue){var Es=Ei.defaultValue;ho=(0,an.Z)((0,an.Z)({},Ei),{},{defaultValue:ln(Es,ta)||void 0})}return he.createElement(Tn.Provider,{value:{inRange:!0,panelPosition:Io,rangedValue:oo||Di,hoverRangedValue:da}},he.createElement($a,(0,ze.Z)({},we,oa,{cellRender:jc,showTime:ho,mode:Aa[ta],generateConfig:Hn,style:void 0,direction:ji,disabledDate:ta===0?cs:ba,disabledTime:function(bl){return no?no(bl,ta===0?"start":"end"):!1},className:lt()((0,Zt.Z)({},"".concat(Cn,"-panel-focused"),ta===0?!js:!tu)),value:ln(Di,ta),locale:ir,tabIndex:-1,onPanelChange:function(bl,Nu){ta===0&&Zu(!0),ta===1&&ju(!0),ls(Nn(Aa,Nu,ta),Nn(Di,bl,ta));var Su=bl;Io==="right"&&Aa[ta]===Nu&&(Su=Ae(Su,Nu,Hn,-1)),Ui(Su,ta)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:ta===0?ln(Di,1):ln(Di,0)})))}var Al=0,hc=0;if(ta&&Ea.current&&Qr.current&&Vi.current&&wa.current){Al=Ea.current.offsetWidth+Qr.current.offsetWidth;var xr=wa.current.offsetLeft>Al?wa.current.offsetLeft-Al:wa.current.offsetLeft,td=Vi.current.offsetWidth,nd=wa.current.offsetWidth;td&&nd&&Al>td-nd-(ji==="rtl"?0:xr)&&(hc=Al)}var rd=ji==="rtl"?{right:Al}:{left:Al};function id(){var Io,oa=la(Cn,Aa[ta],vn),da=ya({prefixCls:Cn,components:Xi,needConfirmButton:Br,okDisabled:!ln(Di,ta)||ja&&ja(Di[ta]),locale:ir,onOk:function(){var pu=ln(Di,ta);pu&&(Ro(Di,ta),si==null||si(Di),Fs(!1,ta,"confirm"))}});if(Li!=="time"&&!Ei){var ho=ea(ta),Es=Ae(ho,Li,Hn),Gu=Aa[ta],bl=Gu===Li,Nu=Vu(bl?"left":!1,{pickerValue:ho,onPickerValueChange:function(pu){Ui(pu,ta)}}),Su=Vu("right",{pickerValue:Es,onPickerValueChange:function(pu){Ui(Ae(pu,Li,Hn,-1),ta)}});ji==="rtl"?Io=he.createElement(he.Fragment,null,Su,bl&&Nu):Io=he.createElement(he.Fragment,null,Nu,bl&&Su)}else Io=Vu();var Rc=he.createElement("div",{className:"".concat(Cn,"-panel-layout")},he.createElement(ra,{prefixCls:Cn,presets:wo,onClick:function(pu){Ro(pu,null),Fs(!1,ta,"preset")},onHover:function(pu){ss(pu)}}),he.createElement("div",null,he.createElement("div",{className:"".concat(Cn,"-panels")},Io),(oa||da)&&he.createElement("div",{className:"".concat(Cn,"-footer")},oa,da)));return ro&&(Rc=ro(Rc)),he.createElement("div",{className:"".concat(Cn,"-panel-container"),style:{marginLeft:hc},ref:Vi,onMouseDown:function(pu){pu.preventDefault()}},Rc)}var Ou=he.createElement("div",{className:lt()("".concat(Cn,"-range-wrapper"),"".concat(Cn,"-").concat(Li,"-range-wrapper")),style:{minWidth:xo}},he.createElement("div",{ref:wa,className:"".concat(Cn,"-range-arrow"),style:rd}),id()),pc;Ct&&(pc=he.createElement("span",{className:"".concat(Cn,"-suffix"),onMouseDown:function(oa){oa.preventDefault()}},Ct));var Wd=Oa(Cn,Ze,kt),yl=he.createElement("span",{onMouseDown:function(oa){oa.preventDefault(),oa.stopPropagation()},onMouseUp:function(oa){oa.preventDefault(),oa.stopPropagation();var da=Qi;Ia[0]||(da=Nn(da,null,0)),Ia[1]||(da=Nn(da,null,1)),Ro(da,null),Fs(!1,ta,"clear")},className:"".concat(Cn,"-clear"),role:"button"},Wd),Uu=Ze&&(ln(Qi,0)&&!Ia[0]||ln(Qi,1)&&!Ia[1]),Nc={size:Er(Li,Da[0],Hn)},mc=0,ad=0;Ea.current&&Gi.current&&Qr.current&&(ta===0?ad=Ea.current.offsetWidth:(mc=Al,ad=Gi.current.offsetWidth));var wd=ji==="rtl"?{right:mc}:{left:mc},od=function(oa,da){var ho=Nn(Di,oa,ta);if(da==="submit"||da!=="key"&&!Br){Ro(ho,ta),ta===0?Zu():ju();var Es=ta===0?1:0;Ia[Es]?Fs(!1,!1,"confirm"):Fs(!1,ta,"confirm")}else mr(ho)};return he.createElement(Ye.Provider,{value:{operationRef:So,hideHeader:Li==="time",onDateMouseEnter:fc,onDateMouseLeave:Wl,hideRanges:!0,onSelect:od,open:Xo}},he.createElement(ua,{visible:Xo,popupElement:Ou,popupStyle:qr,prefixCls:Cn,dropdownClassName:dr,dropdownAlign:Mr,getPopupContainer:Lr,transitionName:ur,range:!0,direction:ji},he.createElement("div",(0,ze.Z)({ref:ri,className:lt()(Cn,"".concat(Cn,"-range"),nr,(Ie={},(0,Zt.Z)(Ie,"".concat(Cn,"-disabled"),Ia[0]&&Ia[1]),(0,Zt.Z)(Ie,"".concat(Cn,"-focused"),ta===0?El:eu),(0,Zt.Z)(Ie,"".concat(Cn,"-rtl"),ji==="rtl"),Ie)),style:Gn,onClick:Tc,onMouseEnter:Sr,onMouseLeave:ei,onMouseDown:As,onMouseUp:Pr},(0,ue.Z)(we,{aria:!0,data:!0})),he.createElement("div",{className:lt()("".concat(Cn,"-input"),($e={},(0,Zt.Z)($e,"".concat(Cn,"-input-active"),ta===0),(0,Zt.Z)($e,"".concat(Cn,"-input-placeholder"),!!Bc),$e)),ref:Ea},he.createElement("input",(0,ze.Z)({id:Yn,disabled:Ia[0],readOnly:zt||typeof Da[0]=="function"||!js,value:Bc||Eo,onChange:function(oa){ks(oa.target.value)},autoFocus:Ri,placeholder:ln(Ar,0)||"",ref:ia},Cu,Nc,{autoComplete:Fi}))),he.createElement("div",{className:"".concat(Cn,"-range-separator"),ref:Qr},_a),he.createElement("div",{className:lt()("".concat(Cn,"-input"),(At={},(0,Zt.Z)(At,"".concat(Cn,"-input-active"),ta===1),(0,Zt.Z)(At,"".concat(Cn,"-input-placeholder"),!!li),At)),ref:Gi},he.createElement("input",(0,ze.Z)({disabled:Ia[1],readOnly:zt||typeof Da[0]=="function"||!tu,value:li||Ys,onChange:function(oa){Xl(oa.target.value)},placeholder:ln(Ar,1)||"",ref:va},Mo,Nc,{autoComplete:Fi}))),he.createElement("div",{className:"".concat(Cn,"-active-bar"),style:(0,an.Z)((0,an.Z)({},wd),{},{width:ad,position:"absolute"})}),pc,Uu&&yl)))}var Sl=function(we){(0,$t.Z)($e,we);var Ie=(0,Pn.Z)($e);function $e(){var At;(0,pt.Z)(this,$e);for(var Ot=arguments.length,Dn=new Array(Ot),Cn=0;Cn<Ot;Cn++)Dn[Cn]=arguments[Cn];return At=Ie.call.apply(Ie,[this].concat(Dn)),(0,Zt.Z)((0,Sn.Z)(At),"pickerRef",he.createRef()),(0,Zt.Z)((0,Sn.Z)(At),"focus",function(){At.pickerRef.current&&At.pickerRef.current.focus()}),(0,Zt.Z)((0,Sn.Z)(At),"blur",function(){At.pickerRef.current&&At.pickerRef.current.blur()}),At}return(0,Ft.Z)($e,[{key:"render",value:function(){return he.createElement(Cl,(0,ze.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),$e}(he.Component),el=Sl,vu=Vo,tl=ae(19080),Ls=ae(36355),ms=ae(1684),kl=ae(19716),Ol=ae(32441),Nl=ae(9763),au=ae(33234),Fl=ae(48183),Os=ae(64993),gs=ae(9937),Do=ae(17313),zl=ae(47585),yu=ae(74207),nl=ae(13826),to=ae(92899),Ha=ae(37613),Ko=ae(83116);const is=(we,Ie,$e,At)=>{const{lineHeight:Ot}=we,Dn=Math.floor($e*Ot)+2,Cn=Math.max((Ie-Dn)/2,0),Yn=Math.max(Ie-Dn-Cn,0);return{padding:`${Cn}px ${At}px ${Yn}px`}},Uo=we=>{const{componentCls:Ie,pickerCellCls:$e,pickerCellInnerCls:At,cellHeight:Ot,motionDurationSlow:Dn,borderRadiusSM:Cn,motionDurationMid:Yn,cellHoverBg:Gn,lineWidth:nr,lineType:qr,colorPrimary:dr,cellActiveWithRangeBg:ur,colorTextLightSolid:Mr,controlHeightSM:Lr,cellRangeBorderColor:Hn,pickerCellBorderGap:ir,cellHoverWithRangeBg:Ar,cellWidth:Ri,colorTextDisabled:Si,cellBgDisabled:Ni}=we;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Ot,transform:"translateY(-50%)",transition:`all ${Dn}`,content:'""'},[At]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Ot,height:Ot,lineHeight:`${Ot}px`,borderRadius:Cn,transition:`background ${Yn}, border ${Yn}`},"&-range-hover-start, &-range-hover-end":{[At]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${$e}-in-view),
|
|
|
&:hover:not(${$e}-selected):not(${$e}-range-start):not(${$e}-range-end):not(${$e}-range-hover-start):not(${$e}-range-hover-end)`]:{[At]:{background:Gn}},[`&-in-view${$e}-today ${At}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${nr}px ${qr} ${dr}`,borderRadius:Cn,content:'""'}},[`&-in-view${$e}-in-range`]:{position:"relative","&::before":{background:ur}},[`&-in-view${$e}-selected ${At},
|
|
|
&-in-view${$e}-range-start ${At},
|
|
|
&-in-view${$e}-range-end ${At}`]:{color:Mr,background:dr},[`&-in-view${$e}-range-start:not(${$e}-range-start-single),
|
|
|
&-in-view${$e}-range-end:not(${$e}-range-end-single)`]:{"&::before":{background:ur}},[`&-in-view${$e}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${$e}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${$e}-range-hover-start:not(${$e}-in-range):not(${$e}-range-start):not(${$e}-range-end),
|
|
|
&-in-view${$e}-range-hover-end:not(${$e}-in-range):not(${$e}-range-start):not(${$e}-range-end),
|
|
|
&-in-view${$e}-range-hover-start${$e}-range-start-single,
|
|
|
&-in-view${$e}-range-hover-start${$e}-range-start${$e}-range-end${$e}-range-end-near-hover,
|
|
|
&-in-view${$e}-range-hover-end${$e}-range-start${$e}-range-end${$e}-range-start-near-hover,
|
|
|
&-in-view${$e}-range-hover-end${$e}-range-end-single,
|
|
|
&-in-view${$e}-range-hover:not(${$e}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Lr,borderTop:`${nr}px dashed ${Hn}`,borderBottom:`${nr}px dashed ${Hn}`,transform:"translateY(-50%)",transition:`all ${Dn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:ir},[`&-in-view${$e}-in-range${$e}-range-hover::before,
|
|
|
&-in-view${$e}-in-range${$e}-range-hover-start::before,
|
|
|
&-in-view${$e}-in-range${$e}-range-hover-end::before,
|
|
|
&-in-view${$e}-range-start${$e}-range-hover::before,
|
|
|
&-in-view${$e}-range-end${$e}-range-hover::before,
|
|
|
&-in-view${$e}-range-start:not(${$e}-range-start-single)${$e}-range-hover-start::before,
|
|
|
&-in-view${$e}-range-end:not(${$e}-range-end-single)${$e}-range-hover-end::before,
|
|
|
${Ie}-panel
|
|
|
> :not(${Ie}-date-panel)
|
|
|
&-in-view${$e}-in-range${$e}-range-hover-start::before,
|
|
|
${Ie}-panel
|
|
|
> :not(${Ie}-date-panel)
|
|
|
&-in-view${$e}-in-range${$e}-range-hover-end::before`]:{background:Ar},[`&-in-view${$e}-range-start:not(${$e}-range-start-single):not(${$e}-range-end) ${At}`]:{borderStartStartRadius:Cn,borderEndStartRadius:Cn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${$e}-range-end:not(${$e}-range-end-single):not(${$e}-range-start) ${At}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Cn,borderEndEndRadius:Cn},[`&-range-hover${$e}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${$e}-range-hover:first-child::after,
|
|
|
tr > &-in-view${$e}-range-hover-end:first-child::after,
|
|
|
&-in-view${$e}-start${$e}-range-hover-edge-start${$e}-range-hover-edge-start-near-range::after,
|
|
|
&-in-view${$e}-range-hover-edge-start:not(${$e}-range-hover-edge-start-near-range)::after,
|
|
|
&-in-view${$e}-range-hover-start::after`]:{insetInlineStart:(Ri-Ot)/2,borderInlineStart:`${nr}px dashed ${Hn}`,borderStartStartRadius:Cn,borderEndStartRadius:Cn},[`tr > &-in-view${$e}-range-hover:last-child::after,
|
|
|
tr > &-in-view${$e}-range-hover-start:last-child::after,
|
|
|
&-in-view${$e}-end${$e}-range-hover-edge-end${$e}-range-hover-edge-end-near-range::after,
|
|
|
&-in-view${$e}-range-hover-edge-end:not(${$e}-range-hover-edge-end-near-range)::after,
|
|
|
&-in-view${$e}-range-hover-end::after`]:{insetInlineEnd:(Ri-Ot)/2,borderInlineEnd:`${nr}px dashed ${Hn}`,borderStartEndRadius:Cn,borderEndEndRadius:Cn},"&-disabled":{color:Si,pointerEvents:"none",[At]:{background:"transparent"},"&::before":{background:Ni}},[`&-disabled${$e}-today ${At}::before`]:{borderColor:Si}}},Ns=we=>{const{componentCls:Ie,pickerCellCls:$e,pickerCellInnerCls:At,pickerYearMonthCellWidth:Ot,pickerControlIconSize:Dn,cellWidth:Cn,paddingSM:Yn,paddingXS:Gn,paddingXXS:nr,colorBgContainer:qr,lineWidth:dr,lineType:ur,borderRadiusLG:Mr,colorPrimary:Lr,colorTextHeading:Hn,colorSplit:ir,pickerControlIconBorderWidth:Ar,colorIcon:Ri,textHeight:Si,motionDurationMid:Ni,colorIconHover:_i,fontWeightStrong:Li,cellHeight:Ei,pickerCellPaddingVertical:Ka,colorTextDisabled:Ca,colorText:_a,fontSize:uo,cellHoverWithRangeBg:co,motionDurationSlow:Co,withoutTimeCellHeight:Oo,pickerQuarterPanelContentHeight:Wa,colorLink:ja,colorLinkActive:no,colorLinkHover:Po,cellRangeBorderColor:Fo,borderRadiusSM:yo,colorTextLightSolid:ro,cellHoverBg:as,timeColumnHeight:Cs,timeColumnWidth:Re,timeCellHeight:Ze,controlItemBgActive:Ct,marginXXS:kt,pickerDatePanelPaddingHorizontal:Vt}=we,zt=Cn*7+Vt*2,bn=(zt-Gn*2)/3-Ot-Yn,vn=(zt-Gn*2)/4-Ot;return{[Ie]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:qr,border:`${dr}px ${ur} ${ir}`,borderRadius:Mr,outline:"none","&-focused":{borderColor:Lr},"&-rtl":{direction:"rtl",[`${Ie}-prev-icon,
|
|
|
${Ie}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Ie}-next-icon,
|
|
|
${Ie}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:zt},"&-header":{display:"flex",padding:`0 ${Gn}px`,color:Hn,borderBottom:`${dr}px ${ur} ${ir}`,"> *":{flex:"none"},button:{padding:0,color:Ri,lineHeight:`${Si}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Ni}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:uo,"&:hover":{color:_i}},"&-view":{flex:"auto",fontWeight:Li,lineHeight:`${Si}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Gn},"&:hover":{color:Lr}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:Dn,height:Dn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:Dn,height:Dn,border:"0 solid currentcolor",borderBlockStartWidth:Ar,borderBlockEndWidth:0,borderInlineStartWidth:Ar,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(Dn/2),insetInlineStart:Math.ceil(Dn/2),display:"inline-block",width:Dn,height:Dn,border:"0 solid currentcolor",borderBlockStartWidth:Ar,borderBlockEndWidth:0,borderInlineStartWidth:Ar,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:Ei,fontWeight:"normal"},th:{height:Ei+Ka*2,color:_a,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ka}px 0`,color:Ca,cursor:"pointer","&-in-view":{color:_a}},Uo(we)),[`&-date-panel ${Ie}-cell-in-view${Ie}-cell-in-range${Ie}-cell-range-hover-start ${At},
|
|
|
&-date-panel ${Ie}-cell-in-view${Ie}-cell-in-range${Ie}-cell-range-hover-end ${At}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:co,transition:`all ${Co}`,content:'""'}},[`&-date-panel
|
|
|
${Ie}-cell-in-view${Ie}-cell-in-range${Ie}-cell-range-hover-start
|
|
|
${At}::after`]:{insetInlineEnd:-(Cn-Ei)/2,insetInlineStart:0},[`&-date-panel ${Ie}-cell-in-view${Ie}-cell-in-range${Ie}-cell-range-hover-end ${At}::after`]:{insetInlineEnd:0,insetInlineStart:-(Cn-Ei)/2},[`&-range-hover${Ie}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ie}-content`]:{height:Oo*4},[At]:{padding:`0 ${Gn}px`}},"&-quarter-panel":{[`${Ie}-content`]:{height:Wa},[`${Ie}-cell-range-hover-start::after`]:{insetInlineStart:vn,borderInlineStart:`${dr}px dashed ${Fo}`,[`${Ie}-panel-rtl &`]:{insetInlineEnd:vn,borderInlineEnd:`${dr}px dashed ${Fo}`}},[`${Ie}-cell-range-hover-end::after`]:{insetInlineEnd:vn,borderInlineEnd:`${dr}px dashed ${Fo}`,[`${Ie}-panel-rtl &`]:{insetInlineStart:vn,borderInlineStart:`${dr}px dashed ${Fo}`}}},[`&-panel ${Ie}-footer`]:{borderTop:`${dr}px ${ur} ${ir}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Si-2*dr}px`,textAlign:"center","&-extra":{padding:`0 ${Yn}px`,lineHeight:`${Si-2*dr}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${dr}px ${ur} ${ir}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:ja,"&:hover":{color:Po},"&:active":{color:no},[`&${Ie}-today-btn-disabled`]:{color:Ca,cursor:"not-allowed"}},"&-decade-panel":{[At]:{padding:`0 ${Gn/2}px`},[`${Ie}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Ie}-body`]:{padding:`0 ${Gn}px`},[At]:{width:Ot},[`${Ie}-cell-range-hover-start::after`]:{borderStartStartRadius:yo,borderEndStartRadius:yo,borderStartEndRadius:0,borderEndEndRadius:0,[`${Ie}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:yo,borderEndEndRadius:yo}},[`${Ie}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:yo,borderEndEndRadius:yo,[`${Ie}-panel-rtl &`]:{borderStartStartRadius:yo,borderEndStartRadius:yo,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Ie}-cell-range-hover-start::after`]:{insetInlineStart:bn,borderInlineStart:`${dr}px dashed ${Fo}`,[`${Ie}-panel-rtl &`]:{insetInlineEnd:bn,borderInlineEnd:`${dr}px dashed ${Fo}`}},[`${Ie}-cell-range-hover-end::after`]:{insetInlineEnd:bn,borderInlineEnd:`${dr}px dashed ${Fo}`,[`${Ie}-panel-rtl &`]:{insetInlineStart:bn,borderInlineStart:`${dr}px dashed ${Fo}`}}},"&-week-panel":{[`${Ie}-body`]:{padding:`${Gn}px ${Yn}px`},[`${Ie}-cell`]:{[`&:hover ${At},
|
|
|
&-selected ${At},
|
|
|
${At}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Ni}`},"&:first-child:before":{borderStartStartRadius:yo,borderEndStartRadius:yo},"&:last-child:before":{borderStartEndRadius:yo,borderEndEndRadius:yo}},"&:hover td":{"&:before":{background:as}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${$e}`]:{"&:before":{background:Lr},[`&${Ie}-cell-week`]:{color:new Os.C(ro).setAlpha(.5).toHexString()},[At]:{color:ro}}},"&-range-hover td:before":{background:Ct}}},"&-date-panel":{[`${Ie}-body`]:{padding:`${Gn}px ${Vt}px`},[`${Ie}-content`]:{width:Cn*7,th:{width:Cn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Ie}-time-panel`]:{borderInlineStart:`${dr}px ${ur} ${ir}`},[`${Ie}-date-panel,
|
|
|
${Ie}-time-panel`]:{transition:`opacity ${Co}`},"&-active":{[`${Ie}-date-panel,
|
|
|
${Ie}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Ie}-content`]:{display:"flex",flex:"auto",height:Cs},"&-column":{flex:"1 0 auto",width:Re,margin:`${nr}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Ni}`,overflowX:"hidden","&::after":{display:"block",height:Cs-Ze,content:'""'},"&:not(:first-child)":{borderInlineStart:`${dr}px ${ur} ${ir}`},"&-active":{background:new Os.C(Ct).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Ie}-time-panel-cell`]:{marginInline:kt,[`${Ie}-time-panel-cell-inner`]:{display:"block",width:Re-2*kt,height:Ze,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Re-Ze)/2,color:_a,lineHeight:`${Ze}px`,borderRadius:yo,cursor:"pointer",transition:`background ${Ni}`,"&:hover":{background:as}},"&-selected":{[`${Ie}-time-panel-cell-inner`]:{background:Ct}},"&-disabled":{[`${Ie}-time-panel-cell-inner`]:{color:Ca,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Ie}-time-panel-column:after`]:{height:Cs-Ze+nr*2}}}},Ks=we=>{const{componentCls:Ie,colorBgContainer:$e,colorError:At,errorActiveShadow:Ot,colorWarning:Dn,warningActiveShadow:Cn}=we;return{[`${Ie}:not(${Ie}-disabled)`]:{[`&${Ie}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:$e,borderColor:At},[`&${Ie}-focused, &:focus`]:Object.assign({},(0,gs.M1)((0,Ha.TS)(we,{activeBorderColor:At,activeShadow:Ot}))),[`${Ie}-active-bar`]:{background:At}},[`&${Ie}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:$e,borderColor:Dn},[`&${Ie}-focused, &:focus`]:Object.assign({},(0,gs.M1)((0,Ha.TS)(we,{activeBorderColor:Dn,activeShadow:Cn}))),[`${Ie}-active-bar`]:{background:Dn}}}}},cl=we=>{const{componentCls:Ie,antCls:$e,controlHeight:At,fontSize:Ot,paddingInline:Dn,colorBgContainer:Cn,lineWidth:Yn,lineType:Gn,colorBorder:nr,borderRadius:qr,motionDurationMid:dr,colorBgContainerDisabled:ur,colorTextDisabled:Mr,colorTextPlaceholder:Lr,controlHeightLG:Hn,fontSizeLG:ir,controlHeightSM:Ar,paddingInlineSM:Ri,paddingXS:Si,marginXS:Ni,colorTextDescription:_i,lineWidthBold:Li,lineHeight:Ei,colorPrimary:Ka,motionDurationSlow:Ca,zIndexPopup:_a,paddingXXS:uo,paddingSM:co,textHeight:Co,cellActiveWithRangeBg:Oo,colorPrimaryBorder:Wa,sizePopupArrow:ja,borderRadiusXS:no,borderRadiusOuter:Po,colorBgElevated:Fo,borderRadiusLG:yo,boxShadowSecondary:ro,borderRadiusSM:as,colorSplit:Cs,cellHoverBg:Re,presetsWidth:Ze,presetsMaxWidth:Ct,boxShadowPopoverArrow:kt,colorTextQuaternary:Vt}=we;return[{[Ie]:Object.assign(Object.assign(Object.assign({},(0,Do.Wf)(we)),is(we,At,Ot,Dn)),{position:"relative",display:"inline-flex",alignItems:"center",background:Cn,lineHeight:1,border:`${Yn}px ${Gn} ${nr}`,borderRadius:qr,transition:`border ${dr}, box-shadow ${dr}`,"&:hover, &-focused":Object.assign({},(0,gs.pU)(we)),"&-focused":Object.assign({},(0,gs.M1)(we)),[`&${Ie}-disabled`]:{background:ur,borderColor:nr,cursor:"not-allowed",[`${Ie}-suffix`]:{color:Vt}},[`&${Ie}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Ie}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,gs.ik)(we)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Ie}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Lr}}},"&-large":Object.assign(Object.assign({},is(we,Hn,ir,Dn)),{[`${Ie}-input > input`]:{fontSize:ir}}),"&-small":Object.assign({},is(we,Ar,Ot,Ri)),[`${Ie}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Si/2,color:Mr,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Ni}}},[`${Ie}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Mr,lineHeight:1,background:Cn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${dr}, color ${dr}`,"> *":{verticalAlign:"top"},"&:hover":{color:_i}},[`${Ie}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:ir,color:Mr,fontSize:ir,verticalAlign:"top",cursor:"default",[`${Ie}-focused &`]:{color:_i},[`${Ie}-range-separator &`]:{[`${Ie}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Ie}-clear`]:{insetInlineEnd:Dn},"&:hover":{[`${Ie}-clear`]:{opacity:1}},[`${Ie}-active-bar`]:{bottom:-Yn,height:Li,marginInlineStart:Dn,background:Ka,opacity:0,transition:`all ${Ca} ease-out`,pointerEvents:"none"},[`&${Ie}-focused`]:{[`${Ie}-active-bar`]:{opacity:1}},[`${Ie}-range-separator`]:{alignItems:"center",padding:`0 ${Si}px`,lineHeight:1},[`&${Ie}-small`]:{[`${Ie}-clear`]:{insetInlineEnd:Ri},[`${Ie}-active-bar`]:{marginInlineStart:Ri}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Do.Wf)(we)),Ns(we)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_a,[`&${Ie}-dropdown-hidden`]:{display:"none"},[`&${Ie}-dropdown-placement-bottomLeft`]:{[`${Ie}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Ie}-dropdown-placement-topLeft`]:{[`${Ie}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${$e}-slide-up-enter${$e}-slide-up-enter-active${Ie}-dropdown-placement-topLeft,
|
|
|
&${$e}-slide-up-enter${$e}-slide-up-enter-active${Ie}-dropdown-placement-topRight,
|
|
|
&${$e}-slide-up-appear${$e}-slide-up-appear-active${Ie}-dropdown-placement-topLeft,
|
|
|
&${$e}-slide-up-appear${$e}-slide-up-appear-active${Ie}-dropdown-placement-topRight`]:{animationName:nl.Qt},[`&${$e}-slide-up-enter${$e}-slide-up-enter-active${Ie}-dropdown-placement-bottomLeft,
|
|
|
&${$e}-slide-up-enter${$e}-slide-up-enter-active${Ie}-dropdown-placement-bottomRight,
|
|
|
&${$e}-slide-up-appear${$e}-slide-up-appear-active${Ie}-dropdown-placement-bottomLeft,
|
|
|
&${$e}-slide-up-appear${$e}-slide-up-appear-active${Ie}-dropdown-placement-bottomRight`]:{animationName:nl.fJ},[`&${$e}-slide-up-leave${$e}-slide-up-leave-active${Ie}-dropdown-placement-topLeft,
|
|
|
&${$e}-slide-up-leave${$e}-slide-up-leave-active${Ie}-dropdown-placement-topRight`]:{animationName:nl.ly},[`&${$e}-slide-up-leave${$e}-slide-up-leave-active${Ie}-dropdown-placement-bottomLeft,
|
|
|
&${$e}-slide-up-leave${$e}-slide-up-leave-active${Ie}-dropdown-placement-bottomRight`]:{animationName:nl.Uw},[`${Ie}-panel > ${Ie}-time-panel`]:{paddingTop:uo},[`${Ie}-ranges`]:{marginBottom:0,padding:`${uo}px ${co}px`,overflow:"hidden",lineHeight:`${Co-2*Yn-Si/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Ie}-preset > ${$e}-tag-blue`]:{color:Ka,background:Oo,borderColor:Wa,cursor:"pointer"},[`${Ie}-ok`]:{marginInlineStart:"auto"}},[`${Ie}-range-wrapper`]:{display:"flex",position:"relative"},[`${Ie}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:Dn*1.5,transition:`left ${Ca} ease-out`},(0,zl.r)(ja,no,Po,Fo,kt)),[`${Ie}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Fo,borderRadius:yo,boxShadow:ro,transition:`margin ${Ca}`,[`${Ie}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Ie}-presets`]:{display:"flex",flexDirection:"column",minWidth:Ze,maxWidth:Ct,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Si,borderInlineEnd:`${Yn}px ${Gn} ${Cs}`,li:Object.assign(Object.assign({},Do.vS),{borderRadius:as,paddingInline:Si,paddingBlock:(Ar-Math.round(Ot*Ei))/2,cursor:"pointer",transition:`all ${Ca}`,"+ li":{marginTop:Ni},"&:hover":{background:Re}})}},[`${Ie}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Ie}-panel`]:{borderWidth:`0 0 ${Yn}px`},"&:last-child":{[`${Ie}-panel`]:{borderWidth:0}}},[`${Ie}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Ie}-content,
|
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:nr}}}}),"&-dropdown-range":{padding:`${ja*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Ie}-separator`]:{transform:"rotate(180deg)"},[`${Ie}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,nl.oN)(we,"slide-up"),(0,nl.oN)(we,"slide-down"),(0,to.Fm)(we,"move-up"),(0,to.Fm)(we,"move-down")]},Hs=we=>{const{componentCls:Ie,controlHeightLG:$e,paddingXXS:At,padding:Ot}=we;return{pickerCellCls:`${Ie}-cell`,pickerCellInnerCls:`${Ie}-cell-inner`,pickerYearMonthCellWidth:$e*1.5,pickerQuarterPanelContentHeight:$e*1.4,pickerCellPaddingVertical:At+At/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Ot+At/2}},Dl=we=>({cellHoverBg:we.controlItemBgHover,cellActiveWithRangeBg:we.controlItemBgActive,cellHoverWithRangeBg:new Os.C(we.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Os.C(we.colorPrimary).lighten(20).toHexString(),cellBgDisabled:we.colorBgContainerDisabled,timeColumnWidth:we.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:we.controlHeightSM*1.5,cellHeight:we.controlHeightSM,textHeight:we.controlHeightLG,withoutTimeCellHeight:we.controlHeightLG*1.65});var vl=(0,Ko.Z)("DatePicker",we=>{const Ie=(0,Ha.TS)((0,gs.e5)(we),Hs(we));return[cl(Ie),Ks(Ie),(0,yu.c)(we,{focusElCls:`${we.componentCls}-focused`})]},we=>Object.assign(Object.assign(Object.assign({},(0,gs.TM)(we)),Dl(we)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:we.zIndexPopupBase+50}));function Zs(we,Ie,$e){return $e!==void 0?$e:Ie==="year"&&we.lang.yearPlaceholder?we.lang.yearPlaceholder:Ie==="quarter"&&we.lang.quarterPlaceholder?we.lang.quarterPlaceholder:Ie==="month"&&we.lang.monthPlaceholder?we.lang.monthPlaceholder:Ie==="week"&&we.lang.weekPlaceholder?we.lang.weekPlaceholder:Ie==="time"&&we.timePickerLocale.placeholder?we.timePickerLocale.placeholder:we.lang.placeholder}function Hu(we,Ie,$e){return $e!==void 0?$e:Ie==="year"&&we.lang.yearPlaceholder?we.lang.rangeYearPlaceholder:Ie==="quarter"&&we.lang.quarterPlaceholder?we.lang.rangeQuarterPlaceholder:Ie==="month"&&we.lang.monthPlaceholder?we.lang.rangeMonthPlaceholder:Ie==="week"&&we.lang.weekPlaceholder?we.lang.rangeWeekPlaceholder:Ie==="time"&&we.timePickerLocale.placeholder?we.timePickerLocale.rangePlaceholder:we.lang.rangePlaceholder}function $l(we,Ie){const $e={adjustX:1,adjustY:1};switch(Ie){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:$e};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:$e};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:$e};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:$e};default:return{points:we==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:$e}}}function ou(we){return we?Array.isArray(we)?we:[we]:[]}function su(we){const{format:Ie,picker:$e,showHour:At,showMinute:Ot,showSecond:Dn,use12Hours:Cn}=we,Yn=ou(Ie)[0],Gn=Object.assign({},we);return Ie&&Array.isArray(Ie)&&(Gn.format=Yn),Yn&&typeof Yn=="string"&&(!Yn.includes("s")&&Dn===void 0&&(Gn.showSecond=!1),!Yn.includes("m")&&Ot===void 0&&(Gn.showMinute=!1),!Yn.includes("H")&&!Yn.includes("h")&&!Yn.includes("K")&&!Yn.includes("k")&&At===void 0&&(Gn.showHour=!1),(Yn.includes("a")||Yn.includes("A"))&&Cn===void 0&&(Gn.use12Hours=!0)),$e==="time"?Gn:(typeof Yn=="function"&&delete Gn.format,{showTime:Gn})}function bu(we,Ie,$e){if(we===!1)return!1;const At={clearIcon:Ie!=null?Ie:$e};return typeof we=="object"?Object.assign(Object.assign({},At),we):At}var xu=ae(3113);function lc(we){return he.createElement(xu.ZP,Object.assign({size:"small",type:"primary"},we))}var ku={button:lc},Ul=function(we,Ie){var $e={};for(var At in we)Object.prototype.hasOwnProperty.call(we,At)&&Ie.indexOf(At)<0&&($e[At]=we[At]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,At=Object.getOwnPropertySymbols(we);Ot<At.length;Ot++)Ie.indexOf(At[Ot])<0&&Object.prototype.propertyIsEnumerable.call(we,At[Ot])&&($e[At[Ot]]=we[At[Ot]]);return $e};function uu(we){return(0,he.forwardRef)(($e,At)=>{const{prefixCls:Ot,getPopupContainer:Dn,className:Cn,placement:Yn,size:Gn,disabled:nr,bordered:qr=!0,placeholder:dr,popupClassName:ur,dropdownClassName:Mr,status:Lr,clearIcon:Hn,allowClear:ir,rootClassName:Ar}=$e,Ri=Ul($e,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Si=he.useRef(null),{getPrefixCls:Ni,direction:_i,getPopupContainer:Li}=(0,he.useContext)(Ls.E_),Ei=Ni("picker",Ot),{compactSize:Ka,compactItemClassnames:Ca}=(0,au.ri)(Ei,_i),{format:_a,showTime:uo,picker:co}=$e,Co=Ni(),[Oo,Wa]=vl(Ei),ja=Object.assign(Object.assign({},uo?su(Object.assign({format:_a,picker:co},uo)):{}),co==="time"?su(Object.assign(Object.assign({format:_a},$e),{picker:co})):{}),no=(0,kl.Z)(kt=>{var Vt;return(Vt=Gn!=null?Gn:Ka)!==null&&Vt!==void 0?Vt:kt}),Po=he.useContext(ms.Z),Fo=nr!=null?nr:Po,yo=(0,he.useContext)(Ol.aM),{hasFeedback:ro,status:as,feedbackIcon:Cs}=yo,Re=he.createElement(he.Fragment,null,co==="time"?he.createElement(Tt,null):he.createElement(Le,null),ro&&Cs);(0,he.useImperativeHandle)(At,()=>({focus:()=>{var kt;return(kt=Si.current)===null||kt===void 0?void 0:kt.focus()},blur:()=>{var kt;return(kt=Si.current)===null||kt===void 0?void 0:kt.blur()}}));const[Ze]=(0,Nl.Z)("Calendar",Fl.Z),Ct=Object.assign(Object.assign({},Ze),$e.locale);return Oo(he.createElement(el,Object.assign({separator:he.createElement("span",{"aria-label":"to",className:`${Ei}-separator`},he.createElement(on,null)),disabled:Fo,ref:Si,dropdownAlign:$l(_i,Yn),placeholder:Hu(Ct,co,dr),suffixIcon:Re,prevIcon:he.createElement("span",{className:`${Ei}-prev-icon`}),nextIcon:he.createElement("span",{className:`${Ei}-next-icon`}),superPrevIcon:he.createElement("span",{className:`${Ei}-super-prev-icon`}),superNextIcon:he.createElement("span",{className:`${Ei}-super-next-icon`}),transitionName:`${Co}-slide-up`},Ri,ja,{className:lt()({[`${Ei}-${no}`]:no,[`${Ei}-borderless`]:!qr},(0,tl.Z)(Ei,(0,tl.F)(as,Lr),ro),Wa,Ca,Cn,Ar),locale:Ct.lang,prefixCls:Ei,getPopupContainer:Dn||Li,generateConfig:we,components:ku,direction:_i,dropdownClassName:lt()(Wa,ur||Mr,Ar),allowClear:bu(ir,Hn,he.createElement(Xt.Z,null))})))})}var vo=function(we,Ie){var $e={};for(var At in we)Object.prototype.hasOwnProperty.call(we,At)&&Ie.indexOf(At)<0&&($e[At]=we[At]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,At=Object.getOwnPropertySymbols(we);Ot<At.length;Ot++)Ie.indexOf(At[Ot])<0&&Object.prototype.propertyIsEnumerable.call(we,At[Ot])&&($e[At[Ot]]=we[At[Ot]]);return $e};function Ao(we){function Ie(Gn,nr){const qr=nr==="TimePicker"?"timePicker":"datePicker",dr=(0,he.forwardRef)((ur,Mr)=>{const{prefixCls:Lr,getPopupContainer:Hn,style:ir,className:Ar,rootClassName:Ri,size:Si,bordered:Ni=!0,placement:_i,placeholder:Li,popupClassName:Ei,dropdownClassName:Ka,disabled:Ca,status:_a,clearIcon:uo,allowClear:co}=ur,Co=vo(ur,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:Oo,direction:Wa,getPopupContainer:ja,[qr]:no}=(0,he.useContext)(Ls.E_),Po=Oo("picker",Lr),{compactSize:Fo,compactItemClassnames:yo}=(0,au.ri)(Po,Wa),ro=he.useRef(null),{format:as,showTime:Cs}=ur,[Re,Ze]=vl(Po);(0,he.useImperativeHandle)(Mr,()=>({focus:()=>{var Sr;return(Sr=ro.current)===null||Sr===void 0?void 0:Sr.focus()},blur:()=>{var Sr;return(Sr=ro.current)===null||Sr===void 0?void 0:Sr.blur()}}));const Ct={showToday:!0};let kt={};Gn&&(kt.picker=Gn);const Vt=Gn||ur.picker;kt=Object.assign(Object.assign(Object.assign({},kt),Cs?su(Object.assign({format:as,picker:Vt},Cs)):{}),Vt==="time"?su(Object.assign(Object.assign({format:as},ur),{picker:Vt})):{});const zt=Oo(),bn=(0,kl.Z)(Sr=>{var ei;return(ei=Si!=null?Si:Fo)!==null&&ei!==void 0?ei:Sr}),vn=he.useContext(ms.Z),yn=Ca!=null?Ca:vn,Fn=(0,he.useContext)(Ol.aM),{hasFeedback:Rn,status:_n,feedbackIcon:sr}=Fn,lr=he.createElement(he.Fragment,null,Vt==="time"?he.createElement(Tt,null):he.createElement(Le,null),Rn&&sr),[fr]=(0,Nl.Z)("DatePicker",Fl.Z),Pr=Object.assign(Object.assign({},fr),ur.locale);return Re(he.createElement(vu,Object.assign({ref:ro,placeholder:Zs(Pr,Vt,Li),suffixIcon:lr,dropdownAlign:$l(Wa,_i),prevIcon:he.createElement("span",{className:`${Po}-prev-icon`}),nextIcon:he.createElement("span",{className:`${Po}-next-icon`}),superPrevIcon:he.createElement("span",{className:`${Po}-super-prev-icon`}),superNextIcon:he.createElement("span",{className:`${Po}-super-next-icon`}),transitionName:`${zt}-slide-up`},Ct,Co,kt,{locale:Pr.lang,className:lt()({[`${Po}-${bn}`]:bn,[`${Po}-borderless`]:!Ni},(0,tl.Z)(Po,(0,tl.F)(_n,_a),Rn),Ze,yo,no==null?void 0:no.className,Ar,Ri),style:Object.assign(Object.assign({},no==null?void 0:no.style),ir),prefixCls:Po,getPopupContainer:Hn||ja,generateConfig:we,components:ku,direction:Wa,disabled:yn,dropdownClassName:lt()(Ze,Ri,Ei||Ka),allowClear:bu(co,uo,he.createElement(Xt.Z,null))})))});return nr&&(dr.displayName=nr),dr}const $e=Ie(),At=Ie("week","WeekPicker"),Ot=Ie("month","MonthPicker"),Dn=Ie("year","YearPicker"),Cn=Ie("time","TimePicker"),Yn=Ie("quarter","QuarterPicker");return{DatePicker:$e,WeekPicker:At,MonthPicker:Ot,YearPicker:Dn,TimePicker:Cn,QuarterPicker:Yn}}const Go=null;function dl(we){const{DatePicker:Ie,WeekPicker:$e,MonthPicker:At,YearPicker:Ot,TimePicker:Dn,QuarterPicker:Cn}=Ao(we),Yn=uu(we),Gn=Ie;return Gn.WeekPicker=$e,Gn.MonthPicker=At,Gn.YearPicker=Ot,Gn.RangePicker=Yn,Gn.TimePicker=Dn,Gn.QuarterPicker=Cn,Gn}var Rs=dl;const rl=Rs(gt);function Gs(we){const Ie=$l(we.direction,we.placement);return Ie.overflow.adjustY=!1,Ie.overflow.adjustX=!1,Object.assign(Object.assign({},we),{dropdownAlign:Ie})}const _s=(0,st.Z)(rl,"picker",null,Gs);rl._InternalPanelDoNotUseOrYouWillBeFired=_s;const Kl=(0,st.Z)(rl.RangePicker,"picker",null,Gs);rl._InternalRangePanelDoNotUseOrYouWillBeFired=Kl,rl.generatePicker=Rs;var Hl=rl},28103:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Pe}});var ce=ae(92310),De=ae.n(ce),Te=ae(59301),dt=ae(36355),be=ae(17313),ke=ae(83116),pe=ae(37613);const xe=Be=>{const{componentCls:et,sizePaddingEdgeHorizontal:Je,colorSplit:tt,lineWidth:yt,textPaddingInline:wt,orientationMargin:It,verticalMarginInline:gt}=Be;return{[et]:Object.assign(Object.assign({},(0,be.Wf)(Be)),{borderBlockStart:`${yt}px solid ${tt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:gt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${yt}px solid ${tt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Be.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${et}-with-text`]:{display:"flex",alignItems:"center",margin:`${Be.dividerHorizontalWithTextGutterMargin}px 0`,color:Be.colorTextHeading,fontWeight:500,fontSize:Be.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${tt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${yt}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${et}-with-text-left`]:{"&::before":{width:`${It*100}%`},"&::after":{width:`${100-It*100}%`}},[`&-horizontal${et}-with-text-right`]:{"&::before":{width:`${100-It*100}%`},"&::after":{width:`${It*100}%`}},[`${et}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:wt},"&-dashed":{background:"none",borderColor:tt,borderStyle:"dashed",borderWidth:`${yt}px 0 0`},[`&-horizontal${et}-with-text${et}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${et}-dashed`]:{borderInlineStartWidth:yt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${et}-with-text`]:{color:Be.colorText,fontWeight:"normal",fontSize:Be.fontSize},[`&-horizontal${et}-with-text-left${et}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${et}-inner-text`]:{paddingInlineStart:Je}},[`&-horizontal${et}-with-text-right${et}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${et}-inner-text`]:{paddingInlineEnd:Je}}})}};var Me=(0,ke.Z)("Divider",Be=>{const et=(0,pe.TS)(Be,{dividerHorizontalWithTextGutterMargin:Be.margin,dividerHorizontalGutterMargin:Be.marginLG,sizePaddingEdgeHorizontal:0});return[xe(et)]},Be=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Be.marginXS})),Ke=function(Be,et){var Je={};for(var tt in Be)Object.prototype.hasOwnProperty.call(Be,tt)&&et.indexOf(tt)<0&&(Je[tt]=Be[tt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,tt=Object.getOwnPropertySymbols(Be);yt<tt.length;yt++)et.indexOf(tt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Be,tt[yt])&&(Je[tt[yt]]=Be[tt[yt]]);return Je},Pe=Be=>{const{getPrefixCls:et,direction:Je,divider:tt}=Te.useContext(dt.E_),{prefixCls:yt,type:wt="horizontal",orientation:It="center",orientationMargin:gt,className:st,rootClassName:ze,children:he,dashed:je,plain:Xe,style:Qe}=Be,Ue=Ke(Be,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),mt=et("divider",yt),[Le,Bt]=Me(mt),at=It.length>0?`-${It}`:It,Wt=!!he,Lt=It==="left"&>!=null,Tt=It==="right"&>!=null,Xt=De()(mt,tt==null?void 0:tt.className,Bt,`${mt}-${wt}`,{[`${mt}-with-text`]:Wt,[`${mt}-with-text${at}`]:Wt,[`${mt}-dashed`]:!!je,[`${mt}-plain`]:!!Xe,[`${mt}-rtl`]:Je==="rtl",[`${mt}-no-default-orientation-margin-left`]:Lt,[`${mt}-no-default-orientation-margin-right`]:Tt},st,ze),jt=Te.useMemo(()=>typeof gt=="number"?gt:/^\d+$/.test(gt)?Number(gt):gt,[gt]),it=Object.assign(Object.assign({},Lt&&{marginLeft:jt}),Tt&&{marginRight:jt});return Le(Te.createElement("div",Object.assign({className:Xt,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),Qe)},Ue,{role:"separator"}),he&&wt!=="vertical"&&Te.createElement("span",{className:`${mt}-inner-text`,style:it},he)))}},43428:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Zt}});var ce=ae(92310),De=ae.n(ce),Te=ae(85899),dt=ae(72190),be=ae(43403),ke=ae(34280),pe=ae(59301),xe=pe.createContext(null),Me=pe.createContext({}),Ke=xe,vt=ae(18642),Pe=ae(60499),Be=ae(77900),et=ae(10228),Je=ae(26112),tt=ae(70425),yt=function(Ht){var ye=Ht.prefixCls,ue=Ht.className,le=Ht.style,de=Ht.children,ge=Ht.containerRef,se=Ht.id,Oe=Ht.onMouseEnter,ut=Ht.onMouseOver,Ge=Ht.onMouseLeave,_e=Ht.onClick,St=Ht.onKeyDown,bt=Ht.onKeyUp,rt={onMouseEnter:Oe,onMouseOver:ut,onMouseLeave:Ge,onClick:_e,onKeyDown:St,onKeyUp:bt},Dt=pe.useContext(Me),xn=Dt.panel,xt=(0,tt.useComposeRef)(xn,ge);return pe.createElement(pe.Fragment,null,pe.createElement("div",(0,Pe.Z)({id:se,className:De()("".concat(ye,"-content"),ue),style:(0,Te.Z)({},le),"aria-modal":"true",role:"dialog",ref:xt},rt),de))},wt=yt,It=ae(48736);function gt(an){return typeof an=="string"&&String(Number(an))===an?((0,It.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(an)):an}function st(an){warning(!("wrapperClassName"in an),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!an.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ze={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function he(an,Ht){var ye,ue,le,de,ge=an.prefixCls,se=an.open,Oe=an.placement,ut=an.inline,Ge=an.push,_e=an.forceRender,St=an.autoFocus,bt=an.keyboard,rt=an.rootClassName,Dt=an.rootStyle,xn=an.zIndex,xt=an.className,Rt=an.id,cn=an.style,ct=an.motion,Ae=an.width,Ve=an.height,Kt=an.children,Gt=an.contentWrapperStyle,hn=an.mask,On=an.maskClosable,Ln=an.maskMotion,Kn=an.maskClassName,tr=an.maskStyle,gr=an.afterOpenChange,Un=an.onClose,Cr=an.onMouseEnter,Rr=an.onMouseOver,$r=an.onMouseLeave,vr=an.onClick,Er=an.onKeyDown,Hr=an.onKeyUp,wn=pe.useRef(),Zn=pe.useRef(),Or=pe.useRef();pe.useImperativeHandle(Ht,function(){return wn.current});var br=function(mn){var ln=mn.keyCode,Nn=mn.shiftKey;switch(ln){case et.Z.TAB:{if(ln===et.Z.TAB){if(!Nn&&document.activeElement===Or.current){var Wn;(Wn=Zn.current)===null||Wn===void 0||Wn.focus({preventScroll:!0})}else if(Nn&&document.activeElement===Zn.current){var Xn;(Xn=Or.current)===null||Xn===void 0||Xn.focus({preventScroll:!0})}}break}case et.Z.ESC:{Un&&bt&&(mn.stopPropagation(),Un(mn));break}}};pe.useEffect(function(){if(se&&St){var An;(An=wn.current)===null||An===void 0||An.focus({preventScroll:!0})}},[se]);var hr=pe.useState(!1),Yr=(0,dt.Z)(hr,2),cr=Yr[0],Ir=Yr[1],or=pe.useContext(Ke),Jn;Ge===!1?Jn={distance:0}:Ge===!0?Jn={}:Jn=Ge||{};var Dr=(ye=(ue=(le=Jn)===null||le===void 0?void 0:le.distance)!==null&&ue!==void 0?ue:or==null?void 0:or.pushDistance)!==null&&ye!==void 0?ye:180,_t=pe.useMemo(function(){return{pushDistance:Dr,push:function(){Ir(!0)},pull:function(){Ir(!1)}}},[Dr]);pe.useEffect(function(){if(se){var An;or==null||(An=or.push)===null||An===void 0||An.call(or)}else{var mn;or==null||(mn=or.pull)===null||mn===void 0||mn.call(or)}},[se]),pe.useEffect(function(){return function(){var An;or==null||(An=or.pull)===null||An===void 0||An.call(or)}},[]);var He=hn&&pe.createElement(Be.default,(0,Pe.Z)({key:"mask"},Ln,{visible:se}),function(An,mn){var ln=An.className,Nn=An.style;return pe.createElement("div",{className:De()("".concat(ge,"-mask"),ln,Kn),style:(0,Te.Z)((0,Te.Z)({},Nn),tr),onClick:On&&se?Un:void 0,ref:mn})}),nt=typeof ct=="function"?ct(Oe):ct,Ye={};if(cr&&Dr)switch(Oe){case"top":Ye.transform="translateY(".concat(Dr,"px)");break;case"bottom":Ye.transform="translateY(".concat(-Dr,"px)");break;case"left":Ye.transform="translateX(".concat(Dr,"px)");break;default:Ye.transform="translateX(".concat(-Dr,"px)");break}Oe==="left"||Oe==="right"?Ye.width=gt(Ae):Ye.height=gt(Ve);var qe={onMouseEnter:Cr,onMouseOver:Rr,onMouseLeave:$r,onClick:vr,onKeyDown:Er,onKeyUp:Hr},Mt=pe.createElement(Be.default,(0,Pe.Z)({key:"panel"},nt,{visible:se,forceRender:_e,onVisibleChanged:function(mn){gr==null||gr(mn)},removeOnLeave:!1,leavedClassName:"".concat(ge,"-content-wrapper-hidden")}),function(An,mn){var ln=An.className,Nn=An.style;return pe.createElement("div",(0,Pe.Z)({className:De()("".concat(ge,"-content-wrapper"),ln),style:(0,Te.Z)((0,Te.Z)((0,Te.Z)({},Ye),Nn),Gt)},(0,Je.Z)(an,{data:!0})),pe.createElement(wt,(0,Pe.Z)({id:Rt,containerRef:mn,prefixCls:ge,className:xt,style:cn},qe),Kt))}),Ut=(0,Te.Z)({},Dt);return xn&&(Ut.zIndex=xn),pe.createElement(Ke.Provider,{value:_t},pe.createElement("div",{className:De()(ge,"".concat(ge,"-").concat(Oe),rt,(de={},(0,vt.Z)(de,"".concat(ge,"-open"),se),(0,vt.Z)(de,"".concat(ge,"-inline"),ut),de)),style:Ut,tabIndex:-1,ref:wn,onKeyDown:br},He,pe.createElement("div",{tabIndex:0,ref:Zn,style:ze,"aria-hidden":"true","data-sentinel":"start"}),Mt,pe.createElement("div",{tabIndex:0,ref:Or,style:ze,"aria-hidden":"true","data-sentinel":"end"})))}var je=pe.forwardRef(he),Xe=je,Qe=function(Ht){var ye=Ht.open,ue=ye===void 0?!1:ye,le=Ht.prefixCls,de=le===void 0?"rc-drawer":le,ge=Ht.placement,se=ge===void 0?"right":ge,Oe=Ht.autoFocus,ut=Oe===void 0?!0:Oe,Ge=Ht.keyboard,_e=Ge===void 0?!0:Ge,St=Ht.width,bt=St===void 0?378:St,rt=Ht.mask,Dt=rt===void 0?!0:rt,xn=Ht.maskClosable,xt=xn===void 0?!0:xn,Rt=Ht.getContainer,cn=Ht.forceRender,ct=Ht.afterOpenChange,Ae=Ht.destroyOnClose,Ve=Ht.onMouseEnter,Kt=Ht.onMouseOver,Gt=Ht.onMouseLeave,hn=Ht.onClick,On=Ht.onKeyDown,Ln=Ht.onKeyUp,Kn=Ht.panelRef,tr=pe.useState(!1),gr=(0,dt.Z)(tr,2),Un=gr[0],Cr=gr[1],Rr=pe.useState(!1),$r=(0,dt.Z)(Rr,2),vr=$r[0],Er=$r[1];(0,ke.Z)(function(){Er(!0)},[]);var Hr=vr?ue:!1,wn=pe.useRef(),Zn=pe.useRef();(0,ke.Z)(function(){Hr&&(Zn.current=document.activeElement)},[Hr]);var Or=function(Ir){var or;if(Cr(Ir),ct==null||ct(Ir),!Ir&&Zn.current&&!((or=wn.current)!==null&&or!==void 0&&or.contains(Zn.current))){var Jn;(Jn=Zn.current)===null||Jn===void 0||Jn.focus({preventScroll:!0})}},br=pe.useMemo(function(){return{panel:Kn}},[Kn]);if(!cn&&!Un&&!Hr&&Ae)return null;var hr={onMouseEnter:Ve,onMouseOver:Kt,onMouseLeave:Gt,onClick:hn,onKeyDown:On,onKeyUp:Ln},Yr=(0,Te.Z)((0,Te.Z)({},Ht),{},{open:Hr,prefixCls:de,placement:se,autoFocus:ut,keyboard:_e,width:bt,mask:Dt,maskClosable:xt,inline:Rt===!1,afterOpenChange:Or,ref:wn},hr);return pe.createElement(Me.Provider,{value:br},pe.createElement(be.Z,{open:Hr||cn||Un,autoDestroy:!1,getContainer:Rt,autoLock:Dt&&(Hr||Un)},pe.createElement(Xe,Yr)))},Ue=Qe,mt=Ue,Le=ae(62892),Bt=ae(36355),at=ae(32441),Wt=ae(47729),Tt=an=>{const{prefixCls:Ht,title:ye,footer:ue,extra:le,closeIcon:de,closable:ge,onClose:se,headerStyle:Oe,drawerStyle:ut,bodyStyle:Ge,footerStyle:_e,children:St}=an,bt=pe.useCallback(Rt=>pe.createElement("button",{type:"button",onClick:se,"aria-label":"Close",className:`${Ht}-close`},Rt),[se]),[rt,Dt]=(0,Wt.Z)(ge,de,bt,void 0,!0),xn=pe.useMemo(()=>!ye&&!rt?null:pe.createElement("div",{style:Oe,className:De()(`${Ht}-header`,{[`${Ht}-header-close-only`]:rt&&!ye&&!le})},pe.createElement("div",{className:`${Ht}-header-title`},Dt,ye&&pe.createElement("div",{className:`${Ht}-title`},ye)),le&&pe.createElement("div",{className:`${Ht}-extra`},le)),[rt,Dt,le,Oe,Ht,ye]),xt=pe.useMemo(()=>{if(!ue)return null;const Rt=`${Ht}-footer`;return pe.createElement("div",{className:Rt,style:_e},ue)},[ue,_e,Ht]);return pe.createElement("div",{className:`${Ht}-wrapper-body`,style:ut},xn,pe.createElement("div",{className:`${Ht}-body`,style:Ge},St),xt)},Xt=ae(33234),jt=ae(83116),it=ae(37613),Et=an=>{const{componentCls:Ht,motionDurationSlow:ye}=an,ue={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ye}`}}};return{[Ht]:{[`${Ht}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ye}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Ht}-panel-motion`]:{"&-left":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const on=an=>{const{componentCls:Ht,zIndexPopup:ye,colorBgMask:ue,colorBgElevated:le,motionDurationSlow:de,motionDurationMid:ge,padding:se,paddingLG:Oe,fontSizeLG:ut,lineHeightLG:Ge,lineWidth:_e,lineType:St,colorSplit:bt,marginSM:rt,colorIcon:Dt,colorIconHover:xn,colorText:xt,fontWeightStrong:Rt,footerPaddingBlock:cn,footerPaddingInline:ct}=an,Ae=`${Ht}-content-wrapper`;return{[Ht]:{position:"fixed",inset:0,zIndex:ye,pointerEvents:"none","&-pure":{position:"relative",background:le,[`&${Ht}-left`]:{boxShadow:an.boxShadowDrawerLeft},[`&${Ht}-right`]:{boxShadow:an.boxShadowDrawerRight},[`&${Ht}-top`]:{boxShadow:an.boxShadowDrawerUp},[`&${Ht}-bottom`]:{boxShadow:an.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Ht}-mask`]:{position:"absolute",inset:0,zIndex:ye,background:ue,pointerEvents:"auto"},[Ae]:{position:"absolute",zIndex:ye,maxWidth:"100vw",transition:`all ${de}`,"&-hidden":{display:"none"}},[`&-left > ${Ae}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:an.boxShadowDrawerLeft},[`&-right > ${Ae}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:an.boxShadowDrawerRight},[`&-top > ${Ae}`]:{top:0,insetInline:0,boxShadow:an.boxShadowDrawerUp},[`&-bottom > ${Ae}`]:{bottom:0,insetInline:0,boxShadow:an.boxShadowDrawerDown},[`${Ht}-content`]:{width:"100%",height:"100%",overflow:"auto",background:le,pointerEvents:"auto"},[`${Ht}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Ht}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${se}px ${Oe}px`,fontSize:ut,lineHeight:Ge,borderBottom:`${_e}px ${St} ${bt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Ht}-extra`]:{flex:"none"},[`${Ht}-close`]:{display:"inline-block",marginInlineEnd:rt,color:Dt,fontWeight:Rt,fontSize:ut,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${ge}`,textRendering:"auto","&:focus, &:hover":{color:xn,textDecoration:"none"}},[`${Ht}-title`]:{flex:1,margin:0,color:xt,fontWeight:an.fontWeightStrong,fontSize:ut,lineHeight:Ge},[`${Ht}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Oe,overflow:"auto"},[`${Ht}-footer`]:{flexShrink:0,padding:`${cn}px ${ct}px`,borderTop:`${_e}px ${St} ${bt}`},"&-rtl":{direction:"rtl"}}}};var Yt=(0,jt.Z)("Drawer",an=>{const Ht=(0,it.TS)(an,{});return[on(Ht),Et(Ht)]},an=>({zIndexPopup:an.zIndexPopupBase,footerPaddingBlock:an.paddingXS,footerPaddingInline:an.padding})),lt=ae(11575),pt=function(an,Ht){var ye={};for(var ue in an)Object.prototype.hasOwnProperty.call(an,ue)&&Ht.indexOf(ue)<0&&(ye[ue]=an[ue]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ue=Object.getOwnPropertySymbols(an);le<ue.length;le++)Ht.indexOf(ue[le])<0&&Object.prototype.propertyIsEnumerable.call(an,ue[le])&&(ye[ue[le]]=an[ue[le]]);return ye};const Ft=null,Sn={distance:180},$t=an=>{var Ht;const{rootClassName:ye,width:ue,height:le,size:de="default",mask:ge=!0,push:se=Sn,open:Oe,afterOpenChange:ut,onClose:Ge,prefixCls:_e,getContainer:St,style:bt,className:rt,visible:Dt,afterVisibleChange:xn}=an,xt=pt(an,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Rt,getPrefixCls:cn,direction:ct,drawer:Ae}=pe.useContext(Bt.E_),Ve=cn("drawer",_e),[Kt,Gt]=Yt(Ve),hn=St===void 0&&Rt?()=>Rt(document.body):St,On=De()({"no-mask":!ge,[`${Ve}-rtl`]:ct==="rtl"},ye,Gt),Ln=pe.useMemo(()=>ue!=null?ue:de==="large"?736:378,[ue,de]),Kn=pe.useMemo(()=>le!=null?le:de==="large"?736:378,[le,de]),tr={motionName:(0,Le.m)(Ve,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},gr=Cr=>({motionName:(0,Le.m)(Ve,`panel-motion-${Cr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Un=(0,lt.H)();return Kt(pe.createElement(Xt.BR,null,pe.createElement(at.Ux,{status:!0,override:!0},pe.createElement(mt,Object.assign({prefixCls:Ve,onClose:Ge,maskMotion:tr,motion:gr},xt,{open:Oe!=null?Oe:Dt,mask:ge,push:se,width:Ln,height:Kn,style:Object.assign(Object.assign({},Ae==null?void 0:Ae.style),bt),className:De()(Ae==null?void 0:Ae.className,rt),rootClassName:On,getContainer:hn,afterOpenChange:ut!=null?ut:xn,panelRef:Un}),pe.createElement(Tt,Object.assign({prefixCls:Ve},xt,{onClose:Ge}))))))},Pn=an=>{const{prefixCls:Ht,style:ye,className:ue,placement:le="right"}=an,de=pt(an,["prefixCls","style","className","placement"]),{getPrefixCls:ge}=pe.useContext(Bt.E_),se=ge("drawer",Ht),[Oe,ut]=Yt(se),Ge=De()(se,`${se}-pure`,`${se}-${le}`,ut,ue);return Oe(pe.createElement("div",{className:Ge,style:ye},pe.createElement(Tt,Object.assign({prefixCls:se},de))))};$t._InternalPanelDoNotUseOrYouWillBeFired=Pn;var Zt=$t},91857:function(zn,en,ae){"use strict";var ce=ae(59301),De=ae(38819),Te=ae(92310),dt=ae.n(Te),be=ae(31561),ke=ae(70425),pe=ae(18929),xe=ae(2738),Me=ae(79676),Ke=ae(53487),vt=ae(92343),Pe=ae(36355),Be=ae(20834),et=ae(40875),Je=ae(88088),tt=ae(47211);const yt=null,wt=ze=>{const{menu:he,arrow:je,prefixCls:Xe,children:Qe,trigger:Ue,disabled:mt,dropdownRender:Le,getPopupContainer:Bt,overlayClassName:at,rootClassName:Wt,open:Lt,onOpenChange:Tt,visible:Xt,onVisibleChange:jt,mouseEnterDelay:it=.15,mouseLeaveDelay:Ce=.1,autoAdjustOverflow:Et=!0,placement:on="",overlay:Yt,transitionName:lt}=ze,{getPopupContainer:pt,getPrefixCls:Ft,direction:Sn}=ce.useContext(Pe.E_),$t=ce.useMemo(()=>{const rt=Ft();return lt!==void 0?lt:on.includes("top")?`${rt}-slide-down`:`${rt}-slide-up`},[Ft,on,lt]),Pn=ce.useMemo(()=>on?on.includes("Center")?on.slice(0,on.indexOf("Center")):on:Sn==="rtl"?"bottomRight":"bottomLeft",[on,Sn]),Zt=Ft("dropdown",Xe),[an,Ht]=(0,tt.Z)(Zt),[,ye]=(0,Je.Z)(),ue=ce.Children.only(Qe),le=(0,vt.Tm)(ue,{className:dt()(`${Zt}-trigger`,{[`${Zt}-rtl`]:Sn==="rtl"},ue.props.className),disabled:mt}),de=mt?[]:Ue;let ge;de&&de.includes("contextMenu")&&(ge=!0);const[se,Oe]=(0,pe.Z)(!1,{value:Lt!=null?Lt:Xt}),ut=(0,ke.useEvent)(rt=>{Tt==null||Tt(rt),jt==null||jt(rt),Oe(rt)}),Ge=dt()(at,Wt,Ht,{[`${Zt}-rtl`]:Sn==="rtl"}),_e=(0,Me.Z)({arrowPointAtCenter:typeof je=="object"&&je.pointAtCenter,autoAdjustOverflow:Et,offset:ye.marginXXS,arrowWidth:je?ye.sizePopupArrow:0,borderRadius:ye.borderRadius}),St=ce.useCallback(()=>{Oe(!1)},[]),bt=()=>{let rt;return he!=null&&he.items?rt=ce.createElement(Be.default,Object.assign({},he)):typeof Yt=="function"?rt=Yt():rt=Yt,Le&&(rt=Le(rt)),rt=ce.Children.only(typeof rt=="string"?ce.createElement("span",null,rt):rt),ce.createElement(et.J,{prefixCls:`${Zt}-menu`,expandIcon:ce.createElement("span",{className:`${Zt}-menu-submenu-arrow`},ce.createElement(De.Z,{className:`${Zt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:St,validator:Dt=>{let{mode:xn}=Dt}},rt)};return an(ce.createElement(be.Z,Object.assign({alignPoint:ge},(0,xe.Z)(ze,["rootClassName"]),{mouseEnterDelay:it,mouseLeaveDelay:Ce,visible:se,builtinPlacements:_e,arrow:!!je,overlayClassName:Ge,prefixCls:Zt,getPopupContainer:Bt||pt,transitionName:$t,trigger:de,overlay:bt,placement:Pn,onVisibleChange:ut}),le))};function It(ze){return Object.assign(Object.assign({},ze),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const gt=(0,Ke.Z)(wt,"dropdown",ze=>ze,It),st=ze=>ce.createElement(gt,Object.assign({},ze),ce.createElement("span",null));wt._InternalPanelDoNotUseOrYouWillBeFired=st,en.Z=wt},38854:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Je}});var ce=ae(91857),De=ae(92310),Te=ae.n(De),dt=ae(59301),be=ae(18785),ke=ae(3113),pe=ae(36355),xe=ae(81327),Me=ae(33234),Ke=ae(47211),vt=function(tt,yt){var wt={};for(var It in tt)Object.prototype.hasOwnProperty.call(tt,It)&&yt.indexOf(It)<0&&(wt[It]=tt[It]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,It=Object.getOwnPropertySymbols(tt);gt<It.length;gt++)yt.indexOf(It[gt])<0&&Object.prototype.propertyIsEnumerable.call(tt,It[gt])&&(wt[It[gt]]=tt[It[gt]]);return wt};const Pe=tt=>{const{getPopupContainer:yt,getPrefixCls:wt,direction:It}=dt.useContext(pe.E_),{prefixCls:gt,type:st="default",danger:ze,disabled:he,loading:je,onClick:Xe,htmlType:Qe,children:Ue,className:mt,menu:Le,arrow:Bt,autoFocus:at,overlay:Wt,trigger:Lt,align:Tt,open:Xt,onOpenChange:jt,placement:it,getPopupContainer:Ce,href:Et,icon:on=dt.createElement(be.Z,null),title:Yt,buttonsRender:lt=bt=>bt,mouseEnterDelay:pt,mouseLeaveDelay:Ft,overlayClassName:Sn,overlayStyle:$t,destroyPopupOnHide:Pn,dropdownRender:Zt}=tt,an=vt(tt,["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"]),Ht=wt("dropdown",gt),ye=`${Ht}-button`,[ue,le]=(0,Ke.Z)(Ht),de={menu:Le,arrow:Bt,autoFocus:at,align:Tt,disabled:he,trigger:he?[]:Lt,onOpenChange:jt,getPopupContainer:Ce||yt,mouseEnterDelay:pt,mouseLeaveDelay:Ft,overlayClassName:Sn,overlayStyle:$t,destroyPopupOnHide:Pn,dropdownRender:Zt},{compactSize:ge,compactItemClassnames:se}=(0,Me.ri)(Ht,It),Oe=Te()(ye,se,mt,le);"overlay"in tt&&(de.overlay=Wt),"open"in tt&&(de.open=Xt),"placement"in tt?de.placement=it:de.placement=It==="rtl"?"bottomLeft":"bottomRight";const ut=dt.createElement(ke.ZP,{type:st,danger:ze,disabled:he,loading:je,onClick:Xe,htmlType:Qe,href:Et,title:Yt},Ue),Ge=dt.createElement(ke.ZP,{type:st,danger:ze,icon:on}),[_e,St]=lt([ut,Ge]);return ue(dt.createElement(xe.Z.Compact,Object.assign({className:Oe,size:ge,block:!0},an),_e,dt.createElement(ce.Z,Object.assign({},de),St)))};Pe.__ANT_BUTTON=!0;var Be=Pe;const et=ce.Z;et.Button=Be;var Je=et},47211:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return vt}});var ce=ae(17313),De=ae(13826),Te=ae(92899),dt=ae(29878),be=ae(19447),ke=ae(83116),pe=ae(37613),Me=Pe=>{const{componentCls:Be,menuCls:et,colorError:Je,colorTextLightSolid:tt}=Pe,yt=`${et}-item`;return{[`${Be}, ${Be}-menu-submenu`]:{[`${et} ${yt}`]:{[`&${yt}-danger:not(${yt}-disabled)`]:{color:Je,"&:hover":{color:tt,backgroundColor:Je}}}}}};const Ke=Pe=>{const{componentCls:Be,menuCls:et,zIndexPopup:Je,dropdownArrowDistance:tt,sizePopupArrow:yt,antCls:wt,iconCls:It,motionDurationMid:gt,dropdownPaddingVertical:st,fontSize:ze,dropdownEdgeChildPadding:he,colorTextDisabled:je,fontSizeIcon:Xe,controlPaddingHorizontal:Qe,colorBgElevated:Ue}=Pe;return[{[Be]:Object.assign(Object.assign({},(0,ce.Wf)(Pe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Je,display:"block","&::before":{position:"absolute",insetBlock:-tt+yt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${wt}-btn`]:{[`& > ${It}-down, & > ${wt}-btn-icon > ${It}-down`]:{fontSize:Xe}},[`${Be}-wrap`]:{position:"relative",[`${wt}-btn > ${It}-down`]:{fontSize:Xe},[`${It}-down::before`]:{transition:`transform ${gt}`}},[`${Be}-wrap-open`]:{[`${It}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${wt}-slide-down-enter${wt}-slide-down-enter-active${Be}-placement-bottomLeft,
|
|
|
&${wt}-slide-down-appear${wt}-slide-down-appear-active${Be}-placement-bottomLeft,
|
|
|
&${wt}-slide-down-enter${wt}-slide-down-enter-active${Be}-placement-bottom,
|
|
|
&${wt}-slide-down-appear${wt}-slide-down-appear-active${Be}-placement-bottom,
|
|
|
&${wt}-slide-down-enter${wt}-slide-down-enter-active${Be}-placement-bottomRight,
|
|
|
&${wt}-slide-down-appear${wt}-slide-down-appear-active${Be}-placement-bottomRight`]:{animationName:De.fJ},[`&${wt}-slide-up-enter${wt}-slide-up-enter-active${Be}-placement-topLeft,
|
|
|
&${wt}-slide-up-appear${wt}-slide-up-appear-active${Be}-placement-topLeft,
|
|
|
&${wt}-slide-up-enter${wt}-slide-up-enter-active${Be}-placement-top,
|
|
|
&${wt}-slide-up-appear${wt}-slide-up-appear-active${Be}-placement-top,
|
|
|
&${wt}-slide-up-enter${wt}-slide-up-enter-active${Be}-placement-topRight,
|
|
|
&${wt}-slide-up-appear${wt}-slide-up-appear-active${Be}-placement-topRight`]:{animationName:De.Qt},[`&${wt}-slide-down-leave${wt}-slide-down-leave-active${Be}-placement-bottomLeft,
|
|
|
&${wt}-slide-down-leave${wt}-slide-down-leave-active${Be}-placement-bottom,
|
|
|
&${wt}-slide-down-leave${wt}-slide-down-leave-active${Be}-placement-bottomRight`]:{animationName:De.Uw},[`&${wt}-slide-up-leave${wt}-slide-up-leave-active${Be}-placement-topLeft,
|
|
|
&${wt}-slide-up-leave${wt}-slide-up-leave-active${Be}-placement-top,
|
|
|
&${wt}-slide-up-leave${wt}-slide-up-leave-active${Be}-placement-topRight`]:{animationName:De.ly}})},(0,be.ZP)(Pe,{colorBg:Ue,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Be} ${et}`]:{position:"relative",margin:0},[`${et}-submenu-popup`]:{position:"absolute",zIndex:Je,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Be}, ${Be}-menu-submenu`]:{[et]:Object.assign(Object.assign({padding:he,listStyleType:"none",backgroundColor:Ue,backgroundClip:"padding-box",borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary},(0,ce.Qy)(Pe)),{[`${et}-item-group-title`]:{padding:`${st}px ${Qe}px`,color:Pe.colorTextDescription,transition:`all ${gt}`},[`${et}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${et}-item-icon`]:{minWidth:ze,marginInlineEnd:Pe.marginXS,fontSize:Pe.fontSizeSM},[`${et}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${gt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${et}-item, ${et}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${st}px ${Qe}px`,color:Pe.colorText,fontWeight:"normal",fontSize:ze,lineHeight:Pe.lineHeight,cursor:"pointer",transition:`all ${gt}`,borderRadius:Pe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Pe.controlItemBgHover}},(0,ce.Qy)(Pe)),{"&-selected":{color:Pe.colorPrimary,backgroundColor:Pe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Pe.controlItemBgActiveHover}},"&-disabled":{color:je,cursor:"not-allowed","&:hover":{color:je,backgroundColor:Ue,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Pe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Pe.colorSplit},[`${Be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Pe.paddingXS,[`${Be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Pe.colorTextDescription,fontSize:Xe,fontStyle:"normal"}}}),[`${et}-item-group-list`]:{margin:`0 ${Pe.marginXS}px`,padding:0,listStyle:"none"},[`${et}-submenu-title`]:{paddingInlineEnd:Qe+Pe.fontSizeSM},[`${et}-submenu-vertical`]:{position:"relative"},[`${et}-submenu${et}-submenu-disabled ${Be}-menu-submenu-title`]:{[`&, ${Be}-menu-submenu-arrow-icon`]:{color:je,backgroundColor:Ue,cursor:"not-allowed"}},[`${et}-submenu-selected ${Be}-menu-submenu-title`]:{color:Pe.colorPrimary}})}},[(0,De.oN)(Pe,"slide-up"),(0,De.oN)(Pe,"slide-down"),(0,Te.Fm)(Pe,"move-up"),(0,Te.Fm)(Pe,"move-down"),(0,dt._y)(Pe,"zoom-big")]]};var vt=(0,ke.Z)("Dropdown",(Pe,Be)=>{let{rootPrefixCls:et}=Be;const{marginXXS:Je,sizePopupArrow:tt,controlHeight:yt,fontSize:wt,lineHeight:It,paddingXXS:gt,componentCls:st,borderRadiusLG:ze}=Pe,he=(yt-wt*It)/2,{dropdownArrowOffset:je}=(0,be.fS)({contentRadius:ze}),Xe=(0,pe.TS)(Pe,{menuCls:`${st}-menu`,rootPrefixCls:et,dropdownArrowDistance:tt/2+Je,dropdownArrowOffset:je,dropdownPaddingVertical:he,dropdownEdgeChildPadding:gt});return[Ke(Xe),Me(Xe)]},Pe=>({zIndexPopup:Pe.zIndexPopupBase+50}))},64165:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return gt}});var ce=ae(92310),De=ae.n(ce),Te=ae(59301),dt=ae(36355),be=ae(9763),ke=ae(64993),pe=ae(88088),Me=()=>{const[,st]=(0,pe.Z)(),he=new ke.C(st.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Te.createElement("svg",{style:he,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("g",{fill:"none",fillRule:"evenodd"},Te.createElement("g",{transform:"translate(24 31.67)"},Te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Te.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),Te.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),Te.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),Te.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),Te.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),Te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},vt=()=>{const[,st]=(0,pe.Z)(),{colorFill:ze,colorFillTertiary:he,colorFillQuaternary:je,colorBgContainer:Xe}=st,{borderColor:Qe,shadowColor:Ue,contentColor:mt}=(0,Te.useMemo)(()=>({borderColor:new ke.C(ze).onBackground(Xe).toHexShortString(),shadowColor:new ke.C(he).onBackground(Xe).toHexShortString(),contentColor:new ke.C(je).onBackground(Xe).toHexShortString()}),[ze,he,je,Xe]);return Te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Te.createElement("ellipse",{fill:Ue,cx:"32",cy:"33",rx:"32",ry:"7"}),Te.createElement("g",{fillRule:"nonzero",stroke:Qe},Te.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),Te.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:mt}))))},Pe=ae(83116),Be=ae(37613);const et=st=>{const{componentCls:ze,margin:he,marginXS:je,marginXL:Xe,fontSize:Qe,lineHeight:Ue}=st;return{[ze]:{marginInline:je,fontSize:Qe,lineHeight:Ue,textAlign:"center",[`${ze}-image`]:{height:st.emptyImgHeight,marginBottom:je,opacity:st.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ze}-description`]:{color:st.colorText},[`${ze}-footer`]:{marginTop:he},"&-normal":{marginBlock:Xe,color:st.colorTextDisabled,[`${ze}-description`]:{color:st.colorTextDisabled},[`${ze}-image`]:{height:st.emptyImgHeightMD}},"&-small":{marginBlock:je,color:st.colorTextDisabled,[`${ze}-image`]:{height:st.emptyImgHeightSM}}}}};var Je=(0,Pe.Z)("Empty",st=>{const{componentCls:ze,controlHeightLG:he}=st,je=(0,Be.TS)(st,{emptyImgCls:`${ze}-img`,emptyImgHeight:he*2.5,emptyImgHeightMD:he,emptyImgHeightSM:he*.875});return[et(je)]}),tt=function(st,ze){var he={};for(var je in st)Object.prototype.hasOwnProperty.call(st,je)&&ze.indexOf(je)<0&&(he[je]=st[je]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,je=Object.getOwnPropertySymbols(st);Xe<je.length;Xe++)ze.indexOf(je[Xe])<0&&Object.prototype.propertyIsEnumerable.call(st,je[Xe])&&(he[je[Xe]]=st[je[Xe]]);return he};const yt=Te.createElement(Me,null),wt=Te.createElement(vt,null),It=st=>{var{className:ze,rootClassName:he,prefixCls:je,image:Xe=yt,description:Qe,children:Ue,imageStyle:mt,style:Le}=st,Bt=tt(st,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:at,direction:Wt,empty:Lt}=Te.useContext(dt.E_),Tt=at("empty",je),[Xt,jt]=Je(Tt),[it]=(0,be.Z)("Empty"),Ce=typeof Qe!="undefined"?Qe:it==null?void 0:it.description,Et=typeof Ce=="string"?Ce:"empty";let on=null;return typeof Xe=="string"?on=Te.createElement("img",{alt:Et,src:Xe}):on=Xe,Xt(Te.createElement("div",Object.assign({className:De()(jt,Tt,Lt==null?void 0:Lt.className,{[`${Tt}-normal`]:Xe===wt,[`${Tt}-rtl`]:Wt==="rtl"},ze,he),style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),Le)},Bt),Te.createElement("div",{className:`${Tt}-image`,style:mt},on),Ce&&Te.createElement("div",{className:`${Tt}-description`},Ce),Ue&&Te.createElement("div",{className:`${Tt}-footer`},Ue)))};It.PRESENTED_IMAGE_DEFAULT=yt,It.PRESENTED_IMAGE_SIMPLE=wt;var gt=It},78241:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return Dr}});var ce=ae(77654),De=ae(92310),Te=ae.n(De),dt=ae(77900),be=ae(59301),ke=ae(62892),pe=ae(32441);function xe(_t){const[He,nt]=be.useState(_t);return be.useEffect(()=>{const Ye=setTimeout(()=>{nt(_t)},_t.length?0:10);return()=>{clearTimeout(Ye)}},[_t]),He}var Me=ae(17313),Ke=ae(29878),vt=ae(8378),Pe=ae(37613),Be=ae(83116),Je=_t=>{const{componentCls:He}=_t,nt=`${He}-show-help`,Ye=`${He}-show-help-item`;return{[nt]:{transition:`opacity ${_t.motionDurationSlow} ${_t.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ye]:{overflow:"hidden",transition:`height ${_t.motionDurationSlow} ${_t.motionEaseInOut},
|
|
|
opacity ${_t.motionDurationSlow} ${_t.motionEaseInOut},
|
|
|
transform ${_t.motionDurationSlow} ${_t.motionEaseInOut} !important`,[`&${Ye}-appear, &${Ye}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ye}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=_t=>({legend:{display:"block",width:"100%",marginBottom:_t.marginLG,padding:0,color:_t.colorTextDescription,fontSize:_t.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_t.lineWidth}px ${_t.lineType} ${_t.colorBorder}`},label:{fontSize:_t.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 ${_t.controlOutlineWidth}px ${_t.controlOutline}`},output:{display:"block",paddingTop:15,color:_t.colorText,fontSize:_t.fontSize,lineHeight:_t.lineHeight}}),yt=(_t,He)=>{const{formItemCls:nt}=_t;return{[nt]:{[`${nt}-label > label`]:{height:He},[`${nt}-control-input`]:{minHeight:He}}}},wt=_t=>{const{componentCls:He}=_t;return{[_t.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Me.Wf)(_t)),tt(_t)),{[`${He}-text`]:{display:"inline-block",paddingInlineEnd:_t.paddingSM},"&-small":Object.assign({},yt(_t,_t.controlHeightSM)),"&-large":Object.assign({},yt(_t,_t.controlHeightLG))})}},It=_t=>{const{formItemCls:He,iconCls:nt,componentCls:Ye,rootPrefixCls:qe,labelRequiredMarkColor:Mt,labelColor:Ut,labelFontSize:An,labelHeight:mn,labelColonMarginInlineStart:ln,labelColonMarginInlineEnd:Nn,itemMarginBottom:Wn}=_t;return{[He]:Object.assign(Object.assign({},(0,Me.Wf)(_t)),{marginBottom:Wn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${qe}-row`]:{display:"none"},"&-has-warning":{[`${He}-split`]:{color:_t.colorError}},"&-has-error":{[`${He}-split`]:{color:_t.colorWarning}},[`${He}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${_t.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:mn,color:Ut,fontSize:An,[`> ${nt}`]:{fontSize:_t.fontSize,verticalAlign:"top"},[`&${He}-required:not(${He}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:_t.marginXXS,color:Mt,fontSize:_t.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ye}-hide-required-mark &`]:{display:"none"}},[`${He}-optional`]:{display:"inline-block",marginInlineStart:_t.marginXXS,color:_t.colorTextDescription,[`${Ye}-hide-required-mark &`]:{display:"none"}},[`${He}-tooltip`]:{color:_t.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:_t.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ln,marginInlineEnd:Nn},[`&${He}-no-colon::after`]:{content:'"\\a0"'}}},[`${He}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${qe}-col-'"]):not([class*="' ${qe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:_t.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[He]:{"&-explain, &-extra":{clear:"both",color:_t.colorTextDescription,fontSize:_t.fontSize,lineHeight:_t.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:_t.controlHeightSM,transition:`color ${_t.motionDurationMid} ${_t.motionEaseOut}`},"&-explain":{"&-error":{color:_t.colorError},"&-warning":{color:_t.colorWarning}}},[`&-with-help ${He}-explain`]:{height:"auto",opacity:1},[`${He}-feedback-icon`]:{fontSize:_t.fontSize,textAlign:"center",visibility:"visible",animationName:Ke.kr,animationDuration:_t.motionDurationMid,animationTimingFunction:_t.motionEaseOutBack,pointerEvents:"none","&-success":{color:_t.colorSuccess},"&-error":{color:_t.colorError},"&-warning":{color:_t.colorWarning},"&-validating":{color:_t.colorPrimary}}})}},gt=_t=>{const{componentCls:He,formItemCls:nt}=_t;return{[`${He}-horizontal`]:{[`${nt}-label`]:{flexGrow:0},[`${nt}-control`]:{flex:"1 1 0",minWidth:0},[`${nt}-label[class$='-24'], ${nt}-label[class*='-24 ']`]:{[`& + ${nt}-control`]:{minWidth:"unset"}}}}},st=_t=>{const{componentCls:He,formItemCls:nt}=_t;return{[`${He}-inline`]:{display:"flex",flexWrap:"wrap",[nt]:{flex:"none",marginInlineEnd:_t.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${nt}-label,
|
|
|
> ${nt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${nt}-label`]:{flex:"none"},[`${He}-text`]:{display:"inline-block"},[`${nt}-has-feedback`]:{display:"inline-block"}}}}},ze=_t=>({padding:_t.verticalLabelPadding,margin:_t.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),he=_t=>{const{componentCls:He,formItemCls:nt,rootPrefixCls:Ye}=_t;return{[`${nt} ${nt}-label`]:ze(_t),[He]:{[nt]:{flexWrap:"wrap",[`${nt}-label, ${nt}-control`]:{[`&:not([class*=" ${Ye}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},je=_t=>{const{componentCls:He,formItemCls:nt,rootPrefixCls:Ye}=_t;return{[`${He}-vertical`]:{[nt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${He}-item-control`]:{width:"100%"}}},[`${He}-vertical ${nt}-label,
|
|
|
.${Ye}-col-24${nt}-label,
|
|
|
.${Ye}-col-xl-24${nt}-label`]:ze(_t),[`@media (max-width: ${_t.screenXSMax}px)`]:[he(_t),{[He]:{[`.${Ye}-col-xs-24${nt}-label`]:ze(_t)}}],[`@media (max-width: ${_t.screenSMMax}px)`]:{[He]:{[`.${Ye}-col-sm-24${nt}-label`]:ze(_t)}},[`@media (max-width: ${_t.screenMDMax}px)`]:{[He]:{[`.${Ye}-col-md-24${nt}-label`]:ze(_t)}},[`@media (max-width: ${_t.screenLGMax}px)`]:{[He]:{[`.${Ye}-col-lg-24${nt}-label`]:ze(_t)}}}},Xe=(_t,He)=>(0,Pe.TS)(_t,{formItemCls:`${_t.componentCls}-item`,rootPrefixCls:He});var Qe=(0,Be.Z)("Form",(_t,He)=>{let{rootPrefixCls:nt}=He;const Ye=Xe(_t,nt);return[wt(Ye),It(Ye),Je(Ye),gt(Ye),st(Ye),je(Ye),(0,vt.Z)(Ye),Ke.kr]},_t=>({labelRequiredMarkColor:_t.colorError,labelColor:_t.colorTextHeading,labelFontSize:_t.fontSize,labelHeight:_t.controlHeight,labelColonMarginInlineStart:_t.marginXXS/2,labelColonMarginInlineEnd:_t.marginXS,itemMarginBottom:_t.marginLG,verticalLabelPadding:`0 0 ${_t.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ue=[];function mt(_t,He,nt){let Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof _t=="string"?_t:`${He}-${Ye}`,error:_t,errorStatus:nt}}var Bt=_t=>{let{help:He,helpStatus:nt,errors:Ye=Ue,warnings:qe=Ue,className:Mt,fieldId:Ut,onVisibleChanged:An}=_t;const{prefixCls:mn}=be.useContext(pe.Rk),ln=`${mn}-item-explain`,[,Nn]=Qe(mn),Wn=(0,be.useMemo)(()=>(0,ke.Z)(mn),[mn]),Xn=xe(Ye),rn=xe(qe),Tn=be.useMemo(()=>He!=null?[mt(He,"help",nt)]:[].concat((0,ce.Z)(Xn.map((Jt,sn)=>mt(Jt,"error","error",sn))),(0,ce.Z)(rn.map((Jt,sn)=>mt(Jt,"warning","warning",sn)))),[He,nt,Xn,rn]),Nt={};return Ut&&(Nt.id=`${Ut}_help`),be.createElement(dt.default,{motionDeadline:Wn.motionDeadline,motionName:`${mn}-show-help`,visible:!!Tn.length,onVisibleChanged:An},Jt=>{const{className:sn,style:fn}=Jt;return be.createElement("div",Object.assign({},Nt,{className:Te()(ln,sn,Mt,Nn),style:fn,role:"alert"}),be.createElement(dt.CSSMotionList,Object.assign({keys:Tn},(0,ke.Z)(mn),{motionName:`${mn}-show-help-item`,component:!1}),In=>{const{key:un,error:Bn,errorStatus:ot,className:tn,style:nn}=In;return be.createElement("div",{key:un,className:Te()(tn,{[`${ln}-${ot}`]:ot}),style:nn},Bn)}))})},at=ae(95013),Wt=ae(36355),Lt=ae(1684),Tt=ae(52946),Xt=ae(19716),jt=ae(16722);const it=["parentNode"],Ce="form_item";function Et(_t){return _t===void 0||_t===!1?[]:Array.isArray(_t)?_t:[_t]}function on(_t,He){if(!_t.length)return;const nt=_t.join("_");return He?`${He}_${nt}`:it.includes(nt)?`${Ce}_${nt}`:nt}function Yt(_t,He,nt,Ye,qe,Mt){let Ut=Ye;return Mt!==void 0?Ut=Mt:nt.validating?Ut="validating":_t.length?Ut="error":He.length?Ut="warning":(nt.touched||qe&&nt.validated)&&(Ut="success"),Ut}function lt(_t){return Et(_t).join("_")}function pt(_t){const[He]=(0,at.useForm)(),nt=be.useRef({}),Ye=be.useMemo(()=>_t!=null?_t:Object.assign(Object.assign({},He),{__INTERNAL__:{itemRef:qe=>Mt=>{const Ut=lt(qe);Mt?nt.current[Ut]=Mt:delete nt.current[Ut]}},scrollToField:function(qe){let Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Ut=Et(qe),An=on(Ut,Ye.__INTERNAL__.name),mn=An?document.getElementById(An):null;mn&&(0,jt.Z)(mn,Object.assign({scrollMode:"if-needed",block:"nearest"},Mt))},getFieldInstance:qe=>{const Mt=lt(qe);return nt.current[Mt]}}),[_t,He]);return[Ye]}var Ft=ae(28726),Sn=function(_t,He){var nt={};for(var Ye in _t)Object.prototype.hasOwnProperty.call(_t,Ye)&&He.indexOf(Ye)<0&&(nt[Ye]=_t[Ye]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ye=Object.getOwnPropertySymbols(_t);qe<Ye.length;qe++)He.indexOf(Ye[qe])<0&&Object.prototype.propertyIsEnumerable.call(_t,Ye[qe])&&(nt[Ye[qe]]=_t[Ye[qe]]);return nt};const $t=(_t,He)=>{const nt=be.useContext(Lt.Z),{getPrefixCls:Ye,direction:qe,form:Mt}=be.useContext(Wt.E_),{prefixCls:Ut,className:An,rootClassName:mn,size:ln,disabled:Nn=nt,form:Wn,colon:Xn,labelAlign:rn,labelWrap:Tn,labelCol:Nt,wrapperCol:Jt,hideRequiredMark:sn,layout:fn="horizontal",scrollToFirstError:In,requiredMark:un,onFinishFailed:Bn,name:ot,style:tn,feedbackIcons:nn}=_t,En=Sn(_t,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),gn=(0,Xt.Z)(ln),Mn=be.useContext(Ft.Z),kn=(0,be.useMemo)(()=>un!==void 0?un:Mt&&Mt.requiredMark!==void 0?Mt.requiredMark:!sn,[sn,un,Mt]),Vn=Xn!=null?Xn:Mt==null?void 0:Mt.colon,qn=Ye("form",Ut),[pr,Tr]=Qe(qn),Jr=Te()(qn,`${qn}-${fn}`,{[`${qn}-hide-required-mark`]:kn===!1,[`${qn}-rtl`]:qe==="rtl",[`${qn}-${gn}`]:gn},Tr,Mt==null?void 0:Mt.className,An,mn),[ai]=pt(Wn),{__INTERNAL__:Nr}=ai;Nr.name=ot;const yr=(0,be.useMemo)(()=>({name:ot,labelAlign:rn,labelCol:Nt,labelWrap:Tn,wrapperCol:Jt,vertical:fn==="vertical",colon:Vn,requiredMark:kn,itemRef:Nr.itemRef,form:ai,feedbackIcons:nn}),[ot,rn,Nt,Jt,fn,Vn,kn,ai,nn]);be.useImperativeHandle(He,()=>ai);const di=(vi,Wr)=>{if(vi){let jr={block:"nearest"};typeof vi=="object"&&(jr=vi),ai.scrollToField(Wr,jr)}},ti=vi=>{if(Bn==null||Bn(vi),vi.errorFields.length){const Wr=vi.errorFields[0].name;if(In!==void 0){di(In,Wr);return}Mt&&Mt.scrollToFirstError!==void 0&&di(Mt.scrollToFirstError,Wr)}};return pr(be.createElement(Lt.n,{disabled:Nn},be.createElement(Tt.q,{size:gn},be.createElement(pe.RV,Object.assign({},{validateMessages:Mn}),be.createElement(pe.q3.Provider,{value:yr},be.createElement(at.default,Object.assign({id:ot},En,{name:ot,onFinishFailed:ti,form:ai,style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),tn),className:Jr})))))))};var Zt=be.forwardRef($t),an=ae(41799),Ht=ae(8654),ye=ae(92343),ue=ae(11592);function le(_t){if(typeof _t=="function")return _t;const He=(0,ue.Z)(_t);return He.length<=1?He[0]:He}const de=()=>{const{status:_t,errors:He=[],warnings:nt=[]}=(0,be.useContext)(pe.aM);return{status:_t,errors:He,warnings:nt}};de.Context=pe.aM;var ge=de,se=ae(16089);function Oe(_t){const[He,nt]=be.useState(_t),Ye=(0,be.useRef)(null),qe=(0,be.useRef)([]),Mt=(0,be.useRef)(!1);be.useEffect(()=>(Mt.current=!1,()=>{Mt.current=!0,se.Z.cancel(Ye.current),Ye.current=null}),[]);function Ut(An){Mt.current||(Ye.current===null&&(qe.current=[],Ye.current=(0,se.Z)(()=>{Ye.current=null,nt(mn=>{let ln=mn;return qe.current.forEach(Nn=>{ln=Nn(ln)}),ln})})),qe.current.push(An))}return[He,Ut]}function ut(){const{itemRef:_t}=be.useContext(pe.q3),He=be.useRef({});function nt(Ye,qe){const Mt=qe&&typeof qe=="object"&&qe.ref,Ut=Ye.join("_");return(He.current.name!==Ut||He.current.originRef!==Mt)&&(He.current.name=Ut,He.current.originRef=Mt,He.current.ref=(0,Ht.sQ)(_t(Ye),Mt)),He.current.ref}return nt}var Ge=ae(29194),_e=ae(34280),St=ae(2738),bt=ae(27382),rt=ae(37028);const Dt=_t=>{const{formItemCls:He}=_t;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${He}-control`]:{display:"flex"}}}};var xn=(0,Be.b)(["Form","item-item"],(_t,He)=>{let{rootPrefixCls:nt}=He;const Ye=Xe(_t,nt);return[Dt(Ye)]}),Rt=_t=>{const{prefixCls:He,status:nt,wrapperCol:Ye,children:qe,errors:Mt,warnings:Ut,_internalItemRender:An,extra:mn,help:ln,fieldId:Nn,marginBottom:Wn,onErrorVisibleChanged:Xn}=_t,rn=`${He}-item`,Tn=be.useContext(pe.q3),Nt=Ye||Tn.wrapperCol||{},Jt=Te()(`${rn}-control`,Nt.className),sn=be.useMemo(()=>Object.assign({},Tn),[Tn]);delete sn.labelCol,delete sn.wrapperCol;const fn=be.createElement("div",{className:`${rn}-control-input`},be.createElement("div",{className:`${rn}-control-input-content`},qe)),In=be.useMemo(()=>({prefixCls:He,status:nt}),[He,nt]),un=Wn!==null||Mt.length||Ut.length?be.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},be.createElement(pe.Rk.Provider,{value:In},be.createElement(Bt,{fieldId:Nn,errors:Mt,warnings:Ut,help:ln,helpStatus:nt,className:`${rn}-explain-connected`,onVisibleChanged:Xn})),!!Wn&&be.createElement("div",{style:{width:0,height:Wn}})):null,Bn={};Nn&&(Bn.id=`${Nn}_extra`);const ot=mn?be.createElement("div",Object.assign({},Bn,{className:`${rn}-extra`}),mn):null,tn=An&&An.mark==="pro_table_render"&&An.render?An.render(_t,{input:fn,errorList:un,extra:ot}):be.createElement(be.Fragment,null,fn,un,ot);return be.createElement(pe.q3.Provider,{value:sn},be.createElement(rt.Z,Object.assign({},Nt,{className:Jt}),tn),be.createElement(xn,{prefixCls:He}))},cn=ae(61485),ct=ae(31724),Ae=ae(9763),Ve=ae(6848),Kt=function(_t,He){var nt={};for(var Ye in _t)Object.prototype.hasOwnProperty.call(_t,Ye)&&He.indexOf(Ye)<0&&(nt[Ye]=_t[Ye]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ye=Object.getOwnPropertySymbols(_t);qe<Ye.length;qe++)He.indexOf(Ye[qe])<0&&Object.prototype.propertyIsEnumerable.call(_t,Ye[qe])&&(nt[Ye[qe]]=_t[Ye[qe]]);return nt};function Gt(_t){return _t?typeof _t=="object"&&!be.isValidElement(_t)?_t:{title:_t}:null}var On=_t=>{let{prefixCls:He,label:nt,htmlFor:Ye,labelCol:qe,labelAlign:Mt,colon:Ut,required:An,requiredMark:mn,tooltip:ln}=_t;var Nn;const[Wn]=(0,Ae.Z)("Form"),{vertical:Xn,labelAlign:rn,labelCol:Tn,labelWrap:Nt,colon:Jt}=be.useContext(pe.q3);if(!nt)return null;const sn=qe||Tn||{},fn=Mt||rn,In=`${He}-item-label`,un=Te()(In,fn==="left"&&`${In}-left`,sn.className,{[`${In}-wrap`]:!!Nt});let Bn=nt;const ot=Ut===!0||Jt!==!1&&Ut!==!1;ot&&!Xn&&typeof nt=="string"&&nt.trim()!==""&&(Bn=nt.replace(/[:|:]\s*$/,""));const nn=Gt(ln);if(nn){const{icon:kn=be.createElement(cn.Z,null)}=nn,Vn=Kt(nn,["icon"]),qn=be.createElement(Ve.Z,Object.assign({},Vn),be.cloneElement(kn,{className:`${He}-item-tooltip`,title:""}));Bn=be.createElement(be.Fragment,null,Bn,qn)}const En=mn==="optional",gn=typeof mn=="function";gn?Bn=mn(Bn,{required:!!An}):En&&!An&&(Bn=be.createElement(be.Fragment,null,Bn,be.createElement("span",{className:`${He}-item-optional`,title:""},(Wn==null?void 0:Wn.optional)||((Nn=ct.Z.Form)===null||Nn===void 0?void 0:Nn.optional))));const Mn=Te()({[`${He}-item-required`]:An,[`${He}-item-required-mark-optional`]:En||gn,[`${He}-item-no-colon`]:!ot});return be.createElement(rt.Z,Object.assign({},sn,{className:un}),be.createElement("label",{htmlFor:Ye,className:Mn,title:typeof nt=="string"?nt:""},Bn))},Ln=ae(29679),Kn=ae(19248),tr=ae(96512),gr=ae(58617);const Un={success:Ln.Z,warning:tr.Z,error:Kn.Z,validating:gr.Z};function Cr(_t){let{children:He,errors:nt,warnings:Ye,hasFeedback:qe,validateStatus:Mt,prefixCls:Ut,meta:An,noStyle:mn}=_t;const ln=`${Ut}-item`,{feedbackIcons:Nn}=be.useContext(pe.q3),Wn=Yt(nt,Ye,An,null,!!qe,Mt),{isFormItemInput:Xn,status:rn}=be.useContext(pe.aM),Tn=be.useMemo(()=>{var Nt;let Jt;if(qe){const In=qe!==!0&&qe.icons||Nn,un=Wn&&((Nt=In==null?void 0:In({status:Wn,errors:nt,warnings:Ye}))===null||Nt===void 0?void 0:Nt[Wn]),Bn=Wn&&Un[Wn];Jt=un!==!1&&Bn?be.createElement("span",{className:Te()(`${ln}-feedback-icon`,`${ln}-feedback-icon-${Wn}`)},un||be.createElement(Bn,null)):null}let sn=!0,fn=Wn||"";return mn&&(sn=Xn,fn=(Wn!=null?Wn:rn)||""),{status:fn,errors:nt,warnings:Ye,hasFeedback:!!qe,feedbackIcon:Jt,isFormItemInput:sn}},[Wn,qe,mn,Xn,rn]);return be.createElement(pe.aM.Provider,{value:Tn},He)}var Rr=function(_t,He){var nt={};for(var Ye in _t)Object.prototype.hasOwnProperty.call(_t,Ye)&&He.indexOf(Ye)<0&&(nt[Ye]=_t[Ye]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ye=Object.getOwnPropertySymbols(_t);qe<Ye.length;qe++)He.indexOf(Ye[qe])<0&&Object.prototype.propertyIsEnumerable.call(_t,Ye[qe])&&(nt[Ye[qe]]=_t[Ye[qe]]);return nt};function $r(_t){const{prefixCls:He,className:nt,rootClassName:Ye,style:qe,help:Mt,errors:Ut,warnings:An,validateStatus:mn,meta:ln,hasFeedback:Nn,hidden:Wn,children:Xn,fieldId:rn,required:Tn,isRequired:Nt,onSubItemMetaChange:Jt}=_t,sn=Rr(_t,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),fn=`${He}-item`,{requiredMark:In}=be.useContext(pe.q3),un=be.useRef(null),Bn=xe(Ut),ot=xe(An),tn=Mt!=null,nn=!!(tn||Ut.length||An.length),En=!!un.current&&(0,Ge.Z)(un.current),[gn,Mn]=be.useState(null);(0,_e.Z)(()=>{if(nn&&un.current){const Tr=getComputedStyle(un.current);Mn(parseInt(Tr.marginBottom,10))}},[nn,En]);const kn=Tr=>{Tr||Mn(null)},qn=function(){let Tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Jr=Tr?Bn:ln.errors,ai=Tr?ot:ln.warnings;return Yt(Jr,ai,ln,"",!!Nn,mn)}(),pr=Te()(fn,nt,Ye,{[`${fn}-with-help`]:tn||Bn.length||ot.length,[`${fn}-has-feedback`]:qn&&Nn,[`${fn}-has-success`]:qn==="success",[`${fn}-has-warning`]:qn==="warning",[`${fn}-has-error`]:qn==="error",[`${fn}-is-validating`]:qn==="validating",[`${fn}-hidden`]:Wn});return be.createElement("div",{className:pr,style:qe,ref:un},be.createElement(bt.Z,Object.assign({className:`${fn}-row`},(0,St.Z)(sn,["_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"])),be.createElement(On,Object.assign({htmlFor:rn},_t,{requiredMark:In,required:Tn!=null?Tn:Nt,prefixCls:He})),be.createElement(Rt,Object.assign({},_t,ln,{errors:Bn,warnings:ot,prefixCls:He,status:qn,help:Mt,marginBottom:gn,onErrorVisibleChanged:kn}),be.createElement(pe.qI.Provider,{value:Jt},be.createElement(Cr,{prefixCls:He,meta:ln,errors:ln.errors,warnings:ln.warnings,hasFeedback:Nn,validateStatus:qn},Xn)))),!!gn&&be.createElement("div",{className:`${fn}-margin-offset`,style:{marginBottom:-gn}}))}const vr="__SPLIT__",Er=null,Hr=be.memo(_t=>{let{children:He}=_t;return He},(_t,He)=>_t.value===He.value&&_t.update===He.update&&_t.childProps.length===He.childProps.length&&_t.childProps.every((nt,Ye)=>nt===He.childProps[Ye]));function wn(_t){return _t!=null}function Zn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Or(_t){const{name:He,noStyle:nt,className:Ye,dependencies:qe,prefixCls:Mt,shouldUpdate:Ut,rules:An,children:mn,required:ln,label:Nn,messageVariables:Wn,trigger:Xn="onChange",validateTrigger:rn,hidden:Tn,help:Nt}=_t,{getPrefixCls:Jt}=be.useContext(Wt.E_),{name:sn}=be.useContext(pe.q3),fn=le(mn),In=typeof fn=="function",un=be.useContext(pe.qI),{validateTrigger:Bn}=be.useContext(at.FieldContext),ot=rn!==void 0?rn:Bn,tn=wn(He),nn=Jt("form",Mt),[En,gn]=Qe(nn),Mn=be.useContext(at.ListContext),kn=be.useRef(),[Vn,qn]=Oe({}),[pr,Tr]=(0,an.Z)(()=>Zn()),Jr=Wr=>{const jr=Mn==null?void 0:Mn.getKey(Wr.name);if(Tr(Wr.destroy?Zn():Wr,!0),nt&&Nt!==!1&&un){let yi=Wr.name;if(Wr.destroy)yi=kn.current||yi;else if(jr!==void 0){const[ui,$i]=jr;yi=[ui].concat((0,ce.Z)($i)),kn.current=yi}un(Wr,yi)}},ai=(Wr,jr)=>{qn(yi=>{const ui=Object.assign({},yi),sa=[].concat((0,ce.Z)(Wr.name.slice(0,-1)),(0,ce.Z)(jr)).join(vr);return Wr.destroy?delete ui[sa]:ui[sa]=Wr,ui})},[Nr,yr]=be.useMemo(()=>{const Wr=(0,ce.Z)(pr.errors),jr=(0,ce.Z)(pr.warnings);return Object.values(Vn).forEach(yi=>{Wr.push.apply(Wr,(0,ce.Z)(yi.errors||[])),jr.push.apply(jr,(0,ce.Z)(yi.warnings||[]))}),[Wr,jr]},[Vn,pr.errors,pr.warnings]),di=ut();function ti(Wr,jr,yi){return nt&&!Tn?be.createElement(Cr,{prefixCls:nn,hasFeedback:_t.hasFeedback,validateStatus:_t.validateStatus,meta:pr,errors:Nr,warnings:yr,noStyle:!0},Wr):be.createElement($r,Object.assign({key:"row"},_t,{className:Te()(Ye,gn),prefixCls:nn,fieldId:jr,isRequired:yi,errors:Nr,warnings:yr,meta:pr,onSubItemMetaChange:ai}),Wr)}if(!tn&&!In&&!qe)return En(ti(fn));let vi={};return typeof Nn=="string"?vi.label=Nn:He&&(vi.label=String(He)),Wn&&(vi=Object.assign(Object.assign({},vi),Wn)),En(be.createElement(at.Field,Object.assign({},_t,{messageVariables:vi,trigger:Xn,validateTrigger:ot,onMetaChange:Jr}),(Wr,jr,yi)=>{const ui=Et(He).length&&jr?jr.name:[],$i=on(ui,sn),sa=ln!==void 0?ln:!!(An&&An.some(rr=>{if(rr&&typeof rr=="object"&&rr.required&&!rr.warningOnly)return!0;if(typeof rr=="function"){const pi=rr(yi);return pi&&pi.required&&!pi.warningOnly}return!1})),oi=Object.assign({},Wr);let ar=null;if(Array.isArray(fn)&&tn)ar=fn;else if(!(In&&(!(Ut||qe)||tn))){if(!(qe&&!In&&!tn))if((0,ye.l$)(fn)){const rr=Object.assign(Object.assign({},fn.props),oi);if(rr.id||(rr.id=$i),Nt||Nr.length>0||yr.length>0||_t.extra){const ki=[];(Nt||Nr.length>0)&&ki.push(`${$i}_help`),_t.extra&&ki.push(`${$i}_extra`),rr["aria-describedby"]=ki.join(" ")}Nr.length>0&&(rr["aria-invalid"]="true"),sa&&(rr["aria-required"]="true"),(0,Ht.Yr)(fn)&&(rr.ref=di(ui,fn)),new Set([].concat((0,ce.Z)(Et(Xn)),(0,ce.Z)(Et(ot)))).forEach(ki=>{rr[ki]=function(){for(var Ai,Ti,mi,Ci,Pa,_r=arguments.length,Xr=new Array(_r),Pi=0;Pi<_r;Pi++)Xr[Pi]=arguments[Pi];(mi=oi[ki])===null||mi===void 0||(Ai=mi).call.apply(Ai,[oi].concat(Xr)),(Pa=(Ci=fn.props)[ki])===null||Pa===void 0||(Ti=Pa).call.apply(Ti,[Ci].concat(Xr))}});const ni=[rr["aria-required"],rr["aria-invalid"],rr["aria-describedby"]];ar=be.createElement(Hr,{value:oi[_t.valuePropName||"value"],update:fn,childProps:ni},(0,ye.Tm)(fn,rr))}else In&&(Ut||qe)&&!tn?ar=fn(yi):ar=fn}return ti(ar,$i,sa)}))}const br=Or;br.useStatus=ge;var hr=br,Yr=function(_t,He){var nt={};for(var Ye in _t)Object.prototype.hasOwnProperty.call(_t,Ye)&&He.indexOf(Ye)<0&&(nt[Ye]=_t[Ye]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ye=Object.getOwnPropertySymbols(_t);qe<Ye.length;qe++)He.indexOf(Ye[qe])<0&&Object.prototype.propertyIsEnumerable.call(_t,Ye[qe])&&(nt[Ye[qe]]=_t[Ye[qe]]);return nt},Ir=_t=>{var{prefixCls:He,children:nt}=_t,Ye=Yr(_t,["prefixCls","children"]);const{getPrefixCls:qe}=be.useContext(Wt.E_),Mt=qe("form",He),Ut=be.useMemo(()=>({prefixCls:Mt,status:"error"}),[Mt]);return be.createElement(at.List,Object.assign({},Ye),(An,mn,ln)=>be.createElement(pe.Rk.Provider,{value:Ut},nt(An.map(Nn=>Object.assign(Object.assign({},Nn),{fieldKey:Nn.key})),mn,{errors:ln.errors,warnings:ln.warnings})))};function or(){const{form:_t}=(0,be.useContext)(pe.q3);return _t}const Jn=Zt;Jn.Item=hr,Jn.List=Ir,Jn.ErrorList=Bt,Jn.useForm=pt,Jn.useFormInstance=or,Jn.useWatch=at.useWatch,Jn.Provider=pe.RV,Jn.create=()=>{};var Dr=Jn},8628:function(zn,en,ae){"use strict";var ce=ae(59301),De=ae(34280),Te=ae(56762),dt=ae(69507);function be(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const pe=(0,ce.useRef)({}),xe=(0,Te.Z)(),Me=(0,dt.ZP)();return(0,De.Z)(()=>{const Ke=Me.subscribe(vt=>{pe.current=vt,ke&&xe()});return()=>Me.unsubscribe(Ke)},[]),pe.current}en.Z=be},5871:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return cn}});var ce=ae(84105),De=ae(87395),Te=ae(92310),dt=ae.n(Te),be=ae(60499),ke=ae(18642),pe=ae(43749),xe=ae(72190),Me=ae(42244),Ke=ae(38705),vt=ae(17212);function Pe(){return typeof BigInt=="function"}function Be(ct){return!ct&&ct!==0&&!Number.isNaN(ct)||!String(ct).trim()}function et(ct){var Ae=ct.trim(),Ve=Ae.startsWith("-");Ve&&(Ae=Ae.slice(1)),Ae=Ae.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ae.startsWith(".")&&(Ae="0".concat(Ae));var Kt=Ae||"0",Gt=Kt.split("."),hn=Gt[0]||"0",On=Gt[1]||"0";hn==="0"&&On==="0"&&(Ve=!1);var Ln=Ve?"-":"";return{negative:Ve,negativeStr:Ln,trimStr:Kt,integerStr:hn,decimalStr:On,fullStr:"".concat(Ln).concat(Kt)}}function Je(ct){var Ae=String(ct);return!Number.isNaN(Number(Ae))&&Ae.includes("e")}function tt(ct){var Ae=String(ct);if(Je(ct)){var Ve=Number(Ae.slice(Ae.indexOf("e-")+2)),Kt=Ae.match(/\.(\d+)/);return Kt!=null&&Kt[1]&&(Ve+=Kt[1].length),Ve}return Ae.includes(".")&&wt(Ae)?Ae.length-Ae.indexOf(".")-1:0}function yt(ct){var Ae=String(ct);if(Je(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);Ae=ct.toFixed(tt(Ae))}return et(Ae).fullStr}function wt(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 It=function(){function ct(Ae){if((0,Ke.Z)(this,ct),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"negative",void 0),(0,ke.Z)(this,"integer",void 0),(0,ke.Z)(this,"decimal",void 0),(0,ke.Z)(this,"decimalLen",void 0),(0,ke.Z)(this,"empty",void 0),(0,ke.Z)(this,"nan",void 0),Be(Ae)){this.empty=!0;return}if(this.origin=String(Ae),Ae==="-"||Number.isNaN(Ae)){this.nan=!0;return}var Ve=Ae;if(Je(Ve)&&(Ve=Number(Ve)),Ve=typeof Ve=="string"?Ve:yt(Ve),wt(Ve)){var Kt=et(Ve);this.negative=Kt.negative;var Gt=Kt.trimStr.split(".");this.integer=BigInt(Gt[0]);var hn=Gt[1]||"0";this.decimal=BigInt(hn),this.decimalLen=hn.length}else this.nan=!0}return(0,vt.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(Ve){var Kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Ve,"0"));return BigInt(Kt)}},{key:"negate",value:function(){var Ve=new ct(this.toString());return Ve.negative=!Ve.negative,Ve}},{key:"cal",value:function(Ve,Kt,Gt){var hn=Math.max(this.getDecimalStr().length,Ve.getDecimalStr().length),On=this.alignDecimal(hn),Ln=Ve.alignDecimal(hn),Kn=Kt(On,Ln).toString(),tr=Gt(hn),gr=et(Kn),Un=gr.negativeStr,Cr=gr.trimStr,Rr="".concat(Un).concat(Cr.padStart(tr+1,"0"));return new ct("".concat(Rr.slice(0,-tr),".").concat(Rr.slice(-tr)))}},{key:"add",value:function(Ve){if(this.isInvalidate())return new ct(Ve);var Kt=new ct(Ve);return Kt.isInvalidate()?this:this.cal(Kt,function(Gt,hn){return Gt+hn},function(Gt){return Gt})}},{key:"multi",value:function(Ve){var Kt=new ct(Ve);return this.isInvalidate()||Kt.isInvalidate()?new ct(NaN):this.cal(Kt,function(Gt,hn){return Gt*hn},function(Gt){return Gt*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(Ve){return this.toString()===(Ve==null?void 0:Ve.toString())}},{key:"lessEquals",value:function(Ve){return this.add(Ve.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ve?this.isInvalidate()?"":et("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ct}(),gt=function(){function ct(Ae){if((0,Ke.Z)(this,ct),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"number",void 0),(0,ke.Z)(this,"empty",void 0),Be(Ae)){this.empty=!0;return}this.origin=String(Ae),this.number=Number(Ae)}return(0,vt.Z)(ct,[{key:"negate",value:function(){return new ct(-this.toNumber())}},{key:"add",value:function(Ve){if(this.isInvalidate())return new ct(Ve);var Kt=Number(Ve);if(Number.isNaN(Kt))return this;var Gt=this.number+Kt;if(Gt>Number.MAX_SAFE_INTEGER)return new ct(Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return new ct(Number.MIN_SAFE_INTEGER);var hn=Math.max(tt(this.number),tt(Kt));return new ct(Gt.toFixed(hn))}},{key:"multi",value:function(Ve){var Kt=Number(Ve);if(this.isInvalidate()||Number.isNaN(Kt))return new ct(NaN);var Gt=this.number*Kt;if(Gt>Number.MAX_SAFE_INTEGER)return new ct(Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return new ct(Number.MIN_SAFE_INTEGER);var hn=Math.max(tt(this.number),tt(Kt));return new ct(Gt.toFixed(hn))}},{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(Ve){return this.toNumber()===(Ve==null?void 0:Ve.toNumber())}},{key:"lessEquals",value:function(Ve){return this.add(Ve.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ve?this.isInvalidate()?"":yt(this.number):this.origin}}]),ct}();function st(ct){return Pe()?new It(ct):new gt(ct)}function ze(ct,Ae,Ve){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ct==="")return"";var Gt=et(ct),hn=Gt.negativeStr,On=Gt.integerStr,Ln=Gt.decimalStr,Kn="".concat(Ae).concat(Ln),tr="".concat(hn).concat(On);if(Ve>=0){var gr=Number(Ln[Ve]);if(gr>=5&&!Kt){var Un=st(ct).add("".concat(hn,"0.").concat("0".repeat(Ve)).concat(10-gr));return ze(Un.toString(),Ae,Ve,Kt)}return Ve===0?tr:"".concat(tr).concat(Ae).concat(Ln.padEnd(Ve,"0").slice(0,Ve))}return Kn===".0"?tr:"".concat(tr).concat(Kn)}var he=st,je=ae(93681),Xe=ae(34280),Qe=ae(8654),Ue=ae(59301),mt=ae(48736);function Le(ct,Ae){var Ve=(0,Ue.useRef)(null);function Kt(){try{var hn=ct.selectionStart,On=ct.selectionEnd,Ln=ct.value,Kn=Ln.substring(0,hn),tr=Ln.substring(On);Ve.current={start:hn,end:On,value:Ln,beforeTxt:Kn,afterTxt:tr}}catch(gr){}}function Gt(){if(ct&&Ve.current&&Ae)try{var hn=ct.value,On=Ve.current,Ln=On.beforeTxt,Kn=On.afterTxt,tr=On.start,gr=hn.length;if(hn.endsWith(Kn))gr=hn.length-Ve.current.afterTxt.length;else if(hn.startsWith(Ln))gr=Ln.length;else{var Un=Ln[tr-1],Cr=hn.indexOf(Un,tr-1);Cr!==-1&&(gr=Cr+1)}ct.setSelectionRange(gr,gr)}catch(Rr){(0,mt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Rr.message))}}return[Kt,Gt]}var Bt=ae(49658),at=function(){var Ae=(0,Ue.useState)(!1),Ve=(0,xe.Z)(Ae,2),Kt=Ve[0],Gt=Ve[1];return(0,Xe.Z)(function(){Gt((0,Bt.Z)())},[]),Kt},Wt=at,Lt=ae(16089),Tt=200,Xt=600;function jt(ct){var Ae=ct.prefixCls,Ve=ct.upNode,Kt=ct.downNode,Gt=ct.upDisabled,hn=ct.downDisabled,On=ct.onStep,Ln=Ue.useRef(),Kn=Ue.useRef([]),tr=Ue.useRef();tr.current=On;var gr=function(){clearTimeout(Ln.current)},Un=function(Zn,Or){Zn.preventDefault(),gr(),tr.current(Or);function br(){tr.current(Or),Ln.current=setTimeout(br,Tt)}Ln.current=setTimeout(br,Xt)};Ue.useEffect(function(){return function(){gr(),Kn.current.forEach(function(wn){return Lt.Z.cancel(wn)})}},[]);var Cr=Wt();if(Cr)return null;var Rr="".concat(Ae,"-handler"),$r=dt()(Rr,"".concat(Rr,"-up"),(0,ke.Z)({},"".concat(Rr,"-up-disabled"),Gt)),vr=dt()(Rr,"".concat(Rr,"-down"),(0,ke.Z)({},"".concat(Rr,"-down-disabled"),hn)),Er=function(){return Kn.current.push((0,Lt.Z)(gr))},Hr={unselectable:"on",role:"button",onMouseUp:Er,onMouseLeave:Er};return Ue.createElement("div",{className:"".concat(Rr,"-wrap")},Ue.createElement("span",(0,be.Z)({},Hr,{onMouseDown:function(Zn){Un(Zn,!0)},"aria-label":"Increase Value","aria-disabled":Gt,className:$r}),Ve||Ue.createElement("span",{unselectable:"on",className:"".concat(Ae,"-handler-up-inner")})),Ue.createElement("span",(0,be.Z)({},Hr,{onMouseDown:function(Zn){Un(Zn,!1)},"aria-label":"Decrease Value","aria-disabled":hn,className:vr}),Kt||Ue.createElement("span",{unselectable:"on",className:"".concat(Ae,"-handler-down-inner")})))}function it(ct){var Ae=typeof ct=="number"?yt(ct):et(ct).fullStr,Ve=Ae.includes(".");return Ve?et(Ae.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ct+"0"}var Ce=ae(5643),Et=function(){var ct=(0,Ue.useRef)(0),Ae=function(){Lt.Z.cancel(ct.current)};return(0,Ue.useEffect)(function(){return Ae},[]),function(Ve){Ae(),ct.current=(0,Lt.Z)(function(){Ve()})}},on=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Yt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],lt=function(Ae,Ve){return Ae||Ve.isEmpty()?Ve.toString():Ve.toNumber()},pt=function(Ae){var Ve=he(Ae);return Ve.isInvalidate()?null:Ve},Ft=Ue.forwardRef(function(ct,Ae){var Ve,Kt=ct.prefixCls,Gt=Kt===void 0?"rc-input-number":Kt,hn=ct.className,On=ct.style,Ln=ct.min,Kn=ct.max,tr=ct.step,gr=tr===void 0?1:tr,Un=ct.defaultValue,Cr=ct.value,Rr=ct.disabled,$r=ct.readOnly,vr=ct.upHandler,Er=ct.downHandler,Hr=ct.keyboard,wn=ct.controls,Zn=wn===void 0?!0:wn,Or=ct.classNames,br=ct.stringMode,hr=ct.parser,Yr=ct.formatter,cr=ct.precision,Ir=ct.decimalSeparator,or=ct.onChange,Jn=ct.onInput,Dr=ct.onPressEnter,_t=ct.onStep,He=(0,Me.Z)(ct,on),nt="".concat(Gt,"-input"),Ye=Ue.useRef(null),qe=Ue.useState(!1),Mt=(0,xe.Z)(qe,2),Ut=Mt[0],An=Mt[1],mn=Ue.useRef(!1),ln=Ue.useRef(!1),Nn=Ue.useRef(!1),Wn=Ue.useState(function(){return he(Cr!=null?Cr:Un)}),Xn=(0,xe.Z)(Wn,2),rn=Xn[0],Tn=Xn[1];function Nt(ar){Cr===void 0&&Tn(ar)}var Jt=Ue.useCallback(function(ar,rr){if(!rr)return cr>=0?cr:Math.max(tt(ar),tt(gr))},[cr,gr]),sn=Ue.useCallback(function(ar){var rr=String(ar);if(hr)return hr(rr);var pi=rr;return Ir&&(pi=pi.replace(Ir,".")),pi.replace(/[^\w.-]+/g,"")},[hr,Ir]),fn=Ue.useRef(""),In=Ue.useCallback(function(ar,rr){if(Yr)return Yr(ar,{userTyping:rr,input:String(fn.current)});var pi=typeof ar=="number"?yt(ar):ar;if(!rr){var ni=Jt(pi,rr);if(wt(pi)&&(Ir||ni>=0)){var ki=Ir||".";pi=ze(pi,ki,ni)}}return pi},[Yr,Jt,Ir]),un=Ue.useState(function(){var ar=Un!=null?Un:Cr;return rn.isInvalidate()&&["string","number"].includes((0,pe.Z)(ar))?Number.isNaN(ar)?"":ar:In(rn.toString(),!1)}),Bn=(0,xe.Z)(un,2),ot=Bn[0],tn=Bn[1];fn.current=ot;function nn(ar,rr){tn(In(ar.isInvalidate()?ar.toString(!1):ar.toString(!rr),rr))}var En=Ue.useMemo(function(){return pt(Kn)},[Kn,cr]),gn=Ue.useMemo(function(){return pt(Ln)},[Ln,cr]),Mn=Ue.useMemo(function(){return!En||!rn||rn.isInvalidate()?!1:En.lessEquals(rn)},[En,rn]),kn=Ue.useMemo(function(){return!gn||!rn||rn.isInvalidate()?!1:rn.lessEquals(gn)},[gn,rn]),Vn=Le(Ye.current,Ut),qn=(0,xe.Z)(Vn,2),pr=qn[0],Tr=qn[1],Jr=function(rr){return En&&!rr.lessEquals(En)?En:gn&&!gn.lessEquals(rr)?gn:null},ai=function(rr){return!Jr(rr)},Nr=function(rr,pi){var ni=rr,ki=ai(ni)||ni.isEmpty();if(!ni.isEmpty()&&!pi&&(ni=Jr(ni)||ni,ki=!0),!$r&&!Rr&&ki){var Ai=ni.toString(),Ti=Jt(Ai,pi);return Ti>=0&&(ni=he(ze(Ai,".",Ti)),ai(ni)||(ni=he(ze(Ai,".",Ti,!0)))),ni.equals(rn)||(Nt(ni),or==null||or(ni.isEmpty()?null:lt(br,ni)),Cr===void 0&&nn(ni,pi)),ni}return rn},yr=Et(),di=function ar(rr){if(pr(),fn.current=rr,tn(rr),!ln.current){var pi=sn(rr),ni=he(pi);ni.isNaN()||Nr(ni,!0)}Jn==null||Jn(rr),yr(function(){var ki=rr;hr||(ki=rr.replace(/。/g,".")),ki!==rr&&ar(ki)})},ti=function(){ln.current=!0},vi=function(){ln.current=!1,di(Ye.current.value)},Wr=function(rr){di(rr.target.value)},jr=function(rr){var pi;if(!(rr&&Mn||!rr&&kn)){mn.current=!1;var ni=he(Nn.current?it(gr):gr);rr||(ni=ni.negate());var ki=(rn||he(0)).add(ni.toString()),Ai=Nr(ki,!1);_t==null||_t(lt(br,Ai),{offset:Nn.current?it(gr):gr,type:rr?"up":"down"}),(pi=Ye.current)===null||pi===void 0||pi.focus()}},yi=function(rr){var pi=he(sn(ot)),ni=pi;pi.isNaN()?ni=Nr(rn,rr):ni=Nr(pi,rr),Cr!==void 0?nn(rn,!1):ni.isNaN()||nn(ni,!1)},ui=function(){mn.current=!0},$i=function(rr){var pi=rr.key,ni=rr.shiftKey;mn.current=!0,Nn.current=ni,pi==="Enter"&&(ln.current||(mn.current=!1),yi(!1),Dr==null||Dr(rr)),Hr!==!1&&!ln.current&&["Up","ArrowUp","Down","ArrowDown"].includes(pi)&&(jr(pi==="Up"||pi==="ArrowUp"),rr.preventDefault())},sa=function(){mn.current=!1,Nn.current=!1},oi=function(){yi(!1),An(!1),mn.current=!1};return(0,Xe.o)(function(){rn.isInvalidate()||nn(rn,!1)},[cr]),(0,Xe.o)(function(){var ar=he(Cr);Tn(ar);var rr=he(sn(ot));(!ar.equals(rr)||!mn.current||Yr)&&nn(ar,mn.current)},[Cr]),(0,Xe.o)(function(){Yr&&Tr()},[ot]),Ue.createElement("div",{className:dt()(Gt,Or==null?void 0:Or.input,hn,(Ve={},(0,ke.Z)(Ve,"".concat(Gt,"-focused"),Ut),(0,ke.Z)(Ve,"".concat(Gt,"-disabled"),Rr),(0,ke.Z)(Ve,"".concat(Gt,"-readonly"),$r),(0,ke.Z)(Ve,"".concat(Gt,"-not-a-number"),rn.isNaN()),(0,ke.Z)(Ve,"".concat(Gt,"-out-of-range"),!rn.isInvalidate()&&!ai(rn)),Ve)),style:On,onFocus:function(){An(!0)},onBlur:oi,onKeyDown:$i,onKeyUp:sa,onCompositionStart:ti,onCompositionEnd:vi,onBeforeInput:ui},Zn&&Ue.createElement(jt,{prefixCls:Gt,upNode:vr,downNode:Er,upDisabled:Mn,downDisabled:kn,onStep:jr}),Ue.createElement("div",{className:"".concat(nt,"-wrap")},Ue.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Ln,"aria-valuemax":Kn,"aria-valuenow":rn.isInvalidate()?null:rn.toString(),step:gr},He,{ref:(0,Qe.sQ)(Ye,Ae),className:nt,value:ot,onChange:Wr,disabled:Rr,readOnly:$r}))))}),Sn=Ue.forwardRef(function(ct,Ae){var Ve=ct.disabled,Kt=ct.style,Gt=ct.prefixCls,hn=ct.value,On=ct.prefix,Ln=ct.suffix,Kn=ct.addonBefore,tr=ct.addonAfter,gr=ct.classes,Un=ct.className,Cr=ct.classNames,Rr=(0,Me.Z)(ct,Yt),$r=Ue.useRef(null),vr=function(Hr){$r.current&&(0,Ce.nH)($r.current,Hr)};return Ue.createElement(je.BaseInput,{inputElement:Ue.createElement(Ft,(0,be.Z)({prefixCls:Gt,disabled:Ve,classNames:Cr,ref:(0,Qe.sQ)($r,Ae)},Rr)),className:Un,triggerFocus:vr,prefixCls:Gt,value:hn,disabled:Ve,style:Kt,prefix:On,suffix:Ln,addonAfter:tr,addonBefore:Kn,classes:gr,classNames:Cr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Sn.displayName="InputNumber";var $t=Sn,Pn=$t,Zt=ae(19080),an=ae(36355),Ht=ae(92736),ye=ae(1684),ue=ae(19716),le=ae(32441),de=ae(33234),ge=ae(9937),se=ae(17313),Oe=ae(74207),ut=ae(83116),Ge=ae(37613);const _e=(ct,Ae)=>{let{componentCls:Ve,borderRadiusSM:Kt,borderRadiusLG:Gt}=ct;const hn=Ae==="lg"?Gt:Kt;return{[`&-${Ae}`]:{[`${Ve}-handler-wrap`]:{borderStartEndRadius:hn,borderEndEndRadius:hn},[`${Ve}-handler-up`]:{borderStartEndRadius:hn},[`${Ve}-handler-down`]:{borderEndEndRadius:hn}}}},St=ct=>{const{componentCls:Ae,lineWidth:Ve,lineType:Kt,colorBorder:Gt,borderRadius:hn,fontSizeLG:On,controlHeightLG:Ln,controlHeightSM:Kn,colorError:tr,paddingInlineSM:gr,colorTextDescription:Un,motionDurationMid:Cr,handleHoverColor:Rr,paddingInline:$r,paddingBlock:vr,handleBg:Er,handleActiveBg:Hr,colorTextDisabled:wn,borderRadiusSM:Zn,borderRadiusLG:Or,controlWidth:br,handleVisible:hr,handleBorderColor:Yr}=ct;return[{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(ct)),(0,ge.ik)(ct)),(0,ge.bi)(ct,Ae)),{display:"inline-block",width:br,margin:0,padding:0,border:`${Ve}px ${Kt} ${Gt}`,borderRadius:hn,"&-rtl":{direction:"rtl",[`${Ae}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:On,borderRadius:Or,[`input${Ae}-input`]:{height:Ln-2*Ve}},"&-sm":{padding:0,borderRadius:Zn,[`input${Ae}-input`]:{height:Kn-2*Ve,padding:`0 ${gr}px`}},"&:hover":Object.assign({},(0,ge.pU)(ct)),"&-focused":Object.assign({},(0,ge.M1)(ct)),"&-out-of-range":{[`${Ae}-input-wrap`]:{input:{color:tr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,se.Wf)(ct)),(0,ge.s7)(ct)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ae}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ae}-group-addon`]:{borderRadius:Or,fontSize:ct.fontSizeLG}},"&-sm":{[`${Ae}-group-addon`]:{borderRadius:Zn}},[`${Ae}-wrapper-disabled > ${Ae}-group-addon`]:Object.assign({},(0,ge.Xy)(ct))}}),[`&-disabled ${Ae}-input`]:{cursor:"not-allowed"},[Ae]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(ct)),{width:"100%",padding:`${vr}px ${$r}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:hn,outline:0,transition:`all ${Cr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ge.nz)(ct.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Ae]:Object.assign(Object.assign(Object.assign({[`&:hover ${Ae}-handler-wrap, &-focused ${Ae}-handler-wrap`]:{opacity:1},[`${Ae}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ct.handleWidth,height:"100%",background:Er,borderStartStartRadius:0,borderStartEndRadius:hn,borderEndEndRadius:hn,borderEndStartRadius:0,opacity:hr===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Cr} linear ${Cr}`,[`${Ae}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Ae}-handler-up-inner,
|
|
|
${Ae}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:ct.handleFontSize}}},[`${Ae}-handler`]:{height:"50%",overflow:"hidden",color:Un,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ve}px ${Kt} ${Yr}`,transition:`all ${Cr} linear`,"&:active":{background:Hr},"&:hover":{height:"60%",[`
|
|
|
${Ae}-handler-up-inner,
|
|
|
${Ae}-handler-down-inner
|
|
|
`]:{color:Rr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,se.Ro)()),{color:Un,transition:`all ${Cr} linear`,userSelect:"none"})},[`${Ae}-handler-up`]:{borderStartEndRadius:hn},[`${Ae}-handler-down`]:{borderBlockStart:`${Ve}px ${Kt} ${Yr}`,borderEndEndRadius:hn}},_e(ct,"lg")),_e(ct,"sm")),{"&-disabled, &-readonly":{[`${Ae}-handler-wrap`]:{display:"none"},[`${Ae}-input`]:{color:"inherit"}},[`
|
|
|
${Ae}-handler-up-disabled,
|
|
|
${Ae}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Ae}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Ae}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:wn}})},{[`${Ae}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Ae}-handler-down`]:{borderBlockStartWidth:0}}}]},bt=ct=>{const{componentCls:Ae,paddingBlock:Ve,paddingInline:Kt,inputAffixPadding:Gt,controlWidth:hn,borderRadiusLG:On,borderRadiusSM:Ln}=ct;return{[`${Ae}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,ge.ik)(ct)),(0,ge.bi)(ct,`${Ae}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:hn,padding:0,paddingInlineStart:Kt,"&-lg":{borderRadius:On},"&-sm":{borderRadius:Ln},[`&:not(${Ae}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,ge.pU)(ct)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ae}-disabled`]:{background:"transparent"},[`> div${Ae}`]:{width:"100%",border:"none",outline:"none",[`&${Ae}-focused`]:{boxShadow:"none !important"}},[`input${Ae}-input`]:{padding:`${Ve}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ae}-handler-wrap`]:{zIndex:2},[Ae]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Gt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Kt,marginInlineStart:Gt}}})}};var rt=(0,ut.Z)("InputNumber",ct=>{const Ae=(0,Ge.TS)(ct,(0,ge.e5)(ct));return[St(Ae),bt(Ae),(0,Oe.c)(Ae)]},ct=>Object.assign(Object.assign({},(0,ge.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})),Dt=function(ct,Ae){var Ve={};for(var Kt in ct)Object.prototype.hasOwnProperty.call(ct,Kt)&&Ae.indexOf(Kt)<0&&(Ve[Kt]=ct[Kt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Kt=Object.getOwnPropertySymbols(ct);Gt<Kt.length;Gt++)Ae.indexOf(Kt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(ct,Kt[Gt])&&(Ve[Kt[Gt]]=ct[Kt[Gt]]);return Ve};const xn=Ue.forwardRef((ct,Ae)=>{const{getPrefixCls:Ve,direction:Kt}=Ue.useContext(an.E_),Gt=Ue.useRef(null);Ue.useImperativeHandle(Ae,()=>Gt.current);const{className:hn,rootClassName:On,size:Ln,disabled:Kn,prefixCls:tr,addonBefore:gr,addonAfter:Un,prefix:Cr,bordered:Rr=!0,readOnly:$r,status:vr,controls:Er}=ct,Hr=Dt(ct,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),wn=Ve("input-number",tr),[Zn,Or]=rt(wn),{compactSize:br,compactItemClassnames:hr}=(0,de.ri)(wn,Kt);let Yr=Ue.createElement(De.Z,{className:`${wn}-handler-up-inner`}),cr=Ue.createElement(ce.Z,{className:`${wn}-handler-down-inner`});const Ir=typeof Er=="boolean"?Er:void 0;typeof Er=="object"&&(Yr=typeof Er.upIcon=="undefined"?Yr:Ue.createElement("span",{className:`${wn}-handler-up-inner`},Er.upIcon),cr=typeof Er.downIcon=="undefined"?cr:Ue.createElement("span",{className:`${wn}-handler-down-inner`},Er.downIcon));const{hasFeedback:or,status:Jn,isFormItemInput:Dr,feedbackIcon:_t}=Ue.useContext(le.aM),He=(0,Zt.F)(Jn,vr),nt=(0,ue.Z)(mn=>{var ln;return(ln=Ln!=null?Ln:br)!==null&&ln!==void 0?ln:mn}),Ye=Ue.useContext(ye.Z),qe=Kn!=null?Kn:Ye,Mt=dt()({[`${wn}-lg`]:nt==="large",[`${wn}-sm`]:nt==="small",[`${wn}-rtl`]:Kt==="rtl",[`${wn}-borderless`]:!Rr,[`${wn}-in-form-item`]:Dr},(0,Zt.Z)(wn,He),hr,Or),Ut=`${wn}-group`,An=Ue.createElement(Pn,Object.assign({ref:Gt,disabled:qe,className:dt()(hn,On),upHandler:Yr,downHandler:cr,prefixCls:wn,readOnly:$r,controls:Ir,prefix:Cr,suffix:or&&_t,addonAfter:Un&&Ue.createElement(de.BR,null,Ue.createElement(le.Ux,{override:!0,status:!0},Un)),addonBefore:gr&&Ue.createElement(de.BR,null,Ue.createElement(le.Ux,{override:!0,status:!0},gr)),classNames:{input:Mt},classes:{affixWrapper:dt()((0,Zt.Z)(`${wn}-affix-wrapper`,He,or),{[`${wn}-affix-wrapper-sm`]:nt==="small",[`${wn}-affix-wrapper-lg`]:nt==="large",[`${wn}-affix-wrapper-rtl`]:Kt==="rtl",[`${wn}-affix-wrapper-borderless`]:!Rr},Or),wrapper:dt()({[`${Ut}-rtl`]:Kt==="rtl",[`${wn}-wrapper-disabled`]:qe},Or),group:dt()({[`${wn}-group-wrapper-sm`]:nt==="small",[`${wn}-group-wrapper-lg`]:nt==="large",[`${wn}-group-wrapper-rtl`]:Kt==="rtl"},(0,Zt.Z)(`${wn}-group-wrapper`,He,or),Or)}},Hr));return Zn(An)}),xt=xn,Rt=ct=>Ue.createElement(Ht.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ue.createElement(xn,Object.assign({},ct)));xt._InternalPanelDoNotUseOrYouWillBeFired=Rt;var cn=xt},9432:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return It},n:function(){return yt}});var ce=ae(19248),De=ae(92310),Te=ae.n(De),dt=ae(93681),be=ae(8654),ke=ae(59301),pe=ae(19080),xe=ae(36355),Me=ae(1684),Ke=ae(19716),vt=ae(32441),Pe=ae(33234),Be=ae(59412),et=ae(9937);function Je(gt){return!!(gt.prefix||gt.suffix||gt.allowClear)}var tt=function(gt,st){var ze={};for(var he in gt)Object.prototype.hasOwnProperty.call(gt,he)&&st.indexOf(he)<0&&(ze[he]=gt[he]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,he=Object.getOwnPropertySymbols(gt);je<he.length;je++)st.indexOf(he[je])<0&&Object.prototype.propertyIsEnumerable.call(gt,he[je])&&(ze[he[je]]=gt[he[je]]);return ze};function yt(gt,st){if(!gt)return;gt.focus(st);const{cursor:ze}=st||{};if(ze){const he=gt.value.length;switch(ze){case"start":gt.setSelectionRange(0,0);break;case"end":gt.setSelectionRange(he,he);break;default:gt.setSelectionRange(0,he);break}}}var It=(0,ke.forwardRef)((gt,st)=>{var ze;const{prefixCls:he,bordered:je=!0,status:Xe,size:Qe,disabled:Ue,onBlur:mt,onFocus:Le,suffix:Bt,allowClear:at,addonAfter:Wt,addonBefore:Lt,className:Tt,style:Xt,styles:jt,rootClassName:it,onChange:Ce,classNames:Et}=gt,on=tt(gt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Yt,direction:lt,input:pt}=ke.useContext(xe.E_),Ft=Yt("input",he),Sn=(0,ke.useRef)(null),[$t,Pn]=(0,et.ZP)(Ft),{compactSize:Zt,compactItemClassnames:an}=(0,Pe.ri)(Ft,lt),Ht=(0,Ke.Z)(xn=>{var xt;return(xt=Qe!=null?Qe:Zt)!==null&&xt!==void 0?xt:xn}),ye=ke.useContext(Me.Z),ue=Ue!=null?Ue:ye,{status:le,hasFeedback:de,feedbackIcon:ge}=(0,ke.useContext)(vt.aM),se=(0,pe.F)(le,Xe),Oe=Je(gt)||!!de,ut=(0,ke.useRef)(Oe);(0,ke.useEffect)(()=>{var xn;Oe&&ut.current,ut.current=Oe},[Oe]);const Ge=(0,Be.Z)(Sn,!0),_e=xn=>{Ge(),mt==null||mt(xn)},St=xn=>{Ge(),Le==null||Le(xn)},bt=xn=>{Ge(),Ce==null||Ce(xn)},rt=(de||Bt)&&ke.createElement(ke.Fragment,null,Bt,de&&ge);let Dt;return typeof at=="object"&&(at!=null&&at.clearIcon)?Dt=at:at&&(Dt={clearIcon:ke.createElement(ce.Z,null)}),$t(ke.createElement(dt.default,Object.assign({ref:(0,be.sQ)(st,Sn),prefixCls:Ft,autoComplete:pt==null?void 0:pt.autoComplete},on,{disabled:ue,onBlur:_e,onFocus:St,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),Xt),styles:Object.assign(Object.assign({},pt==null?void 0:pt.styles),jt),suffix:rt,allowClear:Dt,className:Te()(Tt,it,an,pt==null?void 0:pt.className),onChange:bt,addonAfter:Wt&&ke.createElement(Pe.BR,null,ke.createElement(vt.Ux,{override:!0,status:!0},Wt)),addonBefore:Lt&&ke.createElement(Pe.BR,null,ke.createElement(vt.Ux,{override:!0,status:!0},Lt)),classNames:Object.assign(Object.assign(Object.assign({},Et),pt==null?void 0:pt.classNames),{input:Te()({[`${Ft}-sm`]:Ht==="small",[`${Ft}-lg`]:Ht==="large",[`${Ft}-rtl`]:lt==="rtl",[`${Ft}-borderless`]:!je},!Oe&&(0,pe.Z)(Ft,se),Et==null?void 0:Et.input,(ze=pt==null?void 0:pt.classNames)===null||ze===void 0?void 0:ze.input,Pn)}),classes:{affixWrapper:Te()({[`${Ft}-affix-wrapper-sm`]:Ht==="small",[`${Ft}-affix-wrapper-lg`]:Ht==="large",[`${Ft}-affix-wrapper-rtl`]:lt==="rtl",[`${Ft}-affix-wrapper-borderless`]:!je},(0,pe.Z)(`${Ft}-affix-wrapper`,se,de),Pn),wrapper:Te()({[`${Ft}-group-rtl`]:lt==="rtl"},Pn),group:Te()({[`${Ft}-group-wrapper-sm`]:Ht==="small",[`${Ft}-group-wrapper-lg`]:Ht==="large",[`${Ft}-group-wrapper-rtl`]:lt==="rtl",[`${Ft}-group-wrapper-disabled`]:ue},(0,pe.Z)(`${Ft}-group-wrapper`,se,de),Pn)}})))})},1643:function(zn,en,ae){"use strict";var ce=ae(19248),De=ae(92310),Te=ae.n(De),dt=ae(9296),be=ae(59301),ke=ae(19080),pe=ae(36355),xe=ae(1684),Me=ae(19716),Ke=ae(32441),vt=ae(9432),Pe=ae(9937),Be=function(Je,tt){var yt={};for(var wt in Je)Object.prototype.hasOwnProperty.call(Je,wt)&&tt.indexOf(wt)<0&&(yt[wt]=Je[wt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,wt=Object.getOwnPropertySymbols(Je);It<wt.length;It++)tt.indexOf(wt[It])<0&&Object.prototype.propertyIsEnumerable.call(Je,wt[It])&&(yt[wt[It]]=Je[wt[It]]);return yt};const et=(0,be.forwardRef)((Je,tt)=>{const{prefixCls:yt,bordered:wt=!0,size:It,disabled:gt,status:st,allowClear:ze,showCount:he,classNames:je,rootClassName:Xe,className:Qe}=Je,Ue=Be(Je,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:mt,direction:Le}=be.useContext(pe.E_),Bt=(0,Me.Z)(It),at=be.useContext(xe.Z),Wt=gt!=null?gt:at,{status:Lt,hasFeedback:Tt,feedbackIcon:Xt}=be.useContext(Ke.aM),jt=(0,ke.F)(Lt,st),it=be.useRef(null);be.useImperativeHandle(tt,()=>{var lt;return{resizableTextArea:(lt=it.current)===null||lt===void 0?void 0:lt.resizableTextArea,focus:pt=>{var Ft,Sn;(0,vt.n)((Sn=(Ft=it.current)===null||Ft===void 0?void 0:Ft.resizableTextArea)===null||Sn===void 0?void 0:Sn.textArea,pt)},blur:()=>{var pt;return(pt=it.current)===null||pt===void 0?void 0:pt.blur()}}});const Ce=mt("input",yt);let Et;typeof ze=="object"&&(ze!=null&&ze.clearIcon)?Et=ze:ze&&(Et={clearIcon:be.createElement(ce.Z,null)});const[on,Yt]=(0,Pe.ZP)(Ce);return on(be.createElement(dt.default,Object.assign({},Ue,{disabled:Wt,allowClear:Et,className:Te()(Qe,Xe),classes:{affixWrapper:Te()(`${Ce}-textarea-affix-wrapper`,{[`${Ce}-affix-wrapper-rtl`]:Le==="rtl",[`${Ce}-affix-wrapper-borderless`]:!wt,[`${Ce}-affix-wrapper-sm`]:Bt==="small",[`${Ce}-affix-wrapper-lg`]:Bt==="large",[`${Ce}-textarea-show-count`]:he},(0,ke.Z)(`${Ce}-affix-wrapper`,jt),Yt)},classNames:Object.assign(Object.assign({},je),{textarea:Te()({[`${Ce}-borderless`]:!wt,[`${Ce}-sm`]:Bt==="small",[`${Ce}-lg`]:Bt==="large"},(0,ke.Z)(Ce,jt),Yt,je==null?void 0:je.textarea)}),prefixCls:Ce,suffix:Tt&&be.createElement("span",{className:`${Ce}-textarea-suffix`},Xt),showCount:he,ref:it})))});en.Z=et},59412:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return De}});var ce=ae(59301);function De(Te,dt){const be=(0,ce.useRef)([]),ke=()=>{be.current.push(setTimeout(()=>{var pe,xe,Me,Ke;!((pe=Te.current)===null||pe===void 0)&&pe.input&&((xe=Te.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((Me=Te.current)===null||Me===void 0)&&Me.input.hasAttribute("value"))&&((Ke=Te.current)===null||Ke===void 0||Ke.input.removeAttribute("value"))}))};return(0,ce.useEffect)(()=>(dt&&ke(),()=>be.current.forEach(pe=>{pe&&clearTimeout(pe)})),[]),ke}},92832:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return Bt}});var ce=ae(92310),De=ae.n(ce),Te=ae(59301),dt=ae(36355),be=ae(32441),ke=ae(9937),xe=at=>{const{getPrefixCls:Wt,direction:Lt}=(0,Te.useContext)(dt.E_),{prefixCls:Tt,className:Xt}=at,jt=Wt("input-group",Tt),it=Wt("input"),[Ce,Et]=(0,ke.ZP)(it),on=De()(jt,{[`${jt}-lg`]:at.size==="large",[`${jt}-sm`]:at.size==="small",[`${jt}-compact`]:at.compact,[`${jt}-rtl`]:Lt==="rtl"},Et,Xt),Yt=(0,Te.useContext)(be.aM),lt=(0,Te.useMemo)(()=>Object.assign(Object.assign({},Yt),{isFormItemInput:!1}),[Yt]);return Ce(Te.createElement("span",{className:on,style:at.style,onMouseEnter:at.onMouseEnter,onMouseLeave:at.onMouseLeave,onFocus:at.onFocus,onBlur:at.onBlur},Te.createElement(be.aM.Provider,{value:lt},at.children)))},Me=ae(9432),Ke=ae(73331),vt=ae(15277),Pe=ae(2738),Be=ae(8654),et=ae(59412),Je=function(at,Wt){var Lt={};for(var Tt in at)Object.prototype.hasOwnProperty.call(at,Tt)&&Wt.indexOf(Tt)<0&&(Lt[Tt]=at[Tt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Tt=Object.getOwnPropertySymbols(at);Xt<Tt.length;Xt++)Wt.indexOf(Tt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(at,Tt[Xt])&&(Lt[Tt[Xt]]=at[Tt[Xt]]);return Lt};const tt=at=>at?Te.createElement(vt.Z,null):Te.createElement(Ke.Z,null),yt={click:"onClick",hover:"onMouseOver"};var It=Te.forwardRef((at,Wt)=>{const{visibilityToggle:Lt=!0}=at,Tt=typeof Lt=="object"&&Lt.visible!==void 0,[Xt,jt]=(0,Te.useState)(()=>Tt?Lt.visible:!1),it=(0,Te.useRef)(null);Te.useEffect(()=>{Tt&&jt(Lt.visible)},[Tt,Lt]);const Ce=(0,et.Z)(it),Et=()=>{const{disabled:ue}=at;ue||(Xt&&Ce(),jt(le=>{var de;const ge=!le;return typeof Lt=="object"&&((de=Lt.onVisibleChange)===null||de===void 0||de.call(Lt,ge)),ge}))},on=ue=>{const{action:le="click",iconRender:de=tt}=at,ge=yt[le]||"",se=de(Xt),Oe={[ge]:Et,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:ut=>{ut.preventDefault()},onMouseUp:ut=>{ut.preventDefault()}};return Te.cloneElement(Te.isValidElement(se)?se:Te.createElement("span",null,se),Oe)},{className:Yt,prefixCls:lt,inputPrefixCls:pt,size:Ft}=at,Sn=Je(at,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$t}=Te.useContext(dt.E_),Pn=$t("input",pt),Zt=$t("input-password",lt),an=Lt&&on(Zt),Ht=De()(Zt,Yt,{[`${Zt}-${Ft}`]:!!Ft}),ye=Object.assign(Object.assign({},(0,Pe.Z)(Sn,["suffix","iconRender","visibilityToggle"])),{type:Xt?"text":"password",className:Ht,prefixCls:Pn,suffix:an});return Ft&&(ye.size=Ft),Te.createElement(Me.Z,Object.assign({ref:(0,Be.sQ)(Wt,it)},ye))}),gt=ae(47472),st=ae(92343),ze=ae(3113),he=ae(19716),je=ae(33234),Xe=function(at,Wt){var Lt={};for(var Tt in at)Object.prototype.hasOwnProperty.call(at,Tt)&&Wt.indexOf(Tt)<0&&(Lt[Tt]=at[Tt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Tt=Object.getOwnPropertySymbols(at);Xt<Tt.length;Xt++)Wt.indexOf(Tt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(at,Tt[Xt])&&(Lt[Tt[Xt]]=at[Tt[Xt]]);return Lt},Ue=Te.forwardRef((at,Wt)=>{const{prefixCls:Lt,inputPrefixCls:Tt,className:Xt,size:jt,suffix:it,enterButton:Ce=!1,addonAfter:Et,loading:on,disabled:Yt,onSearch:lt,onChange:pt,onCompositionStart:Ft,onCompositionEnd:Sn}=at,$t=Xe(at,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Pn,direction:Zt}=Te.useContext(dt.E_),an=Te.useRef(!1),Ht=Pn("input-search",Lt),ye=Pn("input",Tt),{compactSize:ue}=(0,je.ri)(Ht,Zt),le=(0,he.Z)(Rt=>{var cn;return(cn=jt!=null?jt:ue)!==null&&cn!==void 0?cn:Rt}),de=Te.useRef(null),ge=Rt=>{Rt&&Rt.target&&Rt.type==="click"&<&<(Rt.target.value,Rt,{source:"clear"}),pt&&pt(Rt)},se=Rt=>{var cn;document.activeElement===((cn=de.current)===null||cn===void 0?void 0:cn.input)&&Rt.preventDefault()},Oe=Rt=>{var cn,ct;lt&<((ct=(cn=de.current)===null||cn===void 0?void 0:cn.input)===null||ct===void 0?void 0:ct.value,Rt,{source:"input"})},ut=Rt=>{an.current||on||Oe(Rt)},Ge=typeof Ce=="boolean"?Te.createElement(gt.Z,null):null,_e=`${Ht}-button`;let St;const bt=Ce||{},rt=bt.type&&bt.type.__ANT_BUTTON===!0;rt||bt.type==="button"?St=(0,st.Tm)(bt,Object.assign({onMouseDown:se,onClick:Rt=>{var cn,ct;(ct=(cn=bt==null?void 0:bt.props)===null||cn===void 0?void 0:cn.onClick)===null||ct===void 0||ct.call(cn,Rt),Oe(Rt)},key:"enterButton"},rt?{className:_e,size:le}:{})):St=Te.createElement(ze.ZP,{className:_e,type:Ce?"primary":void 0,size:le,disabled:Yt,key:"enterButton",onMouseDown:se,onClick:Oe,loading:on,icon:Ge},Ce),Et&&(St=[St,(0,st.Tm)(Et,{key:"addonAfter"})]);const Dt=De()(Ht,{[`${Ht}-rtl`]:Zt==="rtl",[`${Ht}-${le}`]:!!le,[`${Ht}-with-button`]:!!Ce},Xt),xn=Rt=>{an.current=!0,Ft==null||Ft(Rt)},xt=Rt=>{an.current=!1,Sn==null||Sn(Rt)};return Te.createElement(Me.Z,Object.assign({ref:(0,Be.sQ)(de,Wt),onPressEnter:ut},$t,{size:le,onCompositionStart:xn,onCompositionEnd:xt,prefixCls:ye,addonAfter:St,suffix:it,onChange:ge,className:Dt,disabled:Yt}))}),mt=ae(1643);const Le=Me.Z;Le.Group=xe,Le.Search=Ue,Le.TextArea=mt.Z,Le.Password=It;var Bt=Le},9937:function(zn,en,ae){"use strict";ae.d(en,{M1:function(){return pe},TM:function(){return st},Xy:function(){return xe},bi:function(){return vt},e5:function(){return gt},ik:function(){return Pe},nz:function(){return be},pU:function(){return ke},s7:function(){return Be},x0:function(){return Ke}});var ce=ae(17313),De=ae(74207),Te=ae(37613),dt=ae(83116);const be=ze=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:ze,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ke=ze=>({borderColor:ze.hoverBorderColor}),pe=ze=>({borderColor:ze.activeBorderColor,boxShadow:ze.activeShadow,outline:0}),xe=ze=>({color:ze.colorTextDisabled,backgroundColor:ze.colorBgContainerDisabled,borderColor:ze.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ke((0,Te.TS)(ze,{hoverBorderColor:ze.colorBorder})))}),Me=ze=>{const{paddingBlockLG:he,fontSizeLG:je,lineHeightLG:Xe,borderRadiusLG:Qe,paddingInlineLG:Ue}=ze;return{padding:`${he}px ${Ue}px`,fontSize:je,lineHeight:Xe,borderRadius:Qe}},Ke=ze=>({padding:`${ze.paddingBlockSM}px ${ze.paddingInlineSM}px`,borderRadius:ze.borderRadiusSM}),vt=(ze,he)=>{const{componentCls:je,colorError:Xe,colorWarning:Qe,errorActiveShadow:Ue,warningActiveShadow:mt,colorErrorBorderHover:Le,colorWarningBorderHover:Bt}=ze;return{[`&-status-error:not(${he}-disabled):not(${he}-borderless)${he}`]:{borderColor:Xe,"&:hover":{borderColor:Le},"&:focus, &-focused":Object.assign({},pe((0,Te.TS)(ze,{activeBorderColor:Xe,activeShadow:Ue}))),[`${je}-prefix, ${je}-suffix`]:{color:Xe}},[`&-status-warning:not(${he}-disabled):not(${he}-borderless)${he}`]:{borderColor:Qe,"&:hover":{borderColor:Bt},"&:focus, &-focused":Object.assign({},pe((0,Te.TS)(ze,{activeBorderColor:Qe,activeShadow:mt}))),[`${je}-prefix, ${je}-suffix`]:{color:Qe}}}},Pe=ze=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ze.paddingBlock}px ${ze.paddingInline}px`,color:ze.colorText,fontSize:ze.fontSize,lineHeight:ze.lineHeight,backgroundColor:ze.colorBgContainer,backgroundImage:"none",borderWidth:ze.lineWidth,borderStyle:ze.lineType,borderColor:ze.colorBorder,borderRadius:ze.borderRadius,transition:`all ${ze.motionDurationMid}`},be(ze.colorTextPlaceholder)),{"&:hover":Object.assign({},ke(ze)),"&:focus, &-focused":Object.assign({},pe(ze)),"&-disabled, &[disabled]":Object.assign({},xe(ze)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:ze.controlHeight,lineHeight:ze.lineHeight,verticalAlign:"bottom",transition:`all ${ze.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Me(ze)),"&-sm":Object.assign({},Ke(ze)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Be=ze=>{const{componentCls:he,antCls:je}=ze;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:ze.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${he}, &-lg > ${he}-group-addon`]:Object.assign({},Me(ze)),[`&-sm ${he}, &-sm > ${he}-group-addon`]:Object.assign({},Ke(ze)),[`&-lg ${je}-select-single ${je}-select-selector`]:{height:ze.controlHeightLG},[`&-sm ${je}-select-single ${je}-select-selector`]:{height:ze.controlHeightSM},[`> ${he}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${he}-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 ${ze.paddingInline}px`,color:ze.colorText,fontWeight:"normal",fontSize:ze.fontSize,textAlign:"center",backgroundColor:ze.colorFillAlter,border:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`,borderRadius:ze.borderRadius,transition:`all ${ze.motionDurationSlow}`,lineHeight:1,[`${je}-select`]:{margin:`-${ze.paddingBlock+1}px -${ze.paddingInline}px`,[`&${je}-select-single:not(${je}-select-customize-input)`]:{[`${je}-select-selector`]:{backgroundColor:"inherit",border:`${ze.lineWidth}px ${ze.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${je}-select-selector`]:{color:ze.colorPrimary}}},[`${je}-cascader-picker`]:{margin:`-9px -${ze.paddingInline}px`,backgroundColor:"transparent",[`${je}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${he}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${he}-search-with-button &`]:{zIndex:0}}},[`> ${he}:first-child, ${he}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${je}-select ${je}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${he}-affix-wrapper`]:{[`&:not(:first-child) ${he}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${he}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${he}:last-child, ${he}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${je}-select ${je}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${he}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${he}-search &`]:{borderStartStartRadius:ze.borderRadius,borderEndStartRadius:ze.borderRadius}},[`&:not(:first-child), ${he}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${he}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ce.dF)()),{[`${he}-group-addon, ${he}-group-wrap, > ${he}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:ze.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${he}-affix-wrapper,
|
|
|
& > ${he}-number-affix-wrapper,
|
|
|
& > ${je}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-ze.lineWidth,borderInlineEndWidth:ze.lineWidth},[`${he}`]:{float:"none"},[`& > ${je}-select > ${je}-select-selector,
|
|
|
& > ${je}-select-auto-complete ${he},
|
|
|
& > ${je}-cascader-picker ${he},
|
|
|
& > ${he}-group-wrapper ${he}`]:{borderInlineEndWidth:ze.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${je}-select-focused`]:{zIndex:1},[`& > ${je}-select > ${je}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${je}-select:first-child > ${je}-select-selector,
|
|
|
& > ${je}-select-auto-complete:first-child ${he},
|
|
|
& > ${je}-cascader-picker:first-child ${he}`]:{borderStartStartRadius:ze.borderRadius,borderEndStartRadius:ze.borderRadius},[`& > *:last-child,
|
|
|
& > ${je}-select:last-child > ${je}-select-selector,
|
|
|
& > ${je}-cascader-picker:last-child ${he},
|
|
|
& > ${je}-cascader-picker-focused:last-child ${he}`]:{borderInlineEndWidth:ze.lineWidth,borderStartEndRadius:ze.borderRadius,borderEndEndRadius:ze.borderRadius},[`& > ${je}-select-auto-complete ${he}`]:{verticalAlign:"top"},[`${he}-group-wrapper + ${he}-group-wrapper`]:{marginInlineStart:-ze.lineWidth,[`${he}-affix-wrapper`]:{borderRadius:0}},[`${he}-group-wrapper:not(:last-child)`]:{[`&${he}-search > ${he}-group`]:{[`& > ${he}-group-addon > ${he}-search-button`]:{borderRadius:0},[`& > ${he}`]:{borderStartStartRadius:ze.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ze.borderRadius}}}})}},et=ze=>{const{componentCls:he,controlHeightSM:je,lineWidth:Xe}=ze,Ue=(je-Xe*2-16)/2;return{[he]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(ze)),Pe(ze)),vt(ze,he)),{'&[type="color"]':{height:ze.controlHeight,[`&${he}-lg`]:{height:ze.controlHeightLG},[`&${he}-sm`]:{height:je,paddingTop:Ue,paddingBottom:Ue}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Je=ze=>{const{componentCls:he}=ze;return{[`${he}-clear-icon`]:{margin:0,color:ze.colorTextQuaternary,fontSize:ze.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${ze.motionDurationSlow}`,"&:hover":{color:ze.colorTextTertiary},"&:active":{color:ze.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ze.inputAffixPadding}px`}}}},tt=ze=>{const{componentCls:he,inputAffixPadding:je,colorTextDescription:Xe,motionDurationSlow:Qe,colorIcon:Ue,colorIconHover:mt,iconCls:Le}=ze;return{[`${he}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pe(ze)),{display:"inline-flex",[`&:not(${he}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ke(ze)),{zIndex:1,[`${he}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${he}[disabled]`]:{background:"transparent"}},[`> input${he}`]:{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"'},[`${he}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:ze.paddingXS}},"&-show-count-suffix":{color:Xe},"&-show-count-has-suffix":{marginInlineEnd:ze.paddingXXS},"&-prefix":{marginInlineEnd:je},"&-suffix":{marginInlineStart:je}}}),Je(ze)),{[`${Le}${he}-password-icon`]:{color:Ue,cursor:"pointer",transition:`all ${Qe}`,"&:hover":{color:mt}}}),vt(ze,`${he}-affix-wrapper`))}},yt=ze=>{const{componentCls:he,colorError:je,colorWarning:Xe,borderRadiusLG:Qe,borderRadiusSM:Ue}=ze;return{[`${he}-group`]:Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(ze)),Be(ze)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${he}-group-addon`]:{borderRadius:Qe,fontSize:ze.fontSizeLG}},"&-sm":{[`${he}-group-addon`]:{borderRadius:Ue}},"&-status-error":{[`${he}-group-addon`]:{color:je,borderColor:je}},"&-status-warning":{[`${he}-group-addon`]:{color:Xe,borderColor:Xe}},"&-disabled":{[`${he}-group-addon`]:Object.assign({},xe(ze))},[`&:not(${he}-compact-first-item):not(${he}-compact-last-item)${he}-compact-item`]:{[`${he}, ${he}-group-addon`]:{borderRadius:0}},[`&:not(${he}-compact-last-item)${he}-compact-first-item`]:{[`${he}, ${he}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${he}-compact-first-item)${he}-compact-last-item`]:{[`${he}, ${he}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},wt=ze=>{const{componentCls:he,antCls:je}=ze,Xe=`${he}-search`;return{[Xe]:{[`${he}`]:{"&:hover, &:focus":{borderColor:ze.colorPrimaryHover,[`+ ${he}-group-addon ${Xe}-button:not(${je}-btn-primary)`]:{borderInlineStartColor:ze.colorPrimaryHover}}},[`${he}-affix-wrapper`]:{borderRadius:0},[`${he}-lg`]:{lineHeight:ze.lineHeightLG-2e-4},[`> ${he}-group`]:{[`> ${he}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Xe}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:ze.borderRadius,borderEndEndRadius:ze.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Xe}-button:not(${je}-btn-primary)`]:{color:ze.colorTextDescription,"&:hover":{color:ze.colorPrimaryHover},"&:active":{color:ze.colorPrimaryActive},[`&${je}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Xe}-button`]:{height:ze.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Xe}-button`]:{height:ze.controlHeightLG},[`&-small ${Xe}-button`]:{height:ze.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${he}-compact-item`]:{[`&:not(${he}-compact-last-item)`]:{[`${he}-group-addon`]:{[`${he}-search-button`]:{marginInlineEnd:-ze.lineWidth,borderRadius:0}}},[`&:not(${he}-compact-first-item)`]:{[`${he},${he}-affix-wrapper`]:{borderRadius:0}},[`> ${he}-group-addon ${he}-search-button,
|
|
|
> ${he},
|
|
|
${he}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${he}-affix-wrapper-focused`]:{zIndex:2}}}}},It=ze=>{const{componentCls:he,paddingLG:je}=ze,Xe=`${he}-textarea`;return{[Xe]:{position:"relative","&-show-count":{[`> ${he}`]:{height:"100%"},[`${he}-data-count`]:{position:"absolute",bottom:-ze.fontSize*ze.lineHeight,insetInlineEnd:0,color:ze.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${he}`]:{paddingInlineEnd:je}},[`&-affix-wrapper${Xe}-has-feedback`]:{[`${he}`]:{paddingInlineEnd:je}},[`&-affix-wrapper${he}-affix-wrapper`]:{padding:0,[`> textarea${he}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${he}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${he}-clear-icon`]:{position:"absolute",insetInlineEnd:ze.paddingXS,insetBlockStart:ze.paddingXS},[`${Xe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ze.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function gt(ze){return(0,Te.TS)(ze,{inputAffixPadding:ze.paddingXXS})}const st=ze=>{const{controlHeight:he,fontSize:je,lineHeight:Xe,lineWidth:Qe,controlHeightSM:Ue,controlHeightLG:mt,fontSizeLG:Le,lineHeightLG:Bt,paddingSM:at,controlPaddingHorizontalSM:Wt,controlPaddingHorizontal:Lt,colorFillAlter:Tt,colorPrimaryHover:Xt,controlOutlineWidth:jt,controlOutline:it,colorErrorOutline:Ce,colorWarningOutline:Et}=ze;return{paddingBlock:Math.max(Math.round((he-je*Xe)/2*10)/10-Qe,3),paddingBlockSM:Math.max(Math.round((Ue-je*Xe)/2*10)/10-Qe,0),paddingBlockLG:Math.ceil((mt-Le*Bt)/2*10)/10-Qe,paddingInline:at-Qe,paddingInlineSM:Wt-Qe,paddingInlineLG:Lt-Qe,addonBg:Tt,activeBorderColor:Xt,hoverBorderColor:Xt,activeShadow:`0 0 0 ${jt}px ${it}`,errorActiveShadow:`0 0 0 ${jt}px ${Ce}`,warningActiveShadow:`0 0 0 ${jt}px ${Et}`}};en.ZP=(0,dt.Z)("Input",ze=>{const he=(0,Te.TS)(ze,gt(ze));return[et(he),It(he),tt(he),yt(he),wt(he),(0,De.c)(he)]},st)},45818:function(zn,en,ae){"use strict";ae.d(en,{D:function(){return gt},Z:function(){return he}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(Xe,Qe){return De.createElement(be.Z,(0,ce.Z)({},Xe,{ref:Qe,icon:dt}))},pe=De.forwardRef(ke),xe=pe,Me=ae(33853),Ke=ae(38819),vt=ae(92310),Pe=ae.n(vt),Be=ae(2738),Je=je=>!isNaN(parseFloat(je))&&isFinite(je),tt=ae(36355),yt=ae(84966),wt=function(je,Xe){var Qe={};for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&Xe.indexOf(Ue)<0&&(Qe[Ue]=je[Ue]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Ue=Object.getOwnPropertySymbols(je);mt<Ue.length;mt++)Xe.indexOf(Ue[mt])<0&&Object.prototype.propertyIsEnumerable.call(je,Ue[mt])&&(Qe[Ue[mt]]=je[Ue[mt]]);return Qe};const It={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},gt=De.createContext({}),st=(()=>{let je=0;return function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return je+=1,`${Xe}${je}`}})();var he=De.forwardRef((je,Xe)=>{const{prefixCls:Qe,className:Ue,trigger:mt,children:Le,defaultCollapsed:Bt=!1,theme:at="dark",style:Wt={},collapsible:Lt=!1,reverseArrow:Tt=!1,width:Xt=200,collapsedWidth:jt=80,zeroWidthTriggerStyle:it,breakpoint:Ce,onCollapse:Et,onBreakpoint:on}=je,Yt=wt(je,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:lt}=(0,De.useContext)(yt.Gs),[pt,Ft]=(0,De.useState)("collapsed"in je?je.collapsed:Bt),[Sn,$t]=(0,De.useState)(!1);(0,De.useEffect)(()=>{"collapsed"in je&&Ft(je.collapsed)},[je.collapsed]);const Pn=(le,de)=>{"collapsed"in je||Ft(le),Et==null||Et(le,de)},Zt=(0,De.useRef)();Zt.current=le=>{$t(le.matches),on==null||on(le.matches),pt!==le.matches&&Pn(le.matches,"responsive")},(0,De.useEffect)(()=>{function le(ge){return Zt.current(ge)}let de;if(typeof window!="undefined"){const{matchMedia:ge}=window;if(ge&&Ce&&Ce in It){de=ge(`(max-width: ${It[Ce]})`);try{de.addEventListener("change",le)}catch(se){de.addListener(le)}le(de)}}return()=>{try{de==null||de.removeEventListener("change",le)}catch(ge){de==null||de.removeListener(le)}}},[Ce]),(0,De.useEffect)(()=>{const le=st("ant-sider-");return lt.addSider(le),()=>lt.removeSider(le)},[]);const an=()=>{Pn(!pt,"clickTrigger")},{getPrefixCls:Ht}=(0,De.useContext)(tt.E_),ye=()=>{const le=Ht("layout-sider",Qe),de=(0,Be.Z)(Yt,["collapsed"]),ge=pt?jt:Xt,se=Je(ge)?`${ge}px`:String(ge),Oe=parseFloat(String(jt||0))===0?De.createElement("span",{onClick:an,className:Pe()(`${le}-zero-width-trigger`,`${le}-zero-width-trigger-${Tt?"right":"left"}`),style:it},mt||De.createElement(xe,null)):null,_e={expanded:Tt?De.createElement(Ke.Z,null):De.createElement(Me.Z,null),collapsed:Tt?De.createElement(Me.Z,null):De.createElement(Ke.Z,null)}[pt?"collapsed":"expanded"],St=mt!==null?Oe||De.createElement("div",{className:`${le}-trigger`,onClick:an,style:{width:se}},mt||_e):null,bt=Object.assign(Object.assign({},Wt),{flex:`0 0 ${se}`,maxWidth:se,minWidth:se,width:se}),rt=Pe()(le,`${le}-${at}`,{[`${le}-collapsed`]:!!pt,[`${le}-has-trigger`]:Lt&&mt!==null&&!Oe,[`${le}-below`]:!!Sn,[`${le}-zero-width`]:parseFloat(se)===0},Ue);return De.createElement("aside",Object.assign({className:rt},de,{style:bt,ref:Xe}),De.createElement("div",{className:`${le}-children`},Le),Lt||Sn&&Oe?St:null)},ue=De.useMemo(()=>({siderCollapsed:pt}),[pt]);return De.createElement(gt.Provider,{value:ue},ye())})},84966:function(zn,en,ae){"use strict";ae.d(en,{VY:function(){return gt},$_:function(){return It},h4:function(){return wt},Gs:function(){return Be},ZP:function(){return st}});var ce=ae(77654),De=ae(92310),Te=ae.n(De),dt=ae(2738),be=ae(59301),ke=ae(36355),pe=ae(83116),Me=ze=>{const{componentCls:he,bodyBg:je,lightSiderBg:Xe,lightTriggerBg:Qe,lightTriggerColor:Ue}=ze;return{[`${he}-sider-light`]:{background:Xe,[`${he}-sider-trigger`]:{color:Ue,background:Qe},[`${he}-sider-zero-width-trigger`]:{color:Ue,background:Qe,border:`1px solid ${je}`,borderInlineStart:0}}}};const Ke=ze=>{const{antCls:he,componentCls:je,colorText:Xe,triggerColor:Qe,footerBg:Ue,triggerBg:mt,headerHeight:Le,headerPadding:Bt,headerColor:at,footerPadding:Wt,triggerHeight:Lt,zeroTriggerHeight:Tt,zeroTriggerWidth:Xt,motionDurationMid:jt,motionDurationSlow:it,fontSize:Ce,borderRadius:Et,bodyBg:on,headerBg:Yt,siderBg:lt}=ze;return{[je]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:on,"&, *":{boxSizing:"border-box"},[`&${je}-has-sider`]:{flexDirection:"row",[`> ${je}, > ${je}-content`]:{width:0}},[`${je}-header, &${je}-footer`]:{flex:"0 0 auto"},[`${je}-sider`]:{position:"relative",minWidth:0,background:lt,transition:`all ${jt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${he}-menu${he}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Lt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Lt,color:Qe,lineHeight:`${Lt}px`,textAlign:"center",background:mt,cursor:"pointer",transition:`all ${jt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Le,insetInlineEnd:-Xt,zIndex:1,width:Xt,height:Tt,color:Qe,fontSize:ze.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:lt,borderStartStartRadius:0,borderStartEndRadius:Et,borderEndEndRadius:Et,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Xt,borderStartStartRadius:Et,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Et}}}}},Me(ze)),{"&-rtl":{direction:"rtl"}}),[`${je}-header`]:{height:Le,padding:Bt,color:at,lineHeight:`${Le}px`,background:Yt,[`${he}-menu`]:{lineHeight:"inherit"}},[`${je}-footer`]:{padding:Wt,color:Xe,fontSize:Ce,background:Ue},[`${je}-content`]:{flex:"auto",minHeight:0}}};var vt=(0,pe.Z)("Layout",ze=>[Ke(ze)],ze=>{const{colorBgLayout:he,controlHeight:je,controlHeightLG:Xe,colorText:Qe,controlHeightSM:Ue,marginXXS:mt,colorTextLightSolid:Le,colorBgContainer:Bt}=ze,at=Xe*1.25;return{colorBgHeader:"#001529",colorBgBody:he,colorBgTrigger:"#002140",bodyBg:he,headerBg:"#001529",headerHeight:je*2,headerPadding:`0 ${at}px`,headerColor:Qe,footerPadding:`${Ue}px ${at}px`,footerBg:he,siderBg:"#001529",triggerHeight:Xe+mt*2,triggerBg:"#002140",triggerColor:Le,zeroTriggerWidth:Xe,zeroTriggerHeight:Xe,lightSiderBg:Bt,lightTriggerBg:Bt,lightTriggerColor:Qe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Pe=function(ze,he){var je={};for(var Xe in ze)Object.prototype.hasOwnProperty.call(ze,Xe)&&he.indexOf(Xe)<0&&(je[Xe]=ze[Xe]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Xe=Object.getOwnPropertySymbols(ze);Qe<Xe.length;Qe++)he.indexOf(Xe[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ze,Xe[Qe])&&(je[Xe[Qe]]=ze[Xe[Qe]]);return je};const Be=be.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function et(ze){let{suffixCls:he,tagName:je,displayName:Xe}=ze;return Qe=>be.forwardRef((mt,Le)=>be.createElement(Qe,Object.assign({ref:Le,suffixCls:he,tagName:je},mt)))}const Je=be.forwardRef((ze,he)=>{const{prefixCls:je,suffixCls:Xe,className:Qe,tagName:Ue}=ze,mt=Pe(ze,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Le}=be.useContext(ke.E_),Bt=Le("layout",je),[at,Wt]=vt(Bt),Lt=Xe?`${Bt}-${Xe}`:Bt;return at(be.createElement(Ue,Object.assign({className:Te()(je||Lt,Qe,Wt),ref:he},mt)))}),tt=be.forwardRef((ze,he)=>{const{direction:je}=be.useContext(ke.E_),[Xe,Qe]=be.useState([]),{prefixCls:Ue,className:mt,rootClassName:Le,children:Bt,hasSider:at,tagName:Wt,style:Lt}=ze,Tt=Pe(ze,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Xt=(0,dt.Z)(Tt,["suffixCls"]),{getPrefixCls:jt,layout:it}=be.useContext(ke.E_),Ce=jt("layout",Ue),[Et,on]=vt(Ce),Yt=Te()(Ce,{[`${Ce}-has-sider`]:typeof at=="boolean"?at:Xe.length>0,[`${Ce}-rtl`]:je==="rtl"},it==null?void 0:it.className,mt,Le,on),lt=be.useMemo(()=>({siderHook:{addSider:pt=>{Qe(Ft=>[].concat((0,ce.Z)(Ft),[pt]))},removeSider:pt=>{Qe(Ft=>Ft.filter(Sn=>Sn!==pt))}}}),[]);return Et(be.createElement(Be.Provider,{value:lt},be.createElement(Wt,Object.assign({ref:he,className:Yt,style:Object.assign(Object.assign({},it==null?void 0:it.style),Lt)},Xt),Bt)))}),yt=et({tagName:"div",displayName:"Layout"})(tt),wt=et({suffixCls:"header",tagName:"header",displayName:"Header"})(Je),It=et({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Je),gt=et({suffixCls:"content",tagName:"main",displayName:"Content"})(Je);var st=yt},40875:function(zn,en,ae){"use strict";ae.d(en,{J:function(){return ke}});var ce=ae(59301),De=ae(33234),Te=ae(70425),dt=function(pe,xe){var Me={};for(var Ke in pe)Object.prototype.hasOwnProperty.call(pe,Ke)&&xe.indexOf(Ke)<0&&(Me[Ke]=pe[Ke]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Ke=Object.getOwnPropertySymbols(pe);vt<Ke.length;vt++)xe.indexOf(Ke[vt])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ke[vt])&&(Me[Ke[vt]]=pe[Ke[vt]]);return Me};const be=ce.createContext(null),ke=ce.forwardRef((pe,xe)=>{const{children:Me}=pe,Ke=dt(pe,["children"]),vt=ce.useContext(be),Pe=ce.useMemo(()=>Object.assign(Object.assign({},vt),Ke),[vt,Ke.prefixCls,Ke.mode,Ke.selectable]);return ce.createElement(be.Provider,{value:Pe},ce.createElement(De.BR,null,(0,Te.supportNodeRef)(Me)?ce.cloneElement(Me,{ref:xe}):Me))});en.Z=be},20834:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return ue}});var ce=ae(15285),De=ae(59301),Te=ae(45818),dt=ae(92310),be=ae.n(dt),ke=ae(36355),pe=function(le,de){var ge={};for(var se in le)Object.prototype.hasOwnProperty.call(le,se)&&de.indexOf(se)<0&&(ge[se]=le[se]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,se=Object.getOwnPropertySymbols(le);Oe<se.length;Oe++)de.indexOf(se[Oe])<0&&Object.prototype.propertyIsEnumerable.call(le,se[Oe])&&(ge[se[Oe]]=le[se[Oe]]);return ge},Me=le=>{const{prefixCls:de,className:ge,dashed:se}=le,Oe=pe(le,["prefixCls","className","dashed"]),{getPrefixCls:ut}=De.useContext(ke.E_),Ge=ut("menu",de),_e=be()({[`${Ge}-item-divider-dashed`]:!!se},ge);return De.createElement(ce.iz,Object.assign({className:_e},Oe))},Ke=ae(11592),vt=ae(2738),Pe=ae(6848),Be=ae(92343),Je=(0,De.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),yt=le=>{var de;const{className:ge,children:se,icon:Oe,title:ut,danger:Ge}=le,{prefixCls:_e,firstLevel:St,direction:bt,disableMenuItemTitleTooltip:rt,inlineCollapsed:Dt}=De.useContext(Je),xn=Ve=>{const Kt=De.createElement("span",{className:`${_e}-title-content`},se);return(!Oe||(0,Be.l$)(se)&&se.type==="span")&&se&&Ve&&St&&typeof se=="string"?De.createElement("div",{className:`${_e}-inline-collapsed-noicon`},se.charAt(0)):Kt},{siderCollapsed:xt}=De.useContext(Te.D);let Rt=ut;typeof ut=="undefined"?Rt=St?se:"":ut===!1&&(Rt="");const cn={title:Rt};!xt&&!Dt&&(cn.title=null,cn.open=!1);const ct=(0,Ke.Z)(se).length;let Ae=De.createElement(ce.ck,Object.assign({},(0,vt.Z)(le,["title","icon","danger"]),{className:be()({[`${_e}-item-danger`]:Ge,[`${_e}-item-only-child`]:(Oe?ct+1:ct)===1},ge),title:typeof ut=="string"?ut:void 0}),(0,Be.Tm)(Oe,{className:be()((0,Be.l$)(Oe)?(de=Oe.props)===null||de===void 0?void 0:de.className:"",`${_e}-item-icon`)}),xn(Dt));return rt||(Ae=De.createElement(Pe.Z,Object.assign({},cn,{placement:bt==="rtl"?"left":"right",overlayClassName:`${_e}-inline-collapsed-tooltip`}),Ae)),Ae},It=le=>{var de;const{popupClassName:ge,icon:se,title:Oe,theme:ut}=le,Ge=De.useContext(Je),{prefixCls:_e,inlineCollapsed:St,theme:bt}=Ge,rt=(0,ce.Xl)();let Dt;if(!se)Dt=St&&!rt.length&&Oe&&typeof Oe=="string"?De.createElement("div",{className:`${_e}-inline-collapsed-noicon`},Oe.charAt(0)):De.createElement("span",{className:`${_e}-title-content`},Oe);else{const xt=(0,Be.l$)(Oe)&&Oe.type==="span";Dt=De.createElement(De.Fragment,null,(0,Be.Tm)(se,{className:be()((0,Be.l$)(se)?(de=se.props)===null||de===void 0?void 0:de.className:"",`${_e}-item-icon`)}),xt?Oe:De.createElement("span",{className:`${_e}-title-content`},Oe))}const xn=De.useMemo(()=>Object.assign(Object.assign({},Ge),{firstLevel:!1}),[Ge]);return De.createElement(Je.Provider,{value:xn},De.createElement(ce.Wd,Object.assign({},(0,vt.Z)(le,["icon"]),{title:Dt,popupClassName:be()(_e,ge,`${_e}-${ut||bt}`)})))},gt=ae(18785),st=ae(70425),ze=ae(62892),he=ae(40875),je=function(le,de){var ge={};for(var se in le)Object.prototype.hasOwnProperty.call(le,se)&&de.indexOf(se)<0&&(ge[se]=le[se]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,se=Object.getOwnPropertySymbols(le);Oe<se.length;Oe++)de.indexOf(se[Oe])<0&&Object.prototype.propertyIsEnumerable.call(le,se[Oe])&&(ge[se[Oe]]=le[se[Oe]]);return ge};function Xe(le){return(le||[]).map((de,ge)=>{if(de&&typeof de=="object"){const se=de,{label:Oe,children:ut,key:Ge,type:_e}=se,St=je(se,["label","children","key","type"]),bt=Ge!=null?Ge:`tmp-${ge}`;return ut||_e==="group"?_e==="group"?De.createElement(ce.BW,Object.assign({key:bt},St,{title:Oe}),Xe(ut)):De.createElement(It,Object.assign({key:bt},St,{title:Oe}),Xe(ut)):_e==="divider"?De.createElement(Me,Object.assign({key:bt},St)):De.createElement(yt,Object.assign({key:bt},St),Oe)}return null}).filter(de=>de)}function Qe(le){return De.useMemo(()=>le&&Xe(le),[le])}var Ue=ae(64993),mt=ae(17313),Le=ae(8378),Bt=ae(13826),at=ae(29878),Wt=ae(83116),Lt=ae(37613),Xt=le=>{const{componentCls:de,motionDurationSlow:ge,horizontalLineHeight:se,colorSplit:Oe,lineWidth:ut,lineType:Ge,itemPaddingInline:_e}=le;return{[`${de}-horizontal`]:{lineHeight:se,border:0,borderBottom:`${ut}px ${Ge} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${de}-item, ${de}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:_e},[`> ${de}-item:hover,
|
|
|
> ${de}-item-active,
|
|
|
> ${de}-submenu ${de}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${de}-item, ${de}-submenu-title`]:{transition:[`border-color ${ge}`,`background ${ge}`].join(",")},[`${de}-submenu-arrow`]:{display:"none"}}}},it=le=>{let{componentCls:de,menuArrowOffset:ge}=le;return{[`${de}-rtl`]:{direction:"rtl"},[`${de}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${de}-rtl${de}-vertical,
|
|
|
${de}-submenu-rtl ${de}-vertical`]:{[`${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ge})`},"&::after":{transform:`rotate(45deg) translateY(${ge})`}}}}};const Ce=le=>Object.assign({},(0,mt.oN)(le));var on=(le,de)=>{const{componentCls:ge,itemColor:se,itemSelectedColor:Oe,groupTitleColor:ut,itemBg:Ge,subMenuItemBg:_e,itemSelectedBg:St,activeBarHeight:bt,activeBarWidth:rt,activeBarBorderWidth:Dt,motionDurationSlow:xn,motionEaseInOut:xt,motionEaseOut:Rt,itemPaddingInline:cn,motionDurationMid:ct,itemHoverColor:Ae,lineType:Ve,colorSplit:Kt,itemDisabledColor:Gt,dangerItemColor:hn,dangerItemHoverColor:On,dangerItemSelectedColor:Ln,dangerItemActiveBg:Kn,dangerItemSelectedBg:tr,itemHoverBg:gr,itemActiveBg:Un,menuSubMenuBg:Cr,horizontalItemSelectedColor:Rr,horizontalItemSelectedBg:$r,horizontalItemBorderRadius:vr,horizontalItemHoverBg:Er,popupBg:Hr}=le;return{[`${ge}-${de}, ${ge}-${de} > ${ge}`]:{color:se,background:Ge,[`&${ge}-root:focus-visible`]:Object.assign({},Ce(le)),[`${ge}-item-group-title`]:{color:ut},[`${ge}-submenu-selected`]:{[`> ${ge}-submenu-title`]:{color:Oe}},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{color:`${Gt} !important`},[`${ge}-item:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{[`&:hover, > ${ge}-submenu-title:hover`]:{color:Ae}},[`&:not(${ge}-horizontal)`]:{[`${ge}-item:not(${ge}-item-selected)`]:{"&:hover":{backgroundColor:gr},"&:active":{backgroundColor:Un}},[`${ge}-submenu-title`]:{"&:hover":{backgroundColor:gr},"&:active":{backgroundColor:Un}}},[`${ge}-item-danger`]:{color:hn,[`&${ge}-item:hover`]:{[`&:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{color:On}},[`&${ge}-item:active`]:{background:Kn}},[`${ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ge}-item-selected`]:{color:Oe,[`&${ge}-item-danger`]:{color:Ln},"a, a:hover":{color:"inherit"}},[`& ${ge}-item-selected`]:{backgroundColor:St,[`&${ge}-item-danger`]:{backgroundColor:tr}},[`${ge}-item, ${ge}-submenu-title`]:{[`&:not(${ge}-item-disabled):focus-visible`]:Object.assign({},Ce(le))},[`&${ge}-submenu > ${ge}`]:{backgroundColor:Cr},[`&${ge}-popup > ${ge}`]:{backgroundColor:Hr},[`&${ge}-horizontal`]:Object.assign(Object.assign({},de==="dark"?{borderBottom:0}:{}),{[`> ${ge}-item, > ${ge}-submenu`]:{top:Dt,marginTop:-Dt,marginBottom:0,borderRadius:vr,"&::after":{position:"absolute",insetInline:cn,bottom:0,borderBottom:`${bt}px solid transparent`,transition:`border-color ${xn} ${xt}`,content:'""'},"&:hover, &-active, &-open":{background:Er,"&::after":{borderBottomWidth:bt,borderBottomColor:Rr}},"&-selected":{color:Rr,backgroundColor:$r,"&:hover":{backgroundColor:$r},"&::after":{borderBottomWidth:bt,borderBottomColor:Rr}}}}),[`&${ge}-root`]:{[`&${ge}-inline, &${ge}-vertical`]:{borderInlineEnd:`${Dt}px ${Ve} ${Kt}`}},[`&${ge}-inline`]:{[`${ge}-sub${ge}-inline`]:{background:_e},[`${ge}-item, ${ge}-submenu-title`]:Dt&&rt?{width:`calc(100% + ${Dt}px)`}:{},[`${ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${rt}px solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ct} ${Rt}`,`opacity ${ct} ${Rt}`].join(","),content:'""'},[`&${ge}-item-danger`]:{"&::after":{borderInlineEndColor:Ln}}},[`${ge}-selected, ${ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ct} ${xt}`,`opacity ${ct} ${xt}`].join(",")}}}}}};const Yt=le=>{const{componentCls:de,itemHeight:ge,itemMarginInline:se,padding:Oe,menuArrowSize:ut,marginXS:Ge,itemMarginBlock:_e}=le,St=Oe+ut+Ge;return{[`${de}-item`]:{position:"relative",overflow:"hidden"},[`${de}-item, ${de}-submenu-title`]:{height:ge,lineHeight:`${ge}px`,paddingInline:Oe,overflow:"hidden",textOverflow:"ellipsis",marginInline:se,marginBlock:_e,width:`calc(100% - ${se*2}px)`},[`> ${de}-item,
|
|
|
> ${de}-submenu > ${de}-submenu-title`]:{height:ge,lineHeight:`${ge}px`},[`${de}-item-group-list ${de}-submenu-title,
|
|
|
${de}-submenu-title`]:{paddingInlineEnd:St}}};var pt=le=>{const{componentCls:de,iconCls:ge,itemHeight:se,colorTextLightSolid:Oe,dropdownWidth:ut,controlHeightLG:Ge,motionDurationMid:_e,motionEaseOut:St,paddingXL:bt,itemMarginInline:rt,fontSizeLG:Dt,motionDurationSlow:xn,paddingXS:xt,boxShadowSecondary:Rt,collapsedWidth:cn,collapsedIconSize:ct}=le,Ae={height:se,lineHeight:`${se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[de]:{"&-inline, &-vertical":Object.assign({[`&${de}-root`]:{boxShadow:"none"}},Yt(le))},[`${de}-submenu-popup`]:{[`${de}-vertical`]:Object.assign(Object.assign({},Yt(le)),{boxShadow:Rt})}},{[`${de}-submenu-popup ${de}-vertical${de}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${Ge*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${de}-inline`]:{width:"100%",[`&${de}-root`]:{[`${de}-item, ${de}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${xn}`,`background ${xn}`,`padding ${_e} ${St}`].join(","),[`> ${de}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${de}-sub${de}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${de}-submenu > ${de}-submenu-title`]:Ae,[`& ${de}-item-group-title`]:{paddingInlineStart:bt}},[`${de}-item`]:Ae}},{[`${de}-inline-collapsed`]:{width:cn,[`&${de}-root`]:{[`${de}-item, ${de}-submenu ${de}-submenu-title`]:{[`> ${de}-inline-collapsed-noicon`]:{fontSize:Dt,textAlign:"center"}}},[`> ${de}-item,
|
|
|
> ${de}-item-group > ${de}-item-group-list > ${de}-item,
|
|
|
> ${de}-item-group > ${de}-item-group-list > ${de}-submenu > ${de}-submenu-title,
|
|
|
> ${de}-submenu > ${de}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Dt/2}px - ${rt}px)`,textOverflow:"clip",[`
|
|
|
${de}-submenu-arrow,
|
|
|
${de}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${de}-item-icon, ${ge}`]:{margin:0,fontSize:ct,lineHeight:`${se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${de}-item-icon, ${ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${de}-item-icon, ${ge}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${de}-item-group-title`]:Object.assign(Object.assign({},mt.vS),{paddingInline:xt})}}]};const Ft=le=>{const{componentCls:de,motionDurationSlow:ge,motionDurationMid:se,motionEaseInOut:Oe,motionEaseOut:ut,iconCls:Ge,iconSize:_e,iconMarginInlineEnd:St}=le;return{[`${de}-item, ${de}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ge}`,`background ${ge}`,`padding ${ge} ${Oe}`].join(","),[`${de}-item-icon, ${Ge}`]:{minWidth:_e,fontSize:_e,transition:[`font-size ${se} ${ut}`,`margin ${ge} ${Oe}`,`color ${ge}`].join(","),"+ span":{marginInlineStart:St,opacity:1,transition:[`opacity ${ge} ${Oe}`,`margin ${ge}`,`color ${ge}`].join(",")}},[`${de}-item-icon`]:Object.assign({},(0,mt.Ro)()),[`&${de}-item-only-child`]:{[`> ${Ge}, > ${de}-item-icon`]:{marginInlineEnd:0}}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${de}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Sn=le=>{const{componentCls:de,motionDurationSlow:ge,motionEaseInOut:se,borderRadius:Oe,menuArrowSize:ut,menuArrowOffset:Ge}=le;return{[`${de}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:le.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ge} ${se}, opacity ${ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${ge} ${se}`,`transform ${ge} ${se}`,`top ${ge} ${se}`,`color ${ge} ${se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(-45deg) translateY(${Ge})`}}}}},$t=le=>{const{antCls:de,componentCls:ge,fontSize:se,motionDurationSlow:Oe,motionDurationMid:ut,motionEaseInOut:Ge,paddingXS:_e,padding:St,colorSplit:bt,lineWidth:rt,zIndexPopup:Dt,borderRadiusLG:xn,subMenuItemBorderRadius:xt,menuArrowSize:Rt,menuArrowOffset:cn,lineType:ct,menuPanelMaskInset:Ae,groupTitleLineHeight:Ve,groupTitleFontSize:Kt}=le;return[{"":{[`${ge}`]:Object.assign(Object.assign({},(0,mt.dF)()),{"&-hidden":{display:"none"}})},[`${ge}-submenu-hidden`]:{display:"none"}},{[ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,mt.Wf)(le)),(0,mt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Oe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ge}-item`]:{flex:"none"}},[`${ge}-item, ${ge}-submenu, ${ge}-submenu-title`]:{borderRadius:le.itemBorderRadius},[`${ge}-item-group-title`]:{padding:`${_e}px ${St}px`,fontSize:Kt,lineHeight:Ve,transition:`all ${Oe}`},[`&-horizontal ${ge}-submenu`]:{transition:[`border-color ${Oe} ${Ge}`,`background ${Oe} ${Ge}`].join(",")},[`${ge}-submenu, ${ge}-submenu-inline`]:{transition:[`border-color ${Oe} ${Ge}`,`background ${Oe} ${Ge}`,`padding ${ut} ${Ge}`].join(",")},[`${ge}-submenu ${ge}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${Ge}`,`padding ${Oe} ${Ge}`].join(",")},[`${ge}-title-content`]:{transition:`color ${Oe}`},[`${ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:bt,borderStyle:ct,borderWidth:0,borderTopWidth:rt,marginBlock:rt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ft(le)),{[`${ge}-item-group`]:{[`${ge}-item-group-list`]:{margin:0,padding:0,[`${ge}-item, ${ge}-submenu-title`]:{paddingInline:`${se*2}px ${St}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Dt,borderRadius:xn,boxShadow:"none",transformOrigin:"0 0",[`&${ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ae}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ae},"\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:le.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:le.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:le.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:le.paddingXS},[`> ${ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:xn},Ft(le)),Sn(le)),{[`${ge}-item, ${ge}-submenu > ${ge}-submenu-title`]:{borderRadius:xt},[`${ge}-submenu-title::after`]:{transition:`transform ${Oe} ${Ge}`}})}}),Sn(le)),{[`&-inline-collapsed ${ge}-submenu-arrow,
|
|
|
&-inline ${ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${cn})`},"&::after":{transform:`rotate(45deg) translateX(-${cn})`}},[`${ge}-submenu-open${ge}-submenu-inline > ${ge}-submenu-title > ${ge}-submenu-arrow`]:{transform:`translateY(-${Rt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${cn})`},"&::before":{transform:`rotate(45deg) translateX(${cn})`}}})},{[`${de}-layout-header`]:{[ge]:{lineHeight:"inherit"}}}]};var Pn=(le,de)=>(0,Wt.Z)("Menu",se=>{if(de===!1)return[];const{colorBgElevated:Oe,colorPrimary:ut,colorTextLightSolid:Ge,controlHeightLG:_e,fontSize:St,darkItemColor:bt,darkDangerItemColor:rt,darkItemBg:Dt,darkSubMenuItemBg:xn,darkItemSelectedColor:xt,darkItemSelectedBg:Rt,darkDangerItemSelectedBg:cn,darkItemHoverBg:ct,darkGroupTitleColor:Ae,darkItemHoverColor:Ve,darkItemDisabledColor:Kt,darkDangerItemHoverColor:Gt,darkDangerItemSelectedColor:hn,darkDangerItemActiveBg:On}=se,Ln=St/7*5,Kn=(0,Lt.TS)(se,{menuArrowSize:Ln,menuHorizontalHeight:_e*1.15,menuArrowOffset:`${Ln*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Oe}),tr=(0,Lt.TS)(Kn,{itemColor:bt,itemHoverColor:Ve,groupTitleColor:Ae,itemSelectedColor:xt,itemBg:Dt,popupBg:Dt,subMenuItemBg:xn,itemActiveBg:"transparent",itemSelectedBg:Rt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ct,itemDisabledColor:Kt,dangerItemColor:rt,dangerItemHoverColor:Gt,dangerItemSelectedColor:hn,dangerItemActiveBg:On,dangerItemSelectedBg:cn,menuSubMenuBg:xn,horizontalItemSelectedColor:Ge,horizontalItemSelectedBg:ut});return[$t(Kn),Xt(Kn),pt(Kn),on(Kn,"light"),on(tr,"dark"),it(Kn),(0,Le.Z)(Kn),(0,Bt.oN)(Kn,"slide-up"),(0,Bt.oN)(Kn,"slide-down"),(0,at._y)(Kn,"zoom-big")]},se=>{const{colorPrimary:Oe,colorError:ut,colorTextDisabled:Ge,colorErrorBg:_e,colorText:St,colorTextDescription:bt,colorBgContainer:rt,colorFillAlter:Dt,colorFillContent:xn,lineWidth:xt,lineWidthBold:Rt,controlItemBgActive:cn,colorBgTextHover:ct,controlHeightLG:Ae,lineHeight:Ve,colorBgElevated:Kt,marginXXS:Gt,padding:hn,fontSize:On,controlHeightSM:Ln,fontSizeLG:Kn,colorTextLightSolid:tr,colorErrorHover:gr}=se,Un=new Ue.C(tr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:se.zIndexPopupBase+50,radiusItem:se.borderRadiusLG,itemBorderRadius:se.borderRadiusLG,radiusSubMenuItem:se.borderRadiusSM,subMenuItemBorderRadius:se.borderRadiusSM,colorItemText:St,itemColor:St,colorItemTextHover:St,itemHoverColor:St,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:bt,groupTitleColor:bt,colorItemTextSelected:Oe,itemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:rt,itemBg:rt,colorItemBgHover:ct,itemHoverBg:ct,colorItemBgActive:xn,itemActiveBg:cn,colorSubItemBg:Dt,subMenuItemBg:Dt,colorItemBgSelected:cn,itemSelectedBg:cn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Rt,activeBarHeight:Rt,colorActiveBarBorderSize:xt,activeBarBorderWidth:xt,colorItemTextDisabled:Ge,itemDisabledColor:Ge,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:_e,dangerItemActiveBg:_e,colorDangerItemBgSelected:_e,dangerItemSelectedBg:_e,itemMarginInline:se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ae,groupTitleLineHeight:Ve,collapsedWidth:Ae*2,popupBg:Kt,itemMarginBlock:Gt,itemPaddingInline:hn,horizontalLineHeight:`${Ae*1.15}px`,iconSize:On,iconMarginInlineEnd:Ln-On,collapsedIconSize:Kn,groupTitleFontSize:On,darkItemDisabledColor:new Ue.C(tr).setAlpha(.25).toRgbString(),darkItemColor:Un,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:tr,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:Un,darkItemHoverColor:tr,darkDangerItemHoverColor:gr,darkDangerItemSelectedColor:tr,darkDangerItemActiveBg:ut}},{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"]]})(le),Zt=function(le,de){var ge={};for(var se in le)Object.prototype.hasOwnProperty.call(le,se)&&de.indexOf(se)<0&&(ge[se]=le[se]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,se=Object.getOwnPropertySymbols(le);Oe<se.length;Oe++)de.indexOf(se[Oe])<0&&Object.prototype.propertyIsEnumerable.call(le,se[Oe])&&(ge[se[Oe]]=le[se[Oe]]);return ge},Ht=(0,De.forwardRef)((le,de)=>{var ge,se;const Oe=De.useContext(he.Z),ut=Oe||{},{getPrefixCls:Ge,getPopupContainer:_e,direction:St,menu:bt}=De.useContext(ke.E_),rt=Ge(),{prefixCls:Dt,className:xn,style:xt,theme:Rt="light",expandIcon:cn,_internalDisableMenuItemTitleTooltip:ct,inlineCollapsed:Ae,siderCollapsed:Ve,items:Kt,children:Gt,rootClassName:hn,mode:On,selectable:Ln,onClick:Kn,overflowedIndicatorPopupClassName:tr}=le,gr=Zt(le,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Un=(0,vt.Z)(gr,["collapsedWidth"]),Cr=Qe(Kt)||Gt;(ge=ut.validator)===null||ge===void 0||ge.call(ut,{mode:On});const Rr=(0,st.useEvent)(function(){var cr;Kn==null||Kn.apply(void 0,arguments),(cr=ut.onClick)===null||cr===void 0||cr.call(ut)}),$r=ut.mode||On,vr=Ln!=null?Ln:ut.selectable,Er=De.useMemo(()=>Ve!==void 0?Ve:Ae,[Ae,Ve]),Hr={horizontal:{motionName:`${rt}-slide-up`},inline:(0,ze.Z)(rt),other:{motionName:`${rt}-zoom-big`}},wn=Ge("menu",Dt||ut.prefixCls),[Zn,Or]=Pn(wn,!Oe),br=be()(`${wn}-${Rt}`,bt==null?void 0:bt.className,xn);let hr;if(typeof cn=="function")hr=cn;else if(cn===null||cn===!1)hr=null;else if(ut.expandIcon===null||ut.expandIcon===!1)hr=null;else{const cr=cn!=null?cn:ut.expandIcon;hr=(0,Be.Tm)(cr,{className:be()(`${wn}-submenu-expand-icon`,(0,Be.l$)(cr)?(se=cr.props)===null||se===void 0?void 0:se.className:"")})}const Yr=De.useMemo(()=>({prefixCls:wn,inlineCollapsed:Er||!1,direction:St,firstLevel:!0,theme:Rt,mode:$r,disableMenuItemTitleTooltip:ct}),[wn,Er,St,ct,Rt]);return Zn(De.createElement(he.Z.Provider,{value:null},De.createElement(Je.Provider,{value:Yr},De.createElement(ce.ZP,Object.assign({getPopupContainer:_e,overflowedIndicator:De.createElement(gt.Z,null),overflowedIndicatorPopupClassName:be()(wn,`${wn}-${Rt}`,tr),mode:$r,selectable:vr,onClick:Rr},Un,{inlineCollapsed:Er,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),xt),className:br,prefixCls:wn,direction:St,defaultMotions:Hr,expandIcon:hr,ref:de,rootClassName:be()(hn,Or)}),Cr))))});const ye=(0,De.forwardRef)((le,de)=>{const ge=(0,De.useRef)(null),se=De.useContext(Te.D);return(0,De.useImperativeHandle)(de,()=>({menu:ge.current,focus:Oe=>{var ut;(ut=ge.current)===null||ut===void 0||ut.focus(Oe)}})),De.createElement(Ht,Object.assign({ref:ge},le,se))});ye.Item=yt,ye.SubMenu=It,ye.Divider=Me,ye.ItemGroup=ce.BW;var ue=ye},58421:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return ut}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(_e,St){return De.createElement(be.Z,(0,ce.Z)({},_e,{ref:St,icon:dt}))},pe=De.forwardRef(ke),xe=pe,Me=ae(49198),Ke=ae(33853),vt=ae(38819),Pe=ae(92310),Be=ae.n(Pe),et=ae(18642),Je=ae(85899),tt=ae(38705),yt=ae(17212),wt=ae(39153),It=ae(55401),gt=ae(26112),st={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ze=st,he=ae(91735),je=function(Ge){(0,wt.Z)(St,Ge);var _e=(0,It.Z)(St);function St(){var bt;(0,tt.Z)(this,St);for(var rt=arguments.length,Dt=new Array(rt),xn=0;xn<rt;xn++)Dt[xn]=arguments[xn];return bt=_e.call.apply(_e,[this].concat(Dt)),bt.state={goInputText:""},bt.getValidValue=function(){var xt=bt.state.goInputText;return!xt||Number.isNaN(xt)?void 0:Number(xt)},bt.buildOptionText=function(xt){return"".concat(xt," ").concat(bt.props.locale.items_per_page)},bt.changeSize=function(xt){bt.props.changeSize(Number(xt))},bt.handleChange=function(xt){bt.setState({goInputText:xt.target.value})},bt.handleBlur=function(xt){var Rt=bt.props,cn=Rt.goButton,ct=Rt.quickGo,Ae=Rt.rootPrefixCls,Ve=bt.state.goInputText;cn||Ve===""||(bt.setState({goInputText:""}),!(xt.relatedTarget&&(xt.relatedTarget.className.indexOf("".concat(Ae,"-item-link"))>=0||xt.relatedTarget.className.indexOf("".concat(Ae,"-item"))>=0))&&ct(bt.getValidValue()))},bt.go=function(xt){var Rt=bt.state.goInputText;Rt!==""&&(xt.keyCode===ze.ENTER||xt.type==="click")&&(bt.setState({goInputText:""}),bt.props.quickGo(bt.getValidValue()))},bt}return(0,yt.Z)(St,[{key:"getPageSizeOptions",value:function(){var rt=this.props,Dt=rt.pageSize,xn=rt.pageSizeOptions;return xn.some(function(xt){return xt.toString()===Dt.toString()})?xn:xn.concat([Dt.toString()]).sort(function(xt,Rt){var cn=Number.isNaN(Number(xt))?0:Number(xt),ct=Number.isNaN(Number(Rt))?0:Number(Rt);return cn-ct})}},{key:"render",value:function(){var rt=this,Dt=this.props,xn=Dt.pageSize,xt=Dt.locale,Rt=Dt.rootPrefixCls,cn=Dt.changeSize,ct=Dt.quickGo,Ae=Dt.goButton,Ve=Dt.selectComponentClass,Kt=Dt.buildOptionText,Gt=Dt.selectPrefixCls,hn=Dt.disabled,On=this.state.goInputText,Ln="".concat(Rt,"-options"),Kn=Ve,tr=null,gr=null,Un=null;if(!cn&&!ct)return null;var Cr=this.getPageSizeOptions();if(cn&&Kn){var Rr=Cr.map(function($r,vr){return De.createElement(Kn.Option,{key:vr,value:$r.toString()},(Kt||rt.buildOptionText)($r))});tr=De.createElement(Kn,{disabled:hn,prefixCls:Gt,showSearch:!1,className:"".concat(Ln,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(xn||Cr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(vr){return vr.parentNode},"aria-label":xt.page_size,defaultOpen:!1},Rr)}return ct&&(Ae&&(Un=typeof Ae=="boolean"?De.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:hn,className:"".concat(Ln,"-quick-jumper-button")},xt.jump_to_confirm):De.createElement("span",{onClick:this.go,onKeyUp:this.go},Ae)),gr=De.createElement("div",{className:"".concat(Ln,"-quick-jumper")},xt.jump_to,De.createElement("input",{disabled:hn,type:"text",value:On,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":xt.page}),xt.page,Un)),De.createElement("li",{className:"".concat(Ln)},tr,gr)}}]),St}(De.Component);je.defaultProps={pageSizeOptions:["10","20","50","100"]};var Xe=je,Qe=function(_e){var St,bt=_e.rootPrefixCls,rt=_e.page,Dt=_e.active,xn=_e.className,xt=_e.showTitle,Rt=_e.onClick,cn=_e.onKeyPress,ct=_e.itemRender,Ae="".concat(bt,"-item"),Ve=Be()(Ae,"".concat(Ae,"-").concat(rt),(St={},(0,et.Z)(St,"".concat(Ae,"-active"),Dt),(0,et.Z)(St,"".concat(Ae,"-disabled"),!rt),(0,et.Z)(St,_e.className,xn),St)),Kt=function(){Rt(rt)},Gt=function(Ln){cn(Ln,Rt,rt)},hn=ct(rt,"page",De.createElement("a",{rel:"nofollow"},rt));return hn?De.createElement("li",{title:xt?rt.toString():null,className:Ve,onClick:Kt,onKeyPress:Gt,tabIndex:0},hn):null},Ue=Qe;function mt(){}function Le(Ge){var _e=Number(Ge);return typeof _e=="number"&&!Number.isNaN(_e)&&isFinite(_e)&&Math.floor(_e)===_e}var Bt=function(_e,St,bt){return bt};function at(Ge,_e,St){var bt=typeof Ge=="undefined"?_e.pageSize:Ge;return Math.floor((St.total-1)/bt)+1}var Wt=function(Ge){(0,wt.Z)(St,Ge);var _e=(0,It.Z)(St);function St(bt){var rt;(0,tt.Z)(this,St),rt=_e.call(this,bt),rt.paginationNode=De.createRef(),rt.getJumpPrevPage=function(){return Math.max(1,rt.state.current-(rt.props.showLessItems?3:5))},rt.getJumpNextPage=function(){return Math.min(at(void 0,rt.state,rt.props),rt.state.current+(rt.props.showLessItems?3:5))},rt.getItemIcon=function(cn,ct){var Ae=rt.props.prefixCls,Ve=cn||De.createElement("button",{type:"button","aria-label":ct,className:"".concat(Ae,"-item-link")});return typeof cn=="function"&&(Ve=De.createElement(cn,(0,Je.Z)({},rt.props))),Ve},rt.isValid=function(cn){var ct=rt.props.total;return Le(cn)&&cn!==rt.state.current&&Le(ct)&&ct>0},rt.shouldDisplayQuickJumper=function(){var cn=rt.props,ct=cn.showQuickJumper,Ae=cn.total,Ve=rt.state.pageSize;return Ae<=Ve?!1:ct},rt.handleKeyDown=function(cn){(cn.keyCode===ze.ARROW_UP||cn.keyCode===ze.ARROW_DOWN)&&cn.preventDefault()},rt.handleKeyUp=function(cn){var ct=rt.getValidValue(cn),Ae=rt.state.currentInputValue;ct!==Ae&&rt.setState({currentInputValue:ct}),cn.keyCode===ze.ENTER?rt.handleChange(ct):cn.keyCode===ze.ARROW_UP?rt.handleChange(ct-1):cn.keyCode===ze.ARROW_DOWN&&rt.handleChange(ct+1)},rt.handleBlur=function(cn){var ct=rt.getValidValue(cn);rt.handleChange(ct)},rt.changePageSize=function(cn){var ct=rt.state.current,Ae=at(cn,rt.state,rt.props);ct=ct>Ae?Ae:ct,Ae===0&&(ct=rt.state.current),typeof cn=="number"&&("pageSize"in rt.props||rt.setState({pageSize:cn}),"current"in rt.props||rt.setState({current:ct,currentInputValue:ct})),rt.props.onShowSizeChange(ct,cn),"onChange"in rt.props&&rt.props.onChange&&rt.props.onChange(ct,cn)},rt.handleChange=function(cn){var ct=rt.props,Ae=ct.disabled,Ve=ct.onChange,Kt=rt.state,Gt=Kt.pageSize,hn=Kt.current,On=Kt.currentInputValue;if(rt.isValid(cn)&&!Ae){var Ln=at(void 0,rt.state,rt.props),Kn=cn;return cn>Ln?Kn=Ln:cn<1&&(Kn=1),"current"in rt.props||rt.setState({current:Kn}),Kn!==On&&rt.setState({currentInputValue:Kn}),Ve(Kn,Gt),Kn}return hn},rt.prev=function(){rt.hasPrev()&&rt.handleChange(rt.state.current-1)},rt.next=function(){rt.hasNext()&&rt.handleChange(rt.state.current+1)},rt.jumpPrev=function(){rt.handleChange(rt.getJumpPrevPage())},rt.jumpNext=function(){rt.handleChange(rt.getJumpNextPage())},rt.hasPrev=function(){return rt.state.current>1},rt.hasNext=function(){return rt.state.current<at(void 0,rt.state,rt.props)},rt.runIfEnter=function(cn,ct){if(cn.key==="Enter"||cn.charCode===13){for(var Ae=arguments.length,Ve=new Array(Ae>2?Ae-2:0),Kt=2;Kt<Ae;Kt++)Ve[Kt-2]=arguments[Kt];ct.apply(void 0,Ve)}},rt.runIfEnterPrev=function(cn){rt.runIfEnter(cn,rt.prev)},rt.runIfEnterNext=function(cn){rt.runIfEnter(cn,rt.next)},rt.runIfEnterJumpPrev=function(cn){rt.runIfEnter(cn,rt.jumpPrev)},rt.runIfEnterJumpNext=function(cn){rt.runIfEnter(cn,rt.jumpNext)},rt.handleGoTO=function(cn){(cn.keyCode===ze.ENTER||cn.type==="click")&&rt.handleChange(rt.state.currentInputValue)},rt.renderPrev=function(cn){var ct=rt.props,Ae=ct.prevIcon,Ve=ct.itemRender,Kt=Ve(cn,"prev",rt.getItemIcon(Ae,"prev page")),Gt=!rt.hasPrev();return(0,De.isValidElement)(Kt)?(0,De.cloneElement)(Kt,{disabled:Gt}):Kt},rt.renderNext=function(cn){var ct=rt.props,Ae=ct.nextIcon,Ve=ct.itemRender,Kt=Ve(cn,"next",rt.getItemIcon(Ae,"next page")),Gt=!rt.hasNext();return(0,De.isValidElement)(Kt)?(0,De.cloneElement)(Kt,{disabled:Gt}):Kt};var Dt=bt.onChange!==mt,xn="current"in bt;xn&&!Dt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var xt=bt.defaultCurrent;"current"in bt&&(xt=bt.current);var Rt=bt.defaultPageSize;return"pageSize"in bt&&(Rt=bt.pageSize),xt=Math.min(xt,at(Rt,void 0,bt)),rt.state={current:xt,currentInputValue:xt,pageSize:Rt},rt}return(0,yt.Z)(St,[{key:"componentDidUpdate",value:function(rt,Dt){var xn=this.props.prefixCls;if(Dt.current!==this.state.current&&this.paginationNode.current){var xt=this.paginationNode.current.querySelector(".".concat(xn,"-item-").concat(Dt.current));if(xt&&document.activeElement===xt){var Rt;xt==null||(Rt=xt.blur)===null||Rt===void 0||Rt.call(xt)}}}},{key:"getValidValue",value:function(rt){var Dt=rt.target.value,xn=at(void 0,this.state,this.props),xt=this.state.currentInputValue,Rt;return Dt===""?Rt=Dt:Number.isNaN(Number(Dt))?Rt=xt:Dt>=xn?Rt=xn:Rt=Number(Dt),Rt}},{key:"getShowSizeChanger",value:function(){var rt=this.props,Dt=rt.showSizeChanger,xn=rt.total,xt=rt.totalBoundaryShowSizeChanger;return typeof Dt!="undefined"?Dt:xn>xt}},{key:"render",value:function(){var rt=this.props,Dt=rt.prefixCls,xn=rt.className,xt=rt.style,Rt=rt.disabled,cn=rt.hideOnSinglePage,ct=rt.total,Ae=rt.locale,Ve=rt.showQuickJumper,Kt=rt.showLessItems,Gt=rt.showTitle,hn=rt.showTotal,On=rt.simple,Ln=rt.itemRender,Kn=rt.showPrevNextJumpers,tr=rt.jumpPrevIcon,gr=rt.jumpNextIcon,Un=rt.selectComponentClass,Cr=rt.selectPrefixCls,Rr=rt.pageSizeOptions,$r=this.state,vr=$r.current,Er=$r.pageSize,Hr=$r.currentInputValue;if(cn===!0&&ct<=Er)return null;var wn=at(void 0,this.state,this.props),Zn=[],Or=null,br=null,hr=null,Yr=null,cr=null,Ir=Ve&&Ve.goButton,or=Kt?1:2,Jn=vr-1>0?vr-1:0,Dr=vr+1<wn?vr+1:wn,_t=(0,gt.Z)(this.props,{aria:!0,data:!0}),He=hn&&De.createElement("li",{className:"".concat(Dt,"-total-text")},hn(ct,[ct===0?0:(vr-1)*Er+1,vr*Er>ct?ct:vr*Er]));if(On){Ir&&(typeof Ir=="boolean"?cr=De.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ae.jump_to_confirm):cr=De.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ir),cr=De.createElement("li",{title:Gt?"".concat(Ae.jump_to).concat(vr,"/").concat(wn):null,className:"".concat(Dt,"-simple-pager")},cr));var nt=this.renderPrev(Jn);return De.createElement("ul",(0,ce.Z)({className:Be()(Dt,"".concat(Dt,"-simple"),(0,et.Z)({},"".concat(Dt,"-disabled"),Rt),xn),style:xt,ref:this.paginationNode},_t),He,nt?De.createElement("li",{title:Gt?Ae.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Be()("".concat(Dt,"-prev"),(0,et.Z)({},"".concat(Dt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},nt):null,De.createElement("li",{title:Gt?"".concat(vr,"/").concat(wn):null,className:"".concat(Dt,"-simple-pager")},De.createElement("input",{type:"text",value:Hr,disabled:Rt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),De.createElement("span",{className:"".concat(Dt,"-slash")},"/"),wn),De.createElement("li",{title:Gt?Ae.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Be()("".concat(Dt,"-next"),(0,et.Z)({},"".concat(Dt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Dr)),cr)}if(wn<=3+or*2){var Ye={locale:Ae,rootPrefixCls:Dt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Gt,itemRender:Ln};wn||Zn.push(De.createElement(Ue,(0,ce.Z)({},Ye,{key:"noPager",page:1,className:"".concat(Dt,"-item-disabled")})));for(var qe=1;qe<=wn;qe+=1){var Mt=vr===qe;Zn.push(De.createElement(Ue,(0,ce.Z)({},Ye,{key:qe,page:qe,active:Mt})))}}else{var Ut=Kt?Ae.prev_3:Ae.prev_5,An=Kt?Ae.next_3:Ae.next_5,mn=Ln(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(tr,"prev page")),ln=Ln(this.getJumpNextPage(),"jump-next",this.getItemIcon(gr,"next page"));Kn&&(Or=mn?De.createElement("li",{title:Gt?Ut:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Be()("".concat(Dt,"-jump-prev"),(0,et.Z)({},"".concat(Dt,"-jump-prev-custom-icon"),!!tr))},mn):null,br=ln?De.createElement("li",{title:Gt?An:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Be()("".concat(Dt,"-jump-next"),(0,et.Z)({},"".concat(Dt,"-jump-next-custom-icon"),!!gr))},ln):null),Yr=De.createElement(Ue,{locale:Ae,last:!0,rootPrefixCls:Dt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:wn,page:wn,active:!1,showTitle:Gt,itemRender:Ln}),hr=De.createElement(Ue,{locale:Ae,rootPrefixCls:Dt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Gt,itemRender:Ln});var Nn=Math.max(1,vr-or),Wn=Math.min(vr+or,wn);vr-1<=or&&(Wn=1+or*2),wn-vr<=or&&(Nn=wn-or*2);for(var Xn=Nn;Xn<=Wn;Xn+=1){var rn=vr===Xn;Zn.push(De.createElement(Ue,{locale:Ae,rootPrefixCls:Dt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Xn,page:Xn,active:rn,showTitle:Gt,itemRender:Ln}))}vr-1>=or*2&&vr!==3&&(Zn[0]=(0,De.cloneElement)(Zn[0],{className:"".concat(Dt,"-item-after-jump-prev")}),Zn.unshift(Or)),wn-vr>=or*2&&vr!==wn-2&&(Zn[Zn.length-1]=(0,De.cloneElement)(Zn[Zn.length-1],{className:"".concat(Dt,"-item-before-jump-next")}),Zn.push(br)),Nn!==1&&Zn.unshift(hr),Wn!==wn&&Zn.push(Yr)}var Tn=!this.hasPrev()||!wn,Nt=!this.hasNext()||!wn,Jt=this.renderPrev(Jn),sn=this.renderNext(Dr);return De.createElement("ul",(0,ce.Z)({className:Be()(Dt,xn,(0,et.Z)({},"".concat(Dt,"-disabled"),Rt)),style:xt,ref:this.paginationNode},_t),He,Jt?De.createElement("li",{title:Gt?Ae.prev_page:null,onClick:this.prev,tabIndex:Tn?null:0,onKeyPress:this.runIfEnterPrev,className:Be()("".concat(Dt,"-prev"),(0,et.Z)({},"".concat(Dt,"-disabled"),Tn)),"aria-disabled":Tn},Jt):null,Zn,sn?De.createElement("li",{title:Gt?Ae.next_page:null,onClick:this.next,tabIndex:Nt?null:0,onKeyPress:this.runIfEnterNext,className:Be()("".concat(Dt,"-next"),(0,et.Z)({},"".concat(Dt,"-disabled"),Nt)),"aria-disabled":Nt},sn):null,De.createElement(Xe,{disabled:Rt,locale:Ae,rootPrefixCls:Dt,selectComponentClass:Un,selectPrefixCls:Cr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:vr,pageSize:Er,pageSizeOptions:Rr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ir}))}}],[{key:"getDerivedStateFromProps",value:function(rt,Dt){var xn={};if("current"in rt&&(xn.current=rt.current,rt.current!==Dt.current&&(xn.currentInputValue=xn.current)),"pageSize"in rt&&rt.pageSize!==Dt.pageSize){var xt=Dt.current,Rt=at(rt.pageSize,Dt,rt);xt=xt>Rt?Rt:xt,"current"in rt||(xn.current=xt,xn.currentInputValue=xt),xn.pageSize=rt.pageSize}return xn}}]),St}(De.Component);Wt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:mt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:mt,locale:he.Z,style:{},itemRender:Bt,totalBoundaryShowSizeChanger:50};var Lt=Wt,Tt=ae(22075),Xt=ae(36355),jt=ae(19716),it=ae(8628),Ce=ae(9763),Et=ae(57809);const on=Ge=>De.createElement(Et.default,Object.assign({},Ge,{showSearch:!0,size:"small"})),Yt=Ge=>De.createElement(Et.default,Object.assign({},Ge,{showSearch:!0,size:"middle"}));on.Option=Et.default.Option,Yt.Option=Et.default.Option;var lt=ae(9937),pt=ae(17313),Ft=ae(83116),Sn=ae(37613);const $t=Ge=>{const{componentCls:_e}=Ge;return{[`${_e}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${_e}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${_e}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed"}}},[`&${_e}-disabled`]:{cursor:"not-allowed",[`${_e}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ge.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ge.colorBorder,backgroundColor:Ge.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ge.itemActiveBgDisabled},a:{color:Ge.itemActiveColorDisabled}}},[`${_e}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${_e}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${_e}-simple-pager`]:{color:Ge.colorTextDisabled},[`${_e}-jump-prev, ${_e}-jump-next`]:{[`${_e}-item-link-icon`]:{opacity:0},[`${_e}-item-ellipsis`]:{opacity:1}}},[`&${_e}-simple`]:{[`${_e}-prev, ${_e}-next`]:{[`&${_e}-disabled ${_e}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pn=Ge=>{const{componentCls:_e}=Ge;return{[`&${_e}-mini ${_e}-total-text, &${_e}-mini ${_e}-simple-pager`]:{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`},[`&${_e}-mini ${_e}-item`]:{minWidth:Ge.itemSizeSM,height:Ge.itemSizeSM,margin:0,lineHeight:`${Ge.itemSizeSM-2}px`},[`&${_e}-mini:not(${_e}-disabled) ${_e}-item:not(${_e}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive}},[`&${_e}-mini ${_e}-prev, &${_e}-mini ${_e}-next`]:{minWidth:Ge.itemSizeSM,height:Ge.itemSizeSM,margin:0,lineHeight:`${Ge.itemSizeSM}px`},[`&${_e}-mini:not(${_e}-disabled)`]:{[`${_e}-prev, ${_e}-next`]:{[`&:hover ${_e}-item-link`]:{backgroundColor:Ge.colorBgTextHover},[`&:active ${_e}-item-link`]:{backgroundColor:Ge.colorBgTextActive},[`&${_e}-disabled:hover ${_e}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${_e}-mini ${_e}-prev ${_e}-item-link,
|
|
|
&${_e}-mini ${_e}-next ${_e}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`}},[`&${_e}-mini ${_e}-jump-prev, &${_e}-mini ${_e}-jump-next`]:{height:Ge.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ge.itemSizeSM}px`},[`&${_e}-mini ${_e}-options`]:{marginInlineStart:Ge.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ge.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,lt.x0)(Ge)),{width:Ge.paginationMiniQuickJumperInputWidth,height:Ge.controlHeightSM})}}}},Zt=Ge=>{const{componentCls:_e}=Ge;return{[`
|
|
|
&${_e}-simple ${_e}-prev,
|
|
|
&${_e}-simple ${_e}-next
|
|
|
`]:{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`,verticalAlign:"top",[`${_e}-item-link`]:{height:Ge.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive},"&::after":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`}}},[`&${_e}-simple ${_e}-simple-pager`]:{display:"inline-block",height:Ge.itemSizeSM,marginInlineEnd:Ge.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ge.marginXS,padding:`0 ${Ge.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ge.itemInputBg,border:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorBorder}`,borderRadius:Ge.borderRadius,outline:"none",transition:`border-color ${Ge.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ge.colorPrimary},"&:focus":{borderColor:Ge.colorPrimaryHover,boxShadow:`${Ge.inputOutlineOffset}px 0 ${Ge.controlOutlineWidth}px ${Ge.controlOutline}`},"&[disabled]":{color:Ge.colorTextDisabled,backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,cursor:"not-allowed"}}}}},an=Ge=>{const{componentCls:_e}=Ge;return{[`${_e}-jump-prev, ${_e}-jump-next`]:{outline:0,[`${_e}-item-container`]:{position:"relative",[`${_e}-item-link-icon`]:{color:Ge.colorPrimary,fontSize:Ge.fontSizeSM,opacity:0,transition:`all ${Ge.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${_e}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ge.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ge.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ge.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ge.motionDurationMid}`}},"&:hover":{[`${_e}-item-link-icon`]:{opacity:1},[`${_e}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${_e}-prev,
|
|
|
${_e}-jump-prev,
|
|
|
${_e}-jump-next
|
|
|
`]:{marginInlineEnd:Ge.marginXS},[`
|
|
|
${_e}-prev,
|
|
|
${_e}-next,
|
|
|
${_e}-jump-prev,
|
|
|
${_e}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ge.itemSize,height:Ge.itemSize,color:Ge.colorText,fontFamily:Ge.fontFamily,lineHeight:`${Ge.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ge.borderRadius,cursor:"pointer",transition:`all ${Ge.motionDurationMid}`},[`${_e}-prev, ${_e}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ge.colorText,cursor:"pointer",userSelect:"none"},[`${_e}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ge.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ge.lineWidth}px ${Ge.lineType} transparent`,borderRadius:Ge.borderRadius,outline:"none",transition:`all ${Ge.motionDurationMid}`},[`&:hover ${_e}-item-link`]:{backgroundColor:Ge.colorBgTextHover},[`&:active ${_e}-item-link`]:{backgroundColor:Ge.colorBgTextActive},[`&${_e}-disabled:hover`]:{[`${_e}-item-link`]:{backgroundColor:"transparent"}}},[`${_e}-slash`]:{marginInlineEnd:Ge.paginationSlashMarginInlineEnd,marginInlineStart:Ge.paginationSlashMarginInlineStart},[`${_e}-options`]:{display:"inline-block",marginInlineStart:Ge.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ge.controlHeight,marginInlineStart:Ge.marginXS,lineHeight:`${Ge.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,lt.ik)(Ge)),{width:Ge.controlHeightLG*1.25,height:Ge.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ge.marginXS,marginInlineEnd:Ge.marginXS})}}}},Ht=Ge=>{const{componentCls:_e}=Ge;return{[`${_e}-item`]:{display:"inline-block",minWidth:Ge.itemSize,height:Ge.itemSize,marginInlineEnd:Ge.marginXS,fontFamily:Ge.fontFamily,lineHeight:`${Ge.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ge.lineWidth}px ${Ge.lineType} transparent`,borderRadius:Ge.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ge.paginationItemPaddingInline}px`,color:Ge.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${_e}-item-active)`]:{"&:hover":{transition:`all ${Ge.motionDurationMid}`,backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive}},"&-active":{fontWeight:Ge.fontWeightStrong,backgroundColor:Ge.itemActiveBg,borderColor:Ge.colorPrimary,a:{color:Ge.colorPrimary},"&:hover":{borderColor:Ge.colorPrimaryHover},"&:hover a":{color:Ge.colorPrimaryHover}}}}},ye=Ge=>{const{componentCls:_e}=Ge;return{[_e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(Ge)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${_e}-total-text`]:{display:"inline-block",height:Ge.itemSize,marginInlineEnd:Ge.marginXS,lineHeight:`${Ge.itemSize-2}px`,verticalAlign:"middle"}}),Ht(Ge)),an(Ge)),Zt(Ge)),Pn(Ge)),$t(Ge)),{[`@media only screen and (max-width: ${Ge.screenLG}px)`]:{[`${_e}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ge.screenSM}px)`]:{[`${_e}-options`]:{display:"none"}}}),[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}}},ue=Ge=>{const{componentCls:_e}=Ge;return{[`${_e}${_e}-disabled:not(${_e}-mini)`]:{"&, &:hover":{[`${_e}-item-link`]:{borderColor:Ge.colorBorder}},"&:focus-visible":{[`${_e}-item-link`]:{borderColor:Ge.colorBorder}},[`${_e}-item, ${_e}-item-link`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,[`&:hover:not(${_e}-item-active)`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,a:{color:Ge.colorTextDisabled}},[`&${_e}-item-active`]:{backgroundColor:Ge.itemActiveBgDisabled}},[`${_e}-prev, ${_e}-next`]:{"&:hover button":{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,color:Ge.colorTextDisabled},[`${_e}-item-link`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder}}},[`${_e}:not(${_e}-mini)`]:{[`${_e}-prev, ${_e}-next`]:{"&:hover button":{borderColor:Ge.colorPrimaryHover,backgroundColor:Ge.itemBg},[`${_e}-item-link`]:{backgroundColor:Ge.itemLinkBg,borderColor:Ge.colorBorder},[`&:hover ${_e}-item-link`]:{borderColor:Ge.colorPrimary,backgroundColor:Ge.itemBg,color:Ge.colorPrimary},[`&${_e}-disabled`]:{[`${_e}-item-link`]:{borderColor:Ge.colorBorder,color:Ge.colorTextDisabled}}},[`${_e}-item`]:{backgroundColor:Ge.itemBg,border:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorBorder}`,[`&:hover:not(${_e}-item-active)`]:{borderColor:Ge.colorPrimary,backgroundColor:Ge.itemBg,a:{color:Ge.colorPrimary}},"&-active":{borderColor:Ge.colorPrimary}}}}},le=Ge=>{const{componentCls:_e}=Ge;return{[`${_e}:not(${_e}-disabled)`]:{[`${_e}-item`]:Object.assign({},(0,pt.Qy)(Ge)),[`${_e}-jump-prev, ${_e}-jump-next`]:{"&:focus-visible":Object.assign({[`${_e}-item-link-icon`]:{opacity:1},[`${_e}-item-ellipsis`]:{opacity:0}},(0,pt.oN)(Ge))},[`${_e}-prev, ${_e}-next`]:{[`&:focus-visible ${_e}-item-link`]:Object.assign({},(0,pt.oN)(Ge))}}}};var de=(0,Ft.Z)("Pagination",Ge=>{const _e=(0,Sn.TS)(Ge,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ge.marginXXS/2,paginationMiniQuickJumperInputWidth:Ge.controlHeightLG*1.1,paginationItemPaddingInline:Ge.marginXXS*1.5,paginationEllipsisLetterSpacing:Ge.marginXXS/2,paginationSlashMarginInlineStart:Ge.marginXXS,paginationSlashMarginInlineEnd:Ge.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,lt.e5)(Ge),(0,lt.TM)(Ge));return[ye(_e),le(_e),Ge.wireframe&&ue(_e)]},Ge=>({itemBg:Ge.colorBgContainer,itemSize:Ge.controlHeight,itemSizeSM:Ge.controlHeightSM,itemActiveBg:Ge.colorBgContainer,itemLinkBg:Ge.colorBgContainer,itemActiveColorDisabled:Ge.colorTextDisabled,itemActiveBgDisabled:Ge.controlItemBgActiveDisabled,itemInputBg:Ge.colorBgContainer,miniOptionsSizeChangerTop:0})),ge=function(Ge,_e){var St={};for(var bt in Ge)Object.prototype.hasOwnProperty.call(Ge,bt)&&_e.indexOf(bt)<0&&(St[bt]=Ge[bt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,bt=Object.getOwnPropertySymbols(Ge);rt<bt.length;rt++)_e.indexOf(bt[rt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,bt[rt])&&(St[bt[rt]]=Ge[bt[rt]]);return St},Oe=Ge=>{const{prefixCls:_e,selectPrefixCls:St,className:bt,rootClassName:rt,style:Dt,size:xn,locale:xt,selectComponentClass:Rt,responsive:cn,showSizeChanger:ct}=Ge,Ae=ge(Ge,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ve}=(0,it.Z)(cn),{getPrefixCls:Kt,direction:Gt,pagination:hn={}}=De.useContext(Xt.E_),On=Kt("pagination",_e),[Ln,Kn]=de(On),tr=ct!=null?ct:hn.showSizeChanger,gr=De.useMemo(()=>{const wn=De.createElement("span",{className:`${On}-item-ellipsis`},"\u2022\u2022\u2022"),Zn=De.createElement("button",{className:`${On}-item-link`,type:"button",tabIndex:-1},Gt==="rtl"?De.createElement(vt.Z,null):De.createElement(Ke.Z,null)),Or=De.createElement("button",{className:`${On}-item-link`,type:"button",tabIndex:-1},Gt==="rtl"?De.createElement(Ke.Z,null):De.createElement(vt.Z,null)),br=De.createElement("a",{className:`${On}-item-link`},De.createElement("div",{className:`${On}-item-container`},Gt==="rtl"?De.createElement(Me.Z,{className:`${On}-item-link-icon`}):De.createElement(xe,{className:`${On}-item-link-icon`}),wn)),hr=De.createElement("a",{className:`${On}-item-link`},De.createElement("div",{className:`${On}-item-container`},Gt==="rtl"?De.createElement(xe,{className:`${On}-item-link-icon`}):De.createElement(Me.Z,{className:`${On}-item-link-icon`}),wn));return{prevIcon:Zn,nextIcon:Or,jumpPrevIcon:br,jumpNextIcon:hr}},[Gt,On]),[Un]=(0,Ce.Z)("Pagination",Tt.Z),Cr=Object.assign(Object.assign({},Un),xt),Rr=(0,jt.Z)(xn),$r=Rr==="small"||!!(Ve&&!Rr&&cn),vr=Kt("select",St),Er=Be()({[`${On}-mini`]:$r,[`${On}-rtl`]:Gt==="rtl"},hn==null?void 0:hn.className,bt,rt,Kn),Hr=Object.assign(Object.assign({},hn==null?void 0:hn.style),Dt);return Ln(De.createElement(Lt,Object.assign({},gr,Ae,{style:Hr,prefixCls:On,selectPrefixCls:vr,className:Er,selectComponentClass:Rt||($r?on:Yt),locale:Cr,showSizeChanger:tr})))},ut=Oe},93948:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return ct}});var ce=ae(59301),De=ae(29679),Te=ae(40001),dt=ae(19248),be=ae(99267),ke=ae(92310),pe=ae.n(ke),xe=ae(2738),Me=ae(36355),Ke=ae(60499),vt=ae(85899),Pe=ae(42244),Be={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},et=function(){var Ve=(0,ce.useRef)([]),Kt=(0,ce.useRef)(null);return(0,ce.useEffect)(function(){var Gt=Date.now(),hn=!1;Ve.current.forEach(function(On){if(On){hn=!0;var Ln=On.style;Ln.transitionDuration=".3s, .3s, .3s, .06s",Kt.current&&Gt-Kt.current<100&&(Ln.transitionDuration="0s, 0s")}}),hn&&(Kt.current=Date.now())}),Ve.current},Je=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],tt=function(Ve){var Kt=(0,vt.Z)((0,vt.Z)({},Be),Ve),Gt=Kt.className,hn=Kt.percent,On=Kt.prefixCls,Ln=Kt.strokeColor,Kn=Kt.strokeLinecap,tr=Kt.strokeWidth,gr=Kt.style,Un=Kt.trailColor,Cr=Kt.trailWidth,Rr=Kt.transition,$r=(0,Pe.Z)(Kt,Je);delete $r.gapPosition;var vr=Array.isArray(hn)?hn:[hn],Er=Array.isArray(Ln)?Ln:[Ln],Hr=et(),wn=tr/2,Zn=100-tr/2,Or="M ".concat(Kn==="round"?wn:0,",").concat(wn,`
|
|
|
L `).concat(Kn==="round"?Zn:100,",").concat(wn),br="0 0 100 ".concat(tr),hr=0;return ce.createElement("svg",(0,Ke.Z)({className:pe()("".concat(On,"-line"),Gt),viewBox:br,preserveAspectRatio:"none",style:gr},$r),ce.createElement("path",{className:"".concat(On,"-line-trail"),d:Or,strokeLinecap:Kn,stroke:Un,strokeWidth:Cr||tr,fillOpacity:"0"}),vr.map(function(Yr,cr){var Ir=1;switch(Kn){case"round":Ir=1-tr/100;break;case"square":Ir=1-tr/2/100;break;default:Ir=1;break}var or={strokeDasharray:"".concat(Yr*Ir,"px, 100px"),strokeDashoffset:"-".concat(hr,"px"),transition:Rr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=Er[cr]||Er[Er.length-1];return hr+=Yr,ce.createElement("path",{key:cr,className:"".concat(On,"-line-path"),d:Or,strokeLinecap:Kn,stroke:Jn,strokeWidth:tr,fillOpacity:"0",ref:function(_t){Hr[cr]=_t},style:or})}))},yt=tt,wt=ae(43749),It=ae(72190),gt=ae(47273),st=0,ze=(0,gt.Z)();function he(){var Ae;return ze?(Ae=st,st+=1):Ae="TEST_OR_SSR",Ae}var je=function(Ae){var Ve=ce.useState(),Kt=(0,It.Z)(Ve,2),Gt=Kt[0],hn=Kt[1];return ce.useEffect(function(){hn("rc_progress_".concat(he()))},[]),Ae||Gt},Xe=function(Ve){var Kt=Ve.bg,Gt=Ve.children;return ce.createElement("div",{style:{width:"100%",height:"100%",background:Kt}},Gt)};function Qe(Ae,Ve){return Object.keys(Ae).map(function(Kt){var Gt=parseFloat(Kt),hn="".concat(Math.floor(Gt*Ve),"%");return"".concat(Ae[Kt]," ").concat(hn)})}var Ue=ce.forwardRef(function(Ae,Ve){var Kt=Ae.prefixCls,Gt=Ae.color,hn=Ae.gradientId,On=Ae.radius,Ln=Ae.style,Kn=Ae.ptg,tr=Ae.strokeLinecap,gr=Ae.strokeWidth,Un=Ae.size,Cr=Ae.gapDegree,Rr=Gt&&(0,wt.Z)(Gt)==="object",$r=Rr?"#FFF":void 0,vr=Un/2,Er=ce.createElement("circle",{className:"".concat(Kt,"-circle-path"),r:On,cx:vr,cy:vr,stroke:$r,strokeLinecap:tr,strokeWidth:gr,opacity:Kn===0?0:1,style:Ln,ref:Ve});if(!Rr)return Er;var Hr="".concat(hn,"-conic"),wn=Cr?"".concat(180+Cr/2,"deg"):"0deg",Zn=Qe(Gt,(360-Cr)/360),Or=Qe(Gt,1),br="conic-gradient(from ".concat(wn,", ").concat(Zn.join(", "),")"),hr="linear-gradient(to ".concat(Cr?"bottom":"top",", ").concat(Or.join(", "),")");return ce.createElement(ce.Fragment,null,ce.createElement("mask",{id:Hr},Er),ce.createElement("foreignObject",{x:0,y:0,width:Un,height:Un,mask:"url(#".concat(Hr,")")},ce.createElement(Xe,{bg:hr},ce.createElement(Xe,{bg:br}))))}),mt=Ue,Le=100,Bt=function(Ve,Kt,Gt,hn,On,Ln,Kn,tr,gr,Un){var Cr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Rr=Gt/100*360*((360-Ln)/360),$r=Ln===0?0:{bottom:0,top:180,left:90,right:-90}[Kn],vr=(100-hn)/100*Kt;gr==="round"&&hn!==100&&(vr+=Un/2,vr>=Kt&&(vr=Kt-.01));var Er=Le/2;return{stroke:typeof tr=="string"?tr:void 0,strokeDasharray:"".concat(Kt,"px ").concat(Ve),strokeDashoffset:vr+Cr,transform:"rotate(".concat(On+Rr+$r,"deg)"),transformOrigin:"".concat(Er,"px ").concat(Er,"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}},at=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Wt(Ae){var Ve=Ae!=null?Ae:[];return Array.isArray(Ve)?Ve:[Ve]}var Lt=function(Ve){var Kt=(0,vt.Z)((0,vt.Z)({},Be),Ve),Gt=Kt.id,hn=Kt.prefixCls,On=Kt.steps,Ln=Kt.strokeWidth,Kn=Kt.trailWidth,tr=Kt.gapDegree,gr=tr===void 0?0:tr,Un=Kt.gapPosition,Cr=Kt.trailColor,Rr=Kt.strokeLinecap,$r=Kt.style,vr=Kt.className,Er=Kt.strokeColor,Hr=Kt.percent,wn=(0,Pe.Z)(Kt,at),Zn=Le/2,Or=je(Gt),br="".concat(Or,"-gradient"),hr=Zn-Ln/2,Yr=Math.PI*2*hr,cr=gr>0?90+gr/2:-90,Ir=Yr*((360-gr)/360),or=(0,wt.Z)(On)==="object"?On:{count:On,space:2},Jn=or.count,Dr=or.space,_t=Wt(Hr),He=Wt(Er),nt=He.find(function(ln){return ln&&(0,wt.Z)(ln)==="object"}),Ye=nt&&(0,wt.Z)(nt)==="object",qe=Ye?"butt":Rr,Mt=Bt(Yr,Ir,0,100,cr,gr,Un,Cr,qe,Ln),Ut=et(),An=function(){var Nn=0;return _t.map(function(Wn,Xn){var rn=He[Xn]||He[He.length-1],Tn=Bt(Yr,Ir,Nn,Wn,cr,gr,Un,rn,qe,Ln);return Nn+=Wn,ce.createElement(mt,{key:Xn,color:rn,ptg:Wn,radius:hr,prefixCls:hn,gradientId:br,style:Tn,strokeLinecap:qe,strokeWidth:Ln,gapDegree:gr,ref:function(Jt){Ut[Xn]=Jt},size:Le})}).reverse()},mn=function(){var Nn=Math.round(Jn*(_t[0]/100)),Wn=100/Jn,Xn=0;return new Array(Jn).fill(null).map(function(rn,Tn){var Nt=Tn<=Nn-1?He[0]:Cr,Jt=Nt&&(0,wt.Z)(Nt)==="object"?"url(#".concat(br,")"):void 0,sn=Bt(Yr,Ir,Xn,Wn,cr,gr,Un,Nt,"butt",Ln,Dr);return Xn+=(Ir-sn.strokeDashoffset+Dr)*100/Ir,ce.createElement("circle",{key:Tn,className:"".concat(hn,"-circle-path"),r:hr,cx:Zn,cy:Zn,stroke:Jt,strokeWidth:Ln,opacity:1,style:sn,ref:function(In){Ut[Tn]=In}})})};return ce.createElement("svg",(0,Ke.Z)({className:pe()("".concat(hn,"-circle"),vr),viewBox:"0 0 ".concat(Le," ").concat(Le),style:$r,id:Gt,role:"presentation"},wn),!Jn&&ce.createElement("circle",{className:"".concat(hn,"-circle-trail"),r:hr,cx:Zn,cy:Zn,stroke:Cr,strokeLinecap:qe,strokeWidth:Kn||Ln,style:Mt}),Jn?mn():An())},Tt=Lt,Xt={Line:yt,Circle:Tt},jt=ae(6848),it=ae(30071);function Ce(Ae){return!Ae||Ae<0?0:Ae>100?100:Ae}function Et(Ae){let{success:Ve,successPercent:Kt}=Ae,Gt=Kt;return Ve&&"progress"in Ve&&(Gt=Ve.progress),Ve&&"percent"in Ve&&(Gt=Ve.percent),Gt}const on=Ae=>{let{percent:Ve,success:Kt,successPercent:Gt}=Ae;const hn=Ce(Et({success:Kt,successPercent:Gt}));return[hn,Ce(Ce(Ve)-hn)]},Yt=Ae=>{let{success:Ve={},strokeColor:Kt}=Ae;const{strokeColor:Gt}=Ve;return[Gt||it.presetPrimaryColors.green,Kt||null]},lt=(Ae,Ve,Kt)=>{var Gt,hn,On,Ln;let Kn=-1,tr=-1;if(Ve==="step"){const gr=Kt.steps,Un=Kt.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?(Kn=Ae==="small"?2:14,tr=Un!=null?Un:8):typeof Ae=="number"?[Kn,tr]=[Ae,Ae]:[Kn=14,tr=8]=Ae,Kn*=gr}else if(Ve==="line"){const gr=Kt==null?void 0:Kt.strokeWidth;typeof Ae=="string"||typeof Ae=="undefined"?tr=gr||(Ae==="small"?6:8):typeof Ae=="number"?[Kn,tr]=[Ae,Ae]:[Kn=-1,tr=8]=Ae}else(Ve==="circle"||Ve==="dashboard")&&(typeof Ae=="string"||typeof Ae=="undefined"?[Kn,tr]=Ae==="small"?[60,60]:[120,120]:typeof Ae=="number"?[Kn,tr]=[Ae,Ae]:(Kn=(hn=(Gt=Ae[0])!==null&&Gt!==void 0?Gt:Ae[1])!==null&&hn!==void 0?hn:120,tr=(Ln=(On=Ae[0])!==null&&On!==void 0?On:Ae[1])!==null&&Ln!==void 0?Ln:120));return[Kn,tr]},pt=3,Ft=Ae=>pt/Ae*100;var $t=Ae=>{const{prefixCls:Ve,trailColor:Kt=null,strokeLinecap:Gt="round",gapPosition:hn,gapDegree:On,width:Ln=120,type:Kn,children:tr,success:gr,size:Un=Ln}=Ae,[Cr,Rr]=lt(Un,"circle");let{strokeWidth:$r}=Ae;$r===void 0&&($r=Math.max(Ft(Cr),6));const vr={width:Cr,height:Rr,fontSize:Cr*.15+6},Er=ce.useMemo(()=>{if(On||On===0)return On;if(Kn==="dashboard")return 75},[On,Kn]),Hr=hn||Kn==="dashboard"&&"bottom"||void 0,wn=Object.prototype.toString.call(Ae.strokeColor)==="[object Object]",Zn=Yt({success:gr,strokeColor:Ae.strokeColor}),Or=pe()(`${Ve}-inner`,{[`${Ve}-circle-gradient`]:wn}),br=ce.createElement(Tt,{percent:on(Ae),strokeWidth:$r,trailWidth:$r,strokeColor:Zn,strokeLinecap:Gt,trailColor:Kt,prefixCls:Ve,gapDegree:Er,gapPosition:Hr});return ce.createElement("div",{className:Or,style:vr},Cr<=20?ce.createElement(jt.Z,{title:tr},ce.createElement("span",null,br)):ce.createElement(ce.Fragment,null,br,tr))},Pn=function(Ae,Ve){var Kt={};for(var Gt in Ae)Object.prototype.hasOwnProperty.call(Ae,Gt)&&Ve.indexOf(Gt)<0&&(Kt[Gt]=Ae[Gt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Gt=Object.getOwnPropertySymbols(Ae);hn<Gt.length;hn++)Ve.indexOf(Gt[hn])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Gt[hn])&&(Kt[Gt[hn]]=Ae[Gt[hn]]);return Kt};const Zt=Ae=>{let Ve=[];return Object.keys(Ae).forEach(Kt=>{const Gt=parseFloat(Kt.replace(/%/g,""));isNaN(Gt)||Ve.push({key:Gt,value:Ae[Kt]})}),Ve=Ve.sort((Kt,Gt)=>Kt.key-Gt.key),Ve.map(Kt=>{let{key:Gt,value:hn}=Kt;return`${hn} ${Gt}%`}).join(", ")},an=(Ae,Ve)=>{const{from:Kt=it.presetPrimaryColors.blue,to:Gt=it.presetPrimaryColors.blue,direction:hn=Ve==="rtl"?"to left":"to right"}=Ae,On=Pn(Ae,["from","to","direction"]);if(Object.keys(On).length!==0){const Ln=Zt(On);return{backgroundImage:`linear-gradient(${hn}, ${Ln})`}}return{backgroundImage:`linear-gradient(${hn}, ${Kt}, ${Gt})`}};var ye=Ae=>{const{prefixCls:Ve,direction:Kt,percent:Gt,size:hn,strokeWidth:On,strokeColor:Ln,strokeLinecap:Kn="round",children:tr,trailColor:gr=null,success:Un}=Ae,Cr=Ln&&typeof Ln!="string"?an(Ln,Kt):{backgroundColor:Ln},Rr=Kn==="square"||Kn==="butt"?0:void 0,$r={backgroundColor:gr||void 0,borderRadius:Rr},vr=hn!=null?hn:[-1,On||(hn==="small"?6:8)],[Er,Hr]=lt(vr,"line",{strokeWidth:On}),wn=Object.assign({width:`${Ce(Gt)}%`,height:Hr,borderRadius:Rr},Cr),Zn=Et(Ae),Or={width:`${Ce(Zn)}%`,height:Hr,borderRadius:Rr,backgroundColor:Un==null?void 0:Un.strokeColor},br={width:Er<0?"100%":Er,height:Hr};return ce.createElement(ce.Fragment,null,ce.createElement("div",{className:`${Ve}-outer`,style:br},ce.createElement("div",{className:`${Ve}-inner`,style:$r},ce.createElement("div",{className:`${Ve}-bg`,style:wn}),Zn!==void 0?ce.createElement("div",{className:`${Ve}-success-bg`,style:Or}):null)),tr)},le=Ae=>{const{size:Ve,steps:Kt,percent:Gt=0,strokeWidth:hn=8,strokeColor:On,trailColor:Ln=null,prefixCls:Kn,children:tr}=Ae,gr=Math.round(Kt*(Gt/100)),Un=Ve==="small"?2:14,Cr=Ve!=null?Ve:[Un,hn],[Rr,$r]=lt(Cr,"step",{steps:Kt,strokeWidth:hn}),vr=Rr/Kt,Er=new Array(Kt);for(let Hr=0;Hr<Kt;Hr++){const wn=Array.isArray(On)?On[Hr]:On;Er[Hr]=ce.createElement("div",{key:Hr,className:pe()(`${Kn}-steps-item`,{[`${Kn}-steps-item-active`]:Hr<=gr-1}),style:{backgroundColor:Hr<=gr-1?wn:Ln,width:vr,height:$r}})}return ce.createElement("div",{className:`${Kn}-steps-outer`},Er,tr)},de=ae(36237),ge=ae(17313),se=ae(83116),Oe=ae(37613);const ut=Ae=>{const Ve=Ae?"100%":"-100%";return new de.Keyframes(`antProgress${Ae?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ve}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ve}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ge=Ae=>{const{componentCls:Ve,iconCls:Kt}=Ae;return{[Ve]:Object.assign(Object.assign({},(0,ge.Wf)(Ae)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ae.fontSize,marginInlineEnd:Ae.marginXS,marginBottom:Ae.marginXS},[`${Ve}-outer`]:{display:"inline-block",width:"100%"},[`&${Ve}-show-info`]:{[`${Ve}-outer`]:{marginInlineEnd:`calc(-2em - ${Ae.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Ae.paddingXS}px)`}},[`${Ve}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Ae.remainingColor,borderRadius:Ae.lineBorderRadius},[`${Ve}-inner:not(${Ve}-circle-gradient)`]:{[`${Ve}-circle-path`]:{stroke:Ae.defaultColor}},[`${Ve}-success-bg, ${Ve}-bg`]:{position:"relative",backgroundColor:Ae.defaultColor,borderRadius:Ae.lineBorderRadius,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOutCirc}`},[`${Ve}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ae.colorSuccess},[`${Ve}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Ae.marginXS,color:Ae.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Kt]:{fontSize:Ae.fontSize}},[`&${Ve}-status-active`]:{[`${Ve}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ae.colorBgContainer,borderRadius:Ae.lineBorderRadius,opacity:0,animationName:ut(),animationDuration:Ae.progressActiveMotionDuration,animationTimingFunction:Ae.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ve}-rtl${Ve}-status-active`]:{[`${Ve}-bg::before`]:{animationName:ut(!0)}},[`&${Ve}-status-exception`]:{[`${Ve}-bg`]:{backgroundColor:Ae.colorError},[`${Ve}-text`]:{color:Ae.colorError}},[`&${Ve}-status-exception ${Ve}-inner:not(${Ve}-circle-gradient)`]:{[`${Ve}-circle-path`]:{stroke:Ae.colorError}},[`&${Ve}-status-success`]:{[`${Ve}-bg`]:{backgroundColor:Ae.colorSuccess},[`${Ve}-text`]:{color:Ae.colorSuccess}},[`&${Ve}-status-success ${Ve}-inner:not(${Ve}-circle-gradient)`]:{[`${Ve}-circle-path`]:{stroke:Ae.colorSuccess}}})}},_e=Ae=>{const{componentCls:Ve,iconCls:Kt}=Ae;return{[Ve]:{[`${Ve}-circle-trail`]:{stroke:Ae.remainingColor},[`&${Ve}-circle ${Ve}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ve}-circle ${Ve}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ae.circleTextColor,fontSize:Ae.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Kt]:{fontSize:`${Ae.fontSize/Ae.fontSizeSM}em`}},[`${Ve}-circle&-status-exception`]:{[`${Ve}-text`]:{color:Ae.colorError}},[`${Ve}-circle&-status-success`]:{[`${Ve}-text`]:{color:Ae.colorSuccess}}},[`${Ve}-inline-circle`]:{lineHeight:1,[`${Ve}-inner`]:{verticalAlign:"bottom"}}}},St=Ae=>{const{componentCls:Ve}=Ae;return{[Ve]:{[`${Ve}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ae.progressStepMinWidth,marginInlineEnd:Ae.progressStepMarginInlineEnd,backgroundColor:Ae.remainingColor,transition:`all ${Ae.motionDurationSlow}`,"&-active":{backgroundColor:Ae.defaultColor}}}}}},bt=Ae=>{const{componentCls:Ve,iconCls:Kt}=Ae;return{[Ve]:{[`${Ve}-small&-line, ${Ve}-small&-line ${Ve}-text ${Kt}`]:{fontSize:Ae.fontSizeSM}}}};var rt=(0,se.Z)("Progress",Ae=>{const Ve=Ae.marginXXS/2,Kt=(0,Oe.TS)(Ae,{progressStepMarginInlineEnd:Ve,progressStepMinWidth:Ve,progressActiveMotionDuration:"2.4s"});return[Ge(Kt),_e(Kt),St(Kt),bt(Kt)]},Ae=>({circleTextColor:Ae.colorText,defaultColor:Ae.colorInfo,remainingColor:Ae.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Dt=function(Ae,Ve){var Kt={};for(var Gt in Ae)Object.prototype.hasOwnProperty.call(Ae,Gt)&&Ve.indexOf(Gt)<0&&(Kt[Gt]=Ae[Gt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Gt=Object.getOwnPropertySymbols(Ae);hn<Gt.length;hn++)Ve.indexOf(Gt[hn])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Gt[hn])&&(Kt[Gt[hn]]=Ae[Gt[hn]]);return Kt};const xn=null,xt=["normal","exception","active","success"];var cn=ce.forwardRef((Ae,Ve)=>{const{prefixCls:Kt,className:Gt,rootClassName:hn,steps:On,strokeColor:Ln,percent:Kn=0,size:tr="default",showInfo:gr=!0,type:Un="line",status:Cr,format:Rr,style:$r}=Ae,vr=Dt(Ae,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Er=ce.useMemo(()=>{var _t,He;const nt=Et(Ae);return parseInt(nt!==void 0?(_t=nt!=null?nt:0)===null||_t===void 0?void 0:_t.toString():(He=Kn!=null?Kn:0)===null||He===void 0?void 0:He.toString(),10)},[Kn,Ae.success,Ae.successPercent]),Hr=ce.useMemo(()=>!xt.includes(Cr)&&Er>=100?"success":Cr||"normal",[Cr,Er]),{getPrefixCls:wn,direction:Zn,progress:Or}=ce.useContext(Me.E_),br=wn("progress",Kt),[hr,Yr]=rt(br),cr=ce.useMemo(()=>{if(!gr)return null;const _t=Et(Ae);let He;const nt=Rr||(qe=>`${qe}%`),Ye=Un==="line";return Rr||Hr!=="exception"&&Hr!=="success"?He=nt(Ce(Kn),Ce(_t)):Hr==="exception"?He=Ye?ce.createElement(dt.Z,null):ce.createElement(be.Z,null):Hr==="success"&&(He=Ye?ce.createElement(De.Z,null):ce.createElement(Te.Z,null)),ce.createElement("span",{className:`${br}-text`,title:typeof He=="string"?He:void 0},He)},[gr,Kn,Er,Hr,Un,br,Rr]),Ir=Array.isArray(Ln)?Ln[0]:Ln,or=typeof Ln=="string"||Array.isArray(Ln)?Ln:void 0;let Jn;Un==="line"?Jn=On?ce.createElement(le,Object.assign({},Ae,{strokeColor:or,prefixCls:br,steps:On}),cr):ce.createElement(ye,Object.assign({},Ae,{strokeColor:Ir,prefixCls:br,direction:Zn}),cr):(Un==="circle"||Un==="dashboard")&&(Jn=ce.createElement($t,Object.assign({},Ae,{strokeColor:Ir,prefixCls:br,progressStatus:Hr}),cr));const Dr=pe()(br,`${br}-status-${Hr}`,`${br}-${Un==="dashboard"&&"circle"||On&&"steps"||Un}`,{[`${br}-inline-circle`]:Un==="circle"&<(tr,"circle")[0]<=20,[`${br}-show-info`]:gr,[`${br}-${tr}`]:typeof tr=="string",[`${br}-rtl`]:Zn==="rtl"},Or==null?void 0:Or.className,Gt,hn,Yr);return hr(ce.createElement("div",Object.assign({ref:Ve,style:Object.assign(Object.assign({},Or==null?void 0:Or.style),$r),className:Dr,role:"progressbar","aria-valuenow":Er},(0,xe.Z)(vr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),ct=cn},5112:function(zn,en,ae){"use strict";ae.d(en,{ZP:function(){return it}});var ce=ae(92310),De=ae.n(ce),Te=ae(18929),dt=ae(26112),be=ae(59301),ke=ae(36355),pe=ae(19716);const xe=be.createContext(null),Me=xe.Provider;var Ke=xe;const vt=be.createContext(null),Pe=vt.Provider;var Be=ae(5630),et=ae(8654),Je=ae(1684),tt=ae(32441),yt=ae(17313),wt=ae(83116),It=ae(37613);const gt=Ce=>{const{componentCls:Et,antCls:on}=Ce,Yt=`${Et}-group`;return{[Yt]:Object.assign(Object.assign({},(0,yt.Wf)(Ce)),{display:"inline-block",fontSize:0,[`&${Yt}-rtl`]:{direction:"rtl"},[`${on}-badge ${on}-badge-count`]:{zIndex:1},[`> ${on}-badge:not(:first-child) > ${on}-button-wrapper`]:{borderInlineStart:"none"}})}},st=Ce=>{const{componentCls:Et,wrapperMarginInlineEnd:on,colorPrimary:Yt,radioSize:lt,motionDurationSlow:pt,motionDurationMid:Ft,motionEaseInOutCirc:Sn,colorBgContainer:$t,colorBorder:Pn,lineWidth:Zt,dotSize:an,colorBgContainerDisabled:Ht,colorTextDisabled:ye,paddingXS:ue,dotColorDisabled:le,lineType:de,radioDotDisabledSize:ge,wireframe:se,colorWhite:Oe}=Ce,ut=`${Et}-inner`;return{[`${Et}-wrapper`]:Object.assign(Object.assign({},(0,yt.Wf)(Ce)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:on,cursor:"pointer",[`&${Et}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Ce.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Et}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Zt}px ${de} ${Yt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Et]:Object.assign(Object.assign({},(0,yt.Wf)(Ce)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Et}-wrapper:hover &,
|
|
|
&:hover ${ut}`]:{borderColor:Yt},[`${Et}-input:focus-visible + ${ut}`]:Object.assign({},(0,yt.oN)(Ce)),[`${Et}:hover::after, ${Et}-wrapper:hover &::after`]:{visibility:"visible"},[`${Et}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:lt,height:lt,marginBlockStart:lt/-2,marginInlineStart:lt/-2,backgroundColor:se?Yt:Oe,borderBlockStart:0,borderInlineStart:0,borderRadius:lt,transform:"scale(0)",opacity:0,transition:`all ${pt} ${Sn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:lt,height:lt,backgroundColor:$t,borderColor:Pn,borderStyle:"solid",borderWidth:Zt,borderRadius:"50%",transition:`all ${Ft}`},[`${Et}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Et}-checked`]:{[ut]:{borderColor:Yt,backgroundColor:se?$t:Yt,"&::after":{transform:`scale(${an/lt})`,opacity:1,transition:`all ${pt} ${Sn}`}}},[`${Et}-disabled`]:{cursor:"not-allowed",[ut]:{backgroundColor:Ht,borderColor:Pn,cursor:"not-allowed","&::after":{backgroundColor:le}},[`${Et}-input`]:{cursor:"not-allowed"},[`${Et}-disabled + span`]:{color:ye,cursor:"not-allowed"},[`&${Et}-checked`]:{[ut]:{"&::after":{transform:`scale(${ge/lt})`}}}},[`span${Et} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},ze=Ce=>{const{buttonColor:Et,controlHeight:on,componentCls:Yt,lineWidth:lt,lineType:pt,colorBorder:Ft,motionDurationSlow:Sn,motionDurationMid:$t,buttonPaddingInline:Pn,fontSize:Zt,buttonBg:an,fontSizeLG:Ht,controlHeightLG:ye,controlHeightSM:ue,paddingXS:le,borderRadius:de,borderRadiusSM:ge,borderRadiusLG:se,buttonCheckedBg:Oe,buttonSolidCheckedColor:ut,colorTextDisabled:Ge,colorBgContainerDisabled:_e,buttonCheckedBgDisabled:St,buttonCheckedColorDisabled:bt,colorPrimary:rt,colorPrimaryHover:Dt,colorPrimaryActive:xn,buttonSolidCheckedBg:xt,buttonSolidCheckedHoverBg:Rt,buttonSolidCheckedActiveBg:cn}=Ce;return{[`${Yt}-button-wrapper`]:{position:"relative",display:"inline-block",height:on,margin:0,paddingInline:Pn,paddingBlock:0,color:Et,fontSize:Zt,lineHeight:`${on-lt*2}px`,background:an,border:`${lt}px ${pt} ${Ft}`,borderBlockStartWidth:lt+.02,borderInlineStartWidth:0,borderInlineEndWidth:lt,cursor:"pointer",transition:[`color ${$t}`,`background ${$t}`,`box-shadow ${$t}`].join(","),a:{color:Et},[`> ${Yt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-lt,insetInlineStart:-lt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:lt,paddingInline:0,backgroundColor:Ft,transition:`background-color ${Sn}`,content:'""'}},"&:first-child":{borderInlineStart:`${lt}px ${pt} ${Ft}`,borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de},"&:first-child:last-child":{borderRadius:de},[`${Yt}-group-large &`]:{height:ye,fontSize:Ht,lineHeight:`${ye-lt*2}px`,"&:first-child":{borderStartStartRadius:se,borderEndStartRadius:se},"&:last-child":{borderStartEndRadius:se,borderEndEndRadius:se}},[`${Yt}-group-small &`]:{height:ue,paddingInline:le-lt,paddingBlock:0,lineHeight:`${ue-lt*2}px`,"&:first-child":{borderStartStartRadius:ge,borderEndStartRadius:ge},"&:last-child":{borderStartEndRadius:ge,borderEndEndRadius:ge}},"&:hover":{position:"relative",color:rt},"&:has(:focus-visible)":Object.assign({},(0,yt.oN)(Ce)),[`${Yt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Yt}-button-wrapper-disabled)`]:{zIndex:1,color:rt,background:Oe,borderColor:rt,"&::before":{backgroundColor:rt},"&:first-child":{borderColor:rt},"&:hover":{color:Dt,borderColor:Dt,"&::before":{backgroundColor:Dt}},"&:active":{color:xn,borderColor:xn,"&::before":{backgroundColor:xn}}},[`${Yt}-group-solid &-checked:not(${Yt}-button-wrapper-disabled)`]:{color:ut,background:xt,borderColor:xt,"&:hover":{color:ut,background:Rt,borderColor:Rt},"&:active":{color:ut,background:cn,borderColor:cn}},"&-disabled":{color:Ge,backgroundColor:_e,borderColor:Ft,cursor:"not-allowed","&:first-child, &:hover":{color:Ge,backgroundColor:_e,borderColor:Ft}},[`&-disabled${Yt}-button-wrapper-checked`]:{color:bt,backgroundColor:St,borderColor:Ft,boxShadow:"none"}}}},he=Ce=>Ce-4*2;var je=(0,wt.Z)("Radio",Ce=>{const{controlOutline:Et,controlOutlineWidth:on,radioSize:Yt}=Ce,lt=`0 0 0 ${on}px ${Et}`,pt=lt,Ft=he(Yt),Sn=(0,It.TS)(Ce,{radioDotDisabledSize:Ft,radioFocusShadow:lt,radioButtonFocusShadow:pt});return[gt(Sn),st(Sn),ze(Sn)]},Ce=>{const{wireframe:Et,padding:on,marginXS:Yt,lineWidth:lt,fontSizeLG:pt,colorText:Ft,colorBgContainer:Sn,colorTextDisabled:$t,controlItemBgActiveDisabled:Pn,colorTextLightSolid:Zt,colorPrimary:an,colorPrimaryHover:Ht,colorPrimaryActive:ye}=Ce,ue=4,le=pt,de=Et?he(le):le-(ue+lt)*2;return{radioSize:le,dotSize:de,dotColorDisabled:$t,buttonSolidCheckedColor:Zt,buttonSolidCheckedBg:an,buttonSolidCheckedHoverBg:Ht,buttonSolidCheckedActiveBg:ye,buttonBg:Sn,buttonCheckedBg:Sn,buttonColor:Ft,buttonCheckedBgDisabled:Pn,buttonCheckedColorDisabled:$t,buttonPaddingInline:on-lt,wrapperMarginInlineEnd:Yt}}),Xe=ae(14088),Qe=ae(4572),Ue=function(Ce,Et){var on={};for(var Yt in Ce)Object.prototype.hasOwnProperty.call(Ce,Yt)&&Et.indexOf(Yt)<0&&(on[Yt]=Ce[Yt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Yt=Object.getOwnPropertySymbols(Ce);lt<Yt.length;lt++)Et.indexOf(Yt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Yt[lt])&&(on[Yt[lt]]=Ce[Yt[lt]]);return on};const mt=(Ce,Et)=>{var on,Yt;const lt=be.useContext(Ke),pt=be.useContext(vt),{getPrefixCls:Ft,direction:Sn,radio:$t}=be.useContext(ke.E_),Pn=be.useRef(null),Zt=(0,et.sQ)(Et,Pn),{isFormItemInput:an}=be.useContext(tt.aM),Ht=xn=>{var xt,Rt;(xt=Ce.onChange)===null||xt===void 0||xt.call(Ce,xn),(Rt=lt==null?void 0:lt.onChange)===null||Rt===void 0||Rt.call(lt,xn)},{prefixCls:ye,className:ue,rootClassName:le,children:de,style:ge}=Ce,se=Ue(Ce,["prefixCls","className","rootClassName","children","style"]),Oe=Ft("radio",ye),ut=((lt==null?void 0:lt.optionType)||pt)==="button",Ge=ut?`${Oe}-button`:Oe,[_e,St]=je(Oe),bt=Object.assign({},se),rt=be.useContext(Je.Z);lt&&(bt.name=lt.name,bt.onChange=Ht,bt.checked=Ce.value===lt.value,bt.disabled=(on=bt.disabled)!==null&&on!==void 0?on:lt.disabled),bt.disabled=(Yt=bt.disabled)!==null&&Yt!==void 0?Yt:rt;const Dt=De()(`${Ge}-wrapper`,{[`${Ge}-wrapper-checked`]:bt.checked,[`${Ge}-wrapper-disabled`]:bt.disabled,[`${Ge}-wrapper-rtl`]:Sn==="rtl",[`${Ge}-wrapper-in-form-item`]:an},$t==null?void 0:$t.className,ue,le,St);return _e(be.createElement(Xe.Z,{component:"Radio",disabled:bt.disabled},be.createElement("label",{className:Dt,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),ge),onMouseEnter:Ce.onMouseEnter,onMouseLeave:Ce.onMouseLeave},be.createElement(Be.Z,Object.assign({},bt,{className:De()(bt.className,!ut&&Qe.A),type:"radio",prefixCls:Ge,ref:Zt})),de!==void 0?be.createElement("span",null,de):null)))};var Bt=be.forwardRef(mt);const at=be.forwardRef((Ce,Et)=>{const{getPrefixCls:on,direction:Yt}=be.useContext(ke.E_),[lt,pt]=(0,Te.Z)(Ce.defaultValue,{value:Ce.value}),Ft=xt=>{const Rt=lt,cn=xt.target.value;"value"in Ce||pt(cn);const{onChange:ct}=Ce;ct&&cn!==Rt&&ct(xt)},{prefixCls:Sn,className:$t,rootClassName:Pn,options:Zt,buttonStyle:an="outline",disabled:Ht,children:ye,size:ue,style:le,id:de,onMouseEnter:ge,onMouseLeave:se,onFocus:Oe,onBlur:ut}=Ce,Ge=on("radio",Sn),_e=`${Ge}-group`,[St,bt]=je(Ge);let rt=ye;Zt&&Zt.length>0&&(rt=Zt.map(xt=>typeof xt=="string"||typeof xt=="number"?be.createElement(Bt,{key:xt.toString(),prefixCls:Ge,disabled:Ht,value:xt,checked:lt===xt},xt):be.createElement(Bt,{key:`radio-group-value-options-${xt.value}`,prefixCls:Ge,disabled:xt.disabled||Ht,value:xt.value,checked:lt===xt.value,title:xt.title,style:xt.style},xt.label)));const Dt=(0,pe.Z)(ue),xn=De()(_e,`${_e}-${an}`,{[`${_e}-${Dt}`]:Dt,[`${_e}-rtl`]:Yt==="rtl"},$t,Pn,bt);return St(be.createElement("div",Object.assign({},(0,dt.Z)(Ce,{aria:!0,data:!0}),{className:xn,style:le,onMouseEnter:ge,onMouseLeave:se,onFocus:Oe,onBlur:ut,id:de,ref:Et}),be.createElement(Me,{value:{onChange:Ft,value:lt,disabled:Ce.disabled,name:Ce.name,optionType:Ce.optionType}},rt)))});var Wt=be.memo(at),Lt=function(Ce,Et){var on={};for(var Yt in Ce)Object.prototype.hasOwnProperty.call(Ce,Yt)&&Et.indexOf(Yt)<0&&(on[Yt]=Ce[Yt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Yt=Object.getOwnPropertySymbols(Ce);lt<Yt.length;lt++)Et.indexOf(Yt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Yt[lt])&&(on[Yt[lt]]=Ce[Yt[lt]]);return on};const Tt=(Ce,Et)=>{const{getPrefixCls:on}=be.useContext(ke.E_),{prefixCls:Yt}=Ce,lt=Lt(Ce,["prefixCls"]),pt=on("radio",Yt);return be.createElement(Pe,{value:"button"},be.createElement(Bt,Object.assign({prefixCls:pt},lt,{type:"radio",ref:Et})))};var Xt=be.forwardRef(Tt);const jt=Bt;jt.Button=Xt,jt.Group=Wt,jt.__ANT_RADIO=!0;var it=jt},57809:function(zn,en,ae){"use strict";var ce=ae(92310),De=ae.n(ce),Te=ae(77861),dt=ae(2738),be=ae(59301),ke=ae(53487),pe=ae(62892),xe=ae(19080),Me=ae(36355),Ke=ae(1684),vt=ae(93891),Pe=ae(19716),Be=ae(32441),et=ae(33234),Je=ae(14154),tt=ae(58582),yt=ae(84443),wt=ae(66339),It=function(je,Xe){var Qe={};for(var Ue in je)Object.prototype.hasOwnProperty.call(je,Ue)&&Xe.indexOf(Ue)<0&&(Qe[Ue]=je[Ue]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Ue=Object.getOwnPropertySymbols(je);mt<Ue.length;mt++)Xe.indexOf(Ue[mt])<0&&Object.prototype.propertyIsEnumerable.call(je,Ue[mt])&&(Qe[Ue[mt]]=je[Ue[mt]]);return Qe};const gt="SECRET_COMBOBOX_MODE_DO_NOT_USE",st=(je,Xe)=>{var Qe,{prefixCls:Ue,bordered:mt=!0,className:Le,rootClassName:Bt,getPopupContainer:at,popupClassName:Wt,dropdownClassName:Lt,listHeight:Tt=256,placement:Xt,listItemHeight:jt=24,size:it,disabled:Ce,notFoundContent:Et,status:on,builtinPlacements:Yt,dropdownMatchSelectWidth:lt,popupMatchSelectWidth:pt,direction:Ft,style:Sn,allowClear:$t}=je,Pn=It(je,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Zt,getPrefixCls:an,renderEmpty:Ht,direction:ye,virtual:ue,popupMatchSelectWidth:le,popupOverflow:de,select:ge}=be.useContext(Me.E_),se=an("select",Ue),Oe=an(),ut=Ft!=null?Ft:ye,{compactSize:Ge,compactItemClassnames:_e}=(0,et.ri)(se,ut),[St,bt]=(0,Je.Z)(se),rt=be.useMemo(()=>{const{mode:Hr}=Pn;if(Hr!=="combobox")return Hr===gt?"combobox":Hr},[Pn.mode]),Dt=rt==="multiple"||rt==="tags",xn=(0,yt.Z)(Pn.suffixIcon,Pn.showArrow),xt=(Qe=pt!=null?pt:lt)!==null&&Qe!==void 0?Qe:le,{status:Rt,hasFeedback:cn,isFormItemInput:ct,feedbackIcon:Ae}=be.useContext(Be.aM),Ve=(0,xe.F)(Rt,on);let Kt;Et!==void 0?Kt=Et:rt==="combobox"?Kt=null:Kt=(Ht==null?void 0:Ht("Select"))||be.createElement(vt.Z,{componentName:"Select"});const{suffixIcon:Gt,itemIcon:hn,removeIcon:On,clearIcon:Ln}=(0,wt.Z)(Object.assign(Object.assign({},Pn),{multiple:Dt,hasFeedback:cn,feedbackIcon:Ae,showSuffixIcon:xn,prefixCls:se,showArrow:Pn.showArrow,componentName:"Select"})),Kn=$t===!0?{clearIcon:Ln}:$t,tr=(0,dt.Z)(Pn,["suffixIcon","itemIcon"]),gr=De()(Wt||Lt,{[`${se}-dropdown-${ut}`]:ut==="rtl"},Bt,bt),Un=(0,Pe.Z)(Hr=>{var wn;return(wn=it!=null?it:Ge)!==null&&wn!==void 0?wn:Hr}),Cr=be.useContext(Ke.Z),Rr=Ce!=null?Ce:Cr,$r=De()({[`${se}-lg`]:Un==="large",[`${se}-sm`]:Un==="small",[`${se}-rtl`]:ut==="rtl",[`${se}-borderless`]:!mt,[`${se}-in-form-item`]:ct},(0,xe.Z)(se,Ve,cn),_e,ge==null?void 0:ge.className,Le,Bt,bt),vr=be.useMemo(()=>Xt!==void 0?Xt:ut==="rtl"?"bottomRight":"bottomLeft",[Xt,ut]),Er=(0,tt.Z)(Yt,de);return St(be.createElement(Te.ZP,Object.assign({ref:Xe,virtual:ue,showSearch:ge==null?void 0:ge.showSearch},tr,{style:Object.assign(Object.assign({},ge==null?void 0:ge.style),Sn),dropdownMatchSelectWidth:xt,builtinPlacements:Er,transitionName:(0,pe.m)(Oe,"slide-up",Pn.transitionName),listHeight:Tt,listItemHeight:jt,mode:rt,prefixCls:se,placement:vr,direction:ut,suffixIcon:Gt,menuItemSelectedIcon:hn,removeIcon:On,allowClear:Kn,notFoundContent:Kt,className:$r,getPopupContainer:at||Zt,dropdownClassName:gr,disabled:Rr})))},ze=be.forwardRef(st),he=(0,ke.Z)(ze);ze.SECRET_COMBOBOX_MODE_DO_NOT_USE=gt,ze.Option=Te.Wx,ze.OptGroup=Te.Xo,ze._InternalPanelDoNotUseOrYouWillBeFired=he,en.default=ze},14154:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return ze}});var ce=ae(17313),De=ae(74207),Te=ae(37613),dt=ae(83116),be=ae(13826),ke=ae(92899);const pe=he=>{const{optionHeight:je,optionFontSize:Xe,optionLineHeight:Qe,optionPadding:Ue}=he;return{position:"relative",display:"block",minHeight:je,padding:Ue,color:he.colorText,fontWeight:"normal",fontSize:Xe,lineHeight:Qe,boxSizing:"border-box"}};var Me=he=>{const{antCls:je,componentCls:Xe}=he,Qe=`${Xe}-item`,Ue=`&${je}-slide-up-enter${je}-slide-up-enter-active`,mt=`&${je}-slide-up-appear${je}-slide-up-appear-active`,Le=`&${je}-slide-up-leave${je}-slide-up-leave-active`,Bt=`${Xe}-dropdown-placement-`;return[{[`${Xe}-dropdown`]:Object.assign(Object.assign({},(0,ce.Wf)(he)),{position:"absolute",top:-9999,zIndex:he.zIndexPopup,boxSizing:"border-box",padding:he.paddingXXS,overflow:"hidden",fontSize:he.fontSize,fontVariant:"initial",backgroundColor:he.colorBgElevated,borderRadius:he.borderRadiusLG,outline:"none",boxShadow:he.boxShadowSecondary,[`
|
|
|
${Ue}${Bt}bottomLeft,
|
|
|
${mt}${Bt}bottomLeft
|
|
|
`]:{animationName:be.fJ},[`
|
|
|
${Ue}${Bt}topLeft,
|
|
|
${mt}${Bt}topLeft,
|
|
|
${Ue}${Bt}topRight,
|
|
|
${mt}${Bt}topRight
|
|
|
`]:{animationName:be.Qt},[`${Le}${Bt}bottomLeft`]:{animationName:be.Uw},[`
|
|
|
${Le}${Bt}topLeft,
|
|
|
${Le}${Bt}topRight
|
|
|
`]:{animationName:be.ly},"&-hidden":{display:"none"},[`${Qe}`]:Object.assign(Object.assign({},pe(he)),{cursor:"pointer",transition:`background ${he.motionDurationSlow} ease`,borderRadius:he.borderRadiusSM,"&-group":{color:he.colorTextDescription,fontSize:he.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ce.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Qe}-option-disabled)`]:{backgroundColor:he.optionActiveBg},[`&-selected:not(${Qe}-option-disabled)`]:{color:he.optionSelectedColor,fontWeight:he.optionSelectedFontWeight,backgroundColor:he.optionSelectedBg,[`${Qe}-option-state`]:{color:he.colorPrimary}},"&-disabled":{[`&${Qe}-option-selected`]:{backgroundColor:he.colorBgContainerDisabled},color:he.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:he.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,be.oN)(he,"slide-up"),(0,be.oN)(he,"slide-down"),(0,ke.Fm)(he,"move-up"),(0,ke.Fm)(he,"move-down")]};const Ke=2,vt=he=>{let{controlHeightSM:je,controlHeight:Xe,lineWidth:Qe}=he;const Ue=(Xe-je)/2-Qe,mt=Math.ceil(Ue/2);return[Ue,mt]};function Pe(he,je){const{componentCls:Xe,iconCls:Qe}=he,Ue=`${Xe}-selection-overflow`,mt=he.multipleSelectItemHeight,[Le]=vt(he),Bt=je?`${Xe}-${je}`:"";return{[`${Xe}-multiple${Bt}`]:{fontSize:he.fontSize,[Ue]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Xe}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Le-Ke}px ${Ke*2}px`,borderRadius:he.borderRadius,[`${Xe}-show-search&`]:{cursor:"text"},[`${Xe}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ke}px 0`,lineHeight:`${mt}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Xe}-show-arrow ${Xe}-selector,
|
|
|
&${Xe}-allow-clear ${Xe}-selector
|
|
|
`]:{paddingInlineEnd:he.fontSizeIcon+he.controlPaddingHorizontal},[`${Xe}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:mt,marginTop:Ke,marginBottom:Ke,lineHeight:`${mt-he.lineWidth*2}px`,background:he.multipleItemBg,border:`${he.lineWidth}px ${he.lineType} ${he.multipleItemBorderColor}`,borderRadius:he.borderRadiusSM,cursor:"default",transition:`font-size ${he.motionDurationSlow}, line-height ${he.motionDurationSlow}, height ${he.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ke*2,paddingInlineStart:he.paddingXS,paddingInlineEnd:he.paddingXS/2,[`${Xe}-disabled&`]:{color:he.multipleItemColorDisabled,borderColor:he.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ce.Ro)()),{display:"inline-flex",alignItems:"center",color:he.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Qe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:he.colorIconHover}})},[`${Ue}-item + ${Ue}-item`]:{[`${Xe}-selection-search`]:{marginInlineStart:0}},[`${Xe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.inputPaddingHorizontalBase-Le,"\n &-input,\n &-mirror\n ":{height:mt,fontFamily:he.fontFamily,lineHeight:`${mt}px`,transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Xe}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:he.inputPaddingHorizontalBase,insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}}}}var et=he=>{const{componentCls:je}=he,Xe=(0,Te.TS)(he,{controlHeight:he.controlHeightSM,multipleSelectItemHeight:he.controlHeightXS,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),Qe=(0,Te.TS)(he,{fontSize:he.fontSizeLG,controlHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius}),[,Ue]=vt(he);return[Pe(he),Pe(Xe,"sm"),{[`${je}-multiple${je}-sm`]:{[`${je}-selection-placeholder`]:{insetInline:he.controlPaddingHorizontalSM-he.lineWidth},[`${je}-selection-search`]:{marginInlineStart:Ue}}},Pe(Qe,"lg")]};function Je(he,je){const{componentCls:Xe,inputPaddingHorizontalBase:Qe,borderRadius:Ue}=he,mt=he.controlHeight-he.lineWidth*2,Le=Math.ceil(he.fontSize*1.25),Bt=je?`${Xe}-${je}`:"";return{[`${Xe}-single${Bt}`]:{fontSize:he.fontSize,[`${Xe}-selector`]:Object.assign(Object.assign({},(0,ce.Wf)(he)),{display:"flex",borderRadius:Ue,[`${Xe}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Qe,insetInlineEnd:Qe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Xe}-selection-item,
|
|
|
${Xe}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${mt}px`,transition:`all ${he.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${mt}px`}},[`${Xe}-selection-item`]:{position:"relative",userSelect:"none"},[`${Xe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Xe}-selection-item:after`,`${Xe}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Xe}-show-arrow ${Xe}-selection-item,
|
|
|
&${Xe}-show-arrow ${Xe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Le},[`&${Xe}-open ${Xe}-selection-item`]:{color:he.colorTextPlaceholder},[`&:not(${Xe}-customize-input)`]:{[`${Xe}-selector`]:{width:"100%",height:he.controlHeight,padding:`0 ${Qe}px`,[`${Xe}-selection-search-input`]:{height:mt},"&:after":{lineHeight:`${mt}px`}}},[`&${Xe}-customize-input`]:{[`${Xe}-selector`]:{"&:after":{display:"none"},[`${Xe}-selection-search`]:{position:"static",width:"100%"},[`${Xe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Qe}px`,"&:after":{display:"none"}}}}}}}function tt(he){const{componentCls:je}=he,Xe=he.controlPaddingHorizontalSM-he.lineWidth;return[Je(he),Je((0,Te.TS)(he,{controlHeight:he.controlHeightSM,borderRadius:he.borderRadiusSM}),"sm"),{[`${je}-single${je}-sm`]:{[`&:not(${je}-customize-input)`]:{[`${je}-selection-search`]:{insetInlineStart:Xe,insetInlineEnd:Xe},[`${je}-selector`]:{padding:`0 ${Xe}px`},[`&${je}-show-arrow ${je}-selection-search`]:{insetInlineEnd:Xe+he.fontSize*1.5},[`
|
|
|
&${je}-show-arrow ${je}-selection-item,
|
|
|
&${je}-show-arrow ${je}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:he.fontSize*1.5}}}},Je((0,Te.TS)(he,{controlHeight:he.singleItemHeightLG,fontSize:he.fontSizeLG,borderRadius:he.borderRadiusLG}),"lg")]}const yt=he=>{const{componentCls:je,selectorBg:Xe}=he;return{position:"relative",backgroundColor:Xe,border:`${he.lineWidth}px ${he.lineType} ${he.colorBorder}`,transition:`all ${he.motionDurationMid} ${he.motionEaseInOut}`,input:{cursor:"pointer"},[`${je}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${je}-disabled&`]:{color:he.colorTextDisabled,background:he.colorBgContainerDisabled,cursor:"not-allowed",[`${je}-multiple&`]:{background:he.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},wt=function(he,je){let Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Qe,borderHoverColor:Ue,outlineColor:mt,antCls:Le}=je,Bt=Xe?{[`${Qe}-selector`]:{borderColor:Ue}}:{};return{[he]:{[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${Le}-pagination-size-changer)`]:Object.assign(Object.assign({},Bt),{[`${Qe}-focused& ${Qe}-selector`]:{borderColor:Ue,boxShadow:`0 0 0 ${je.controlOutlineWidth}px ${mt}`,outline:0},[`&:hover ${Qe}-selector`]:{borderColor:Ue}})}}},It=he=>{const{componentCls:je}=he;return{[`${je}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},gt=he=>{const{componentCls:je,inputPaddingHorizontalBase:Xe,iconCls:Qe}=he;return{[je]:Object.assign(Object.assign({},(0,ce.Wf)(he)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${je}-customize-input) ${je}-selector`]:Object.assign(Object.assign({},yt(he)),It(he)),[`${je}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ce.vS),[`${je}-selection-placeholder`]:Object.assign(Object.assign({},ce.vS),{flex:1,color:he.colorTextPlaceholder,pointerEvents:"none"}),[`${je}-arrow`]:Object.assign(Object.assign({},(0,ce.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Xe,height:he.fontSizeIcon,marginTop:-he.fontSizeIcon/2,color:he.colorTextQuaternary,fontSize:he.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Qe]:{verticalAlign:"top",transition:`transform ${he.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${je}-suffix)`]:{pointerEvents:"auto"}},[`${je}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${je}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Xe,zIndex:1,display:"inline-block",width:he.fontSizeIcon,height:he.fontSizeIcon,marginTop:-he.fontSizeIcon/2,color:he.colorTextQuaternary,fontSize:he.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:he.clearBg,cursor:"pointer",opacity:0,transition:`color ${he.motionDurationMid} ease, opacity ${he.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:he.colorTextTertiary}},"&:hover":{[`${je}-clear`]:{opacity:1}}}),[`${je}-has-feedback`]:{[`${je}-clear`]:{insetInlineEnd:Xe+he.fontSize+he.paddingXS}}}},st=he=>{const{componentCls:je}=he;return[{[je]:{[`&-borderless ${je}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${je}-in-form-item`]:{width:"100%"}}},gt(he),tt(he),et(he),Me(he),{[`${je}-rtl`]:{direction:"rtl"}},wt(je,(0,Te.TS)(he,{borderHoverColor:he.colorPrimaryHover,outlineColor:he.controlOutline})),wt(`${je}-status-error`,(0,Te.TS)(he,{borderHoverColor:he.colorErrorHover,outlineColor:he.colorErrorOutline}),!0),wt(`${je}-status-warning`,(0,Te.TS)(he,{borderHoverColor:he.colorWarningHover,outlineColor:he.colorWarningOutline}),!0),(0,De.c)(he,{borderElCls:`${je}-selector`,focusElCls:`${je}-focused`})]};var ze=(0,dt.Z)("Select",(he,je)=>{let{rootPrefixCls:Xe}=je;const Qe=(0,Te.TS)(he,{rootPrefixCls:Xe,inputPaddingHorizontalBase:he.paddingSM-1,multipleSelectItemHeight:he.multipleItemHeight});return[st(Qe)]},he=>{const{fontSize:je,lineHeight:Xe,controlHeight:Qe,controlPaddingHorizontal:Ue,zIndexPopupBase:mt,colorText:Le,fontWeightStrong:Bt,controlItemBgActive:at,controlItemBgHover:Wt,colorBgContainer:Lt,colorFillSecondary:Tt,controlHeightLG:Xt,controlHeightSM:jt,colorBgContainerDisabled:it,colorTextDisabled:Ce}=he;return{zIndexPopup:mt+50,optionSelectedColor:Le,optionSelectedFontWeight:Bt,optionSelectedBg:at,optionActiveBg:Wt,optionPadding:`${(Qe-je*Xe)/2}px ${Ue}px`,optionFontSize:je,optionLineHeight:Xe,optionHeight:Qe,selectorBg:Lt,clearBg:Lt,singleItemHeightLG:Xt,multipleItemBg:Tt,multipleItemBorderColor:"transparent",multipleItemHeight:jt,multipleItemHeightLG:Qe,multipleSelectorBgDisabled:it,multipleItemColorDisabled:Ce,multipleItemBorderColorDisabled:"transparent"}})},58582:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return De}});const ce=Te=>{const be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Te==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},be),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},be),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},be),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},be),{points:["br","tr"],offset:[0,-4]})}};function De(Te,dt){return Te||ce(dt)}},84443:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return ce}});function ce(De,Te){return Te!==void 0?Te:De!==null}},66339:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});var ce=ae(40001),De=ae(19248),Te=ae(99267),dt=ae(84105),be=ae(58617),ke=ae(47472),pe=ae(59301);function xe(Me){let{suffixIcon:Ke,clearIcon:vt,menuItemSelectedIcon:Pe,removeIcon:Be,loading:et,multiple:Je,hasFeedback:tt,prefixCls:yt,showSuffixIcon:wt,feedbackIcon:It,showArrow:gt,componentName:st}=Me;const ze=vt!=null?vt:pe.createElement(De.Z,null),he=Ue=>Ke===null&&!tt&&!gt?null:pe.createElement(pe.Fragment,null,wt!==!1&&Ue,tt&&It);let je=null;if(Ke!==void 0)je=he(Ke);else if(et)je=he(pe.createElement(be.Z,{spin:!0}));else{const Ue=`${yt}-suffix`;je=mt=>{let{open:Le,showSearch:Bt}=mt;return he(Le&&Bt?pe.createElement(ke.Z,{className:Ue}):pe.createElement(dt.Z,{className:Ue}))}}let Xe=null;Pe!==void 0?Xe=Pe:Je?Xe=pe.createElement(ce.Z,null):Xe=null;let Qe=null;return Be!==void 0?Qe=Be:Qe=pe.createElement(Te.Z,null),{clearIcon:ze,suffixIcon:je,itemIcon:Xe,removeIcon:Qe}}},8378:function(zn,en){"use strict";const ae=ce=>({[ce.componentCls]:{[`${ce.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ce.motionDurationMid} ${ce.motionEaseInOut},
|
|
|
opacity ${ce.motionDurationMid} ${ce.motionEaseInOut} !important`}},[`${ce.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ce.motionDurationMid} ${ce.motionEaseInOut},
|
|
|
opacity ${ce.motionDurationMid} ${ce.motionEaseInOut} !important`}}});en.Z=ae},92899:function(zn,en,ae){"use strict";ae.d(en,{Fm:function(){return Pe}});var ce=ae(36237),De=ae(95406);const Te=new ce.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dt=new ce.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),be=new ce.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new ce.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pe=new ce.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new ce.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Me=new ce.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ke=new ce.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),vt={"move-up":{inKeyframes:Me,outKeyframes:Ke},"move-down":{inKeyframes:Te,outKeyframes:dt},"move-left":{inKeyframes:be,outKeyframes:ke},"move-right":{inKeyframes:pe,outKeyframes:xe}},Pe=(Be,et)=>{const{antCls:Je}=Be,tt=`${Je}-${et}`,{inKeyframes:yt,outKeyframes:wt}=vt[et];return[(0,De.R)(tt,yt,wt,Be.motionDurationMid),{[`
|
|
|
${tt}-enter,
|
|
|
${tt}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:Be.motionEaseOutCirc},[`${tt}-leave`]:{animationTimingFunction:Be.motionEaseInOutCirc}}]}},13826:function(zn,en,ae){"use strict";ae.d(en,{Qt:function(){return be},Uw:function(){return dt},fJ:function(){return Te},ly:function(){return ke},oN:function(){return Pe}});var ce=ae(36237),De=ae(95406);const Te=new ce.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),dt=new ce.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),be=new ce.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ke=new ce.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),pe=new ce.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new ce.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Me=new ce.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ke=new ce.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),vt={"slide-up":{inKeyframes:Te,outKeyframes:dt},"slide-down":{inKeyframes:be,outKeyframes:ke},"slide-left":{inKeyframes:pe,outKeyframes:xe},"slide-right":{inKeyframes:Me,outKeyframes:Ke}},Pe=(Be,et)=>{const{antCls:Je}=Be,tt=`${Je}-${et}`,{inKeyframes:yt,outKeyframes:wt}=vt[et];return[(0,De.R)(tt,yt,wt,Be.motionDurationMid),{[`
|
|
|
${tt}-enter,
|
|
|
${tt}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Be.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${tt}-leave`]:{animationTimingFunction:Be.motionEaseInQuint}}]}},15969:function(zn,en,ae){"use strict";ae.d(en,{N:function(){return ce}});const ce=De=>({color:De.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${De.motionDurationSlow}`,"&:focus, &:hover":{color:De.colorLinkHover},"&:active":{color:De.colorLinkActive}})},78673:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Bt}});var ce=ae(58617),De=ae(92310),Te=ae.n(De),dt=ae(60499),be=ae(18642),ke=ae(72190),pe=ae(42244),xe=ae(59301),Me=ae(18929),Ke=ae(10228),vt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Pe=xe.forwardRef(function(at,Wt){var Lt,Tt=at.prefixCls,Xt=Tt===void 0?"rc-switch":Tt,jt=at.className,it=at.checked,Ce=at.defaultChecked,Et=at.disabled,on=at.loadingIcon,Yt=at.checkedChildren,lt=at.unCheckedChildren,pt=at.onClick,Ft=at.onChange,Sn=at.onKeyDown,$t=(0,pe.Z)(at,vt),Pn=(0,Me.Z)(!1,{value:it,defaultValue:Ce}),Zt=(0,ke.Z)(Pn,2),an=Zt[0],Ht=Zt[1];function ye(ge,se){var Oe=an;return Et||(Oe=ge,Ht(Oe),Ft==null||Ft(Oe,se)),Oe}function ue(ge){ge.which===Ke.Z.LEFT?ye(!1,ge):ge.which===Ke.Z.RIGHT&&ye(!0,ge),Sn==null||Sn(ge)}function le(ge){var se=ye(!an,ge);pt==null||pt(se,ge)}var de=Te()(Xt,jt,(Lt={},(0,be.Z)(Lt,"".concat(Xt,"-checked"),an),(0,be.Z)(Lt,"".concat(Xt,"-disabled"),Et),Lt));return xe.createElement("button",(0,dt.Z)({},$t,{type:"button",role:"switch","aria-checked":an,disabled:Et,className:de,ref:Wt,onKeyDown:ue,onClick:le}),on,xe.createElement("span",{className:"".concat(Xt,"-inner")},xe.createElement("span",{className:"".concat(Xt,"-inner-checked")},Yt),xe.createElement("span",{className:"".concat(Xt,"-inner-unchecked")},lt)))});Pe.displayName="Switch";var Be=Pe,et=ae(14088),Je=ae(36355),tt=ae(1684),yt=ae(19716),wt=ae(64993),It=ae(17313),gt=ae(83116),st=ae(37613);const ze=at=>{const{componentCls:Wt,trackHeightSM:Lt,trackPadding:Tt,trackMinWidthSM:Xt,innerMinMarginSM:jt,innerMaxMarginSM:it,handleSizeSM:Ce}=at,Et=`${Wt}-inner`;return{[Wt]:{[`&${Wt}-small`]:{minWidth:Xt,height:Lt,lineHeight:`${Lt}px`,[`${Wt}-inner`]:{paddingInlineStart:it,paddingInlineEnd:jt,[`${Et}-checked`]:{marginInlineStart:`calc(-100% + ${Ce+Tt*2}px - ${it*2}px)`,marginInlineEnd:`calc(100% - ${Ce+Tt*2}px + ${it*2}px)`},[`${Et}-unchecked`]:{marginTop:-Lt,marginInlineStart:0,marginInlineEnd:0}},[`${Wt}-handle`]:{width:Ce,height:Ce},[`${Wt}-loading-icon`]:{top:(Ce-at.switchLoadingIconSize)/2,fontSize:at.switchLoadingIconSize},[`&${Wt}-checked`]:{[`${Wt}-inner`]:{paddingInlineStart:jt,paddingInlineEnd:it,[`${Et}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Et}-unchecked`]:{marginInlineStart:`calc(100% - ${Ce+Tt*2}px + ${it*2}px)`,marginInlineEnd:`calc(-100% + ${Ce+Tt*2}px - ${it*2}px)`}},[`${Wt}-handle`]:{insetInlineStart:`calc(100% - ${Ce+Tt}px)`}},[`&:not(${Wt}-disabled):active`]:{[`&:not(${Wt}-checked) ${Et}`]:{[`${Et}-unchecked`]:{marginInlineStart:at.marginXXS/2,marginInlineEnd:-at.marginXXS/2}},[`&${Wt}-checked ${Et}`]:{[`${Et}-checked`]:{marginInlineStart:-at.marginXXS/2,marginInlineEnd:at.marginXXS/2}}}}}}},he=at=>{const{componentCls:Wt,handleSize:Lt}=at;return{[Wt]:{[`${Wt}-loading-icon${at.iconCls}`]:{position:"relative",top:(Lt-at.fontSize)/2,color:at.switchLoadingIconColor,verticalAlign:"top"},[`&${Wt}-checked ${Wt}-loading-icon`]:{color:at.switchColor}}}},je=at=>{const{componentCls:Wt,motion:Lt,trackPadding:Tt,handleBg:Xt,handleShadow:jt,handleSize:it}=at,Ce=`${Wt}-handle`;return{[Wt]:{[Ce]:{position:"absolute",top:Tt,insetInlineStart:Tt,width:it,height:it,transition:`all ${at.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Xt,borderRadius:it/2,boxShadow:jt,transition:`all ${at.switchDuration} ease-in-out`,content:'""'}},[`&${Wt}-checked ${Ce}`]:{insetInlineStart:`calc(100% - ${it+Tt}px)`},[`&:not(${Wt}-disabled):active`]:Lt?{[`${Ce}::before`]:{insetInlineEnd:at.switchHandleActiveInset,insetInlineStart:0},[`&${Wt}-checked ${Ce}::before`]:{insetInlineEnd:0,insetInlineStart:at.switchHandleActiveInset}}:{}}}},Xe=at=>{const{componentCls:Wt,trackHeight:Lt,trackPadding:Tt,innerMinMargin:Xt,innerMaxMargin:jt,handleSize:it}=at,Ce=`${Wt}-inner`;return{[Wt]:{[Ce]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:jt,paddingInlineEnd:Xt,transition:`padding-inline-start ${at.switchDuration} ease-in-out, padding-inline-end ${at.switchDuration} ease-in-out`,[`${Ce}-checked, ${Ce}-unchecked`]:{display:"block",color:at.colorTextLightSolid,fontSize:at.fontSizeSM,transition:`margin-inline-start ${at.switchDuration} ease-in-out, margin-inline-end ${at.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ce}-checked`]:{marginInlineStart:`calc(-100% + ${it+Tt*2}px - ${jt*2}px)`,marginInlineEnd:`calc(100% - ${it+Tt*2}px + ${jt*2}px)`},[`${Ce}-unchecked`]:{marginTop:-Lt,marginInlineStart:0,marginInlineEnd:0}},[`&${Wt}-checked ${Ce}`]:{paddingInlineStart:Xt,paddingInlineEnd:jt,[`${Ce}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ce}-unchecked`]:{marginInlineStart:`calc(100% - ${it+Tt*2}px + ${jt*2}px)`,marginInlineEnd:`calc(-100% + ${it+Tt*2}px - ${jt*2}px)`}},[`&:not(${Wt}-disabled):active`]:{[`&:not(${Wt}-checked) ${Ce}`]:{[`${Ce}-unchecked`]:{marginInlineStart:Tt*2,marginInlineEnd:-Tt*2}},[`&${Wt}-checked ${Ce}`]:{[`${Ce}-checked`]:{marginInlineStart:-Tt*2,marginInlineEnd:Tt*2}}}}}},Qe=at=>{const{componentCls:Wt,trackHeight:Lt,trackMinWidth:Tt}=at;return{[Wt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(at)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Tt,height:Lt,lineHeight:`${Lt}px`,verticalAlign:"middle",background:at.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${at.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Wt}-disabled)`]:{background:at.colorTextTertiary}}),(0,It.Qy)(at)),{[`&${Wt}-checked`]:{background:at.switchColor,[`&:hover:not(${Wt}-disabled)`]:{background:at.colorPrimaryHover}},[`&${Wt}-loading, &${Wt}-disabled`]:{cursor:"not-allowed",opacity:at.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Wt}-rtl`]:{direction:"rtl"}})}};var Ue=(0,gt.Z)("Switch",at=>{const Wt=(0,st.TS)(at,{switchDuration:at.motionDurationMid,switchColor:at.colorPrimary,switchDisabledOpacity:at.opacityLoading,switchLoadingIconSize:at.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${at.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Qe(Wt),Xe(Wt),je(Wt),he(Wt),ze(Wt)]},at=>{const{fontSize:Wt,lineHeight:Lt,controlHeight:Tt,colorWhite:Xt}=at,jt=Wt*Lt,it=Tt/2,Ce=2,Et=jt-Ce*2,on=it-Ce*2;return{trackHeight:jt,trackHeightSM:it,trackMinWidth:Et*2+Ce*4,trackMinWidthSM:on*2+Ce*2,trackPadding:Ce,handleBg:Xt,handleSize:Et,handleSizeSM:on,handleShadow:`0 2px 4px 0 ${new wt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Et/2,innerMaxMargin:Et+Ce+Ce*2,innerMinMarginSM:on/2,innerMaxMarginSM:on+Ce+Ce*2}}),mt=function(at,Wt){var Lt={};for(var Tt in at)Object.prototype.hasOwnProperty.call(at,Tt)&&Wt.indexOf(Tt)<0&&(Lt[Tt]=at[Tt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Tt=Object.getOwnPropertySymbols(at);Xt<Tt.length;Xt++)Wt.indexOf(Tt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(at,Tt[Xt])&&(Lt[Tt[Xt]]=at[Tt[Xt]]);return Lt};const Le=xe.forwardRef((at,Wt)=>{const{prefixCls:Lt,size:Tt,disabled:Xt,loading:jt,className:it,rootClassName:Ce,style:Et}=at,on=mt(at,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Yt,direction:lt,switch:pt}=xe.useContext(Je.E_),Ft=xe.useContext(tt.Z),Sn=(Xt!=null?Xt:Ft)||jt,$t=Yt("switch",Lt),Pn=xe.createElement("div",{className:`${$t}-handle`},jt&&xe.createElement(ce.Z,{className:`${$t}-loading-icon`})),[Zt,an]=Ue($t),Ht=(0,yt.Z)(Tt),ye=Te()(pt==null?void 0:pt.className,{[`${$t}-small`]:Ht==="small",[`${$t}-loading`]:jt,[`${$t}-rtl`]:lt==="rtl"},it,Ce,an),ue=Object.assign(Object.assign({},pt==null?void 0:pt.style),Et);return Zt(xe.createElement(et.Z,{component:"Switch"},xe.createElement(Be,Object.assign({},on,{prefixCls:$t,className:ye,style:ue,disabled:Sn,ref:Wt,loadingIcon:Pn}))))});Le.__ANT_SWITCH=!0;var Bt=Le},1710:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return Cs}});var ce={},De="rc-table-internal-hook",Te=ae(72190),dt=ae(6089),be=ae(34280),ke=ae(13697),pe=ae(59301),xe=ae(4676);function Me(Re){var Ze=pe.createContext(void 0),Ct=function(Vt){var zt=Vt.value,bn=Vt.children,vn=pe.useRef(zt);vn.current=zt;var yn=pe.useState(function(){return{getValue:function(){return vn.current},listeners:new Set}}),Fn=(0,Te.Z)(yn,1),Rn=Fn[0];return(0,be.Z)(function(){(0,xe.unstable_batchedUpdates)(function(){Rn.listeners.forEach(function(_n){_n(zt)})})},[zt]),pe.createElement(Ze.Provider,{value:Rn},bn)};return{Context:Ze,Provider:Ct,defaultValue:Re}}function Ke(Re,Ze){var Ct=(0,dt.Z)(typeof Ze=="function"?Ze:function(_n){if(Ze===void 0)return _n;if(!Array.isArray(Ze))return _n[Ze];var sr={};return Ze.forEach(function(lr){sr[lr]=_n[lr]}),sr}),kt=pe.useContext(Re==null?void 0:Re.Context),Vt=kt||{},zt=Vt.listeners,bn=Vt.getValue,vn=pe.useRef();vn.current=Ct(kt?bn():Re==null?void 0:Re.defaultValue);var yn=pe.useState({}),Fn=(0,Te.Z)(yn,2),Rn=Fn[1];return(0,be.Z)(function(){if(!kt)return;function _n(sr){var lr=Ct(sr);(0,ke.Z)(vn.current,lr,!0)||Rn({})}return zt.add(_n),function(){zt.delete(_n)}},[kt]),vn.current}var vt=ae(60499),Pe=ae(8654);function Be(){var Re=pe.createContext(null);function Ze(){return pe.useContext(Re)}function Ct(Vt,zt){var bn=(0,Pe.Yr)(Vt),vn=function(Fn,Rn){var _n=bn?{ref:Rn}:{},sr=pe.useRef(0),lr=pe.useRef(Fn),fr=Ze();return fr!==null?pe.createElement(Vt,(0,vt.Z)({},Fn,_n)):((!zt||zt(lr.current,Fn))&&(sr.current+=1),lr.current=Fn,pe.createElement(Re.Provider,{value:sr.current},pe.createElement(Vt,(0,vt.Z)({},Fn,_n))))};return bn?pe.forwardRef(vn):vn}function kt(Vt,zt){var bn=(0,Pe.Yr)(Vt),vn=function(Fn,Rn){var _n=bn?{ref:Rn}:{};return Ze(),pe.createElement(Vt,(0,vt.Z)({},Fn,_n))};return bn?pe.memo(pe.forwardRef(vn),zt):pe.memo(vn,zt)}return{makeImmutable:Ct,responseImmutable:kt,useImmutableMark:Ze}}var et=Be(),Je=et.makeImmutable,tt=et.responseImmutable,yt=et.useImmutableMark,wt=Be(),It=wt.makeImmutable,gt=wt.responseImmutable,st=wt.useImmutableMark,ze=Me(),he=ze;function je(Re,Ze){var Ct=pe.useRef(0);Ct.current+=1;var kt=pe.useRef(Re),Vt=[];Object.keys(Re||{}).map(function(bn){var vn;(Re==null?void 0:Re[bn])!==((vn=kt.current)===null||vn===void 0?void 0:vn[bn])&&Vt.push(bn)}),kt.current=Re;var zt=pe.useRef([]);return Vt.length&&(zt.current=Vt),pe.useDebugValue(Ct.current),pe.useDebugValue(zt.current.join(", ")),Ze&&console.log("".concat(Ze,":"),Ct.current,zt.current),Ct.current}var Xe=null,Qe=pe.memo(function(){var Re=je();return pe.createElement("h1",null,"Render Times: ",Re)});Qe.displayName="RenderBlock";var Ue=ae(43749),mt=ae(85899),Le=ae(18642),Bt=ae(92310),at=ae.n(Bt),Wt=ae(80547),Lt=ae(97938),Tt=ae(48736),Xt=pe.createContext({renderWithProps:!1}),jt=Xt,it="RC_TABLE_KEY";function Ce(Re){return Re==null?[]:Array.isArray(Re)?Re:[Re]}function Et(Re){var Ze=[],Ct={};return Re.forEach(function(kt){for(var Vt=kt||{},zt=Vt.key,bn=Vt.dataIndex,vn=zt||Ce(bn).join("-")||it;Ct[vn];)vn="".concat(vn,"_next");Ct[vn]=!0,Ze.push(vn)}),Ze}function on(Re){return Re!=null}function Yt(Re){return Re&&(0,Ue.Z)(Re)==="object"&&!Array.isArray(Re)&&!pe.isValidElement(Re)}function lt(Re,Ze,Ct,kt,Vt,zt){var bn=pe.useContext(jt),vn=st(),yn=(0,Wt.Z)(function(){if(on(kt))return[kt];var Fn=Ze==null||Ze===""?[]:Array.isArray(Ze)?Ze:[Ze],Rn=(0,Lt.Z)(Re,Fn),_n=Rn,sr=void 0;if(Vt){var lr=Vt(Rn,Re,Ct);Yt(lr)?(_n=lr.children,sr=lr.props,bn.renderWithProps=!0):_n=lr}return[_n,sr]},[vn,Re,kt,Ze,Vt,Ct],function(Fn,Rn){if(zt){var _n=(0,Te.Z)(Fn,2),sr=_n[1],lr=(0,Te.Z)(Rn,2),fr=lr[1];return zt(fr,sr)}return bn.renderWithProps?!0:!(0,ke.Z)(Fn,Rn,!0)});return yn}function pt(Re,Ze,Ct,kt){var Vt=Re+Ze-1;return Re<=kt&&Vt>=Ct}function Ft(Re,Ze){return Ke(he,function(Ct){var kt=pt(Re,Ze||1,Ct.hoverStartRow,Ct.hoverEndRow);return[kt,Ct.onHover]})}var Sn=function(Ze){var Ct=Ze.ellipsis,kt=Ze.rowType,Vt=Ze.children,zt,bn=Ct===!0?{showTitle:!0}:Ct;return bn&&(bn.showTitle||kt==="header")&&(typeof Vt=="string"||typeof Vt=="number"?zt=Vt.toString():pe.isValidElement(Vt)&&typeof Vt.props.children=="string"&&(zt=Vt.props.children)),zt};function $t(Re){var Ze,Ct,kt,Vt,zt,bn,vn,yn,Fn=Re.component,Rn=Re.children,_n=Re.ellipsis,sr=Re.scope,lr=Re.prefixCls,fr=Re.className,Pr=Re.align,Sr=Re.record,ei=Re.render,Fr=Re.dataIndex,si=Re.renderIndex,Zi=Re.shouldCellUpdate,Xi=Re.index,Bi=Re.rowType,ji=Re.colSpan,ma=Re.rowSpan,hi=Re.fixLeft,Fi=Re.fixRight,xi=Re.firstFixLeft,Br=Re.lastFixLeft,ri=Re.firstFixRight,Vi=Re.lastFixRight,Ea=Re.appendNode,Gi=Re.additionalProps,Qr=Gi===void 0?{}:Gi,ia=Re.isSticky,va="".concat(lr,"-cell"),wa=Ke(he,["supportSticky","allColumnsFixedLeft"]),Da=wa.supportSticky,So=wa.allColumnsFixedLeft,Ia=lt(Sr,Fr,si,Rn,ei,Zi),aa=(0,Te.Z)(Ia,2),Lo=aa[0],Qi=aa[1],mo={},io=typeof hi=="number"&&Da,No=typeof Fi=="number"&&Da;io&&(mo.position="sticky",mo.left=hi),No&&(mo.position="sticky",mo.right=Fi);var ea=(Ze=(Ct=(kt=Qi==null?void 0:Qi.colSpan)!==null&&kt!==void 0?kt:Qr.colSpan)!==null&&Ct!==void 0?Ct:ji)!==null&&Ze!==void 0?Ze:1,Ui=(Vt=(zt=(bn=Qi==null?void 0:Qi.rowSpan)!==null&&bn!==void 0?bn:Qr.rowSpan)!==null&&zt!==void 0?zt:ma)!==null&&Vt!==void 0?Vt:1,Ji=Ft(Xi,Ui),Ki=(0,Te.Z)(Ji,2),Di=Ki[0],mr=Ki[1],gi=function(ta){var vs;Sr&&mr(Xi,Xi+Ui-1),Qr==null||(vs=Qr.onMouseEnter)===null||vs===void 0||vs.call(Qr,ta)},fa=function(ta){var vs;Sr&&mr(-1,-1),Qr==null||(vs=Qr.onMouseLeave)===null||vs===void 0||vs.call(Qr,ta)};if(ea===0||Ui===0)return null;var Aa=(vn=Qr.title)!==null&&vn!==void 0?vn:Sn({rowType:Bi,ellipsis:_n,children:Lo}),Ms=at()(va,fr,(yn={},(0,Le.Z)(yn,"".concat(va,"-fix-left"),io&&Da),(0,Le.Z)(yn,"".concat(va,"-fix-left-first"),xi&&Da),(0,Le.Z)(yn,"".concat(va,"-fix-left-last"),Br&&Da),(0,Le.Z)(yn,"".concat(va,"-fix-left-all"),Br&&So&&Da),(0,Le.Z)(yn,"".concat(va,"-fix-right"),No&&Da),(0,Le.Z)(yn,"".concat(va,"-fix-right-first"),ri&&Da),(0,Le.Z)(yn,"".concat(va,"-fix-right-last"),Vi&&Da),(0,Le.Z)(yn,"".concat(va,"-ellipsis"),_n),(0,Le.Z)(yn,"".concat(va,"-with-append"),Ea),(0,Le.Z)(yn,"".concat(va,"-fix-sticky"),(io||No)&&ia&&Da),(0,Le.Z)(yn,"".concat(va,"-row-hover"),!Qi&&Di),yn),Qr.className,Qi==null?void 0:Qi.className),ls={};Pr&&(ls.textAlign=Pr);var fl=(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)({},mo),Qr.style),ls),Qi==null?void 0:Qi.style),Yo=Lo;return(0,Ue.Z)(Yo)==="object"&&!Array.isArray(Yo)&&!pe.isValidElement(Yo)&&(Yo=null),_n&&(Br||ri)&&(Yo=pe.createElement("span",{className:"".concat(va,"-content")},Yo)),pe.createElement(Fn,(0,vt.Z)({},Qi,Qr,{className:Ms,style:fl,title:Aa,scope:sr,onMouseEnter:gi,onMouseLeave:fa,colSpan:ea!==1?ea:null,rowSpan:Ui!==1?Ui:null}),Ea,Yo)}var Pn=pe.memo($t);function Zt(Re,Ze,Ct,kt,Vt,zt){var bn=Ct[Re]||{},vn=Ct[Ze]||{},yn,Fn;bn.fixed==="left"?yn=kt.left[Vt==="rtl"?Ze:Re]:vn.fixed==="right"&&(Fn=kt.right[Vt==="rtl"?Re:Ze]);var Rn=!1,_n=!1,sr=!1,lr=!1,fr=Ct[Ze+1],Pr=Ct[Re-1],Sr=!(zt!=null&&zt.children);if(Vt==="rtl"){if(yn!==void 0){var ei=Pr&&Pr.fixed==="left";lr=!ei&&Sr}else if(Fn!==void 0){var Fr=fr&&fr.fixed==="right";sr=!Fr&&Sr}}else if(yn!==void 0){var si=fr&&fr.fixed==="left";Rn=!si&&Sr}else if(Fn!==void 0){var Zi=Pr&&Pr.fixed==="right";_n=!Zi&&Sr}return{fixLeft:yn,fixRight:Fn,lastFixLeft:Rn,firstFixRight:_n,lastFixRight:sr,firstFixLeft:lr,isSticky:kt.isSticky}}var an=pe.createContext({}),Ht=an;function ye(Re){var Ze=Re.className,Ct=Re.index,kt=Re.children,Vt=Re.colSpan,zt=Vt===void 0?1:Vt,bn=Re.rowSpan,vn=Re.align,yn=Ke(he,["prefixCls","direction"]),Fn=yn.prefixCls,Rn=yn.direction,_n=pe.useContext(Ht),sr=_n.scrollColumnIndex,lr=_n.stickyOffsets,fr=_n.flattenColumns,Pr=_n.columns,Sr=Ct+zt-1,ei=Sr+1===sr?zt+1:zt,Fr=Zt(Ct,Ct+ei-1,fr,lr,Rn,Pr==null?void 0:Pr[Ct]);return pe.createElement(Pn,(0,vt.Z)({className:Ze,index:Ct,component:"td",prefixCls:Fn,record:null,dataIndex:null,align:vn,colSpan:ei,rowSpan:bn,render:function(){return kt}},Fr))}var ue=ae(42244),le=["children"];function de(Re){var Ze=Re.children,Ct=(0,ue.Z)(Re,le);return pe.createElement("tr",Ct,Ze)}function ge(Re){var Ze=Re.children;return Ze}ge.Row=de,ge.Cell=ye;var se=ge;function Oe(Re){var Ze=Re.children,Ct=Re.stickyOffsets,kt=Re.flattenColumns,Vt=Re.columns,zt=Ke(he,"prefixCls"),bn=kt.length-1,vn=kt[bn],yn=pe.useMemo(function(){return{stickyOffsets:Ct,flattenColumns:kt,scrollColumnIndex:vn!=null&&vn.scrollbar?bn:null,columns:Vt}},[vn,kt,bn,Ct,Vt]);return pe.createElement(Ht.Provider,{value:yn},pe.createElement("tfoot",{className:"".concat(zt,"-summary")},Ze))}var ut=gt(Oe),Ge=se,_e=ae(70425),St=ae(29301),bt=ae(29194),rt=ae(24514),Dt=ae(75152),xn=ae(26112);function xt(Re,Ze,Ct,kt,Vt,zt,bn){Re.push({record:Ze,indent:Ct,index:bn});var vn=zt(Ze),yn=Vt==null?void 0:Vt.has(vn);if(Ze&&Array.isArray(Ze[kt])&&yn)for(var Fn=0;Fn<Ze[kt].length;Fn+=1)xt(Re,Ze[kt][Fn],Ct+1,kt,Vt,zt,Fn)}function Rt(Re,Ze,Ct,kt){var Vt=pe.useMemo(function(){if(Ct!=null&&Ct.size){for(var zt=[],bn=0;bn<(Re==null?void 0:Re.length);bn+=1){var vn=Re[bn];xt(zt,vn,0,Ze,Ct,kt,bn)}return zt}return Re==null?void 0:Re.map(function(yn,Fn){return{record:yn,indent:0,index:Fn}})},[Re,Ze,Ct,kt]);return Vt}function cn(Re){var Ze=Re.prefixCls,Ct=Re.children,kt=Re.component,Vt=Re.cellComponent,zt=Re.className,bn=Re.expanded,vn=Re.colSpan,yn=Re.isEmpty,Fn=Ke(he,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Rn=Fn.scrollbarSize,_n=Fn.fixHeader,sr=Fn.fixColumn,lr=Fn.componentWidth,fr=Fn.horizonScroll,Pr=Ct;return(yn?fr&&lr:sr)&&(Pr=pe.createElement("div",{style:{width:lr-(_n?Rn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ze,"-expanded-row-fixed")},Pr)),pe.createElement(kt,{className:zt,style:{display:bn?null:"none"}},pe.createElement(Pn,{component:Vt,prefixCls:Ze,colSpan:vn},Pr))}var ct=cn;function Ae(Re,Ze,Ct,kt){var Vt=Ke(he,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),zt=Vt.flattenColumns,bn=Vt.expandableType,vn=Vt.expandedKeys,yn=Vt.childrenColumnName,Fn=Vt.onTriggerExpand,Rn=Vt.rowExpandable,_n=Vt.onRow,sr=Vt.expandRowByClick,lr=Vt.rowClassName,fr=bn==="nest",Pr=bn==="row"&&(!Rn||Rn(Re)),Sr=Pr||fr,ei=vn&&vn.has(Ze),Fr=yn&&Re&&Re[yn],si=(0,_e.useEvent)(Fn),Zi=_n==null?void 0:_n(Re,Ct),Xi=Zi==null?void 0:Zi.onClick,Bi=function(Fi){sr&&Sr&&Fn(Re,Fi);for(var xi=arguments.length,Br=new Array(xi>1?xi-1:0),ri=1;ri<xi;ri++)Br[ri-1]=arguments[ri];Xi==null||Xi.apply(void 0,[Fi].concat(Br))},ji;typeof lr=="string"?ji=lr:typeof lr=="function"&&(ji=lr(Re,Ct,kt));var ma=Et(zt);return(0,mt.Z)((0,mt.Z)({},Vt),{},{columnsKey:ma,nestExpandable:fr,expanded:ei,hasNestChildren:Fr,record:Re,onTriggerExpand:si,rowSupportExpand:Pr,expandable:Sr,rowProps:(0,mt.Z)((0,mt.Z)({},Zi),{},{className:at()(ji,Zi==null?void 0:Zi.className),onClick:Bi})})}function Ve(Re,Ze,Ct,kt,Vt){var zt=Re.record,bn=Re.prefixCls,vn=Re.columnsKey,yn=Re.fixedInfoList,Fn=Re.expandIconColumnIndex,Rn=Re.nestExpandable,_n=Re.indentSize,sr=Re.expandIcon,lr=Re.expanded,fr=Re.hasNestChildren,Pr=Re.onTriggerExpand,Sr=vn[Ct],ei=yn[Ct],Fr;Ct===(Fn||0)&&Rn&&(Fr=pe.createElement(pe.Fragment,null,pe.createElement("span",{style:{paddingLeft:"".concat(_n*kt,"px")},className:"".concat(bn,"-row-indent indent-level-").concat(kt)}),sr({prefixCls:bn,expanded:lr,expandable:fr,record:zt,onExpand:Pr})));var si;return Ze.onCell&&(si=Ze.onCell(zt,Vt)),{key:Sr,fixedInfo:ei,appendCellNode:Fr,additionalCellProps:si||{}}}function Kt(Re){var Ze=Re.className,Ct=Re.style,kt=Re.record,Vt=Re.index,zt=Re.renderIndex,bn=Re.rowKey,vn=Re.indent,yn=vn===void 0?0:vn,Fn=Re.rowComponent,Rn=Re.cellComponent,_n=Re.scopeCellComponent,sr=Ae(kt,bn,Vt,yn),lr=sr.prefixCls,fr=sr.flattenColumns,Pr=sr.expandedRowClassName,Sr=sr.expandedRowRender,ei=sr.rowProps,Fr=sr.expanded,si=sr.rowSupportExpand,Zi=pe.useState(!1),Xi=(0,Te.Z)(Zi,2),Bi=Xi[0],ji=Xi[1];pe.useEffect(function(){Fr&&ji(!0)},[Fr]);var ma=pe.createElement(Fn,(0,vt.Z)({},ei,{"data-row-key":bn,className:at()(Ze,"".concat(lr,"-row"),"".concat(lr,"-row-level-").concat(yn),ei==null?void 0:ei.className),style:(0,mt.Z)((0,mt.Z)({},Ct),ei==null?void 0:ei.style)}),fr.map(function(Br,ri){var Vi=Br.render,Ea=Br.dataIndex,Gi=Br.className,Qr=Ve(sr,Br,ri,yn,Vt),ia=Qr.key,va=Qr.fixedInfo,wa=Qr.appendCellNode,Da=Qr.additionalCellProps;return pe.createElement(Pn,(0,vt.Z)({className:Gi,ellipsis:Br.ellipsis,align:Br.align,scope:Br.rowScope,component:Br.rowScope?_n:Rn,prefixCls:lr,key:ia,record:kt,index:Vt,renderIndex:zt,dataIndex:Ea,render:Vi,shouldCellUpdate:Br.shouldCellUpdate},va,{appendNode:wa,additionalProps:Da}))})),hi;if(si&&(Bi||Fr)){var Fi=Sr(kt,Vt,yn+1,Fr),xi=Pr&&Pr(kt,Vt,yn);hi=pe.createElement(ct,{expanded:Fr,className:at()("".concat(lr,"-expanded-row"),"".concat(lr,"-expanded-row-level-").concat(yn+1),xi),prefixCls:lr,component:Fn,cellComponent:Rn,colSpan:fr.length,isEmpty:!1},Fi)}return pe.createElement(pe.Fragment,null,ma,hi)}Kt.displayName="BodyRow";var Gt=gt(Kt);function hn(Re){var Ze=Re.columnKey,Ct=Re.onColumnResize,kt=pe.useRef();return pe.useEffect(function(){kt.current&&Ct(Ze,kt.current.offsetWidth)},[]),pe.createElement(St.Z,{data:Ze},pe.createElement("td",{ref:kt,style:{padding:0,border:0,height:0}},pe.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function On(Re){var Ze=Re.prefixCls,Ct=Re.columnsKey,kt=Re.onColumnResize;return pe.createElement("tr",{"aria-hidden":"true",className:"".concat(Ze,"-measure-row"),style:{height:0,fontSize:0}},pe.createElement(St.Z.Collection,{onBatchResize:function(zt){zt.forEach(function(bn){var vn=bn.data,yn=bn.size;kt(vn,yn.offsetWidth)})}},Ct.map(function(Vt){return pe.createElement(hn,{key:Vt,columnKey:Vt,onColumnResize:kt})})))}function Ln(Re){var Ze=Re.data,Ct=Re.measureColumnWidth,kt=Ke(he,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Vt=kt.prefixCls,zt=kt.getComponent,bn=kt.onColumnResize,vn=kt.flattenColumns,yn=kt.getRowKey,Fn=kt.expandedKeys,Rn=kt.childrenColumnName,_n=kt.emptyNode,sr=Rt(Ze,Rn,Fn,yn),lr=pe.useRef({renderWithProps:!1}),fr=zt(["body","wrapper"],"tbody"),Pr=zt(["body","row"],"tr"),Sr=zt(["body","cell"],"td"),ei=zt(["body","cell"],"th"),Fr;Ze.length?Fr=sr.map(function(Zi,Xi){var Bi=Zi.record,ji=Zi.indent,ma=Zi.index,hi=yn(Bi,Xi);return pe.createElement(Gt,{key:hi,rowKey:hi,record:Bi,index:Xi,renderIndex:ma,rowComponent:Pr,cellComponent:Sr,scopeCellComponent:ei,getRowKey:yn,indent:ji})}):Fr=pe.createElement(ct,{expanded:!0,className:"".concat(Vt,"-placeholder"),prefixCls:Vt,component:Pr,cellComponent:Sr,colSpan:vn.length,isEmpty:!0},_n);var si=Et(vn);return pe.createElement(jt.Provider,{value:lr.current},pe.createElement(fr,{className:"".concat(Vt,"-tbody")},Ct&&pe.createElement(On,{prefixCls:Vt,columnsKey:si,onColumnResize:bn}),Fr))}Ln.displayName="Body";var Kn=gt(Ln),tr=["expandable"],gr="RC_TABLE_INTERNAL_COL_DEFINE";function Un(Re){var Ze=Re.expandable,Ct=(0,ue.Z)(Re,tr),kt;return"expandable"in Re?kt=(0,mt.Z)((0,mt.Z)({},Ct),Ze):kt=Ct,kt.showExpandColumn===!1&&(kt.expandIconColumnIndex=-1),kt}var Cr=["columnType"];function Rr(Re){for(var Ze=Re.colWidths,Ct=Re.columns,kt=Re.columCount,Vt=[],zt=kt||Ct.length,bn=!1,vn=zt-1;vn>=0;vn-=1){var yn=Ze[vn],Fn=Ct&&Ct[vn],Rn=Fn&&Fn[gr];if(yn||Rn||bn){var _n=Rn||{},sr=_n.columnType,lr=(0,ue.Z)(_n,Cr);Vt.unshift(pe.createElement("col",(0,vt.Z)({key:vn,style:{width:yn}},lr))),bn=!0}}return pe.createElement("colgroup",null,Vt)}var $r=Rr,vr=ae(77654),Er=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Hr(Re,Ze){return(0,pe.useMemo)(function(){for(var Ct=[],kt=0;kt<Ze;kt+=1){var Vt=Re[kt];if(Vt!==void 0)Ct[kt]=Vt;else return null}return Ct},[Re.join("_"),Ze])}var wn=pe.forwardRef(function(Re,Ze){var Ct=Re.className,kt=Re.noData,Vt=Re.columns,zt=Re.flattenColumns,bn=Re.colWidths,vn=Re.columCount,yn=Re.stickyOffsets,Fn=Re.direction,Rn=Re.fixHeader,_n=Re.stickyTopOffset,sr=Re.stickyBottomOffset,lr=Re.stickyClassName,fr=Re.onScroll,Pr=Re.maxContentScroll,Sr=Re.children,ei=(0,ue.Z)(Re,Er),Fr=Ke(he,["prefixCls","scrollbarSize","isSticky"]),si=Fr.prefixCls,Zi=Fr.scrollbarSize,Xi=Fr.isSticky,Bi=Xi&&!Rn?0:Zi,ji=pe.useRef(null),ma=pe.useCallback(function(Gi){(0,Pe.mH)(Ze,Gi),(0,Pe.mH)(ji,Gi)},[]);pe.useEffect(function(){var Gi;function Qr(ia){var va=ia,wa=va.currentTarget,Da=va.deltaX;Da&&(fr({currentTarget:wa,scrollLeft:wa.scrollLeft+Da}),ia.preventDefault())}return(Gi=ji.current)===null||Gi===void 0||Gi.addEventListener("wheel",Qr),function(){var ia;(ia=ji.current)===null||ia===void 0||ia.removeEventListener("wheel",Qr)}},[]);var hi=pe.useMemo(function(){return zt.every(function(Gi){return Gi.width})},[zt]),Fi=zt[zt.length-1],xi={fixed:Fi?Fi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(si,"-cell-scrollbar")}}},Br=(0,pe.useMemo)(function(){return Bi?[].concat((0,vr.Z)(Vt),[xi]):Vt},[Bi,Vt]),ri=(0,pe.useMemo)(function(){return Bi?[].concat((0,vr.Z)(zt),[xi]):zt},[Bi,zt]),Vi=(0,pe.useMemo)(function(){var Gi=yn.right,Qr=yn.left;return(0,mt.Z)((0,mt.Z)({},yn),{},{left:Fn==="rtl"?[].concat((0,vr.Z)(Qr.map(function(ia){return ia+Bi})),[0]):Qr,right:Fn==="rtl"?Gi:[].concat((0,vr.Z)(Gi.map(function(ia){return ia+Bi})),[0]),isSticky:Xi})},[Bi,yn,Xi]),Ea=Hr(bn,vn);return pe.createElement("div",{style:(0,mt.Z)({overflow:"hidden"},Xi?{top:_n,bottom:sr}:{}),ref:ma,className:at()(Ct,(0,Le.Z)({},lr,!!lr))},pe.createElement("table",{style:{tableLayout:"fixed",visibility:kt||Ea?null:"hidden"}},(!kt||!Pr||hi)&&pe.createElement($r,{colWidths:Ea?[].concat((0,vr.Z)(Ea),[Bi]):[],columCount:vn+1,columns:ri}),Sr((0,mt.Z)((0,mt.Z)({},ei),{},{stickyOffsets:Vi,columns:Br,flattenColumns:ri}))))});wn.displayName="FixedHolder";var Zn=pe.memo(wn);function Or(Re){var Ze=Re.cells,Ct=Re.stickyOffsets,kt=Re.flattenColumns,Vt=Re.rowComponent,zt=Re.cellComponent,bn=Re.tdCellComponent,vn=Re.onHeaderRow,yn=Re.index,Fn=Ke(he,["prefixCls","direction"]),Rn=Fn.prefixCls,_n=Fn.direction,sr;vn&&(sr=vn(Ze.map(function(fr){return fr.column}),yn));var lr=Et(Ze.map(function(fr){return fr.column}));return pe.createElement(Vt,sr,Ze.map(function(fr,Pr){var Sr=fr.column,ei=Zt(fr.colStart,fr.colEnd,kt,Ct,_n,Sr),Fr;return Sr&&Sr.onHeaderCell&&(Fr=fr.column.onHeaderCell(Sr)),pe.createElement(Pn,(0,vt.Z)({},fr,{scope:Sr.title?fr.colSpan>1?"colgroup":"col":null,ellipsis:Sr.ellipsis,align:Sr.align,component:Sr.title?zt:bn,prefixCls:Rn,key:lr[Pr]},ei,{additionalProps:Fr,rowType:"header"}))}))}Or.displayName="HeaderRow";var br=Or;function hr(Re){var Ze=[];function Ct(bn,vn){var yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ze[yn]=Ze[yn]||[];var Fn=vn,Rn=bn.filter(Boolean).map(function(_n){var sr={key:_n.key,className:_n.className||"",children:_n.title,column:_n,colStart:Fn},lr=1,fr=_n.children;return fr&&fr.length>0&&(lr=Ct(fr,Fn,yn+1).reduce(function(Pr,Sr){return Pr+Sr},0),sr.hasSubColumns=!0),"colSpan"in _n&&(lr=_n.colSpan),"rowSpan"in _n&&(sr.rowSpan=_n.rowSpan),sr.colSpan=lr,sr.colEnd=sr.colStart+lr-1,Ze[yn].push(sr),Fn+=lr,lr});return Rn}Ct(Re,0);for(var kt=Ze.length,Vt=function(vn){Ze[vn].forEach(function(yn){!("rowSpan"in yn)&&!yn.hasSubColumns&&(yn.rowSpan=kt-vn)})},zt=0;zt<kt;zt+=1)Vt(zt);return Ze}function Yr(Re){var Ze=Re.stickyOffsets,Ct=Re.columns,kt=Re.flattenColumns,Vt=Re.onHeaderRow,zt=Ke(he,["prefixCls","getComponent"]),bn=zt.prefixCls,vn=zt.getComponent,yn=pe.useMemo(function(){return hr(Ct)},[Ct]),Fn=vn(["header","wrapper"],"thead"),Rn=vn(["header","row"],"tr"),_n=vn(["header","cell"],"th"),sr=vn(["header","cell"],"td");return pe.createElement(Fn,{className:"".concat(bn,"-thead")},yn.map(function(lr,fr){var Pr=pe.createElement(br,{key:fr,flattenColumns:kt,cells:lr,stickyOffsets:Ze,rowComponent:Rn,cellComponent:_n,tdCellComponent:sr,onHeaderRow:Vt,index:fr});return Pr}))}var cr=gt(Yr),Ir=ae(11592);function or(Re){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ze=="number"?Ze:Ze.endsWith("%")?Re*parseFloat(Ze)/100:null}function Jn(Re,Ze){return pe.useMemo(function(){if(Ze&&Ze>0){var Ct=0,kt=0;Re.forEach(function(Fn){var Rn=or(Ze,Fn.width);Rn?Ct+=Rn:kt+=1});var Vt=Ze-Ct,zt=kt,bn=Vt/kt,vn=0,yn=Re.map(function(Fn){var Rn=(0,mt.Z)({},Fn),_n=or(Ze,Rn.width);if(_n)Rn.width=_n;else{var sr=Math.floor(bn);Rn.width=zt===1?Vt:sr,Vt-=sr,zt-=1}return vn+=Rn.width,Rn});return[yn,vn]}return[Re,Ze]},[Re,Ze])}var Dr=["children"],_t=["fixed"];function He(Re){return(0,Ir.Z)(Re).filter(function(Ze){return pe.isValidElement(Ze)}).map(function(Ze){var Ct=Ze.key,kt=Ze.props,Vt=kt.children,zt=(0,ue.Z)(kt,Dr),bn=(0,mt.Z)({key:Ct},zt);return Vt&&(bn.children=He(Vt)),bn})}function nt(Re){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Re.filter(function(Ct){return Ct&&(0,Ue.Z)(Ct)==="object"}).reduce(function(Ct,kt,Vt){var zt=kt.fixed,bn=zt===!0?"left":zt,vn="".concat(Ze,"-").concat(Vt),yn=kt.children;return yn&&yn.length>0?[].concat((0,vr.Z)(Ct),(0,vr.Z)(nt(yn,vn).map(function(Fn){return(0,mt.Z)({fixed:bn},Fn)}))):[].concat((0,vr.Z)(Ct),[(0,mt.Z)((0,mt.Z)({key:vn},kt),{},{fixed:bn})])},[])}function Ye(Re){for(var Ze=!0,Ct=0;Ct<Re.length;Ct+=1){var kt=Re[Ct];if(Ze&&kt.fixed!=="left")Ze=!1;else if(!Ze&&kt.fixed==="left"){warning(!1,"Index ".concat(Ct-1," of `columns` missing `fixed='left'` prop."));break}}for(var Vt=!0,zt=Re.length-1;zt>=0;zt-=1){var bn=Re[zt];if(Vt&&bn.fixed!=="right")Vt=!1;else if(!Vt&&bn.fixed==="right"){warning(!1,"Index ".concat(zt+1," of `columns` missing `fixed='right'` prop."));break}}}function qe(Re){return Re.map(function(Ze){var Ct=Ze.fixed,kt=(0,ue.Z)(Ze,_t),Vt=Ct;return Ct==="left"?Vt="right":Ct==="right"&&(Vt="left"),(0,mt.Z)({fixed:Vt},kt)})}function Mt(Re,Ze){var Ct=Re.prefixCls,kt=Re.columns,Vt=Re.children,zt=Re.expandable,bn=Re.expandedKeys,vn=Re.columnTitle,yn=Re.getRowKey,Fn=Re.onTriggerExpand,Rn=Re.expandIcon,_n=Re.rowExpandable,sr=Re.expandIconColumnIndex,lr=Re.direction,fr=Re.expandRowByClick,Pr=Re.columnWidth,Sr=Re.fixed,ei=Re.scrollWidth,Fr=pe.useMemo(function(){return kt||He(Vt)},[kt,Vt]),si=pe.useMemo(function(){if(zt){var Fi,xi=Fr.slice();if(!xi.includes(ce)){var Br=sr||0;Br>=0&&xi.splice(Br,0,ce)}var ri=xi.indexOf(ce);xi=xi.filter(function(Qr,ia){return Qr!==ce||ia===ri});var Vi=Fr[ri],Ea;(Sr==="left"||Sr)&&!sr?Ea="left":(Sr==="right"||Sr)&&sr===Fr.length?Ea="right":Ea=Vi?Vi.fixed:null;var Gi=(Fi={},(0,Le.Z)(Fi,gr,{className:"".concat(Ct,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Le.Z)(Fi,"title",vn),(0,Le.Z)(Fi,"fixed",Ea),(0,Le.Z)(Fi,"className","".concat(Ct,"-row-expand-icon-cell")),(0,Le.Z)(Fi,"width",Pr),(0,Le.Z)(Fi,"render",function(ia,va,wa){var Da=yn(va,wa),So=bn.has(Da),Ia=_n?_n(va):!0,aa=Rn({prefixCls:Ct,expanded:So,expandable:Ia,record:va,onExpand:Fn});return fr?pe.createElement("span",{onClick:function(Qi){return Qi.stopPropagation()}},aa):aa}),Fi);return xi.map(function(Qr){return Qr===ce?Gi:Qr})}return Fr.filter(function(Qr){return Qr!==ce})},[zt,Fr,yn,bn,Rn,lr]),Zi=pe.useMemo(function(){var Fi=si;return Ze&&(Fi=Ze(Fi)),Fi.length||(Fi=[{render:function(){return null}}]),Fi},[Ze,si,lr]),Xi=pe.useMemo(function(){return lr==="rtl"?qe(nt(Zi)):nt(Zi)},[Zi,lr,ei]),Bi=Jn(Xi,ei),ji=(0,Te.Z)(Bi,2),ma=ji[0],hi=ji[1];return[Zi,ma,hi]}var Ut=Mt;function An(Re){var Ze,Ct=Re.prefixCls,kt=Re.record,Vt=Re.onExpand,zt=Re.expanded,bn=Re.expandable,vn="".concat(Ct,"-row-expand-icon");if(!bn)return pe.createElement("span",{className:at()(vn,"".concat(Ct,"-row-spaced"))});var yn=function(Rn){Vt(kt,Rn),Rn.stopPropagation()};return pe.createElement("span",{className:at()(vn,(Ze={},(0,Le.Z)(Ze,"".concat(Ct,"-row-expanded"),zt),(0,Le.Z)(Ze,"".concat(Ct,"-row-collapsed"),!zt),Ze)),onClick:yn})}function mn(Re,Ze,Ct){var kt=[];function Vt(zt){(zt||[]).forEach(function(bn,vn){kt.push(Ze(bn,vn)),Vt(bn[Ct])})}return Vt(Re),kt}function ln(Re,Ze,Ct){var kt=Un(Re),Vt=kt.expandIcon,zt=kt.expandedRowKeys,bn=kt.defaultExpandedRowKeys,vn=kt.defaultExpandAllRows,yn=kt.expandedRowRender,Fn=kt.onExpand,Rn=kt.onExpandedRowsChange,_n=kt.childrenColumnName,sr=Vt||An,lr=_n||"children",fr=pe.useMemo(function(){return yn?"row":Re.expandable&&Re.internalHooks===De&&Re.expandable.__PARENT_RENDER_ICON__||Ze.some(function(Xi){return Xi&&(0,Ue.Z)(Xi)==="object"&&Xi[lr]})?"nest":!1},[!!yn,Ze]),Pr=pe.useState(function(){return bn||(vn?mn(Ze,Ct,lr):[])}),Sr=(0,Te.Z)(Pr,2),ei=Sr[0],Fr=Sr[1],si=pe.useMemo(function(){return new Set(zt||ei||[])},[zt,ei]),Zi=pe.useCallback(function(Xi){var Bi=Ct(Xi,Ze.indexOf(Xi)),ji,ma=si.has(Bi);ma?(si.delete(Bi),ji=(0,vr.Z)(si)):ji=[].concat((0,vr.Z)(si),[Bi]),Fr(ji),Fn&&Fn(!ma,Xi),Rn&&Rn(ji)},[Ct,si,Ze,Fn,Rn]);return[kt,fr,si,sr,lr,Zi]}function Nn(Re,Ze,Ct,kt){var Vt=Re.map(function(zt,bn){return Zt(bn,bn,Re,Ze,Ct,kt==null?void 0:kt[bn])});return(0,Wt.Z)(function(){return Vt},[Vt],function(zt,bn){return!(0,ke.Z)(zt,bn)})}function Wn(Re){var Ze=(0,pe.useRef)(Re),Ct=(0,pe.useState)({}),kt=(0,Te.Z)(Ct,2),Vt=kt[1],zt=(0,pe.useRef)(null),bn=(0,pe.useRef)([]);function vn(yn){bn.current.push(yn);var Fn=Promise.resolve();zt.current=Fn,Fn.then(function(){if(zt.current===Fn){var Rn=bn.current,_n=Ze.current;bn.current=[],Rn.forEach(function(sr){Ze.current=sr(Ze.current)}),zt.current=null,_n!==Ze.current&&Vt({})}})}return(0,pe.useEffect)(function(){return function(){zt.current=null}},[]),[Ze.current,vn]}function Xn(Re){var Ze=(0,pe.useRef)(Re||null),Ct=(0,pe.useRef)();function kt(){window.clearTimeout(Ct.current)}function Vt(bn){Ze.current=bn,kt(),Ct.current=window.setTimeout(function(){Ze.current=null,Ct.current=void 0},100)}function zt(){return Ze.current}return(0,pe.useEffect)(function(){return kt},[]),[Vt,zt]}function rn(){var Re=pe.useState(-1),Ze=(0,Te.Z)(Re,2),Ct=Ze[0],kt=Ze[1],Vt=pe.useState(-1),zt=(0,Te.Z)(Vt,2),bn=zt[0],vn=zt[1],yn=pe.useCallback(function(Fn,Rn){kt(Fn),vn(Rn)},[]);return[Ct,bn,yn]}var Tn=ae(47273),Nt=(0,Tn.Z)()?window:null;function Jt(Re,Ze){var Ct=(0,Ue.Z)(Re)==="object"?Re:{},kt=Ct.offsetHeader,Vt=kt===void 0?0:kt,zt=Ct.offsetSummary,bn=zt===void 0?0:zt,vn=Ct.offsetScroll,yn=vn===void 0?0:vn,Fn=Ct.getContainer,Rn=Fn===void 0?function(){return Nt}:Fn,_n=Rn()||Nt;return pe.useMemo(function(){var sr=!!Re;return{isSticky:sr,stickyClassName:sr?"".concat(Ze,"-sticky-holder"):"",offsetHeader:Vt,offsetSummary:bn,offsetScroll:yn,container:_n}},[yn,Vt,bn,Ze,_n])}function sn(Re,Ze,Ct){var kt=(0,pe.useMemo)(function(){for(var Vt=[],zt=[],bn=0,vn=0,yn=0;yn<Ze;yn+=1)if(Ct==="rtl"){zt[yn]=vn,vn+=Re[yn]||0;var Fn=Ze-yn-1;Vt[Fn]=bn,bn+=Re[Fn]||0}else{Vt[yn]=bn,bn+=Re[yn]||0;var Rn=Ze-yn-1;zt[Rn]=vn,vn+=Re[Rn]||0}return{left:Vt,right:zt}},[Re,Ze,Ct]);return kt}var fn=sn;function In(Re){var Ze=Re.className,Ct=Re.children;return pe.createElement("div",{className:Ze},Ct)}var un=In,Bn=ae(8224),ot=ae(55468),tn=function(Ze,Ct){var kt,Vt,zt=Ze.scrollBodyRef,bn=Ze.onScroll,vn=Ze.offsetScroll,yn=Ze.container,Fn=Ke(he,"prefixCls"),Rn=((kt=zt.current)===null||kt===void 0?void 0:kt.scrollWidth)||0,_n=((Vt=zt.current)===null||Vt===void 0?void 0:Vt.clientWidth)||0,sr=Rn&&_n*(_n/Rn),lr=pe.useRef(),fr=Wn({scrollLeft:0,isHiddenScrollBar:!1}),Pr=(0,Te.Z)(fr,2),Sr=Pr[0],ei=Pr[1],Fr=pe.useRef({delta:0,x:0}),si=pe.useState(!1),Zi=(0,Te.Z)(si,2),Xi=Zi[0],Bi=Zi[1],ji=function(){Bi(!1)},ma=function(ri){ri.persist(),Fr.current.delta=ri.pageX-Sr.scrollLeft,Fr.current.x=0,Bi(!0),ri.preventDefault()},hi=function(ri){var Vi,Ea=ri||((Vi=window)===null||Vi===void 0?void 0:Vi.event),Gi=Ea.buttons;if(!Xi||Gi===0){Xi&&Bi(!1);return}var Qr=Fr.current.x+ri.pageX-Fr.current.x-Fr.current.delta;Qr<=0&&(Qr=0),Qr+sr>=_n&&(Qr=_n-sr),bn({scrollLeft:Qr/_n*(Rn+2)}),Fr.current.x=ri.pageX},Fi=function(){if(zt.current){var ri=(0,ot.os)(zt.current).top,Vi=ri+zt.current.offsetHeight,Ea=yn===window?document.documentElement.scrollTop+window.innerHeight:(0,ot.os)(yn).top+yn.clientHeight;Vi-(0,Dt.Z)()<=Ea||ri>=Ea-vn?ei(function(Gi){return(0,mt.Z)((0,mt.Z)({},Gi),{},{isHiddenScrollBar:!0})}):ei(function(Gi){return(0,mt.Z)((0,mt.Z)({},Gi),{},{isHiddenScrollBar:!1})})}},xi=function(ri){ei(function(Vi){return(0,mt.Z)((0,mt.Z)({},Vi),{},{scrollLeft:ri/Rn*_n||0})})};return pe.useImperativeHandle(Ct,function(){return{setScrollLeft:xi}}),pe.useEffect(function(){var Br=(0,Bn.Z)(document.body,"mouseup",ji,!1),ri=(0,Bn.Z)(document.body,"mousemove",hi,!1);return Fi(),function(){Br.remove(),ri.remove()}},[sr,Xi]),pe.useEffect(function(){var Br=(0,Bn.Z)(yn,"scroll",Fi,!1),ri=(0,Bn.Z)(window,"resize",Fi,!1);return function(){Br.remove(),ri.remove()}},[yn]),pe.useEffect(function(){Sr.isHiddenScrollBar||ei(function(Br){var ri=zt.current;return ri?(0,mt.Z)((0,mt.Z)({},Br),{},{scrollLeft:ri.scrollLeft/ri.scrollWidth*ri.clientWidth}):Br})},[Sr.isHiddenScrollBar]),Rn<=_n||!sr||Sr.isHiddenScrollBar?null:pe.createElement("div",{style:{height:(0,Dt.Z)(),width:_n,bottom:vn},className:"".concat(Fn,"-sticky-scroll")},pe.createElement("div",{onMouseDown:ma,ref:lr,className:at()("".concat(Fn,"-sticky-scroll-bar"),(0,Le.Z)({},"".concat(Fn,"-sticky-scroll-bar-active"),Xi)),style:{width:"".concat(sr,"px"),transform:"translate3d(".concat(Sr.scrollLeft,"px, 0, 0)")}}))},nn=pe.forwardRef(tn);function En(Re){return null}var gn=En;function Mn(Re){return null}var kn=Mn,Vn="rc-table",qn=[],pr={};function Tr(){return"No Data"}function Jr(Re){var Ze,Ct=(0,mt.Z)({rowKey:"key",prefixCls:Vn,emptyText:Tr},Re),kt=Ct.prefixCls,Vt=Ct.className,zt=Ct.rowClassName,bn=Ct.style,vn=Ct.data,yn=Ct.rowKey,Fn=Ct.scroll,Rn=Ct.tableLayout,_n=Ct.direction,sr=Ct.title,lr=Ct.footer,fr=Ct.summary,Pr=Ct.caption,Sr=Ct.id,ei=Ct.showHeader,Fr=Ct.components,si=Ct.emptyText,Zi=Ct.onRow,Xi=Ct.onHeaderRow,Bi=Ct.internalHooks,ji=Ct.transformColumns,ma=Ct.internalRefs,hi=Ct.tailor,Fi=Ct.sticky,xi=vn||qn,Br=!!xi.length,ri=Bi===De,Vi=pe.useCallback(function(so,Mo){return(0,Lt.Z)(Fr,so)||Mo},[Fr]),Ea=pe.useMemo(function(){return typeof yn=="function"?yn:function(so){var Mo=so&&so[yn];return Mo}},[yn]),Gi=Vi(["body"]),Qr=rn(),ia=(0,Te.Z)(Qr,3),va=ia[0],wa=ia[1],Da=ia[2],So=ln(Ct,xi,Ea),Ia=(0,Te.Z)(So,6),aa=Ia[0],Lo=Ia[1],Qi=Ia[2],mo=Ia[3],io=Ia[4],No=Ia[5],ea=Fn==null?void 0:Fn.x,Ui=pe.useState(0),Ji=(0,Te.Z)(Ui,2),Ki=Ji[0],Di=Ji[1],mr=Ut((0,mt.Z)((0,mt.Z)((0,mt.Z)({},Ct),aa),{},{expandable:!!aa.expandedRowRender,columnTitle:aa.columnTitle,expandedKeys:Qi,getRowKey:Ea,onTriggerExpand:No,expandIcon:mo,expandIconColumnIndex:aa.expandIconColumnIndex,direction:_n,scrollWidth:ri&&hi&&typeof ea=="number"?ea:null}),ri?ji:null),gi=(0,Te.Z)(mr,3),fa=gi[0],Aa=gi[1],Ms=gi[2],ls=Ms!=null?Ms:ea,fl=pe.useMemo(function(){return{columns:fa,flattenColumns:Aa}},[fa,Aa]),Yo=pe.useRef(),Xo=pe.useRef(),ta=pe.useRef(),vs=pe.useRef(),Fs=pe.useRef(),Xa=pe.useState(!1),Vr=(0,Te.Z)(Xa,2),fo=Vr[0],us=Vr[1],cs=pe.useState(!1),ba=(0,Te.Z)(cs,2),bo=ba[0],Ss=ba[1],xo=Wn(new Map),ca=(0,Te.Z)(xo,2),Ho=ca[0],Ro=ca[1],Zl=Et(Aa),zs=Zl.map(function(so){return Ho.get(so)}),hl=pe.useMemo(function(){return zs},[zs.join("_")]),Ws=fn(hl,Aa.length,_n),Zo=Fn&&on(Fn.y),os=Fn&&on(ls)||!!aa.fixed,il=os&&Aa.some(function(so){var Mo=so.fixed;return Mo}),Gl=pe.useRef(),pl=Jt(Fi,kt),Yl=pl.isSticky,cu=pl.offsetHeader,uc=pl.offsetSummary,ao=pl.offsetScroll,Eo=pl.stickyClassName,ks=pl.container,Bo=pe.useMemo(function(){return fr==null?void 0:fr(xi)},[fr,xi]),Bs=(Zo||Yl)&&pe.isValidElement(Bo)&&Bo.type===se&&Bo.props.fixed,Is,Ys,Xl;Zo&&(Ys={overflowY:"scroll",maxHeight:Fn.y}),os&&(Is={overflowX:"auto"},Zo||(Ys={overflowY:"hidden"}),Xl={width:ls===!0?"auto":ls,minWidth:"100%"});var cc=pe.useCallback(function(so,Mo){(0,bt.Z)(Yo.current)&&Ro(function(ol){if(ol.get(so)!==Mo){var eu=new Map(ol);return eu.set(so,Mo),eu}return ol})},[]),Du=Xn(null),Ql=(0,Te.Z)(Du,2),oo=Ql[0],ss=Ql[1];function Jl(so,Mo){Mo&&(typeof Mo=="function"?Mo(so):Mo.scrollLeft!==so&&(Mo.scrollLeft=so,Mo.scrollLeft!==so&&setTimeout(function(){Mo.scrollLeft=so},0)))}var Au=(0,dt.Z)(function(so){var Mo=so.currentTarget,ol=so.scrollLeft,eu=_n==="rtl",tu=typeof ol=="number"?ol:Mo.scrollLeft,Tc=Mo||pr;if(!ss()||ss()===Tc){var As;oo(Tc),Jl(tu,Xo.current),Jl(tu,ta.current),Jl(tu,Fs.current),Jl(tu,(As=Gl.current)===null||As===void 0?void 0:As.setScrollLeft)}var jl=Mo||Xo.current;if(jl){var Oc=jl.scrollWidth,hu=jl.clientWidth;if(Oc===hu){us(!1),Ss(!1);return}eu?(us(-tu<Oc-hu),Ss(-tu>0)):(us(tu>0),Ss(tu<Oc-hu))}}),Xs=function(){os&&ta.current?Au({currentTarget:ta.current}):(us(!1),Ss(!1))},Lc=function(Mo){var ol=Mo.width;ol!==Ki&&(Xs(),Di(Yo.current?Yo.current.offsetWidth:ol))},Ds=pe.useRef(!1);pe.useEffect(function(){Ds.current&&Xs()},[os,vn,fa.length]),pe.useEffect(function(){Ds.current=!0},[]);var ec=pe.useState(0),Bc=(0,Te.Z)(ec,2),dc=Bc[0],Zu=Bc[1],Wu=pe.useState(!0),wu=(0,Te.Z)(Wu,2),li=wu[0],Ic=wu[1];pe.useEffect(function(){(!hi||!ri)&&(ta.current instanceof Element?Zu((0,Dt.o)(ta.current).width):Zu((0,Dt.o)(vs.current).width)),Ic((0,rt.G)("position","sticky"))},[]),pe.useEffect(function(){ri&&ma&&(ma.body.current=ta.current)});var ju=pe.useCallback(function(so){return pe.createElement(pe.Fragment,null,pe.createElement(cr,so),Bs==="top"&&pe.createElement(ut,so,Bo))},[Bs,Bo]),fc=pe.useCallback(function(so){return pe.createElement(ut,so,Bo)},[Bo]),Wl=Vi(["table"],"table"),Pu=pe.useMemo(function(){return Rn||(il?ls==="max-content"?"auto":"fixed":Zo||Yl||Aa.some(function(so){var Mo=so.ellipsis;return Mo})?"fixed":"auto")},[Zo,il,Aa,Rn,Yl]),Iu,Tu={colWidths:hl,columCount:Aa.length,stickyOffsets:Ws,onHeaderRow:Xi,fixHeader:Zo,scroll:Fn},qo=pe.useMemo(function(){return Br?null:typeof si=="function"?si():si},[Br,si]),Wc=pe.createElement(Kn,{data:xi,measureColumnWidth:Zo||os||Yl}),tc=pe.createElement($r,{colWidths:Aa.map(function(so){var Mo=so.width;return Mo}),columns:Aa}),ql=Pr!=null?pe.createElement("caption",{className:"".concat(kt,"-caption")},Pr):void 0,nc=(0,xn.Z)(Ct,{data:!0}),du=(0,xn.Z)(Ct,{aria:!0});if(Zo||Yl){var Cu;typeof Gi=="function"?(Cu=Gi(xi,{scrollbarSize:dc,ref:ta,onScroll:Au}),Tu.colWidths=Aa.map(function(so,Mo){var ol=so.width,eu=Mo===Aa.length-1?ol-dc:ol;return typeof eu=="number"&&!Number.isNaN(eu)?eu:0})):Cu=pe.createElement("div",{style:(0,mt.Z)((0,mt.Z)({},Is),Ys),onScroll:Au,ref:ta,className:at()("".concat(kt,"-body"))},pe.createElement(Wl,(0,vt.Z)({style:(0,mt.Z)((0,mt.Z)({},Xl),{},{tableLayout:Pu})},du),ql,tc,Wc,!Bs&&Bo&&pe.createElement(ut,{stickyOffsets:Ws,flattenColumns:Aa,columns:fa},Bo)));var al=(0,mt.Z)((0,mt.Z)((0,mt.Z)({noData:!xi.length,maxContentScroll:os&&ls==="max-content"},Tu),fl),{},{direction:_n,stickyClassName:Eo,onScroll:Au});Iu=pe.createElement(pe.Fragment,null,ei!==!1&&pe.createElement(Zn,(0,vt.Z)({},al,{stickyTopOffset:cu,className:"".concat(kt,"-header"),ref:Xo}),ju),Cu,Bs&&Bs!=="top"&&pe.createElement(Zn,(0,vt.Z)({},al,{stickyBottomOffset:uc,className:"".concat(kt,"-summary"),ref:Fs}),fc),Yl&&pe.createElement(nn,{ref:Gl,offsetScroll:ao,scrollBodyRef:ta,onScroll:Au,container:ks}))}else Iu=pe.createElement("div",{style:(0,mt.Z)((0,mt.Z)({},Is),Ys),className:at()("".concat(kt,"-content")),onScroll:Au,ref:ta},pe.createElement(Wl,(0,vt.Z)({style:(0,mt.Z)((0,mt.Z)({},Xl),{},{tableLayout:Pu})},du),ql,tc,ei!==!1&&pe.createElement(cr,(0,vt.Z)({},Tu,fl)),Wc,Bo&&pe.createElement(ut,{stickyOffsets:Ws,flattenColumns:Aa,columns:fa},Bo)));var El=pe.createElement("div",(0,vt.Z)({className:at()(kt,Vt,(Ze={},(0,Le.Z)(Ze,"".concat(kt,"-rtl"),_n==="rtl"),(0,Le.Z)(Ze,"".concat(kt,"-ping-left"),fo),(0,Le.Z)(Ze,"".concat(kt,"-ping-right"),bo),(0,Le.Z)(Ze,"".concat(kt,"-layout-fixed"),Rn==="fixed"),(0,Le.Z)(Ze,"".concat(kt,"-fixed-header"),Zo),(0,Le.Z)(Ze,"".concat(kt,"-fixed-column"),il),(0,Le.Z)(Ze,"".concat(kt,"-scroll-horizontal"),os),(0,Le.Z)(Ze,"".concat(kt,"-has-fix-left"),Aa[0]&&Aa[0].fixed),(0,Le.Z)(Ze,"".concat(kt,"-has-fix-right"),Aa[Aa.length-1]&&Aa[Aa.length-1].fixed==="right"),Ze)),style:bn,id:Sr,ref:Yo},nc),sr&&pe.createElement(un,{className:"".concat(kt,"-title")},sr(xi)),pe.createElement("div",{ref:vs,className:"".concat(kt,"-container")},Iu),lr&&pe.createElement(un,{className:"".concat(kt,"-footer")},lr(xi)));os&&(El=pe.createElement(St.Z,{onResize:Lc},El));var js=Nn(Aa,Ws,_n,fa),fu=pe.useMemo(function(){return{scrollX:ls,prefixCls:kt,getComponent:Vi,scrollbarSize:dc,direction:_n,fixedInfoList:js,isSticky:Yl,supportSticky:li,componentWidth:Ki,fixHeader:Zo,fixColumn:il,horizonScroll:os,tableLayout:Pu,rowClassName:zt,expandedRowClassName:aa.expandedRowClassName,expandIcon:mo,expandableType:Lo,expandRowByClick:aa.expandRowByClick,expandedRowRender:aa.expandedRowRender,onTriggerExpand:No,expandIconColumnIndex:aa.expandIconColumnIndex,indentSize:aa.indentSize,allColumnsFixedLeft:Aa.every(function(so){return so.fixed==="left"}),emptyNode:qo,columns:fa,flattenColumns:Aa,onColumnResize:cc,hoverStartRow:va,hoverEndRow:wa,onHover:Da,rowExpandable:aa.rowExpandable,onRow:Zi,getRowKey:Ea,expandedKeys:Qi,childrenColumnName:io}},[ls,kt,Vi,dc,_n,js,Yl,li,Ki,Zo,il,os,Pu,zt,aa.expandedRowClassName,mo,Lo,aa.expandRowByClick,aa.expandedRowRender,No,aa.expandIconColumnIndex,aa.indentSize,qo,fa,Aa,cc,va,wa,Da,aa.rowExpandable,Zi,Ea,Qi,io]);return pe.createElement(he.Provider,{value:fu},El)}function ai(Re){return It(Jr,Re)}var Nr=ai();Nr.EXPAND_COLUMN=ce,Nr.INTERNAL_HOOKS=De,Nr.Column=gn,Nr.ColumnGroup=kn,Nr.Summary=Ge;var yr=Nr,di=ae(48911),ti=Me(null),vi=Me(null);function Wr(Re,Ze,Ct){var kt=Ze||1;return Ct[Re+kt]-(Ct[Re]||0)}function jr(Re){var Ze=Re.rowInfo,Ct=Re.column,kt=Re.colIndex,Vt=Re.indent,zt=Re.index,bn=Re.renderIndex,vn=Re.record,yn=Re.style,Fn=Re.className,Rn=Re.inverse,_n=Re.getHeight,sr=Ct.render,lr=Ct.dataIndex,fr=Ct.className,Pr=Ct.width,Sr=Ke(vi,["columnsOffset"]),ei=Sr.columnsOffset,Fr=Ve(Ze,Ct,kt,Vt,zt),si=Fr.key,Zi=Fr.fixedInfo,Xi=Fr.appendCellNode,Bi=Fr.additionalCellProps,ji=Bi.style,ma=Bi.colSpan,hi=ma===void 0?1:ma,Fi=Bi.rowSpan,xi=Fi===void 0?1:Fi,Br=kt-1,ri=Wr(Br,hi,ei),Vi=hi>1?Pr-ri:0,Ea=(0,mt.Z)((0,mt.Z)((0,mt.Z)({},ji),yn),{},{flex:"0 0 ".concat(ri,"px"),width:"".concat(ri,"px"),marginRight:Vi,pointerEvents:"auto"}),Gi=pe.useMemo(function(){return Rn?xi<=1:hi===0||xi===0||xi>1},[xi,hi,Rn]);Gi?Ea.visibility="hidden":Rn&&(Ea.height=_n==null?void 0:_n(xi));var Qr=Gi?function(){return null}:sr,ia={};return(xi===0||hi===0)&&(ia.rowSpan=1,ia.colSpan=1),pe.createElement(Pn,(0,vt.Z)({className:at()(fr,Fn),ellipsis:Ct.ellipsis,align:Ct.align,scope:Ct.rowScope,component:"div",prefixCls:Ze.prefixCls,key:si,record:vn,index:zt,renderIndex:bn,dataIndex:lr,render:Qr,shouldCellUpdate:Ct.shouldCellUpdate},Zi,{appendNode:Xi,additionalProps:(0,mt.Z)((0,mt.Z)({},Bi),{},{style:Ea},ia)}))}var yi=jr,ui=["data","index","className","rowKey","style","extra","getHeight"],$i=pe.forwardRef(function(Re,Ze){var Ct=Re.data,kt=Re.index,Vt=Re.className,zt=Re.rowKey,bn=Re.style,vn=Re.extra,yn=Re.getHeight,Fn=(0,ue.Z)(Re,ui),Rn=Ct.record,_n=Ct.indent,sr=Ct.index,lr=Ke(he,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),fr=lr.scrollX,Pr=lr.flattenColumns,Sr=lr.prefixCls,ei=lr.fixColumn,Fr=lr.componentWidth,si=Ae(Rn,zt,kt,_n),Zi=si.rowSupportExpand,Xi=si.expanded,Bi=si.rowProps,ji=si.expandedRowRender,ma=si.expandedRowClassName,hi;if(Zi&&Xi){var Fi=ji(Rn,kt,_n+1,Xi),xi=ma==null?void 0:ma(Rn,kt,_n),Br={};ei&&(Br={style:(0,Le.Z)({},"--virtual-width","".concat(Fr,"px"))});var ri="".concat(Sr,"-expanded-row-cell");hi=pe.createElement("div",{className:at()("".concat(Sr,"-expanded-row"),"".concat(Sr,"-expanded-row-level-").concat(_n+1),xi)},pe.createElement(Pn,{component:"div",prefixCls:Sr,className:at()(ri,(0,Le.Z)({},"".concat(ri,"-fixed"),ei)),additionalProps:Br},Fi))}var Vi=(0,mt.Z)((0,mt.Z)({},bn),{},{width:fr});vn&&(Vi.position="absolute",Vi.pointerEvents="none");var Ea=pe.createElement("div",(0,vt.Z)({},Bi,Fn,{ref:Zi?null:Ze,className:at()(Vt,"".concat(Sr,"-row"),Bi==null?void 0:Bi.className,(0,Le.Z)({},"".concat(Sr,"-row-extra"),vn)),style:(0,mt.Z)((0,mt.Z)({},Vi),Bi==null?void 0:Bi.style)}),Pr.map(function(Gi,Qr){return pe.createElement(yi,{key:Qr,rowInfo:si,column:Gi,colIndex:Qr,indent:_n,index:kt,renderIndex:sr,record:Rn,inverse:vn,getHeight:yn})}));return Zi?pe.createElement("div",{ref:Ze},Ea,hi):Ea}),sa=gt($i),oi=sa,ar=pe.forwardRef(function(Re,Ze){var Ct=Re.data,kt=Re.onScroll,Vt=Ke(he,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),zt=Vt.flattenColumns,bn=Vt.onColumnResize,vn=Vt.getRowKey,yn=Vt.expandedKeys,Fn=Vt.prefixCls,Rn=Vt.childrenColumnName,_n=Vt.emptyNode,sr=Vt.scrollX,lr=Ke(ti),fr=lr.scrollY,Pr=lr.listItemHeight,Sr=pe.useRef(),ei=Rt(Ct,Rn,yn,vn),Fr=pe.useMemo(function(){var hi=0;return zt.map(function(Fi){var xi=Fi.width,Br=Fi.key;return hi+=xi,[Br,xi,hi]})},[zt]),si=pe.useMemo(function(){return Fr.map(function(hi){return hi[2]})},[Fr]);pe.useEffect(function(){Fr.forEach(function(hi){var Fi=(0,Te.Z)(hi,2),xi=Fi[0],Br=Fi[1];bn(xi,Br)})},[Fr]),pe.useImperativeHandle(Ze,function(){var hi={};return Object.defineProperty(hi,"scrollLeft",{get:function(){var xi;return((xi=Sr.current)===null||xi===void 0?void 0:xi.getScrollInfo().x)||0},set:function(xi){var Br;(Br=Sr.current)===null||Br===void 0||Br.scrollTo({left:xi})}}),hi});var Zi=function(Fi,xi){var Br,ri=(Br=ei[xi])===null||Br===void 0?void 0:Br.record,Vi=Fi.onCell;if(Vi){var Ea,Gi=Vi(ri,xi);return(Ea=Gi==null?void 0:Gi.rowSpan)!==null&&Ea!==void 0?Ea:1}return 1},Xi=function(Fi){var xi=Fi.start,Br=Fi.end,ri=Fi.getSize,Vi=Fi.offsetY;if(Br<0)return null;for(var Ea=zt.filter(function(ea){return Zi(ea,xi)===0}),Gi=xi,Qr=function(Ui){if(Ea=Ea.filter(function(Ji){return Zi(Ji,Ui)===0}),!Ea.length)return Gi=Ui,"break"},ia=xi;ia>=0;ia-=1){var va=Qr(ia);if(va==="break")break}for(var wa=zt.filter(function(ea){return Zi(ea,Br)!==1}),Da=Br,So=function(Ui){if(wa=wa.filter(function(Ji){return Zi(Ji,Ui)!==1}),!wa.length)return Da=Math.max(Ui-1,Br),"break"},Ia=Br;Ia<ei.length;Ia+=1){var aa=So(Ia);if(aa==="break")break}for(var Lo=[],Qi=function(Ui){var Ji=ei[Ui];if(!Ji)return"continue";zt.some(function(Ki){return Zi(Ki,Ui)>1})&&Lo.push(Ui)},mo=Gi;mo<=Da;mo+=1)var io=Qi(mo);var No=Lo.map(function(ea){var Ui=ei[ea],Ji=vn(Ui.record,ea),Ki=function(gi){var fa=ea+gi-1,Aa=vn(ei[fa].record,fa),Ms=ri(Ji,Aa);return Ms.bottom-Ms.top},Di=ri(Ji);return pe.createElement(oi,{key:ea,data:Ui,rowKey:Ji,index:ea,style:{top:-Vi+Di.top},extra:!0,getHeight:Ki})});return No},Bi=pe.useMemo(function(){return{columnsOffset:si}},[si]),ji="".concat(Fn,"-tbody"),ma;return ei.length?ma=pe.createElement(di.Z,{fullHeight:!1,ref:Sr,className:at()(ji,"".concat(ji,"-virtual")),height:fr,itemHeight:Pr||24,data:ei,itemKey:function(Fi){return vn(Fi.record)},scrollWidth:sr,onVirtualScroll:function(Fi){var xi=Fi.x;kt({scrollLeft:xi})},extraRender:Xi},function(hi,Fi,xi){var Br=vn(hi.record,Fi);return pe.createElement(oi,(0,vt.Z)({data:hi,rowKey:Br,index:Fi},xi))}):ma=pe.createElement("div",{className:at()("".concat(Fn,"-placeholder"))},pe.createElement(Pn,{component:"div",prefixCls:Fn},_n)),pe.createElement(vi.Provider,{value:Bi},ma)}),rr=gt(ar),pi=rr,ni=function(Ze,Ct){var kt=Ct.ref,Vt=Ct.onScroll;return pe.createElement(pi,{ref:kt,data:Ze,onScroll:Vt})},ki=100;function Ai(Re){var Ze=Re.columns,Ct=Re.scroll,kt=Re.prefixCls,Vt=kt===void 0?Vn:kt,zt=Re.className,bn=Re.listItemHeight,vn=Ct||{},yn=vn.x,Fn=vn.y;typeof yn!="number"&&(yn=((Ze||[]).length+1)*ki),typeof Fn!="number"&&(Fn=500);var Rn=pe.useMemo(function(){return{scrollY:Fn,listItemHeight:bn}},[Fn,bn]);return pe.createElement(ti.Provider,{value:Rn},pe.createElement(yr,(0,vt.Z)({},Re,{className:at()(zt,"".concat(Vt,"-virtual")),scroll:(0,mt.Z)((0,mt.Z)({},Ct),{},{x:yn}),components:{body:ni},columns:Ze,internalHooks:De,tailor:!0})))}function Ti(Re){return It(Ai,Re)}var mi=Ti(),Ci=null;function Pa(Re){return null}var _r=Pa;function Xr(Re){return null}var Pi=Xr,Hi=ae(2738),Na=ae(68031),Ra=ae(36355),ka=ae(93891),ha=ae(19716),Qa=ae(8628),Ja=ae(31724),Gr=ae(58421),Zr=ae(71418),Kr=ae(88088);function fi(Re){return function(Ct){let{prefixCls:kt,onExpand:Vt,record:zt,expanded:bn,expandable:vn}=Ct;const yn=`${kt}-row-expand-icon`;return pe.createElement("button",{type:"button",onClick:Fn=>{Vt(zt,Fn),Fn.stopPropagation()},className:at()(yn,{[`${yn}-spaced`]:!vn,[`${yn}-expanded`]:vn&&bn,[`${yn}-collapsed`]:vn&&!bn}),"aria-label":bn?Re.collapse:Re.expand,"aria-expanded":bn})}}var ga=fi;function Fa(Re,Ze){return"key"in Re&&Re.key!==void 0&&Re.key!==null?Re.key:Re.dataIndex?Array.isArray(Re.dataIndex)?Re.dataIndex.join("."):Re.dataIndex:Ze}function Ua(Re,Ze){return Ze?`${Ze}-${Re}`:`${Re}`}function za(Re,Ze){return typeof Re=="function"?Re(Ze):Re}function Ta(Re,Ze){const Ct=za(Re,Ze);return Object.prototype.toString.call(Ct)==="[object Object]"?"":Ct}var lo={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"},jo=lo,_o=ae(7657),hs=function(Ze,Ct){return pe.createElement(_o.Z,(0,vt.Z)({},Ze,{ref:Ct,icon:jo}))},la=pe.forwardRef(hs),ya=la,po=ae(56762);function La(Re){const Ze=pe.useRef(Re),Ct=(0,po.Z)();return[()=>Ze.current,kt=>{Ze.current=kt,Ct()}]}var $a=ae(3113),Ya=ae(24905),Za=ae(38854),Oi=ae(64165),ua=ae(20834),ra=ae(40875),Wi=ae(5112),Oa=ae(17574),Ba=ae(47472),zo=ae(92832);function Vo(Re){let{value:Ze,onChange:Ct,filterSearch:kt,tablePrefixCls:Vt,locale:zt}=Re;return kt?pe.createElement("div",{className:`${Vt}-filter-dropdown-search`},pe.createElement(zo.default,{prefix:pe.createElement(Ba.Z,null),placeholder:zt.filterSearchPlaceholder,onChange:Ct,value:Ze,htmlSize:1,className:`${Vt}-filter-dropdown-search-input`})):null}var $o=Vo,Qo=ae(10228);const qa=Re=>{const{keyCode:Ze}=Re;Ze===Qo.Z.ENTER&&Re.stopPropagation()};var ns=pe.forwardRef((Re,Ze)=>pe.createElement("div",{className:Re.className,onClick:Ct=>Ct.stopPropagation(),onKeyDown:qa,ref:Ze},Re.children));function rs(Re){let Ze=[];return(Re||[]).forEach(Ct=>{let{value:kt,children:Vt}=Ct;Ze.push(kt),Vt&&(Ze=[].concat((0,vr.Z)(Ze),(0,vr.Z)(rs(Vt))))}),Ze}function ps(Re){return Re.some(Ze=>{let{children:Ct}=Ze;return Ct})}function Jo(Re,Ze){return typeof Ze=="string"||typeof Ze=="number"?Ze==null?void 0:Ze.toString().toLowerCase().includes(Re.trim().toLowerCase()):!1}function Vl(Re){let{filters:Ze,prefixCls:Ct,filteredKeys:kt,filterMultiple:Vt,searchValue:zt,filterSearch:bn}=Re;return Ze.map((vn,yn)=>{const Fn=String(vn.value);if(vn.children)return{key:Fn||yn,label:vn.text,popupClassName:`${Ct}-dropdown-submenu`,children:Vl({filters:vn.children,prefixCls:Ct,filteredKeys:kt,filterMultiple:Vt,searchValue:zt,filterSearch:bn})};const Rn=Vt?Ya.default:Wi.ZP,_n={key:vn.value!==void 0?Fn:yn,label:pe.createElement(pe.Fragment,null,pe.createElement(Rn,{checked:kt.includes(Fn)}),pe.createElement("span",null,vn.text))};return zt.trim()?typeof bn=="function"?bn(zt,vn)?_n:null:Jo(zt,vn.text)?_n:null:_n})}function Cl(Re){var Ze,Ct;const{tablePrefixCls:kt,prefixCls:Vt,column:zt,dropdownPrefixCls:bn,columnKey:vn,filterMultiple:yn,filterMode:Fn="menu",filterSearch:Rn=!1,filterState:_n,triggerFilter:sr,locale:lr,children:fr,getPopupContainer:Pr}=Re,{filterDropdownOpen:Sr,onFilterDropdownOpenChange:ei,filterResetToDefaultFilteredValue:Fr,defaultFilteredValue:si,filterDropdownVisible:Zi,onFilterDropdownVisibleChange:Xi}=zt,[Bi,ji]=pe.useState(!1),ma=!!(_n&&(!((Ze=_n.filteredKeys)===null||Ze===void 0)&&Ze.length||_n.forceFiltered)),hi=mr=>{ji(mr),ei==null||ei(mr),Xi==null||Xi(mr)},Fi=(Ct=Sr!=null?Sr:Zi)!==null&&Ct!==void 0?Ct:Bi,xi=_n==null?void 0:_n.filteredKeys,[Br,ri]=La(xi||[]),Vi=mr=>{let{selectedKeys:gi}=mr;ri(gi)},Ea=(mr,gi)=>{let{node:fa,checked:Aa}=gi;Vi(yn?{selectedKeys:mr}:{selectedKeys:Aa&&fa.key?[fa.key]:[]})};pe.useEffect(()=>{Bi&&Vi({selectedKeys:xi||[]})},[xi]);const[Gi,Qr]=pe.useState([]),ia=mr=>{Qr(mr)},[va,wa]=pe.useState(""),Da=mr=>{const{value:gi}=mr.target;wa(gi)};pe.useEffect(()=>{Bi||wa("")},[Bi]);const So=mr=>{const gi=mr&&mr.length?mr:null;if(gi===null&&(!_n||!_n.filteredKeys)||(0,ke.Z)(gi,_n==null?void 0:_n.filteredKeys,!0))return null;sr({column:zt,key:vn,filteredKeys:gi})},Ia=()=>{hi(!1),So(Br())},aa=function(){let{confirm:mr,closeDropdown:gi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};mr&&So([]),gi&&hi(!1),wa(""),ri(Fr?(si||[]).map(fa=>String(fa)):[])},Lo=function(){let{closeDropdown:mr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};mr&&hi(!1),So(Br())},Qi=mr=>{mr&&xi!==void 0&&ri(xi||[]),hi(mr),!mr&&!zt.filterDropdown&&Ia()},mo=at()({[`${bn}-menu-without-submenu`]:!ps(zt.filters||[])}),io=mr=>{if(mr.target.checked){const gi=rs(zt==null?void 0:zt.filters).map(fa=>String(fa));ri(gi)}else ri([])},No=mr=>{let{filters:gi}=mr;return(gi||[]).map((fa,Aa)=>{const Ms=String(fa.value),ls={title:fa.text,key:fa.value!==void 0?Ms:Aa};return fa.children&&(ls.children=No({filters:fa.children})),ls})},ea=mr=>{var gi;return Object.assign(Object.assign({},mr),{text:mr.title,value:mr.key,children:((gi=mr.children)===null||gi===void 0?void 0:gi.map(fa=>ea(fa)))||[]})};let Ui;if(typeof zt.filterDropdown=="function")Ui=zt.filterDropdown({prefixCls:`${bn}-custom`,setSelectedKeys:mr=>Vi({selectedKeys:mr}),selectedKeys:Br(),confirm:Lo,clearFilters:aa,filters:zt.filters,visible:Fi,close:()=>{hi(!1)}});else if(zt.filterDropdown)Ui=zt.filterDropdown;else{const mr=Br()||[],gi=()=>(zt.filters||[]).length===0?pe.createElement(Oi.Z,{image:Oi.Z.PRESENTED_IMAGE_SIMPLE,description:lr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Fn==="tree"?pe.createElement(pe.Fragment,null,pe.createElement($o,{filterSearch:Rn,value:va,onChange:Da,tablePrefixCls:kt,locale:lr}),pe.createElement("div",{className:`${kt}-filter-dropdown-tree`},yn?pe.createElement(Ya.default,{checked:mr.length===rs(zt.filters).length,indeterminate:mr.length>0&&mr.length<rs(zt.filters).length,className:`${kt}-filter-dropdown-checkall`,onChange:io},lr.filterCheckall):null,pe.createElement(Oa.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:yn,checkStrictly:!yn,className:`${bn}-menu`,onCheck:Ea,checkedKeys:mr,selectedKeys:mr,showIcon:!1,treeData:No({filters:zt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:va.trim()?Aa=>typeof Rn=="function"?Rn(va,ea(Aa)):Jo(va,Aa.title):void 0}))):pe.createElement(pe.Fragment,null,pe.createElement($o,{filterSearch:Rn,value:va,onChange:Da,tablePrefixCls:kt,locale:lr}),pe.createElement(ua.default,{selectable:!0,multiple:yn,prefixCls:`${bn}-menu`,className:mo,onSelect:Vi,onDeselect:Vi,selectedKeys:mr,getPopupContainer:Pr,openKeys:Gi,onOpenChange:ia,items:Vl({filters:zt.filters||[],filterSearch:Rn,prefixCls:Vt,filteredKeys:Br(),filterMultiple:yn,searchValue:va})})),fa=()=>Fr?(0,ke.Z)((si||[]).map(Aa=>String(Aa)),mr,!0):mr.length===0;Ui=pe.createElement(pe.Fragment,null,gi(),pe.createElement("div",{className:`${Vt}-dropdown-btns`},pe.createElement($a.ZP,{type:"link",size:"small",disabled:fa(),onClick:()=>aa()},lr.filterReset),pe.createElement($a.ZP,{type:"primary",size:"small",onClick:Ia},lr.filterConfirm)))}zt.filterDropdown&&(Ui=pe.createElement(ra.J,{selectable:void 0},Ui));const Ji=()=>pe.createElement(ns,{className:`${Vt}-dropdown`},Ui);let Ki;typeof zt.filterIcon=="function"?Ki=zt.filterIcon(ma):zt.filterIcon?Ki=zt.filterIcon:Ki=pe.createElement(ya,null);const{direction:Di}=pe.useContext(Ra.E_);return pe.createElement("div",{className:`${Vt}-column`},pe.createElement("span",{className:`${kt}-column-title`},fr),pe.createElement(Za.Z,{dropdownRender:Ji,trigger:["click"],open:Fi,onOpenChange:Qi,getPopupContainer:Pr,placement:Di==="rtl"?"bottomLeft":"bottomRight"},pe.createElement("span",{role:"button",tabIndex:-1,className:at()(`${Vt}-trigger`,{active:ma}),onClick:mr=>{mr.stopPropagation()}},Ki)))}var Sl=Cl;function el(Re,Ze,Ct){let kt=[];return(Re||[]).forEach((Vt,zt)=>{var bn;const vn=Ua(zt,Ct);if(Vt.filters||"filterDropdown"in Vt||"onFilter"in Vt)if("filteredValue"in Vt){let yn=Vt.filteredValue;"filterDropdown"in Vt||(yn=(bn=yn==null?void 0:yn.map(String))!==null&&bn!==void 0?bn:yn),kt.push({column:Vt,key:Fa(Vt,vn),filteredKeys:yn,forceFiltered:Vt.filtered})}else kt.push({column:Vt,key:Fa(Vt,vn),filteredKeys:Ze&&Vt.defaultFilteredValue?Vt.defaultFilteredValue:void 0,forceFiltered:Vt.filtered});"children"in Vt&&(kt=[].concat((0,vr.Z)(kt),(0,vr.Z)(el(Vt.children,Ze,vn))))}),kt}function vu(Re,Ze,Ct,kt,Vt,zt,bn,vn){return Ct.map((yn,Fn)=>{const Rn=Ua(Fn,vn),{filterMultiple:_n=!0,filterMode:sr,filterSearch:lr}=yn;let fr=yn;if(fr.filters||fr.filterDropdown){const Pr=Fa(fr,Rn),Sr=kt.find(ei=>{let{key:Fr}=ei;return Pr===Fr});fr=Object.assign(Object.assign({},fr),{title:ei=>pe.createElement(Sl,{tablePrefixCls:Re,prefixCls:`${Re}-filter`,dropdownPrefixCls:Ze,column:fr,columnKey:Pr,filterState:Sr,filterMultiple:_n,filterMode:sr,filterSearch:lr,triggerFilter:zt,locale:Vt,getPopupContainer:bn},za(yn.title,ei))})}return"children"in fr&&(fr=Object.assign(Object.assign({},fr),{children:vu(Re,Ze,fr.children,kt,Vt,zt,bn,Rn)})),fr})}function tl(Re){const Ze={};return Re.forEach(Ct=>{let{key:kt,filteredKeys:Vt,column:zt}=Ct;const{filters:bn,filterDropdown:vn}=zt;if(vn)Ze[kt]=Vt||null;else if(Array.isArray(Vt)){const yn=rs(bn);Ze[kt]=yn.filter(Fn=>Vt.includes(String(Fn)))}else Ze[kt]=null}),Ze}function Ls(Re,Ze){return Ze.reduce((Ct,kt)=>{const{column:{onFilter:Vt,filters:zt},filteredKeys:bn}=kt;return Vt&&bn&&bn.length?Ct.filter(vn=>bn.some(yn=>{const Fn=rs(zt),Rn=Fn.findIndex(sr=>String(sr)===String(yn)),_n=Rn!==-1?Fn[Rn]:yn;return Vt(_n,vn)})):Ct},Re)}const ms=Re=>Re.flatMap(Ze=>"children"in Ze?[Ze].concat((0,vr.Z)(ms(Ze.children||[]))):[Ze]);function kl(Re){let{prefixCls:Ze,dropdownPrefixCls:Ct,mergedColumns:kt,onFilterChange:Vt,getPopupContainer:zt,locale:bn}=Re;const vn=pe.useMemo(()=>ms(kt||[]),[kt]),[yn,Fn]=pe.useState(()=>el(vn,!0)),Rn=pe.useMemo(()=>{const fr=el(vn,!1);if(fr.length===0)return fr;let Pr=!0,Sr=!0;if(fr.forEach(ei=>{let{filteredKeys:Fr}=ei;Fr!==void 0?Pr=!1:Sr=!1}),Pr){const ei=(vn||[]).map((Fr,si)=>Fa(Fr,Ua(si)));return yn.filter(Fr=>{let{key:si}=Fr;return ei.includes(si)}).map(Fr=>{const si=vn[ei.findIndex(Zi=>Zi===Fr.key)];return Object.assign(Object.assign({},Fr),{column:Object.assign(Object.assign({},Fr.column),si),forceFiltered:si.filtered})})}return fr},[vn,yn]),_n=pe.useMemo(()=>tl(Rn),[Rn]),sr=fr=>{const Pr=Rn.filter(Sr=>{let{key:ei}=Sr;return ei!==fr.key});Pr.push(fr),Fn(Pr),Vt(tl(Pr),Pr)};return[fr=>vu(Ze,Ct,fr,Rn,bn,sr,zt),Rn,_n]}var Ol=kl;function Nl(Re,Ze,Ct){const kt=pe.useRef({});function Vt(zt){if(!kt.current||kt.current.data!==Re||kt.current.childrenColumnName!==Ze||kt.current.getRowKey!==Ct){let vn=function(yn){yn.forEach((Fn,Rn)=>{const _n=Ct(Fn,Rn);bn.set(_n,Fn),Fn&&typeof Fn=="object"&&Ze in Fn&&vn(Fn[Ze]||[])})};const bn=new Map;vn(Re),kt.current={data:Re,childrenColumnName:Ze,kvMap:bn,getRowKey:Ct}}return kt.current.kvMap.get(zt)}return[Vt]}var au=ae(50371),Fl=function(Re,Ze){var Ct={};for(var kt in Re)Object.prototype.hasOwnProperty.call(Re,kt)&&Ze.indexOf(kt)<0&&(Ct[kt]=Re[kt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,kt=Object.getOwnPropertySymbols(Re);Vt<kt.length;Vt++)Ze.indexOf(kt[Vt])<0&&Object.prototype.propertyIsEnumerable.call(Re,kt[Vt])&&(Ct[kt[Vt]]=Re[kt[Vt]]);return Ct};const Os=10;function gs(Re,Ze){const Ct={current:Re.current,pageSize:Re.pageSize};return Object.keys(Ze&&typeof Ze=="object"?Ze:{}).forEach(Vt=>{const zt=Re[Vt];typeof zt!="function"&&(Ct[Vt]=zt)}),Ct}function Do(Re,Ze,Ct){const kt=Ct&&typeof Ct=="object"?Ct:{},{total:Vt=0}=kt,zt=Fl(kt,["total"]),[bn,vn]=(0,pe.useState)(()=>({current:"defaultCurrent"in zt?zt.defaultCurrent:1,pageSize:"defaultPageSize"in zt?zt.defaultPageSize:Os})),yn=(0,au.Z)(bn,zt,{total:Vt>0?Vt:Re}),Fn=Math.ceil((Vt||Re)/yn.pageSize);yn.current>Fn&&(yn.current=Fn||1);const Rn=(sr,lr)=>{vn({current:sr!=null?sr:1,pageSize:lr||yn.pageSize})},_n=(sr,lr)=>{var fr;Ct&&((fr=Ct.onChange)===null||fr===void 0||fr.call(Ct,sr,lr)),Rn(sr,lr),Ze(sr,lr||(yn==null?void 0:yn.pageSize))};return Ct===!1?[{},()=>{}]:[Object.assign(Object.assign({},yn),{onChange:_n}),Rn]}var zl=Do,yu=ae(84105),nl=ae(35654),to=ae(90782),Ha=ae(71430),Ko=ae(18929);const is={},Uo="SELECT_ALL",Ns="SELECT_INVERT",Ks="SELECT_NONE",cl=[],Hs=(Re,Ze)=>{let Ct=[];return(Ze||[]).forEach(kt=>{Ct.push(kt),kt&&typeof kt=="object"&&Re in kt&&(Ct=[].concat((0,vr.Z)(Ct),(0,vr.Z)(Hs(Re,kt[Re]))))}),Ct};var vl=(Re,Ze)=>{const{preserveSelectedRowKeys:Ct,selectedRowKeys:kt,defaultSelectedRowKeys:Vt,getCheckboxProps:zt,onChange:bn,onSelect:vn,onSelectAll:yn,onSelectInvert:Fn,onSelectNone:Rn,onSelectMultiple:_n,columnWidth:sr,type:lr,selections:fr,fixed:Pr,renderCell:Sr,hideSelectAll:ei,checkStrictly:Fr=!0}=Ze||{},{prefixCls:si,data:Zi,pageData:Xi,getRecordByKey:Bi,getRowKey:ji,expandType:ma,childrenColumnName:hi,locale:Fi,getPopupContainer:xi}=Re,[Br,ri]=(0,Ko.Z)(kt||Vt||cl,{value:kt}),Vi=pe.useRef(new Map),Ea=(0,pe.useCallback)(ea=>{if(Ct){const Ui=new Map;ea.forEach(Ji=>{let Ki=Bi(Ji);!Ki&&Vi.current.has(Ji)&&(Ki=Vi.current.get(Ji)),Ui.set(Ji,Ki)}),Vi.current=Ui}},[Bi,Ct]);pe.useEffect(()=>{Ea(Br)},[Br]);const{keyEntities:Gi}=(0,pe.useMemo)(()=>{if(Fr)return{keyEntities:null};let ea=Zi;if(Ct){const Ui=new Set(Zi.map((Ki,Di)=>ji(Ki,Di))),Ji=Array.from(Vi.current).reduce((Ki,Di)=>{let[mr,gi]=Di;return Ui.has(mr)?Ki:Ki.concat(gi)},[]);ea=[].concat((0,vr.Z)(ea),(0,vr.Z)(Ji))}return(0,Ha.I8)(ea,{externalGetKey:ji,childrenPropName:hi})},[Zi,ji,Fr,hi,Ct]),Qr=(0,pe.useMemo)(()=>Hs(hi,Xi),[hi,Xi]),ia=(0,pe.useMemo)(()=>{const ea=new Map;return Qr.forEach((Ui,Ji)=>{const Ki=ji(Ui,Ji),Di=(zt?zt(Ui):null)||{};ea.set(Ki,Di)}),ea},[Qr,ji,zt]),va=(0,pe.useCallback)(ea=>{var Ui;return!!(!((Ui=ia.get(ji(ea)))===null||Ui===void 0)&&Ui.disabled)},[ia,ji]),[wa,Da]=(0,pe.useMemo)(()=>{if(Fr)return[Br||[],[]];const{checkedKeys:ea,halfCheckedKeys:Ui}=(0,to.S)(Br,!0,Gi,va);return[ea||[],Ui]},[Br,Fr,Gi,va]),So=(0,pe.useMemo)(()=>{const ea=lr==="radio"?wa.slice(0,1):wa;return new Set(ea)},[wa,lr]),Ia=(0,pe.useMemo)(()=>lr==="radio"?new Set:new Set(Da),[Da,lr]),[aa,Lo]=(0,pe.useState)(null);pe.useEffect(()=>{Ze||ri(cl)},[!!Ze]);const Qi=(0,pe.useCallback)((ea,Ui)=>{let Ji,Ki;Ea(ea),Ct?(Ji=ea,Ki=ea.map(Di=>Vi.current.get(Di))):(Ji=[],Ki=[],ea.forEach(Di=>{const mr=Bi(Di);mr!==void 0&&(Ji.push(Di),Ki.push(mr))})),ri(Ji),bn==null||bn(Ji,Ki,{type:Ui})},[ri,Bi,bn,Ct]),mo=(0,pe.useCallback)((ea,Ui,Ji,Ki)=>{if(vn){const Di=Ji.map(mr=>Bi(mr));vn(Bi(ea),Ui,Di,Ki)}Qi(Ji,"single")},[vn,Bi,Qi]),io=(0,pe.useMemo)(()=>!fr||ei?null:(fr===!0?[Uo,Ns,Ks]:fr).map(Ui=>Ui===Uo?{key:"all",text:Fi.selectionAll,onSelect(){Qi(Zi.map((Ji,Ki)=>ji(Ji,Ki)).filter(Ji=>{const Ki=ia.get(Ji);return!(Ki!=null&&Ki.disabled)||So.has(Ji)}),"all")}}:Ui===Ns?{key:"invert",text:Fi.selectInvert,onSelect(){const Ji=new Set(So);Xi.forEach((Di,mr)=>{const gi=ji(Di,mr),fa=ia.get(gi);fa!=null&&fa.disabled||(Ji.has(gi)?Ji.delete(gi):Ji.add(gi))});const Ki=Array.from(Ji);Fn&&Fn(Ki),Qi(Ki,"invert")}}:Ui===Ks?{key:"none",text:Fi.selectNone,onSelect(){Rn==null||Rn(),Qi(Array.from(So).filter(Ji=>{const Ki=ia.get(Ji);return Ki==null?void 0:Ki.disabled}),"none")}}:Ui).map(Ui=>Object.assign(Object.assign({},Ui),{onSelect:function(){for(var Ji,Ki,Di=arguments.length,mr=new Array(Di),gi=0;gi<Di;gi++)mr[gi]=arguments[gi];(Ki=Ui.onSelect)===null||Ki===void 0||(Ji=Ki).call.apply(Ji,[Ui].concat(mr)),Lo(null)}})),[fr,So,Xi,ji,Fn,Qi]);return[(0,pe.useCallback)(ea=>{var Ui;if(!Ze)return ea.filter(Xa=>Xa!==is);let Ji=(0,vr.Z)(ea);const Ki=new Set(So),Di=Qr.map(ji).filter(Xa=>!ia.get(Xa).disabled),mr=Di.every(Xa=>Ki.has(Xa)),gi=Di.some(Xa=>Ki.has(Xa)),fa=()=>{const Xa=[];mr?Di.forEach(fo=>{Ki.delete(fo),Xa.push(fo)}):Di.forEach(fo=>{Ki.has(fo)||(Ki.add(fo),Xa.push(fo))});const Vr=Array.from(Ki);yn==null||yn(!mr,Vr.map(fo=>Bi(fo)),Xa.map(fo=>Bi(fo))),Qi(Vr,"all"),Lo(null)};let Aa;if(lr!=="radio"){let Xa;if(io){const ba={getPopupContainer:xi,items:io.map((bo,Ss)=>{const{key:xo,text:ca,onSelect:Ho}=bo;return{key:xo!=null?xo:Ss,onClick:()=>{Ho==null||Ho(Di)},label:ca}})};Xa=pe.createElement("div",{className:`${si}-selection-extra`},pe.createElement(Za.Z,{menu:ba,getPopupContainer:xi},pe.createElement("span",null,pe.createElement(yu.Z,null))))}const Vr=Qr.map((ba,bo)=>{const Ss=ji(ba,bo),xo=ia.get(Ss)||{};return Object.assign({checked:Ki.has(Ss)},xo)}).filter(ba=>{let{disabled:bo}=ba;return bo}),fo=!!Vr.length&&Vr.length===Qr.length,us=fo&&Vr.every(ba=>{let{checked:bo}=ba;return bo}),cs=fo&&Vr.some(ba=>{let{checked:bo}=ba;return bo});Aa=!ei&&pe.createElement("div",{className:`${si}-selection`},pe.createElement(Ya.default,{checked:fo?us:!!Qr.length&&mr,indeterminate:fo?!us&&cs:!mr&&gi,onChange:fa,disabled:Qr.length===0||fo,"aria-label":Xa?"Custom selection":"Select all",skipGroup:!0}),Xa)}let Ms;lr==="radio"?Ms=(Xa,Vr,fo)=>{const us=ji(Vr,fo),cs=Ki.has(us);return{node:pe.createElement(Wi.ZP,Object.assign({},ia.get(us),{checked:cs,onClick:ba=>ba.stopPropagation(),onChange:ba=>{Ki.has(us)||mo(us,!0,[us],ba.nativeEvent)}})),checked:cs}}:Ms=(Xa,Vr,fo)=>{var us;const cs=ji(Vr,fo),ba=Ki.has(cs),bo=Ia.has(cs),Ss=ia.get(cs);let xo;return ma==="nest"?xo=bo:xo=(us=Ss==null?void 0:Ss.indeterminate)!==null&&us!==void 0?us:bo,{node:pe.createElement(Ya.default,Object.assign({},Ss,{indeterminate:xo,checked:ba,skipGroup:!0,onClick:ca=>ca.stopPropagation(),onChange:ca=>{let{nativeEvent:Ho}=ca;const{shiftKey:Ro}=Ho;let Zl=-1,zs=-1;if(Ro&&Fr){const hl=new Set([aa,cs]);Di.some((Ws,Zo)=>{if(hl.has(Ws))if(Zl===-1)Zl=Zo;else return zs=Zo,!0;return!1})}if(zs!==-1&&Zl!==zs&&Fr){const hl=Di.slice(Zl,zs+1),Ws=[];ba?hl.forEach(os=>{Ki.has(os)&&(Ws.push(os),Ki.delete(os))}):hl.forEach(os=>{Ki.has(os)||(Ws.push(os),Ki.add(os))});const Zo=Array.from(Ki);_n==null||_n(!ba,Zo.map(os=>Bi(os)),Ws.map(os=>Bi(os))),Qi(Zo,"multiple")}else{const hl=wa;if(Fr){const Ws=ba?(0,nl._5)(hl,cs):(0,nl.L0)(hl,cs);mo(cs,!ba,Ws,Ho)}else{const Ws=(0,to.S)([].concat((0,vr.Z)(hl),[cs]),!0,Gi,va),{checkedKeys:Zo,halfCheckedKeys:os}=Ws;let il=Zo;if(ba){const Gl=new Set(Zo);Gl.delete(cs),il=(0,to.S)(Array.from(Gl),{checked:!1,halfCheckedKeys:os},Gi,va).checkedKeys}mo(cs,!ba,il,Ho)}}Lo(ba?null:cs)}})),checked:ba}};const ls=(Xa,Vr,fo)=>{const{node:us,checked:cs}=Ms(Xa,Vr,fo);return Sr?Sr(cs,Vr,fo,us):us};if(!Ji.includes(is))if(Ji.findIndex(Xa=>{var Vr;return((Vr=Xa[gr])===null||Vr===void 0?void 0:Vr.columnType)==="EXPAND_COLUMN"})===0){const[Xa,...Vr]=Ji;Ji=[Xa,is].concat((0,vr.Z)(Vr))}else Ji=[is].concat((0,vr.Z)(Ji));const fl=Ji.indexOf(is);Ji=Ji.filter((Xa,Vr)=>Xa!==is||Vr===fl);const Yo=Ji[fl-1],Xo=Ji[fl+1];let ta=Pr;ta===void 0&&((Xo==null?void 0:Xo.fixed)!==void 0?ta=Xo.fixed:(Yo==null?void 0:Yo.fixed)!==void 0&&(ta=Yo.fixed)),ta&&Yo&&((Ui=Yo[gr])===null||Ui===void 0?void 0:Ui.columnType)==="EXPAND_COLUMN"&&Yo.fixed===void 0&&(Yo.fixed=ta);const vs=at()(`${si}-selection-col`,{[`${si}-selection-col-with-dropdown`]:fr&&lr==="checkbox"}),Fs={fixed:ta,width:sr,className:`${si}-selection-column`,title:Ze.columnTitle||Aa,render:ls,onCell:Ze.onCell,[gr]:{className:vs}};return Ji.map(Xa=>Xa===is?Fs:Xa)},[ji,Qr,Ze,wa,So,Ia,sr,io,ma,aa,ia,_n,mo,va]),So]},Zs=ae(89489),Hu=ae(59477),$l=ae(6848);const ou="ascend",su="descend";function bu(Re){return typeof Re.sorter=="object"&&typeof Re.sorter.multiple=="number"?Re.sorter.multiple:!1}function xu(Re){return typeof Re=="function"?Re:Re&&typeof Re=="object"&&Re.compare?Re.compare:!1}function lc(Re,Ze){return Ze?Re[Re.indexOf(Ze)+1]:Re[0]}function lu(Re,Ze,Ct){let kt=[];function Vt(zt,bn){kt.push({column:zt,key:Fa(zt,bn),multiplePriority:bu(zt),sortOrder:zt.sortOrder})}return(Re||[]).forEach((zt,bn)=>{const vn=Ua(bn,Ct);zt.children?("sortOrder"in zt&&Vt(zt,vn),kt=[].concat((0,vr.Z)(kt),(0,vr.Z)(lu(zt.children,Ze,vn)))):zt.sorter&&("sortOrder"in zt?Vt(zt,vn):Ze&&zt.defaultSortOrder&&kt.push({column:zt,key:Fa(zt,vn),multiplePriority:bu(zt),sortOrder:zt.defaultSortOrder}))}),kt}function ku(Re,Ze,Ct,kt,Vt,zt,bn,vn){return(Ze||[]).map((yn,Fn)=>{const Rn=Ua(Fn,vn);let _n=yn;if(_n.sorter){const sr=_n.sortDirections||Vt,lr=_n.showSorterTooltip===void 0?bn:_n.showSorterTooltip,fr=Fa(_n,Rn),Pr=Ct.find(ma=>{let{key:hi}=ma;return hi===fr}),Sr=Pr?Pr.sortOrder:null,ei=lc(sr,Sr);let Fr;if(yn.sortIcon)Fr=yn.sortIcon({sortOrder:Sr});else{const ma=sr.includes(ou)&&pe.createElement(Hu.Z,{className:at()(`${Re}-column-sorter-up`,{active:Sr===ou})}),hi=sr.includes(su)&&pe.createElement(Zs.Z,{className:at()(`${Re}-column-sorter-down`,{active:Sr===su})});Fr=pe.createElement("span",{className:at()(`${Re}-column-sorter`,{[`${Re}-column-sorter-full`]:!!(ma&&hi)})},pe.createElement("span",{className:`${Re}-column-sorter-inner`,"aria-hidden":"true"},ma,hi))}const{cancelSort:si,triggerAsc:Zi,triggerDesc:Xi}=zt||{};let Bi=si;ei===su?Bi=Xi:ei===ou&&(Bi=Zi);const ji=typeof lr=="object"?lr:{title:Bi};_n=Object.assign(Object.assign({},_n),{className:at()(_n.className,{[`${Re}-column-sort`]:Sr}),title:ma=>{const hi=pe.createElement("div",{className:`${Re}-column-sorters`},pe.createElement("span",{className:`${Re}-column-title`},za(yn.title,ma)),Fr);return lr?pe.createElement($l.Z,Object.assign({},ji),hi):hi},onHeaderCell:ma=>{const hi=yn.onHeaderCell&&yn.onHeaderCell(ma)||{},Fi=hi.onClick,xi=hi.onKeyDown;hi.onClick=Vi=>{kt({column:yn,key:fr,sortOrder:ei,multiplePriority:bu(yn)}),Fi==null||Fi(Vi)},hi.onKeyDown=Vi=>{Vi.keyCode===Qo.Z.ENTER&&(kt({column:yn,key:fr,sortOrder:ei,multiplePriority:bu(yn)}),xi==null||xi(Vi))};const Br=Ta(yn.title,{}),ri=Br==null?void 0:Br.toString();return Sr?hi["aria-sort"]=Sr==="ascend"?"ascending":"descending":hi["aria-label"]=ri||"",hi.className=at()(hi.className,`${Re}-column-has-sorters`),hi.tabIndex=0,yn.ellipsis&&(hi.title=(Br!=null?Br:"").toString()),hi}})}return"children"in _n&&(_n=Object.assign(Object.assign({},_n),{children:ku(Re,_n.children,Ct,kt,Vt,zt,bn,Rn)})),_n})}function Ul(Re){const{column:Ze,sortOrder:Ct}=Re;return{column:Ze,order:Ct,field:Ze.dataIndex,columnKey:Ze.key}}function uu(Re){const Ze=Re.filter(Ct=>{let{sortOrder:kt}=Ct;return kt}).map(Ul);return Ze.length===0&&Re.length?Object.assign(Object.assign({},Ul(Re[Re.length-1])),{column:void 0}):Ze.length<=1?Ze[0]||{}:Ze}function vo(Re,Ze,Ct){const kt=Ze.slice().sort((bn,vn)=>vn.multiplePriority-bn.multiplePriority),Vt=Re.slice(),zt=kt.filter(bn=>{let{column:{sorter:vn},sortOrder:yn}=bn;return xu(vn)&&yn});return zt.length?Vt.sort((bn,vn)=>{for(let yn=0;yn<zt.length;yn+=1){const Fn=zt[yn],{column:{sorter:Rn},sortOrder:_n}=Fn,sr=xu(Rn);if(sr&&_n){const lr=sr(bn,vn,_n);if(lr!==0)return _n===ou?lr:-lr}}return 0}).map(bn=>{const vn=bn[Ct];return vn?Object.assign(Object.assign({},bn),{[Ct]:vo(vn,Ze,Ct)}):bn}):Vt}function Ao(Re){let{prefixCls:Ze,mergedColumns:Ct,onSorterChange:kt,sortDirections:Vt,tableLocale:zt,showSorterTooltip:bn}=Re;const[vn,yn]=pe.useState(lu(Ct,!0)),Fn=pe.useMemo(()=>{let fr=!0;const Pr=lu(Ct,!1);if(!Pr.length)return vn;const Sr=[];function ei(si){fr?Sr.push(si):Sr.push(Object.assign(Object.assign({},si),{sortOrder:null}))}let Fr=null;return Pr.forEach(si=>{Fr===null?(ei(si),si.sortOrder&&(si.multiplePriority===!1?fr=!1:Fr=!0)):(Fr&&si.multiplePriority!==!1||(fr=!1),ei(si))}),Sr},[Ct,vn]),Rn=pe.useMemo(()=>{const fr=Fn.map(Pr=>{let{column:Sr,sortOrder:ei}=Pr;return{column:Sr,order:ei}});return{sortColumns:fr,sortColumn:fr[0]&&fr[0].column,sortOrder:fr[0]&&fr[0].order}},[Fn]);function _n(fr){let Pr;fr.multiplePriority===!1||!Fn.length||Fn[0].multiplePriority===!1?Pr=[fr]:Pr=[].concat((0,vr.Z)(Fn.filter(Sr=>{let{key:ei}=Sr;return ei!==fr.key})),[fr]),yn(Pr),kt(uu(Pr),Pr)}return[fr=>ku(Ze,fr,Fn,_n,Vt,zt,bn),Fn,Rn,()=>uu(Fn)]}function Go(Re,Ze){return Re.map(Ct=>{const kt=Object.assign({},Ct);return kt.title=za(Ct.title,Ze),"children"in kt&&(kt.children=Go(kt.children,Ze)),kt})}function dl(Re){return[pe.useCallback(Ct=>Go(Ct,Re),[Re])]}var Rs=ai((Re,Ze)=>{const{_renderTimes:Ct}=Re,{_renderTimes:kt}=Ze;return Ct!==kt}),rl=Ti((Re,Ze)=>{const{_renderTimes:Ct}=Re,{_renderTimes:kt}=Ze;return Ct!==kt}),Gs=ae(64993),_s=ae(17313),Kl=ae(83116),Hl=ae(37613),Ie=Re=>{const{componentCls:Ze}=Re,Ct=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`,kt=(Vt,zt,bn)=>({[`&${Ze}-${Vt}`]:{[`> ${Ze}-container`]:{[`> ${Ze}-content, > ${Ze}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ze}-expanded-row-fixed`]:{margin:`-${zt}px -${bn+Re.lineWidth}px`}}}}}});return{[`${Ze}-wrapper`]:{[`${Ze}${Ze}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ze}-title`]:{border:Ct,borderBottom:0},[`> ${Ze}-container`]:{borderInlineStart:Ct,borderTop:Ct,[`
|
|
|
> ${Ze}-content,
|
|
|
> ${Ze}-header,
|
|
|
> ${Ze}-body,
|
|
|
> ${Ze}-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:Ct},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ct},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ze}-cell-fix-right-first::after`]:{borderInlineEnd:Ct}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ze}-expanded-row-fixed`]:{margin:`-${Re.tablePaddingVertical}px -${Re.tablePaddingHorizontal+Re.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Re.lineWidth,bottom:0,borderInlineEnd:Ct,content:'""'}}}}}},[`&${Ze}-scroll-horizontal`]:{[`> ${Ze}-container > ${Ze}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ze}-expanded-row,
|
|
|
> tr${Ze}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},kt("middle",Re.tablePaddingVerticalMiddle,Re.tablePaddingHorizontalMiddle)),kt("small",Re.tablePaddingVerticalSmall,Re.tablePaddingHorizontalSmall)),{[`> ${Ze}-footer`]:{border:Ct,borderTop:0}}),[`${Ze}-cell`]:{[`${Ze}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Re.lineWidth}px 0 ${Re.lineWidth}px ${Re.tableHeaderBg}`}},[`${Ze}-bordered ${Ze}-cell-scrollbar`]:{borderInlineEnd:Ct}}}},At=Re=>{const{componentCls:Ze}=Re;return{[`${Ze}-wrapper`]:{[`${Ze}-cell-ellipsis`]:Object.assign(Object.assign({},_s.vS),{wordBreak:"keep-all",[`
|
|
|
&${Ze}-cell-fix-left-last,
|
|
|
&${Ze}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Ze}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ze}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Dn=Re=>{const{componentCls:Ze}=Re;return{[`${Ze}-wrapper`]:{[`${Ze}-tbody > tr${Ze}-placeholder`]:{textAlign:"center",color:Re.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Re.colorBgContainer}}}}},Cn=ae(15969),Gn=Re=>{const{componentCls:Ze,antCls:Ct,controlInteractiveSize:kt,motionDurationSlow:Vt,lineWidth:zt,paddingXS:bn,lineType:vn,tableBorderColor:yn,tableExpandIconBg:Fn,tableExpandColumnWidth:Rn,borderRadius:_n,fontSize:sr,fontSizeSM:lr,lineHeight:fr,tablePaddingVertical:Pr,tablePaddingHorizontal:Sr,tableExpandedRowBg:ei,paddingXXS:Fr}=Re,si=kt/2-zt,Zi=si*2+zt*3,Xi=`${zt}px ${vn} ${yn}`,Bi=Fr-zt;return{[`${Ze}-wrapper`]:{[`${Ze}-expand-icon-col`]:{width:Rn},[`${Ze}-row-expand-icon-cell`]:{textAlign:"center",[`${Ze}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ze}-row-indent`]:{height:1,float:"left"},[`${Ze}-row-expand-icon`]:Object.assign(Object.assign({},(0,Cn.N)(Re)),{position:"relative",float:"left",boxSizing:"border-box",width:Zi,height:Zi,padding:0,color:"inherit",lineHeight:`${Zi}px`,background:Fn,border:Xi,borderRadius:_n,transform:`scale(${kt/Zi})`,transition:`all ${Vt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Vt} ease-out`,content:'""'},"&::before":{top:si,insetInlineEnd:Bi,insetInlineStart:Bi,height:zt},"&::after":{top:Bi,bottom:Bi,insetInlineStart:si,width:zt,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"}}),[`${Ze}-row-indent + ${Ze}-row-expand-icon`]:{marginTop:(sr*fr-zt*3)/2-Math.ceil((lr*1.4-zt*3)/2),marginInlineEnd:bn},[`tr${Ze}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ei}},[`${Ct}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ze}-expanded-row-fixed`]:{position:"relative",margin:`-${Pr}px -${Sr}px`,padding:`${Pr}px ${Sr}px`}}}},qr=Re=>{const{componentCls:Ze,antCls:Ct,iconCls:kt,tableFilterDropdownWidth:Vt,tableFilterDropdownSearchWidth:zt,paddingXXS:bn,paddingXS:vn,colorText:yn,lineWidth:Fn,lineType:Rn,tableBorderColor:_n,tableHeaderIconColor:sr,fontSizeSM:lr,tablePaddingHorizontal:fr,borderRadius:Pr,motionDurationSlow:Sr,colorTextDescription:ei,colorPrimary:Fr,tableHeaderFilterActiveBg:si,colorTextDisabled:Zi,tableFilterDropdownBg:Xi,tableFilterDropdownHeight:Bi,controlItemBgHover:ji,controlItemBgActive:ma,boxShadowSecondary:hi,filterDropdownMenuBg:Fi}=Re,xi=`${Ct}-dropdown`,Br=`${Ze}-filter-dropdown`,ri=`${Ct}-tree`,Vi=`${Fn}px ${Rn} ${_n}`;return[{[`${Ze}-wrapper`]:{[`${Ze}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ze}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-bn,marginInline:`${bn}px ${-fr/2}px`,padding:`0 ${bn}px`,color:sr,fontSize:lr,borderRadius:Pr,cursor:"pointer",transition:`all ${Sr}`,"&:hover":{color:ei,background:si},"&.active":{color:Fr}}}},{[`${Ct}-dropdown`]:{[Br]:Object.assign(Object.assign({},(0,_s.Wf)(Re)),{minWidth:Vt,backgroundColor:Xi,borderRadius:Pr,boxShadow:hi,overflow:"hidden",[`${xi}-menu`]:{maxHeight:Bi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Fi,"&:empty::after":{display:"block",padding:`${vn}px 0`,color:Zi,fontSize:lr,textAlign:"center",content:'"Not Found"'}},[`${Br}-tree`]:{paddingBlock:`${vn}px 0`,paddingInline:vn,[ri]:{padding:0},[`${ri}-treenode ${ri}-node-content-wrapper:hover`]:{backgroundColor:ji},[`${ri}-treenode-checkbox-checked ${ri}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ma}}},[`${Br}-search`]:{padding:vn,borderBottom:Vi,"&-input":{input:{minWidth:zt},[kt]:{color:Zi}}},[`${Br}-checkall`]:{width:"100%",marginBottom:bn,marginInlineStart:bn},[`${Br}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${vn-Fn}px ${vn}px`,overflow:"hidden",borderTop:Vi}})}},{[`${Ct}-dropdown ${Br}, ${Br}-submenu`]:{[`${Ct}-checkbox-wrapper + span`]:{paddingInlineStart:vn,color:yn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ur=Re=>{const{componentCls:Ze,lineWidth:Ct,colorSplit:kt,motionDurationSlow:Vt,zIndexTableFixed:zt,tableBg:bn,zIndexTableSticky:vn}=Re,yn=kt;return{[`${Ze}-wrapper`]:{[`
|
|
|
${Ze}-cell-fix-left,
|
|
|
${Ze}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:zt,background:bn},[`
|
|
|
${Ze}-cell-fix-left-first::after,
|
|
|
${Ze}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ct,width:30,transform:"translateX(100%)",transition:`box-shadow ${Vt}`,content:'""',pointerEvents:"none"},[`${Ze}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Ze}-cell-fix-right-first::after,
|
|
|
${Ze}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Ct,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Vt}`,content:'""',pointerEvents:"none"},[`${Ze}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:vn+1,width:30,transition:`box-shadow ${Vt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ze}-ping-left`]:{[`&:not(${Ze}-has-fix-left) ${Ze}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${yn}`}},[`
|
|
|
${Ze}-cell-fix-left-first::after,
|
|
|
${Ze}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${yn}`},[`${Ze}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ze}-ping-right`]:{[`&:not(${Ze}-has-fix-right) ${Ze}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${yn}`}},[`
|
|
|
${Ze}-cell-fix-right-first::after,
|
|
|
${Ze}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${yn}`}}}}},Lr=Re=>{const{componentCls:Ze,antCls:Ct}=Re;return{[`${Ze}-wrapper`]:{[`${Ze}-pagination${Ct}-pagination`]:{margin:`${Re.margin}px 0`},[`${Ze}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Re.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ir=Re=>{const{componentCls:Ze,tableRadius:Ct}=Re;return{[`${Ze}-wrapper`]:{[Ze]:{[`${Ze}-title, ${Ze}-header`]:{borderRadius:`${Ct}px ${Ct}px 0 0`},[`${Ze}-title + ${Ze}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ze}-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:Ct,borderStartEndRadius:Ct,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ct},"> *:last-child":{borderStartEndRadius:Ct}}},"&-footer":{borderRadius:`0 0 ${Ct}px ${Ct}px`}}}}},Ri=Re=>{const{componentCls:Ze}=Re;return{[`${Ze}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ze}-pagination-left`]:{justifyContent:"flex-end"},[`${Ze}-pagination-right`]:{justifyContent:"flex-start"},[`${Ze}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ze}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ze}-row-indent`]:{float:"right"}}}}},Ni=Re=>{const{componentCls:Ze,antCls:Ct,iconCls:kt,fontSizeIcon:Vt,padding:zt,paddingXS:bn,tableHeaderIconColor:vn,tableHeaderIconColorHover:yn,tableSelectionColumnWidth:Fn}=Re;return{[`${Ze}-wrapper`]:{[`${Ze}-selection-col`]:{width:Fn,[`&${Ze}-selection-col-with-dropdown`]:{width:Fn+Vt+zt/4}},[`${Ze}-bordered ${Ze}-selection-col`]:{width:Fn+bn*2,[`&${Ze}-selection-col-with-dropdown`]:{width:Fn+Vt+zt/4+bn*2}},[`
|
|
|
table tr th${Ze}-selection-column,
|
|
|
table tr td${Ze}-selection-column
|
|
|
`]:{paddingInlineEnd:Re.paddingXS,paddingInlineStart:Re.paddingXS,textAlign:"center",[`${Ct}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ze}-selection-column${Ze}-cell-fix-left`]:{zIndex:Re.zIndexTableFixed+1},[`table tr th${Ze}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ze}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ze}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Re.tablePaddingHorizontal/4}px`,[kt]:{color:vn,fontSize:Vt,verticalAlign:"baseline","&:hover":{color:yn}}}}}},Li=Re=>{const{componentCls:Ze}=Re,Ct=(kt,Vt,zt,bn)=>({[`${Ze}${Ze}-${kt}`]:{fontSize:bn,[`
|
|
|
${Ze}-title,
|
|
|
${Ze}-footer,
|
|
|
${Ze}-cell,
|
|
|
${Ze}-thead > tr > th,
|
|
|
${Ze}-tbody > tr > th,
|
|
|
${Ze}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Vt}px ${zt}px`},[`${Ze}-filter-trigger`]:{marginInlineEnd:`-${zt/2}px`},[`${Ze}-expanded-row-fixed`]:{margin:`-${Vt}px -${zt}px`},[`${Ze}-tbody`]:{[`${Ze}-wrapper:only-child ${Ze}`]:{marginBlock:`-${Vt}px`,marginInline:`${Re.tableExpandColumnWidth-zt}px -${zt}px`}},[`${Ze}-selection-column`]:{paddingInlineStart:`${zt/4}px`}}});return{[`${Ze}-wrapper`]:Object.assign(Object.assign({},Ct("middle",Re.tablePaddingVerticalMiddle,Re.tablePaddingHorizontalMiddle,Re.tableFontSizeMiddle)),Ct("small",Re.tablePaddingVerticalSmall,Re.tablePaddingHorizontalSmall,Re.tableFontSizeSmall))}},Ka=Re=>{const{componentCls:Ze,marginXXS:Ct,fontSizeIcon:kt,tableHeaderIconColor:Vt,tableHeaderIconColorHover:zt}=Re;return{[`${Ze}-wrapper`]:{[`${Ze}-thead th${Ze}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,"&:hover":{background:Re.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Re.colorPrimary},[`
|
|
|
&${Ze}-cell-fix-left:hover,
|
|
|
&${Ze}-cell-fix-right:hover
|
|
|
`]:{background:Re.tableFixedHeaderSortActiveBg}},[`${Ze}-thead th${Ze}-column-sort`]:{background:Re.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ze}-column-sort`]:{background:Re.tableBodySortBg},[`${Ze}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ze}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ze}-column-sorter`]:{marginInlineStart:Ct,color:Vt,fontSize:0,transition:`color ${Re.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:kt,"&.active":{color:Re.colorPrimary}},[`${Ze}-column-sorter-up + ${Ze}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ze}-column-sorters:hover ${Ze}-column-sorter`]:{color:zt}}}},_a=Re=>{const{componentCls:Ze,opacityLoading:Ct,tableScrollThumbBg:kt,tableScrollThumbBgHover:Vt,tableScrollThumbSize:zt,tableScrollBg:bn,zIndexTableSticky:vn,stickyScrollBarBorderRadius:yn}=Re,Fn=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`;return{[`${Ze}-wrapper`]:{[`${Ze}-sticky`]:{"&-holder":{position:"sticky",zIndex:vn,background:Re.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${zt}px !important`,zIndex:vn,display:"flex",alignItems:"center",background:bn,borderTop:Fn,opacity:Ct,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:zt,backgroundColor:kt,borderRadius:yn,transition:`all ${Re.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Vt}}}}}}},co=Re=>{const{componentCls:Ze,lineWidth:Ct,tableBorderColor:kt}=Re,Vt=`${Ct}px ${Re.lineType} ${kt}`;return{[`${Ze}-wrapper`]:{[`${Ze}-summary`]:{position:"relative",zIndex:Re.zIndexTableFixed,background:Re.tableBg,"> tr":{"> th, > td":{borderBottom:Vt}}},[`div${Ze}-summary`]:{boxShadow:`0 -${Ct}px 0 ${kt}`}}}},Oo=Re=>{const{componentCls:Ze}=Re,Ct=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`,kt=`${Ze}-expanded-row-cell`;return{[`${Ze}-wrapper`]:{[`${Ze}-tbody-virtual`]:{[`${Ze}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ze}-cell`]:{borderBottom:Ct},[`${Ze}-expanded-row`]:{[`${kt}${kt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Re.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ze}-bordered`]:{[`${Ze}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ct,position:"absolute"},[`${Ze}-cell`]:{borderInlineEnd:Ct,[`&${Ze}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Re.lineWidth,borderInlineStart:Ct}}}}}}};const Wa=Re=>{const{componentCls:Ze,fontWeightStrong:Ct,tablePaddingVertical:kt,tablePaddingHorizontal:Vt,lineWidth:zt,lineType:bn,tableBorderColor:vn,tableFontSize:yn,tableBg:Fn,tableRadius:Rn,tableHeaderTextColor:_n,motionDurationMid:sr,tableHeaderBg:lr,tableHeaderCellSplitColor:fr,tableRowHoverBg:Pr,tableSelectedRowBg:Sr,tableSelectedRowHoverBg:ei,tableFooterTextColor:Fr,tableFooterBg:si,paddingContentVerticalLG:Zi}=Re,Xi=`${zt}px ${bn} ${vn}`;return{[`${Ze}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,_s.dF)()),{[Ze]:Object.assign(Object.assign({},(0,_s.Wf)(Re)),{fontSize:yn,background:Fn,borderRadius:`${Rn}px ${Rn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Rn}px ${Rn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Ze}-cell,
|
|
|
${Ze}-thead > tr > th,
|
|
|
${Ze}-tbody > tr > th,
|
|
|
${Ze}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Zi}px ${Vt}px`,overflowWrap:"break-word"},[`${Ze}-title`]:{padding:`${kt}px ${Vt}px`},[`${Ze}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:_n,fontWeight:Ct,textAlign:"start",background:lr,borderBottom:Xi,transition:`background ${sr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ze}-selection-column):not(${Ze}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:fr,transform:"translateY(-50%)",transition:`background-color ${sr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ze}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${sr}, border-color ${sr}`,borderBottom:Xi,[`
|
|
|
> ${Ze}-wrapper:only-child,
|
|
|
> ${Ze}-expanded-row-fixed > ${Ze}-wrapper:only-child
|
|
|
`]:{[Ze]:{marginBlock:`-${kt}px`,marginInline:`${Re.tableExpandColumnWidth-Vt}px -${Vt}px`,[`${Ze}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:_n,fontWeight:Ct,textAlign:"start",background:lr,borderBottom:Xi,transition:`background ${sr} ease`},[`
|
|
|
&${Ze}-row:hover > th,
|
|
|
&${Ze}-row:hover > td,
|
|
|
> th${Ze}-cell-row-hover,
|
|
|
> td${Ze}-cell-row-hover
|
|
|
`]:{background:Pr},[`&${Ze}-row-selected`]:{"> th, > td":{background:Sr},"&:hover > th, &:hover > td":{background:ei}}}},[`${Ze}-footer`]:{padding:`${kt}px ${Vt}px`,color:Fr,background:si}})}};var ja=(0,Kl.Z)("Table",Re=>{const{colorTextHeading:Ze,colorSplit:Ct,colorIcon:kt,colorIconHover:Vt,opacityLoading:zt,colorBgContainer:bn,controlInteractiveSize:vn,headerBg:yn,headerColor:Fn,headerSortActiveBg:Rn,headerSortHoverBg:_n,bodySortBg:sr,rowHoverBg:lr,rowSelectedBg:fr,rowSelectedHoverBg:Pr,rowExpandedBg:Sr,cellPaddingBlock:ei,cellPaddingInline:Fr,cellPaddingBlockMD:si,cellPaddingInlineMD:Zi,cellPaddingBlockSM:Xi,cellPaddingInlineSM:Bi,borderColor:ji,footerBg:ma,footerColor:hi,headerBorderRadius:Fi,cellFontSize:xi,cellFontSizeMD:Br,cellFontSizeSM:ri,headerSplitColor:Vi,fixedHeaderSortActiveBg:Ea,headerFilterHoverBg:Gi,filterDropdownBg:Qr,expandIconBg:ia,selectionColumnWidth:va,stickyScrollBarBg:wa}=Re,Da=new Gs.C(kt),So=new Gs.C(Vt),Ia=2,aa=(0,Hl.TS)(Re,{tableFontSize:xi,tableBg:bn,tableRadius:Fi,tablePaddingVertical:ei,tablePaddingHorizontal:Fr,tablePaddingVerticalMiddle:si,tablePaddingHorizontalMiddle:Zi,tablePaddingVerticalSmall:Xi,tablePaddingHorizontalSmall:Bi,tableBorderColor:ji,tableHeaderTextColor:Fn,tableHeaderBg:yn,tableFooterTextColor:hi,tableFooterBg:ma,tableHeaderCellSplitColor:Vi,tableHeaderSortBg:Rn,tableHeaderSortHoverBg:_n,tableHeaderIconColor:Da.clone().setAlpha(Da.getAlpha()*zt).toRgbString(),tableHeaderIconColorHover:So.clone().setAlpha(So.getAlpha()*zt).toRgbString(),tableBodySortBg:sr,tableFixedHeaderSortActiveBg:Ea,tableHeaderFilterActiveBg:Gi,tableFilterDropdownBg:Qr,tableRowHoverBg:lr,tableSelectedRowBg:fr,tableSelectedRowHoverBg:Pr,zIndexTableFixed:Ia,zIndexTableSticky:Ia+1,tableFontSizeMiddle:Br,tableFontSizeSmall:ri,tableSelectionColumnWidth:va,tableExpandIconBg:ia,tableExpandColumnWidth:vn+2*Re.padding,tableExpandedRowBg:Sr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:wa,tableScrollThumbBgHover:Ze,tableScrollBg:Ct});return[Wa(aa),Lr(aa),co(aa),Ka(aa),qr(aa),Ie(aa),ir(aa),Gn(aa),co(aa),Dn(aa),Ni(aa),ur(aa),_a(aa),At(aa),Li(aa),Ri(aa),Oo(aa)]},Re=>{const{colorFillAlter:Ze,colorBgContainer:Ct,colorTextHeading:kt,colorFillSecondary:Vt,colorFillContent:zt,controlItemBgActive:bn,controlItemBgActiveHover:vn,padding:yn,paddingSM:Fn,paddingXS:Rn,colorBorderSecondary:_n,borderRadiusLG:sr,fontSize:lr,controlHeight:fr,colorTextPlaceholder:Pr}=Re,Sr=new Gs.C(Vt).onBackground(Ct).toHexShortString(),ei=new Gs.C(zt).onBackground(Ct).toHexShortString(),Fr=new Gs.C(Ze).onBackground(Ct).toHexShortString();return{headerBg:Fr,headerColor:kt,headerSortActiveBg:Sr,headerSortHoverBg:ei,bodySortBg:Fr,rowHoverBg:Fr,rowSelectedBg:bn,rowSelectedHoverBg:vn,rowExpandedBg:Ze,cellPaddingBlock:yn,cellPaddingInline:yn,cellPaddingBlockMD:Fn,cellPaddingInlineMD:Rn,cellPaddingBlockSM:Rn,cellPaddingInlineSM:Rn,borderColor:_n,headerBorderRadius:sr,footerBg:Fr,footerColor:kt,cellFontSize:lr,cellFontSizeMD:lr,cellFontSizeSM:lr,headerSplitColor:_n,fixedHeaderSortActiveBg:Sr,headerFilterHoverBg:zt,filterDropdownMenuBg:Ct,filterDropdownBg:Ct,expandIconBg:Ct,selectionColumnWidth:fr,stickyScrollBarBg:Pr,stickyScrollBarBorderRadius:100}});const no=[],Po=(Re,Ze)=>{const{prefixCls:Ct,className:kt,rootClassName:Vt,style:zt,size:bn,bordered:vn,dropdownPrefixCls:yn,dataSource:Fn,pagination:Rn,rowSelection:_n,rowKey:sr="key",rowClassName:lr,columns:fr,children:Pr,childrenColumnName:Sr,onChange:ei,getPopupContainer:Fr,loading:si,expandIcon:Zi,expandable:Xi,expandedRowRender:Bi,expandIconColumnIndex:ji,indentSize:ma,scroll:hi,sortDirections:Fi,locale:xi,showSorterTooltip:Br=!0,virtual:ri}=Re,Vi=pe.useMemo(()=>fr||He(Pr),[fr,Pr]),Ea=pe.useMemo(()=>Vi.some(ao=>ao.responsive),[Vi]),Gi=(0,Qa.Z)(Ea),Qr=pe.useMemo(()=>{const ao=new Set(Object.keys(Gi).filter(Eo=>Gi[Eo]));return Vi.filter(Eo=>!Eo.responsive||Eo.responsive.some(ks=>ao.has(ks)))},[Vi,Gi]),ia=(0,Hi.Z)(Re,["className","style","columns"]),{locale:va=Ja.Z,direction:wa,table:Da,renderEmpty:So,getPrefixCls:Ia,getPopupContainer:aa}=pe.useContext(Ra.E_),Lo=(0,ha.Z)(bn),Qi=Object.assign(Object.assign({},va.Table),xi),mo=Fn||no,io=Ia("table",Ct),No=Ia("dropdown",yn),ea=Object.assign({childrenColumnName:Sr,expandIconColumnIndex:ji},Xi),{childrenColumnName:Ui="children"}=ea,Ji=pe.useMemo(()=>mo.some(ao=>ao==null?void 0:ao[Ui])?"nest":Bi||Xi&&Xi.expandedRowRender?"row":null,[mo]),Ki={body:pe.useRef()},Di=pe.useMemo(()=>typeof sr=="function"?sr:ao=>ao==null?void 0:ao[sr],[sr]),[mr]=Nl(mo,Ui,Di),gi={},fa=function(ao,Eo){let ks=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Bo,Bs,Is;const Ys=Object.assign(Object.assign({},gi),ao);ks&&((Bo=gi.resetPagination)===null||Bo===void 0||Bo.call(gi),!((Bs=Ys.pagination)===null||Bs===void 0)&&Bs.current&&(Ys.pagination.current=1),Rn&&Rn.onChange&&Rn.onChange(1,(Is=Ys.pagination)===null||Is===void 0?void 0:Is.pageSize)),hi&&hi.scrollToFirstRowOnChange!==!1&&Ki.body.current&&(0,Na.Z)(0,{getContainer:()=>Ki.body.current}),ei==null||ei(Ys.pagination,Ys.filters,Ys.sorter,{currentDataSource:Ls(vo(mo,Ys.sorterStates,Ui),Ys.filterStates),action:Eo})},Aa=(ao,Eo)=>{fa({sorter:ao,sorterStates:Eo},"sort",!1)},[Ms,ls,fl,Yo]=Ao({prefixCls:io,mergedColumns:Qr,onSorterChange:Aa,sortDirections:Fi||["ascend","descend"],tableLocale:Qi,showSorterTooltip:Br}),Xo=pe.useMemo(()=>vo(mo,ls,Ui),[mo,ls]);gi.sorter=Yo(),gi.sorterStates=ls;const ta=(ao,Eo)=>{fa({filters:ao,filterStates:Eo},"filter",!0)},[vs,Fs,Xa]=Ol({prefixCls:io,locale:Qi,dropdownPrefixCls:No,mergedColumns:Qr,onFilterChange:ta,getPopupContainer:Fr||aa}),Vr=Ls(Xo,Fs);gi.filters=Xa,gi.filterStates=Fs;const fo=pe.useMemo(()=>{const ao={};return Object.keys(Xa).forEach(Eo=>{Xa[Eo]!==null&&(ao[Eo]=Xa[Eo])}),Object.assign(Object.assign({},fl),{filters:ao})},[fl,Xa]),[us]=dl(fo),cs=(ao,Eo)=>{fa({pagination:Object.assign(Object.assign({},gi.pagination),{current:ao,pageSize:Eo})},"paginate")},[ba,bo]=zl(Vr.length,cs,Rn);gi.pagination=Rn===!1?{}:gs(ba,Rn),gi.resetPagination=bo;const Ss=pe.useMemo(()=>{if(Rn===!1||!ba.pageSize)return Vr;const{current:ao=1,total:Eo,pageSize:ks=Os}=ba;return Vr.length<Eo?Vr.length>ks?Vr.slice((ao-1)*ks,ao*ks):Vr:Vr.slice((ao-1)*ks,ao*ks)},[!!Rn,Vr,ba&&ba.current,ba&&ba.pageSize,ba&&ba.total]),[xo,ca]=vl({prefixCls:io,data:Vr,pageData:Ss,getRowKey:Di,getRecordByKey:mr,expandType:Ji,childrenColumnName:Ui,locale:Qi,getPopupContainer:Fr||aa},_n),Ho=(ao,Eo,ks)=>{let Bo;return typeof lr=="function"?Bo=at()(lr(ao,Eo,ks)):Bo=at()(lr),at()({[`${io}-row-selected`]:ca.has(Di(ao,Eo))},Bo)};ea.__PARENT_RENDER_ICON__=ea.expandIcon,ea.expandIcon=ea.expandIcon||Zi||ga(Qi),Ji==="nest"&&ea.expandIconColumnIndex===void 0?ea.expandIconColumnIndex=_n?1:0:ea.expandIconColumnIndex>0&&_n&&(ea.expandIconColumnIndex-=1),typeof ea.indentSize!="number"&&(ea.indentSize=typeof ma=="number"?ma:15);const Ro=pe.useCallback(ao=>us(xo(vs(Ms(ao)))),[Ms,vs,xo]);let Zl,zs;if(Rn!==!1&&(ba!=null&&ba.total)){let ao;ba.size?ao=ba.size:ao=Lo==="small"||Lo==="middle"?"small":void 0;const Eo=Bs=>pe.createElement(Gr.Z,Object.assign({},ba,{className:at()(`${io}-pagination ${io}-pagination-${Bs}`,ba.className),size:ao})),ks=wa==="rtl"?"left":"right",{position:Bo}=ba;if(Bo!==null&&Array.isArray(Bo)){const Bs=Bo.find(Xl=>Xl.includes("top")),Is=Bo.find(Xl=>Xl.includes("bottom")),Ys=Bo.every(Xl=>`${Xl}`=="none");!Bs&&!Is&&!Ys&&(zs=Eo(ks)),Bs&&(Zl=Eo(Bs.toLowerCase().replace("top",""))),Is&&(zs=Eo(Is.toLowerCase().replace("bottom","")))}else zs=Eo(ks)}let hl;typeof si=="boolean"?hl={spinning:si}:typeof si=="object"&&(hl=Object.assign({spinning:!0},si));const[Ws,Zo]=ja(io),[,os]=(0,Kr.Z)(),il=at()(`${io}-wrapper`,Da==null?void 0:Da.className,{[`${io}-wrapper-rtl`]:wa==="rtl"},kt,Vt,Zo),Gl=Object.assign(Object.assign({},Da==null?void 0:Da.style),zt),pl=xi&&xi.emptyText||(So==null?void 0:So("Table"))||pe.createElement(ka.Z,{componentName:"Table"}),Yl=ri?rl:Rs,cu={},uc=pe.useMemo(()=>{const{fontSize:ao,lineHeight:Eo,padding:ks,paddingXS:Bo,paddingSM:Bs}=os,Is=Math.floor(ao*Eo);switch(Lo){case"large":return ks*2+Is;case"small":return Bo*2+Is;default:return Bs*2+Is}},[os,Lo]);return ri&&(cu.listItemHeight=uc),Ws(pe.createElement("div",{ref:Ze,className:il,style:Gl},pe.createElement(Zr.Z,Object.assign({spinning:!1},hl),Zl,pe.createElement(Yl,Object.assign({},cu,ia,{columns:Qr,direction:wa,expandable:ea,prefixCls:io,className:at()({[`${io}-middle`]:Lo==="middle",[`${io}-small`]:Lo==="small",[`${io}-bordered`]:vn,[`${io}-empty`]:mo.length===0}),data:Ss,rowKey:Di,rowClassName:Ho,emptyText:pl,internalHooks:De,internalRefs:Ki,transformColumns:Ro})),zs)))};var Fo=pe.forwardRef(Po);const yo=(Re,Ze)=>{const Ct=pe.useRef(0);return Ct.current+=1,pe.createElement(Fo,Object.assign({},Re,{ref:Ze,_renderTimes:Ct.current}))},ro=pe.forwardRef(yo);ro.SELECTION_COLUMN=is,ro.EXPAND_COLUMN=ce,ro.SELECTION_ALL=Uo,ro.SELECTION_INVERT=Ns,ro.SELECTION_NONE=Ks,ro.Column=_r,ro.ColumnGroup=Pi,ro.Summary=Ge;var as=ro,Cs=as},99313:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return _t}});var ce=ae(99267),De=ae(18785),Te=ae(62772),dt=ae(92310),be=ae.n(dt),ke=ae(60499),pe=ae(18642),xe=ae(85899),Me=ae(72190),Ke=ae(43749),vt=ae(42244),Pe=ae(59301),Be=ae(49658),et=ae(18929),Je=ae(77900),tt=(0,Pe.createContext)(null),yt=Pe.forwardRef(function(He,nt){var Ye=He.prefixCls,qe=He.className,Mt=He.style,Ut=He.id,An=He.active,mn=He.tabKey,ln=He.children;return Pe.createElement("div",{id:Ut&&"".concat(Ut,"-panel-").concat(mn),role:"tabpanel",tabIndex:An?0:-1,"aria-labelledby":Ut&&"".concat(Ut,"-tab-").concat(mn),"aria-hidden":!An,style:Mt,className:be()(Ye,An&&"".concat(Ye,"-active"),qe),ref:nt},ln)}),wt=yt,It=["key","forceRender","style","className"];function gt(He){var nt=He.id,Ye=He.activeKey,qe=He.animated,Mt=He.tabPosition,Ut=He.destroyInactiveTabPane,An=Pe.useContext(tt),mn=An.prefixCls,ln=An.tabs,Nn=qe.tabPane,Wn="".concat(mn,"-tabpane");return Pe.createElement("div",{className:be()("".concat(mn,"-content-holder"))},Pe.createElement("div",{className:be()("".concat(mn,"-content"),"".concat(mn,"-content-").concat(Mt),(0,pe.Z)({},"".concat(mn,"-content-animated"),Nn))},ln.map(function(Xn){var rn=Xn.key,Tn=Xn.forceRender,Nt=Xn.style,Jt=Xn.className,sn=(0,vt.Z)(Xn,It),fn=rn===Ye;return Pe.createElement(Je.default,(0,ke.Z)({key:rn,visible:fn,forceRender:Tn,removeOnLeave:!!Ut,leavedClassName:"".concat(Wn,"-hidden")},qe.tabPaneMotion),function(In,un){var Bn=In.style,ot=In.className;return Pe.createElement(wt,(0,ke.Z)({},sn,{prefixCls:Wn,id:nt,tabKey:rn,animated:Nn,active:fn,style:(0,xe.Z)((0,xe.Z)({},Nt),Bn),className:be()(Jt,ot),ref:un}))})})))}var st=ae(77654),ze=ae(29301),he=ae(6089),je=ae(8654),Xe={width:0,height:0,left:0,top:0};function Qe(He,nt,Ye){return(0,Pe.useMemo)(function(){for(var qe,Mt=new Map,Ut=nt.get((qe=He[0])===null||qe===void 0?void 0:qe.key)||Xe,An=Ut.left+Ut.width,mn=0;mn<He.length;mn+=1){var ln=He[mn].key,Nn=nt.get(ln);if(!Nn){var Wn;Nn=nt.get((Wn=He[mn-1])===null||Wn===void 0?void 0:Wn.key)||Xe}var Xn=Mt.get(ln)||(0,xe.Z)({},Nn);Xn.right=An-Xn.left-Xn.width,Mt.set(ln,Xn)}return Mt},[He.map(function(qe){return qe.key}).join("_"),nt,Ye])}function Ue(He,nt){var Ye=Pe.useRef(He),qe=Pe.useState({}),Mt=(0,Me.Z)(qe,2),Ut=Mt[1];function An(mn){var ln=typeof mn=="function"?mn(Ye.current):mn;ln!==Ye.current&&nt(ln,Ye.current),Ye.current=ln,Ut({})}return[Ye.current,An]}var mt=.1,Le=.01,Bt=20,at=Math.pow(.995,Bt);function Wt(He,nt){var Ye=(0,Pe.useState)(),qe=(0,Me.Z)(Ye,2),Mt=qe[0],Ut=qe[1],An=(0,Pe.useState)(0),mn=(0,Me.Z)(An,2),ln=mn[0],Nn=mn[1],Wn=(0,Pe.useState)(0),Xn=(0,Me.Z)(Wn,2),rn=Xn[0],Tn=Xn[1],Nt=(0,Pe.useState)(),Jt=(0,Me.Z)(Nt,2),sn=Jt[0],fn=Jt[1],In=(0,Pe.useRef)();function un(gn){var Mn=gn.touches[0],kn=Mn.screenX,Vn=Mn.screenY;Ut({x:kn,y:Vn}),window.clearInterval(In.current)}function Bn(gn){if(Mt){gn.preventDefault();var Mn=gn.touches[0],kn=Mn.screenX,Vn=Mn.screenY;Ut({x:kn,y:Vn});var qn=kn-Mt.x,pr=Vn-Mt.y;nt(qn,pr);var Tr=Date.now();Nn(Tr),Tn(Tr-ln),fn({x:qn,y:pr})}}function ot(){if(Mt&&(Ut(null),fn(null),sn)){var gn=sn.x/rn,Mn=sn.y/rn,kn=Math.abs(gn),Vn=Math.abs(Mn);if(Math.max(kn,Vn)<mt)return;var qn=gn,pr=Mn;In.current=window.setInterval(function(){if(Math.abs(qn)<Le&&Math.abs(pr)<Le){window.clearInterval(In.current);return}qn*=at,pr*=at,nt(qn*Bt,pr*Bt)},Bt)}}var tn=(0,Pe.useRef)();function nn(gn){var Mn=gn.deltaX,kn=gn.deltaY,Vn=0,qn=Math.abs(Mn),pr=Math.abs(kn);qn===pr?Vn=tn.current==="x"?Mn:kn:qn>pr?(Vn=Mn,tn.current="x"):(Vn=kn,tn.current="y"),nt(-Vn,-Vn)&&gn.preventDefault()}var En=(0,Pe.useRef)(null);En.current={onTouchStart:un,onTouchMove:Bn,onTouchEnd:ot,onWheel:nn},Pe.useEffect(function(){function gn(qn){En.current.onTouchStart(qn)}function Mn(qn){En.current.onTouchMove(qn)}function kn(qn){En.current.onTouchEnd(qn)}function Vn(qn){En.current.onWheel(qn)}return document.addEventListener("touchmove",Mn,{passive:!1}),document.addEventListener("touchend",kn,{passive:!1}),He.current.addEventListener("touchstart",gn,{passive:!1}),He.current.addEventListener("wheel",Vn),function(){document.removeEventListener("touchmove",Mn),document.removeEventListener("touchend",kn)}},[])}var Lt=ae(34280);function Tt(He){var nt=(0,Pe.useState)(0),Ye=(0,Me.Z)(nt,2),qe=Ye[0],Mt=Ye[1],Ut=(0,Pe.useRef)(0),An=(0,Pe.useRef)();return An.current=He,(0,Lt.o)(function(){var mn;(mn=An.current)===null||mn===void 0||mn.call(An)},[qe]),function(){Ut.current===qe&&(Ut.current+=1,Mt(Ut.current))}}function Xt(He){var nt=(0,Pe.useRef)([]),Ye=(0,Pe.useState)({}),qe=(0,Me.Z)(Ye,2),Mt=qe[1],Ut=(0,Pe.useRef)(typeof He=="function"?He():He),An=Tt(function(){var ln=Ut.current;nt.current.forEach(function(Nn){ln=Nn(ln)}),nt.current=[],Ut.current=ln,Mt({})});function mn(ln){nt.current.push(ln),An()}return[Ut.current,mn]}var jt={width:0,height:0,left:0,top:0,right:0};function it(He,nt,Ye,qe,Mt,Ut,An){var mn=An.tabs,ln=An.tabPosition,Nn=An.rtl,Wn,Xn,rn;return["top","bottom"].includes(ln)?(Wn="width",Xn=Nn?"right":"left",rn=Math.abs(Ye)):(Wn="height",Xn="top",rn=-Ye),(0,Pe.useMemo)(function(){if(!mn.length)return[0,0];for(var Tn=mn.length,Nt=Tn,Jt=0;Jt<Tn;Jt+=1){var sn=He.get(mn[Jt].key)||jt;if(sn[Xn]+sn[Wn]>rn+nt){Nt=Jt-1;break}}for(var fn=0,In=Tn-1;In>=0;In-=1){var un=He.get(mn[In].key)||jt;if(un[Xn]<rn){fn=In+1;break}}return fn>=Nt?[0,0]:[fn,Nt]},[He,nt,qe,Mt,Ut,rn,ln,mn.map(function(Tn){return Tn.key}).join("_"),Nn])}function Ce(He){var nt;return He instanceof Map?(nt={},He.forEach(function(Ye,qe){nt[qe]=Ye})):nt=He,JSON.stringify(nt)}var Et="TABS_DQ";function on(He){return String(He).replace(/"/g,Et)}function Yt(He,nt,Ye,qe){return!(!Ye||qe||He===!1||He===void 0&&(nt===!1||nt===null))}function lt(He,nt){var Ye=He.prefixCls,qe=He.editable,Mt=He.locale,Ut=He.style;return!qe||qe.showAdd===!1?null:Pe.createElement("button",{ref:nt,type:"button",className:"".concat(Ye,"-nav-add"),style:Ut,"aria-label":(Mt==null?void 0:Mt.addAriaLabel)||"Add tab",onClick:function(mn){qe.onEdit("add",{event:mn})}},qe.addIcon||"+")}var pt=Pe.forwardRef(lt),Ft=Pe.forwardRef(function(He,nt){var Ye=He.position,qe=He.prefixCls,Mt=He.extra;if(!Mt)return null;var Ut,An={};return(0,Ke.Z)(Mt)==="object"&&!Pe.isValidElement(Mt)?An=Mt:An.right=Mt,Ye==="right"&&(Ut=An.right),Ye==="left"&&(Ut=An.left),Ut?Pe.createElement("div",{className:"".concat(qe,"-extra-content"),ref:nt},Ut):null}),Sn=Ft,$t=ae(31561),Pn=ae(15285),Zt=ae(10228);function an(He,nt){var Ye=He.prefixCls,qe=He.id,Mt=He.tabs,Ut=He.locale,An=He.mobile,mn=He.moreIcon,ln=mn===void 0?"More":mn,Nn=He.moreTransitionName,Wn=He.style,Xn=He.className,rn=He.editable,Tn=He.tabBarGutter,Nt=He.rtl,Jt=He.removeAriaLabel,sn=He.onTabClick,fn=He.getPopupContainer,In=He.popupClassName,un=(0,Pe.useState)(!1),Bn=(0,Me.Z)(un,2),ot=Bn[0],tn=Bn[1],nn=(0,Pe.useState)(null),En=(0,Me.Z)(nn,2),gn=En[0],Mn=En[1],kn="".concat(qe,"-more-popup"),Vn="".concat(Ye,"-dropdown"),qn=gn!==null?"".concat(kn,"-").concat(gn):null,pr=Ut==null?void 0:Ut.dropdownAriaLabel;function Tr(vi,Wr){vi.preventDefault(),vi.stopPropagation(),rn.onEdit("remove",{key:Wr,event:vi})}var Jr=Pe.createElement(Pn.ZP,{onClick:function(Wr){var jr=Wr.key,yi=Wr.domEvent;sn(jr,yi),tn(!1)},prefixCls:"".concat(Vn,"-menu"),id:kn,tabIndex:-1,role:"listbox","aria-activedescendant":qn,selectedKeys:[gn],"aria-label":pr!==void 0?pr:"expanded dropdown"},Mt.map(function(vi){var Wr=vi.closable,jr=vi.disabled,yi=vi.closeIcon,ui=vi.key,$i=vi.label,sa=Yt(Wr,yi,rn,jr);return Pe.createElement(Pn.sN,{key:ui,id:"".concat(kn,"-").concat(ui),role:"option","aria-controls":qe&&"".concat(qe,"-panel-").concat(ui),disabled:jr},Pe.createElement("span",null,$i),sa&&Pe.createElement("button",{type:"button","aria-label":Jt||"remove",tabIndex:0,className:"".concat(Vn,"-menu-item-remove"),onClick:function(ar){ar.stopPropagation(),Tr(ar,ui)}},yi||rn.removeIcon||"\xD7"))}));function ai(vi){for(var Wr=Mt.filter(function(sa){return!sa.disabled}),jr=Wr.findIndex(function(sa){return sa.key===gn})||0,yi=Wr.length,ui=0;ui<yi;ui+=1){jr=(jr+vi+yi)%yi;var $i=Wr[jr];if(!$i.disabled){Mn($i.key);return}}}function Nr(vi){var Wr=vi.which;if(!ot){[Zt.Z.DOWN,Zt.Z.SPACE,Zt.Z.ENTER].includes(Wr)&&(tn(!0),vi.preventDefault());return}switch(Wr){case Zt.Z.UP:ai(-1),vi.preventDefault();break;case Zt.Z.DOWN:ai(1),vi.preventDefault();break;case Zt.Z.ESC:tn(!1);break;case Zt.Z.SPACE:case Zt.Z.ENTER:gn!==null&&sn(gn,vi);break}}(0,Pe.useEffect)(function(){var vi=document.getElementById(qn);vi&&vi.scrollIntoView&&vi.scrollIntoView(!1)},[gn]),(0,Pe.useEffect)(function(){ot||Mn(null)},[ot]);var yr=(0,pe.Z)({},Nt?"marginRight":"marginLeft",Tn);Mt.length||(yr.visibility="hidden",yr.order=1);var di=be()((0,pe.Z)({},"".concat(Vn,"-rtl"),Nt)),ti=An?null:Pe.createElement($t.Z,{prefixCls:Vn,overlay:Jr,trigger:["hover"],visible:Mt.length?ot:!1,transitionName:Nn,onVisibleChange:tn,overlayClassName:be()(di,In),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:fn},Pe.createElement("button",{type:"button",className:"".concat(Ye,"-nav-more"),style:yr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":kn,id:"".concat(qe,"-more"),"aria-expanded":ot,onKeyDown:Nr},ln));return Pe.createElement("div",{className:be()("".concat(Ye,"-nav-operations"),Xn),style:Wn,ref:nt},ti,Pe.createElement(pt,{prefixCls:Ye,locale:Ut,editable:rn}))}var Ht=Pe.memo(Pe.forwardRef(an),function(He,nt){return nt.tabMoving});function ye(He){var nt,Ye=He.prefixCls,qe=He.id,Mt=He.active,Ut=He.tab,An=Ut.key,mn=Ut.label,ln=Ut.disabled,Nn=Ut.closeIcon,Wn=He.closable,Xn=He.renderWrapper,rn=He.removeAriaLabel,Tn=He.editable,Nt=He.onClick,Jt=He.onFocus,sn=He.style,fn="".concat(Ye,"-tab"),In=Yt(Wn,Nn,Tn,ln);function un(tn){ln||Nt(tn)}function Bn(tn){tn.preventDefault(),tn.stopPropagation(),Tn.onEdit("remove",{key:An,event:tn})}var ot=Pe.createElement("div",{key:An,"data-node-key":on(An),className:be()(fn,(nt={},(0,pe.Z)(nt,"".concat(fn,"-with-remove"),In),(0,pe.Z)(nt,"".concat(fn,"-active"),Mt),(0,pe.Z)(nt,"".concat(fn,"-disabled"),ln),nt)),style:sn,onClick:un},Pe.createElement("div",{role:"tab","aria-selected":Mt,id:qe&&"".concat(qe,"-tab-").concat(An),className:"".concat(fn,"-btn"),"aria-controls":qe&&"".concat(qe,"-panel-").concat(An),"aria-disabled":ln,tabIndex:ln?null:0,onClick:function(nn){nn.stopPropagation(),un(nn)},onKeyDown:function(nn){[Zt.Z.SPACE,Zt.Z.ENTER].includes(nn.which)&&(nn.preventDefault(),un(nn))},onFocus:Jt},mn),In&&Pe.createElement("button",{type:"button","aria-label":rn||"remove",tabIndex:0,className:"".concat(fn,"-remove"),onClick:function(nn){nn.stopPropagation(),Bn(nn)}},Nn||Tn.removeIcon||"\xD7"));return Xn?Xn(ot):ot}var ue=ye,le=ae(16089),de=function(nt){var Ye=nt.activeTabOffset,qe=nt.horizontal,Mt=nt.rtl,Ut=nt.indicatorSize,An=(0,Pe.useState)(),mn=(0,Me.Z)(An,2),ln=mn[0],Nn=mn[1],Wn=(0,Pe.useRef)(),Xn=function(Nt){return typeof Ut=="function"?Ut(Nt):typeof Ut=="number"?Ut:Nt};function rn(){le.Z.cancel(Wn.current)}return(0,Pe.useEffect)(function(){var Tn={};return Ye&&(qe?(Mt?(Tn.right=Ye.right+Ye.width/2,Tn.transform="translateX(50%)"):(Tn.left=Ye.left+Ye.width/2,Tn.transform="translateX(-50%)"),Tn.width=Xn(Ye.width)):(Tn.top=Ye.top+Ye.height/2,Tn.transform="translateY(-50%)",Tn.height=Xn(Ye.height))),rn(),Wn.current=(0,le.Z)(function(){Nn(Tn)}),rn},[Ye,qe,Mt,Ut]),{style:ln}},ge=de,se=function(nt){var Ye=nt.current||{},qe=Ye.offsetWidth,Mt=qe===void 0?0:qe,Ut=Ye.offsetHeight,An=Ut===void 0?0:Ut;return[Mt,An]},Oe=function(nt,Ye){return nt[Ye?0:1]};function ut(He,nt){var Ye,qe=Pe.useContext(tt),Mt=qe.prefixCls,Ut=qe.tabs,An=He.className,mn=He.style,ln=He.id,Nn=He.animated,Wn=He.activeKey,Xn=He.rtl,rn=He.extra,Tn=He.editable,Nt=He.locale,Jt=He.tabPosition,sn=He.tabBarGutter,fn=He.children,In=He.onTabClick,un=He.onTabScroll,Bn=He.indicatorSize,ot=(0,Pe.useRef)(),tn=(0,Pe.useRef)(),nn=(0,Pe.useRef)(),En=(0,Pe.useRef)(),gn=(0,Pe.useRef)(),Mn=(0,Pe.useRef)(),kn=(0,Pe.useRef)(),Vn=Jt==="top"||Jt==="bottom",qn=Ue(0,function(qa,eo){Vn&&un&&un({direction:qa>eo?"left":"right"})}),pr=(0,Me.Z)(qn,2),Tr=pr[0],Jr=pr[1],ai=Ue(0,function(qa,eo){!Vn&&un&&un({direction:qa>eo?"top":"bottom"})}),Nr=(0,Me.Z)(ai,2),yr=Nr[0],di=Nr[1],ti=(0,Pe.useState)([0,0]),vi=(0,Me.Z)(ti,2),Wr=vi[0],jr=vi[1],yi=(0,Pe.useState)([0,0]),ui=(0,Me.Z)(yi,2),$i=ui[0],sa=ui[1],oi=(0,Pe.useState)([0,0]),ar=(0,Me.Z)(oi,2),rr=ar[0],pi=ar[1],ni=(0,Pe.useState)([0,0]),ki=(0,Me.Z)(ni,2),Ai=ki[0],Ti=ki[1],mi=Xt(new Map),Ci=(0,Me.Z)(mi,2),Pa=Ci[0],_r=Ci[1],Xr=Qe(Ut,Pa,$i[0]),Pi=Oe(Wr,Vn),Hi=Oe($i,Vn),Na=Oe(rr,Vn),Ra=Oe(Ai,Vn),ka=Pi<Hi+Na,ha=ka?Pi-Ra:Pi-Na,Qa="".concat(Mt,"-nav-operations-hidden"),Ja=0,Gr=0;Vn&&Xn?(Ja=0,Gr=Math.max(0,Hi-ha)):(Ja=Math.min(0,ha-Hi),Gr=0);function Zr(qa){return qa<Ja?Ja:qa>Gr?Gr:qa}var Kr=(0,Pe.useRef)(),fi=(0,Pe.useState)(),ga=(0,Me.Z)(fi,2),Fa=ga[0],Ua=ga[1];function za(){Ua(Date.now())}function Ta(){window.clearTimeout(Kr.current)}Wt(En,function(qa,eo){function ns(rs,ps){rs(function(Jo){var Vl=Zr(Jo+ps);return Vl})}return ka?(Vn?ns(Jr,qa):ns(di,eo),Ta(),za(),!0):!1}),(0,Pe.useEffect)(function(){return Ta(),Fa&&(Kr.current=window.setTimeout(function(){Ua(0)},100)),Ta},[Fa]);var lo=it(Xr,ha,Vn?Tr:yr,Hi,Na,Ra,(0,xe.Z)((0,xe.Z)({},He),{},{tabs:Ut})),jo=(0,Me.Z)(lo,2),_o=jo[0],hs=jo[1],la=(0,he.Z)(function(){var qa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wn,eo=Xr.get(qa)||{width:0,height:0,left:0,right:0,top:0};if(Vn){var ns=Tr;Xn?eo.right<Tr?ns=eo.right:eo.right+eo.width>Tr+ha&&(ns=eo.right+eo.width-ha):eo.left<-Tr?ns=-eo.left:eo.left+eo.width>-Tr+ha&&(ns=-(eo.left+eo.width-ha)),di(0),Jr(Zr(ns))}else{var rs=yr;eo.top<-yr?rs=-eo.top:eo.top+eo.height>-yr+ha&&(rs=-(eo.top+eo.height-ha)),Jr(0),di(Zr(rs))}}),ya={};Jt==="top"||Jt==="bottom"?ya[Xn?"marginRight":"marginLeft"]=sn:ya.marginTop=sn;var po=Ut.map(function(qa,eo){var ns=qa.key;return Pe.createElement(ue,{id:ln,prefixCls:Mt,key:ns,tab:qa,style:eo===0?void 0:ya,closable:qa.closable,editable:Tn,active:ns===Wn,renderWrapper:fn,removeAriaLabel:Nt==null?void 0:Nt.removeAriaLabel,onClick:function(ps){In(ns,ps)},onFocus:function(){la(ns),za(),En.current&&(Xn||(En.current.scrollLeft=0),En.current.scrollTop=0)}})}),La=function(){return _r(function(){var eo=new Map;return Ut.forEach(function(ns){var rs,ps=ns.key,Jo=(rs=gn.current)===null||rs===void 0?void 0:rs.querySelector('[data-node-key="'.concat(on(ps),'"]'));Jo&&eo.set(ps,{width:Jo.offsetWidth,height:Jo.offsetHeight,left:Jo.offsetLeft,top:Jo.offsetTop})}),eo})};(0,Pe.useEffect)(function(){La()},[Ut.map(function(qa){return qa.key}).join("_")]);var $a=Tt(function(){var qa=se(ot),eo=se(tn),ns=se(nn);jr([qa[0]-eo[0]-ns[0],qa[1]-eo[1]-ns[1]]);var rs=se(kn);pi(rs);var ps=se(Mn);Ti(ps);var Jo=se(gn);sa([Jo[0]-rs[0],Jo[1]-rs[1]]),La()}),Ya=Ut.slice(0,_o),Za=Ut.slice(hs+1),Oi=[].concat((0,st.Z)(Ya),(0,st.Z)(Za)),ua=Xr.get(Wn),ra=ge({activeTabOffset:ua,horizontal:Vn,rtl:Xn,indicatorSize:Bn}),Wi=ra.style;(0,Pe.useEffect)(function(){la()},[Wn,Ja,Gr,Ce(ua),Ce(Xr),Vn]),(0,Pe.useEffect)(function(){$a()},[Xn]);var Oa=!!Oi.length,Ba="".concat(Mt,"-nav-wrap"),zo,Vo,$o,Qo;return Vn?Xn?(Vo=Tr>0,zo=Tr!==Gr):(zo=Tr<0,Vo=Tr!==Ja):($o=yr<0,Qo=yr!==Ja),Pe.createElement(ze.Z,{onResize:$a},Pe.createElement("div",{ref:(0,je.x1)(nt,ot),role:"tablist",className:be()("".concat(Mt,"-nav"),An),style:mn,onKeyDown:function(){za()}},Pe.createElement(Sn,{ref:tn,position:"left",extra:rn,prefixCls:Mt}),Pe.createElement(ze.Z,{onResize:$a},Pe.createElement("div",{className:be()(Ba,(Ye={},(0,pe.Z)(Ye,"".concat(Ba,"-ping-left"),zo),(0,pe.Z)(Ye,"".concat(Ba,"-ping-right"),Vo),(0,pe.Z)(Ye,"".concat(Ba,"-ping-top"),$o),(0,pe.Z)(Ye,"".concat(Ba,"-ping-bottom"),Qo),Ye)),ref:En},Pe.createElement(ze.Z,{onResize:$a},Pe.createElement("div",{ref:gn,className:"".concat(Mt,"-nav-list"),style:{transform:"translate(".concat(Tr,"px, ").concat(yr,"px)"),transition:Fa?"none":void 0}},po,Pe.createElement(pt,{ref:kn,prefixCls:Mt,locale:Nt,editable:Tn,style:(0,xe.Z)((0,xe.Z)({},po.length===0?void 0:ya),{},{visibility:Oa?"hidden":null})}),Pe.createElement("div",{className:be()("".concat(Mt,"-ink-bar"),(0,pe.Z)({},"".concat(Mt,"-ink-bar-animated"),Nn.inkBar)),style:Wi}))))),Pe.createElement(Ht,(0,ke.Z)({},He,{removeAriaLabel:Nt==null?void 0:Nt.removeAriaLabel,ref:Mn,prefixCls:Mt,tabs:Oi,className:!Oa&&Qa,tabMoving:!!Fa})),Pe.createElement(Sn,{ref:nn,position:"right",extra:rn,prefixCls:Mt})))}var Ge=Pe.forwardRef(ut),_e=["renderTabBar"],St=["label","key"];function bt(He){var nt=He.renderTabBar,Ye=(0,vt.Z)(He,_e),qe=Pe.useContext(tt),Mt=qe.tabs;if(nt){var Ut=(0,xe.Z)((0,xe.Z)({},Ye),{},{panes:Mt.map(function(An){var mn=An.label,ln=An.key,Nn=(0,vt.Z)(An,St);return Pe.createElement(wt,(0,ke.Z)({tab:mn,key:ln,tabKey:ln},Nn))})});return nt(Ut,Ge)}return Pe.createElement(Ge,Ye)}var rt=ae(48736);function Dt(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},nt;return He===!1?nt={inkBar:!1,tabPane:!1}:He===!0?nt={inkBar:!0,tabPane:!1}:nt=(0,xe.Z)({inkBar:!0},(0,Ke.Z)(He)==="object"?He:{}),nt.tabPaneMotion&&nt.tabPane===void 0&&(nt.tabPane=!0),!nt.tabPaneMotion&&nt.tabPane&&(nt.tabPane=!1),nt}var xn=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],xt=0;function Rt(He,nt){var Ye,qe=He.id,Mt=He.prefixCls,Ut=Mt===void 0?"rc-tabs":Mt,An=He.className,mn=He.items,ln=He.direction,Nn=He.activeKey,Wn=He.defaultActiveKey,Xn=He.editable,rn=He.animated,Tn=He.tabPosition,Nt=Tn===void 0?"top":Tn,Jt=He.tabBarGutter,sn=He.tabBarStyle,fn=He.tabBarExtraContent,In=He.locale,un=He.moreIcon,Bn=He.moreTransitionName,ot=He.destroyInactiveTabPane,tn=He.renderTabBar,nn=He.onChange,En=He.onTabClick,gn=He.onTabScroll,Mn=He.getPopupContainer,kn=He.popupClassName,Vn=He.indicatorSize,qn=(0,vt.Z)(He,xn),pr=Pe.useMemo(function(){return(mn||[]).filter(function(Ti){return Ti&&(0,Ke.Z)(Ti)==="object"&&"key"in Ti})},[mn]),Tr=ln==="rtl",Jr=Dt(rn),ai=(0,Pe.useState)(!1),Nr=(0,Me.Z)(ai,2),yr=Nr[0],di=Nr[1];(0,Pe.useEffect)(function(){di((0,Be.Z)())},[]);var ti=(0,et.Z)(function(){var Ti;return(Ti=pr[0])===null||Ti===void 0?void 0:Ti.key},{value:Nn,defaultValue:Wn}),vi=(0,Me.Z)(ti,2),Wr=vi[0],jr=vi[1],yi=(0,Pe.useState)(function(){return pr.findIndex(function(Ti){return Ti.key===Wr})}),ui=(0,Me.Z)(yi,2),$i=ui[0],sa=ui[1];(0,Pe.useEffect)(function(){var Ti=pr.findIndex(function(Ci){return Ci.key===Wr});if(Ti===-1){var mi;Ti=Math.max(0,Math.min($i,pr.length-1)),jr((mi=pr[Ti])===null||mi===void 0?void 0:mi.key)}sa(Ti)},[pr.map(function(Ti){return Ti.key}).join("_"),Wr,$i]);var oi=(0,et.Z)(null,{value:qe}),ar=(0,Me.Z)(oi,2),rr=ar[0],pi=ar[1];(0,Pe.useEffect)(function(){qe||(pi("rc-tabs-".concat(xt)),xt+=1)},[]);function ni(Ti,mi){En==null||En(Ti,mi);var Ci=Ti!==Wr;jr(Ti),Ci&&(nn==null||nn(Ti))}var ki={id:rr,activeKey:Wr,animated:Jr,tabPosition:Nt,rtl:Tr,mobile:yr},Ai=(0,xe.Z)((0,xe.Z)({},ki),{},{editable:Xn,locale:In,moreIcon:un,moreTransitionName:Bn,tabBarGutter:Jt,onTabClick:ni,onTabScroll:gn,extra:fn,style:sn,panes:null,getPopupContainer:Mn,popupClassName:kn,indicatorSize:Vn});return Pe.createElement(tt.Provider,{value:{tabs:pr,prefixCls:Ut}},Pe.createElement("div",(0,ke.Z)({ref:nt,id:qe,className:be()(Ut,"".concat(Ut,"-").concat(Nt),(Ye={},(0,pe.Z)(Ye,"".concat(Ut,"-mobile"),yr),(0,pe.Z)(Ye,"".concat(Ut,"-editable"),Xn),(0,pe.Z)(Ye,"".concat(Ut,"-rtl"),Tr),Ye),An)},qn),Pe.createElement(bt,(0,ke.Z)({},Ai,{renderTabBar:tn})),Pe.createElement(gt,(0,ke.Z)({destroyInactiveTabPane:ot},ki,{animated:Jr}))))}var cn=Pe.forwardRef(Rt),ct=cn,Ae=ct,Ve=ae(36355),Kt=ae(19716),hn=()=>null,On=ae(62892);const Ln={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Kn(He){let nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ye;return nt===!1?Ye={inkBar:!1,tabPane:!1}:nt===!0?Ye={inkBar:!0,tabPane:!0}:Ye=Object.assign({inkBar:!0},typeof nt=="object"?nt:{}),Ye.tabPane&&(Ye.tabPaneMotion=Object.assign(Object.assign({},Ln),{motionName:(0,On.m)(He,"switch")})),Ye}var tr=ae(11592),gr=function(He,nt){var Ye={};for(var qe in He)Object.prototype.hasOwnProperty.call(He,qe)&&nt.indexOf(qe)<0&&(Ye[qe]=He[qe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,qe=Object.getOwnPropertySymbols(He);Mt<qe.length;Mt++)nt.indexOf(qe[Mt])<0&&Object.prototype.propertyIsEnumerable.call(He,qe[Mt])&&(Ye[qe[Mt]]=He[qe[Mt]]);return Ye};function Un(He){return He.filter(nt=>nt)}function Cr(He,nt){if(He)return He;const Ye=(0,tr.Z)(nt).map(qe=>{if(Pe.isValidElement(qe)){const{key:Mt,props:Ut}=qe,An=Ut||{},{tab:mn}=An,ln=gr(An,["tab"]);return Object.assign(Object.assign({key:String(Mt)},ln),{label:mn})}return null});return Un(Ye)}var Rr=ae(17313),$r=ae(83116),vr=ae(37613),Er=ae(13826),wn=He=>{const{componentCls:nt,motionDurationSlow:Ye}=He;return[{[nt]:{[`${nt}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ye}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ye}`}}}}},[(0,Er.oN)(He,"slide-up"),(0,Er.oN)(He,"slide-down")]]};const Zn=He=>{const{componentCls:nt,tabsCardPadding:Ye,cardBg:qe,cardGutter:Mt,colorBorderSecondary:Ut,itemSelectedColor:An}=He;return{[`${nt}-card`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{margin:0,padding:Ye,background:qe,border:`${He.lineWidth}px ${He.lineType} ${Ut}`,transition:`all ${He.motionDurationSlow} ${He.motionEaseInOut}`},[`${nt}-tab-active`]:{color:An,background:He.colorBgContainer},[`${nt}-ink-bar`]:{visibility:"hidden"}},[`&${nt}-top, &${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Mt}px`}}}},[`&${nt}-top`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:`${He.borderRadiusLG}px ${He.borderRadiusLG}px 0 0`},[`${nt}-tab-active`]:{borderBottomColor:He.colorBgContainer}}},[`&${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:`0 0 ${He.borderRadiusLG}px ${He.borderRadiusLG}px`},[`${nt}-tab-active`]:{borderTopColor:He.colorBgContainer}}},[`&${nt}-left, &${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginTop:`${Mt}px`}}},[`&${nt}-left`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${He.borderRadiusLG}px 0 0 ${He.borderRadiusLG}px`}},[`${nt}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:He.colorBgContainer}}}},[`&${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${He.borderRadiusLG}px ${He.borderRadiusLG}px 0`}},[`${nt}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:He.colorBgContainer}}}}}}},Or=He=>{const{componentCls:nt,itemHoverColor:Ye,dropdownEdgeChildVerticalPadding:qe}=He;return{[`${nt}-dropdown`]:Object.assign(Object.assign({},(0,Rr.Wf)(He)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:He.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${nt}-dropdown-menu`]:{maxHeight:He.tabsDropdownHeight,margin:0,padding:`${qe}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:He.colorBgContainer,backgroundClip:"padding-box",borderRadius:He.borderRadiusLG,outline:"none",boxShadow:He.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Rr.vS),{display:"flex",alignItems:"center",minWidth:He.tabsDropdownWidth,margin:0,padding:`${He.paddingXXS}px ${He.paddingSM}px`,color:He.colorText,fontWeight:"normal",fontSize:He.fontSize,lineHeight:He.lineHeight,cursor:"pointer",transition:`all ${He.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:He.marginSM},color:He.colorTextDescription,fontSize:He.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ye}},"&:hover":{background:He.controlItemBgHover},"&-disabled":{"&, &:hover":{color:He.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},br=He=>{const{componentCls:nt,margin:Ye,colorBorderSecondary:qe,horizontalMargin:Mt,verticalItemPadding:Ut,verticalItemMargin:An}=He;return{[`${nt}-top, ${nt}-bottom`]:{flexDirection:"column",[`> ${nt}-nav, > div > ${nt}-nav`]:{margin:Mt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${He.lineWidth}px ${He.lineType} ${qe}`,content:"''"},[`${nt}-ink-bar`]:{height:He.lineWidthBold,"&-animated":{transition:`width ${He.motionDurationSlow}, left ${He.motionDurationSlow},
|
|
|
right ${He.motionDurationSlow}`}},[`${nt}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:He.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:He.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:He.boxShadowTabsOverflowRight},[`&${nt}-nav-wrap-ping-left::before`]:{opacity:1},[`&${nt}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${nt}-top`]:{[`> ${nt}-nav,
|
|
|
> div > ${nt}-nav`]:{"&::before":{bottom:0},[`${nt}-ink-bar`]:{bottom:0}}},[`${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{order:1,marginTop:`${Ye}px`,marginBottom:0,"&::before":{top:0},[`${nt}-ink-bar`]:{top:0}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{order:0}},[`${nt}-left, ${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{flexDirection:"column",minWidth:He.controlHeight*1.25,[`${nt}-tab`]:{padding:Ut,textAlign:"center"},[`${nt}-tab + ${nt}-tab`]:{margin:An},[`${nt}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:He.controlHeight},"&::before":{top:0,boxShadow:He.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:He.boxShadowTabsOverflowBottom},[`&${nt}-nav-wrap-ping-top::before`]:{opacity:1},[`&${nt}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${nt}-ink-bar`]:{width:He.lineWidthBold,"&-animated":{transition:`height ${He.motionDurationSlow}, top ${He.motionDurationSlow}`}},[`${nt}-nav-list, ${nt}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${nt}-left`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${He.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`},[`> ${nt}-content > ${nt}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:He.paddingLG}}}},[`${nt}-right`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{order:1,[`${nt}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${nt}-content-holder, > div > ${nt}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-He.lineWidth},borderRight:{_skip_check_:!0,value:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`},[`> ${nt}-content > ${nt}-tabpane`]:{paddingRight:{_skip_check_:!0,value:He.paddingLG}}}}}},hr=He=>{const{componentCls:nt,cardPaddingSM:Ye,cardPaddingLG:qe,horizontalItemPaddingSM:Mt,horizontalItemPaddingLG:Ut}=He;return{[nt]:{"&-small":{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:Mt,fontSize:He.titleFontSizeSM}}},"&-large":{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:Ut,fontSize:He.titleFontSizeLG}}}},[`${nt}-card`]:{[`&${nt}-small`]:{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:Ye}},[`&${nt}-bottom`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:`0 0 ${He.borderRadius}px ${He.borderRadius}px`}},[`&${nt}-top`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:`${He.borderRadius}px ${He.borderRadius}px 0 0`}},[`&${nt}-right`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${He.borderRadius}px ${He.borderRadius}px 0`}}},[`&${nt}-left`]:{[`> ${nt}-nav ${nt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${He.borderRadius}px 0 0 ${He.borderRadius}px`}}}},[`&${nt}-large`]:{[`> ${nt}-nav`]:{[`${nt}-tab`]:{padding:qe}}}}}},Yr=He=>{const{componentCls:nt,itemActiveColor:Ye,itemHoverColor:qe,iconCls:Mt,tabsHorizontalItemMargin:Ut,horizontalItemPadding:An,itemSelectedColor:mn,itemColor:ln}=He,Nn=`${nt}-tab`;return{[Nn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:An,fontSize:He.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:ln,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ye}},(0,Rr.Qy)(He)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-He.marginXXS},marginLeft:{_skip_check_:!0,value:He.marginXS},color:He.colorTextDescription,fontSize:He.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${He.motionDurationSlow}`,"&:hover":{color:He.colorTextHeading}},"&:hover":{color:qe},[`&${Nn}-active ${Nn}-btn`]:{color:mn,textShadow:He.tabsActiveTextShadow},[`&${Nn}-disabled`]:{color:He.colorTextDisabled,cursor:"not-allowed"},[`&${Nn}-disabled ${Nn}-btn, &${Nn}-disabled ${nt}-remove`]:{"&:focus, &:active":{color:He.colorTextDisabled}},[`& ${Nn}-remove ${Mt}`]:{margin:0},[Mt]:{marginRight:{_skip_check_:!0,value:He.marginSM}}},[`${Nn} + ${Nn}`]:{margin:{_skip_check_:!0,value:Ut}}}},cr=He=>{const{componentCls:nt,tabsHorizontalItemMarginRTL:Ye,iconCls:qe,cardGutter:Mt}=He;return{[`${nt}-rtl`]:{direction:"rtl",[`${nt}-nav`]:{[`${nt}-tab`]:{margin:{_skip_check_:!0,value:Ye},[`${nt}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[qe]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${He.marginSM}px`}},[`${nt}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${He.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${He.marginXXS}px`},[qe]:{margin:0}}}},[`&${nt}-left`]:{[`> ${nt}-nav`]:{order:1},[`> ${nt}-content-holder`]:{order:0}},[`&${nt}-right`]:{[`> ${nt}-nav`]:{order:0},[`> ${nt}-content-holder`]:{order:1}},[`&${nt}-card${nt}-top, &${nt}-card${nt}-bottom`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-tab + ${nt}-tab`]:{marginRight:{_skip_check_:!0,value:Mt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${nt}-dropdown-rtl`]:{direction:"rtl"},[`${nt}-menu-item`]:{[`${nt}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ir=He=>{const{componentCls:nt,tabsCardPadding:Ye,cardHeight:qe,cardGutter:Mt,itemHoverColor:Ut,itemActiveColor:An,colorBorderSecondary:mn}=He;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rr.Wf)(He)),{display:"flex",[`> ${nt}-nav, > div > ${nt}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${nt}-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 ${He.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${nt}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${He.motionDurationSlow}`},[`${nt}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${nt}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${nt}-nav-more`]:{position:"relative",padding:Ye,background:"transparent",border:0,color:He.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:He.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${nt}-nav-add`]:Object.assign({minWidth:qe,marginLeft:{_skip_check_:!0,value:Mt},padding:`0 ${He.paddingXS}px`,background:"transparent",border:`${He.lineWidth}px ${He.lineType} ${mn}`,borderRadius:`${He.borderRadiusLG}px ${He.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:He.colorText,transition:`all ${He.motionDurationSlow} ${He.motionEaseInOut}`,"&:hover":{color:Ut},"&:active, &:focus:not(:focus-visible)":{color:An}},(0,Rr.Qy)(He))},[`${nt}-extra-content`]:{flex:"none"},[`${nt}-ink-bar`]:{position:"absolute",background:He.inkBarColor,pointerEvents:"none"}}),Yr(He)),{[`${nt}-content`]:{position:"relative",width:"100%"},[`${nt}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${nt}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${nt}-centered`]:{[`> ${nt}-nav, > div > ${nt}-nav`]:{[`${nt}-nav-wrap`]:{[`&:not([class*='${nt}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var or=(0,$r.Z)("Tabs",He=>{const nt=(0,vr.TS)(He,{tabsCardPadding:He.cardPadding||`${(He.cardHeight-Math.round(He.fontSize*He.lineHeight))/2-He.lineWidth}px ${He.padding}px`,dropdownEdgeChildVerticalPadding:He.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${He.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${He.horizontalItemGutter}px`});return[hr(nt),cr(nt),br(nt),Or(nt),Zn(nt),Ir(nt),wn(nt)]},He=>{const nt=He.controlHeightLG;return{zIndexPopup:He.zIndexPopupBase+50,cardBg:He.colorFillAlter,cardHeight:nt,cardPadding:"",cardPaddingSM:`${He.paddingXXS*1.5}px ${He.padding}px`,cardPaddingLG:`${He.paddingXS}px ${He.padding}px ${He.paddingXXS*1.5}px`,titleFontSize:He.fontSize,titleFontSizeLG:He.fontSizeLG,titleFontSizeSM:He.fontSize,inkBarColor:He.colorPrimary,horizontalMargin:`0 0 ${He.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${He.paddingSM}px 0`,horizontalItemPaddingSM:`${He.paddingXS}px 0`,horizontalItemPaddingLG:`${He.padding}px 0`,verticalItemPadding:`${He.paddingXS}px ${He.paddingLG}px`,verticalItemMargin:`${He.margin}px 0 0 0`,itemColor:He.colorText,itemSelectedColor:He.colorPrimary,itemHoverColor:He.colorPrimaryHover,itemActiveColor:He.colorPrimaryActive,cardGutter:He.marginXXS/2}}),Jn=function(He,nt){var Ye={};for(var qe in He)Object.prototype.hasOwnProperty.call(He,qe)&&nt.indexOf(qe)<0&&(Ye[qe]=He[qe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,qe=Object.getOwnPropertySymbols(He);Mt<qe.length;Mt++)nt.indexOf(qe[Mt])<0&&Object.prototype.propertyIsEnumerable.call(He,qe[Mt])&&(Ye[qe[Mt]]=He[qe[Mt]]);return Ye};const Dr=He=>{const{type:nt,className:Ye,rootClassName:qe,size:Mt,onEdit:Ut,hideAdd:An,centered:mn,addIcon:ln,popupClassName:Nn,children:Wn,items:Xn,animated:rn,style:Tn,indicatorSize:Nt}=He,Jt=Jn(He,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:sn,moreIcon:fn=Pe.createElement(De.Z,null)}=Jt,{direction:In,tabs:un,getPrefixCls:Bn,getPopupContainer:ot}=Pe.useContext(Ve.E_),tn=Bn("tabs",sn),[nn,En]=or(tn);let gn;nt==="editable-card"&&(gn={onEdit:(Tr,Jr)=>{let{key:ai,event:Nr}=Jr;Ut==null||Ut(Tr==="add"?Nr:ai,Tr)},removeIcon:Pe.createElement(ce.Z,null),addIcon:ln||Pe.createElement(Te.Z,null),showAdd:An!==!0});const Mn=Bn(),kn=Cr(Xn,Wn),Vn=Kn(tn,rn),qn=(0,Kt.Z)(Mt),pr=Object.assign(Object.assign({},un==null?void 0:un.style),Tn);return nn(Pe.createElement(Ae,Object.assign({direction:In,getPopupContainer:ot,moreTransitionName:`${Mn}-slide-up`},Jt,{items:kn,className:be()({[`${tn}-${qn}`]:qn,[`${tn}-card`]:["card","editable-card"].includes(nt),[`${tn}-editable-card`]:nt==="editable-card",[`${tn}-centered`]:mn},un==null?void 0:un.className,Ye,qe,En),popupClassName:be()(Nn,En),style:pr,editable:gn,moreIcon:fn,prefixCls:tn,animated:Vn,indicatorSize:Nt!=null?Nt:un==null?void 0:un.indicatorSize})))};Dr.TabPane=hn;var _t=Dr},17574:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return it}});var ce=ae(38028),De=ae(77654),Te=ae(52671),dt=ae(8657),be=ae(60499),ke=ae(59301),pe={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"},xe=pe,Me=ae(7657),Ke=function(Et,on){return ke.createElement(Me.Z,(0,be.Z)({},Et,{ref:on,icon:xe}))},vt=ke.forwardRef(Ke),Pe=vt,Be=ae(92310),et=ae.n(Be),Je=ae(35654),tt=ae(71430),yt=ae(36355),wt=ae(56082),It=ae(62892),gt=ae(20648);const st=4;function ze(Ce){const{dropPosition:Et,dropLevelOffset:on,prefixCls:Yt,indent:lt,direction:pt="ltr"}=Ce,Ft=pt==="ltr"?"left":"right",Sn=pt==="ltr"?"right":"left",$t={[Ft]:-on*lt+st,[Sn]:0};switch(Et){case-1:$t.top=-3;break;case 1:$t.bottom=-3;break;default:$t.bottom=-3,$t[Ft]=lt+st;break}return ke.createElement("div",{style:$t,className:`${Yt}-drop-indicator`})}var he=ae(71997),Xe=ke.forwardRef((Ce,Et)=>{const{getPrefixCls:on,direction:Yt,virtual:lt,tree:pt}=ke.useContext(yt.E_),{prefixCls:Ft,className:Sn,showIcon:$t=!1,showLine:Pn,switcherIcon:Zt,blockNode:an=!1,children:Ht,checkable:ye=!1,selectable:ue=!0,draggable:le,motion:de,style:ge}=Ce,se=on("tree",Ft),Oe=on(),ut=de!=null?de:Object.assign(Object.assign({},(0,It.Z)(Oe)),{motionAppear:!1}),Ge=Object.assign(Object.assign({},Ce),{checkable:ye,selectable:ue,showIcon:$t,motion:ut,blockNode:an,showLine:!!Pn,dropIndicatorRender:ze}),[_e,St]=(0,gt.ZP)(se),bt=ke.useMemo(()=>{if(!le)return!1;let Dt={};switch(typeof le){case"function":Dt.nodeDraggable=le;break;case"object":Dt=Object.assign({},le);break;default:break}return Dt.icon!==!1&&(Dt.icon=Dt.icon||ke.createElement(wt.Z,null)),Dt},[le]),rt=Dt=>ke.createElement(he.Z,{prefixCls:se,switcherIcon:Zt,treeNodeProps:Dt,showLine:Pn});return _e(ke.createElement(ce.Z,Object.assign({itemHeight:20,ref:Et,virtual:lt},Ge,{style:Object.assign(Object.assign({},pt==null?void 0:pt.style),ge),prefixCls:se,className:et()({[`${se}-icon-hide`]:!$t,[`${se}-block-node`]:an,[`${se}-unselectable`]:!ue,[`${se}-rtl`]:Yt==="rtl"},pt==null?void 0:pt.className,Sn,St),direction:Yt,checkable:ye&&ke.createElement("span",{className:`${se}-checkbox-inner`}),selectable:ue,switcherIcon:rt,draggable:bt}),Ht))}),Qe;(function(Ce){Ce[Ce.None=0]="None",Ce[Ce.Start=1]="Start",Ce[Ce.End=2]="End"})(Qe||(Qe={}));function Ue(Ce,Et){function on(Yt){const{key:lt,children:pt}=Yt;Et(lt,Yt)!==!1&&Ue(pt||[],Et)}Ce.forEach(on)}function mt(Ce){let{treeData:Et,expandedKeys:on,startKey:Yt,endKey:lt}=Ce;const pt=[];let Ft=Qe.None;if(Yt&&Yt===lt)return[Yt];if(!Yt||!lt)return[];function Sn($t){return $t===Yt||$t===lt}return Ue(Et,$t=>{if(Ft===Qe.End)return!1;if(Sn($t)){if(pt.push($t),Ft===Qe.None)Ft=Qe.Start;else if(Ft===Qe.Start)return Ft=Qe.End,!1}else Ft===Qe.Start&&pt.push($t);return on.includes($t)}),pt}function Le(Ce,Et){const on=(0,De.Z)(Et),Yt=[];return Ue(Ce,(lt,pt)=>{const Ft=on.indexOf(lt);return Ft!==-1&&(Yt.push(pt),on.splice(Ft,1)),!!on.length}),Yt}var Bt=function(Ce,Et){var on={};for(var Yt in Ce)Object.prototype.hasOwnProperty.call(Ce,Yt)&&Et.indexOf(Yt)<0&&(on[Yt]=Ce[Yt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Yt=Object.getOwnPropertySymbols(Ce);lt<Yt.length;lt++)Et.indexOf(Yt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Yt[lt])&&(on[Yt[lt]]=Ce[Yt[lt]]);return on};function at(Ce){const{isLeaf:Et,expanded:on}=Ce;return Et?ke.createElement(Te.Z,null):on?ke.createElement(dt.Z,null):ke.createElement(Pe,null)}function Wt(Ce){let{treeData:Et,children:on}=Ce;return Et||(0,tt.zn)(on)}const Lt=(Ce,Et)=>{var{defaultExpandAll:on,defaultExpandParent:Yt,defaultExpandedKeys:lt}=Ce,pt=Bt(Ce,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ft=ke.useRef(),Sn=ke.useRef(),$t=()=>{const{keyEntities:bt}=(0,tt.I8)(Wt(pt));let rt;return on?rt=Object.keys(bt):Yt?rt=(0,Je.r7)(pt.expandedKeys||lt||[],bt):rt=pt.expandedKeys||lt,rt},[Pn,Zt]=ke.useState(pt.selectedKeys||pt.defaultSelectedKeys||[]),[an,Ht]=ke.useState(()=>$t());ke.useEffect(()=>{"selectedKeys"in pt&&Zt(pt.selectedKeys)},[pt.selectedKeys]),ke.useEffect(()=>{"expandedKeys"in pt&&Ht(pt.expandedKeys)},[pt.expandedKeys]);const ye=(bt,rt)=>{var Dt;return"expandedKeys"in pt||Ht(bt),(Dt=pt.onExpand)===null||Dt===void 0?void 0:Dt.call(pt,bt,rt)},ue=(bt,rt)=>{var Dt;const{multiple:xn}=pt,{node:xt,nativeEvent:Rt}=rt,{key:cn=""}=xt,ct=Wt(pt),Ae=Object.assign(Object.assign({},rt),{selected:!0}),Ve=(Rt==null?void 0:Rt.ctrlKey)||(Rt==null?void 0:Rt.metaKey),Kt=Rt==null?void 0:Rt.shiftKey;let Gt;xn&&Ve?(Gt=bt,Ft.current=cn,Sn.current=Gt,Ae.selectedNodes=Le(ct,Gt)):xn&&Kt?(Gt=Array.from(new Set([].concat((0,De.Z)(Sn.current||[]),(0,De.Z)(mt({treeData:ct,expandedKeys:an,startKey:cn,endKey:Ft.current}))))),Ae.selectedNodes=Le(ct,Gt)):(Gt=[cn],Ft.current=cn,Sn.current=Gt,Ae.selectedNodes=Le(ct,Gt)),(Dt=pt.onSelect)===null||Dt===void 0||Dt.call(pt,Gt,Ae),"selectedKeys"in pt||Zt(Gt)},{getPrefixCls:le,direction:de}=ke.useContext(yt.E_),{prefixCls:ge,className:se,showIcon:Oe=!0,expandAction:ut="click"}=pt,Ge=Bt(pt,["prefixCls","className","showIcon","expandAction"]),_e=le("tree",ge),St=et()(`${_e}-directory`,{[`${_e}-directory-rtl`]:de==="rtl"},se);return ke.createElement(Xe,Object.assign({icon:at,ref:Et,blockNode:!0},Ge,{showIcon:Oe,expandAction:ut,prefixCls:_e,className:St,expandedKeys:an,selectedKeys:Pn,onSelect:ue,onExpand:ye}))};var Xt=ke.forwardRef(Lt);const jt=Xe;jt.DirectoryTree=Xt,jt.TreeNode=ce.O;var it=jt},20648:function(zn,en,ae){"use strict";ae.d(en,{TM:function(){return Be},Yk:function(){return Pe}});var ce=ae(36237),De=ae(98447),Te=ae(17313),dt=ae(8378),be=ae(37613),ke=ae(83116);const pe=new ce.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),xe=(et,Je)=>({[`.${et}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Je.motionDurationSlow}`}}}),Me=(et,Je)=>({[`.${et}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Je.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Je.lineWidthBold}px solid ${Je.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Ke=(et,Je)=>{const{treeCls:tt,treeNodeCls:yt,treeNodePadding:wt,titleHeight:It,nodeSelectedBg:gt,nodeHoverBg:st}=Je,ze=Je.paddingXS;return{[tt]:Object.assign(Object.assign({},(0,Te.Wf)(Je)),{background:Je.colorBgContainer,borderRadius:Je.borderRadius,transition:`background-color ${Je.motionDurationSlow}`,[`&${tt}-rtl`]:{[`${tt}-switcher`]:{"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${tt}-active-focused)`]:Object.assign({},(0,Te.oN)(Je)),[`${tt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${tt}-block-node`]:{[`${tt}-list-holder-inner`]:{alignItems:"stretch",[`${tt}-node-content-wrapper`]:{flex:"auto"},[`${yt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:wt,insetInlineStart:0,border:`1px solid ${Je.colorPrimary}`,opacity:0,animationName:pe,animationDuration:Je.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${yt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${wt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${tt}-node-content-wrapper`]:{color:Je.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${tt}-node-content-wrapper`]:Object.assign({},(0,Te.oN)(Je)),[`&:not(${yt}-disabled).filter-node ${tt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${tt}-draggable-icon`]:{flexShrink:0,width:It,lineHeight:`${It}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Je.motionDurationSlow}`,[`${yt}:hover &`]:{opacity:.45}},[`&${yt}-disabled`]:{[`${tt}-draggable-icon`]:{visibility:"hidden"}}}},[`${tt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:It}},[`${tt}-draggable-icon`]:{visibility:"hidden"},[`${tt}-switcher`]:Object.assign(Object.assign({},xe(et,Je)),{position:"relative",flex:"none",alignSelf:"stretch",width:It,margin:0,lineHeight:`${It}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Je.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:It/2,bottom:-wt,marginInlineStart:-1,borderInlineEnd:`1px solid ${Je.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:It/2*.8,height:It/2,borderBottom:`1px solid ${Je.colorBorder}`,content:'""'}}}),[`${tt}-checkbox`]:{top:"initial",marginInlineEnd:ze},[`${tt}-node-content-wrapper, ${tt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:It,margin:0,padding:`0 ${Je.paddingXS/2}px`,color:"inherit",lineHeight:`${It}px`,background:"transparent",borderRadius:Je.borderRadius,cursor:"pointer",transition:`all ${Je.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:st},[`&${tt}-node-selected`]:{backgroundColor:gt},[`${tt}-iconEle`]:{display:"inline-block",width:It,height:It,lineHeight:`${It}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${tt}-unselectable ${tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}-node-content-wrapper`]:Object.assign({lineHeight:`${It}px`,userSelect:"none"},Me(et,Je)),[`${yt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Je.colorPrimary}`}},"&-show-line":{[`${tt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:It/2,bottom:-wt,borderInlineEnd:`1px solid ${Je.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${tt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${yt}-leaf-last`]:{[`${tt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${It/2}px !important`}}}}})}},vt=et=>{const{treeCls:Je,treeNodeCls:tt,treeNodePadding:yt,directoryNodeSelectedBg:wt,directoryNodeSelectedColor:It}=et;return{[`${Je}${Je}-directory`]:{[tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:yt,insetInlineStart:0,transition:`background-color ${et.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:et.controlItemBgHover}},"> *":{zIndex:1},[`${Je}-switcher`]:{transition:`color ${et.motionDurationMid}`},[`${Je}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Je}-node-selected`]:{color:It,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:wt},[`${Je}-switcher`]:{color:It},[`${Je}-node-content-wrapper`]:{color:It,background:"transparent"}}}}}},Pe=(et,Je)=>{const tt=`.${et}`,yt=`${tt}-treenode`,wt=Je.paddingXS/2,It=(0,be.TS)(Je,{treeCls:tt,treeNodeCls:yt,treeNodePadding:wt});return[Ke(et,It),vt(It)]},Be=et=>{const{controlHeightSM:Je}=et;return{titleHeight:Je,nodeHoverBg:et.controlItemBgHover,nodeSelectedBg:et.controlItemBgActive}};en.ZP=(0,ke.Z)("Tree",(et,Je)=>{let{prefixCls:tt}=Je;return[{[et.componentCls]:(0,De.C2)(`${tt}-checkbox`,et)},Pe(tt,et),(0,dt.Z)(et)]},et=>{const{colorTextLightSolid:Je,colorPrimary:tt}=et;return Object.assign(Object.assign({},Be(et)),{directoryNodeSelectedColor:Je,directoryNodeSelectedBg:tt})})},71997:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return yt}});var ce=ae(60499),De=ae(59301),Te={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"},dt=Te,be=ae(7657),ke=function(It,gt){return De.createElement(be.Z,(0,ce.Z)({},It,{ref:gt,icon:dt}))},pe=De.forwardRef(ke),xe=pe,Me=ae(52671),Ke=ae(58617),vt=ae(15075),Pe=ae(43531),Be=ae(92310),et=ae.n(Be),Je=ae(92343),yt=wt=>{const{prefixCls:It,switcherIcon:gt,treeNodeProps:st,showLine:ze}=wt,{isLeaf:he,expanded:je,loading:Xe}=st;if(Xe)return De.createElement(Ke.Z,{className:`${It}-switcher-loading-icon`});let Qe;if(ze&&typeof ze=="object"&&(Qe=ze.showLeafIcon),he){if(!ze)return null;if(typeof Qe!="boolean"&&Qe){const Le=typeof Qe=="function"?Qe(st):Qe,Bt=`${It}-switcher-line-custom-icon`;return(0,Je.l$)(Le)?(0,Je.Tm)(Le,{className:et()(Le.props.className||"",Bt)}):Le}return Qe?De.createElement(Me.Z,{className:`${It}-switcher-line-icon`}):De.createElement("span",{className:`${It}-switcher-leaf-line`})}const Ue=`${It}-switcher-icon`,mt=typeof gt=="function"?gt(st):gt;return(0,Je.l$)(mt)?(0,Je.Tm)(mt,{className:et()(mt.props.className||"",Ue)}):mt!==void 0?mt:ze?je?De.createElement(vt.Z,{className:`${It}-switcher-line-icon`}):De.createElement(Pe.Z,{className:`${It}-switcher-line-icon`}):De.createElement(xe,{className:Ue})}},54580:function(zn,en,ae){"use strict";ae.d(en,{default:function(){return Tn}});var ce=ae(59301),De=ae(77654),Te=ae(92310),dt=ae.n(Te),be=ae(60499),ke=ae(38705),pe=ae(17212),xe=ae(39153),Me=ae(55401),Ke=ae(18642),vt=ae(42244),Pe=ae(73001),Be=ae(43749),et=ae(11576),Je=ae(26112);function tt(Nt,Jt){var sn="cannot ".concat(Nt.method," ").concat(Nt.action," ").concat(Jt.status,"'"),fn=new Error(sn);return fn.status=Jt.status,fn.method=Nt.method,fn.url=Nt.action,fn}function yt(Nt){var Jt=Nt.responseText||Nt.response;if(!Jt)return Jt;try{return JSON.parse(Jt)}catch(sn){return Jt}}function wt(Nt){var Jt=new XMLHttpRequest;Nt.onProgress&&Jt.upload&&(Jt.upload.onprogress=function(un){un.total>0&&(un.percent=un.loaded/un.total*100),Nt.onProgress(un)});var sn=new FormData;Nt.data&&Object.keys(Nt.data).forEach(function(In){var un=Nt.data[In];if(Array.isArray(un)){un.forEach(function(Bn){sn.append("".concat(In,"[]"),Bn)});return}sn.append(In,un)}),Nt.file instanceof Blob?sn.append(Nt.filename,Nt.file,Nt.file.name):sn.append(Nt.filename,Nt.file),Jt.onerror=function(un){Nt.onError(un)},Jt.onload=function(){return Jt.status<200||Jt.status>=300?Nt.onError(tt(Nt,Jt),yt(Jt)):Nt.onSuccess(yt(Jt),Jt)},Jt.open(Nt.method,Nt.action,!0),Nt.withCredentials&&"withCredentials"in Jt&&(Jt.withCredentials=!0);var fn=Nt.headers||{};return fn["X-Requested-With"]!==null&&Jt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(fn).forEach(function(In){fn[In]!==null&&Jt.setRequestHeader(In,fn[In])}),Jt.send(sn),{abort:function(){Jt.abort()}}}var It=+new Date,gt=0;function st(){return"rc-upload-".concat(It,"-").concat(++gt)}var ze=ae(48736),he=function(Nt,Jt){if(Nt&&Jt){var sn=Array.isArray(Jt)?Jt:Jt.split(","),fn=Nt.name||"",In=Nt.type||"",un=In.replace(/\/.*$/,"");return sn.some(function(Bn){var ot=Bn.trim();if(/^\*(\/\*)?$/.test(Bn))return!0;if(ot.charAt(0)==="."){var tn=fn.toLowerCase(),nn=ot.toLowerCase(),En=[nn];return(nn===".jpg"||nn===".jpeg")&&(En=[".jpg",".jpeg"]),En.some(function(gn){return tn.endsWith(gn)})}return/\/\*$/.test(ot)?un===ot.replace(/\/.*$/,""):In===ot?!0:/^\w+$/.test(ot)?((0,ze.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ot,"'.Skip for check.")),!0):!1})}return!0};function je(Nt,Jt){var sn=Nt.createReader(),fn=[];function In(){sn.readEntries(function(un){var Bn=Array.prototype.slice.apply(un);fn=fn.concat(Bn);var ot=!Bn.length;ot?Jt(fn):In()})}In()}var Xe=function(Jt,sn,fn){var In=function un(Bn,ot){Bn&&(Bn.path=ot||"",Bn.isFile?Bn.file(function(tn){fn(tn)&&(Bn.fullPath&&!tn.webkitRelativePath&&(Object.defineProperties(tn,{webkitRelativePath:{writable:!0}}),tn.webkitRelativePath=Bn.fullPath.replace(/^\//,""),Object.defineProperties(tn,{webkitRelativePath:{writable:!1}})),sn([tn]))}):Bn.isDirectory&&je(Bn,function(tn){tn.forEach(function(nn){un(nn,"".concat(ot).concat(Bn.name,"/"))})}))};Jt.forEach(function(un){In(un.webkitGetAsEntry())})},Qe=Xe,Ue=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],mt=function(Nt){(0,xe.Z)(sn,Nt);var Jt=(0,Me.Z)(sn);function sn(){var fn;(0,ke.Z)(this,sn);for(var In=arguments.length,un=new Array(In),Bn=0;Bn<In;Bn++)un[Bn]=arguments[Bn];return fn=Jt.call.apply(Jt,[this].concat(un)),fn.state={uid:st()},fn.reqs={},fn.fileInput=void 0,fn._isMounted=void 0,fn.onChange=function(ot){var tn=fn.props,nn=tn.accept,En=tn.directory,gn=ot.target.files,Mn=(0,De.Z)(gn).filter(function(kn){return!En||he(kn,nn)});fn.uploadFiles(Mn),fn.reset()},fn.onClick=function(ot){var tn=fn.fileInput;if(tn){var nn=ot.target,En=fn.props.onClick;if(nn&&nn.tagName==="BUTTON"){var gn=tn.parentNode;gn.focus(),nn.blur()}tn.click(),En&&En(ot)}},fn.onKeyDown=function(ot){ot.key==="Enter"&&fn.onClick(ot)},fn.onFileDrop=function(ot){var tn=fn.props.multiple;if(ot.preventDefault(),ot.type!=="dragover")if(fn.props.directory)Qe(Array.prototype.slice.call(ot.dataTransfer.items),fn.uploadFiles,function(En){return he(En,fn.props.accept)});else{var nn=(0,De.Z)(ot.dataTransfer.files).filter(function(En){return he(En,fn.props.accept)});tn===!1&&(nn=nn.slice(0,1)),fn.uploadFiles(nn)}},fn.uploadFiles=function(ot){var tn=(0,De.Z)(ot),nn=tn.map(function(En){return En.uid=st(),fn.processFile(En,tn)});Promise.all(nn).then(function(En){var gn=fn.props.onBatchStart;gn==null||gn(En.map(function(Mn){var kn=Mn.origin,Vn=Mn.parsedFile;return{file:kn,parsedFile:Vn}})),En.filter(function(Mn){return Mn.parsedFile!==null}).forEach(function(Mn){fn.post(Mn)})})},fn.processFile=function(){var ot=(0,et.Z)((0,Pe.Z)().mark(function tn(nn,En){var gn,Mn,kn,Vn,qn,pr,Tr,Jr,ai;return(0,Pe.Z)().wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:if(gn=fn.props.beforeUpload,Mn=nn,!gn){yr.next=14;break}return yr.prev=3,yr.next=6,gn(nn,En);case 6:Mn=yr.sent,yr.next=12;break;case 9:yr.prev=9,yr.t0=yr.catch(3),Mn=!1;case 12:if(Mn!==!1){yr.next=14;break}return yr.abrupt("return",{origin:nn,parsedFile:null,action:null,data:null});case 14:if(kn=fn.props.action,typeof kn!="function"){yr.next=21;break}return yr.next=18,kn(nn);case 18:Vn=yr.sent,yr.next=22;break;case 21:Vn=kn;case 22:if(qn=fn.props.data,typeof qn!="function"){yr.next=29;break}return yr.next=26,qn(nn);case 26:pr=yr.sent,yr.next=30;break;case 29:pr=qn;case 30:return Tr=((0,Be.Z)(Mn)==="object"||typeof Mn=="string")&&Mn?Mn:nn,Tr instanceof File?Jr=Tr:Jr=new File([Tr],nn.name,{type:nn.type}),ai=Jr,ai.uid=nn.uid,yr.abrupt("return",{origin:nn,data:pr,parsedFile:ai,action:Vn});case 35:case"end":return yr.stop()}},tn,null,[[3,9]])}));return function(tn,nn){return ot.apply(this,arguments)}}(),fn.saveFileInput=function(ot){fn.fileInput=ot},fn}return(0,pe.Z)(sn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(In){var un=this,Bn=In.data,ot=In.origin,tn=In.action,nn=In.parsedFile;if(this._isMounted){var En=this.props,gn=En.onStart,Mn=En.customRequest,kn=En.name,Vn=En.headers,qn=En.withCredentials,pr=En.method,Tr=ot.uid,Jr=Mn||wt,ai={action:tn,filename:kn,data:Bn,file:nn,headers:Vn,withCredentials:qn,method:pr||"post",onProgress:function(yr){var di=un.props.onProgress;di==null||di(yr,nn)},onSuccess:function(yr,di){var ti=un.props.onSuccess;ti==null||ti(yr,nn,di),delete un.reqs[Tr]},onError:function(yr,di){var ti=un.props.onError;ti==null||ti(yr,di,nn),delete un.reqs[Tr]}};gn(ot),this.reqs[Tr]=Jr(ai)}}},{key:"reset",value:function(){this.setState({uid:st()})}},{key:"abort",value:function(In){var un=this.reqs;if(In){var Bn=In.uid?In.uid:In;un[Bn]&&un[Bn].abort&&un[Bn].abort(),delete un[Bn]}else Object.keys(un).forEach(function(ot){un[ot]&&un[ot].abort&&un[ot].abort(),delete un[ot]})}},{key:"render",value:function(){var In=this.props,un=In.component,Bn=In.prefixCls,ot=In.className,tn=In.disabled,nn=In.id,En=In.style,gn=In.multiple,Mn=In.accept,kn=In.capture,Vn=In.children,qn=In.directory,pr=In.openFileDialogOnClick,Tr=In.onMouseEnter,Jr=In.onMouseLeave,ai=(0,vt.Z)(In,Ue),Nr=dt()((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},Bn,!0),"".concat(Bn,"-disabled"),tn),ot,ot)),yr=qn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},di=tn?{}:{onClick:pr?this.onClick:function(){},onKeyDown:pr?this.onKeyDown:function(){},onMouseEnter:Tr,onMouseLeave:Jr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ce.createElement(un,(0,be.Z)({},di,{className:Nr,role:"button",style:En}),ce.createElement("input",(0,be.Z)({},(0,Je.Z)(ai,{aria:!0,data:!0}),{id:nn,disabled:tn,type:"file",ref:this.saveFileInput,onClick:function(vi){return vi.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Mn},yr,{multiple:gn,onChange:this.onChange},kn!=null?{capture:kn}:{})),Vn)}}]),sn}(ce.Component),Le=mt;function Bt(){}var at=function(Nt){(0,xe.Z)(sn,Nt);var Jt=(0,Me.Z)(sn);function sn(){var fn;(0,ke.Z)(this,sn);for(var In=arguments.length,un=new Array(In),Bn=0;Bn<In;Bn++)un[Bn]=arguments[Bn];return fn=Jt.call.apply(Jt,[this].concat(un)),fn.uploader=void 0,fn.saveUploader=function(ot){fn.uploader=ot},fn}return(0,pe.Z)(sn,[{key:"abort",value:function(In){this.uploader.abort(In)}},{key:"render",value:function(){return ce.createElement(Le,(0,be.Z)({},this.props,{ref:this.saveUploader}))}}]),sn}(ce.Component);at.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Bt,onError:Bt,onSuccess:Bt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Wt=at,Lt=Wt,Tt=ae(18929),Xt=ae(4676),jt=ae(36355),it=ae(1684),Ce=ae(9763),Et=ae(31724),on={icon:function(Jt,sn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:sn}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Jt}}]}},name:"file",theme:"twotone"},Yt=on,lt=ae(7657),pt=function(Jt,sn){return ce.createElement(lt.Z,(0,be.Z)({},Jt,{ref:sn,icon:Yt}))},Ft=ce.forwardRef(pt),Sn=Ft,$t=ae(58617),Pn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Zt=Pn,an=function(Jt,sn){return ce.createElement(lt.Z,(0,be.Z)({},Jt,{ref:sn,icon:Zt}))},Ht=ce.forwardRef(an),ye=Ht,ue={icon:function(Jt,sn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Jt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:sn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:sn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:sn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Jt}}]}},name:"picture",theme:"twotone"},le=ue,de=function(Jt,sn){return ce.createElement(lt.Z,(0,be.Z)({},Jt,{ref:sn,icon:le}))},ge=ce.forwardRef(de),se=ge,Oe=ae(77900),ut=ae(56762),Ge=ae(62892),_e=ae(92343),St=ae(3113);function bt(Nt){return Object.assign(Object.assign({},Nt),{lastModified:Nt.lastModified,lastModifiedDate:Nt.lastModifiedDate,name:Nt.name,size:Nt.size,type:Nt.type,uid:Nt.uid,percent:0,originFileObj:Nt})}function rt(Nt,Jt){const sn=(0,De.Z)(Jt),fn=sn.findIndex(In=>{let{uid:un}=In;return un===Nt.uid});return fn===-1?sn.push(Nt):sn[fn]=Nt,sn}function Dt(Nt,Jt){const sn=Nt.uid!==void 0?"uid":"name";return Jt.filter(fn=>fn[sn]===Nt[sn])[0]}function xn(Nt,Jt){const sn=Nt.uid!==void 0?"uid":"name",fn=Jt.filter(In=>In[sn]!==Nt[sn]);return fn.length===Jt.length?null:fn}const xt=function(){const Jt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),fn=Jt[Jt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(fn)||[""])[0]},Rt=Nt=>Nt.indexOf("image/")===0,cn=Nt=>{if(Nt.type&&!Nt.thumbUrl)return Rt(Nt.type);const Jt=Nt.thumbUrl||Nt.url||"",sn=xt(Jt);return/^data:image\//.test(Jt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(sn)?!0:!(/^data:/.test(Jt)||sn)},ct=200;function Ae(Nt){return new Promise(Jt=>{if(!Nt.type||!Rt(Nt.type)){Jt("");return}const sn=document.createElement("canvas");sn.width=ct,sn.height=ct,sn.style.cssText=`position: fixed; left: 0; top: 0; width: ${ct}px; height: ${ct}px; z-index: 9999; display: none;`,document.body.appendChild(sn);const fn=sn.getContext("2d"),In=new Image;if(In.onload=()=>{const{width:un,height:Bn}=In;let ot=ct,tn=ct,nn=0,En=0;un>Bn?(tn=Bn*(ct/un),En=-(tn-ot)/2):(ot=un*(ct/Bn),nn=-(ot-tn)/2),fn.drawImage(In,nn,En,ot,tn);const gn=sn.toDataURL();document.body.removeChild(sn),window.URL.revokeObjectURL(In.src),Jt(gn)},In.crossOrigin="anonymous",Nt.type.startsWith("image/svg+xml")){const un=new FileReader;un.onload=()=>{un.result&&(In.src=un.result)},un.readAsDataURL(Nt)}else if(Nt.type.startsWith("image/gif")){const un=new FileReader;un.onload=()=>{un.result&&Jt(un.result)},un.readAsDataURL(Nt)}else In.src=window.URL.createObjectURL(Nt)})}var Ve=ae(26227),Kt=ae(41464),Gt=ae(15277),hn=ae(93948),On=ae(6848),Kn=ce.forwardRef((Nt,Jt)=>{let{prefixCls:sn,className:fn,style:In,locale:un,listType:Bn,file:ot,items:tn,progress:nn,iconRender:En,actionIconRender:gn,itemRender:Mn,isImgUrl:kn,showPreviewIcon:Vn,showRemoveIcon:qn,showDownloadIcon:pr,previewIcon:Tr,removeIcon:Jr,downloadIcon:ai,onPreview:Nr,onDownload:yr,onClose:di}=Nt;var ti,vi;const{status:Wr}=ot,[jr,yi]=ce.useState(Wr);ce.useEffect(()=>{Wr!=="removed"&&yi(Wr)},[Wr]);const[ui,$i]=ce.useState(!1);ce.useEffect(()=>{const Ra=setTimeout(()=>{$i(!0)},300);return()=>{clearTimeout(Ra)}},[]);const sa=En(ot);let oi=ce.createElement("div",{className:`${sn}-icon`},sa);if(Bn==="picture"||Bn==="picture-card"||Bn==="picture-circle")if(jr==="uploading"||!ot.thumbUrl&&!ot.url){const Ra=dt()(`${sn}-list-item-thumbnail`,{[`${sn}-list-item-file`]:jr!=="uploading"});oi=ce.createElement("div",{className:Ra},sa)}else{const Ra=kn!=null&&kn(ot)?ce.createElement("img",{src:ot.thumbUrl||ot.url,alt:ot.name,className:`${sn}-list-item-image`,crossOrigin:ot.crossOrigin}):sa,ka=dt()(`${sn}-list-item-thumbnail`,{[`${sn}-list-item-file`]:kn&&!kn(ot)});oi=ce.createElement("a",{className:ka,onClick:ha=>Nr(ot,ha),href:ot.url||ot.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ra)}const ar=dt()(`${sn}-list-item`,`${sn}-list-item-${jr}`),rr=typeof ot.linkProps=="string"?JSON.parse(ot.linkProps):ot.linkProps,pi=qn?gn((typeof Jr=="function"?Jr(ot):Jr)||ce.createElement(Ve.Z,null),()=>di(ot),sn,un.removeFile):null,ni=pr&&jr==="done"?gn((typeof ai=="function"?ai(ot):ai)||ce.createElement(Kt.Z,null),()=>yr(ot),sn,un.downloadFile):null,ki=Bn!=="picture-card"&&Bn!=="picture-circle"&&ce.createElement("span",{key:"download-delete",className:dt()(`${sn}-list-item-actions`,{picture:Bn==="picture"})},ni,pi),Ai=dt()(`${sn}-list-item-name`),Ti=ot.url?[ce.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ai,title:ot.name},rr,{href:ot.url,onClick:Ra=>Nr(ot,Ra)}),ot.name),ki]:[ce.createElement("span",{key:"view",className:Ai,onClick:Ra=>Nr(ot,Ra),title:ot.name},ot.name),ki],mi={pointerEvents:"none",opacity:.5},Ci=Vn?ce.createElement("a",{href:ot.url||ot.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ot.url||ot.thumbUrl?void 0:mi,onClick:Ra=>Nr(ot,Ra),title:un.previewFile},typeof Tr=="function"?Tr(ot):Tr||ce.createElement(Gt.Z,null)):null,Pa=(Bn==="picture-card"||Bn==="picture-circle")&&jr!=="uploading"&&ce.createElement("span",{className:`${sn}-list-item-actions`},Ci,jr==="done"&&ni,pi),{getPrefixCls:_r}=ce.useContext(jt.E_),Xr=_r(),Pi=ce.createElement("div",{className:ar},oi,Ti,Pa,ui&&ce.createElement(Oe.default,{motionName:`${Xr}-fade`,visible:jr==="uploading",motionDeadline:2e3},Ra=>{let{className:ka}=Ra;const ha="percent"in ot?ce.createElement(hn.Z,Object.assign({},nn,{type:"line",percent:ot.percent,"aria-label":ot["aria-label"],"aria-labelledby":ot["aria-labelledby"]})):null;return ce.createElement("div",{className:dt()(`${sn}-list-item-progress`,ka)},ha)})),Hi=ot.response&&typeof ot.response=="string"?ot.response:((ti=ot.error)===null||ti===void 0?void 0:ti.statusText)||((vi=ot.error)===null||vi===void 0?void 0:vi.message)||un.uploadError,Na=jr==="error"?ce.createElement(On.Z,{title:Hi,getPopupContainer:Ra=>Ra.parentNode},Pi):Pi;return ce.createElement("div",{className:dt()(`${sn}-list-item-container`,fn),style:In,ref:Jt},Mn?Mn(Na,ot,tn,{download:yr.bind(null,ot),preview:Nr.bind(null,ot),remove:di.bind(null,ot)}):Na)});const tr=(Nt,Jt)=>{const{listType:sn="text",previewFile:fn=Ae,onPreview:In,onDownload:un,onRemove:Bn,locale:ot,iconRender:tn,isImageUrl:nn=cn,prefixCls:En,items:gn=[],showPreviewIcon:Mn=!0,showRemoveIcon:kn=!0,showDownloadIcon:Vn=!1,removeIcon:qn,previewIcon:pr,downloadIcon:Tr,progress:Jr={size:[-1,2],showInfo:!1},appendAction:ai,appendActionVisible:Nr=!0,itemRender:yr,disabled:di}=Nt,ti=(0,ut.Z)(),[vi,Wr]=ce.useState(!1);ce.useEffect(()=>{sn!=="picture"&&sn!=="picture-card"&&sn!=="picture-circle"||(gn||[]).forEach(mi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(mi.originFileObj instanceof File||mi.originFileObj instanceof Blob)||mi.thumbUrl!==void 0||(mi.thumbUrl="",fn&&fn(mi.originFileObj).then(Ci=>{mi.thumbUrl=Ci||"",ti()}))})},[sn,gn,fn]),ce.useEffect(()=>{Wr(!0)},[]);const jr=(mi,Ci)=>{if(In)return Ci==null||Ci.preventDefault(),In(mi)},yi=mi=>{typeof un=="function"?un(mi):mi.url&&window.open(mi.url)},ui=mi=>{Bn==null||Bn(mi)},$i=mi=>{if(tn)return tn(mi,sn);const Ci=mi.status==="uploading",Pa=nn&&nn(mi)?ce.createElement(se,null):ce.createElement(Sn,null);let _r=Ci?ce.createElement($t.Z,null):ce.createElement(ye,null);return sn==="picture"?_r=Ci?ce.createElement($t.Z,null):Pa:(sn==="picture-card"||sn==="picture-circle")&&(_r=Ci?ot.uploading:Pa),_r},sa=(mi,Ci,Pa,_r)=>{const Xr={type:"text",size:"small",title:_r,onClick:Pi=>{Ci(),(0,_e.l$)(mi)&&mi.props.onClick&&mi.props.onClick(Pi)},className:`${Pa}-list-item-action`,disabled:di};if((0,_e.l$)(mi)){const Pi=(0,_e.Tm)(mi,Object.assign(Object.assign({},mi.props),{onClick:()=>{}}));return ce.createElement(St.ZP,Object.assign({},Xr,{icon:Pi}))}return ce.createElement(St.ZP,Object.assign({},Xr),ce.createElement("span",null,mi))};ce.useImperativeHandle(Jt,()=>({handlePreview:jr,handleDownload:yi}));const{getPrefixCls:oi}=ce.useContext(jt.E_),ar=oi("upload",En),rr=oi(),pi=dt()(`${ar}-list`,`${ar}-list-${sn}`),ni=(0,De.Z)(gn.map(mi=>({key:mi.uid,file:mi})));let Ai={motionDeadline:2e3,motionName:`${ar}-${sn==="picture-card"||sn==="picture-circle"?"animate-inline":"animate"}`,keys:ni,motionAppear:vi};const Ti=ce.useMemo(()=>{const mi=Object.assign({},(0,Ge.Z)(rr));return delete mi.onAppearEnd,delete mi.onEnterEnd,delete mi.onLeaveEnd,mi},[rr]);return sn!=="picture-card"&&sn!=="picture-circle"&&(Ai=Object.assign(Object.assign({},Ti),Ai)),ce.createElement("div",{className:pi},ce.createElement(Oe.CSSMotionList,Object.assign({},Ai,{component:!1}),mi=>{let{key:Ci,file:Pa,className:_r,style:Xr}=mi;return ce.createElement(Kn,{key:Ci,locale:ot,prefixCls:ar,className:_r,style:Xr,file:Pa,items:gn,progress:Jr,listType:sn,isImgUrl:nn,showPreviewIcon:Mn,showRemoveIcon:kn,showDownloadIcon:Vn,removeIcon:qn,previewIcon:pr,downloadIcon:Tr,iconRender:$i,actionIconRender:sa,itemRender:yr,onPreview:jr,onDownload:yi,onClose:ui})}),ai&&ce.createElement(Oe.default,Object.assign({},Ai,{visible:Nr,forceRender:!0}),mi=>{let{className:Ci,style:Pa}=mi;return(0,_e.Tm)(ai,_r=>({className:dt()(_r.className,Ci),style:Object.assign(Object.assign(Object.assign({},Pa),{pointerEvents:Ci?"none":void 0}),_r.style)}))}))};var Un=ce.forwardRef(tr),Cr=ae(17313),Rr=ae(8378),$r=ae(83116),vr=ae(37613),Hr=Nt=>{const{componentCls:Jt,iconCls:sn}=Nt;return{[`${Jt}-wrapper`]:{[`${Jt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Nt.colorFillAlter,border:`${Nt.lineWidth}px dashed ${Nt.colorBorder}`,borderRadius:Nt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Nt.motionDurationSlow}`,[Jt]:{padding:`${Nt.padding}px 0`},[`${Jt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Jt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Jt}-disabled):hover`]:{borderColor:Nt.colorPrimaryHover},[`p${Jt}-drag-icon`]:{marginBottom:Nt.margin,[sn]:{color:Nt.colorPrimary,fontSize:Nt.uploadThumbnailSize}},[`p${Jt}-text`]:{margin:`0 0 ${Nt.marginXXS}px`,color:Nt.colorTextHeading,fontSize:Nt.fontSizeLG},[`p${Jt}-hint`]:{color:Nt.colorTextDescription,fontSize:Nt.fontSize},[`&${Jt}-disabled`]:{cursor:"not-allowed",[`p${Jt}-drag-icon ${sn},
|
|
|
p${Jt}-text,
|
|
|
p${Jt}-hint
|
|
|
`]:{color:Nt.colorTextDisabled}}}}}},Zn=Nt=>{const{componentCls:Jt,antCls:sn,iconCls:fn,fontSize:In,lineHeight:un}=Nt,Bn=`${Jt}-list-item`,ot=`${Bn}-actions`,tn=`${Bn}-action`,nn=Math.round(In*un);return{[`${Jt}-wrapper`]:{[`${Jt}-list`]:Object.assign(Object.assign({},(0,Cr.dF)()),{lineHeight:Nt.lineHeight,[Bn]:{position:"relative",height:Nt.lineHeight*In,marginTop:Nt.marginXS,fontSize:In,display:"flex",alignItems:"center",transition:`background-color ${Nt.motionDurationSlow}`,"&:hover":{backgroundColor:Nt.controlItemBgHover},[`${Bn}-name`]:Object.assign(Object.assign({},Cr.vS),{padding:`0 ${Nt.paddingXS}px`,lineHeight:un,flex:"auto",transition:`all ${Nt.motionDurationSlow}`}),[ot]:{[tn]:{opacity:0},[`${tn}${sn}-btn-sm`]:{height:nn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${tn}:focus-visible,
|
|
|
&.picture ${tn}
|
|
|
`]:{opacity:1},[fn]:{color:Nt.actionsColor,transition:`all ${Nt.motionDurationSlow}`},[`&:hover ${fn}`]:{color:Nt.colorText}},[`${Jt}-icon ${fn}`]:{color:Nt.colorTextDescription,fontSize:In},[`${Bn}-progress`]:{position:"absolute",bottom:-Nt.uploadProgressOffset,width:"100%",paddingInlineStart:In+Nt.paddingXS,fontSize:In,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Bn}:hover ${tn}`]:{opacity:1,color:Nt.colorText},[`${Bn}-error`]:{color:Nt.colorError,[`${Bn}-name, ${Jt}-icon ${fn}`]:{color:Nt.colorError},[ot]:{[`${fn}, ${fn}:hover`]:{color:Nt.colorError},[tn]:{opacity:1}}},[`${Jt}-list-item-container`]:{transition:`opacity ${Nt.motionDurationSlow}, height ${Nt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Or=ae(36237),br=ae(1950);const hr=new Or.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yr=new Or.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Ir=Nt=>{const{componentCls:Jt}=Nt,sn=`${Jt}-animate-inline`;return[{[`${Jt}-wrapper`]:{[`${sn}-appear, ${sn}-enter, ${sn}-leave`]:{animationDuration:Nt.motionDurationSlow,animationTimingFunction:Nt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${sn}-appear, ${sn}-enter`]:{animationName:hr},[`${sn}-leave`]:{animationName:Yr}}},{[`${Jt}-wrapper`]:(0,br.J$)(Nt)},hr,Yr]},or=ae(30071),Jn=ae(64993);const Dr=Nt=>{const{componentCls:Jt,iconCls:sn,uploadThumbnailSize:fn,uploadProgressOffset:In}=Nt,un=`${Jt}-list`,Bn=`${un}-item`;return{[`${Jt}-wrapper`]:{[`
|
|
|
${un}${un}-picture,
|
|
|
${un}${un}-picture-card,
|
|
|
${un}${un}-picture-circle
|
|
|
`]:{[Bn]:{position:"relative",height:fn+Nt.lineWidth*2+Nt.paddingXS*2,padding:Nt.paddingXS,border:`${Nt.lineWidth}px ${Nt.lineType} ${Nt.colorBorder}`,borderRadius:Nt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Bn}-thumbnail`]:Object.assign(Object.assign({},Cr.vS),{width:fn,height:fn,lineHeight:`${fn+Nt.paddingSM}px`,textAlign:"center",flex:"none",[sn]:{fontSize:Nt.fontSizeHeading2,color:Nt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Bn}-progress`]:{bottom:In,width:`calc(100% - ${Nt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:fn+Nt.paddingXS}},[`${Bn}-error`]:{borderColor:Nt.colorError,[`${Bn}-thumbnail ${sn}`]:{[`svg path[fill='${or.blue[0]}']`]:{fill:Nt.colorErrorBg},[`svg path[fill='${or.blue.primary}']`]:{fill:Nt.colorError}}},[`${Bn}-uploading`]:{borderStyle:"dashed",[`${Bn}-name`]:{marginBottom:In}}},[`${un}${un}-picture-circle ${Bn}`]:{[`&, &::before, ${Bn}-thumbnail`]:{borderRadius:"50%"}}}}},_t=Nt=>{const{componentCls:Jt,iconCls:sn,fontSizeLG:fn,colorTextLightSolid:In}=Nt,un=`${Jt}-list`,Bn=`${un}-item`,ot=Nt.uploadPicCardSize;return{[`
|
|
|
${Jt}-wrapper${Jt}-picture-card-wrapper,
|
|
|
${Jt}-wrapper${Jt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Cr.dF)()),{display:"inline-block",width:"100%",[`${Jt}${Jt}-select`]:{width:ot,height:ot,marginInlineEnd:Nt.marginXS,marginBottom:Nt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Nt.colorFillAlter,border:`${Nt.lineWidth}px dashed ${Nt.colorBorder}`,borderRadius:Nt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Nt.motionDurationSlow}`,[`> ${Jt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Jt}-disabled):hover`]:{borderColor:Nt.colorPrimary}},[`${un}${un}-picture-card, ${un}${un}-picture-circle`]:{[`${un}-item-container`]:{display:"inline-block",width:ot,height:ot,marginBlock:`0 ${Nt.marginXS}px`,marginInline:`0 ${Nt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Bn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Nt.paddingXS*2}px)`,height:`calc(100% - ${Nt.paddingXS*2}px)`,backgroundColor:Nt.colorBgMask,opacity:0,transition:`all ${Nt.motionDurationSlow}`,content:'" "'}},[`${Bn}:hover`]:{[`&::before, ${Bn}-actions`]:{opacity:1}},[`${Bn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Nt.motionDurationSlow}`,[`${sn}-eye, ${sn}-download, ${sn}-delete`]:{zIndex:10,width:fn,margin:`0 ${Nt.marginXXS}px`,fontSize:fn,cursor:"pointer",transition:`all ${Nt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Bn}-actions, ${Bn}-actions:hover`]:{[`${sn}-eye, ${sn}-download, ${sn}-delete`]:{color:new Jn.C(In).setAlpha(.65).toRgbString(),"&:hover":{color:In}}},[`${Bn}-thumbnail, ${Bn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Bn}-name`]:{display:"none",textAlign:"center"},[`${Bn}-file + ${Bn}-name`]:{position:"absolute",bottom:Nt.margin,display:"block",width:`calc(100% - ${Nt.paddingXS*2}px)`},[`${Bn}-uploading`]:{[`&${Bn}`]:{backgroundColor:Nt.colorFillAlter},[`&::before, ${sn}-eye, ${sn}-download, ${sn}-delete`]:{display:"none"}},[`${Bn}-progress`]:{bottom:Nt.marginXL,width:`calc(100% - ${Nt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Jt}-wrapper${Jt}-picture-circle-wrapper`]:{[`${Jt}${Jt}-select`]:{borderRadius:"50%"}}}};var nt=Nt=>{const{componentCls:Jt}=Nt;return{[`${Jt}-rtl`]:{direction:"rtl"}}};const Ye=Nt=>{const{componentCls:Jt,colorTextDisabled:sn}=Nt;return{[`${Jt}-wrapper`]:Object.assign(Object.assign({},(0,Cr.Wf)(Nt)),{[Jt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Jt}-select`]:{display:"inline-block"},[`${Jt}-disabled`]:{color:sn,cursor:"not-allowed"}})}};var qe=(0,$r.Z)("Upload",Nt=>{const{fontSizeHeading3:Jt,fontSize:sn,lineHeight:fn,lineWidth:In,controlHeightLG:un}=Nt,Bn=Math.round(sn*fn),ot=(0,vr.TS)(Nt,{uploadThumbnailSize:Jt*2,uploadProgressOffset:Bn/2+In,uploadPicCardSize:un*2.55});return[Ye(ot),Hr(ot),Dr(ot),_t(ot),Zn(ot),Ir(ot),nt(ot),(0,Rr.Z)(ot)]},Nt=>({actionsColor:Nt.colorTextDescription})),Mt=function(Nt,Jt,sn,fn){function In(un){return un instanceof sn?un:new sn(function(Bn){Bn(un)})}return new(sn||(sn=Promise))(function(un,Bn){function ot(En){try{nn(fn.next(En))}catch(gn){Bn(gn)}}function tn(En){try{nn(fn.throw(En))}catch(gn){Bn(gn)}}function nn(En){En.done?un(En.value):In(En.value).then(ot,tn)}nn((fn=fn.apply(Nt,Jt||[])).next())})};const Ut=`__LIST_IGNORE_${Date.now()}__`,An=(Nt,Jt)=>{const{fileList:sn,defaultFileList:fn,onRemove:In,showUploadList:un=!0,listType:Bn="text",onPreview:ot,onDownload:tn,onChange:nn,onDrop:En,previewFile:gn,disabled:Mn,locale:kn,iconRender:Vn,isImageUrl:qn,progress:pr,prefixCls:Tr,className:Jr,type:ai="select",children:Nr,style:yr,itemRender:di,maxCount:ti,data:vi={},multiple:Wr=!1,action:jr="",accept:yi="",supportServerRender:ui=!0,rootClassName:$i}=Nt,sa=ce.useContext(it.Z),oi=Mn!=null?Mn:sa,[ar,rr]=(0,Tt.Z)(fn||[],{value:sn,postState:la=>la!=null?la:[]}),[pi,ni]=ce.useState("drop"),ki=ce.useRef(null);ce.useMemo(()=>{const la=Date.now();(sn||[]).forEach((ya,po)=>{!ya.uid&&!Object.isFrozen(ya)&&(ya.uid=`__AUTO__${la}_${po}__`)})},[sn]);const Ai=(la,ya,po)=>{let La=(0,De.Z)(ya),$a=!1;ti===1?La=La.slice(-1):ti&&($a=La.length>ti,La=La.slice(0,ti)),(0,Xt.flushSync)(()=>{rr(La)});const Ya={file:la,fileList:La};po&&(Ya.event=po),(!$a||La.some(Za=>Za.uid===la.uid))&&(0,Xt.flushSync)(()=>{nn==null||nn(Ya)})},Ti=(la,ya)=>Mt(void 0,void 0,void 0,function*(){const{beforeUpload:po,transformFile:La}=Nt;let $a=la;if(po){const Ya=yield po(la,ya);if(Ya===!1)return!1;if(delete la[Ut],Ya===Ut)return Object.defineProperty(la,Ut,{value:!0,configurable:!0}),!1;typeof Ya=="object"&&Ya&&($a=Ya)}return La&&($a=yield La($a)),$a}),mi=la=>{const ya=la.filter($a=>!$a.file[Ut]);if(!ya.length)return;const po=ya.map($a=>bt($a.file));let La=(0,De.Z)(ar);po.forEach($a=>{La=rt($a,La)}),po.forEach(($a,Ya)=>{let Za=$a;if(ya[Ya].parsedFile)$a.status="uploading";else{const{originFileObj:Oi}=$a;let ua;try{ua=new File([Oi],Oi.name,{type:Oi.type})}catch(ra){ua=new Blob([Oi],{type:Oi.type}),ua.name=Oi.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=$a.uid,Za=ua}Ai(Za,La)})},Ci=(la,ya,po)=>{try{typeof la=="string"&&(la=JSON.parse(la))}catch(Ya){}if(!Dt(ya,ar))return;const La=bt(ya);La.status="done",La.percent=100,La.response=la,La.xhr=po;const $a=rt(La,ar);Ai(La,$a)},Pa=(la,ya)=>{if(!Dt(ya,ar))return;const po=bt(ya);po.status="uploading",po.percent=la.percent;const La=rt(po,ar);Ai(po,La,la)},_r=(la,ya,po)=>{if(!Dt(po,ar))return;const La=bt(po);La.error=la,La.response=ya,La.status="error";const $a=rt(La,ar);Ai(La,$a)},Xr=la=>{let ya;Promise.resolve(typeof In=="function"?In(la):In).then(po=>{var La;if(po===!1)return;const $a=xn(la,ar);$a&&(ya=Object.assign(Object.assign({},la),{status:"removed"}),ar==null||ar.forEach(Ya=>{const Za=ya.uid!==void 0?"uid":"name";Ya[Za]===ya[Za]&&!Object.isFrozen(Ya)&&(Ya.status="removed")}),(La=ki.current)===null||La===void 0||La.abort(ya),Ai(ya,$a))})},Pi=la=>{ni(la.type),la.type==="drop"&&(En==null||En(la))};ce.useImperativeHandle(Jt,()=>({onBatchStart:mi,onSuccess:Ci,onProgress:Pa,onError:_r,fileList:ar,upload:ki.current}));const{getPrefixCls:Hi,direction:Na,upload:Ra}=ce.useContext(jt.E_),ka=Hi("upload",Tr),ha=Object.assign(Object.assign({onBatchStart:mi,onError:_r,onProgress:Pa,onSuccess:Ci},Nt),{data:vi,multiple:Wr,action:jr,accept:yi,supportServerRender:ui,prefixCls:ka,disabled:oi,beforeUpload:Ti,onChange:void 0});delete ha.className,delete ha.style,(!Nr||oi)&&delete ha.id;const[Qa,Ja]=qe(ka),[Gr]=(0,Ce.Z)("Upload",Et.Z.Upload),{showRemoveIcon:Zr,showPreviewIcon:Kr,showDownloadIcon:fi,removeIcon:ga,previewIcon:Fa,downloadIcon:Ua}=typeof un=="boolean"?{}:un,za=(la,ya)=>un?ce.createElement(Un,{prefixCls:ka,listType:Bn,items:ar,previewFile:gn,onPreview:ot,onDownload:tn,onRemove:Xr,showRemoveIcon:!oi&&Zr,showPreviewIcon:Kr,showDownloadIcon:fi,removeIcon:ga,previewIcon:Fa,downloadIcon:Ua,iconRender:Vn,locale:Object.assign(Object.assign({},Gr),kn),isImageUrl:qn,progress:pr,appendAction:la,appendActionVisible:ya,itemRender:di,disabled:oi}):la,Ta=dt()(`${ka}-wrapper`,Jr,$i,Ja,Ra==null?void 0:Ra.className,{[`${ka}-rtl`]:Na==="rtl",[`${ka}-picture-card-wrapper`]:Bn==="picture-card",[`${ka}-picture-circle-wrapper`]:Bn==="picture-circle"}),lo=Object.assign(Object.assign({},Ra==null?void 0:Ra.style),yr);if(ai==="drag"){const la=dt()(Ja,ka,`${ka}-drag`,{[`${ka}-drag-uploading`]:ar.some(ya=>ya.status==="uploading"),[`${ka}-drag-hover`]:pi==="dragover",[`${ka}-disabled`]:oi,[`${ka}-rtl`]:Na==="rtl"});return Qa(ce.createElement("span",{className:Ta},ce.createElement("div",{className:la,style:lo,onDrop:Pi,onDragOver:Pi,onDragLeave:Pi},ce.createElement(Lt,Object.assign({},ha,{ref:ki,className:`${ka}-btn`}),ce.createElement("div",{className:`${ka}-drag-container`},Nr))),za()))}const jo=dt()(ka,`${ka}-select`,{[`${ka}-disabled`]:oi}),hs=(la=>ce.createElement("div",{className:jo,style:la},ce.createElement(Lt,Object.assign({},ha,{ref:ki}))))(Nr?void 0:{display:"none"});return Qa(Bn==="picture-card"||Bn==="picture-circle"?ce.createElement("span",{className:Ta},za(hs,!!Nr)):ce.createElement("span",{className:Ta},hs,za()))};var ln=ce.forwardRef(An),Nn=function(Nt,Jt){var sn={};for(var fn in Nt)Object.prototype.hasOwnProperty.call(Nt,fn)&&Jt.indexOf(fn)<0&&(sn[fn]=Nt[fn]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,fn=Object.getOwnPropertySymbols(Nt);In<fn.length;In++)Jt.indexOf(fn[In])<0&&Object.prototype.propertyIsEnumerable.call(Nt,fn[In])&&(sn[fn[In]]=Nt[fn[In]]);return sn},Xn=ce.forwardRef((Nt,Jt)=>{var{style:sn,height:fn}=Nt,In=Nn(Nt,["style","height"]);return ce.createElement(ln,Object.assign({ref:Jt},In,{type:"drag",style:Object.assign(Object.assign({},sn),{height:fn})}))});const rn=ln;rn.Dragger=Xn,rn.LIST_IGNORE=Ut;var Tn=rn},99498:function(zn,en,ae){(function(ce){ce(ae(89780))})(function(ce){ce.defineOption("placeholder","",function(xe,Me,Ke){var vt=Ke&&Ke!=ce.Init;if(Me&&!vt)xe.on("blur",be),xe.on("change",ke),xe.on("swapDoc",ke),ce.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){dt(xe)}),ke(xe);else if(!Me&&vt){xe.off("blur",be),xe.off("change",ke),xe.off("swapDoc",ke),ce.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),De(xe);var Pe=xe.getWrapperElement();Pe.className=Pe.className.replace(" CodeMirror-empty","")}Me&&!xe.hasFocus()&&be(xe)});function De(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function Te(xe){De(xe);var Me=xe.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=xe.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var Ke=xe.getOption("placeholder");typeof Ke=="string"&&(Ke=document.createTextNode(Ke)),Me.appendChild(Ke),xe.display.lineSpace.insertBefore(Me,xe.display.lineSpace.firstChild)}function dt(xe){setTimeout(function(){var Me=!1,Ke=xe.getInputField();Ke.nodeName=="TEXTAREA"?Me=!Ke.value:xe.lineCount()==1&&(Me=!/[^\u200b]/.test(Ke.querySelector(".CodeMirror-line").textContent)),Me?Te(xe):De(xe)},20)}function be(xe){pe(xe)&&Te(xe)}function ke(xe){var Me=xe.getWrapperElement(),Ke=pe(xe);Me.className=Me.className.replace(" CodeMirror-empty","")+(Ke?" CodeMirror-empty":""),Ke?Te(xe):De(xe)}function pe(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},25717:function(zn,en,ae){(function(ce){ce(ae(89780))})(function(ce){var De={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Te=ce.Pos;ce.defineOption("autoCloseBrackets",!1,function(Je,tt,yt){yt&&yt!=ce.Init&&(Je.removeKeyMap(be),Je.state.closeBrackets=null),tt&&(ke(dt(tt,"pairs")),Je.state.closeBrackets=tt,Je.addKeyMap(be))});function dt(Je,tt){return tt=="pairs"&&typeof Je=="string"?Je:typeof Je=="object"&&Je[tt]!=null?Je[tt]:De[tt]}var be={Backspace:Me,Enter:Ke};function ke(Je){for(var tt=0;tt<Je.length;tt++){var yt=Je.charAt(tt),wt="'"+yt+"'";be[wt]||(be[wt]=pe(yt))}}ke(De.pairs+"`");function pe(Je){return function(tt){return Pe(tt,Je)}}function xe(Je){var tt=Je.state.closeBrackets;if(!tt||tt.override)return tt;var yt=Je.getModeAt(Je.getCursor());return yt.closeBrackets||tt}function Me(Je){var tt=xe(Je);if(!tt||Je.getOption("disableInput"))return ce.Pass;for(var yt=dt(tt,"pairs"),wt=Je.listSelections(),It=0;It<wt.length;It++){if(!wt[It].empty())return ce.Pass;var gt=Be(Je,wt[It].head);if(!gt||yt.indexOf(gt)%2!=0)return ce.Pass}for(var It=wt.length-1;It>=0;It--){var st=wt[It].head;Je.replaceRange("",Te(st.line,st.ch-1),Te(st.line,st.ch+1),"+delete")}}function Ke(Je){var tt=xe(Je),yt=tt&&dt(tt,"explode");if(!yt||Je.getOption("disableInput"))return ce.Pass;for(var wt=Je.listSelections(),It=0;It<wt.length;It++){if(!wt[It].empty())return ce.Pass;var gt=Be(Je,wt[It].head);if(!gt||yt.indexOf(gt)%2!=0)return ce.Pass}Je.operation(function(){var st=Je.lineSeparator()||`
|
|
|
`;Je.replaceSelection(st+st,null),Je.execCommand("goCharLeft"),wt=Je.listSelections();for(var ze=0;ze<wt.length;ze++){var he=wt[ze].head.line;Je.indentLine(he,null,!0),Je.indentLine(he+1,null,!0)}})}function vt(Je){var tt=ce.cmpPos(Je.anchor,Je.head)>0;return{anchor:new Te(Je.anchor.line,Je.anchor.ch+(tt?-1:1)),head:new Te(Je.head.line,Je.head.ch+(tt?1:-1))}}function Pe(Je,tt){var yt=xe(Je);if(!yt||Je.getOption("disableInput"))return ce.Pass;var wt=dt(yt,"pairs"),It=wt.indexOf(tt);if(It==-1)return ce.Pass;for(var gt=dt(yt,"closeBefore"),st=dt(yt,"triples"),ze=wt.charAt(It+1)==tt,he=Je.listSelections(),je=It%2==0,Xe,Qe=0;Qe<he.length;Qe++){var Ue=he[Qe],mt=Ue.head,Le,Bt=Je.getRange(mt,Te(mt.line,mt.ch+1));if(je&&!Ue.empty())Le="surround";else if((ze||!je)&&Bt==tt)ze&&et(Je,mt)?Le="both":st.indexOf(tt)>=0&&Je.getRange(mt,Te(mt.line,mt.ch+3))==tt+tt+tt?Le="skipThree":Le="skip";else if(ze&&mt.ch>1&&st.indexOf(tt)>=0&&Je.getRange(Te(mt.line,mt.ch-2),mt)==tt+tt){if(mt.ch>2&&/\bstring/.test(Je.getTokenTypeAt(Te(mt.line,mt.ch-2))))return ce.Pass;Le="addFour"}else if(ze){var at=mt.ch==0?" ":Je.getRange(Te(mt.line,mt.ch-1),mt);if(!ce.isWordChar(Bt)&&at!=tt&&!ce.isWordChar(at))Le="both";else return ce.Pass}else if(je&&(Bt.length===0||/\s/.test(Bt)||gt.indexOf(Bt)>-1))Le="both";else return ce.Pass;if(!Xe)Xe=Le;else if(Xe!=Le)return ce.Pass}var Wt=It%2?wt.charAt(It-1):tt,Lt=It%2?tt:wt.charAt(It+1);Je.operation(function(){if(Xe=="skip")Je.execCommand("goCharRight");else if(Xe=="skipThree")for(var Tt=0;Tt<3;Tt++)Je.execCommand("goCharRight");else if(Xe=="surround"){for(var Xt=Je.getSelections(),Tt=0;Tt<Xt.length;Tt++)Xt[Tt]=Wt+Xt[Tt]+Lt;Je.replaceSelections(Xt,"around"),Xt=Je.listSelections().slice();for(var Tt=0;Tt<Xt.length;Tt++)Xt[Tt]=vt(Xt[Tt]);Je.setSelections(Xt)}else Xe=="both"?(Je.replaceSelection(Wt+Lt,null),Je.triggerElectric(Wt+Lt),Je.execCommand("goCharLeft")):Xe=="addFour"&&(Je.replaceSelection(Wt+Wt+Wt+Wt,"before"),Je.execCommand("goCharRight"))})}function Be(Je,tt){var yt=Je.getRange(Te(tt.line,tt.ch-1),Te(tt.line,tt.ch+1));return yt.length==2?yt:null}function et(Je,tt){var yt=Je.getTokenAt(Te(tt.line,tt.ch+1));return/\bstring/.test(yt.type)&&yt.start==tt.ch&&(tt.ch==0||!/\bstring/.test(Je.getTokenTypeAt(tt)))}})},6313:function(zn,en,ae){(function(ce){ce(ae(89780),ae(32855))})(function(ce){ce.defineOption("autoCloseTags",!1,function(Me,Ke,vt){if(vt!=ce.Init&&vt&&Me.removeKeyMap("autoCloseTags"),!!Ke){var Pe={name:"autoCloseTags"};(typeof Ke!="object"||Ke.whenClosing!==!1)&&(Pe["'/'"]=function(Be){return ke(Be)}),(typeof Ke!="object"||Ke.whenOpening!==!1)&&(Pe["'>'"]=function(Be){return dt(Be)}),Me.addKeyMap(Pe)}});var De=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Te=["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 dt(Me){if(Me.getOption("disableInput"))return ce.Pass;for(var Ke=Me.listSelections(),vt=[],Pe=Me.getOption("autoCloseTags"),Be=0;Be<Ke.length;Be++){if(!Ke[Be].empty())return ce.Pass;var et=Ke[Be].head,Je=Me.getTokenAt(et),tt=ce.innerMode(Me.getMode(),Je.state),yt=tt.state,wt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(yt),It=wt&&wt.name;if(!It)return ce.Pass;var gt=tt.mode.configuration=="html",st=typeof Pe=="object"&&Pe.dontCloseTags||gt&&De,ze=typeof Pe=="object"&&Pe.indentTags||gt&&Te;Je.end>et.ch&&(It=It.slice(0,It.length-Je.end+et.ch));var he=It.toLowerCase();if(!It||Je.type=="string"&&(Je.end!=et.ch||!/[\"\']/.test(Je.string.charAt(Je.string.length-1))||Je.string.length==1)||Je.type=="tag"&&wt.close||Je.string.indexOf("/")==et.ch-Je.start-1||st&&pe(st,he)>-1||xe(Me,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(yt)||[],It,et,!0))return ce.Pass;var je=typeof Pe=="object"&&Pe.emptyTags;if(je&&pe(je,It)>-1){vt[Be]={text:"/>",newPos:ce.Pos(et.line,et.ch+2)};continue}var Xe=ze&&pe(ze,he)>-1;vt[Be]={indent:Xe,text:">"+(Xe?`
|
|
|
|
|
|
`:"")+"</"+It+">",newPos:Xe?ce.Pos(et.line+1,0):ce.Pos(et.line,et.ch+1)}}for(var Qe=typeof Pe=="object"&&Pe.dontIndentOnAutoClose,Be=Ke.length-1;Be>=0;Be--){var Ue=vt[Be];Me.replaceRange(Ue.text,Ke[Be].head,Ke[Be].anchor,"+insert");var mt=Me.listSelections().slice(0);mt[Be]={head:Ue.newPos,anchor:Ue.newPos},Me.setSelections(mt),!Qe&&Ue.indent&&(Me.indentLine(Ue.newPos.line,null,!0),Me.indentLine(Ue.newPos.line+1,null,!0))}}function be(Me,Ke){for(var vt=Me.listSelections(),Pe=[],Be=Ke?"/":"</",et=Me.getOption("autoCloseTags"),Je=typeof et=="object"&&et.dontIndentOnSlash,tt=0;tt<vt.length;tt++){if(!vt[tt].empty())return ce.Pass;var yt=vt[tt].head,wt=Me.getTokenAt(yt),It=ce.innerMode(Me.getMode(),wt.state),gt=It.state;if(Ke&&(wt.type=="string"||wt.string.charAt(0)!="<"||wt.start!=yt.ch-1))return ce.Pass;var st,ze=It.mode.name!="xml"&&Me.getMode().name=="htmlmixed";if(ze&&It.mode.name=="javascript")st=Be+"script";else if(ze&&It.mode.name=="css")st=Be+"style";else{var he=It.mode.xmlCurrentContext&&It.mode.xmlCurrentContext(gt);if(!he||he.length&&xe(Me,he,he[he.length-1],yt))return ce.Pass;st=Be+he[he.length-1]}Me.getLine(yt.line).charAt(wt.end)!=">"&&(st+=">"),Pe[tt]=st}if(Me.replaceSelections(Pe),vt=Me.listSelections(),!Je)for(var tt=0;tt<vt.length;tt++)(tt==vt.length-1||vt[tt].head.line<vt[tt+1].head.line)&&Me.indentLine(vt[tt].head.line)}function ke(Me){return Me.getOption("disableInput")?ce.Pass:be(Me,!0)}ce.commands.closeTag=function(Me){return be(Me)};function pe(Me,Ke){if(Me.indexOf)return Me.indexOf(Ke);for(var vt=0,Pe=Me.length;vt<Pe;++vt)if(Me[vt]==Ke)return vt;return-1}function xe(Me,Ke,vt,Pe,Be){if(!ce.scanForClosingTag)return!1;var et=Math.min(Me.lastLine()+1,Pe.line+500),Je=ce.scanForClosingTag(Me,Pe,null,et);if(!Je||Je.tag!=vt)return!1;for(var tt=Be?1:0,yt=Ke.length-1;yt>=0&&Ke[yt]==vt;yt--)++tt;Pe=Je.to;for(var yt=1;yt<tt;yt++){var wt=ce.scanForClosingTag(Me,Pe,null,et);if(!wt||wt.tag!=vt)return!1;Pe=wt.to}return!0}})},32855:function(zn,en,ae){(function(ce){ce(ae(89780))})(function(ce){"use strict";var De=ce.Pos;function Te(yt,wt){return yt.line-wt.line||yt.ch-wt.ch}var dt="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",be=dt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("<(/?)(["+dt+"]["+be+"]*)","g");function pe(yt,wt,It,gt){this.line=wt,this.ch=It,this.cm=yt,this.text=yt.getLine(wt),this.min=gt?Math.max(gt.from,yt.firstLine()):yt.firstLine(),this.max=gt?Math.min(gt.to-1,yt.lastLine()):yt.lastLine()}function xe(yt,wt){var It=yt.cm.getTokenTypeAt(De(yt.line,wt));return It&&/\btag\b/.test(It)}function Me(yt){if(!(yt.line>=yt.max))return yt.ch=0,yt.text=yt.cm.getLine(++yt.line),!0}function Ke(yt){if(!(yt.line<=yt.min))return yt.text=yt.cm.getLine(--yt.line),yt.ch=yt.text.length,!0}function vt(yt){for(;;){var wt=yt.text.indexOf(">",yt.ch);if(wt==-1){if(Me(yt))continue;return}if(!xe(yt,wt+1)){yt.ch=wt+1;continue}var It=yt.text.lastIndexOf("/",wt),gt=It>-1&&!/\S/.test(yt.text.slice(It+1,wt));return yt.ch=wt+1,gt?"selfClose":"regular"}}function Pe(yt){for(;;){var wt=yt.ch?yt.text.lastIndexOf("<",yt.ch-1):-1;if(wt==-1){if(Ke(yt))continue;return}if(!xe(yt,wt+1)){yt.ch=wt;continue}ke.lastIndex=wt,yt.ch=wt;var It=ke.exec(yt.text);if(It&&It.index==wt)return It}}function Be(yt){for(;;){ke.lastIndex=yt.ch;var wt=ke.exec(yt.text);if(!wt){if(Me(yt))continue;return}if(!xe(yt,wt.index+1)){yt.ch=wt.index+1;continue}return yt.ch=wt.index+wt[0].length,wt}}function et(yt){for(;;){var wt=yt.ch?yt.text.lastIndexOf(">",yt.ch-1):-1;if(wt==-1){if(Ke(yt))continue;return}if(!xe(yt,wt+1)){yt.ch=wt;continue}var It=yt.text.lastIndexOf("/",wt),gt=It>-1&&!/\S/.test(yt.text.slice(It+1,wt));return yt.ch=wt+1,gt?"selfClose":"regular"}}function Je(yt,wt){for(var It=[];;){var gt=Be(yt),st,ze=yt.line,he=yt.ch-(gt?gt[0].length:0);if(!gt||!(st=vt(yt)))return;if(st!="selfClose")if(gt[1]){for(var je=It.length-1;je>=0;--je)if(It[je]==gt[2]){It.length=je;break}if(je<0&&(!wt||wt==gt[2]))return{tag:gt[2],from:De(ze,he),to:De(yt.line,yt.ch)}}else It.push(gt[2])}}function tt(yt,wt){for(var It=[];;){var gt=et(yt);if(!gt)return;if(gt=="selfClose"){Pe(yt);continue}var st=yt.line,ze=yt.ch,he=Pe(yt);if(!he)return;if(he[1])It.push(he[2]);else{for(var je=It.length-1;je>=0;--je)if(It[je]==he[2]){It.length=je;break}if(je<0&&(!wt||wt==he[2]))return{tag:he[2],from:De(yt.line,yt.ch),to:De(st,ze)}}}}ce.registerHelper("fold","xml",function(yt,wt){for(var It=new pe(yt,wt.line,0);;){var gt=Be(It);if(!gt||It.line!=wt.line)return;var st=vt(It);if(!st)return;if(!gt[1]&&st!="selfClose"){var ze=De(It.line,It.ch),he=Je(It,gt[2]);return he&&Te(he.from,ze)>0?{from:ze,to:he.from}:null}}}),ce.findMatchingTag=function(yt,wt,It){var gt=new pe(yt,wt.line,wt.ch,It);if(!(gt.text.indexOf(">")==-1&>.text.indexOf("<")==-1)){var st=vt(gt),ze=st&&De(gt.line,gt.ch),he=st&&Pe(gt);if(!(!st||!he||Te(gt,wt)>0)){var je={from:De(gt.line,gt.ch),to:ze,tag:he[2]};return st=="selfClose"?{open:je,close:null,at:"open"}:he[1]?{open:tt(gt,he[2]),close:je,at:"close"}:(gt=new pe(yt,ze.line,ze.ch,It),{open:je,close:Je(gt,he[2]),at:"open"})}}},ce.findEnclosingTag=function(yt,wt,It,gt){for(var st=new pe(yt,wt.line,wt.ch,It);;){var ze=tt(st,gt);if(!ze)break;var he=new pe(yt,wt.line,wt.ch,It),je=Je(he,ze.tag);if(je)return{open:ze,close:je}}},ce.scanForClosingTag=function(yt,wt,It,gt){var st=new pe(yt,wt.line,wt.ch,gt?{from:0,to:gt}:null);return Je(st,It)}})},89780:function(zn){(function(en,ae){zn.exports=ae()})(this,function(){"use strict";var en=navigator.userAgent,ae=navigator.platform,ce=/gecko\/\d/i.test(en),De=/MSIE \d/.test(en),Te=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(en),dt=/Edge\/(\d+)/.exec(en),be=De||Te||dt,ke=be&&(De?document.documentMode||6:+(dt||Te)[1]),pe=!dt&&/WebKit\//.test(en),xe=pe&&/Qt\/\d+\.\d+/.test(en),Me=!dt&&/Chrome\//.test(en),Ke=/Opera\//.test(en),vt=/Apple Computer/.test(navigator.vendor),Pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(en),Be=/PhantomJS/.test(en),et=!dt&&/AppleWebKit/.test(en)&&/Mobile\/\w+/.test(en),Je=/Android/.test(en),tt=et||Je||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(en),yt=et||/Mac/.test(ae),wt=/\bCrOS\b/.test(en),It=/win/i.test(ae),gt=Ke&&en.match(/Version\/(\d*\.\d*)/);gt&&(gt=Number(gt[1])),gt&>>=15&&(Ke=!1,pe=!0);var st=yt&&(xe||Ke&&(gt==null||gt<12.11)),ze=ce||be&&ke>=9;function he(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var je=function(x,z){var ne=x.className,te=he(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Xe(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function Qe(x,z){return Xe(x).appendChild(z)}function Ue(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var fe=0;fe<z.length;++fe)ie.appendChild(z[fe]);return ie}function mt(x,z,ne,te){var ie=Ue(x,z,ne,te);return ie.setAttribute("role","presentation"),ie}var Le;document.createRange?Le=function(x,z,ne,te){var ie=document.createRange();return ie.setEnd(te||x,ne),ie.setStart(x,z),ie}:Le=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ie){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function Bt(x,z){if(z.nodeType==3&&(z=z.parentNode),x.contains)return x.contains(z);do if(z.nodeType==11&&(z=z.host),z==x)return!0;while(z=z.parentNode)}function at(){var x;try{x=document.activeElement}catch(z){x=document.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function Wt(x,z){var ne=x.className;he(z).test(ne)||(x.className+=(ne?" ":"")+z)}function Lt(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!he(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var Tt=function(x){x.select()};et?Tt=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:be&&(Tt=function(x){try{x.select()}catch(z){}});function Xt(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function jt(x,z,ne){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(ne!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function it(x,z,ne,te,ie){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var fe=te||0,Se=ie||0;;){var Fe=x.indexOf(" ",fe);if(Fe<0||Fe>=z)return Se+(z-fe);Se+=Fe-fe,Se+=ne-Se%ne,fe=Fe+1}}var Ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Xt(this.onTimeout,this)};Ce.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Ce.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function Et(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var on=50,Yt={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},pt={origin:"*mouse"},Ft={origin:"+move"};function Sn(x,z,ne){for(var te=0,ie=0;;){var fe=x.indexOf(" ",te);fe==-1&&(fe=x.length);var Se=fe-te;if(fe==x.length||ie+Se>=z)return te+Math.min(Se,z-ie);if(ie+=fe-te,ie+=ne-ie%ne,te=fe+1,ie>=z)return te}}var $t=[""];function Pn(x){for(;$t.length<=x;)$t.push(Zt($t)+" ");return $t[x]}function Zt(x){return x[x.length-1]}function an(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function Ht(x,z,ne){for(var te=0,ie=ne(z);te<x.length&&ne(x[te])<=ie;)te++;x.splice(te,0,z)}function ye(){}function ue(x,z){var ne;return Object.create?ne=Object.create(x):(ye.prototype=x,ne=new ye),z&&jt(z,ne),ne}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function de(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||le.test(x))}function ge(x,z){return z?z.source.indexOf("\\w")>-1&&de(x)?!0:z.test(x):de(x)}function se(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Oe=/[\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 ut(x){return x.charCodeAt(0)>=768&&Oe.test(x)}function Ge(x,z,ne){for(;(ne<0?z>0:z<x.length)&&ut(x.charAt(z));)z+=ne;return z}function _e(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,fe=te<0?Math.ceil(ie):Math.floor(ie);if(fe==z)return x(fe)?z:ne;x(fe)?ne=fe:z=fe+te}}function St(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,fe=0;fe<x.length;++fe){var Se=x[fe];(Se.from<ne&&Se.to>z||z==ne&&Se.to==z)&&(te(Math.max(Se.from,z),Math.min(Se.to,ne),Se.level==1?"rtl":"ltr",fe),ie=!0)}ie||te(z,ne,"ltr")}var bt=null;function rt(x,z,ne){var te;bt=null;for(var ie=0;ie<x.length;++ie){var fe=x[ie];if(fe.from<z&&fe.to>z)return ie;fe.to==z&&(fe.from!=fe.to&&ne=="before"?te=ie:bt=ie),fe.from==z&&(fe.from!=fe.to&&ne!="before"?te=ie:bt=ie)}return te!=null?te:bt}var Dt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(ft){return ft<=247?x.charAt(ft):1424<=ft&&ft<=1524?"R":1536<=ft&&ft<=1785?z.charAt(ft-1536):1774<=ft&&ft<=2220?"r":8192<=ft&&ft<=8203?"w":ft==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,fe=/[LRr]/,Se=/[Lb1n]/,Fe=/[1n]/;function We(ft,Qt,pn){this.level=ft,this.from=Qt,this.to=pn}return function(ft,Qt){var pn=Qt=="ltr"?"L":"R";if(ft.length==0||Qt=="ltr"&&!te.test(ft))return!1;for(var jn=ft.length,$n=[],wr=0;wr<jn;++wr)$n.push(ne(ft.charCodeAt(wr)));for(var Ur=0,wi=pn;Ur<jn;++Ur){var zi=$n[Ur];zi=="m"?$n[Ur]=wi:wi=zi}for(var Yi=0,Ii=pn;Yi<jn;++Yi){var qi=$n[Yi];qi=="1"&&Ii=="r"?$n[Yi]="n":fe.test(qi)&&(Ii=qi,qi=="r"&&($n[Yi]="R"))}for(var Sa=1,Ma=$n[0];Sa<jn-1;++Sa){var go=$n[Sa];go=="+"&&Ma=="1"&&$n[Sa+1]=="1"?$n[Sa]="1":go==","&&Ma==$n[Sa+1]&&(Ma=="1"||Ma=="n")&&($n[Sa]=Ma),Ma=go}for(var bs=0;bs<jn;++bs){var Ml=$n[bs];if(Ml==",")$n[bs]="N";else if(Ml=="%"){var Vs=void 0;for(Vs=bs+1;Vs<jn&&$n[Vs]=="%";++Vs);for(var nu=bs&&$n[bs-1]=="!"||Vs<jn&&$n[Vs]=="1"?"1":"N",ru=bs;ru<Vs;++ru)$n[ru]=nu;bs=Vs-1}}for(var ml=0,iu=pn;ml<jn;++ml){var Ga=$n[ml];iu=="L"&&Ga=="1"?$n[ml]="L":fe.test(Ga)&&(iu=Ga)}for(var Qs=0;Qs<jn;++Qs)if(ie.test($n[Qs])){var Us=void 0;for(Us=Qs+1;Us<jn&&ie.test($n[Us]);++Us);for(var Js=(Qs?$n[Qs-1]:pn)=="L",sl=(Us<jn?$n[Us]:pn)=="L",Fc=Js==sl?Js?"L":"R":pn,mu=Qs;mu<Us;++mu)$n[mu]=Fc;Qs=Us-1}for(var Pl=[],es,xl=0;xl<jn;)if(Se.test($n[xl])){var Ed=xl;for(++xl;xl<jn&&Se.test($n[xl]);++xl);Pl.push(new We(0,Ed,xl))}else{var ac=xl,vc=Pl.length,Yu=Qt=="rtl"?1:0;for(++xl;xl<jn&&$n[xl]!="L";++xl);for(var gl=ac;gl<xl;)if(Fe.test($n[gl])){ac<gl&&(Pl.splice(vc,0,new We(1,ac,gl)),vc+=Yu);var zc=gl;for(++gl;gl<xl&&Fe.test($n[gl]);++gl);Pl.splice(vc,0,new We(2,zc,gl)),vc+=Yu,ac=gl}else++gl;ac<xl&&Pl.splice(vc,0,new We(1,ac,xl))}return Qt=="ltr"&&(Pl[0].level==1&&(es=ft.match(/^\s+/))&&(Pl[0].from=es[0].length,Pl.unshift(new We(0,0,es[0].length))),Zt(Pl).level==1&&(es=ft.match(/\s+$/))&&(Zt(Pl).to-=es[0].length,Pl.push(new We(0,jn-es[0].length,jn)))),Qt=="rtl"?Pl.reverse():Pl}}();function xn(x,z){var ne=x.order;return ne==null&&(ne=x.order=Dt(x.text,z)),ne}var xt=[],Rt=function(x,z,ne){if(x.addEventListener)x.addEventListener(z,ne,!1);else if(x.attachEvent)x.attachEvent("on"+z,ne);else{var te=x._handlers||(x._handlers={});te[z]=(te[z]||xt).concat(ne)}};function cn(x,z){return x._handlers&&x._handlers[z]||xt}function ct(x,z,ne){if(x.removeEventListener)x.removeEventListener(z,ne,!1);else if(x.detachEvent)x.detachEvent("on"+z,ne);else{var te=x._handlers,ie=te&&te[z];if(ie){var fe=Et(ie,ne);fe>-1&&(te[z]=ie.slice(0,fe).concat(ie.slice(fe+1)))}}}function Ae(x,z){var ne=cn(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie<ne.length;++ie)ne[ie].apply(null,te)}function Ve(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),Ae(x,ne||z.type,x,z),Kn(z)||z.codemirrorIgnore}function Kt(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var ne=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),te=0;te<z.length;++te)Et(ne,z[te])==-1&&ne.push(z[te])}function Gt(x,z){return cn(x,z).length>0}function hn(x){x.prototype.on=function(z,ne){Rt(this,z,ne)},x.prototype.off=function(z,ne){ct(this,z,ne)}}function On(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Ln(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Kn(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function tr(x){On(x),Ln(x)}function gr(x){return x.target||x.srcElement}function Un(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),yt&&x.ctrlKey&&z==1&&(z=3),z}var Cr=function(){if(be&&ke<9)return!1;var x=Ue("div");return"draggable"in x||"dragDrop"in x}(),Rr;function $r(x){if(Rr==null){var z=Ue("span","\u200B");Qe(x,Ue("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Rr=z.offsetWidth<=1&&z.offsetHeight>2&&!(be&&ke<8))}var ne=Rr?Ue("span","\u200B"):Ue("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var vr;function Er(x){if(vr!=null)return vr;var z=Qe(x,document.createTextNode("A\u062EA")),ne=Le(z,0,1).getBoundingClientRect(),te=Le(z,1,2).getBoundingClientRect();return Xe(x),!ne||ne.left==ne.right?!1:vr=te.right-ne.right<3}var Hr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(`
|
|
|
`,z);ie==-1&&(ie=x.length);var fe=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),Se=fe.indexOf("\r");Se!=-1?(ne.push(fe.slice(0,Se)),z+=Se+1):(ne.push(fe),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},wn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Zn=function(){var x=Ue("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),Or=null;function br(x){if(Or!=null)return Or;var z=Qe(x,Ue("span","x")),ne=z.getBoundingClientRect(),te=Le(z,0,1).getBoundingClientRect();return Or=Math.abs(ne.left-te.left)>1}var hr={},Yr={};function cr(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),hr[x]=z}function Ir(x,z){Yr[x]=z}function or(x){if(typeof x=="string"&&Yr.hasOwnProperty(x))x=Yr[x];else if(x&&typeof x.name=="string"&&Yr.hasOwnProperty(x.name)){var z=Yr[x.name];typeof z=="string"&&(z={name:z}),x=ue(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return or("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return or("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Jn(x,z){z=or(z);var ne=hr[z.name];if(!ne)return Jn(x,"text/plain");var te=ne(x,z);if(Dr.hasOwnProperty(z.name)){var ie=Dr[z.name];for(var fe in ie)ie.hasOwnProperty(fe)&&(te.hasOwnProperty(fe)&&(te["_"+fe]=te[fe]),te[fe]=ie[fe])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var Se in z.modeProps)te[Se]=z.modeProps[Se];return te}var Dr={};function _t(x,z){var ne=Dr.hasOwnProperty(x)?Dr[x]:Dr[x]={};jt(z,ne)}function He(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function nt(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Ye(x,z,ne){return x.startState?x.startState(z,ne):!0}var qe=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};qe.prototype.eol=function(){return this.pos>=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qe.prototype.eat=function(x){var z=this.string.charAt(this.pos),ne;if(typeof x=="string"?ne=z==x:ne=z&&(x.test?x.test(z):x(z)),ne)return++this.pos,z},qe.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},qe.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},qe.prototype.backUp=function(x){this.pos-=x},qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=it(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?it(this.string,this.lineStart,this.tabSize):0)},qe.prototype.indentation=function(){return it(this.string,null,this.tabSize)-(this.lineStart?it(this.string,this.lineStart,this.tabSize):0)},qe.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(Se){return ne?Se.toLowerCase():Se},ie=this.string.substr(this.pos,x.length);if(te(ie)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var fe=this.string.slice(this.pos).match(x);return fe&&fe.index>0?null:(fe&&z!==!1&&(this.pos+=fe[0].length),fe)}},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},qe.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},qe.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Mt(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],fe=ie.chunkSize();if(z<fe){ne=ie;break}z-=fe}return ne.lines[z]}function Ut(x,z,ne){var te=[],ie=z.line;return x.iter(z.line,ne.line+1,function(fe){var Se=fe.text;ie==ne.line&&(Se=Se.slice(0,ne.ch)),ie==z.line&&(Se=Se.slice(z.ch)),te.push(Se),++ie}),te}function An(x,z,ne){var te=[];return x.iter(z,ne,function(ie){te.push(ie.text)}),te}function mn(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function ln(x){if(x.parent==null)return null;for(var z=x.parent,ne=Et(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ie=0;te.children[ie]!=z;++ie)ne+=te.children[ie].chunkSize();return ne+z.first}function Nn(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ie=x.children[te],fe=ie.height;if(z<fe){x=ie;continue e}z-=fe,ne+=ie.chunkSize()}return ne}while(!x.lines);for(var Se=0;Se<x.lines.length;++Se){var Fe=x.lines[Se],We=Fe.height;if(z<We)break;z-=We}return ne+Se}function Wn(x,z){return z>=x.first&&z<x.first+x.size}function Xn(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function rn(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof rn))return new rn(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function Tn(x,z){return x.line-z.line||x.ch-z.ch}function Nt(x,z){return x.sticky==z.sticky&&Tn(x,z)==0}function Jt(x){return rn(x.line,x.ch)}function sn(x,z){return Tn(x,z)<0?z:x}function fn(x,z){return Tn(x,z)<0?x:z}function In(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function un(x,z){if(z.line<x.first)return rn(x.first,0);var ne=x.first+x.size-1;return z.line>ne?rn(ne,Mt(x,ne).text.length):Bn(z,Mt(x,z.line).text.length)}function Bn(x,z){var ne=x.ch;return ne==null||ne>z?rn(x.line,z):ne<0?rn(x.line,0):x}function ot(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=un(x,z[te]);return ne}var tn=function(x,z){this.state=x,this.lookAhead=z},nn=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};nn.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},nn.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},nn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},nn.fromSaved=function(x,z,ne){return z instanceof tn?new nn(x,He(x.mode,z.state),ne,z.lookAhead):new nn(x,He(x.mode,z),ne)},nn.prototype.save=function(x){var z=x!==!1?He(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tn(z,this.maxLookAhead):z};function En(x,z,ne,te){var ie=[x.state.modeGen],fe={};ai(x,z.text,x.doc.mode,ne,function(ft,Qt){return ie.push(ft,Qt)},fe,te);for(var Se=ne.state,Fe=function(ft){ne.baseTokens=ie;var Qt=x.state.overlays[ft],pn=1,jn=0;ne.state=!0,ai(x,z.text,Qt.mode,ne,function($n,wr){for(var Ur=pn;jn<$n;){var wi=ie[pn];wi>$n&&ie.splice(pn,1,$n,ie[pn+1],wi),pn+=2,jn=Math.min($n,wi)}if(wr)if(Qt.opaque)ie.splice(Ur,pn-Ur,$n,"overlay "+wr),pn=Ur+2;else for(;Ur<pn;Ur+=2){var zi=ie[Ur+1];ie[Ur+1]=(zi?zi+" ":"")+"overlay "+wr}},fe),ne.state=Se,ne.baseTokens=null,ne.baseTokenPos=1},We=0;We<x.state.overlays.length;++We)Fe(We);return{styles:ie,classes:fe.bgClass||fe.textClass?fe:null}}function gn(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=Mn(x,ln(z)),ie=z.text.length>x.options.maxHighlightLength&&He(x.doc.mode,te.state),fe=En(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=fe.styles,fe.classes?z.styleClasses=fe.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function Mn(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new nn(te,!0,z);var fe=Nr(x,z,ne),Se=fe>te.first&&Mt(te,fe-1).stateAfter,Fe=Se?nn.fromSaved(te,Se,fe):new nn(te,Ye(te.mode),fe);return te.iter(fe,z,function(We){kn(x,We.text,Fe);var ft=Fe.line;We.stateAfter=ft==z-1||ft%5==0||ft>=ie.viewFrom&&ft<ie.viewTo?Fe.save():null,Fe.nextLine()}),ne&&(te.modeFrontier=Fe.line),Fe}function kn(x,z,ne,te){var ie=x.doc.mode,fe=new qe(z,x.options.tabSize,ne);for(fe.start=fe.pos=te||0,z==""&&Vn(ie,ne.state);!fe.eol();)qn(ie,fe,ne.state),fe.start=fe.pos}function Vn(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=nt(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function qn(x,z,ne,te){for(var ie=0;ie<10;ie++){te&&(te[0]=nt(x,ne).mode);var fe=x.token(z,ne);if(z.pos>z.start)return fe}throw new Error("Mode "+x.name+" failed to advance stream.")}var pr=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Tr(x,z,ne,te){var ie=x.doc,fe=ie.mode,Se;z=un(ie,z);var Fe=Mt(ie,z.line),We=Mn(x,z.line,ne),ft=new qe(Fe.text,x.options.tabSize,We),Qt;for(te&&(Qt=[]);(te||ft.pos<z.ch)&&!ft.eol();)ft.start=ft.pos,Se=qn(fe,ft,We.state),te&&Qt.push(new pr(ft,Se,He(ie.mode,We.state)));return te?Qt:new pr(ft,Se,We.state)}function Jr(x,z){if(x)for(;;){var ne=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;x=x.slice(0,ne.index)+x.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";z[te]==null?z[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(z[te])||(z[te]+=" "+ne[2])}return x}function ai(x,z,ne,te,ie,fe,Se){var Fe=ne.flattenSpans;Fe==null&&(Fe=x.options.flattenSpans);var We=0,ft=null,Qt=new qe(z,x.options.tabSize,te),pn,jn=x.options.addModeClass&&[null];for(z==""&&Jr(Vn(ne,te.state),fe);!Qt.eol();){if(Qt.pos>x.options.maxHighlightLength?(Fe=!1,Se&&kn(x,z,te,Qt.pos),Qt.pos=z.length,pn=null):pn=Jr(qn(ne,Qt,te.state,jn),fe),jn){var $n=jn[0].name;$n&&(pn="m-"+(pn?$n+" "+pn:$n))}if(!Fe||ft!=pn){for(;We<Qt.start;)We=Math.min(Qt.start,We+5e3),ie(We,ft);ft=pn}Qt.start=Qt.pos}for(;We<Qt.pos;){var wr=Math.min(Qt.pos,We+5e3);ie(wr,ft),We=wr}}function Nr(x,z,ne){for(var te,ie,fe=x.doc,Se=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Fe=z;Fe>Se;--Fe){if(Fe<=fe.first)return fe.first;var We=Mt(fe,Fe-1),ft=We.stateAfter;if(ft&&(!ne||Fe+(ft instanceof tn?ft.lookAhead:0)<=fe.modeFrontier))return Fe;var Qt=it(We.text,null,x.options.tabSize);(ie==null||te>Qt)&&(ie=Fe-1,te=Qt)}return ie}function yr(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ie=Mt(x,te).stateAfter;if(ie&&(!(ie instanceof tn)||te+ie.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var di=!1,ti=!1;function vi(){di=!0}function Wr(){ti=!0}function jr(x,z,ne){this.marker=x,this.from=z,this.to=ne}function yi(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function ui(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function $i(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function sa(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var fe=x[ie],Se=fe.marker,Fe=fe.from==null||(Se.inclusiveLeft?fe.from<=z:fe.from<z);if(Fe||fe.from==z&&Se.type=="bookmark"&&(!ne||!fe.marker.insertLeft)){var We=fe.to==null||(Se.inclusiveRight?fe.to>=z:fe.to>z);(te||(te=[])).push(new jr(Se,fe.from,We?null:fe.to))}}return te}function oi(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var fe=x[ie],Se=fe.marker,Fe=fe.to==null||(Se.inclusiveRight?fe.to>=z:fe.to>z);if(Fe||fe.from==z&&Se.type=="bookmark"&&(!ne||fe.marker.insertLeft)){var We=fe.from==null||(Se.inclusiveLeft?fe.from<=z:fe.from<z);(te||(te=[])).push(new jr(Se,We?null:fe.from-z,fe.to==null?null:fe.to-z))}}return te}function ar(x,z){if(z.full)return null;var ne=Wn(x,z.from.line)&&Mt(x,z.from.line).markedSpans,te=Wn(x,z.to.line)&&Mt(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ie=z.from.ch,fe=z.to.ch,Se=Tn(z.from,z.to)==0,Fe=sa(ne,ie,Se),We=oi(te,fe,Se),ft=z.text.length==1,Qt=Zt(z.text).length+(ft?ie:0);if(Fe)for(var pn=0;pn<Fe.length;++pn){var jn=Fe[pn];if(jn.to==null){var $n=yi(We,jn.marker);$n?ft&&(jn.to=$n.to==null?null:$n.to+Qt):jn.to=ie}}if(We)for(var wr=0;wr<We.length;++wr){var Ur=We[wr];if(Ur.to!=null&&(Ur.to+=Qt),Ur.from==null){var wi=yi(Fe,Ur.marker);wi||(Ur.from=Qt,ft&&(Fe||(Fe=[])).push(Ur))}else Ur.from+=Qt,ft&&(Fe||(Fe=[])).push(Ur)}Fe&&(Fe=rr(Fe)),We&&We!=Fe&&(We=rr(We));var zi=[Fe];if(!ft){var Yi=z.text.length-2,Ii;if(Yi>0&&Fe)for(var qi=0;qi<Fe.length;++qi)Fe[qi].to==null&&(Ii||(Ii=[])).push(new jr(Fe[qi].marker,null,null));for(var Sa=0;Sa<Yi;++Sa)zi.push(Ii);zi.push(We)}return zi}function rr(x){for(var z=0;z<x.length;++z){var ne=x[z];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function pi(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function($n){if($n.markedSpans)for(var wr=0;wr<$n.markedSpans.length;++wr){var Ur=$n.markedSpans[wr].marker;Ur.readOnly&&(!te||Et(te,Ur)==-1)&&(te||(te=[])).push(Ur)}}),!te)return null;for(var ie=[{from:z,to:ne}],fe=0;fe<te.length;++fe)for(var Se=te[fe],Fe=Se.find(0),We=0;We<ie.length;++We){var ft=ie[We];if(!(Tn(ft.to,Fe.from)<0||Tn(ft.from,Fe.to)>0)){var Qt=[We,1],pn=Tn(ft.from,Fe.from),jn=Tn(ft.to,Fe.to);(pn<0||!Se.inclusiveLeft&&!pn)&&Qt.push({from:ft.from,to:Fe.from}),(jn>0||!Se.inclusiveRight&&!jn)&&Qt.push({from:Fe.to,to:ft.to}),ie.splice.apply(ie,Qt),We+=Qt.length-3}}return ie}function ni(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function ki(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function Ai(x){return x.inclusiveLeft?-1:0}function Ti(x){return x.inclusiveRight?1:0}function mi(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ie=z.find(),fe=Tn(te.from,ie.from)||Ai(x)-Ai(z);if(fe)return-fe;var Se=Tn(te.to,ie.to)||Ti(x)-Ti(z);return Se||z.id-x.id}function Ci(x,z){var ne=ti&&x.markedSpans,te;if(ne)for(var ie=void 0,fe=0;fe<ne.length;++fe)ie=ne[fe],ie.marker.collapsed&&(z?ie.from:ie.to)==null&&(!te||mi(te,ie.marker)<0)&&(te=ie.marker);return te}function Pa(x){return Ci(x,!0)}function _r(x){return Ci(x,!1)}function Xr(x,z){var ne=ti&&x.markedSpans,te;if(ne)for(var ie=0;ie<ne.length;++ie){var fe=ne[ie];fe.marker.collapsed&&(fe.from==null||fe.from<z)&&(fe.to==null||fe.to>z)&&(!te||mi(te,fe.marker)<0)&&(te=fe.marker)}return te}function Pi(x,z,ne,te,ie){var fe=Mt(x,z),Se=ti&&fe.markedSpans;if(Se)for(var Fe=0;Fe<Se.length;++Fe){var We=Se[Fe];if(We.marker.collapsed){var ft=We.marker.find(0),Qt=Tn(ft.from,ne)||Ai(We.marker)-Ai(ie),pn=Tn(ft.to,te)||Ti(We.marker)-Ti(ie);if(!(Qt>=0&&pn<=0||Qt<=0&&pn>=0)&&(Qt<=0&&(We.marker.inclusiveRight&&ie.inclusiveLeft?Tn(ft.to,ne)>=0:Tn(ft.to,ne)>0)||Qt>=0&&(We.marker.inclusiveRight&&ie.inclusiveLeft?Tn(ft.from,te)<=0:Tn(ft.from,te)<0)))return!0}}}function Hi(x){for(var z;z=Pa(x);)x=z.find(-1,!0).line;return x}function Na(x){for(var z;z=_r(x);)x=z.find(1,!0).line;return x}function Ra(x){for(var z,ne;z=_r(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function ka(x,z){var ne=Mt(x,z),te=Hi(ne);return ne==te?z:ln(te)}function ha(x,z){if(z>x.lastLine())return z;var ne=Mt(x,z),te;if(!Qa(x,ne))return z;for(;te=_r(ne);)ne=te.find(1,!0).line;return ln(ne)+1}function Qa(x,z){var ne=ti&&z.markedSpans;if(ne){for(var te=void 0,ie=0;ie<ne.length;++ie)if(te=ne[ie],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&Ja(x,z,te))return!0}}}function Ja(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return Ja(x,te.line,yi(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ie=void 0,fe=0;fe<z.markedSpans.length;++fe)if(ie=z.markedSpans[fe],ie.marker.collapsed&&!ie.marker.widgetNode&&ie.from==ne.to&&(ie.to==null||ie.to!=ne.from)&&(ie.marker.inclusiveLeft||ne.marker.inclusiveRight)&&Ja(x,z,ie))return!0}function Gr(x){x=Hi(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ie=ne.lines[te];if(ie==x)break;z+=ie.height}for(var fe=ne.parent;fe;ne=fe,fe=ne.parent)for(var Se=0;Se<fe.children.length;++Se){var Fe=fe.children[Se];if(Fe==ne)break;z+=Fe.height}return z}function Zr(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=Pa(te);){var ie=ne.find(0,!0);te=ie.from.line,z+=ie.from.ch-ie.to.ch}for(te=x;ne=_r(te);){var fe=ne.find(0,!0);z-=te.text.length-fe.from.ch,te=fe.to.line,z+=te.text.length-fe.to.ch}return z}function Kr(x){var z=x.display,ne=x.doc;z.maxLine=Mt(ne,ne.first),z.maxLineLength=Zr(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ie=Zr(te);ie>z.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var fi=function(x,z,ne){this.text=x,ki(this,z),this.height=ne?ne(this):1};fi.prototype.lineNo=function(){return ln(this)},hn(fi);function ga(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),ni(x),ki(x,ne);var ie=te?te(x):1;ie!=x.height&&mn(x,ie)}function Fa(x){x.parent=null,ni(x)}var Ua={},za={};function Ta(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?za:Ua;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function lo(x,z){var ne=mt("span",null,null,pe?"padding-right: .1px":null),te={pre:mt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var fe=ie?z.rest[ie-1]:z.line,Se=void 0;te.pos=0,te.addToken=_o,Er(x.display.measure)&&(Se=xn(fe,x.doc.direction))&&(te.addToken=la(te.addToken,Se)),te.map=[];var Fe=z!=x.display.externalMeasured&&ln(fe);po(fe,te,gn(x,fe,Fe)),fe.styleClasses&&(fe.styleClasses.bgClass&&(te.bgClass=Lt(fe.styleClasses.bgClass,te.bgClass||"")),fe.styleClasses.textClass&&(te.textClass=Lt(fe.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild($r(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(pe){var We=te.content.lastChild;(/\bcm-tab\b/.test(We.className)||We.querySelector&&We.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return Ae(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=Lt(te.pre.className,te.textClass||"")),te}function jo(x){var z=Ue("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function _o(x,z,ne,te,ie,fe,Se){if(z){var Fe=x.splitSpaces?hs(z,x.trailingSpace):z,We=x.cm.state.specialChars,ft=!1,Qt;if(!We.test(z))x.col+=z.length,Qt=document.createTextNode(Fe),x.map.push(x.pos,x.pos+z.length,Qt),be&&ke<9&&(ft=!0),x.pos+=z.length;else{Qt=document.createDocumentFragment();for(var pn=0;;){We.lastIndex=pn;var jn=We.exec(z),$n=jn?jn.index-pn:z.length-pn;if($n){var wr=document.createTextNode(Fe.slice(pn,pn+$n));be&&ke<9?Qt.appendChild(Ue("span",[wr])):Qt.appendChild(wr),x.map.push(x.pos,x.pos+$n,wr),x.col+=$n,x.pos+=$n}if(!jn)break;pn+=$n+1;var Ur=void 0;if(jn[0]==" "){var wi=x.cm.options.tabSize,zi=wi-x.col%wi;Ur=Qt.appendChild(Ue("span",Pn(zi),"cm-tab")),Ur.setAttribute("role","presentation"),Ur.setAttribute("cm-text"," "),x.col+=zi}else jn[0]=="\r"||jn[0]==`
|
|
|
`?(Ur=Qt.appendChild(Ue("span",jn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ur.setAttribute("cm-text",jn[0]),x.col+=1):(Ur=x.cm.options.specialCharPlaceholder(jn[0]),Ur.setAttribute("cm-text",jn[0]),be&&ke<9?Qt.appendChild(Ue("span",[Ur])):Qt.appendChild(Ur),x.col+=1);x.map.push(x.pos,x.pos+1,Ur),x.pos++}}if(x.trailingSpace=Fe.charCodeAt(z.length-1)==32,ne||te||ie||ft||fe||Se){var Yi=ne||"";te&&(Yi+=te),ie&&(Yi+=ie);var Ii=Ue("span",[Qt],Yi,fe);if(Se)for(var qi in Se)Se.hasOwnProperty(qi)&&qi!="style"&&qi!="class"&&Ii.setAttribute(qi,Se[qi]);return x.content.appendChild(Ii)}x.content.appendChild(Qt)}}function hs(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ie<x.length;ie++){var fe=x.charAt(ie);fe==" "&&ne&&(ie==x.length-1||x.charCodeAt(ie+1)==32)&&(fe="\xA0"),te+=fe,ne=fe==" "}return te}function la(x,z){return function(ne,te,ie,fe,Se,Fe,We){ie=ie?ie+" cm-force-border":"cm-force-border";for(var ft=ne.pos,Qt=ft+te.length;;){for(var pn=void 0,jn=0;jn<z.length&&(pn=z[jn],!(pn.to>ft&&pn.from<=ft));jn++);if(pn.to>=Qt)return x(ne,te,ie,fe,Se,Fe,We);x(ne,te.slice(0,pn.to-ft),ie,fe,null,Fe,We),fe=null,te=te.slice(pn.to-ft),ft=pn.to}}}function ya(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function po(x,z,ne){var te=x.markedSpans,ie=x.text,fe=0;if(!te){for(var Se=1;Se<ne.length;Se+=2)z.addToken(z,ie.slice(fe,fe=ne[Se]),Ta(ne[Se+1],z.cm.options));return}for(var Fe=ie.length,We=0,ft=1,Qt="",pn,jn,$n=0,wr,Ur,wi,zi,Yi;;){if($n==We){wr=Ur=wi=jn="",Yi=null,zi=null,$n=1/0;for(var Ii=[],qi=void 0,Sa=0;Sa<te.length;++Sa){var Ma=te[Sa],go=Ma.marker;if(go.type=="bookmark"&&Ma.from==We&&go.widgetNode)Ii.push(go);else if(Ma.from<=We&&(Ma.to==null||Ma.to>We||go.collapsed&&Ma.to==We&&Ma.from==We)){if(Ma.to!=null&&Ma.to!=We&&$n>Ma.to&&($n=Ma.to,Ur=""),go.className&&(wr+=" "+go.className),go.css&&(jn=(jn?jn+";":"")+go.css),go.startStyle&&Ma.from==We&&(wi+=" "+go.startStyle),go.endStyle&&Ma.to==$n&&(qi||(qi=[])).push(go.endStyle,Ma.to),go.title&&((Yi||(Yi={})).title=go.title),go.attributes)for(var bs in go.attributes)(Yi||(Yi={}))[bs]=go.attributes[bs];go.collapsed&&(!zi||mi(zi.marker,go)<0)&&(zi=Ma)}else Ma.from>We&&$n>Ma.from&&($n=Ma.from)}if(qi)for(var Ml=0;Ml<qi.length;Ml+=2)qi[Ml+1]==$n&&(Ur+=" "+qi[Ml]);if(!zi||zi.from==We)for(var Vs=0;Vs<Ii.length;++Vs)ya(z,0,Ii[Vs]);if(zi&&(zi.from||0)==We){if(ya(z,(zi.to==null?Fe+1:zi.to)-We,zi.marker,zi.from==null),zi.to==null)return;zi.to==We&&(zi=!1)}}if(We>=Fe)break;for(var nu=Math.min(Fe,$n);;){if(Qt){var ru=We+Qt.length;if(!zi){var ml=ru>nu?Qt.slice(0,nu-We):Qt;z.addToken(z,ml,pn?pn+wr:wr,wi,We+ml.length==$n?Ur:"",jn,Yi)}if(ru>=nu){Qt=Qt.slice(nu-We),We=nu;break}We=ru,wi=""}Qt=ie.slice(fe,fe=ne[ft++]),pn=Ta(ne[ft++],z.cm.options)}}}function La(x,z,ne){this.line=z,this.rest=Ra(z),this.size=this.rest?ln(Zt(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Qa(x,z)}function $a(x,z,ne){for(var te=[],ie,fe=z;fe<ne;fe=ie){var Se=new La(x.doc,Mt(x.doc,fe),fe);ie=fe+Se.size,te.push(Se)}return te}var Ya=null;function Za(x){Ya?Ya.ops.push(x):x.ownsGroup=Ya={ops:[x],delayedCallbacks:[]}}function Oi(x){var z=x.delayedCallbacks,ne=0;do{for(;ne<z.length;ne++)z[ne].call(null);for(var te=0;te<x.ops.length;te++){var ie=x.ops[te];if(ie.cursorActivityHandlers)for(;ie.cursorActivityCalled<ie.cursorActivityHandlers.length;)ie.cursorActivityHandlers[ie.cursorActivityCalled++].call(null,ie.cm)}}while(ne<z.length)}function ua(x,z){var ne=x.ownsGroup;if(ne)try{Oi(ne)}finally{Ya=null,z(ne)}}var ra=null;function Wi(x,z){var ne=cn(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ie;Ya?ie=Ya.delayedCallbacks:ra?ie=ra:(ie=ra=[],setTimeout(Oa,0));for(var fe=function(Fe){ie.push(function(){return ne[Fe].apply(null,te)})},Se=0;Se<ne.length;++Se)fe(Se)}}function Oa(){var x=ra;ra=null;for(var z=0;z<x.length;++z)x[z]()}function Ba(x,z,ne,te){for(var ie=0;ie<z.changes.length;ie++){var fe=z.changes[ie];fe=="text"?Qo(x,z):fe=="gutter"?eo(x,z,ne,te):fe=="class"?qa(x,z):fe=="widget"&&ns(x,z,te)}z.changes=null}function zo(x){return x.node==x.text&&(x.node=Ue("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),be&&ke<8&&(x.node.style.zIndex=2)),x.node}function Vo(x,z){var ne=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),z.background)ne?z.background.className=ne:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ne){var te=zo(z);z.background=te.insertBefore(Ue("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function $o(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):lo(x,z)}function Qo(x,z){var ne=z.text.className,te=$o(x,z);z.text==z.node&&(z.node=te.pre),z.text.parentNode.replaceChild(te.pre,z.text),z.text=te.pre,te.bgClass!=z.bgClass||te.textClass!=z.textClass?(z.bgClass=te.bgClass,z.textClass=te.textClass,qa(x,z)):ne&&(z.text.className=ne)}function qa(x,z){Vo(x,z),z.line.wrapClass?zo(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ne=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ne||""}function eo(x,z,ne,te){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var ie=zo(z);z.gutterBackground=Ue("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ie.insertBefore(z.gutterBackground,z.text)}var fe=z.line.gutterMarkers;if(x.options.lineNumbers||fe){var Se=zo(z),Fe=z.gutter=Ue("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Fe),Se.insertBefore(Fe,z.text),z.line.gutterClass&&(Fe.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!fe||!fe["CodeMirror-linenumbers"])&&(z.lineNumber=Fe.appendChild(Ue("div",Xn(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),fe)for(var We=0;We<x.display.gutterSpecs.length;++We){var ft=x.display.gutterSpecs[We].className,Qt=fe.hasOwnProperty(ft)&&fe[ft];Qt&&Fe.appendChild(Ue("div",[Qt],"CodeMirror-gutter-elt","left: "+te.gutterLeft[ft]+"px; width: "+te.gutterWidth[ft]+"px"))}}}function ns(x,z,ne){z.alignable&&(z.alignable=null);for(var te=he("CodeMirror-linewidget"),ie=z.node.firstChild,fe=void 0;ie;ie=fe)fe=ie.nextSibling,te.test(ie.className)&&z.node.removeChild(ie);ps(x,z,ne)}function rs(x,z,ne,te){var ie=$o(x,z);return z.text=z.node=ie.pre,ie.bgClass&&(z.bgClass=ie.bgClass),ie.textClass&&(z.textClass=ie.textClass),qa(x,z),eo(x,z,ne,te),ps(x,z,te),z.node}function ps(x,z,ne){if(Jo(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)Jo(x,z.rest[te],z,ne,!1)}function Jo(x,z,ne,te,ie){if(z.widgets)for(var fe=zo(ne),Se=0,Fe=z.widgets;Se<Fe.length;++Se){var We=Fe[Se],ft=Ue("div",[We.node],"CodeMirror-linewidget"+(We.className?" "+We.className:""));We.handleMouseEvents||ft.setAttribute("cm-ignore-events","true"),Vl(We,ft,ne,te),x.display.input.setUneditable(ft),ie&&We.above?fe.insertBefore(ft,ne.gutter||ne.text):fe.appendChild(ft),Wi(We,"redraw")}}function Vl(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ie=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ie-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ie+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function Cl(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!Bt(document.body,x.node)){var ne="position: relative;";x.coverGutter&&(ne+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ne+="width: "+z.display.wrapper.clientWidth+"px;"),Qe(z.display.measure,Ue("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function Sl(x,z){for(var ne=gr(z);ne!=x.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==x.sizer&&ne!=x.mover)return!0}function el(x){return x.lineSpace.offsetTop}function vu(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function tl(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=Qe(x.measure,Ue("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function Ls(x){return on-x.display.nativeBarWidth}function ms(x){return x.display.scroller.clientWidth-Ls(x)-x.display.barWidth}function kl(x){return x.display.scroller.clientHeight-Ls(x)-x.display.barHeight}function Ol(x,z,ne){var te=x.options.lineWrapping,ie=te&&ms(x);if(!z.measure.heights||te&&z.measure.width!=ie){var fe=z.measure.heights=[];if(te){z.measure.width=ie;for(var Se=z.text.firstChild.getClientRects(),Fe=0;Fe<Se.length-1;Fe++){var We=Se[Fe],ft=Se[Fe+1];Math.abs(We.bottom-ft.bottom)>2&&fe.push((We.bottom+ft.top)/2-ne.top)}}fe.push(ne.bottom-ne.top)}}function Nl(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;te<x.rest.length;te++)if(x.rest[te]==z)return{map:x.measure.maps[te],cache:x.measure.caches[te]};for(var ie=0;ie<x.rest.length;ie++)if(ln(x.rest[ie])>ne)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function au(x,z){z=Hi(z);var ne=ln(z),te=x.display.externalMeasured=new La(x.doc,z,ne);te.lineN=ne;var ie=te.built=lo(x,te);return te.text=ie.pre,Qe(x.display.lineMeasure,ie.pre),te}function Fl(x,z,ne,te){return Do(x,gs(x,z),ne,te)}function Os(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[Gs(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function gs(x,z){var ne=ln(z),te=Os(x,ne);te&&!te.text?te=null:te&&te.changes&&(Ba(x,te,ne,Ao(x)),x.curOp.forceUpdate=!0),te||(te=au(x,z));var ie=Nl(te,z,ne);return{line:z,view:te,rect:null,map:ie.map,cache:ie.cache,before:ie.before,hasHeights:!1}}function Do(x,z,ne,te,ie){z.before&&(ne=-1);var fe=ne+(te||""),Se;return z.cache.hasOwnProperty(fe)?Se=z.cache[fe]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(Ol(x,z.view,z.rect),z.hasHeights=!0),Se=to(x,z,ne,te),Se.bogus||(z.cache[fe]=Se)),{left:Se.left,right:Se.right,top:ie?Se.rtop:Se.top,bottom:ie?Se.rbottom:Se.bottom}}var zl={left:0,right:0,top:0,bottom:0};function yu(x,z,ne){for(var te,ie,fe,Se,Fe,We,ft=0;ft<x.length;ft+=3)if(Fe=x[ft],We=x[ft+1],z<Fe?(ie=0,fe=1,Se="left"):z<We?(ie=z-Fe,fe=ie+1):(ft==x.length-3||z==We&&x[ft+3]>z)&&(fe=We-Fe,ie=fe-1,z>=We&&(Se="right")),ie!=null){if(te=x[ft+2],Fe==We&&ne==(te.insertLeft?"left":"right")&&(Se=ne),ne=="left"&&ie==0)for(;ft&&x[ft-2]==x[ft-3]&&x[ft-1].insertLeft;)te=x[(ft-=3)+2],Se="left";if(ne=="right"&&ie==We-Fe)for(;ft<x.length-3&&x[ft+3]==x[ft+4]&&!x[ft+5].insertLeft;)te=x[(ft+=3)+2],Se="right";break}return{node:te,start:ie,end:fe,collapse:Se,coverStart:Fe,coverEnd:We}}function nl(x,z){var ne=zl;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ie=x.length-1;ie>=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function to(x,z,ne,te){var ie=yu(z.map,ne,te),fe=ie.node,Se=ie.start,Fe=ie.end,We=ie.collapse,ft;if(fe.nodeType==3){for(var Qt=0;Qt<4;Qt++){for(;Se&&ut(z.line.text.charAt(ie.coverStart+Se));)--Se;for(;ie.coverStart+Fe<ie.coverEnd&&ut(z.line.text.charAt(ie.coverStart+Fe));)++Fe;if(be&&ke<9&&Se==0&&Fe==ie.coverEnd-ie.coverStart?ft=fe.parentNode.getBoundingClientRect():ft=nl(Le(fe,Se,Fe).getClientRects(),te),ft.left||ft.right||Se==0)break;Fe=Se,Se=Se-1,We="right"}be&&ke<11&&(ft=Ha(x.display.measure,ft))}else{Se>0&&(We=te="right");var pn;x.options.lineWrapping&&(pn=fe.getClientRects()).length>1?ft=pn[te=="right"?pn.length-1:0]:ft=fe.getBoundingClientRect()}if(be&&ke<9&&!Se&&(!ft||!ft.left&&!ft.right)){var jn=fe.parentNode.getClientRects()[0];jn?ft={left:jn.left,right:jn.left+vo(x.display),top:jn.top,bottom:jn.bottom}:ft=zl}for(var $n=ft.top-z.rect.top,wr=ft.bottom-z.rect.top,Ur=($n+wr)/2,wi=z.view.measure.heights,zi=0;zi<wi.length-1&&!(Ur<wi[zi]);zi++);var Yi=zi?wi[zi-1]:0,Ii=wi[zi],qi={left:(We=="right"?ft.right:ft.left)-z.rect.left,right:(We=="left"?ft.left:ft.right)-z.rect.left,top:Yi,bottom:Ii};return!ft.left&&!ft.right&&(qi.bogus=!0),x.options.singleCursorHeightPerLine||(qi.rtop=$n,qi.rbottom=wr),qi}function Ha(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!br(x))return z;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ne,right:z.right*ne,top:z.top*te,bottom:z.bottom*te}}function Ko(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var z=0;z<x.rest.length;z++)x.measure.caches[z]={}}function is(x){x.display.externalMeasure=null,Xe(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Ko(x.display.view[z])}function Uo(x){is(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function Ns(){return Me&&Je?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ks(){return Me&&Je?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function cl(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=Cl(x.widgets[ne]));return z}function Hs(x,z,ne,te,ie){if(!ie){var fe=cl(z);ne.top+=fe,ne.bottom+=fe}if(te=="line")return ne;te||(te="local");var Se=Gr(z);if(te=="local"?Se+=el(x.display):Se-=x.display.viewOffset,te=="page"||te=="window"){var Fe=x.display.lineSpace.getBoundingClientRect();Se+=Fe.top+(te=="window"?0:Ks());var We=Fe.left+(te=="window"?0:Ns());ne.left+=We,ne.right+=We}return ne.top+=Se,ne.bottom+=Se,ne}function Dl(x,z,ne){if(ne=="div")return z;var te=z.left,ie=z.top;if(ne=="page")te-=Ns(),ie-=Ks();else if(ne=="local"||!ne){var fe=x.display.sizer.getBoundingClientRect();te+=fe.left,ie+=fe.top}var Se=x.display.lineSpace.getBoundingClientRect();return{left:te-Se.left,top:ie-Se.top}}function vl(x,z,ne,te,ie){return te||(te=Mt(x.doc,z.line)),Hs(x,te,Fl(x,te,z.ch,ie),ne)}function Zs(x,z,ne,te,ie,fe){te=te||Mt(x.doc,z.line),ie||(ie=gs(x,te));function Se(wr,Ur){var wi=Do(x,ie,wr,Ur?"right":"left",fe);return Ur?wi.left=wi.right:wi.right=wi.left,Hs(x,te,wi,ne)}var Fe=xn(te,x.doc.direction),We=z.ch,ft=z.sticky;if(We>=te.text.length?(We=te.text.length,ft="before"):We<=0&&(We=0,ft="after"),!Fe)return Se(ft=="before"?We-1:We,ft=="before");function Qt(wr,Ur,wi){var zi=Fe[Ur],Yi=zi.level==1;return Se(wi?wr-1:wr,Yi!=wi)}var pn=rt(Fe,We,ft),jn=bt,$n=Qt(We,pn,ft=="before");return jn!=null&&($n.other=Qt(We,jn,ft!="before")),$n}function Hu(x,z){var ne=0;z=un(x.doc,z),x.options.lineWrapping||(ne=vo(x.display)*z.ch);var te=Mt(x.doc,z.line),ie=Gr(te)+el(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function $l(x,z,ne,te,ie){var fe=rn(x,z,ne);return fe.xRel=ie,te&&(fe.outside=te),fe}function ou(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return $l(te.first,0,null,-1,-1);var ie=Nn(te,ne),fe=te.first+te.size-1;if(ie>fe)return $l(te.first+te.size-1,Mt(te,fe).text.length,null,1,1);z<0&&(z=0);for(var Se=Mt(te,ie);;){var Fe=lc(x,Se,ie,z,ne),We=Xr(Se,Fe.ch+(Fe.xRel>0||Fe.outside>0?1:0));if(!We)return Fe;var ft=We.find(1);if(ft.line==ie)return ft;Se=Mt(te,ie=ft.line)}}function su(x,z,ne,te){te-=cl(z);var ie=z.text.length,fe=_e(function(Se){return Do(x,ne,Se-1).bottom<=te},ie,0);return ie=_e(function(Se){return Do(x,ne,Se).top>te},fe,ie),{begin:fe,end:ie}}function bu(x,z,ne,te){ne||(ne=gs(x,z));var ie=Hs(x,z,Do(x,ne,te),"line").top;return su(x,z,ne,ie)}function xu(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function lc(x,z,ne,te,ie){ie-=Gr(z);var fe=gs(x,z),Se=cl(z),Fe=0,We=z.text.length,ft=!0,Qt=xn(z,x.doc.direction);if(Qt){var pn=(x.options.lineWrapping?ku:lu)(x,z,ne,fe,Qt,te,ie);ft=pn.level!=1,Fe=ft?pn.from:pn.to-1,We=ft?pn.to:pn.from-1}var jn=null,$n=null,wr=_e(function(Sa){var Ma=Do(x,fe,Sa);return Ma.top+=Se,Ma.bottom+=Se,xu(Ma,te,ie,!1)?(Ma.top<=ie&&Ma.left<=te&&(jn=Sa,$n=Ma),!0):!1},Fe,We),Ur,wi,zi=!1;if($n){var Yi=te-$n.left<$n.right-te,Ii=Yi==ft;wr=jn+(Ii?0:1),wi=Ii?"after":"before",Ur=Yi?$n.left:$n.right}else{!ft&&(wr==We||wr==Fe)&&wr++,wi=wr==0?"after":wr==z.text.length?"before":Do(x,fe,wr-(ft?1:0)).bottom+Se<=ie==ft?"after":"before";var qi=Zs(x,rn(ne,wr,wi),"line",z,fe);Ur=qi.left,zi=ie<qi.top?-1:ie>=qi.bottom?1:0}return wr=Ge(z.text,wr,1),$l(ne,wr,wi,zi,te-Ur)}function lu(x,z,ne,te,ie,fe,Se){var Fe=_e(function(pn){var jn=ie[pn],$n=jn.level!=1;return xu(Zs(x,rn(ne,$n?jn.to:jn.from,$n?"before":"after"),"line",z,te),fe,Se,!0)},0,ie.length-1),We=ie[Fe];if(Fe>0){var ft=We.level!=1,Qt=Zs(x,rn(ne,ft?We.from:We.to,ft?"after":"before"),"line",z,te);xu(Qt,fe,Se,!0)&&Qt.top>Se&&(We=ie[Fe-1])}return We}function ku(x,z,ne,te,ie,fe,Se){var Fe=su(x,z,te,Se),We=Fe.begin,ft=Fe.end;/\s/.test(z.text.charAt(ft-1))&&ft--;for(var Qt=null,pn=null,jn=0;jn<ie.length;jn++){var $n=ie[jn];if(!($n.from>=ft||$n.to<=We)){var wr=$n.level!=1,Ur=Do(x,te,wr?Math.min(ft,$n.to)-1:Math.max(We,$n.from)).right,wi=Ur<fe?fe-Ur+1e9:Ur-fe;(!Qt||pn>wi)&&(Qt=$n,pn=wi)}}return Qt||(Qt=ie[ie.length-1]),Qt.from<We&&(Qt={from:We,to:Qt.to,level:Qt.level}),Qt.to>ft&&(Qt={from:Qt.from,to:ft,level:Qt.level}),Qt}var Ul;function uu(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Ul==null){Ul=Ue("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Ul.appendChild(document.createTextNode("x")),Ul.appendChild(Ue("br"));Ul.appendChild(document.createTextNode("x"))}Qe(x.measure,Ul);var ne=Ul.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Xe(x.measure),ne||1}function vo(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=Ue("span","xxxxxxxxxx"),ne=Ue("pre",[z],"CodeMirror-line-like");Qe(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function Ao(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,fe=z.gutters.firstChild,Se=0;fe;fe=fe.nextSibling,++Se){var Fe=x.display.gutterSpecs[Se].className;ne[Fe]=fe.offsetLeft+fe.clientLeft+ie,te[Fe]=fe.clientWidth}return{fixedPos:Go(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Go(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function dl(x){var z=uu(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/vo(x.display)-3);return function(ie){if(Qa(x.doc,ie))return 0;var fe=0;if(ie.widgets)for(var Se=0;Se<ie.widgets.length;Se++)ie.widgets[Se].height&&(fe+=ie.widgets[Se].height);return ne?fe+(Math.ceil(ie.text.length/te)||1)*z:fe+z}}function Rs(x){var z=x.doc,ne=dl(x);z.iter(function(te){var ie=ne(te);ie!=te.height&&mn(te,ie)})}function rl(x,z,ne,te){var ie=x.display;if(!ne&&gr(z).getAttribute("cm-not-content")=="true")return null;var fe,Se,Fe=ie.lineSpace.getBoundingClientRect();try{fe=z.clientX-Fe.left,Se=z.clientY-Fe.top}catch(pn){return null}var We=ou(x,fe,Se),ft;if(te&&We.xRel>0&&(ft=Mt(x.doc,We.line).text).length==We.ch){var Qt=it(ft,ft.length,x.options.tabSize)-ft.length;We=rn(We.line,Math.max(0,Math.round((fe-tl(x.display).left)/vo(x.display))-Qt))}return We}function Gs(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;te<ne.length;te++)if(z-=ne[te].size,z<0)return te}function _s(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ie=x.display;if(te&&ne<ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>z)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)ti&&ka(x.doc,z)<ie.viewTo&&Hl(x);else if(ne<=ie.viewFrom)ti&&ha(x.doc,ne+te)>ie.viewFrom?Hl(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Hl(x);else if(z<=ie.viewFrom){var fe=we(x,ne,ne+te,1);fe?(ie.view=ie.view.slice(fe.index),ie.viewFrom=fe.lineN,ie.viewTo+=te):Hl(x)}else if(ne>=ie.viewTo){var Se=we(x,z,z,-1);Se?(ie.view=ie.view.slice(0,Se.index),ie.viewTo=Se.lineN):Hl(x)}else{var Fe=we(x,z,z,-1),We=we(x,ne,ne+te,1);Fe&&We?(ie.view=ie.view.slice(0,Fe.index).concat($a(x,Fe.lineN,We.lineN)).concat(ie.view.slice(We.index)),ie.viewTo+=te):Hl(x)}var ft=ie.externalMeasured;ft&&(ne<ft.lineN?ft.lineN+=te:z<ft.lineN+ft.size&&(ie.externalMeasured=null))}function Kl(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z<ie.lineN+ie.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var fe=te.view[Gs(x,z)];if(fe.node!=null){var Se=fe.changes||(fe.changes=[]);Et(Se,ne)==-1&&Se.push(ne)}}}function Hl(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function we(x,z,ne,te){var ie=Gs(x,z),fe,Se=x.display.view;if(!ti||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Fe=x.display.viewFrom,We=0;We<ie;We++)Fe+=Se[We].size;if(Fe!=z){if(te>0){if(ie==Se.length-1)return null;fe=Fe+Se[ie].size-z,ie++}else fe=Fe-z;z+=fe,ne+=fe}for(;ka(x.doc,ne)!=ne;){if(ie==(te<0?0:Se.length-1))return null;ne+=te*Se[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function Ie(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=$a(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=$a(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(Gs(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat($a(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,Gs(x,ne)))),te.viewTo=ne}function $e(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ie=z[te];!ie.hidden&&(!ie.node||ie.changes)&&++ne}return ne}function At(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Ot(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ie=te.cursors=document.createDocumentFragment(),fe=te.selection=document.createDocumentFragment(),Se=0;Se<ne.sel.ranges.length;Se++)if(!(!z&&Se==ne.sel.primIndex)){var Fe=ne.sel.ranges[Se];if(!(Fe.from().line>=x.display.viewTo||Fe.to().line<x.display.viewFrom)){var We=Fe.empty();(We||x.options.showCursorWhenSelecting)&&Dn(x,Fe.head,ie),We||Yn(x,Fe,fe)}}return te}function Dn(x,z,ne){var te=Zs(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ie=ne.appendChild(Ue("div","\xA0","CodeMirror-cursor"));if(ie.style.left=te.left+"px",ie.style.top=te.top+"px",ie.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var fe=ne.appendChild(Ue("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));fe.style.display="",fe.style.left=te.other.left+"px",fe.style.top=te.other.top+"px",fe.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function Cn(x,z){return x.top-z.top||x.left-z.left}function Yn(x,z,ne){var te=x.display,ie=x.doc,fe=document.createDocumentFragment(),Se=tl(x.display),Fe=Se.left,We=Math.max(te.sizerWidth,ms(x)-te.sizer.offsetLeft)-Se.right,ft=ie.direction=="ltr";function Qt(Ii,qi,Sa,Ma){qi<0&&(qi=0),qi=Math.round(qi),Ma=Math.round(Ma),fe.appendChild(Ue("div",null,"CodeMirror-selected","position: absolute; left: "+Ii+`px;
|
|
|
top: `+qi+"px; width: "+(Sa==null?We-Ii:Sa)+`px;
|
|
|
height: `+(Ma-qi)+"px"))}function pn(Ii,qi,Sa){var Ma=Mt(ie,Ii),go=Ma.text.length,bs,Ml;function Vs(ml,iu){return vl(x,rn(Ii,ml),"div",Ma,iu)}function nu(ml,iu,Ga){var Qs=bu(x,Ma,null,ml),Us=iu=="ltr"==(Ga=="after")?"left":"right",Js=Ga=="after"?Qs.begin:Qs.end-(/\s/.test(Ma.text.charAt(Qs.end-1))?2:1);return Vs(Js,Us)[Us]}var ru=xn(Ma,ie.direction);return St(ru,qi||0,Sa==null?go:Sa,function(ml,iu,Ga,Qs){var Us=Ga=="ltr",Js=Vs(ml,Us?"left":"right"),sl=Vs(iu-1,Us?"right":"left"),Fc=qi==null&&ml==0,mu=Sa==null&&iu==go,Pl=Qs==0,es=!ru||Qs==ru.length-1;if(sl.top-Js.top<=3){var xl=(ft?Fc:mu)&&Pl,Ed=(ft?mu:Fc)&&es,ac=xl?Fe:(Us?Js:sl).left,vc=Ed?We:(Us?sl:Js).right;Qt(ac,Js.top,vc-ac,Js.bottom)}else{var Yu,gl,zc,Ll;Us?(Yu=ft&&Fc&&Pl?Fe:Js.left,gl=ft?We:nu(ml,Ga,"before"),zc=ft?Fe:nu(iu,Ga,"after"),Ll=ft&&mu&&es?We:sl.right):(Yu=ft?nu(ml,Ga,"before"):Fe,gl=!ft&&Fc&&Pl?We:Js.right,zc=!ft&&mu&&es?Fe:sl.left,Ll=ft?nu(iu,Ga,"after"):We),Qt(Yu,Js.top,gl-Yu,Js.bottom),Js.bottom<sl.top&&Qt(Fe,Js.bottom,null,sl.top),Qt(zc,sl.top,Ll-zc,sl.bottom)}(!bs||Cn(Js,bs)<0)&&(bs=Js),Cn(sl,bs)<0&&(bs=sl),(!Ml||Cn(Js,Ml)<0)&&(Ml=Js),Cn(sl,Ml)<0&&(Ml=sl)}),{start:bs,end:Ml}}var jn=z.from(),$n=z.to();if(jn.line==$n.line)pn(jn.line,jn.ch,$n.ch);else{var wr=Mt(ie,jn.line),Ur=Mt(ie,$n.line),wi=Hi(wr)==Hi(Ur),zi=pn(jn.line,jn.ch,wi?wr.text.length+1:null).end,Yi=pn($n.line,wi?0:null,$n.ch).start;wi&&(zi.top<Yi.top-2?(Qt(zi.right,zi.top,null,zi.bottom),Qt(Fe,Yi.top,Yi.left,Yi.bottom)):Qt(zi.right,zi.top,Yi.left-zi.right,zi.bottom)),zi.bottom<Yi.top&&Qt(Fe,zi.bottom,null,Yi.top)}ne.appendChild(fe)}function Gn(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var ne=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||ur(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function nr(x){x.state.focused||(x.display.input.focus(),dr(x))}function qr(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,ur(x))},100)}function dr(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Ae(x,"focus",x,z),x.state.focused=!0,Wt(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),pe&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Gn(x))}function ur(x,z){x.state.delayingBlurEvent||(x.state.focused&&(Ae(x,"blur",x,z),x.state.focused=!1,je(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Mr(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ie=z.view[te],fe=x.options.lineWrapping,Se=void 0,Fe=0;if(!ie.hidden){if(be&&ke<8){var We=ie.node.offsetTop+ie.node.offsetHeight;Se=We-ne,ne=We}else{var ft=ie.node.getBoundingClientRect();Se=ft.bottom-ft.top,!fe&&ie.text.firstChild&&(Fe=ie.text.firstChild.getBoundingClientRect().right-ft.left-1)}var Qt=ie.line.height-Se;if((Qt>.005||Qt<-.005)&&(mn(ie.line,Se),Lr(ie.line),ie.rest))for(var pn=0;pn<ie.rest.length;pn++)Lr(ie.rest[pn]);if(Fe>x.display.sizerWidth){var jn=Math.ceil(Fe/vo(x.display));jn>x.display.maxLineLength&&(x.display.maxLineLength=jn,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function Lr(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ne=x.widgets[z],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function Hn(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-el(x));var ie=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,fe=Nn(z,te),Se=Nn(z,ie);if(ne&&ne.ensure){var Fe=ne.ensure.from.line,We=ne.ensure.to.line;Fe<fe?(fe=Fe,Se=Nn(z,Gr(Mt(z,Fe))+x.wrapper.clientHeight)):Math.min(We,z.lastLine())>=Se&&(fe=Nn(z,Gr(Mt(z,We))-x.wrapper.clientHeight),Se=We)}return{from:fe,to:Math.max(Se,fe+1)}}function ir(x,z){if(!Ve(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!Be){var fe=Ue("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ne.viewOffset-el(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+Ls(x)+ne.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(fe),fe.scrollIntoView(ie),x.display.lineSpace.removeChild(fe)}}}function Ar(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?rn(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?rn(z.line,z.ch+1,"before"):z);for(var fe=0;fe<5;fe++){var Se=!1,Fe=Zs(x,z),We=!ne||ne==z?Fe:Zs(x,ne);ie={left:Math.min(Fe.left,We.left),top:Math.min(Fe.top,We.top)-te,right:Math.max(Fe.left,We.left),bottom:Math.max(Fe.bottom,We.bottom)+te};var ft=Si(x,ie),Qt=x.doc.scrollTop,pn=x.doc.scrollLeft;if(ft.scrollTop!=null&&(_a(x,ft.scrollTop),Math.abs(x.doc.scrollTop-Qt)>1&&(Se=!0)),ft.scrollLeft!=null&&(co(x,ft.scrollLeft),Math.abs(x.doc.scrollLeft-pn)>1&&(Se=!0)),!Se)break}return ie}function Ri(x,z){var ne=Si(x,z);ne.scrollTop!=null&&_a(x,ne.scrollTop),ne.scrollLeft!=null&&co(x,ne.scrollLeft)}function Si(x,z){var ne=x.display,te=uu(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,fe=kl(x),Se={};z.bottom-z.top>fe&&(z.bottom=z.top+fe);var Fe=x.doc.height+vu(ne),We=z.top<te,ft=z.bottom>Fe-te;if(z.top<ie)Se.scrollTop=We?0:z.top;else if(z.bottom>ie+fe){var Qt=Math.min(z.top,(ft?Fe:z.bottom)-fe);Qt!=ie&&(Se.scrollTop=Qt)}var pn=x.options.fixedGutter?0:ne.gutters.offsetWidth,jn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-pn,$n=ms(x)-ne.gutters.offsetWidth,wr=z.right-z.left>$n;return wr&&(z.right=z.left+$n),z.left<10?Se.scrollLeft=0:z.left<jn?Se.scrollLeft=Math.max(0,z.left+pn-(wr?0:10)):z.right>$n+jn-3&&(Se.scrollLeft=z.right+(wr?0:10)-$n),Se}function Ni(x,z){z!=null&&(Ka(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function _i(x){Ka(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Li(x,z,ne){(z!=null||ne!=null)&&Ka(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Ei(x,z){Ka(x),x.curOp.scrollToPos=z}function Ka(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Hu(x,z.from),te=Hu(x,z.to);Ca(x,ne,te,z.margin)}}function Ca(x,z,ne,te){var ie=Si(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});Li(x,ie.scrollLeft,ie.scrollTop)}function _a(x,z){Math.abs(x.doc.scrollTop-z)<2||(ce||ei(x,{top:z}),uo(x,z,!0),ce&&ei(x),Fn(x,100))}function uo(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function co(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Xi(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function Co(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+vu(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+Ls(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Oo=function(x,z,ne){this.cm=ne;var te=this.vert=Ue("div",[Ue("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=Ue("div",[Ue("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Rt(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Rt(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&ke<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Oo.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var fe=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+fe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},Oo.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Oo.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Oo.prototype.zeroWidthHack=function(){var x=yt&&!Pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ce,this.disableVert=new Ce},Oo.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),fe=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);fe!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Oo.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var Wa=function(){};Wa.prototype.update=function(){return{bottom:0,right:0}},Wa.prototype.setScrollLeft=function(){},Wa.prototype.setScrollTop=function(){},Wa.prototype.clear=function(){};function ja(x,z){z||(z=Co(x));var ne=x.display.barWidth,te=x.display.barHeight;no(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Mr(x),no(x,Co(x)),ne=x.display.barWidth,te=x.display.barHeight}function no(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Po={native:Oo,null:Wa};function Fo(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&je(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Po[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Rt(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?co(x,z):_a(x,z)},x),x.display.scrollbars.addClass&&Wt(x.display.wrapper,x.display.scrollbars.addClass)}var yo=0;function ro(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:++yo},Za(x.curOp)}function as(x){var z=x.curOp;z&&ua(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;Cs(ne)})}function Cs(x){for(var z=x.ops,ne=0;ne<z.length;ne++)Re(z[ne]);for(var te=0;te<z.length;te++)Ze(z[te]);for(var ie=0;ie<z.length;ie++)Ct(z[ie]);for(var fe=0;fe<z.length;fe++)kt(z[fe]);for(var Se=0;Se<z.length;Se++)Vt(z[Se])}function Re(x){var z=x.cm,ne=z.display;sr(z),x.updateMaxLine&&Kr(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ne.viewFrom||x.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new _n(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Ze(x){x.updatedDisplay=x.mustUpdate&&Pr(x.cm,x.update)}function Ct(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Mr(z),x.barMeasure=Co(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Fl(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+Ls(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-ms(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function kt(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&co(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==at();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&ja(z,x.barMeasure),x.updatedDisplay&&Zi(z,x.barMeasure),x.selectionChanged&&Gn(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&nr(x.cm)}function Vt(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Sr(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&uo(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&co(z,x.scrollLeft,!0,!0),x.scrollToPos){var ie=Ar(z,un(te,x.scrollToPos.from),un(te,x.scrollToPos.to),x.scrollToPos.margin);ir(z,ie)}var fe=x.maybeHiddenMarkers,Se=x.maybeUnhiddenMarkers;if(fe)for(var Fe=0;Fe<fe.length;++Fe)fe[Fe].lines.length||Ae(fe[Fe],"hide");if(Se)for(var We=0;We<Se.length;++We)Se[We].lines.length&&Ae(Se[We],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&Ae(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function zt(x,z){if(x.curOp)return z();ro(x);try{return z()}finally{as(x)}}function bn(x,z){return function(){if(x.curOp)return z.apply(x,arguments);ro(x);try{return z.apply(x,arguments)}finally{as(x)}}}function vn(x){return function(){if(this.curOp)return x.apply(this,arguments);ro(this);try{return x.apply(this,arguments)}finally{as(this)}}}function yn(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);ro(z);try{return x.apply(this,arguments)}finally{as(z)}}}function Fn(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Xt(Rn,x))}function Rn(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=Mn(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(fe){if(te.line>=x.display.viewFrom){var Se=fe.styles,Fe=fe.text.length>x.options.maxHighlightLength?He(z.mode,te.state):null,We=En(x,fe,te,!0);Fe&&(te.state=Fe),fe.styles=We.styles;var ft=fe.styleClasses,Qt=We.classes;Qt?fe.styleClasses=Qt:ft&&(fe.styleClasses=null);for(var pn=!Se||Se.length!=fe.styles.length||ft!=Qt&&(!ft||!Qt||ft.bgClass!=Qt.bgClass||ft.textClass!=Qt.textClass),jn=0;!pn&&jn<Se.length;++jn)pn=Se[jn]!=fe.styles[jn];pn&&ie.push(te.line),fe.stateAfter=te.save(),te.nextLine()}else fe.text.length<=x.options.maxHighlightLength&&kn(x,fe.text,te),fe.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return Fn(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&zt(x,function(){for(var fe=0;fe<ie.length;fe++)Kl(x,ie[fe],"text")})}}var _n=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=Hn(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=ms(x),this.force=ne,this.dims=Ao(x),this.events=[]};_n.prototype.signal=function(x,z){Gt(x,z)&&this.events.push(arguments)},_n.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Ae.apply(null,this.events[x])};function sr(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Ls(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Ls(x)+"px",z.scrollbarsClipped=!0)}function lr(x){if(x.hasFocus())return null;var z=at();if(!z||!Bt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&Bt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function fr(x){if(!(!x||!x.activeElt||x.activeElt==at())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&Bt(document.body,x.anchorNode)&&Bt(document.body,x.focusNode))){var z=window.getSelection(),ne=document.createRange();ne.setEnd(x.anchorNode,x.anchorOffset),ne.collapse(!1),z.removeAllRanges(),z.addRange(ne),z.extend(x.focusNode,x.focusOffset)}}function Pr(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return Hl(x),!1;if(!z.force&&z.visible.from>=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&$e(x)==0)return!1;Bi(x)&&(Hl(x),z.dims=Ao(x));var ie=te.first+te.size,fe=Math.max(z.visible.from-x.options.viewportMargin,te.first),Se=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFrom<fe&&fe-ne.viewFrom<20&&(fe=Math.max(te.first,ne.viewFrom)),ne.viewTo>Se&&ne.viewTo-Se<20&&(Se=Math.min(ie,ne.viewTo)),ti&&(fe=ka(x.doc,fe),Se=ha(x.doc,Se));var Fe=fe!=ne.viewFrom||Se!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;Ie(x,fe,Se),ne.viewOffset=Gr(Mt(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var We=$e(x);if(!Fe&&We==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var ft=lr(x);return We>4&&(ne.lineDiv.style.display="none"),Fr(x,ne.updateLineNumbers,z.dims),We>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,fr(ft),Xe(ne.cursorDiv),Xe(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Fe&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,Fn(x,400)),ne.updateLineNumbers=null,!0}function Sr(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==ms(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+vu(x.display)-kl(x),ne.top)}),z.visible=Hn(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=Hn(x.display,x.doc,ne));if(!Pr(x,z))break;Mr(x);var ie=Co(x);At(x),ja(x,ie),Zi(x,ie),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function ei(x,z){var ne=new _n(x,z);if(Pr(x,ne)){Mr(x),Sr(x,ne);var te=Co(x);At(x),ja(x,te),Zi(x,te),ne.finish()}}function Fr(x,z,ne){var te=x.display,ie=x.options.lineNumbers,fe=te.lineDiv,Se=fe.firstChild;function Fe(wr){var Ur=wr.nextSibling;return pe&&yt&&x.display.currentWheelTarget==wr?wr.style.display="none":wr.parentNode.removeChild(wr),Ur}for(var We=te.view,ft=te.viewFrom,Qt=0;Qt<We.length;Qt++){var pn=We[Qt];if(!pn.hidden)if(!pn.node||pn.node.parentNode!=fe){var jn=rs(x,pn,ft,ne);fe.insertBefore(jn,Se)}else{for(;Se!=pn.node;)Se=Fe(Se);var $n=ie&&z!=null&&z<=ft&&pn.lineNumber;pn.changes&&(Et(pn.changes,"gutter")>-1&&($n=!1),Ba(x,pn,ft,ne)),$n&&(Xe(pn.lineNumber),pn.lineNumber.appendChild(document.createTextNode(Xn(x.options,ft)))),Se=pn.node.nextSibling}ft+=pn.size}for(;Se;)Se=Fe(Se)}function si(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Zi(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+Ls(x)+"px"}function Xi(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Go(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,fe=te+"px",Se=0;Se<ne.length;Se++)if(!ne[Se].hidden){x.options.fixedGutter&&(ne[Se].gutter&&(ne[Se].gutter.style.left=fe),ne[Se].gutterBackground&&(ne[Se].gutterBackground.style.left=fe));var Fe=ne[Se].alignable;if(Fe)for(var We=0;We<Fe.length;We++)Fe[We].style.left=fe}x.options.fixedGutter&&(z.gutters.style.left=te+ie+"px")}}function Bi(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=Xn(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ie=te.measure.appendChild(Ue("div",[Ue("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),fe=ie.firstChild.offsetWidth,Se=ie.offsetWidth-fe;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(fe,te.lineGutter.offsetWidth-Se)+1,te.lineNumWidth=te.lineNumInnerWidth+Se,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",si(x.display),!0}return!1}function ji(x,z){for(var ne=[],te=!1,ie=0;ie<x.length;ie++){var fe=x[ie],Se=null;if(typeof fe!="string"&&(Se=fe.style,fe=fe.className),fe=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:fe,style:Se})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function ma(x){var z=x.gutters,ne=x.gutterSpecs;Xe(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ie=ne[te],fe=ie.className,Se=ie.style,Fe=z.appendChild(Ue("div",null,"CodeMirror-gutter "+fe));Se&&(Fe.style.cssText=Se),fe=="CodeMirror-linenumbers"&&(x.lineGutter=Fe,Fe.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",si(x)}function hi(x){ma(x.display),_s(x),Xi(x)}function Fi(x,z,ne,te){var ie=this;this.input=ne,ie.scrollbarFiller=Ue("div",null,"CodeMirror-scrollbar-filler"),ie.scrollbarFiller.setAttribute("cm-not-content","true"),ie.gutterFiller=Ue("div",null,"CodeMirror-gutter-filler"),ie.gutterFiller.setAttribute("cm-not-content","true"),ie.lineDiv=mt("div",null,"CodeMirror-code"),ie.selectionDiv=Ue("div",null,null,"position: relative; z-index: 1"),ie.cursorDiv=Ue("div",null,"CodeMirror-cursors"),ie.measure=Ue("div",null,"CodeMirror-measure"),ie.lineMeasure=Ue("div",null,"CodeMirror-measure"),ie.lineSpace=mt("div",[ie.measure,ie.lineMeasure,ie.selectionDiv,ie.cursorDiv,ie.lineDiv],null,"position: relative; outline: none");var fe=mt("div",[ie.lineSpace],"CodeMirror-lines");ie.mover=Ue("div",[fe],null,"position: relative"),ie.sizer=Ue("div",[ie.mover],"CodeMirror-sizer"),ie.sizerWidth=null,ie.heightForcer=Ue("div",null,null,"position: absolute; height: "+on+"px; width: 1px;"),ie.gutters=Ue("div",null,"CodeMirror-gutters"),ie.lineGutter=null,ie.scroller=Ue("div",[ie.sizer,ie.heightForcer,ie.gutters],"CodeMirror-scroll"),ie.scroller.setAttribute("tabIndex","-1"),ie.wrapper=Ue("div",[ie.scrollbarFiller,ie.gutterFiller,ie.scroller],"CodeMirror"),be&&ke<8&&(ie.gutters.style.zIndex=-1,ie.scroller.style.paddingRight=0),!pe&&!(ce&&tt)&&(ie.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ie.wrapper):x(ie.wrapper)),ie.viewFrom=ie.viewTo=z.first,ie.reportedViewFrom=ie.reportedViewTo=z.first,ie.view=[],ie.renderedView=null,ie.externalMeasured=null,ie.viewOffset=0,ie.lastWrapHeight=ie.lastWrapWidth=0,ie.updateLineNumbers=null,ie.nativeBarWidth=ie.barHeight=ie.barWidth=0,ie.scrollbarsClipped=!1,ie.lineNumWidth=ie.lineNumInnerWidth=ie.lineNumChars=null,ie.alignWidgets=!1,ie.cachedCharWidth=ie.cachedTextHeight=ie.cachedPaddingH=null,ie.maxLine=null,ie.maxLineLength=0,ie.maxLineChanged=!1,ie.wheelDX=ie.wheelDY=ie.wheelStartX=ie.wheelStartY=null,ie.shift=!1,ie.selForContextMenu=null,ie.activeTouch=null,ie.gutterSpecs=ji(te.gutters,te.lineNumbers),ma(ie),ne.init(ie)}var xi=0,Br=null;be?Br=-.53:ce?Br=15:Me?Br=-.7:vt&&(Br=-1/3);function ri(x){var z=x.wheelDeltaX,ne=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),ne==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ne=x.detail:ne==null&&(ne=x.wheelDelta),{x:z,y:ne}}function Vi(x){var z=ri(x);return z.x*=Br,z.y*=Br,z}function Ea(x,z){var ne=ri(z),te=ne.x,ie=ne.y,fe=x.display,Se=fe.scroller,Fe=Se.scrollWidth>Se.clientWidth,We=Se.scrollHeight>Se.clientHeight;if(te&&Fe||ie&&We){if(ie&&yt&&pe){e:for(var ft=z.target,Qt=fe.view;ft!=Se;ft=ft.parentNode)for(var pn=0;pn<Qt.length;pn++)if(Qt[pn].node==ft){x.display.currentWheelTarget=ft;break e}}if(te&&!ce&&!Ke&&Br!=null){ie&&We&&_a(x,Math.max(0,Se.scrollTop+ie*Br)),co(x,Math.max(0,Se.scrollLeft+te*Br)),(!ie||ie&&We)&&On(z),fe.wheelStartX=null;return}if(ie&&Br!=null){var jn=ie*Br,$n=x.doc.scrollTop,wr=$n+fe.wrapper.clientHeight;jn<0?$n=Math.max(0,$n+jn-50):wr=Math.min(x.doc.height,wr+jn+50),ei(x,{top:$n,bottom:wr})}xi<20&&(fe.wheelStartX==null?(fe.wheelStartX=Se.scrollLeft,fe.wheelStartY=Se.scrollTop,fe.wheelDX=te,fe.wheelDY=ie,setTimeout(function(){if(fe.wheelStartX!=null){var Ur=Se.scrollLeft-fe.wheelStartX,wi=Se.scrollTop-fe.wheelStartY,zi=wi&&fe.wheelDY&&wi/fe.wheelDY||Ur&&fe.wheelDX&&Ur/fe.wheelDX;fe.wheelStartX=fe.wheelStartY=null,zi&&(Br=(Br*xi+zi)/(xi+1),++xi)}},200)):(fe.wheelDX+=te,fe.wheelDY+=ie))}}var Gi=function(x,z){this.ranges=x,this.primIndex=z};Gi.prototype.primary=function(){return this.ranges[this.primIndex]},Gi.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var ne=this.ranges[z],te=x.ranges[z];if(!Nt(ne.anchor,te.anchor)||!Nt(ne.head,te.head))return!1}return!0},Gi.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Qr(Jt(this.ranges[z].anchor),Jt(this.ranges[z].head));return new Gi(x,this.primIndex)},Gi.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Gi.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(Tn(z,te.from())>=0&&Tn(x,te.to())<=0)return ne}return-1};var Qr=function(x,z){this.anchor=x,this.head=z};Qr.prototype.from=function(){return fn(this.anchor,this.head)},Qr.prototype.to=function(){return sn(this.anchor,this.head)},Qr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ia(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(jn,$n){return Tn(jn.from(),$n.from())}),ne=Et(z,ie);for(var fe=1;fe<z.length;fe++){var Se=z[fe],Fe=z[fe-1],We=Tn(Fe.to(),Se.from());if(te&&!Se.empty()?We>0:We>=0){var ft=fn(Fe.from(),Se.from()),Qt=sn(Fe.to(),Se.to()),pn=Fe.empty()?Se.from()==Se.head:Fe.from()==Fe.head;fe<=ne&&--ne,z.splice(--fe,2,new Qr(pn?Qt:ft,pn?ft:Qt))}}return new Gi(z,ne)}function va(x,z){return new Gi([new Qr(x,z||x)],0)}function wa(x){return x.text?rn(x.from.line+x.text.length-1,Zt(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Da(x,z){if(Tn(x,z.from)<0)return x;if(Tn(x,z.to)<=0)return wa(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=wa(z).ch-z.to.ch),rn(ne,te)}function So(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ie=x.sel.ranges[te];ne.push(new Qr(Da(ie.anchor,z),Da(ie.head,z)))}return ia(x.cm,ne,x.sel.primIndex)}function Ia(x,z,ne){return x.line==z.line?rn(ne.line,x.ch-z.ch+ne.ch):rn(ne.line+(x.line-z.line),x.ch)}function aa(x,z,ne){for(var te=[],ie=rn(x.first,0),fe=ie,Se=0;Se<z.length;Se++){var Fe=z[Se],We=Ia(Fe.from,ie,fe),ft=Ia(wa(Fe),ie,fe);if(ie=Fe.to,fe=ft,ne=="around"){var Qt=x.sel.ranges[Se],pn=Tn(Qt.head,Qt.anchor)<0;te[Se]=new Qr(pn?ft:We,pn?We:ft)}else te[Se]=new Qr(We,We)}return new Gi(te,x.sel.primIndex)}function Lo(x){x.doc.mode=Jn(x.options,x.doc.modeOption),Qi(x)}function Qi(x){x.doc.iter(function(z){z.stateAfter&&(z.stateAfter=null),z.styles&&(z.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,Fn(x,100),x.state.modeGen++,x.curOp&&_s(x)}function mo(x,z){return z.from.ch==0&&z.to.ch==0&&Zt(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function io(x,z,ne,te){function ie(Yi){return ne?ne[Yi]:null}function fe(Yi,Ii,qi){ga(Yi,Ii,qi,te),Wi(Yi,"change",Yi,z)}function Se(Yi,Ii){for(var qi=[],Sa=Yi;Sa<Ii;++Sa)qi.push(new fi(ft[Sa],ie(Sa),te));return qi}var Fe=z.from,We=z.to,ft=z.text,Qt=Mt(x,Fe.line),pn=Mt(x,We.line),jn=Zt(ft),$n=ie(ft.length-1),wr=We.line-Fe.line;if(z.full)x.insert(0,Se(0,ft.length)),x.remove(ft.length,x.size-ft.length);else if(mo(x,z)){var Ur=Se(0,ft.length-1);fe(pn,pn.text,$n),wr&&x.remove(Fe.line,wr),Ur.length&&x.insert(Fe.line,Ur)}else if(Qt==pn)if(ft.length==1)fe(Qt,Qt.text.slice(0,Fe.ch)+jn+Qt.text.slice(We.ch),$n);else{var wi=Se(1,ft.length-1);wi.push(new fi(jn+Qt.text.slice(We.ch),$n,te)),fe(Qt,Qt.text.slice(0,Fe.ch)+ft[0],ie(0)),x.insert(Fe.line+1,wi)}else if(ft.length==1)fe(Qt,Qt.text.slice(0,Fe.ch)+ft[0]+pn.text.slice(We.ch),ie(0)),x.remove(Fe.line+1,wr);else{fe(Qt,Qt.text.slice(0,Fe.ch)+ft[0],ie(0)),fe(pn,jn+pn.text.slice(We.ch),$n);var zi=Se(1,ft.length-1);wr>1&&x.remove(Fe.line+1,wr-1),x.insert(Fe.line+1,zi)}Wi(x,"change",x,z)}function No(x,z,ne){function te(ie,fe,Se){if(ie.linked)for(var Fe=0;Fe<ie.linked.length;++Fe){var We=ie.linked[Fe];if(We.doc!=fe){var ft=Se&&We.sharedHist;ne&&!ft||(z(We.doc,ft),te(We.doc,ie,ft))}}}te(x,null,!0)}function ea(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,Rs(x),Lo(x),Ui(x),x.options.lineWrapping||Kr(x),x.options.mode=z.modeOption,_s(x)}function Ui(x){(x.doc.direction=="rtl"?Wt:je)(x.display.lineDiv,"CodeMirror-rtl")}function Ji(x){zt(x,function(){Ui(x),_s(x)})}function Ki(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 Di(x,z){var ne={from:Jt(z.from),to:wa(z),text:Ut(x,z.from,z.to)};return fl(x,ne,z.from.line,z.to.line+1),No(x,function(te){return fl(te,ne,z.from.line,z.to.line+1)},!0),ne}function mr(x){for(;x.length;){var z=Zt(x);if(z.ranges)x.pop();else break}}function gi(x,z){if(z)return mr(x.done),Zt(x.done);if(x.done.length&&!Zt(x.done).ranges)return Zt(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),Zt(x.done)}function fa(x,z,ne,te){var ie=x.history;ie.undone.length=0;var fe=+new Date,Se,Fe;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>fe-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(Se=gi(ie,ie.lastOp==te)))Fe=Zt(Se.changes),Tn(z.from,z.to)==0&&Tn(z.from,Fe.to)==0?Fe.to=wa(z):Se.changes.push(Di(x,z));else{var We=Zt(ie.done);for((!We||!We.ranges)&&ls(x.sel,ie.done),Se={changes:[Di(x,z)],generation:ie.generation},ie.done.push(Se);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=fe,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Fe||Ae(x,"historyAdded")}function Aa(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function Ms(x,z,ne,te){var ie=x.history,fe=te&&te.origin;ne==ie.lastSelOp||fe&&ie.lastSelOrigin==fe&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==fe||Aa(x,fe,Zt(ie.done),z))?ie.done[ie.done.length-1]=z:ls(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=fe,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&mr(ie.undone)}function ls(x,z){var ne=Zt(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function fl(x,z,ne,te){var ie=z["spans_"+x.id],fe=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(Se){Se.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[fe]=Se.markedSpans),++fe})}function Yo(x){if(!x)return null;for(var z,ne=0;ne<x.length;++ne)x[ne].marker.explicitlyCleared?z||(z=x.slice(0,ne)):z&&z.push(x[ne]);return z?z.length?z:null:x}function Xo(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ie=0;ie<z.text.length;++ie)te.push(Yo(ne[ie]));return te}function ta(x,z){var ne=Xo(x,z),te=ar(x,z);if(!ne)return te;if(!te)return ne;for(var ie=0;ie<ne.length;++ie){var fe=ne[ie],Se=te[ie];if(fe&&Se)e:for(var Fe=0;Fe<Se.length;++Fe){for(var We=Se[Fe],ft=0;ft<fe.length;++ft)if(fe[ft].marker==We.marker)continue e;fe.push(We)}else Se&&(ne[ie]=Se)}return ne}function vs(x,z,ne){for(var te=[],ie=0;ie<x.length;++ie){var fe=x[ie];if(fe.ranges){te.push(ne?Gi.prototype.deepCopy.call(fe):fe);continue}var Se=fe.changes,Fe=[];te.push({changes:Fe});for(var We=0;We<Se.length;++We){var ft=Se[We],Qt=void 0;if(Fe.push({from:ft.from,to:ft.to,text:ft.text}),z)for(var pn in ft)(Qt=pn.match(/^spans_(\d+)$/))&&Et(z,Number(Qt[1]))>-1&&(Zt(Fe)[pn]=ft[pn],delete ft[pn])}}return te}function Fs(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var fe=Tn(z,ie)<0;fe!=Tn(ne,ie)<0?(ie=z,z=ne):fe!=Tn(z,ne)<0&&(z=ne)}return new Qr(ie,z)}else return new Qr(ne||z,z)}function Xa(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),bo(x,new Gi([Fs(x.sel.primary(),z,ne,ie)],0),te)}function Vr(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),fe=0;fe<x.sel.ranges.length;fe++)te[fe]=Fs(x.sel.ranges[fe],z[fe],null,ie);var Se=ia(x.cm,te,x.sel.primIndex);bo(x,Se,ne)}function fo(x,z,ne,te){var ie=x.sel.ranges.slice(0);ie[z]=ne,bo(x,ia(x.cm,ie,x.sel.primIndex),te)}function us(x,z,ne,te){bo(x,va(z,ne),te)}function cs(x,z,ne){var te={ranges:z.ranges,update:function(ie){this.ranges=[];for(var fe=0;fe<ie.length;fe++)this.ranges[fe]=new Qr(un(x,ie[fe].anchor),un(x,ie[fe].head))},origin:ne&&ne.origin};return Ae(x,"beforeSelectionChange",x,te),x.cm&&Ae(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?ia(x.cm,te.ranges,te.ranges.length-1):z}function ba(x,z,ne){var te=x.history.done,ie=Zt(te);ie&&ie.ranges?(te[te.length-1]=z,Ss(x,z,ne)):bo(x,z,ne)}function bo(x,z,ne){Ss(x,z,ne),Ms(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function Ss(x,z,ne){(Gt(x,"beforeSelectionChange")||x.cm&&Gt(x.cm,"beforeSelectionChange"))&&(z=cs(x,z,ne));var te=ne&&ne.bias||(Tn(z.primary().head,x.sel.primary().head)<0?-1:1);xo(x,Ho(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&_i(x.cm)}function xo(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Kt(x.cm)),Wi(x,"cursorActivity",x))}function ca(x){xo(x,Ho(x,x.sel,null,!1))}function Ho(x,z,ne,te){for(var ie,fe=0;fe<z.ranges.length;fe++){var Se=z.ranges[fe],Fe=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[fe],We=Zl(x,Se.anchor,Fe&&Fe.anchor,ne,te),ft=Zl(x,Se.head,Fe&&Fe.head,ne,te);(ie||We!=Se.anchor||ft!=Se.head)&&(ie||(ie=z.ranges.slice(0,fe)),ie[fe]=new Qr(We,ft))}return ie?ia(x.cm,ie,z.primIndex):z}function Ro(x,z,ne,te,ie){var fe=Mt(x,z.line);if(fe.markedSpans)for(var Se=0;Se<fe.markedSpans.length;++Se){var Fe=fe.markedSpans[Se],We=Fe.marker,ft="selectLeft"in We?!We.selectLeft:We.inclusiveLeft,Qt="selectRight"in We?!We.selectRight:We.inclusiveRight;if((Fe.from==null||(ft?Fe.from<=z.ch:Fe.from<z.ch))&&(Fe.to==null||(Qt?Fe.to>=z.ch:Fe.to>z.ch))){if(ie&&(Ae(We,"beforeCursorEnter"),We.explicitlyCleared))if(fe.markedSpans){--Se;continue}else break;if(!We.atomic)continue;if(ne){var pn=We.find(te<0?1:-1),jn=void 0;if((te<0?Qt:ft)&&(pn=zs(x,pn,-te,pn&&pn.line==z.line?fe:null)),pn&&pn.line==z.line&&(jn=Tn(pn,ne))&&(te<0?jn<0:jn>0))return Ro(x,pn,z,te,ie)}var $n=We.find(te<0?-1:1);return(te<0?ft:Qt)&&($n=zs(x,$n,te,$n.line==z.line?fe:null)),$n?Ro(x,$n,z,te,ie):null}}return z}function Zl(x,z,ne,te,ie){var fe=te||1,Se=Ro(x,z,ne,fe,ie)||!ie&&Ro(x,z,ne,fe,!0)||Ro(x,z,ne,-fe,ie)||!ie&&Ro(x,z,ne,-fe,!0);return Se||(x.cantEdit=!0,rn(x.first,0))}function zs(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?un(x,rn(z.line-1)):null:ne>0&&z.ch==(te||Mt(x,z.line)).text.length?z.line<x.first+x.size-1?rn(z.line+1,0):null:new rn(z.line,z.ch+ne)}function hl(x){x.setSelection(rn(x.firstLine(),0),rn(x.lastLine()),lt)}function Ws(x,z,ne){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ie,fe,Se,Fe){ie&&(te.from=un(x,ie)),fe&&(te.to=un(x,fe)),Se&&(te.text=Se),Fe!==void 0&&(te.origin=Fe)}),Ae(x,"beforeChange",x,te),x.cm&&Ae(x.cm,"beforeChange",x.cm,te),te.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function Zo(x,z,ne){if(x.cm){if(!x.cm.curOp)return bn(x.cm,Zo)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((Gt(x,"beforeChange")||x.cm&&Gt(x.cm,"beforeChange"))&&(z=Ws(x,z,!0),!z))){var te=di&&!ne&&pi(x,z.from,z.to);if(te)for(var ie=te.length-1;ie>=0;--ie)os(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else os(x,z)}}function os(x,z){if(!(z.text.length==1&&z.text[0]==""&&Tn(z.from,z.to)==0)){var ne=So(x,z);fa(x,z,ne,x.cm?x.cm.curOp.id:NaN),pl(x,z,ne,ar(x,z));var te=[];No(x,function(ie,fe){!fe&&Et(te,ie.history)==-1&&(Eo(ie.history,z),te.push(ie.history)),pl(ie,z,null,ar(ie,z))})}}function il(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,fe,Se=x.sel,Fe=z=="undo"?ie.done:ie.undone,We=z=="undo"?ie.undone:ie.done,ft=0;ft<Fe.length&&(fe=Fe[ft],!(ne?fe.ranges&&!fe.equals(x.sel):!fe.ranges));ft++);if(ft!=Fe.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(fe=Fe.pop(),fe.ranges){if(ls(fe,We),ne&&!fe.equals(x.sel)){bo(x,fe,{clearRedo:!1});return}Se=fe}else if(te){Fe.push(fe);return}else break;var Qt=[];ls(Se,We),We.push({changes:Qt,generation:ie.generation}),ie.generation=fe.generation||++ie.maxGeneration;for(var pn=Gt(x,"beforeChange")||x.cm&&Gt(x.cm,"beforeChange"),jn=function(Ur){var wi=fe.changes[Ur];if(wi.origin=z,pn&&!Ws(x,wi,!1))return Fe.length=0,{};Qt.push(Di(x,wi));var zi=Ur?So(x,wi):Zt(Fe);pl(x,wi,zi,ta(x,wi)),!Ur&&x.cm&&x.cm.scrollIntoView({from:wi.from,to:wa(wi)});var Yi=[];No(x,function(Ii,qi){!qi&&Et(Yi,Ii.history)==-1&&(Eo(Ii.history,wi),Yi.push(Ii.history)),pl(Ii,wi,null,ta(Ii,wi))})},$n=fe.changes.length-1;$n>=0;--$n){var wr=jn($n);if(wr)return wr.v}}}}function Gl(x,z){if(z!=0&&(x.first+=z,x.sel=new Gi(an(x.sel.ranges,function(ie){return new Qr(rn(ie.anchor.line+z,ie.anchor.ch),rn(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){_s(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)Kl(x.cm,te,"gutter")}}function pl(x,z,ne,te){if(x.cm&&!x.cm.curOp)return bn(x.cm,pl)(x,z,ne,te);if(z.to.line<x.first){Gl(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var ie=z.text.length-1-(x.first-z.from.line);Gl(x,ie),z={from:rn(x.first,0),to:rn(z.to.line+ie,z.to.ch),text:[Zt(z.text)],origin:z.origin}}var fe=x.lastLine();z.to.line>fe&&(z={from:z.from,to:rn(fe,Mt(x,fe).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Ut(x,z.from,z.to),ne||(ne=So(x,z)),x.cm?Yl(x.cm,z,te):io(x,z,te),Ss(x,ne,lt),x.cantEdit&&Zl(x,rn(x.firstLine(),0))&&(x.cantEdit=!1)}}function Yl(x,z,ne){var te=x.doc,ie=x.display,fe=z.from,Se=z.to,Fe=!1,We=fe.line;x.options.lineWrapping||(We=ln(Hi(Mt(te,fe.line))),te.iter(We,Se.line+1,function($n){if($n==ie.maxLine)return Fe=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Kt(x),io(te,z,ne,dl(x)),x.options.lineWrapping||(te.iter(We,fe.line+z.text.length,function($n){var wr=Zr($n);wr>ie.maxLineLength&&(ie.maxLine=$n,ie.maxLineLength=wr,ie.maxLineChanged=!0,Fe=!1)}),Fe&&(x.curOp.updateMaxLine=!0)),yr(te,fe.line),Fn(x,400);var ft=z.text.length-(Se.line-fe.line)-1;z.full?_s(x):fe.line==Se.line&&z.text.length==1&&!mo(x.doc,z)?Kl(x,fe.line,"text"):_s(x,fe.line,Se.line+1,ft);var Qt=Gt(x,"changes"),pn=Gt(x,"change");if(pn||Qt){var jn={from:fe,to:Se,text:z.text,removed:z.removed,origin:z.origin};pn&&Wi(x,"change",x,jn),Qt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(jn)}x.display.selForContextMenu=null}function cu(x,z,ne,te,ie){var fe;te||(te=ne),Tn(te,ne)<0&&(fe=[te,ne],ne=fe[0],te=fe[1]),typeof z=="string"&&(z=x.splitLines(z)),Zo(x,{from:ne,to:te,text:z,origin:ie})}function uc(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function ao(x,z,ne,te){for(var ie=0;ie<x.length;++ie){var fe=x[ie],Se=!0;if(fe.ranges){fe.copied||(fe=x[ie]=fe.deepCopy(),fe.copied=!0);for(var Fe=0;Fe<fe.ranges.length;Fe++)uc(fe.ranges[Fe].anchor,z,ne,te),uc(fe.ranges[Fe].head,z,ne,te);continue}for(var We=0;We<fe.changes.length;++We){var ft=fe.changes[We];if(ne<ft.from.line)ft.from=rn(ft.from.line+te,ft.from.ch),ft.to=rn(ft.to.line+te,ft.to.ch);else if(z<=ft.to.line){Se=!1;break}}Se||(x.splice(0,ie+1),ie=0)}}function Eo(x,z){var ne=z.from.line,te=z.to.line,ie=z.text.length-(te-ne)-1;ao(x.done,ne,te,ie),ao(x.undone,ne,te,ie)}function ks(x,z,ne,te){var ie=z,fe=z;return typeof z=="number"?fe=Mt(x,In(x,z)):ie=ln(z),ie==null?null:(te(fe,ie)&&x.cm&&Kl(x.cm,ie,ne),fe)}function Bo(x){this.lines=x,this.parent=null;for(var z=0,ne=0;ne<x.length;++ne)x[ne].parent=this,z+=x[ne].height;this.height=z}Bo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ie=this.lines[ne];this.height-=ie.height,Fa(ie),Wi(ie,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ne){this.height+=ne,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var te=0;te<z.length;++te)z[te].parent=this},iterN:function(x,z,ne){for(var te=x+z;x<te;++x)if(ne(this.lines[x]))return!0}};function Bs(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ie=x[te];z+=ie.chunkSize(),ne+=ie.height,ie.parent=this}this.size=z,this.height=ne,this.parent=null}Bs.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ie=te.chunkSize();if(x<ie){var fe=Math.min(z,ie-x),Se=te.height;if(te.removeInner(x,fe),this.height-=Se-te.height,ie==fe&&(this.children.splice(ne--,1),te.parent=null),(z-=fe)==0)break;x=0}else x-=ie}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof Bo))){var Fe=[];this.collapse(Fe),this.children=[new Bo(Fe)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ie=this.children[te],fe=ie.chunkSize();if(x<=fe){if(ie.insertInner(x,z,ne),ie.lines&&ie.lines.length>50){for(var Se=ie.lines.length%25+25,Fe=Se;Fe<ie.lines.length;){var We=new Bo(ie.lines.slice(Fe,Fe+=25));ie.height-=We.height,this.children.splice(++te,0,We),We.parent=this}ie.lines=ie.lines.slice(0,Se),this.maybeSpill()}break}x-=fe}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new Bs(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ie=Et(x.parent.children,x);x.parent.children.splice(ie+1,0,ne)}else{var te=new Bs(x.children);te.parent=x,x.children=[te,ne],x=te}ne.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;te<this.children.length;++te){var ie=this.children[te],fe=ie.chunkSize();if(x<fe){var Se=Math.min(z,fe-x);if(ie.iterN(x,Se,ne))return!0;if((z-=Se)==0)break;x=0}else x-=fe}}};var Is=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};Is.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=ln(ne);if(!(te==null||!z)){for(var ie=0;ie<z.length;++ie)z[ie]==this&&z.splice(ie--,1);z.length||(ne.widgets=null);var fe=Cl(this);mn(ne,Math.max(0,ne.height-fe)),x&&(zt(x,function(){Ys(x,ne,-fe),Kl(x,te,"widget")}),Wi(x,"lineWidgetCleared",x,this,te))}},Is.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ie=Cl(this)-z;ie&&(Qa(this.doc,te)||mn(te,te.height+ie),ne&&zt(ne,function(){ne.curOp.forceUpdate=!0,Ys(ne,te,ie),Wi(ne,"lineWidgetChanged",ne,x,ln(te))}))},hn(Is);function Ys(x,z,ne){Gr(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&Ni(x,ne)}function Xl(x,z,ne,te){var ie=new Is(x,ne,te),fe=x.cm;return fe&&ie.noHScroll&&(fe.display.alignWidgets=!0),ks(x,z,"widget",function(Se){var Fe=Se.widgets||(Se.widgets=[]);if(ie.insertAt==null?Fe.push(ie):Fe.splice(Math.min(Fe.length-1,Math.max(0,ie.insertAt)),0,ie),ie.line=Se,fe&&!Qa(x,Se)){var We=Gr(Se)<x.scrollTop;mn(Se,Se.height+Cl(ie)),We&&Ni(fe,ie.height),fe.curOp.forceUpdate=!0}return!0}),fe&&Wi(fe,"lineWidgetAdded",fe,ie,typeof z=="number"?z:ln(z)),ie}var cc=0,Du=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++cc};Du.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&ro(x),Gt(this,"clear")){var ne=this.find();ne&&Wi(this,"clear",ne.from,ne.to)}for(var te=null,ie=null,fe=0;fe<this.lines.length;++fe){var Se=this.lines[fe],Fe=yi(Se.markedSpans,this);x&&!this.collapsed?Kl(x,ln(Se),"text"):x&&(Fe.to!=null&&(ie=ln(Se)),Fe.from!=null&&(te=ln(Se))),Se.markedSpans=ui(Se.markedSpans,Fe),Fe.from==null&&this.collapsed&&!Qa(this.doc,Se)&&x&&mn(Se,uu(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var We=0;We<this.lines.length;++We){var ft=Hi(this.lines[We]),Qt=Zr(ft);Qt>x.display.maxLineLength&&(x.display.maxLine=ft,x.display.maxLineLength=Qt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&_s(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&ca(x.doc)),x&&Wi(x,"markerCleared",x,this,te,ie),z&&as(x),this.parent&&this.parent.clear()}},Du.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie<this.lines.length;++ie){var fe=this.lines[ie],Se=yi(fe.markedSpans,this);if(Se.from!=null&&(ne=rn(z?fe:ln(fe),Se.from),x==-1))return ne;if(Se.to!=null&&(te=rn(z?fe:ln(fe),Se.to),x==1))return te}return ne&&{from:ne,to:te}},Du.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||zt(te,function(){var ie=z.line,fe=ln(z.line),Se=Os(te,fe);if(Se&&(Ko(Se),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!Qa(ne.doc,ie)&&ne.height!=null){var Fe=ne.height;ne.height=null;var We=Cl(ne)-Fe;We&&mn(ie,ie.height+We)}Wi(te,"markerChanged",te,x)})},Du.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Et(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Du.prototype.detachLine=function(x){if(this.lines.splice(Et(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},hn(Du);function Ql(x,z,ne,te,ie){if(te&&te.shared)return ss(x,z,ne,te,ie);if(x.cm&&!x.cm.curOp)return bn(x.cm,Ql)(x,z,ne,te,ie);var fe=new Du(x,ie),Se=Tn(z,ne);if(te&&jt(te,fe,!1),Se>0||Se==0&&fe.clearWhenEmpty!==!1)return fe;if(fe.replacedWith&&(fe.collapsed=!0,fe.widgetNode=mt("span",[fe.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||fe.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(fe.widgetNode.insertLeft=!0)),fe.collapsed){if(Pi(x,z.line,z,ne,fe)||z.line!=ne.line&&Pi(x,ne.line,z,ne,fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Wr()}fe.addToHistory&&fa(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Fe=z.line,We=x.cm,ft;if(x.iter(Fe,ne.line+1,function(pn){We&&fe.collapsed&&!We.options.lineWrapping&&Hi(pn)==We.display.maxLine&&(ft=!0),fe.collapsed&&Fe!=z.line&&mn(pn,0),$i(pn,new jr(fe,Fe==z.line?z.ch:null,Fe==ne.line?ne.ch:null)),++Fe}),fe.collapsed&&x.iter(z.line,ne.line+1,function(pn){Qa(x,pn)&&mn(pn,0)}),fe.clearOnEnter&&Rt(fe,"beforeCursorEnter",function(){return fe.clear()}),fe.readOnly&&(vi(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),fe.collapsed&&(fe.id=++cc,fe.atomic=!0),We){if(ft&&(We.curOp.updateMaxLine=!0),fe.collapsed)_s(We,z.line,ne.line+1);else if(fe.className||fe.startStyle||fe.endStyle||fe.css||fe.attributes||fe.title)for(var Qt=z.line;Qt<=ne.line;Qt++)Kl(We,Qt,"text");fe.atomic&&ca(We.doc),Wi(We,"markerAdded",We,fe)}return fe}var oo=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();Wi(this,"clear")}},oo.prototype.find=function(x,z){return this.primary.find(x,z)},hn(oo);function ss(x,z,ne,te,ie){te=jt(te),te.shared=!1;var fe=[Ql(x,z,ne,te,ie)],Se=fe[0],Fe=te.widgetNode;return No(x,function(We){Fe&&(te.widgetNode=Fe.cloneNode(!0)),fe.push(Ql(We,un(We,z),un(We,ne),te,ie));for(var ft=0;ft<We.linked.length;++ft)if(We.linked[ft].isParent)return;Se=Zt(fe)}),new oo(fe,Se)}function Jl(x){return x.findMarks(rn(x.first,0),x.clipPos(rn(x.lastLine())),function(z){return z.parent})}function Au(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ie=te.find(),fe=x.clipPos(ie.from),Se=x.clipPos(ie.to);if(Tn(fe,Se)){var Fe=Ql(x,fe,Se,te.primary,te.primary.type);te.markers.push(Fe),Fe.parent=te}}}function Xs(x){for(var z=function(te){var ie=x[te],fe=[ie.primary.doc];No(ie.primary.doc,function(We){return fe.push(We)});for(var Se=0;Se<ie.markers.length;Se++){var Fe=ie.markers[Se];Et(fe,Fe.doc)==-1&&(Fe.parent=null,ie.markers.splice(Se--,1))}},ne=0;ne<x.length;ne++)z(ne)}var Lc=0,Ds=function(x,z,ne,te,ie){if(!(this instanceof Ds))return new Ds(x,z,ne,te,ie);ne==null&&(ne=0),Bs.call(this,[new Bo([new fi("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var fe=rn(ne,0);this.sel=va(fe),this.history=new Ki(null),this.id=++Lc,this.modeOption=z,this.lineSep=te,this.direction=ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),io(this,{from:fe,to:fe,text:x}),bo(this,va(fe),lt)};Ds.prototype=ue(Bs.prototype,{constructor:Ds,iter:function(x,z,ne){ne?this.iterN(x-this.first,z-x,ne):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var ne=0,te=0;te<z.length;++te)ne+=z[te].height;this.insertInner(x-this.first,z,ne)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=An(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:yn(function(x){var z=rn(this.first,0),ne=this.first+this.size-1;Zo(this,{from:z,to:rn(ne,Mt(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&Li(this.cm,0,0),bo(this,va(z),lt)}),replaceRange:function(x,z,ne,te){z=un(this,z),ne=ne?un(this,ne):z,cu(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Ut(this,un(this,x),un(this,z));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(Wn(this,x))return Mt(this,x)},getLineNumber:function(x){return ln(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Mt(this,x)),Hi(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return un(this,x)},getCursor:function(x){var z=this.sel.primary(),ne;return x==null||x=="head"?ne=z.head:x=="anchor"?ne=z.anchor:x=="end"||x=="to"||x===!1?ne=z.to():ne=z.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:yn(function(x,z,ne){us(this,un(this,typeof x=="number"?rn(x,z||0):x),null,ne)}),setSelection:yn(function(x,z,ne){us(this,un(this,x),un(this,z||x),ne)}),extendSelection:yn(function(x,z,ne){Xa(this,un(this,x),z&&un(this,z),ne)}),extendSelections:yn(function(x,z){Vr(this,ot(this,x),z)}),extendSelectionsBy:yn(function(x,z){var ne=an(this.sel.ranges,x);Vr(this,ot(this,ne),z)}),setSelections:yn(function(x,z,ne){if(x.length){for(var te=[],ie=0;ie<x.length;ie++)te[ie]=new Qr(un(this,x[ie].anchor),un(this,x[ie].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),bo(this,ia(this.cm,te,z),ne)}}),addSelection:yn(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Qr(un(this,x),un(this,z||x))),bo(this,ia(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ie=Ut(this,z[te].from(),z[te].to());ne=ne?ne.concat(ie):ie}return x===!1?ne:ne.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ie=Ut(this,ne[te].from(),ne[te].to());x!==!1&&(ie=ie.join(x||this.lineSeparator())),z[te]=ie}return z},replaceSelection:function(x,z,ne){for(var te=[],ie=0;ie<this.sel.ranges.length;ie++)te[ie]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:yn(function(x,z,ne){for(var te=[],ie=this.sel,fe=0;fe<ie.ranges.length;fe++){var Se=ie.ranges[fe];te[fe]={from:Se.from(),to:Se.to(),text:this.splitLines(x[fe]),origin:ne}}for(var Fe=z&&z!="end"&&aa(this,te,z),We=te.length-1;We>=0;We--)Zo(this,te[We]);Fe?ba(this,Fe):this.cm&&_i(this.cm)}),undo:yn(function(){il(this,"undo")}),redo:yn(function(){il(this,"redo")}),undoSelection:yn(function(){il(this,"undo",!0)}),redoSelection:yn(function(){il(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ie=0;ie<x.undone.length;ie++)x.undone[ie].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new Ki(this.history.maxGeneration),No(this,function(z){return z.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:vs(this.history.done),undone:vs(this.history.undone)}},setHistory:function(x){var z=this.history=new Ki(this.history.maxGeneration);z.done=vs(x.done.slice(0),null,!0),z.undone=vs(x.undone.slice(0),null,!0)},setGutterMarker:yn(function(x,z,ne){return ks(this,x,"gutter",function(te){var ie=te.gutterMarkers||(te.gutterMarkers={});return ie[z]=ne,!ne&&se(ie)&&(te.gutterMarkers=null),!0})}),clearGutter:yn(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&ks(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,se(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!Wn(this,x)||(z=x,x=Mt(this,x),!x))return null}else if(z=ln(x),z==null)return null;return{line:z,handle:x,text:x.text,gutterMarkers:x.gutterMarkers,textClass:x.textClass,bgClass:x.bgClass,wrapClass:x.wrapClass,widgets:x.widgets}},addLineClass:yn(function(x,z,ne){return ks(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ie])te[ie]=ne;else{if(he(ne).test(te[ie]))return!1;te[ie]+=" "+ne}return!0})}),removeLineClass:yn(function(x,z,ne){return ks(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",fe=te[ie];if(fe)if(ne==null)te[ie]=null;else{var Se=fe.match(he(ne));if(!Se)return!1;var Fe=Se.index+Se[0].length;te[ie]=fe.slice(0,Se.index)+(!Se.index||Fe==fe.length?"":" ")+fe.slice(Fe)||null}else return!1;return!0})}),addLineWidget:yn(function(x,z,ne){return Xl(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return Ql(this,un(this,x),un(this,z),ne,ne&&ne.type||"range")},setBookmark:function(x,z){var ne={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=un(this,x),Ql(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=un(this,x);var z=[],ne=Mt(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ie=ne[te];(ie.from==null||ie.from<=x.ch)&&(ie.to==null||ie.to>=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=un(this,x),z=un(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(fe){var Se=fe.markedSpans;if(Se)for(var Fe=0;Fe<Se.length;Fe++){var We=Se[Fe];!(We.to!=null&&ie==x.line&&x.ch>=We.to||We.from==null&&ie!=x.line||We.from!=null&&ie==z.line&&We.from>=z.ch)&&(!ne||ne(We.marker))&&te.push(We.marker.parent||We.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&x.push(ne[te].marker)}),x},posFromIndex:function(x){var z,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ie){var fe=ie.text.length+te;if(fe>x)return z=x,!0;x-=fe,++ne}),un(this,rn(ne,z))},indexFromPos:function(x){x=un(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,x.line,function(te){z+=te.text.length+ne}),z},copy:function(x){var z=new Ds(An(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return z.scrollTop=this.scrollTop,z.scrollLeft=this.scrollLeft,z.sel=this.sel,z.extend=!1,x&&(z.history.undoDepth=this.history.undoDepth,z.setHistory(this.getHistory())),z},linkedDoc:function(x){x||(x={});var z=this.first,ne=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<ne&&(ne=x.to);var te=new Ds(An(this,z,ne),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:x.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],Au(te,Jl(this)),te},unlinkDoc:function(x){if(x instanceof Va&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ne=this.linked[z];if(ne.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Xs(Jl(this));break}}if(x.history==this.history){var te=[x.id];No(x,function(ie){return te.push(ie.id)},!0),x.history=new Ki(null),x.history.done=vs(this.history.done,te),x.history.undone=vs(this.history.undone,te)}},iterLinkedDocs:function(x){No(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Hr(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:yn(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&Ji(this.cm))})}),Ds.prototype.eachLine=Ds.prototype.iter;var ec=0;function Bc(x){var z=this;if(Wu(z),!(Ve(z,x)||Sl(z.display,x))){On(x),be&&(ec=+new Date);var ne=rl(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ie=te.length,fe=Array(ie),Se=0,Fe=function(){++Se==ie&&bn(z,function(){ne=un(z.doc,ne);var $n={from:ne,to:ne,text:z.doc.splitLines(fe.filter(function(wr){return wr!=null}).join(z.doc.lineSeparator())),origin:"paste"};Zo(z.doc,$n),ba(z.doc,va(un(z.doc,ne),un(z.doc,wa($n))))})()},We=function($n,wr){if(z.options.allowDropFileTypes&&Et(z.options.allowDropFileTypes,$n.type)==-1){Fe();return}var Ur=new FileReader;Ur.onerror=function(){return Fe()},Ur.onload=function(){var wi=Ur.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(wi)){Fe();return}fe[wr]=wi,Fe()},Ur.readAsText($n)},ft=0;ft<te.length;ft++)We(te[ft],ft);else{if(z.state.draggingText&&z.doc.sel.contains(ne)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var Qt=x.dataTransfer.getData("Text");if(Qt){var pn;if(z.state.draggingText&&!z.state.draggingText.copy&&(pn=z.listSelections()),Ss(z.doc,va(ne,ne)),pn)for(var jn=0;jn<pn.length;++jn)cu(z.doc,"",pn[jn].anchor,pn[jn].head,"drag");z.replaceSelection(Qt,"around","paste"),z.display.input.focus()}}catch($n){}}}}function dc(x,z){if(be&&(!x.state.draggingText||+new Date-ec<100)){tr(z);return}if(!(Ve(x,z)||Sl(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!vt)){var ne=Ue("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ke&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),Ke&&ne.parentNode.removeChild(ne)}}function Zu(x,z){var ne=rl(x,z);if(ne){var te=document.createDocumentFragment();Dn(x,ne,te),x.display.dragCursor||(x.display.dragCursor=Ue("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),Qe(x.display.dragCursor,te)}}function Wu(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function wu(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ie=z[te].CodeMirror;ie&&ne.push(ie)}ne.length&&ne[0].operation(function(){for(var fe=0;fe<ne.length;fe++)x(ne[fe])})}}var li=!1;function Ic(){li||(ju(),li=!0)}function ju(){var x;Rt(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,wu(fc)},100))}),Rt(window,"blur",function(){return wu(ur)})}function fc(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var Wl={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"},Pu=0;Pu<10;Pu++)Wl[Pu+48]=Wl[Pu+96]=String(Pu);for(var Iu=65;Iu<=90;Iu++)Wl[Iu]=String.fromCharCode(Iu);for(var Tu=1;Tu<=12;Tu++)Wl[Tu+111]=Wl[Tu+63235]="F"+Tu;var qo={};qo.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"},qo.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"},qo.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"},qo.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"]},qo.default=yt?qo.macDefault:qo.pcDefault;function Wc(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ie,fe,Se=0;Se<z.length-1;Se++){var Fe=z[Se];if(/^(cmd|meta|m)$/i.test(Fe))fe=!0;else if(/^a(lt)?$/i.test(Fe))ne=!0;else if(/^(c|ctrl|control)$/i.test(Fe))te=!0;else if(/^s(hift)?$/i.test(Fe))ie=!0;else throw new Error("Unrecognized modifier name: "+Fe)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),fe&&(x="Cmd-"+x),ie&&(x="Shift-"+x),x}function tc(x){var z={};for(var ne in x)if(x.hasOwnProperty(ne)){var te=x[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete x[ne];continue}for(var ie=an(ne.split(" "),Wc),fe=0;fe<ie.length;fe++){var Se=void 0,Fe=void 0;fe==ie.length-1?(Fe=ie.join(" "),Se=te):(Fe=ie.slice(0,fe+1).join(" "),Se="...");var We=z[Fe];if(!We)z[Fe]=Se;else if(We!=Se)throw new Error("Inconsistent bindings for "+Fe)}delete x[ne]}for(var ft in z)x[ft]=z[ft];return x}function ql(x,z,ne,te){z=al(z);var ie=z.call?z.call(x,te):z[x];if(ie===!1)return"nothing";if(ie==="...")return"multi";if(ie!=null&&ne(ie))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return ql(x,z.fallthrough,ne,te);for(var fe=0;fe<z.fallthrough.length;fe++){var Se=ql(x,z.fallthrough[fe],ne,te);if(Se)return Se}}}function nc(x){var z=typeof x=="string"?x:Wl[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function du(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(st?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(st?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function Cu(x,z){if(Ke&&x.keyCode==34&&x.char)return!1;var ne=Wl[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),du(ne,x,z))}function al(x){return typeof x=="string"?qo[x]:x}function El(x,z){for(var ne=x.doc.sel.ranges,te=[],ie=0;ie<ne.length;ie++){for(var fe=z(ne[ie]);te.length&&Tn(fe.from,Zt(te).to)<=0;){var Se=te.pop();if(Tn(Se.from,fe.from)<0){fe.from=Se.from;break}}te.push(fe)}zt(x,function(){for(var Fe=te.length-1;Fe>=0;Fe--)cu(x.doc,"",te[Fe].from,te[Fe].to,"+delete");_i(x)})}function js(x,z,ne){var te=Ge(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function fu(x,z,ne){var te=js(x,z.ch,ne);return te==null?null:new rn(z.line,te,ne<0?"after":"before")}function so(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var fe=xn(ne,z.doc.direction);if(fe){var Se=ie<0?Zt(fe):fe[0],Fe=ie<0==(Se.level==1),We=Fe?"after":"before",ft;if(Se.level>0||z.doc.direction=="rtl"){var Qt=gs(z,ne);ft=ie<0?ne.text.length-1:0;var pn=Do(z,Qt,ft).top;ft=_e(function(jn){return Do(z,Qt,jn).top==pn},ie<0==(Se.level==1)?Se.from:Se.to-1,ft),We=="before"&&(ft=js(ne,ft,1))}else ft=ie<0?Se.to:Se.from;return new rn(te,ft,We)}}return new rn(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Mo(x,z,ne,te){var ie=xn(z,x.doc.direction);if(!ie)return fu(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var fe=rt(ie,ne.ch,ne.sticky),Se=ie[fe];if(x.doc.direction=="ltr"&&Se.level%2==0&&(te>0?Se.to>ne.ch:Se.from<ne.ch))return fu(z,ne,te);var Fe=function(zi,Yi){return js(z,zi instanceof rn?zi.ch:zi,Yi)},We,ft=function(zi){return x.options.lineWrapping?(We=We||gs(x,z),bu(x,z,We,zi)):{begin:0,end:z.text.length}},Qt=ft(ne.sticky=="before"?Fe(ne,-1):ne.ch);if(x.doc.direction=="rtl"||Se.level==1){var pn=Se.level==1==te<0,jn=Fe(ne,pn?1:-1);if(jn!=null&&(pn?jn<=Se.to&&jn<=Qt.end:jn>=Se.from&&jn>=Qt.begin)){var $n=pn?"before":"after";return new rn(ne.line,jn,$n)}}var wr=function(zi,Yi,Ii){for(var qi=function(bs,Ml){return Ml?new rn(ne.line,Fe(bs,1),"before"):new rn(ne.line,bs,"after")};zi>=0&&zi<ie.length;zi+=Yi){var Sa=ie[zi],Ma=Yi>0==(Sa.level!=1),go=Ma?Ii.begin:Fe(Ii.end,-1);if(Sa.from<=go&&go<Sa.to||(go=Ma?Sa.from:Fe(Sa.to,-1),Ii.begin<=go&&go<Ii.end))return qi(go,Ma)}},Ur=wr(fe+te,te,Qt);if(Ur)return Ur;var wi=te>0?Qt.end:Fe(Qt.begin,-1);return wi!=null&&!(te>0&&wi==z.text.length)&&(Ur=wr(te>0?0:ie.length-1,te,ft(wi)),Ur)?Ur:null}var ol={selectAll:hl,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),lt)},killLine:function(x){return El(x,function(z){if(z.empty()){var ne=Mt(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:rn(z.head.line+1,0)}:{from:z.head,to:rn(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return El(x,function(z){return{from:rn(z.from().line,0),to:un(x.doc,rn(z.to().line+1,0))}})},delLineLeft:function(x){return El(x,function(z){return{from:rn(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return El(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return{from:te,to:z.from()}})},delWrappedLineRight:function(x){return El(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:z.from(),to:te}})},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(rn(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(rn(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return eu(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return Tc(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return tu(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},Ft)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:ne},"div")},Ft)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return te.ch<x.getLine(te.line).search(/\S/)?Tc(x,z.head):te},Ft)},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 z=[],ne=x.listSelections(),te=x.options.tabSize,ie=0;ie<ne.length;ie++){var fe=ne[ie].from(),Se=it(x.getLine(fe.line),fe.ch,te);z.push(Pn(te-Se%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return zt(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ie=z[te].head,fe=Mt(x.doc,ie.line).text;if(fe){if(ie.ch==fe.length&&(ie=new rn(ie.line,ie.ch-1)),ie.ch>0)ie=new rn(ie.line,ie.ch+1),x.replaceRange(fe.charAt(ie.ch-1)+fe.charAt(ie.ch-2),rn(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var Se=Mt(x.doc,ie.line-1).text;Se&&(ie=new rn(ie.line,1),x.replaceRange(fe.charAt(0)+x.doc.lineSeparator()+Se.charAt(Se.length-1),rn(ie.line-1,Se.length-1),ie,"+transpose"))}}ne.push(new Qr(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return zt(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;te<z.length;te++)x.indentLine(z[te].from().line,null,!0);_i(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function eu(x,z){var ne=Mt(x.doc,z),te=Hi(ne);return te!=ne&&(z=ln(te)),so(!0,x,te,z,1)}function tu(x,z){var ne=Mt(x.doc,z),te=Na(ne);return te!=ne&&(z=ln(te)),so(!0,x,ne,z,-1)}function Tc(x,z){var ne=eu(x,z.line),te=Mt(x.doc,ne.line),ie=xn(te,x.doc.direction);if(!ie||ie[0].level==0){var fe=Math.max(ne.ch,te.text.search(/\S/)),Se=z.line==ne.line&&z.ch<=fe&&z.ch;return rn(ne.line,Se?0:fe,ne.sticky)}return ne}function As(x,z,ne){if(typeof z=="string"&&(z=ol[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ie=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ie=z(x)!=Yt}finally{x.display.shift=te,x.state.suppressEdits=!1}return ie}function jl(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ie=ql(z,x.state.keyMaps[te],ne,x);if(ie)return ie}return x.options.extraKeys&&ql(z,x.options.extraKeys,ne,x)||ql(z,x.options.keyMap,ne,x)}var Oc=new Ce;function hu(x,z,ne,te){var ie=x.state.keySeq;if(ie){if(nc(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Oc.set(50,function(){x.state.keySeq==ie&&(x.state.keySeq=null,x.display.input.reset())}),jc(x,ie+" "+z,ne,te))return!0}return jc(x,z,ne,te)}function jc(x,z,ne,te){var ie=jl(x,z,te);return ie=="multi"&&(x.state.keySeq=z),ie=="handled"&&Wi(x,"keyHandled",x,z,ne),(ie=="handled"||ie=="multi")&&(On(ne),Gn(x)),!!ie}function wo(x,z){var ne=Cu(z,!0);return ne?z.shiftKey&&!x.state.keySeq?hu(x,"Shift-"+ne,z,function(te){return As(x,te,!0)})||hu(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return As(x,te)}):hu(x,ne,z,function(te){return As(x,te)}):!1}function Vu(x,z,ne){return hu(x,"'"+ne+"'",z,function(te){return As(x,te,!0)})}var Al=null;function hc(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=at(),!Ve(z,x))){be&&ke<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=wo(z,x);Ke&&(Al=te?ne:null,!te&&ne==88&&!Zn&&(yt?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),ce&&!yt&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&xr(z)}}function xr(x){var z=x.display.lineDiv;Wt(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(je(z,"CodeMirror-crosshair"),ct(document,"keyup",ne),ct(document,"mouseover",ne))}Rt(document,"keyup",ne),Rt(document,"mouseover",ne)}function td(x){x.keyCode==16&&(this.doc.sel.shift=!1),Ve(this,x)}function nd(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Sl(z.display,x)||Ve(z,x)||x.ctrlKey&&!x.altKey||yt&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(Ke&&ne==Al){Al=null,On(x);return}if(!(Ke&&(!x.which||x.which<10)&&wo(z,x))){var ie=String.fromCharCode(te==null?ne:te);ie!="\b"&&(Vu(z,x,ie)||z.display.input.onKeyPress(x))}}}var rd=400,id=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};id.prototype.compare=function(x,z,ne){return this.time+rd>x&&Tn(z,this.pos)==0&&ne==this.button};var Ou,pc;function Wd(x,z){var ne=+new Date;return pc&&pc.compare(ne,x,z)?(Ou=pc=null,"triple"):Ou&&Ou.compare(ne,x,z)?(pc=new id(ne,x,z),Ou=null,"double"):(Ou=new id(ne,x,z),pc=null,"single")}function yl(x){var z=this,ne=z.display;if(!(Ve(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Sl(ne,x)){pe||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!da(z,x)){var te=rl(z,x),ie=Un(x),fe=te?Wd(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Uu(z,ie,te,fe,x))&&(ie==1?te?mc(z,te,fe,x):gr(x)==ne.scroller&&On(x):ie==2?(te&&Xa(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(ze?z.display.input.onContextMenu(x):qr(z)))}}}function Uu(x,z,ne,te,ie){var fe="Click";return te=="double"?fe="Double"+fe:te=="triple"&&(fe="Triple"+fe),fe=(z==1?"Left":z==2?"Middle":"Right")+fe,hu(x,du(fe,ie),ie,function(Se){if(typeof Se=="string"&&(Se=ol[Se]),!Se)return!1;var Fe=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Fe=Se(x,ne)!=Yt}finally{x.state.suppressEdits=!1}return Fe})}function Nc(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var fe=wt?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=fe?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=yt?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(yt?ne.altKey:ne.ctrlKey)),ie}function mc(x,z,ne,te){be?setTimeout(Xt(nr,x),0):x.curOp.focus=at();var ie=Nc(x,ne,te),fe=x.doc.sel,Se;x.options.dragDrop&&Cr&&!x.isReadOnly()&&ne=="single"&&(Se=fe.contains(z))>-1&&(Tn((Se=fe.ranges[Se]).from(),z)<0||z.xRel>0)&&(Tn(Se.to(),z)>0||z.xRel<0)?ad(x,te,z,ie):od(x,te,z,ie)}function ad(x,z,ne,te){var ie=x.display,fe=!1,Se=bn(x,function(ft){pe&&(ie.scroller.draggable=!1),x.state.draggingText=!1,ct(ie.wrapper.ownerDocument,"mouseup",Se),ct(ie.wrapper.ownerDocument,"mousemove",Fe),ct(ie.scroller,"dragstart",We),ct(ie.scroller,"drop",Se),fe||(On(ft),te.addNew||Xa(x.doc,ne,null,null,te.extend),pe&&!vt||be&&ke==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Fe=function(ft){fe=fe||Math.abs(z.clientX-ft.clientX)+Math.abs(z.clientY-ft.clientY)>=10},We=function(){return fe=!0};pe&&(ie.scroller.draggable=!0),x.state.draggingText=Se,Se.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Rt(ie.wrapper.ownerDocument,"mouseup",Se),Rt(ie.wrapper.ownerDocument,"mousemove",Fe),Rt(ie.scroller,"dragstart",We),Rt(ie.scroller,"drop",Se),qr(x),setTimeout(function(){return ie.input.focus()},20)}function wd(x,z,ne){if(ne=="char")return new Qr(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Qr(rn(z.line,0),un(x.doc,rn(z.line+1,0)));var te=ne(x,z);return new Qr(te.from,te.to)}function od(x,z,ne,te){var ie=x.display,fe=x.doc;On(z);var Se,Fe,We=fe.sel,ft=We.ranges;if(te.addNew&&!te.extend?(Fe=fe.sel.contains(ne),Fe>-1?Se=ft[Fe]:Se=new Qr(ne,ne)):(Se=fe.sel.primary(),Fe=fe.sel.primIndex),te.unit=="rectangle")te.addNew||(Se=new Qr(ne,ne)),ne=rl(x,z,!0,!0),Fe=-1;else{var Qt=wd(x,ne,te.unit);te.extend?Se=Fs(Se,Qt.anchor,Qt.head,te.extend):Se=Qt}te.addNew?Fe==-1?(Fe=ft.length,bo(fe,ia(x,ft.concat([Se]),Fe),{scroll:!1,origin:"*mouse"})):ft.length>1&&ft[Fe].empty()&&te.unit=="char"&&!te.extend?(bo(fe,ia(x,ft.slice(0,Fe).concat(ft.slice(Fe+1)),0),{scroll:!1,origin:"*mouse"}),We=fe.sel):fo(fe,Fe,Se,pt):(Fe=0,bo(fe,new Gi([Se],0),pt),We=fe.sel);var pn=ne;function jn(Ii){if(Tn(pn,Ii)!=0)if(pn=Ii,te.unit=="rectangle"){for(var qi=[],Sa=x.options.tabSize,Ma=it(Mt(fe,ne.line).text,ne.ch,Sa),go=it(Mt(fe,Ii.line).text,Ii.ch,Sa),bs=Math.min(Ma,go),Ml=Math.max(Ma,go),Vs=Math.min(ne.line,Ii.line),nu=Math.min(x.lastLine(),Math.max(ne.line,Ii.line));Vs<=nu;Vs++){var ru=Mt(fe,Vs).text,ml=Sn(ru,bs,Sa);bs==Ml?qi.push(new Qr(rn(Vs,ml),rn(Vs,ml))):ru.length>ml&&qi.push(new Qr(rn(Vs,ml),rn(Vs,Sn(ru,Ml,Sa))))}qi.length||qi.push(new Qr(ne,ne)),bo(fe,ia(x,We.ranges.slice(0,Fe).concat(qi),Fe),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Ii)}else{var iu=Se,Ga=wd(x,Ii,te.unit),Qs=iu.anchor,Us;Tn(Ga.anchor,Qs)>0?(Us=Ga.head,Qs=fn(iu.from(),Ga.anchor)):(Us=Ga.anchor,Qs=sn(iu.to(),Ga.head));var Js=We.ranges.slice(0);Js[Fe]=Io(x,new Qr(un(fe,Qs),Us)),bo(fe,ia(x,Js,Fe),pt)}}var $n=ie.wrapper.getBoundingClientRect(),wr=0;function Ur(Ii){var qi=++wr,Sa=rl(x,Ii,!0,te.unit=="rectangle");if(Sa)if(Tn(Sa,pn)!=0){x.curOp.focus=at(),jn(Sa);var Ma=Hn(ie,fe);(Sa.line>=Ma.to||Sa.line<Ma.from)&&setTimeout(bn(x,function(){wr==qi&&Ur(Ii)}),150)}else{var go=Ii.clientY<$n.top?-20:Ii.clientY>$n.bottom?20:0;go&&setTimeout(bn(x,function(){wr==qi&&(ie.scroller.scrollTop+=go,Ur(Ii))}),50)}}function wi(Ii){x.state.selectingText=!1,wr=1/0,Ii&&(On(Ii),ie.input.focus()),ct(ie.wrapper.ownerDocument,"mousemove",zi),ct(ie.wrapper.ownerDocument,"mouseup",Yi),fe.history.lastSelOrigin=null}var zi=bn(x,function(Ii){Ii.buttons===0||!Un(Ii)?wi(Ii):Ur(Ii)}),Yi=bn(x,wi);x.state.selectingText=Yi,Rt(ie.wrapper.ownerDocument,"mousemove",zi),Rt(ie.wrapper.ownerDocument,"mouseup",Yi)}function Io(x,z){var ne=z.anchor,te=z.head,ie=Mt(x.doc,ne.line);if(Tn(ne,te)==0&&ne.sticky==te.sticky)return z;var fe=xn(ie);if(!fe)return z;var Se=rt(fe,ne.ch,ne.sticky),Fe=fe[Se];if(Fe.from!=ne.ch&&Fe.to!=ne.ch)return z;var We=Se+(Fe.from==ne.ch==(Fe.level!=1)?0:1);if(We==0||We==fe.length)return z;var ft;if(te.line!=ne.line)ft=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Qt=rt(fe,te.ch,te.sticky),pn=Qt-Se||(te.ch-ne.ch)*(Fe.level==1?-1:1);Qt==We-1||Qt==We?ft=pn<0:ft=pn>0}var jn=fe[We+(ft?-1:0)],$n=ft==(jn.level==1),wr=$n?jn.from:jn.to,Ur=$n?"after":"before";return ne.ch==wr&&ne.sticky==Ur?z:new Qr(new rn(ne.line,wr,Ur),te)}function oa(x,z,ne,te){var ie,fe;if(z.touches)ie=z.touches[0].clientX,fe=z.touches[0].clientY;else try{ie=z.clientX,fe=z.clientY}catch(jn){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&On(z);var Se=x.display,Fe=Se.lineDiv.getBoundingClientRect();if(fe>Fe.bottom||!Gt(x,ne))return Kn(z);fe-=Fe.top-Se.viewOffset;for(var We=0;We<x.display.gutterSpecs.length;++We){var ft=Se.gutters.childNodes[We];if(ft&&ft.getBoundingClientRect().right>=ie){var Qt=Nn(x.doc,fe),pn=x.display.gutterSpecs[We];return Ae(x,ne,x,Qt,pn.className,z),Kn(z)}}}function da(x,z){return oa(x,z,"gutterClick",!0)}function ho(x,z){Sl(x.display,z)||Es(x,z)||Ve(x,z,"contextmenu")||ze||x.display.input.onContextMenu(z)}function Es(x,z){return Gt(x,"gutterContextMenu")?oa(x,z,"gutterContextMenu",!1):!1}function Gu(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Uo(x)}var bl={toString:function(){return"CodeMirror.Init"}},Nu={},Su={};function Rc(x){var z=x.optionHandlers;function ne(te,ie,fe,Se){x.defaults[te]=ie,fe&&(z[te]=Se?function(Fe,We,ft){ft!=bl&&fe(Fe,We,ft)}:fe)}x.defineOption=ne,x.Init=bl,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,Lo(te)},!0),ne("indentUnit",2,Lo,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Qi(te),Uo(te),_s(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var fe=[],Se=te.doc.first;te.doc.iter(function(We){for(var ft=0;;){var Qt=We.text.indexOf(ie,ft);if(Qt==-1)break;ft=Qt+ie.length,fe.push(rn(Se,Qt))}Se++});for(var Fe=fe.length-1;Fe>=0;Fe--)cu(te.doc,ie,fe[Fe],rn(fe[Fe].line,fe[Fe].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,fe){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),fe!=bl&&te.refresh()}),ne("specialCharPlaceholder",jo,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!It),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Gu(te),hi(te)},!0),ne("keyMap","default",function(te,ie,fe){var Se=al(ie),Fe=fe!=bl&&al(fe);Fe&&Fe.detach&&Fe.detach(te,Se),Se.attach&&Se.attach(te,Fe||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,pu,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=ji(ie,te.options.lineNumbers),hi(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Go(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return ja(te)},!0),ne("scrollbarStyle","native",function(te){Fo(te),ja(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=ji(te.options.gutters,ie),hi(te)},!0),ne("firstLineNumber",1,hi,!0),ne("lineNumberFormatter",function(te){return te},hi,!0),ne("showCursorWhenSelecting",!1,At,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(ur(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,rc),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,At,!0),ne("singleCursorHeightPerLine",!0,At,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Qi,!0),ne("addModeClass",!1,Qi,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Qi,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function rc(x,z,ne){var te=ne&&ne!=bl;if(!z!=!te){var ie=x.display.dragFunctions,fe=z?Rt:ct;fe(x.display.scroller,"dragstart",ie.start),fe(x.display.scroller,"dragenter",ie.enter),fe(x.display.scroller,"dragover",ie.over),fe(x.display.scroller,"dragleave",ie.leave),fe(x.display.scroller,"drop",ie.drop)}}function pu(x){x.options.lineWrapping?(Wt(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(je(x.display.wrapper,"CodeMirror-wrap"),Kr(x)),Rs(x),_s(x),Uo(x),setTimeout(function(){return ja(x)},100)}function Va(x,z){var ne=this;if(!(this instanceof Va))return new Va(x,z);this.options=z=z?jt(z):{},jt(Nu,z,!1);var te=z.value;typeof te=="string"?te=new Ds(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new Va.inputStyles[z.inputStyle](this),fe=this.display=new Fi(x,te,ie,z);fe.wrapper.CodeMirror=this,Gu(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fo(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 Ce,keySeq:null,specialChars:null},z.autofocus&&!tt&&fe.input.focus(),be&&ke<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),Ic(),ro(this),this.curOp.forceUpdate=!0,ea(this,te),z.autofocus&&!tt||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&dr(ne)},20):ur(this);for(var Se in Su)Su.hasOwnProperty(Se)&&Su[Se](this,z[Se],bl);Bi(this),z.finishInit&&z.finishInit(this);for(var Fe=0;Fe<jd.length;++Fe)jd[Fe](this);as(this),pe&&z.lineWrapping&&getComputedStyle(fe.lineDiv).textRendering=="optimizelegibility"&&(fe.lineDiv.style.textRendering="auto")}Va.defaults=Nu,Va.optionHandlers=Su;function lh(x){var z=x.display;Rt(z.scroller,"mousedown",bn(x,yl)),be&&ke<11?Rt(z.scroller,"dblclick",bn(x,function(We){if(!Ve(x,We)){var ft=rl(x,We);if(!(!ft||da(x,We)||Sl(x.display,We))){On(We);var Qt=x.findWordAt(ft);Xa(x.doc,Qt.anchor,Qt.head)}}})):Rt(z.scroller,"dblclick",function(We){return Ve(x,We)||On(We)}),Rt(z.scroller,"contextmenu",function(We){return ho(x,We)}),Rt(z.input.getField(),"contextmenu",function(We){z.scroller.contains(We.target)||ho(x,We)});var ne,te={end:0};function ie(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function fe(We){if(We.touches.length!=1)return!1;var ft=We.touches[0];return ft.radiusX<=1&&ft.radiusY<=1}function Se(We,ft){if(ft.left==null)return!0;var Qt=ft.left-We.left,pn=ft.top-We.top;return Qt*Qt+pn*pn>20*20}Rt(z.scroller,"touchstart",function(We){if(!Ve(x,We)&&!fe(We)&&!da(x,We)){z.input.ensurePolled(),clearTimeout(ne);var ft=+new Date;z.activeTouch={start:ft,moved:!1,prev:ft-te.end<=300?te:null},We.touches.length==1&&(z.activeTouch.left=We.touches[0].pageX,z.activeTouch.top=We.touches[0].pageY)}}),Rt(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Rt(z.scroller,"touchend",function(We){var ft=z.activeTouch;if(ft&&!Sl(z,We)&&ft.left!=null&&!ft.moved&&new Date-ft.start<300){var Qt=x.coordsChar(z.activeTouch,"page"),pn;!ft.prev||Se(ft,ft.prev)?pn=new Qr(Qt,Qt):!ft.prev.prev||Se(ft,ft.prev.prev)?pn=x.findWordAt(Qt):pn=new Qr(rn(Qt.line,0),un(x.doc,rn(Qt.line+1,0))),x.setSelection(pn.anchor,pn.head),x.focus(),On(We)}ie()}),Rt(z.scroller,"touchcancel",ie),Rt(z.scroller,"scroll",function(){z.scroller.clientHeight&&(_a(x,z.scroller.scrollTop),co(x,z.scroller.scrollLeft,!0),Ae(x,"scroll",x))}),Rt(z.scroller,"mousewheel",function(We){return Ea(x,We)}),Rt(z.scroller,"DOMMouseScroll",function(We){return Ea(x,We)}),Rt(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(We){Ve(x,We)||tr(We)},over:function(We){Ve(x,We)||(Zu(x,We),tr(We))},start:function(We){return dc(x,We)},drop:bn(x,Bc),leave:function(We){Ve(x,We)||Wu(x)}};var Fe=z.input.getField();Rt(Fe,"keyup",function(We){return td.call(x,We)}),Rt(Fe,"keydown",bn(x,hc)),Rt(Fe,"keypress",bn(x,nd)),Rt(Fe,"focus",function(We){return dr(x,We)}),Rt(Fe,"blur",function(We){return ur(x,We)})}var jd=[];Va.defineInitHook=function(x){return jd.push(x)};function Ru(x,z,ne,te){var ie=x.doc,fe;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?fe=Mn(x,z).state:ne="prev");var Se=x.options.tabSize,Fe=Mt(ie,z),We=it(Fe.text,null,Se);Fe.stateAfter&&(Fe.stateAfter=null);var ft=Fe.text.match(/^\s*/)[0],Qt;if(!te&&!/\S/.test(Fe.text))Qt=0,ne="not";else if(ne=="smart"&&(Qt=ie.mode.indent(fe,Fe.text.slice(ft.length),Fe.text),Qt==Yt||Qt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?Qt=it(Mt(ie,z-1).text,null,Se):Qt=0:ne=="add"?Qt=We+x.options.indentUnit:ne=="subtract"?Qt=We-x.options.indentUnit:typeof ne=="number"&&(Qt=We+ne),Qt=Math.max(0,Qt);var pn="",jn=0;if(x.options.indentWithTabs)for(var $n=Math.floor(Qt/Se);$n;--$n)jn+=Se,pn+=" ";if(jn<Qt&&(pn+=Pn(Qt-jn)),pn!=ft)return cu(ie,pn,rn(z,0),rn(z,ft.length),"+input"),Fe.stateAfter=null,!0;for(var wr=0;wr<ie.sel.ranges.length;wr++){var Ur=ie.sel.ranges[wr];if(Ur.head.line==z&&Ur.head.ch<ft.length){var wi=rn(z,ft.length);fo(ie,wr,new Qr(wi,wi));break}}}var _u=null;function gc(x){_u=x}function Vd(x,z,ne,te,ie){var fe=x.doc;x.display.shift=!1,te||(te=fe.sel);var Se=+new Date-200,Fe=ie=="paste"||x.state.pasteIncoming>Se,We=Hr(z),ft=null;if(Fe&&te.ranges.length>1)if(_u&&_u.text.join(`
|
|
|
`)==z){if(te.ranges.length%_u.text.length==0){ft=[];for(var Qt=0;Qt<_u.text.length;Qt++)ft.push(fe.splitLines(_u.text[Qt]))}}else We.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(ft=an(We,function(zi){return[zi]}));for(var pn=x.curOp.updateInput,jn=te.ranges.length-1;jn>=0;jn--){var $n=te.ranges[jn],wr=$n.from(),Ur=$n.to();$n.empty()&&(ne&&ne>0?wr=rn(wr.line,wr.ch-ne):x.state.overwrite&&!Fe?Ur=rn(Ur.line,Math.min(Mt(fe,Ur.line).text.length,Ur.ch+Zt(We).length)):Fe&&_u&&_u.lineWise&&_u.text.join(`
|
|
|
`)==We.join(`
|
|
|
`)&&(wr=Ur=rn(wr.line,0)));var wi={from:wr,to:Ur,text:ft?ft[jn%ft.length]:We,origin:ie||(Fe?"paste":x.state.cutIncoming>Se?"cut":"+input")};Zo(x.doc,wi),Wi(x,"inputRead",x,wi)}z&&!Fe&&Gd(x,z),_i(x),x.curOp.updateInput<2&&(x.curOp.updateInput=pn),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function Ud(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&zt(z,function(){return Vd(z,ne,0,null,"paste")}),!0}function Gd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var fe=x.getModeAt(ie.head),Se=!1;if(fe.electricChars){for(var Fe=0;Fe<fe.electricChars.length;Fe++)if(z.indexOf(fe.electricChars.charAt(Fe))>-1){Se=Ru(x,ie.head.line,"smart");break}}else fe.electricInput&&fe.electricInput.test(Mt(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(Se=Ru(x,ie.head.line,"smart"));Se&&Wi(x,"electricInput",x,ie.head.line)}}}function Vc(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ie=x.doc.sel.ranges[te].head.line,fe={anchor:rn(ie,0),head:rn(ie+1,0)};ne.push(fe),z.push(x.getRange(fe.anchor,fe.head))}return{text:z,ranges:ne}}function Ef(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function Yd(){var x=Ue("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=Ue("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return pe?x.style.width="1000px":x.setAttribute("wrap","off"),et&&(x.style.border="1px solid black"),Ef(x),z}function Xd(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ie){var fe=this.options,Se=fe[te];fe[te]==ie&&te!="mode"||(fe[te]=ie,z.hasOwnProperty(te)&&bn(this,z[te])(this,ie,Se),Ae(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ie){this.state.keyMaps[ie?"push":"unshift"](al(te))},removeKeyMap:function(te){for(var ie=this.state.keyMaps,fe=0;fe<ie.length;++fe)if(ie[fe]==te||ie[fe].name==te)return ie.splice(fe,1),!0},addOverlay:vn(function(te,ie){var fe=te.token?te:x.getMode(this.options,te);if(fe.startState)throw new Error("Overlays may not be stateful.");Ht(this.state.overlays,{mode:fe,modeSpec:te,opaque:ie&&ie.opaque,priority:ie&&ie.priority||0},function(Se){return Se.priority}),this.state.modeGen++,_s(this)}),removeOverlay:vn(function(te){for(var ie=this.state.overlays,fe=0;fe<ie.length;++fe){var Se=ie[fe].modeSpec;if(Se==te||typeof te=="string"&&Se.name==te){ie.splice(fe,1),this.state.modeGen++,_s(this);return}}}),indentLine:vn(function(te,ie,fe){typeof ie!="string"&&typeof ie!="number"&&(ie==null?ie=this.options.smartIndent?"smart":"prev":ie=ie?"add":"subtract"),Wn(this.doc,te)&&Ru(this,te,ie,fe)}),indentSelection:vn(function(te){for(var ie=this.doc.sel.ranges,fe=-1,Se=0;Se<ie.length;Se++){var Fe=ie[Se];if(Fe.empty())Fe.head.line>fe&&(Ru(this,Fe.head.line,te,!0),fe=Fe.head.line,Se==this.doc.sel.primIndex&&_i(this));else{var We=Fe.from(),ft=Fe.to(),Qt=Math.max(fe,We.line);fe=Math.min(this.lastLine(),ft.line-(ft.ch?0:1))+1;for(var pn=Qt;pn<fe;++pn)Ru(this,pn,te);var jn=this.doc.sel.ranges;We.ch==0&&ie.length==jn.length&&jn[Se].from().ch>0&&fo(this.doc,Se,new Qr(We,jn[Se].to()),lt)}}}),getTokenAt:function(te,ie){return Tr(this,te,ie)},getLineTokens:function(te,ie){return Tr(this,rn(te),ie,!0)},getTokenTypeAt:function(te){te=un(this.doc,te);var ie=gn(this,Mt(this.doc,te.line)),fe=0,Se=(ie.length-1)/2,Fe=te.ch,We;if(Fe==0)We=ie[2];else for(;;){var ft=fe+Se>>1;if((ft?ie[ft*2-1]:0)>=Fe)Se=ft;else if(ie[ft*2+1]<Fe)fe=ft+1;else{We=ie[ft*2+2];break}}var Qt=We?We.indexOf("overlay "):-1;return Qt<0?We:Qt==0?null:We.slice(0,Qt-1)},getModeAt:function(te){var ie=this.doc.mode;return ie.innerMode?x.innerMode(ie,this.getTokenAt(te).state).mode:ie},getHelper:function(te,ie){return this.getHelpers(te,ie)[0]},getHelpers:function(te,ie){var fe=[];if(!ne.hasOwnProperty(ie))return fe;var Se=ne[ie],Fe=this.getModeAt(te);if(typeof Fe[ie]=="string")Se[Fe[ie]]&&fe.push(Se[Fe[ie]]);else if(Fe[ie])for(var We=0;We<Fe[ie].length;We++){var ft=Se[Fe[ie][We]];ft&&fe.push(ft)}else Fe.helperType&&Se[Fe.helperType]?fe.push(Se[Fe.helperType]):Se[Fe.name]&&fe.push(Se[Fe.name]);for(var Qt=0;Qt<Se._global.length;Qt++){var pn=Se._global[Qt];pn.pred(Fe,this)&&Et(fe,pn.val)==-1&&fe.push(pn.val)}return fe},getStateAfter:function(te,ie){var fe=this.doc;return te=In(fe,te==null?fe.first+fe.size-1:te),Mn(this,te+1,ie).state},cursorCoords:function(te,ie){var fe,Se=this.doc.sel.primary();return te==null?fe=Se.head:typeof te=="object"?fe=un(this.doc,te):fe=te?Se.from():Se.to(),Zs(this,fe,ie||"page")},charCoords:function(te,ie){return vl(this,un(this.doc,te),ie||"page")},coordsChar:function(te,ie){return te=Dl(this,te,ie||"page"),ou(this,te.left,te.top)},lineAtHeight:function(te,ie){return te=Dl(this,{top:te,left:0},ie||"page").top,Nn(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ie,fe){var Se=!1,Fe;if(typeof te=="number"){var We=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>We&&(te=We,Se=!0),Fe=Mt(this.doc,te)}else Fe=te;return Hs(this,Fe,{top:0,left:0},ie||"page",fe||Se).top+(Se?this.doc.height-Gr(Fe):0)},defaultTextHeight:function(){return uu(this.display)},defaultCharWidth:function(){return vo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,fe,Se,Fe){var We=this.display;te=Zs(this,un(this.doc,te));var ft=te.bottom,Qt=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),We.sizer.appendChild(ie),Se=="over")ft=te.top;else if(Se=="above"||Se=="near"){var pn=Math.max(We.wrapper.clientHeight,this.doc.height),jn=Math.max(We.sizer.clientWidth,We.lineSpace.clientWidth);(Se=="above"||te.bottom+ie.offsetHeight>pn)&&te.top>ie.offsetHeight?ft=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=pn&&(ft=te.bottom),Qt+ie.offsetWidth>jn&&(Qt=jn-ie.offsetWidth)}ie.style.top=ft+"px",ie.style.left=ie.style.right="",Fe=="right"?(Qt=We.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Fe=="left"?Qt=0:Fe=="middle"&&(Qt=(We.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=Qt+"px"),fe&&Ri(this,{left:Qt,top:ft,right:Qt+ie.offsetWidth,bottom:ft+ie.offsetHeight})},triggerOnKeyDown:vn(hc),triggerOnKeyPress:vn(nd),triggerOnKeyUp:td,triggerOnMouseDown:vn(yl),execCommand:function(te){if(ol.hasOwnProperty(te))return ol[te].call(null,this)},triggerElectric:vn(function(te){Gd(this,te)}),findPosH:function(te,ie,fe,Se){var Fe=1;ie<0&&(Fe=-1,ie=-ie);for(var We=un(this.doc,te),ft=0;ft<ie&&(We=Cd(this.doc,We,Fe,fe,Se),!We.hitSide);++ft);return We},moveH:vn(function(te,ie){var fe=this;this.extendSelectionsBy(function(Se){return fe.display.shift||fe.doc.extend||Se.empty()?Cd(fe.doc,Se.head,te,ie,fe.options.rtlMoveVisually):te<0?Se.from():Se.to()},Ft)}),deleteH:vn(function(te,ie){var fe=this.doc.sel,Se=this.doc;fe.somethingSelected()?Se.replaceSelection("",null,"+delete"):El(this,function(Fe){var We=Cd(Se,Fe.head,te,ie,!1);return te<0?{from:We,to:Fe.head}:{from:Fe.head,to:We}})}),findPosV:function(te,ie,fe,Se){var Fe=1,We=Se;ie<0&&(Fe=-1,ie=-ie);for(var ft=un(this.doc,te),Qt=0;Qt<ie;++Qt){var pn=Zs(this,ft,"div");if(We==null?We=pn.left:pn.left=We,ft=Mf(this,pn,Fe,fe),ft.hitSide)break}return ft},moveV:vn(function(te,ie){var fe=this,Se=this.doc,Fe=[],We=!this.display.shift&&!Se.extend&&Se.sel.somethingSelected();if(Se.extendSelectionsBy(function(Qt){if(We)return te<0?Qt.from():Qt.to();var pn=Zs(fe,Qt.head,"div");Qt.goalColumn!=null&&(pn.left=Qt.goalColumn),Fe.push(pn.left);var jn=Mf(fe,pn,te,ie);return ie=="page"&&Qt==Se.sel.primary()&&Ni(fe,vl(fe,jn,"div").top-pn.top),jn},Ft),Fe.length)for(var ft=0;ft<Se.sel.ranges.length;ft++)Se.sel.ranges[ft].goalColumn=Fe[ft]}),findWordAt:function(te){var ie=this.doc,fe=Mt(ie,te.line).text,Se=te.ch,Fe=te.ch;if(fe){var We=this.getHelper(te,"wordChars");(te.sticky=="before"||Fe==fe.length)&&Se?--Se:++Fe;for(var ft=fe.charAt(Se),Qt=ge(ft,We)?function(pn){return ge(pn,We)}:/\s/.test(ft)?function(pn){return/\s/.test(pn)}:function(pn){return!/\s/.test(pn)&&!ge(pn)};Se>0&&Qt(fe.charAt(Se-1));)--Se;for(;Fe<fe.length&&Qt(fe.charAt(Fe));)++Fe}return new Qr(rn(te.line,Se),rn(te.line,Fe))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Wt(this.display.cursorDiv,"CodeMirror-overwrite"):je(this.display.cursorDiv,"CodeMirror-overwrite"),Ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==at()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:vn(function(te,ie){Li(this,te,ie)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Ls(this)-this.display.barHeight,width:te.scrollWidth-Ls(this)-this.display.barWidth,clientHeight:kl(this),clientWidth:ms(this)}},scrollIntoView:vn(function(te,ie){te==null?(te={from:this.doc.sel.primary().head,to:null},ie==null&&(ie=this.options.cursorScrollMargin)):typeof te=="number"?te={from:rn(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ie||0,te.from.line!=null?Ei(this,te):Ca(this,te.from,te.to,te.margin)}),setSize:vn(function(te,ie){var fe=this,Se=function(We){return typeof We=="number"||/^\d+$/.test(String(We))?We+"px":We};te!=null&&(this.display.wrapper.style.width=Se(te)),ie!=null&&(this.display.wrapper.style.height=Se(ie)),this.options.lineWrapping&&is(this);var Fe=this.display.viewFrom;this.doc.iter(Fe,this.display.viewTo,function(We){if(We.widgets){for(var ft=0;ft<We.widgets.length;ft++)if(We.widgets[ft].noHScroll){Kl(fe,Fe,"widget");break}}++Fe}),this.curOp.forceUpdate=!0,Ae(this,"refresh",this)}),operation:function(te){return zt(this,te)},startOperation:function(){return ro(this)},endOperation:function(){return as(this)},refresh:vn(function(){var te=this.display.cachedTextHeight;_s(this),this.curOp.forceUpdate=!0,Uo(this),Li(this,this.doc.scrollLeft,this.doc.scrollTop),si(this.display),(te==null||Math.abs(te-uu(this.display))>.5||this.options.lineWrapping)&&Rs(this),Ae(this,"refresh",this)}),swapDoc:vn(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),ea(this,te),Uo(this),this.display.input.reset(),Li(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,Wi(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},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}},hn(x),x.registerHelper=function(te,ie,fe){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=fe},x.registerGlobalHelper=function(te,ie,fe,Se){x.registerHelper(te,ie,Se),ne[te]._global.push({pred:fe,val:Se})}}function Cd(x,z,ne,te,ie){var fe=z,Se=ne,Fe=Mt(x,z.line),We=ie&&x.direction=="rtl"?-ne:ne;function ft(){var Yi=z.line+We;return Yi<x.first||Yi>=x.first+x.size?!1:(z=new rn(Yi,z.ch,z.sticky),Fe=Mt(x,Yi))}function Qt(Yi){var Ii;if(te=="codepoint"){var qi=Fe.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(qi)?Ii=null:Ii=new rn(z.line,Math.max(0,Math.min(Fe.text.length,z.ch+ne*(qi>=55296&&qi<56320?2:1))),-ne)}else ie?Ii=Mo(x.cm,Fe,z,ne):Ii=fu(Fe,z,ne);if(Ii==null)if(!Yi&&ft())z=so(ie,x.cm,Fe,z.line,We);else return!1;else z=Ii;return!0}if(te=="char"||te=="codepoint")Qt();else if(te=="column")Qt(!0);else if(te=="word"||te=="group")for(var pn=null,jn=te=="group",$n=x.cm&&x.cm.getHelper(z,"wordChars"),wr=!0;!(ne<0&&!Qt(!wr));wr=!1){var Ur=Fe.text.charAt(z.ch)||`
|
|
|
`,wi=ge(Ur,$n)?"w":jn&&Ur==`
|
|
|
`?"n":!jn||/\s/.test(Ur)?null:"p";if(jn&&!wr&&!wi&&(wi="s"),pn&&pn!=wi){ne<0&&(ne=1,Qt(),z.sticky="after");break}if(wi&&(pn=wi),ne>0&&!Qt(!wr))break}var zi=Zl(x,z,fe,Se,!0);return Nt(fe,zi)&&(zi.hitSide=!0),zi}function Mf(x,z,ne,te){var ie=x.doc,fe=z.left,Se;if(te=="page"){var Fe=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),We=Math.max(Fe-.5*uu(x.display),3);Se=(ne>0?z.bottom:z.top)+ne*We}else te=="line"&&(Se=ne>0?z.bottom+3:z.top-3);for(var ft;ft=ou(x,fe,Se),!!ft.outside;){if(ne<0?Se<=0:Se>=ie.height){ft.hitSide=!0;break}Se+=ne*5}return ft}var ds=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ds.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;Ef(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function fe(Fe){for(var We=Fe.target;We;We=We.parentNode){if(We==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(We.className))break}return!1}Rt(ie,"paste",function(Fe){!fe(Fe)||Ve(te,Fe)||Ud(Fe,te)||ke<=11&&setTimeout(bn(te,function(){return z.updateFromDOM()}),20)}),Rt(ie,"compositionstart",function(Fe){z.composing={data:Fe.data,done:!1}}),Rt(ie,"compositionupdate",function(Fe){z.composing||(z.composing={data:Fe.data,done:!1})}),Rt(ie,"compositionend",function(Fe){z.composing&&(Fe.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Rt(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Rt(ie,"input",function(){z.composing||z.readFromDOMSoon()});function Se(Fe){if(!(!fe(Fe)||Ve(te,Fe))){if(te.somethingSelected())gc({lineWise:!1,text:te.getSelections()}),Fe.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var We=Vc(te);gc({lineWise:!0,text:We.text}),Fe.type=="cut"&&te.operation(function(){te.setSelections(We.ranges,0,lt),te.replaceSelection("",null,"cut")})}else return;if(Fe.clipboardData){Fe.clipboardData.clearData();var ft=_u.text.join(`
|
|
|
`);if(Fe.clipboardData.setData("Text",ft),Fe.clipboardData.getData("Text")==ft){Fe.preventDefault();return}}var Qt=Yd(),pn=Qt.firstChild;te.display.lineSpace.insertBefore(Qt,te.display.lineSpace.firstChild),pn.value=_u.text.join(`
|
|
|
`);var jn=document.activeElement;Tt(pn),setTimeout(function(){te.display.lineSpace.removeChild(Qt),jn.focus(),jn==ie&&ne.showPrimarySelection()},50)}}Rt(ie,"copy",Se),Rt(ie,"cut",Se)},ds.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},ds.prototype.prepareSelection=function(){var x=Ot(this.cm,!1);return x.focus=document.activeElement==this.div,x},ds.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},ds.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ds.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line<z.display.viewFrom){x.removeAllRanges();return}var fe=Sd(z,x.anchorNode,x.anchorOffset),Se=Sd(z,x.focusNode,x.focusOffset);if(!(fe&&!fe.bad&&Se&&!Se.bad&&Tn(fn(fe,Se),te)==0&&Tn(sn(fe,Se),ie)==0)){var Fe=z.display.view,We=te.line>=z.display.viewFrom&&kf(z,te)||{node:Fe[0].measure.map[2],offset:0},ft=ie.line<z.display.viewTo&&kf(z,ie);if(!ft){var Qt=Fe[Fe.length-1].measure,pn=Qt.maps?Qt.maps[Qt.maps.length-1]:Qt.map;ft={node:pn[pn.length-1],offset:pn[pn.length-2]-pn[pn.length-3]}}if(!We||!ft){x.removeAllRanges();return}var jn=x.rangeCount&&x.getRangeAt(0),$n;try{$n=Le(We.node,We.offset,ft.offset,ft.node)}catch(wr){}$n&&(!ce&&z.state.focused?(x.collapse(We.node,We.offset),$n.collapsed||(x.removeAllRanges(),x.addRange($n))):(x.removeAllRanges(),x.addRange($n)),jn&&x.anchorNode==null?x.addRange(jn):ce&&this.startGracePeriod()),this.rememberSelection()}},ds.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)},ds.prototype.showMultipleSelections=function(x){Qe(this.cm.display.cursorDiv,x.cursors),Qe(this.cm.display.selectionDiv,x.selection)},ds.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},ds.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return Bt(this.div,z)},ds.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ds.prototype.blur=function(){this.div.blur()},ds.prototype.getField=function(){return this.div},ds.prototype.supportsTouch=function(){return!0},ds.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():zt(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function z(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},ds.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},ds.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(Je&&Me&&this.cm.display.gutterSpecs.length&&uh(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=Sd(z,x.anchorNode,x.anchorOffset),te=Sd(z,x.focusNode,x.focusOffset);ne&&te&&zt(z,function(){bo(z.doc,va(ne,te),lt),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},ds.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ie=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=rn(te.line-1,Mt(x.doc,te.line-1).length)),ie.ch==Mt(x.doc,ie.line).text.length&&ie.line<x.lastLine()&&(ie=rn(ie.line+1,0)),te.line<z.viewFrom||ie.line>z.viewTo-1)return!1;var fe,Se,Fe;te.line==z.viewFrom||(fe=Gs(x,te.line))==0?(Se=ln(z.view[0].line),Fe=z.view[0].node):(Se=ln(z.view[fe].line),Fe=z.view[fe-1].node.nextSibling);var We=Gs(x,ie.line),ft,Qt;if(We==z.view.length-1?(ft=z.viewTo-1,Qt=z.lineDiv.lastChild):(ft=ln(z.view[We+1].line)-1,Qt=z.view[We+1].node.previousSibling),!Fe)return!1;for(var pn=x.doc.splitLines(ch(x,Fe,Qt,Se,ft)),jn=Ut(x.doc,rn(Se,0),rn(ft,Mt(x.doc,ft).text.length));pn.length>1&&jn.length>1;)if(Zt(pn)==Zt(jn))pn.pop(),jn.pop(),ft--;else if(pn[0]==jn[0])pn.shift(),jn.shift(),Se++;else break;for(var $n=0,wr=0,Ur=pn[0],wi=jn[0],zi=Math.min(Ur.length,wi.length);$n<zi&&Ur.charCodeAt($n)==wi.charCodeAt($n);)++$n;for(var Yi=Zt(pn),Ii=Zt(jn),qi=Math.min(Yi.length-(pn.length==1?$n:0),Ii.length-(jn.length==1?$n:0));wr<qi&&Yi.charCodeAt(Yi.length-wr-1)==Ii.charCodeAt(Ii.length-wr-1);)++wr;if(pn.length==1&&jn.length==1&&Se==te.line)for(;$n&&$n>te.ch&&Yi.charCodeAt(Yi.length-wr-1)==Ii.charCodeAt(Ii.length-wr-1);)$n--,wr++;pn[pn.length-1]=Yi.slice(0,Yi.length-wr).replace(/^\u200b+/,""),pn[0]=pn[0].slice($n).replace(/\u200b+$/,"");var Sa=rn(Se,$n),Ma=rn(ft,jn.length?Zt(jn).length-wr:0);if(pn.length>1||pn[0]||Tn(Sa,Ma))return cu(x.doc,pn,Sa,Ma,"+input"),!0},ds.prototype.ensurePolled=function(){this.forceCompositionEnd()},ds.prototype.reset=function(){this.forceCompositionEnd()},ds.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ds.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))},ds.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&zt(this.cm,function(){return _s(x.cm)})},ds.prototype.setUneditable=function(x){x.contentEditable="false"},ds.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||bn(this.cm,Vd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},ds.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},ds.prototype.onContextMenu=function(){},ds.prototype.resetPosition=function(){},ds.prototype.needsContentAttribute=!0;function kf(x,z){var ne=Os(x,z.line);if(!ne||ne.hidden)return null;var te=Mt(x.doc,z.line),ie=Nl(ne,te,z.line),fe=xn(te,x.doc.direction),Se="left";if(fe){var Fe=rt(fe,z.ch);Se=Fe%2?"right":"left"}var We=yu(ie.map,z.ch,Se);return We.offset=We.collapse=="right"?We.end:We.start,We}function uh(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function Uc(x,z){return z&&(x.bad=!0),x}function ch(x,z,ne,te,ie){var fe="",Se=!1,Fe=x.doc.lineSeparator(),We=!1;function ft($n){return function(wr){return wr.id==$n}}function Qt(){Se&&(fe+=Fe,We&&(fe+=Fe),Se=We=!1)}function pn($n){$n&&(Qt(),fe+=$n)}function jn($n){if($n.nodeType==1){var wr=$n.getAttribute("cm-text");if(wr){pn(wr);return}var Ur=$n.getAttribute("cm-marker"),wi;if(Ur){var zi=x.findMarks(rn(te,0),rn(ie+1,0),ft(+Ur));zi.length&&(wi=zi[0].find(0))&&pn(Ut(x.doc,wi.from,wi.to).join(Fe));return}if($n.getAttribute("contenteditable")=="false")return;var Yi=/^(pre|div|p|li|table|br)$/i.test($n.nodeName);if(!/^br$/i.test($n.nodeName)&&$n.textContent.length==0)return;Yi&&Qt();for(var Ii=0;Ii<$n.childNodes.length;Ii++)jn($n.childNodes[Ii]);/^(pre|p)$/i.test($n.nodeName)&&(We=!0),Yi&&(Se=!0)}else $n.nodeType==3&&pn($n.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;jn(z),z!=ne;)z=z.nextSibling,We=!1;return fe}function Sd(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return Uc(x.clipPos(rn(x.display.viewTo-1)),!0);z=null,ne=0}else for(te=z;;te=te.parentNode){if(!te||te==x.display.lineDiv)return null;if(te.parentNode&&te.parentNode==x.display.lineDiv)break}for(var ie=0;ie<x.display.view.length;ie++){var fe=x.display.view[ie];if(fe.node==te)return dh(fe,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,ie=!1;if(!z||!Bt(te,z))return Uc(rn(ln(x.line),0),!0);if(z==te&&(ie=!0,z=te.childNodes[ne],ne=0,!z)){var fe=x.rest?Zt(x.rest):x.line;return Uc(rn(ln(fe),fe.text.length),ie)}var Se=z.nodeType==3?z:null,Fe=z;for(!Se&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(Se=z.firstChild,ne&&(ne=Se.nodeValue.length));Fe.parentNode!=te;)Fe=Fe.parentNode;var We=x.measure,ft=We.maps;function Qt(wi,zi,Yi){for(var Ii=-1;Ii<(ft?ft.length:0);Ii++)for(var qi=Ii<0?We.map:ft[Ii],Sa=0;Sa<qi.length;Sa+=3){var Ma=qi[Sa+2];if(Ma==wi||Ma==zi){var go=ln(Ii<0?x.line:x.rest[Ii]),bs=qi[Sa]+Yi;return(Yi<0||Ma!=wi)&&(bs=qi[Sa+(Yi?1:0)]),rn(go,bs)}}}var pn=Qt(Se,Fe,ne);if(pn)return Uc(pn,ie);for(var jn=Fe.nextSibling,$n=Se?Se.nodeValue.length-ne:0;jn;jn=jn.nextSibling){if(pn=Qt(jn,jn.firstChild,0),pn)return Uc(rn(pn.line,pn.ch-$n),ie);$n+=jn.textContent.length}for(var wr=Fe.previousSibling,Ur=ne;wr;wr=wr.previousSibling){if(pn=Qt(wr,wr.firstChild,-1),pn)return Uc(rn(pn.line,pn.ch+Ur),ie);Ur+=wr.textContent.length}}var ys=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Ce,this.hasSelection=!1,this.composing=null};ys.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ie=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),et&&(ie.style.width="0px"),Rt(ie,"input",function(){be&&ke>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Rt(ie,"paste",function(Se){Ve(te,Se)||Ud(Se,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function fe(Se){if(!Ve(te,Se)){if(te.somethingSelected())gc({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Fe=Vc(te);gc({lineWise:!0,text:Fe.text}),Se.type=="cut"?te.setSelections(Fe.ranges,null,lt):(ne.prevInput="",ie.value=Fe.text.join(`
|
|
|
`),Tt(ie))}else return;Se.type=="cut"&&(te.state.cutIncoming=+new Date)}}Rt(ie,"cut",fe),Rt(ie,"copy",fe),Rt(x.scroller,"paste",function(Se){if(!(Sl(x,Se)||Ve(te,Se))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Fe=new Event("paste");Fe.clipboardData=Se.clipboardData,ie.dispatchEvent(Fe)}}),Rt(x.lineSpace,"selectstart",function(Se){Sl(x,Se)||On(Se)}),Rt(ie,"compositionstart",function(){var Se=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:Se,range:te.markText(Se,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},ys.prototype.createField=function(x){this.wrapper=Yd(),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,z=x.display,ne=x.doc,te=Ot(x);if(x.options.moveInputWithCursor){var ie=Zs(x,ne.sel.primary().head,"div"),fe=z.wrapper.getBoundingClientRect(),Se=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+Se.top-fe.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+Se.left-fe.left))}return te},ys.prototype.showSelection=function(x){var z=this.cm,ne=z.display;Qe(ne.cursorDiv,x.cursors),Qe(ne.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 z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&Tt(this.textarea),be&&ke>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",be&&ke>=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"&&(!tt||at()!=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,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},ys.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||wn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(be&&ke>=9&&this.hasSelection===ie||yt&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var fe=ie.charCodeAt(0);if(fe==8203&&!te&&(te="\u200B"),fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var Se=0,Fe=Math.min(te.length,ie.length);Se<Fe&&te.charCodeAt(Se)==ie.charCodeAt(Se);)++Se;return zt(z,function(){Vd(z,ie.slice(Se),te.length-Se,null,x.composing?"*compose":null),ie.length>1e3||ie.indexOf(`
|
|
|
`)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ys.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ys.prototype.onKeyPress=function(){be&&ke>=9&&(this.hasSelection=null),this.fastPoll()},ys.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var fe=rl(ne,x),Se=te.scroller.scrollTop;if(!fe||Ke)return;var Fe=ne.options.resetSelectionOnContextMenu;Fe&&ne.doc.sel.contains(fe)==-1&&bn(ne,bo)(ne.doc,va(fe),lt);var We=ie.style.cssText,ft=z.wrapper.style.cssText,Qt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-Qt.top-5)+"px; left: "+(x.clientX-Qt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var pn;pe&&(pn=window.scrollY),te.input.focus(),pe&&window.scrollTo(null,pn),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=$n,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function jn(){if(ie.selectionStart!=null){var Ur=ne.somethingSelected(),wi="\u200B"+(Ur?ie.value:"");ie.value="\u21DA",ie.value=wi,z.prevInput=Ur?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=wi.length,te.selForContextMenu=ne.doc.sel}}function $n(){if(z.contextMenuPending==$n&&(z.contextMenuPending=!1,z.wrapper.style.cssText=ft,ie.style.cssText=We,be&&ke<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=Se),ie.selectionStart!=null)){(!be||be&&ke<9)&&jn();var Ur=0,wi=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?bn(ne,hl)(ne):Ur++<10?te.detectingSelectAll=setTimeout(wi,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(wi,200)}}if(be&&ke>=9&&jn(),ze){tr(x);var wr=function(){ct(window,"mouseup",wr),setTimeout($n,20)};Rt(window,"mouseup",wr)}else setTimeout($n,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 _c(x,z){if(z=z?jt(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=at();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Fe.getValue()}var ie;if(x.form&&(Rt(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var fe=x.form;ie=fe.submit;try{var Se=fe.submit=function(){te(),fe.submit=ie,fe.submit(),fe.submit=Se}}catch(We){}}z.finishInit=function(We){We.save=te,We.getTextArea=function(){return x},We.toTextArea=function(){We.toTextArea=isNaN,te(),x.parentNode.removeChild(We.getWrapperElement()),x.style.display="",x.form&&(ct(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Fe=Va(function(We){return x.parentNode.insertBefore(We,x.nextSibling)},z);return Fe}function Gc(x){x.off=ct,x.on=Rt,x.wheelEventPixels=Vi,x.Doc=Ds,x.splitLines=Hr,x.countColumn=it,x.findColumn=Sn,x.isWordChar=de,x.Pass=Yt,x.signal=Ae,x.Line=fi,x.changeEnd=wa,x.scrollbarModel=Po,x.Pos=rn,x.cmpPos=Tn,x.modes=hr,x.mimeModes=Yr,x.resolveMode=or,x.getMode=Jn,x.modeExtensions=Dr,x.extendMode=_t,x.copyState=He,x.startState=Ye,x.innerMode=nt,x.commands=ol,x.keyMap=qo,x.keyName=Cu,x.isModifierKey=nc,x.lookupKey=ql,x.normalizeKeyMap=tc,x.StringStream=qe,x.SharedTextMarker=oo,x.TextMarker=Du,x.LineWidget=Is,x.e_preventDefault=On,x.e_stopPropagation=Ln,x.e_stop=tr,x.addClass=Wt,x.contains=Bt,x.rmClass=je,x.keyNames=Wl}Rc(Va),Xd(Va);var ic="iter insert remove copy getEditor constructor".split(" ");for(var Lu in Ds.prototype)Ds.prototype.hasOwnProperty(Lu)&&Et(ic,Lu)<0&&(Va.prototype[Lu]=function(x){return function(){return x.apply(this.doc,arguments)}}(Ds.prototype[Lu]));return hn(Ds),Va.inputStyles={textarea:ys,contenteditable:ds},Va.defineMode=function(x){!Va.defaults.mode&&x!="null"&&(Va.defaults.mode=x),cr.apply(this,arguments)},Va.defineMIME=Ir,Va.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Va.defineMIME("text/plain","null"),Va.defineExtension=function(x,z){Va.prototype[x]=z},Va.defineDocExtension=function(x,z){Ds.prototype[x]=z},Va.fromTextArea=_c,Gc(Va),Va.version="5.58.2",Va})},25419:function(zn,en,ae){(function(ce){ce(ae(89780),ae(15525),ae(98101))})(function(ce){"use strict";ce.defineMode("markdown",function(De,Te){var dt=ce.getMode(De,"text/html"),be=dt.name=="null";function ke(it){if(ce.findModeByName){var Ce=ce.findModeByName(it);Ce&&(it=Ce.mime||Ce.mimes[0])}var Et=ce.getMode(De,it);return Et.name=="null"?null:Et}Te.highlightFormatting===void 0&&(Te.highlightFormatting=!1),Te.maxBlockquoteDepth===void 0&&(Te.maxBlockquoteDepth=0),Te.taskLists===void 0&&(Te.taskLists=!1),Te.strikethrough===void 0&&(Te.strikethrough=!1),Te.emoji===void 0&&(Te.emoji=!1),Te.fencedCodeBlockHighlighting===void 0&&(Te.fencedCodeBlockHighlighting=!0),Te.fencedCodeBlockDefaultMode===void 0&&(Te.fencedCodeBlockDefaultMode="text/plain"),Te.xml===void 0&&(Te.xml=!0),Te.tokenTypeOverrides===void 0&&(Te.tokenTypeOverrides={});var pe={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 xe in pe)pe.hasOwnProperty(xe)&&Te.tokenTypeOverrides[xe]&&(pe[xe]=Te.tokenTypeOverrides[xe]);var Me=/^([*\-_])(?:\s*\1){2,}\s*$/,Ke=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,vt=/^\[(x| )\](?=\s)/i,Pe=Te.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Be=/^ {0,3}(?:\={1,}|-{2,})\s*$/,et=/^[^#!\[\]*_\\<>` "'(~:]+/,Je=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,tt=/^\s*\[[^\]]+?\]:.*$/,yt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,wt=" ";function It(it,Ce,Et){return Ce.f=Ce.inline=Et,Et(it,Ce)}function gt(it,Ce,Et){return Ce.f=Ce.block=Et,Et(it,Ce)}function st(it){return!it||!/\S/.test(it.string)}function ze(it){if(it.linkTitle=!1,it.linkHref=!1,it.linkText=!1,it.em=!1,it.strong=!1,it.strikethrough=!1,it.quote=0,it.indentedCode=!1,it.f==je){var Ce=be;if(!Ce){var Et=ce.innerMode(dt,it.htmlState);Ce=Et.mode.name=="xml"&&Et.state.tagStart===null&&!Et.state.context&&Et.state.tokenize.isInText}Ce&&(it.f=mt,it.block=he,it.htmlState=null)}return it.trailingSpace=0,it.trailingSpaceNewLine=!1,it.prevLine=it.thisLine,it.thisLine={stream:null},null}function he(it,Ce){var Et=it.column()===Ce.indentation,on=st(Ce.prevLine.stream),Yt=Ce.indentedCode,lt=Ce.prevLine.hr,pt=Ce.list!==!1,Ft=(Ce.listStack[Ce.listStack.length-1]||0)+3;Ce.indentedCode=!1;var Sn=Ce.indentation;if(Ce.indentationDiff===null&&(Ce.indentationDiff=Ce.indentation,pt)){for(Ce.list=null;Sn<Ce.listStack[Ce.listStack.length-1];)Ce.listStack.pop(),Ce.listStack.length?Ce.indentation=Ce.listStack[Ce.listStack.length-1]:Ce.list=!1;Ce.list!==!1&&(Ce.indentationDiff=Sn-Ce.listStack[Ce.listStack.length-1])}var $t=!on&&!lt&&!Ce.prevLine.header&&(!pt||!Yt)&&!Ce.prevLine.fencedCodeEnd,Pn=(Ce.list===!1||lt||on)&&Ce.indentation<=Ft&&it.match(Me),Zt=null;if(Ce.indentationDiff>=4&&(Yt||Ce.prevLine.fencedCodeEnd||Ce.prevLine.header||on))return it.skipToEnd(),Ce.indentedCode=!0,pe.code;if(it.eatSpace())return null;if(Et&&Ce.indentation<=Ft&&(Zt=it.match(Pe))&&Zt[1].length<=6)return Ce.quote=0,Ce.header=Zt[1].length,Ce.thisLine.header=!0,Te.highlightFormatting&&(Ce.formatting="header"),Ce.f=Ce.inline,Qe(Ce);if(Ce.indentation<=Ft&&it.eat(">"))return Ce.quote=Et?1:Ce.quote+1,Te.highlightFormatting&&(Ce.formatting="quote"),it.eatSpace(),Qe(Ce);if(!Pn&&!Ce.setext&&Et&&Ce.indentation<=Ft&&(Zt=it.match(Ke))){var an=Zt[1]?"ol":"ul";return Ce.indentation=Sn+it.current().length,Ce.list=!0,Ce.quote=0,Ce.listStack.push(Ce.indentation),Ce.em=!1,Ce.strong=!1,Ce.code=!1,Ce.strikethrough=!1,Te.taskLists&&it.match(vt,!1)&&(Ce.taskList=!0),Ce.f=Ce.inline,Te.highlightFormatting&&(Ce.formatting=["list","list-"+an]),Qe(Ce)}else{if(Et&&Ce.indentation<=Ft&&(Zt=it.match(Je,!0)))return Ce.quote=0,Ce.fencedEndRE=new RegExp(Zt[1]+"+ *$"),Ce.localMode=Te.fencedCodeBlockHighlighting&&ke(Zt[2]||Te.fencedCodeBlockDefaultMode),Ce.localMode&&(Ce.localState=ce.startState(Ce.localMode)),Ce.f=Ce.block=Xe,Te.highlightFormatting&&(Ce.formatting="code-block"),Ce.code=-1,Qe(Ce);if(Ce.setext||(!$t||!pt)&&!Ce.quote&&Ce.list===!1&&!Ce.code&&!Pn&&!tt.test(it.string)&&(Zt=it.lookAhead(1))&&(Zt=Zt.match(Be)))return Ce.setext?(Ce.header=Ce.setext,Ce.setext=0,it.skipToEnd(),Te.highlightFormatting&&(Ce.formatting="header")):(Ce.header=Zt[0].charAt(0)=="="?1:2,Ce.setext=Ce.header),Ce.thisLine.header=!0,Ce.f=Ce.inline,Qe(Ce);if(Pn)return it.skipToEnd(),Ce.hr=!0,Ce.thisLine.hr=!0,pe.hr;if(it.peek()==="[")return It(it,Ce,Lt)}return It(it,Ce,Ce.inline)}function je(it,Ce){var Et=dt.token(it,Ce.htmlState);if(!be){var on=ce.innerMode(dt,Ce.htmlState);(on.mode.name=="xml"&&on.state.tagStart===null&&!on.state.context&&on.state.tokenize.isInText||Ce.md_inside&&it.current().indexOf(">")>-1)&&(Ce.f=mt,Ce.block=he,Ce.htmlState=null)}return Et}function Xe(it,Ce){var Et=Ce.listStack[Ce.listStack.length-1]||0,on=Ce.indentation<Et,Yt=Et+3;if(Ce.fencedEndRE&&Ce.indentation<=Yt&&(on||it.match(Ce.fencedEndRE))){Te.highlightFormatting&&(Ce.formatting="code-block");var lt;return on||(lt=Qe(Ce)),Ce.localMode=Ce.localState=null,Ce.block=he,Ce.f=mt,Ce.fencedEndRE=null,Ce.code=0,Ce.thisLine.fencedCodeEnd=!0,on?gt(it,Ce,Ce.block):lt}else return Ce.localMode?Ce.localMode.token(it,Ce.localState):(it.skipToEnd(),pe.code)}function Qe(it){var Ce=[];if(it.formatting){Ce.push(pe.formatting),typeof it.formatting=="string"&&(it.formatting=[it.formatting]);for(var Et=0;Et<it.formatting.length;Et++)Ce.push(pe.formatting+"-"+it.formatting[Et]),it.formatting[Et]==="header"&&Ce.push(pe.formatting+"-"+it.formatting[Et]+"-"+it.header),it.formatting[Et]==="quote"&&(!Te.maxBlockquoteDepth||Te.maxBlockquoteDepth>=it.quote?Ce.push(pe.formatting+"-"+it.formatting[Et]+"-"+it.quote):Ce.push("error"))}if(it.taskOpen)return Ce.push("meta"),Ce.length?Ce.join(" "):null;if(it.taskClosed)return Ce.push("property"),Ce.length?Ce.join(" "):null;if(it.linkHref?Ce.push(pe.linkHref,"url"):(it.strong&&Ce.push(pe.strong),it.em&&Ce.push(pe.em),it.strikethrough&&Ce.push(pe.strikethrough),it.emoji&&Ce.push(pe.emoji),it.linkText&&Ce.push(pe.linkText),it.code&&Ce.push(pe.code),it.image&&Ce.push(pe.image),it.imageAltText&&Ce.push(pe.imageAltText,"link"),it.imageMarker&&Ce.push(pe.imageMarker)),it.header&&Ce.push(pe.header,pe.header+"-"+it.header),it.quote&&(Ce.push(pe.quote),!Te.maxBlockquoteDepth||Te.maxBlockquoteDepth>=it.quote?Ce.push(pe.quote+"-"+it.quote):Ce.push(pe.quote+"-"+Te.maxBlockquoteDepth)),it.list!==!1){var on=(it.listStack.length-1)%3;on?on===1?Ce.push(pe.list2):Ce.push(pe.list3):Ce.push(pe.list1)}return it.trailingSpaceNewLine?Ce.push("trailing-space-new-line"):it.trailingSpace&&Ce.push("trailing-space-"+(it.trailingSpace%2?"a":"b")),Ce.length?Ce.join(" "):null}function Ue(it,Ce){if(it.match(et,!0))return Qe(Ce)}function mt(it,Ce){var Et=Ce.text(it,Ce);if(typeof Et!="undefined")return Et;if(Ce.list)return Ce.list=null,Qe(Ce);if(Ce.taskList){var on=it.match(vt,!0)[1]===" ";return on?Ce.taskOpen=!0:Ce.taskClosed=!0,Te.highlightFormatting&&(Ce.formatting="task"),Ce.taskList=!1,Qe(Ce)}if(Ce.taskOpen=!1,Ce.taskClosed=!1,Ce.header&&it.match(/^#+$/,!0))return Te.highlightFormatting&&(Ce.formatting="header"),Qe(Ce);var Yt=it.next();if(Ce.linkTitle){Ce.linkTitle=!1;var lt=Yt;Yt==="("&&(lt=")"),lt=(lt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var pt="^\\s*(?:[^"+lt+"\\\\]+|\\\\\\\\|\\\\.)"+lt;if(it.match(new RegExp(pt),!0))return pe.linkHref}if(Yt==="`"){var Ft=Ce.formatting;Te.highlightFormatting&&(Ce.formatting="code"),it.eatWhile("`");var Sn=it.current().length;if(Ce.code==0&&(!Ce.quote||Sn==1))return Ce.code=Sn,Qe(Ce);if(Sn==Ce.code){var $t=Qe(Ce);return Ce.code=0,$t}else return Ce.formatting=Ft,Qe(Ce)}else if(Ce.code)return Qe(Ce);if(Yt==="\\"&&(it.next(),Te.highlightFormatting)){var Pn=Qe(Ce),Zt=pe.formatting+"-escape";return Pn?Pn+" "+Zt:Zt}if(Yt==="!"&&it.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ce.imageMarker=!0,Ce.image=!0,Te.highlightFormatting&&(Ce.formatting="image"),Qe(Ce);if(Yt==="["&&Ce.imageMarker&&it.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ce.imageMarker=!1,Ce.imageAltText=!0,Te.highlightFormatting&&(Ce.formatting="image"),Qe(Ce);if(Yt==="]"&&Ce.imageAltText){Te.highlightFormatting&&(Ce.formatting="image");var Pn=Qe(Ce);return Ce.imageAltText=!1,Ce.image=!1,Ce.inline=Ce.f=Bt,Pn}if(Yt==="["&&!Ce.image)return Ce.linkText&&it.match(/^.*?\]/)||(Ce.linkText=!0,Te.highlightFormatting&&(Ce.formatting="link")),Qe(Ce);if(Yt==="]"&&Ce.linkText){Te.highlightFormatting&&(Ce.formatting="link");var Pn=Qe(Ce);return Ce.linkText=!1,Ce.inline=Ce.f=it.match(/\(.*?\)| ?\[.*?\]/,!1)?Bt:mt,Pn}if(Yt==="<"&&it.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ce.f=Ce.inline=Le,Te.highlightFormatting&&(Ce.formatting="link");var Pn=Qe(Ce);return Pn?Pn+=" ":Pn="",Pn+pe.linkInline}if(Yt==="<"&&it.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ce.f=Ce.inline=Le,Te.highlightFormatting&&(Ce.formatting="link");var Pn=Qe(Ce);return Pn?Pn+=" ":Pn="",Pn+pe.linkEmail}if(Te.xml&&Yt==="<"&&it.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var an=it.string.indexOf(">",it.pos);if(an!=-1){var Ht=it.string.substring(it.start,an);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ht)&&(Ce.md_inside=!0)}return it.backUp(1),Ce.htmlState=ce.startState(dt),gt(it,Ce,je)}if(Te.xml&&Yt==="<"&&it.match(/^\/\w*?>/))return Ce.md_inside=!1,"tag";if(Yt==="*"||Yt==="_"){for(var ye=1,ue=it.pos==1?" ":it.string.charAt(it.pos-2);ye<3&&it.eat(Yt);)ye++;var le=it.peek()||" ",de=!/\s/.test(le)&&(!yt.test(le)||/\s/.test(ue)||yt.test(ue)),ge=!/\s/.test(ue)&&(!yt.test(ue)||/\s/.test(le)||yt.test(le)),se=null,Oe=null;if(ye%2&&(!Ce.em&&de&&(Yt==="*"||!ge||yt.test(ue))?se=!0:Ce.em==Yt&&ge&&(Yt==="*"||!de||yt.test(le))&&(se=!1)),ye>1&&(!Ce.strong&&de&&(Yt==="*"||!ge||yt.test(ue))?Oe=!0:Ce.strong==Yt&&ge&&(Yt==="*"||!de||yt.test(le))&&(Oe=!1)),Oe!=null||se!=null){Te.highlightFormatting&&(Ce.formatting=se==null?"strong":Oe==null?"em":"strong em"),se===!0&&(Ce.em=Yt),Oe===!0&&(Ce.strong=Yt);var $t=Qe(Ce);return se===!1&&(Ce.em=!1),Oe===!1&&(Ce.strong=!1),$t}}else if(Yt===" "&&(it.eat("*")||it.eat("_"))){if(it.peek()===" ")return Qe(Ce);it.backUp(1)}if(Te.strikethrough){if(Yt==="~"&&it.eatWhile(Yt)){if(Ce.strikethrough){Te.highlightFormatting&&(Ce.formatting="strikethrough");var $t=Qe(Ce);return Ce.strikethrough=!1,$t}else if(it.match(/^[^\s]/,!1))return Ce.strikethrough=!0,Te.highlightFormatting&&(Ce.formatting="strikethrough"),Qe(Ce)}else if(Yt===" "&&it.match(/^~~/,!0)){if(it.peek()===" ")return Qe(Ce);it.backUp(2)}}if(Te.emoji&&Yt===":"&&it.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ce.emoji=!0,Te.highlightFormatting&&(Ce.formatting="emoji");var ut=Qe(Ce);return Ce.emoji=!1,ut}return Yt===" "&&(it.match(/^ +$/,!1)?Ce.trailingSpace++:Ce.trailingSpace&&(Ce.trailingSpaceNewLine=!0)),Qe(Ce)}function Le(it,Ce){var Et=it.next();if(Et===">"){Ce.f=Ce.inline=mt,Te.highlightFormatting&&(Ce.formatting="link");var on=Qe(Ce);return on?on+=" ":on="",on+pe.linkInline}return it.match(/^[^>]+/,!0),pe.linkInline}function Bt(it,Ce){if(it.eatSpace())return null;var Et=it.next();return Et==="("||Et==="["?(Ce.f=Ce.inline=Wt(Et==="("?")":"]"),Te.highlightFormatting&&(Ce.formatting="link-string"),Ce.linkHref=!0,Qe(Ce)):"error"}var at={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Wt(it){return function(Ce,Et){var on=Ce.next();if(on===it){Et.f=Et.inline=mt,Te.highlightFormatting&&(Et.formatting="link-string");var Yt=Qe(Et);return Et.linkHref=!1,Yt}return Ce.match(at[it]),Et.linkHref=!0,Qe(Et)}}function Lt(it,Ce){return it.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ce.f=Tt,it.next(),Te.highlightFormatting&&(Ce.formatting="link"),Ce.linkText=!0,Qe(Ce)):It(it,Ce,mt)}function Tt(it,Ce){if(it.match(/^\]:/,!0)){Ce.f=Ce.inline=Xt,Te.highlightFormatting&&(Ce.formatting="link");var Et=Qe(Ce);return Ce.linkText=!1,Et}return it.match(/^([^\]\\]|\\.)+/,!0),pe.linkText}function Xt(it,Ce){return it.eatSpace()?null:(it.match(/^[^\s]+/,!0),it.peek()===void 0?Ce.linkTitle=!0:it.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ce.f=Ce.inline=mt,pe.linkHref+" url")}var jt={startState:function(){return{f:he,prevLine:{stream:null},thisLine:{stream:null},block:he,htmlState:null,indentation:0,inline:mt,text:Ue,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(it){return{f:it.f,prevLine:it.prevLine,thisLine:it.thisLine,block:it.block,htmlState:it.htmlState&&ce.copyState(dt,it.htmlState),indentation:it.indentation,localMode:it.localMode,localState:it.localMode?ce.copyState(it.localMode,it.localState):null,inline:it.inline,text:it.text,formatting:!1,linkText:it.linkText,linkTitle:it.linkTitle,linkHref:it.linkHref,code:it.code,em:it.em,strong:it.strong,strikethrough:it.strikethrough,emoji:it.emoji,header:it.header,setext:it.setext,hr:it.hr,taskList:it.taskList,list:it.list,listStack:it.listStack.slice(0),quote:it.quote,indentedCode:it.indentedCode,trailingSpace:it.trailingSpace,trailingSpaceNewLine:it.trailingSpaceNewLine,md_inside:it.md_inside,fencedEndRE:it.fencedEndRE}},token:function(it,Ce){if(Ce.formatting=!1,it!=Ce.thisLine.stream){if(Ce.header=0,Ce.hr=!1,it.match(/^\s*$/,!0))return ze(Ce),null;if(Ce.prevLine=Ce.thisLine,Ce.thisLine={stream:it},Ce.taskList=!1,Ce.trailingSpace=0,Ce.trailingSpaceNewLine=!1,!Ce.localState&&(Ce.f=Ce.block,Ce.f!=je)){var Et=it.match(/^\s*/,!0)[0].replace(/\t/g,wt).length;if(Ce.indentation=Et,Ce.indentationDiff=null,Et>0)return null}}return Ce.f(it,Ce)},innerMode:function(it){return it.block==je?{state:it.htmlState,mode:dt}:it.localState?{state:it.localState,mode:it.localMode}:{state:it,mode:jt}},indent:function(it,Ce,Et){return it.block==je&&dt.indent?dt.indent(it.htmlState,Ce,Et):it.localState&&it.localMode.indent?it.localMode.indent(it.localState,Ce,Et):ce.Pass},blankLine:ze,getType:Qe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return jt},"xml"),ce.defineMIME("text/markdown","markdown"),ce.defineMIME("text/x-markdown","markdown")})},98101:function(zn,en,ae){(function(ce){ce(ae(89780))})(function(ce){"use strict";ce.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 De=0;De<ce.modeInfo.length;De++){var Te=ce.modeInfo[De];Te.mimes&&(Te.mime=Te.mimes[0])}ce.findModeByMIME=function(dt){dt=dt.toLowerCase();for(var be=0;be<ce.modeInfo.length;be++){var ke=ce.modeInfo[be];if(ke.mime==dt)return ke;if(ke.mimes){for(var pe=0;pe<ke.mimes.length;pe++)if(ke.mimes[pe]==dt)return ke}}if(/\+xml$/.test(dt))return ce.findModeByMIME("application/xml");if(/\+json$/.test(dt))return ce.findModeByMIME("application/json")},ce.findModeByExtension=function(dt){dt=dt.toLowerCase();for(var be=0;be<ce.modeInfo.length;be++){var ke=ce.modeInfo[be];if(ke.ext){for(var pe=0;pe<ke.ext.length;pe++)if(ke.ext[pe]==dt)return ke}}},ce.findModeByFileName=function(dt){for(var be=0;be<ce.modeInfo.length;be++){var ke=ce.modeInfo[be];if(ke.file&&ke.file.test(dt))return ke}var pe=dt.lastIndexOf("."),xe=pe>-1&&dt.substring(pe+1,dt.length);if(xe)return ce.findModeByExtension(xe)},ce.findModeByName=function(dt){dt=dt.toLowerCase();for(var be=0;be<ce.modeInfo.length;be++){var ke=ce.modeInfo[be];if(ke.name.toLowerCase()==dt)return ke;if(ke.alias){for(var pe=0;pe<ke.alias.length;pe++)if(ke.alias[pe].toLowerCase()==dt)return ke}}}})},67549:function(zn,en,ae){(function(ce){ce(ae(89780))})(function(ce){"use strict";ce.defineMode("stex",function(De,Te){"use strict";function dt(et,Je){et.cmdState.push(Je)}function be(et){return et.cmdState.length>0?et.cmdState[et.cmdState.length-1]:null}function ke(et){var Je=et.cmdState.pop();Je&&Je.closeBracket()}function pe(et){for(var Je=et.cmdState,tt=Je.length-1;tt>=0;tt--){var yt=Je[tt];if(yt.name!="DEFAULT")return yt}return{styleIdentifier:function(){return null}}}function xe(et,Je,tt){return function(){this.name=et,this.bracketNo=0,this.style=Je,this.styles=tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Me={};Me.importmodule=xe("importmodule","tag",["string","builtin"]),Me.documentclass=xe("documentclass","tag",["","atom"]),Me.usepackage=xe("usepackage","tag",["atom"]),Me.begin=xe("begin","tag",["atom"]),Me.end=xe("end","tag",["atom"]),Me.label=xe("label","tag",["atom"]),Me.ref=xe("ref","tag",["atom"]),Me.eqref=xe("eqref","tag",["atom"]),Me.cite=xe("cite","tag",["atom"]),Me.bibitem=xe("bibitem","tag",["atom"]),Me.Bibitem=xe("Bibitem","tag",["atom"]),Me.RBibitem=xe("RBibitem","tag",["atom"]),Me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ke(et,Je){et.f=Je}function vt(et,Je){var tt;if(et.match(/^\\[a-zA-Z@]+/)){var yt=et.current().slice(1);return tt=Me.hasOwnProperty(yt)?Me[yt]:Me.DEFAULT,tt=new tt,dt(Je,tt),Ke(Je,Be),tt.style}if(et.match(/^\\[$&%#{}_]/)||et.match(/^\\[,;!\/\\]/))return"tag";if(et.match("\\["))return Ke(Je,function(It,gt){return Pe(It,gt,"\\]")}),"keyword";if(et.match("\\("))return Ke(Je,function(It,gt){return Pe(It,gt,"\\)")}),"keyword";if(et.match("$$"))return Ke(Je,function(It,gt){return Pe(It,gt,"$$")}),"keyword";if(et.match("$"))return Ke(Je,function(It,gt){return Pe(It,gt,"$")}),"keyword";var wt=et.next();if(wt=="%")return et.skipToEnd(),"comment";if(wt=="}"||wt=="]"){if(tt=be(Je),tt)tt.closeBracket(wt),Ke(Je,Be);else return"error";return"bracket"}else return wt=="{"||wt=="["?(tt=Me.DEFAULT,tt=new tt,dt(Je,tt),"bracket"):/\d/.test(wt)?(et.eatWhile(/[\w.%]/),"atom"):(et.eatWhile(/[\w\-_]/),tt=pe(Je),tt.name=="begin"&&(tt.argument=et.current()),tt.styleIdentifier())}function Pe(et,Je,tt){if(et.eatSpace())return null;if(tt&&et.match(tt))return Ke(Je,vt),"keyword";if(et.match(/^\\[a-zA-Z@]+/))return"tag";if(et.match(/^[a-zA-Z]+/))return"variable-2";if(et.match(/^\\[$&%#{}_]/)||et.match(/^\\[,;!\/]/)||et.match(/^[\^_&]/))return"tag";if(et.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(et.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var yt=et.next();return yt=="{"||yt=="}"||yt=="["||yt=="]"||yt=="("||yt==")"?"bracket":yt=="%"?(et.skipToEnd(),"comment"):"error"}function Be(et,Je){var tt=et.peek(),yt;return tt=="{"||tt=="["?(yt=be(Je),yt.openBracket(tt),et.eat(tt),Ke(Je,vt),"bracket"):/[ \t\r]/.test(tt)?(et.eat(tt),null):(Ke(Je,vt),ke(Je),vt(et,Je))}return{startState:function(){var et=Te.inMathMode?function(Je,tt){return Pe(Je,tt)}:vt;return{cmdState:[],f:et}},copyState:function(et){return{cmdState:et.cmdState.slice(),f:et.f}},token:function(et,Je){return Je.f(et,Je)},blankLine:function(et){et.f=vt,et.cmdState.length=0},lineComment:"%"}}),ce.defineMIME("text/x-stex","stex"),ce.defineMIME("text/x-latex","stex")})},15525:function(zn,en,ae){(function(ce){ce(ae(89780))})(function(ce){"use strict";var De={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},Te={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ce.defineMode("xml",function(dt,be){var ke=dt.indentUnit,pe={},xe=be.htmlMode?De:Te;for(var Me in xe)pe[Me]=xe[Me];for(var Me in be)pe[Me]=be[Me];var Ke,vt;function Pe(Le,Bt){function at(Tt){return Bt.tokenize=Tt,Tt(Le,Bt)}var Wt=Le.next();if(Wt=="<")return Le.eat("!")?Le.eat("[")?Le.match("CDATA[")?at(Je("atom","]]>")):null:Le.match("--")?at(Je("comment","-->")):Le.match("DOCTYPE",!0,!0)?(Le.eatWhile(/[\w\._\-]/),at(tt(1))):null:Le.eat("?")?(Le.eatWhile(/[\w\._\-]/),Bt.tokenize=Je("meta","?>"),"meta"):(Ke=Le.eat("/")?"closeTag":"openTag",Bt.tokenize=Be,"tag bracket");if(Wt=="&"){var Lt;return Le.eat("#")?Le.eat("x")?Lt=Le.eatWhile(/[a-fA-F\d]/)&&Le.eat(";"):Lt=Le.eatWhile(/[\d]/)&&Le.eat(";"):Lt=Le.eatWhile(/[\w\.\-:]/)&&Le.eat(";"),Lt?"atom":"error"}else return Le.eatWhile(/[^&<]/),null}Pe.isInText=!0;function Be(Le,Bt){var at=Le.next();if(at==">"||at=="/"&&Le.eat(">"))return Bt.tokenize=Pe,Ke=at==">"?"endTag":"selfcloseTag","tag bracket";if(at=="=")return Ke="equals",null;if(at=="<"){Bt.tokenize=Pe,Bt.state=gt,Bt.tagName=Bt.tagStart=null;var Wt=Bt.tokenize(Le,Bt);return Wt?Wt+" tag error":"tag error"}else return/[\'\"]/.test(at)?(Bt.tokenize=et(at),Bt.stringStartCol=Le.column(),Bt.tokenize(Le,Bt)):(Le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function et(Le){var Bt=function(at,Wt){for(;!at.eol();)if(at.next()==Le){Wt.tokenize=Be;break}return"string"};return Bt.isInAttribute=!0,Bt}function Je(Le,Bt){return function(at,Wt){for(;!at.eol();){if(at.match(Bt)){Wt.tokenize=Pe;break}at.next()}return Le}}function tt(Le){return function(Bt,at){for(var Wt;(Wt=Bt.next())!=null;){if(Wt=="<")return at.tokenize=tt(Le+1),at.tokenize(Bt,at);if(Wt==">")if(Le==1){at.tokenize=Pe;break}else return at.tokenize=tt(Le-1),at.tokenize(Bt,at)}return"meta"}}function yt(Le,Bt,at){this.prev=Le.context,this.tagName=Bt,this.indent=Le.indented,this.startOfLine=at,(pe.doNotIndent.hasOwnProperty(Bt)||Le.context&&Le.context.noIndent)&&(this.noIndent=!0)}function wt(Le){Le.context&&(Le.context=Le.context.prev)}function It(Le,Bt){for(var at;;){if(!Le.context||(at=Le.context.tagName,!pe.contextGrabbers.hasOwnProperty(at)||!pe.contextGrabbers[at].hasOwnProperty(Bt)))return;wt(Le)}}function gt(Le,Bt,at){return Le=="openTag"?(at.tagStart=Bt.column(),st):Le=="closeTag"?ze:gt}function st(Le,Bt,at){return Le=="word"?(at.tagName=Bt.current(),vt="tag",Xe):pe.allowMissingTagName&&Le=="endTag"?(vt="tag bracket",Xe(Le,Bt,at)):(vt="error",st)}function ze(Le,Bt,at){if(Le=="word"){var Wt=Bt.current();return at.context&&at.context.tagName!=Wt&&pe.implicitlyClosed.hasOwnProperty(at.context.tagName)&&wt(at),at.context&&at.context.tagName==Wt||pe.matchClosing===!1?(vt="tag",he):(vt="tag error",je)}else return pe.allowMissingTagName&&Le=="endTag"?(vt="tag bracket",he(Le,Bt,at)):(vt="error",je)}function he(Le,Bt,at){return Le!="endTag"?(vt="error",he):(wt(at),gt)}function je(Le,Bt,at){return vt="error",he(Le,Bt,at)}function Xe(Le,Bt,at){if(Le=="word")return vt="attribute",Qe;if(Le=="endTag"||Le=="selfcloseTag"){var Wt=at.tagName,Lt=at.tagStart;return at.tagName=at.tagStart=null,Le=="selfcloseTag"||pe.autoSelfClosers.hasOwnProperty(Wt)?It(at,Wt):(It(at,Wt),at.context=new yt(at,Wt,Lt==at.indented)),gt}return vt="error",Xe}function Qe(Le,Bt,at){return Le=="equals"?Ue:(pe.allowMissing||(vt="error"),Xe(Le,Bt,at))}function Ue(Le,Bt,at){return Le=="string"?mt:Le=="word"&&pe.allowUnquoted?(vt="string",Xe):(vt="error",Xe(Le,Bt,at))}function mt(Le,Bt,at){return Le=="string"?mt:Xe(Le,Bt,at)}return{startState:function(Le){var Bt={tokenize:Pe,state:gt,indented:Le||0,tagName:null,tagStart:null,context:null};return Le!=null&&(Bt.baseIndent=Le),Bt},token:function(Le,Bt){if(!Bt.tagName&&Le.sol()&&(Bt.indented=Le.indentation()),Le.eatSpace())return null;Ke=null;var at=Bt.tokenize(Le,Bt);return(at||Ke)&&at!="comment"&&(vt=null,Bt.state=Bt.state(Ke||at,Le,Bt),vt&&(at=vt=="error"?at+" error":vt)),at},indent:function(Le,Bt,at){var Wt=Le.context;if(Le.tokenize.isInAttribute)return Le.tagStart==Le.indented?Le.stringStartCol+1:Le.indented+ke;if(Wt&&Wt.noIndent)return ce.Pass;if(Le.tokenize!=Be&&Le.tokenize!=Pe)return at?at.match(/^(\s*)/)[0].length:0;if(Le.tagName)return pe.multilineTagIndentPastTag!==!1?Le.tagStart+Le.tagName.length+2:Le.tagStart+ke*(pe.multilineTagIndentFactor||1);if(pe.alignCDATA&&/<!\[CDATA\[/.test(Bt))return 0;var Lt=Bt&&/^<(\/)?([\w_:\.-]*)/.exec(Bt);if(Lt&&Lt[1])for(;Wt;)if(Wt.tagName==Lt[2]){Wt=Wt.prev;break}else if(pe.implicitlyClosed.hasOwnProperty(Wt.tagName))Wt=Wt.prev;else break;else if(Lt)for(;Wt;){var Tt=pe.contextGrabbers[Wt.tagName];if(Tt&&Tt.hasOwnProperty(Lt[2]))Wt=Wt.prev;else break}for(;Wt&&Wt.prev&&!Wt.startOfLine;)Wt=Wt.prev;return Wt?Wt.indent+ke:Le.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:pe.htmlMode?"html":"xml",helperType:pe.htmlMode?"html":"xml",skipAttribute:function(Le){Le.state==Ue&&(Le.state=Xe)},xmlCurrentTag:function(Le){return Le.tagName?{name:Le.tagName,close:Le.type=="closeTag"}:null},xmlCurrentContext:function(Le){for(var Bt=[],at=Le.context;at;at=at.prev)at.tagName&&Bt.push(at.tagName);return Bt.reverse()}}}),ce.defineMIME("text/xml","xml"),ce.defineMIME("application/xml","xml"),ce.mimeModes.hasOwnProperty("text/html")||ce.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(zn,en,ae){"use strict";ae.d(en,{hP:function(){return Ht}});var ce=function(ye,ue){return(ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,de){le.__proto__=de}||function(le,de){for(var ge in de)Object.prototype.hasOwnProperty.call(de,ge)&&(le[ge]=de[ge])})(ye,ue)};function De(ye,ue){function le(){this.constructor=ye}ce(ye,ue),ye.prototype=ue===null?Object.create(ue):(le.prototype=ue.prototype,new le)}function Te(ye,ue,le,de){return new(le||(le=Promise))(function(ge,se){function Oe(_e){try{Ge(de.next(_e))}catch(St){se(St)}}function ut(_e){try{Ge(de.throw(_e))}catch(St){se(St)}}function Ge(_e){var St;_e.done?ge(_e.value):(St=_e.value,St instanceof le?St:new le(function(bt){bt(St)})).then(Oe,ut)}Ge((de=de.apply(ye,ue||[])).next())})}function dt(ye,ue){var le,de,ge,se,Oe={label:0,sent:function(){if(1&ge[0])throw ge[1];return ge[1]},trys:[],ops:[]};return se={next:ut(0),throw:ut(1),return:ut(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function ut(Ge){return function(_e){return function(St){if(le)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(le=1,de&&(ge=2&St[0]?de.return:St[0]?de.throw||((ge=de.return)&&ge.call(de),0):de.next)&&!(ge=ge.call(de,St[1])).done)return ge;switch(de=0,ge&&(St=[2&St[0],ge.value]),St[0]){case 0:case 1:ge=St;break;case 4:return Oe.label++,{value:St[1],done:!1};case 5:Oe.label++,de=St[1],St=[0];continue;case 7:St=Oe.ops.pop(),Oe.trys.pop();continue;default:if(ge=Oe.trys,!((ge=ge.length>0&&ge[ge.length-1])||St[0]!==6&&St[0]!==2)){Oe=0;continue}if(St[0]===3&&(!ge||St[1]>ge[0]&&St[1]<ge[3])){Oe.label=St[1];break}if(St[0]===6&&Oe.label<ge[1]){Oe.label=ge[1],ge=St;break}if(ge&&Oe.label<ge[2]){Oe.label=ge[2],Oe.ops.push(St);break}ge[2]&&Oe.ops.pop(),Oe.trys.pop();continue}St=ue.call(ye,Oe)}catch(bt){St=[6,bt],de=0}finally{le=ge=0}if(5&St[0])throw St[1];return{value:St[0]?St[1]:void 0,done:!0}}([Ge,_e])}}}function be(){for(var ye=0,ue=0,le=arguments.length;ue<le;ue++)ye+=arguments[ue].length;var de=Array(ye),ge=0;for(ue=0;ue<le;ue++)for(var se=arguments[ue],Oe=0,ut=se.length;Oe<ut;Oe++,ge++)de[ge]=se[Oe];return de}var ke=function(){function ye(){}return ye.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ye.setAttributes=function(ue,le){for(var de=0,ge=le;de<ge.length;de++){var se=ge[de],Oe=se[0],ut=se[1];ue.setAttribute(Oe,ut)}},ye.createRect=function(ue,le,de){var ge=document.createElementNS("http://www.w3.org/2000/svg","rect");return ge.setAttribute("width",ue.toString()),ge.setAttribute("height",le.toString()),de&&ye.setAttributes(ge,de),ge},ye.createLine=function(ue,le,de,ge,se){var Oe=document.createElementNS("http://www.w3.org/2000/svg","line");return Oe.setAttribute("x1",ue.toString()),Oe.setAttribute("y1",le.toString()),Oe.setAttribute("x2",de.toString()),Oe.setAttribute("y2",ge.toString()),se&&ye.setAttributes(Oe,se),Oe},ye.createPolygon=function(ue,le){var de=document.createElementNS("http://www.w3.org/2000/svg","polygon");return de.setAttribute("points",ue),le&&ye.setAttributes(de,le),de},ye.createCircle=function(ue,le){var de=document.createElementNS("http://www.w3.org/2000/svg","circle");return de.setAttribute("cx",(ue/2).toString()),de.setAttribute("cy",(ue/2).toString()),de.setAttribute("r",ue.toString()),le&&ye.setAttributes(de,le),de},ye.createEllipse=function(ue,le,de){var ge=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ge.setAttribute("cx",(ue/2).toString()),ge.setAttribute("cy",(le/2).toString()),ge.setAttribute("rx",(ue/2).toString()),ge.setAttribute("ry",(le/2).toString()),de&&ye.setAttributes(ge,de),ge},ye.createGroup=function(ue){var le=document.createElementNS("http://www.w3.org/2000/svg","g");return ue&&ye.setAttributes(le,ue),le},ye.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ye.createMarker=function(ue,le,de,ge,se,Oe,ut){var Ge=document.createElementNS("http://www.w3.org/2000/svg","marker");return ye.setAttributes(Ge,[["id",ue],["orient",le],["markerWidth",de.toString()],["markerHeight",ge.toString()],["refX",se.toString()],["refY",Oe.toString()]]),Ge.appendChild(ut),Ge},ye.createText=function(ue){var le=document.createElementNS("http://www.w3.org/2000/svg","text");return le.setAttribute("x","0"),le.setAttribute("y","0"),ue&&ye.setAttributes(le,ue),le},ye.createTSpan=function(ue,le){var de=document.createElementNS("http://www.w3.org/2000/svg","tspan");return de.textContent=ue,le&&ye.setAttributes(de,le),de},ye.createImage=function(ue){var le=document.createElementNS("http://www.w3.org/2000/svg","image");return ue&&ye.setAttributes(le,ue),le},ye.createPoint=function(ue,le){var de=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return de.x=ue,de.y=le,de},ye.createPath=function(ue,le){var de=document.createElementNS("http://www.w3.org/2000/svg","path");return de.setAttribute("d",ue),le&&ye.setAttributes(de,le),de},ye}(),pe=function(){function ye(){}return ye.addKey=function(ue){ye.key=ue},Object.defineProperty(ye,"isLicensed",{get:function(){return!!ye.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ye.key)},enumerable:!1,configurable:!0}),ye}(),xe=function(){function ye(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ye.prototype.rasterize=function(ue,le,de){var ge=this;return new Promise(function(se){var Oe=de!==void 0?de:document.createElement("canvas");ue===null&&(ge.markersOnly=!0,ge.naturalSize=!1);var ut=document.createElementNS("http://www.w3.org/2000/svg","svg");ut.setAttribute("xmlns","http://www.w3.org/2000/svg"),ut.setAttribute("width",le.width.baseVal.valueAsString),ut.setAttribute("height",le.height.baseVal.valueAsString),ut.setAttribute("viewBox","0 0 "+le.viewBox.baseVal.width.toString()+" "+le.viewBox.baseVal.height.toString()),ut.innerHTML=le.innerHTML,ge.naturalSize===!0?(ut.width.baseVal.value=ue.naturalWidth,ut.height.baseVal.value=ue.naturalHeight):ge.width!==void 0&&ge.height!==void 0&&(ut.width.baseVal.value=ge.width,ut.height.baseVal.value=ge.height),Oe.width=ut.width.baseVal.value,Oe.height=ut.height.baseVal.value;var Ge=ut.outerHTML,_e=Oe.getContext("2d");ge.markersOnly!==!0&&_e.drawImage(ue,0,0,Oe.width,Oe.height);var St=window.URL,bt=new Image(Oe.width,Oe.height);bt.setAttribute("crossOrigin","anonymous");var rt=new Blob([Ge],{type:"image/svg+xml"}),Dt=St.createObjectURL(rt);bt.onload=function(){_e.drawImage(bt,0,0),St.revokeObjectURL(Dt);var xn=Oe.toDataURL(ge.imageType,ge.imageQuality);se(xn)},bt.src=Dt})},ye}(),Me=function(){},Ke=function(){function ye(ue){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ue+"_"}return Object.defineProperty(ye.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ye.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(ye.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ye.prototype.addClass=function(ue){return this.styleSheet===void 0&&this.addStyleSheet(),ue.name=""+this.classNamePrefix+ue.localName,this.classes.push(ue),this.styleSheet.sheet.insertRule("."+ue.name+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length),ue},ye.prototype.addRule=function(ue){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ue),this.styleSheet.sheet.insertRule(ue.selector+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length)},ye.prototype.addStyleSheet=function(){var ue;this.styleSheet=document.createElement("style"),((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).appendChild(this.styleSheet),this.addRule(new vt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new vt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new vt("@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;
|
|
|
`))},ye.prototype.removeStyleSheet=function(){var ue;this.styleSheet&&(((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ye}(),vt=function(ye,ue){this.selector=ye,this.style=ue},Pe=function(ye,ue){this.localName=ye,this.style=ue},Be=function(){function ye(ue,le,de,ge,se){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ue,this.displayMode=le,this.markerItems=de,this.uiStyleSettings=ge,this.styles=se,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ye.prototype.show=function(ue){var le=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",this.uiContainer.appendChild(de),this.addActionButton(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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 Oe=document.createElement("div");Oe.className=""+le.toolbarButtonStyleClass.name,Oe.setAttribute("data-type-name",se.typeName),Oe.innerHTML=se.icon,Oe.addEventListener("click",function(){le.markerToolbarButtonClicked(Oe,se)}),le.buttons.push(Oe),le.markerButtons.push(Oe)}),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 ge=document.createElement("div");ge.className=this.toolbarBlockStyleClass.name,ge.style.whiteSpace="nowrap",ge.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ge),this.addActionButton(ge,'<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(ge,'<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()},ye.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},ye.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},ye.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ye.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var le=0;le<this.markerButtons.length;le++)le<ue||le===ue&&this.markerButtons.length-1===ue?this.markerButtonBlock.appendChild(this.markerButtons[le]):(le===ue&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[le]))}},ye.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")},ye.prototype.resetButtonStyles=function(){var ue=this;this.buttons.forEach(function(le){le.className=le.className.replace(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name,"").trim(),le.className=le.className.replace(ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ue.toolbarActiveButtonStyleColorsClass.name,"").trim(),le.className+=" "+(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name)})},ye.prototype.addActionButton=function(ue,le,de){var ge=this,se=document.createElement("div");switch(se.className=""+this.toolbarButtonStyleClass.name,se.innerHTML=le,se.setAttribute("data-action",de),se.addEventListener("click",function(){ge.actionToolbarButtonClicked(se,de)}),de){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}ue.appendChild(se),this.buttons.push(se)},ye.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 ue=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Pe("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
|
|
|
padding: `+ue+`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 vt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new vt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ye.prototype.markerToolbarButtonClicked=function(ue,le){this.setActiveButton(ue),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("marker",le)}),this.markerButtonOverflowBlock.style.display="none"},ye.prototype.actionToolbarButtonClicked=function(ue,le){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("action",le)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ye.prototype.setActiveButton=function(ue){this.resetButtonStyles(),ue.className=ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ye.prototype.setActiveMarkerButton=function(ue){var le=this.markerButtons.find(function(de){return de.getAttribute("data-type-name")===ue});le&&this.setActiveButton(le)},ye.prototype.setCurrentMarker=function(ue){var le=this;this.currentMarker=ue,this.buttons.filter(function(de){return/delete|notes/.test(de.getAttribute("data-action"))}).forEach(function(de){le.currentMarker===void 0?(de.style.fillOpacity="0.4",de.style.pointerEvents="none"):(de.style.fillOpacity="1",de.style.pointerEvents="all")})},ye}(),et=function(){function ye(ue,le,de,ge){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=le,this.uiStyleSettings=de,this.styles=ge,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ye.prototype.addStyles=function(){var ue;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 le=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: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Pe("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
|
|
|
padding: `+le+`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 vt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new vt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ye.prototype.show=function(ue){var le;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((le=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ye.prototype.setPanelButtons=function(ue){var le,de,ge=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((le=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((de=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(se){var Oe;se.uiStyleSettings=ge.uiStyleSettings;var ut=document.createElement("div");ut.className=ge.toolboxButtonStyleClass.name+" "+((Oe=ge.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Oe!==void 0?Oe:ge.toolboxButtonStyleColorsClass.name),ut.innerHTML=se.icon,ut.title=se.title,ut.addEventListener("click",function(){ge.panelButtonClick(se)}),ge.panelButtons.push(ut),ge.buttonRow.appendChild(ut)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ye.prototype.panelButtonClick=function(ue){var le=this,de=-1;if(ue!==this.activePanel){de=this.panels.indexOf(ue),this.panelRow.innerHTML="";var ge=ue.getUi();ge.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ge),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=ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){le.displayMode==="inline"?le.panelRow.style.display="none":le.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(se,Oe){var ut,Ge;se.className=le.toolboxButtonStyleClass.name+" "+(Oe===de?""+((ut=le.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ut!==void 0?ut:le.toolboxActiveButtonStyleColorsClass.name):""+((Ge=le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:le.toolboxButtonStyleColorsClass.name))})},ye}(),Je=function(ye,ue){this.title=ye,this.icon=ue},tt=function(ye){function ue(le,de,ge,se){var Oe=ye.call(this,le,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 Oe.colors=[],Oe.addTransparent=!1,Oe.colorBoxes=[],Oe.colors=de,Oe.currentColor=ge,Oe.setCurrentColor=Oe.setCurrentColor.bind(Oe),Oe.getColorBox=Oe.getColorBox.bind(Oe),Oe}return De(ue,ye),ue.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.whiteSpace="nowrap",this.colors.forEach(function(ge){var se=le.getColorBox(ge);de.appendChild(se),le.colorBoxes.push(se)}),de},ue.prototype.getColorBox=function(le){var de=this,ge=this.uiStyleSettings.toolbarHeight/4,se=this.uiStyleSettings.toolbarHeight-ge,Oe=document.createElement("div");Oe.style.display="inline-block",Oe.style.boxSizing="content-box",Oe.style.width=se-2+"px",Oe.style.height=se-2+"px",Oe.style.padding="1px",Oe.style.marginRight="2px",Oe.style.marginBottom="2px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderRadius=(se+2)/2+"px",Oe.style.borderColor=le===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){de.setCurrentColor(le,Oe)});var ut=document.createElement("div");return ut.style.display="inline-block",ut.style.width=se-2+"px",ut.style.height=se-2+"px",ut.style.backgroundColor=le,ut.style.borderRadius=se/2+"px",le==="transparent"&&(ut.style.fill=this.uiStyleSettings.toolboxAccentColor,ut.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>`),Oe.appendChild(ut),Oe},ue.prototype.setCurrentColor=function(le,de){var ge=this;this.currentColor=le,this.colorBoxes.forEach(function(se){se.style.borderColor=se===de?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(le)},ue}(Je),yt=function(){function ye(ue,le,de){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=le,this.globalSettings=de,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ye.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ye.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(ye.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ye.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ye.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ye.prototype.pointerDown=function(ue,le){},ye.prototype.dblClick=function(ue,le){},ye.prototype.manipulate=function(ue){},ye.prototype.pointerUp=function(ue){this.stateChanged()},ye.prototype.dispose=function(){},ye.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},ye.prototype.getState=function(){return{typeName:ye.typeName,state:this.state,notes:this.notes}},ye.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},ye.prototype.scale=function(ue,le){},ye.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},ye.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},ye.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ue)&&this.onStateChanged(this)}},ye.typeName="MarkerBase",ye}(),wt=function(){function ye(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ye.prototype.findGripByVisual=function(ue){return this.topLeft.ownsTarget(ue)?this.topLeft:this.topCenter.ownsTarget(ue)?this.topCenter:this.topRight.ownsTarget(ue)?this.topRight:this.centerLeft.ownsTarget(ue)?this.centerLeft:this.centerRight.ownsTarget(ue)?this.centerRight:this.bottomLeft.ownsTarget(ue)?this.bottomLeft:this.bottomCenter.ownsTarget(ue)?this.bottomCenter:this.bottomRight.ownsTarget(ue)?this.bottomRight:void 0},ye}(),It=function(){function ye(){this.GRIP_SIZE=10,this.visual=ke.createGroup(),this.visual.appendChild(ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ke.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ye.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},ye}(),gt=function(){function ye(){}return ye.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},ye.toSVGMatrix=function(ue,le){return ue.a=le.a,ue.b=le.b,ue.c=le.c,ue.d=le.d,ue.e=le.e,ue.f=le.f,ue},ye}(),st=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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(ke.createTransform()),se.setupControlBox(),se}return De(ue,ye),Object.defineProperty(ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"visual",{get:function(){return this._visual},set:function(le){this._visual=le;var de=ke.createTransform();this._visual.transform.baseVal.appendItem(de)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(le){return!!ye.prototype.ownsTarget.call(this,le)||!!(this.controlGrips.findGripByVisual(le)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(le))},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.state==="new"&&(this.left=le.x,this.top=le.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ge=this.unrotatePoint(le);if(this.manipulationStartX=ge.x,this.manipulationStartY=ge.y,this.offsetX=ge.x-this.left,this.offsetY=ge.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(de),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(de)){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 Oe=this.container.transform.baseVal.getItem(0);Oe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Oe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(le){var de=this.state;ye.prototype.pointerUp.call(this,le),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(le),this._state="select",de==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(le){this.visual.style.transform="translate("+le.x+"px, "+le.y+"px)"},ue.prototype.manipulate=function(le){var de=this.unrotatePoint(le);this.state==="creating"?this.resize(le):this.state==="move"?(this.left=this.manipulationStartLeft+(de.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(de.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(de):this.state==="rotate"&&this.rotate(le)},ue.prototype.resize=function(le){var de=this.manipulationStartLeft,ge=this.manipulationStartWidth,se=this.manipulationStartTop,Oe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:de=this.manipulationStartLeft+le.x-this.manipulationStartX,ge=this.manipulationStartWidth+this.manipulationStartLeft-de;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ge=this.manipulationStartWidth+le.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+le.y-this.manipulationStartY,Oe=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Oe=this.manipulationStartHeight+le.y-this.manipulationStartY}ge>=0?(this.left=de,this.width=ge):(this.left=de+ge,this.width=-ge),Oe>=0?(this.top=se,this.height=Oe):(this.top=se+Oe,this.height=-Oe),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(le){if(Math.abs(le.x-this.centerX)>.1){var de=Math.sign(le.x-this.centerX);this.rotationAngle=180*Math.atan((le.y-this.centerY)/(le.x-this.centerX))/Math.PI+90*de,this.applyRotation()}},ue.prototype.applyRotation=function(){var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0)},ue.prototype.rotatePoint=function(le){if(this.rotationAngle===0)return le;var de=this.container.getCTM(),ge=ke.createPoint(le.x,le.y);return{x:(ge=ge.matrixTransform(de)).x,y:ge.y}},ue.prototype.unrotatePoint=function(le){if(this.rotationAngle===0)return le;var de=this.container.getCTM();de=de.inverse();var ge=ke.createPoint(le.x,le.y);return{x:(ge=ge.matrixTransform(de)).x,y:ge.y}},ue.prototype.select=function(){ye.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ye.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=ke.createGroup();var le=ke.createTransform();le.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(le),this.container.appendChild(this.controlBox),this.controlRect=ke.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=ke.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 wt,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var le=this.controlBox.transform.baseVal.getItem(0);le.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(le,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()},ue.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()},ue.prototype.createGrip=function(){var le=new It;return le.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(le.visual),le},ue.prototype.positionGrips=function(){var le=this.controlGrips.topLeft.GRIP_SIZE,de=-le/2,ge=de,se=(this.width+this.CB_DISTANCE)/2-le/2,Oe=(this.height+this.CB_DISTANCE)/2-le/2,ut=this.height+this.CB_DISTANCE-le/2,Ge=this.width+this.CB_DISTANCE-le/2;this.positionGrip(this.controlGrips.topLeft.visual,de,ge),this.positionGrip(this.controlGrips.topCenter.visual,se,ge),this.positionGrip(this.controlGrips.topRight.visual,Ge,ge),this.positionGrip(this.controlGrips.centerLeft.visual,de,Oe),this.positionGrip(this.controlGrips.centerRight.visual,Ge,Oe),this.positionGrip(this.controlGrips.bottomLeft.visual,de,ut),this.positionGrip(this.controlGrips.bottomCenter.visual,se,ut),this.positionGrip(this.controlGrips.bottomRight.visual,Ge,ut),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,ge-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(le,de,ge){var se=le.transform.baseVal.getItem(0);se.setTranslate(de,ge),le.transform.baseVal.replaceItem(se,0)},ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ue.prototype.showControlBox=function(){this.controlBox.style.display=""},ue.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:gt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:gt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(le){ye.prototype.restoreState.call(this,le);var de=le;this.left=de.left,this.top=de.top,this.width=de.width,this.height=de.height,this.rotationAngle=de.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(gt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,de.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(gt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,de.containerTransformMatrix))},ue.prototype.scale=function(le,de){ye.prototype.scale.call(this,le,de);var ge=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:ge.x*le,y:ge.y*de});this.left=se.x,this.top=se.y,this.width=this.width*le,this.height=this.height*de,this.adjustControlBox()},ue}(yt),ze=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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 De(ue,ye),ue.prototype.ownsTarget=function(le){return!(!ye.prototype.ownsTarget.call(this,le)&&le!==this.visual)},ue.prototype.createVisual=function(){this.visual=ke.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)},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ue.prototype.manipulate=function(le){ye.prototype.manipulate.call(this,le)},ue.prototype.resize=function(le){ye.prototype.resize.call(this,le),this.setSize()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(le){ye.prototype.pointerUp.call(this,le),this.setSize()},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},ue.prototype.setFillColor=function(le){this.fillColor=le,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(le){var de=le;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),ye.prototype.restoreState.call(this,le),this.setSize()},ue.prototype.scale=function(le,de){ye.prototype.scale.call(this,le,de),this.setSize()},ue.title="Rectangle marker",ue}(st),he=function(ye){function ue(le,de,ge,se){var Oe=ye.call(this,le,se||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Oe.widths=[],Oe.widthBoxes=[],Oe.widths=de,Oe.currentWidth=ge,Oe.setCurrentWidth=Oe.setCurrentWidth.bind(Oe),Oe}return De(ue,ye),ue.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.widths.forEach(function(ge){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=ge===le.currentWidth?le.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){le.setCurrentWidth(ge,se)}),de.appendChild(se);var Oe=document.createElement("div");Oe.innerText=ge.toString(),Oe.style.marginRight="5px",se.appendChild(Oe);var ut=document.createElement("div");ut.style.minHeight="20px",ut.style.flexGrow="2",ut.style.display="flex",ut.style.alignItems="center";var Ge=document.createElement("hr");Ge.style.minWidth="20px",Ge.style.border="0px",Ge.style.borderTop=ge+"px solid "+le.uiStyleSettings.toolboxColor,Ge.style.flexGrow="2",ut.appendChild(Ge),se.appendChild(ut),le.widthBoxes.push(se)}),de},ue.prototype.setCurrentWidth=function(le,de){var ge=this;this.currentWidth=le,this.widthBoxes.forEach(function(se){se.style.borderColor=se===de?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(Je),je=function(ye){function ue(le,de,ge,se){var Oe=ye.call(this,le,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 Oe.styles=[],Oe.styleBoxes=[],Oe.styles=de,Oe.currentStyle=ge,Oe.setCurrentStyle=Oe.setCurrentStyle.bind(Oe),Oe}return De(ue,ye),ue.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.styles.forEach(function(ge){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/le.styles.length-5+"%",se.style.borderColor=ge===le.currentStyle?le.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){le.setCurrentStyle(ge,se)}),de.appendChild(se);var Oe=document.createElement("div");Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.overflow="hidden";var ut=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+le.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ge!==""?'stroke-dasharray="'+ge+'"':"")+` />
|
|
|
</svg>`;Oe.innerHTML=ut,se.appendChild(Oe),le.styleBoxes.push(se)}),de},ue.prototype.setCurrentStyle=function(le,de){var ge=this;this.currentStyle=le,this.styleBoxes.forEach(function(se){se.style.borderColor=se===de?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(Je),Xe=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||this;return se.strokeColor=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.strokePanel=new tt("Line color",ge.defaultColorSet,ge.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new he("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new je("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return De(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=ye.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ue}(ze),Qe=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"},Ue=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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 De(ue,ye),ue.prototype.ownsTarget=function(le){return!!ye.prototype.ownsTarget.call(this,le)||!(!this.grip1.ownsTarget(le)&&!this.grip2.ownsTarget(le))},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.manipulationStartX=le.x,this.manipulationStartY=le.y,this.state==="new"&&(this.x1=le.x,this.y1=le.y,this.x2=le.x,this.y2=le.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(de)?this.activeGrip=this.grip1:this.grip2.ownsTarget(de)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(le){var de=this.state;ye.prototype.pointerUp.call(this,le),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(le),this._state="select",de==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(le){this.state==="creating"?this.resize(le):this.state==="move"?(this.x1=this.manipulationStartX1+le.x-this.manipulationStartX,this.y1=this.manipulationStartY1+le.y-this.manipulationStartY,this.x2=this.manipulationStartX2+le.x-this.manipulationStartX,this.y2=this.manipulationStartY2+le.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(le)},ue.prototype.resize=function(le){switch(this.activeGrip){case this.grip1:this.x1=le.x,this.y1=le.y;break;case this.grip2:case void 0:this.x2=le.x,this.y2=le.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){ye.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ye.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=ke.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){this.positionGrips()},ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ue.prototype.createGrip=function(){var le=new It;return le.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(le.visual),le},ue.prototype.positionGrips=function(){var le=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-le/2,this.y1-le/2),this.positionGrip(this.grip2.visual,this.x2-le/2,this.y2-le/2)},ue.prototype.positionGrip=function(le,de,ge){var se=le.transform.baseVal.getItem(0);se.setTranslate(de,ge),le.transform.baseVal.replaceItem(se,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(le){ye.prototype.restoreState.call(this,le);var de=le;this.x1=de.x1,this.y1=de.y1,this.x2=de.x2,this.y2=de.y2},ue.prototype.scale=function(le,de){ye.prototype.scale.call(this,le,de),this.x1=this.x1*le,this.y1=this.y1*de,this.x2=this.x2*le,this.y2=this.y2*de,this.adjustVisual(),this.adjustControlBox()},ue}(yt),mt=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.strokePanel=new tt("Line color",ge.defaultColorSet,ge.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new he("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new je("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return De(ue,ye),ue.prototype.ownsTarget=function(le){return!(!ye.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.selectorLine&&le!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ke.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)},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ue.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()),ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.adjustVisual(),this.colorChanged(le)},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ye.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){ye.prototype.restoreState.call(this,le);var de=le;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ue}(Ue),Le=function(ye){function ue(le,de,ge,se){var Oe=ye.call(this,le,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 Oe.fonts=[],Oe.fontBoxes=[],Oe.fonts=de,Oe.currentFont=ge,Oe.setCurrentFont=Oe.setCurrentFont.bind(Oe),Oe}return De(ue,ye),ue.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.flexGrow="2",this.fonts.forEach(function(ge){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/le.fonts.length-5+"%",se.style.borderColor=ge===le.currentFont?le.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){le.setCurrentFont(ge,se)}),de.appendChild(se);var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.fontFamily=ge,Oe.style.overflow="hidden";var ut=document.createElement("div");ut.style.whiteSpace="nowrap",ut.style.overflow="hidden",ut.style.textOverflow="ellipsis",ut.innerHTML="The quick brown fox jumps over the lazy dog",Oe.appendChild(ut),se.appendChild(Oe),le.fontBoxes.push(se)}),de},ue.prototype.setCurrentFont=function(le,de){var ge=this;this.currentFont=le,this.fontBoxes.forEach(function(se){se.style.borderColor=se===de?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(Je),Bt=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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=ge.defaultColor,se.fontFamily=ge.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 tt("Color",ge.defaultColorSet,ge.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Le("Font",ge.defaultFontFamilies,ge.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return De(ue,ye),ue.prototype.ownsTarget=function(le){if(ye.prototype.ownsTarget.call(this,le)||le===this.visual||le===this.textElement||le===this.bgRectangle)return!0;var de=!1;return this.textElement.childNodes.forEach(function(ge){ge===le&&(de=!0)}),de},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.bgRectangle=ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.isMoved=!1,this.pointerDownPoint=le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ue.prototype.renderText=function(){var le=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(de){le.textElement.appendChild(ke.createTSpan(de.trim()===""?" ":de.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var le=this.textElement.getBBox(),de=1;if(le.width>0&&le.height>0){var ge=(1*this.width-this.width*this.padding*2/100)/le.width,se=(1*this.height-this.height*this.padding*2/100)/le.height;de=Math.min(ge,se)}return de},ue.prototype.getTextPosition=function(le){var de=this.textElement.getBBox(),ge=0,se=0;return de.width>0&&de.height>0&&(ge=(this.width-de.width*le)/2,se=this.height/2-de.height*le/2),{x:ge,y:se}},ue.prototype.sizeText=function(){var le=this.textElement.getBBox(),de=this.getTextScale(),ge=this.getTextPosition(de);ge.y-=le.y*de,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ge.x+"px, "+ge.y+"px) scale("+de+", "+de+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ge.x,ge.y),this.textElement.transform.baseVal.getItem(1).setScale(de,de))},ue.prototype.manipulate=function(le){ye.prototype.manipulate.call(this,le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(le.x-this.pointerDownPoint.x)>5||Math.abs(le.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(le){ye.prototype.resize.call(this,le),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(le){var de=this.state;de==="creating"&&(this._suppressMarkerCreateEvent=!0),ye.prototype.pointerUp.call(this,le),this.setSize(),(de==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var le=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(de){de.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var de=Number.parseFloat(le.textEditor.style.fontSize);le.textEditor.clientWidth>=Number.parseInt(le.textEditor.style.maxWidth)&&de>.9;)de-=.1,le.textEditor.style.fontSize=Math.max(de,.9)+"em"}),this.textEditor.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(de){if(de.clipboardData){var ge=de.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(ge)),de.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){le.textEditDivClicked(le.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var le=this.getTextScale(),de=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ge=this.textElement.getBBox(),se={x:ge.width*le,y:ge.height*le};de.x-=se.x/2,de.y-=se.y/2,this.textEditor.style.top=de.y+"px",this.textEditor.style.left=de.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-de.x+"px",this.textEditor.style.fontSize=Math.max(16*le,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(le){this.text=le.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){ye.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ye.prototype.deselect.call(this)},ue.prototype.dblClick=function(le,de){ye.prototype.dblClick.call(this,le,de),this.showTextEditor()},ue.prototype.setColor=function(le){this.textElement&&ke.setAttributes(this.textElement,[["fill",le]]),this.color=le,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(le)},ue.prototype.setFont=function(le){this.textElement&&ke.setAttributes(this.textElement,[["font-family",le]]),this.fontFamily=le,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ye.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){var de=le;this.color=de.color,this.fontFamily=de.fontFamily,this.padding=de.padding,this.text=de.text,this.createVisual(),ye.prototype.restoreState.call(this,le),this.setSize()},ue.prototype.scale=function(le,de){ye.prototype.scale.call(this,le,de),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.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>',ue}(st),at=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=ge.defaultColor,se.lineWidth=ge.defaultStrokeWidth,se.pixelRatio=ge.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 tt("Color",ge.defaultColorSet,ge.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new he("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return De(ue,ye),ue.prototype.ownsTarget=function(le){return!(!ye.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.drawingImage=ke.createImage(),this.visual.appendChild(this.drawingImage);var le=ke.createTransform();this.visual.transform.baseVal.appendItem(le),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(le,de){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(le.x,le.y),this.drawing=!0):ye.prototype.pointerDown.call(this,le,de)},ue.prototype.manipulate=function(le){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(le.x,le.y),this.canvasContext.stroke()):ye.prototype.manipulate.call(this,le)},ue.prototype.resize=function(le){ye.prototype.resize.call(this,le),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(le){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ye.prototype.pointerUp.call(this,le)},ue.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)},ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ye.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ye.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var le=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),de=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ge=de[0],se=de[1],Oe=de[2],ut=de[3],Ge=!1,_e=0;_e<this.canvasElement.height;_e++)for(var St=0;St<this.canvasElement.width;St++)le.data[_e*this.canvasElement.width*4+4*St+3]>0&&(Ge=!0,_e<se&&(se=_e),St<ge&&(ge=St),_e>ut&&(ut=_e),St>Oe&&(Oe=St));if(Ge){this.left=ge/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(Oe-ge)/this.pixelRatio,this.height=(ut-se)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=Oe-ge,bt.height=ut-se,bt.getContext("2d").putImageData(this.canvasContext.getImageData(ge,se,Oe-ge,ut-se),0,0),this.drawingImgUrl=bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.prototype.setDrawingImage=function(){ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(le){this.color=le,this.colorChanged(le)},ue.prototype.setLineWidth=function(le){this.lineWidth=le},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({drawingImgUrl:this.drawingImgUrl},ye.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){this.createVisual(),ye.prototype.restoreState.call(this,le),this.drawingImgUrl=le.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(le,de){ye.prototype.scale.call(this,le,de),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.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>',ue}(st),Wt=function(ye){function ue(le,de,ge){var se=ye.call(this,le,ge||'<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=de,se.setCurrentType=se.setCurrentType.bind(se),se}return De(ue,ye),ue.prototype.getUi=function(){var le=this,de=document.createElement("div");de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2";for(var ge=function(ut){var Ge="both";switch(ut){case 0:Ge="both";break;case 1:Ge="start";break;case 2:Ge="end";break;case 3:Ge="none"}var _e=document.createElement("div");if(_e.style.display="flex",_e.style.flexGrow="2",_e.style.alignItems="center",_e.style.justifyContent="space-between",_e.style.padding="5px",_e.style.borderWidth="2px",_e.style.borderStyle="solid",_e.style.borderColor=Ge===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",_e.addEventListener("click",function(){le.setCurrentType(Ge,_e)}),de.appendChild(_e),Ge==="both"||Ge==="start"){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.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>`,St.style.marginLeft="5px",_e.appendChild(St)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var rt=document.createElement("hr");if(rt.style.minWidth="20px",rt.style.border="0px",rt.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),rt.style.flexGrow="2",bt.appendChild(rt),_e.appendChild(bt),Ge==="both"||Ge==="end"){var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.alignItems="center",Dt.style.minHeight="20px",Dt.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>`,Dt.style.marginRight="5px",_e.appendChild(Dt)}se.typeBoxes.push(_e)},se=this,Oe=0;Oe<4;Oe++)ge(Oe);return de},ue.prototype.setCurrentType=function(le,de){var ge=this;this.currentType=le,this.typeBoxes.forEach(function(se){se.style.borderColor=se===de?ge.uiStyleSettings!==void 0?ge.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(Je),Lt=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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 Wt("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return De(ue,ye),ue.prototype.ownsTarget=function(le){return!(!ye.prototype.ownsTarget.call(this,le)&&le!==this.arrow1&&le!==this.arrow2)},ue.prototype.getArrowPoints=function(le,de){var ge=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return le-ge/2+","+(de+se/2)+" "+le+","+(de-se/2)+" "+(le+ge/2)+","+(de+se/2)},ue.prototype.createTips=function(){this.arrow1=ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ye.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",ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ke.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var le=0;Math.abs(this.x1-this.x2)>.1&&(le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var de=this.arrow1.transform.baseVal.getItem(0);de.setRotate(le,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(de,0);var ge=this.arrow2.transform.baseVal.getItem(0);ge.setRotate(le+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ge,0)}},ue.prototype.setArrowType=function(le){this.arrowType=le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({arrowType:this.arrowType},ye.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){ye.prototype.restoreState.call(this,le);var de=le;this.arrowType=de.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ue}(mt),Tt=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||this;return se.fillColor=ge.defaultFillColor,se.strokeWidth=0,se.fillPanel=new tt("Color",ge.defaultColorSet,ge.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return De(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=ye.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ue}(ze),Xt=function(ye){function ue(le,de,ge,se){var Oe=ye.call(this,le,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 Oe.opacities=[],Oe.opacityBoxes=[],Oe.opacities=de,Oe.currentOpacity=ge,Oe.setCurrentOpacity=Oe.setCurrentOpacity.bind(Oe),Oe}return De(ue,ye),ue.prototype.getUi=function(){var le=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",de.style.justifyContent="space-between",this.opacities.forEach(function(ge){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=ge===le.currentOpacity?le.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){le.setCurrentOpacity(ge,se)}),de.appendChild(se);var Oe=document.createElement("div");Oe.innerText=100*ge+"%",se.appendChild(Oe),le.opacityBoxes.push(se)}),de},ue.prototype.setCurrentOpacity=function(le,de){var ge=this;this.currentOpacity=le,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===de?ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(Je),jt=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=ge.defaultHighlightColor,se.strokeWidth=0,se.opacity=ge.defaultHighlightOpacity,se.fillPanel=new tt("Color",ge.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new Xt("Opacity",ge.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return De(ue,ye),ue.prototype.setOpacity=function(le){this.opacity=le,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=ye.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.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>',ue}(Tt),it='<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>',Ce='<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>',Et=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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=ge.defaultStrokeColor,se.bgColor=ge.defaultFillColor,se.fontFamily=ge.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 tt("Text color",ge.defaultColorSet,se.color,it),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new tt("Fill color",ge.defaultColorSet,se.bgColor,Ce),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Le("Font",ge.defaultFontFamilies,ge.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new It,se.tipGrip.visual.transform.baseVal.appendItem(ke.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return De(ue,ye),ue.prototype.ownsTarget=function(le){return ye.prototype.ownsTarget.call(this,le)||this.tipGrip.ownsTarget(le)||this.tip===le},ue.prototype.createTip=function(){ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ke.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(le,de){this.state==="new"&&ye.prototype.pointerDown.call(this,le,de),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(de)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ye.prototype.pointerDown.call(this,le,de)},ue.prototype.pointerUp=function(le){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ye.prototype.pointerUp.call(this,le);else{var de=this.state==="creating";ye.prototype.pointerUp.call(this,le),this.setTipPoints(de),this.positionTip()}},ue.prototype.manipulate=function(le){if(this.tipMoving){var de=this.unrotatePoint(le);this.tipPosition={x:de.x-this.manipulationStartLeft,y:de.y-this.manipulationStartTop},this.positionTip()}else ye.prototype.manipulate.call(this,le)},ue.prototype.setBgColor=function(le){this.bgRectangle&&this.tip&&(ke.setAttributes(this.bgRectangle,[["fill",le]]),ke.setAttributes(this.tip,[["fill",le]])),this.bgColor=le,this.fillColorChanged(le)},ue.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},ue.prototype.setTipPoints=function(le){le===void 0&&(le=!1);var de=Math.min(this.height/2,15),ge=this.height/5;le&&(this.tipPosition={x:de+ge/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))?(ge=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:0},this.tipBase2Position={x:de+ge,y:0}):(this.tipBase1Position={x:0,y:de},this.tipBase2Position={x:0,y:de+ge}):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))?(ge=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-ge,y:0},this.tipBase2Position={x:this.width-de,y:0}):(this.tipBase1Position={x:this.width,y:de},this.tipBase2Position={x:this.width,y:de+ge}):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))?(ge=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-ge,y:this.height},this.tipBase2Position={x:this.width-de,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-de-ge},this.tipBase2Position={x:this.width,y:this.height-de}):se<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ge=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:this.height},this.tipBase2Position={x:de+ge,y:this.height}):(this.tipBase1Position={x:0,y:this.height-de},this.tipBase2Position={x:0,y:this.height-de-ge})},ue.prototype.resize=function(le){ye.prototype.resize.call(this,le),this.positionTip()},ue.prototype.positionTip=function(){ke.setAttributes(this.tip,[["points",this.getTipPoints()]]);var le=this.tipGrip.visual.transform.baseVal.getItem(0);le.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(le,0)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.positionTip(),ye.prototype.select.call(this)},ue.prototype.getState=function(){var le=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ye.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){var de=le;this.bgColor=de.bgColor,this.tipPosition=de.tipPosition,ye.prototype.restoreState.call(this,le),this.createTip(),this.setTipPoints()},ue.prototype.scale=function(le,de){ye.prototype.scale.call(this,le,de),this.tipPosition={x:this.tipPosition.x*le,y:this.tipPosition.y*de},this.positionTip()},ue.typeName="CalloutMarker",ue.title="Callout marker",ue.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>',ue}(Bt),on=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.strokeColor=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.fillColor=ge.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 tt("Line color",be(ge.defaultColorSet,["transparent"]),ge.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new tt("Fill color",be(ge.defaultColorSet,["transparent"]),se.fillColor,Ce),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new he("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new je("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.opacityPanel=new Xt("Opacity",ge.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return De(ue,ye),ue.prototype.ownsTarget=function(le){return!(!ye.prototype.ownsTarget.call(this,le)&&le!==this.visual)},ue.prototype.createVisual=function(){this.visual=ke.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)},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ue.prototype.manipulate=function(le){ye.prototype.manipulate.call(this,le)},ue.prototype.resize=function(le){ye.prototype.resize.call(this,le),this.setSize()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),ke.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ue.prototype.pointerUp=function(le){ye.prototype.pointerUp.call(this,le),this.setSize()},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},ue.prototype.setFillColor=function(le){this.fillColor=le,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(le),this.stateChanged()},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.setOpacity=function(le){this.opacity=le,this.visual&&ke.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ye.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){var de=le;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),ye.prototype.restoreState.call(this,le),this.setSize()},ue.prototype.scale=function(le,de){ye.prototype.scale.call(this,le,de),this.setSize()},ue.typeName="EllipseMarker",ue.title="Ellipse marker",ue.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>',ue}(st),Yt=function(ye){function ue(le,de,ge){return ye.call(this,le,de,ge)||this}return De(ue,ye),Object.defineProperty(ue.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(le){return!(!ye.prototype.ownsTarget.call(this,le)&&le!==this.tip1&&le!==this.tip2)},ue.prototype.createTips=function(){this.tip1=ke.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(ke.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ke.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(ke.createTransform()),this.visual.appendChild(this.tip2)},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ye.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ke.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()]]),ke.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 le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),de=this.tip1.transform.baseVal.getItem(0);de.setRotate(le,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(de,0);var ge=this.tip2.transform.baseVal.getItem(0);ge.setRotate(le+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ge,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=ye.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){ye.prototype.restoreState.call(this,le),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.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>',ue}(mt),lt=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||this;return se.strokePanel.colors=ge.defaultColorSet,se.fillColor="transparent",se}return De(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=ye.prototype.getState.call(this);return le.typeName=ue.typeName,le},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.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>',ue}(on),pt=function(){function ye(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ye.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ye.prototype.addUndoStep=function(ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ue)||(this.undoStack.push(ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ue)&&this.redoStack.splice(0,this.redoStack.length))},ye.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},ye.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ye.prototype.undo=function(){if(this.undoStack.length>1){var ue=this.undoStack.pop();return ue!==void 0&&this.redoStack.push(ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ye.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ye}(),Ft=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.strokePanel=new tt("Line color",ge.defaultColorSet,ge.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new he("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new je("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return De(ue,ye),ue.prototype.ownsTarget=function(le){return!(!ye.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.selectorCurve&&le!==this.visibleCurve&&!this.curveGrip.ownsTarget(le))},ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorCurve=ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ke.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)},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=le.x,this.curveY=le.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(de)&&(this.activeGrip=this.curveGrip,this._state="resize")},ue.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){ye.prototype.setupControlBox.call(this),this.curveControlLine1=ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ke.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)},ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ye.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){ye.prototype.positionGrips.call(this);var le=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-le/2,this.curveY-le/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()))},ue.prototype.manipulate=function(le){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+le.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+le.y-this.manipulationStartY),ye.prototype.manipulate.call(this,le)},ue.prototype.resize=function(le){this.activeGrip===this.curveGrip&&(this.curveX=le.x,this.curveY=le.y),ye.prototype.resize.call(this,le),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.adjustVisual(),this.colorChanged(le)},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.adjustVisual()},ue.prototype.scale=function(le,de){this.curveX=this.curveX*le,this.curveY=this.curveY*de,ye.prototype.scale.call(this,le,de)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ye.prototype.getState.call(this));return le.typeName=ue.typeName,le},ue.prototype.restoreState=function(le){ye.prototype.restoreState.call(this,le);var de=le;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.curveX=de.curveX,this.curveY=de.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.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>',ue}(Ue),Sn=function(ye){function ue(le,de,ge){var se=ye.call(this,le,de,ge)||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=ge.defaultColor,se.strokeWidth=ge.defaultStrokeWidth,se.strokeDasharray=ge.defaultStrokeDasharray,se.fillColor=ge.defaultFillColor,se.textColor=ge.defaultStrokeColor,se.fontFamily=ge.defaultFontFamily,se.fontSize=ge.defaultCaptionFontSize,se.captionText=ge.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 tt("Line color",be(ge.defaultColorSet,["transparent"]),se.strokeColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new tt("Fill color",be(ge.defaultColorSet,["transparent"]),se.fillColor,Ce),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new he("Line width",ge.defaultStrokeWidths,ge.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new je("Line style",ge.defaultStrokeDasharrays,ge.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.fontFamilyPanel=new Le("Font",ge.defaultFontFamilies,ge.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.textColorPanel=new tt("Text color",ge.defaultColorSet,se.textColor,it),se.textColorPanel.onColorChanged=se.setTextColor,se}return De(ue,ye),ue.prototype.ownsTarget=function(le){return!(!ye.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.frame&&le!==this.captionBg&&le!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ke.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=ke.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()},ue.prototype.setCaptionText=function(le){this.captionText=le,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(le,de){ye.prototype.pointerDown.call(this,le,de),this.isMoved=!1,this.pointerDownPoint=le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},ue.prototype.manipulate=function(le){ye.prototype.manipulate.call(this,le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(le.x-this.pointerDownPoint.x)>5||Math.abs(le.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(le){ye.prototype.resize.call(this,le),this.setSize()},ue.prototype.sizeCaption=function(){var le=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=le.width+2*this.PADDING,this.captionBoxHeight=le.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ke.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')"]]),ke.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')"]])},ue.prototype.showTextEditor=function(){var le=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(de){de.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(de){de.key==="Enter"&&le.finishTextEditing(le.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){le.finishTextEditing(le.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){le.finishTextEditing(le.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ue.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"))},ue.prototype.finishTextEditing=function(le){this.setCaptionText(le.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(le){this.captionElement&&ke.setAttributes(this.captionElement,[["font-family",le]]),this.fontFamily=le,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(le){this.captionElement&&ke.setAttributes(this.captionElement,[["fill",le]]),this.textColor=le,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),ke.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(le){ye.prototype.pointerUp.call(this,le),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(le,de){ye.prototype.dblClick.call(this,le,de),this.showTextEditor()},ue.prototype.setStrokeColor=function(le){this.strokeColor=le,this.frame&&ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},ue.prototype.setFillColor=function(le){this.fillColor=le,this.captionBg&&ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(le),this.stateChanged()},ue.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.frame&&ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.frame&&ke.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var le=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},ye.prototype.getState.call(this));return le.typeName=this.typeName,le},ue.prototype.restoreState=function(le){var de=le;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.textColor=de.textColor,this.fontFamily=de.fontFamily,this.captionText=de.captionText,this.fontSize=de.fontSize,this.createVisual(),ye.prototype.restoreState.call(this,le),this.setSize()},ue.prototype.scale=function(le,de){ye.prototype.scale.call(this,le,de),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.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>',ue}(st),$t=function(){function ye(ue,le){le===void 0&&(le=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=le}return Object.defineProperty(ye.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ye.prototype.preventDefault=function(){this._defaultPrevented=!0},ye}(),Pn=function(ye){function ue(le,de,ge){var se=ye.call(this,le,!1)||this;return se.dataUrl=de,se.state=ge,se}return De(ue,ye),ue}($t),Zt=function(ye){function ue(le,de,ge){ge===void 0&&(ge=!1);var se=ye.call(this,le,ge)||this;return se.marker=de,se}return De(ue,ye),ue}($t),an=function(){function ye(){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 ye.prototype.addEventListener=function(ue,le){this[ue].push(le)},ye.prototype.removeEventListener=function(ue,le){var de=this[ue].indexOf(le);de>-1&&this[ue].splice(de,1)},ye}(),Ht=function(){function ye(ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Qe,this._isOpen=!1,this.undoRedoManager=new pt,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 an,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ye.instanceCounter++,this.styles=new Ke(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ue,this.targetRoot=document.body,this.width=ue.clientWidth,this.height=ue.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(ye.prototype,"ALL_MARKER_TYPES",{get:function(){return[Xe,at,Lt,Bt,lt,on,jt,Et,Yt,Tt,mt,Ft,Sn]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Xe,at,Lt,Bt,on,jt,Et]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Xe,at,Lt,Bt,jt]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var le=this;this._availableMarkerTypes.splice(0),ue.forEach(function(de){if(typeof de=="string"){var ge=le.ALL_MARKER_TYPES.find(function(se){return se.typeName===de});ge!==void 0&&le._availableMarkerTypes.push(ge)}else le._availableMarkerTypes.push(de)})},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ue){this._zoomLevel=ue,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(ye.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ye.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),pe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ye.prototype.show=function(){var ue=this;this.styles.styleSheetRoot===void 0&&Me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(le){return le(new $t(ue))})},ye.prototype.render=function(){return Te(this,void 0,void 0,function(){var ue;return dt(this,function(le){switch(le.label){case 0:return this.setCurrentMarker(),(ue=new xe).naturalSize=this.renderAtNaturalSize,ue.imageType=this.renderImageType,ue.imageQuality=this.renderImageQuality,ue.markersOnly=this.renderMarkersOnly,ue.width=this.renderWidth,ue.height=this.renderHeight,[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return le.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,le.sent()]}})})},ye.prototype.close=function(ue){var le=this;if(ue===void 0&&(ue=!1),this.isOpen){var de=!1;ue||this.eventListeners.beforeclose.forEach(function(ge){var se=new $t(le,!0);ge(se),se.defaultPrevented&&(de=!0)}),de||(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(ge){return ge(new $t(le))}),this.detachEvents(),this._isOpen=!1)}},ye.prototype.addMarkersToToolbar=function(){for(var ue,le=[],de=0;de<arguments.length;de++)le[de]=arguments[de];(ue=this._availableMarkerTypes).push.apply(ue,le)},ye.prototype.addRenderEventListener=function(ue){this.addEventListener("render",function(le){ue(le.dataUrl,le.state)})},ye.prototype.removeRenderEventListener=function(ue){},ye.prototype.addCloseEventListener=function(ue){this.addEventListener("close",function(){ue()})},ye.prototype.removeCloseEventListener=function(ue){},ye.prototype.setupResizeObserver=function(){var ue=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ue.resize(ue.target.clientWidth,ue.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ue.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ye.prototype.onPopupTargetResize=function(){var ue=1*this.target.clientWidth/this.target.clientHeight,le=this.editorCanvas.clientWidth/ue>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,de=le<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ue;this.resize(le,de)},ye.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ye.prototype.resize=function(ue,le){this._isResizing=!0;var de=ue/this.imageWidth,ge=le/this.imageHeight;this.imageWidth=Math.round(ue),this.imageHeight=Math.round(le),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(de,ge),this._isResizing=!1},ye.prototype.scaleMarkers=function(ue,le){var de,ge=this;this._currentMarker&&this._currentMarker instanceof Bt?this._currentMarker.scale(ue,le):(de=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(se){se!==ge._currentMarker&&se.scale(ue,le)}),de!==void 0&&this.setCurrentMarker(de)},ye.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"},ye.prototype.setTopLeft=function(){var ue=this.editingTarget.getBoundingClientRect(),le=this.editorCanvas.getBoundingClientRect();this.left=ue.left-le.left,this.top=ue.top-le.top},ye.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)},ye.prototype.addDefs=function(){for(var ue,le=[],de=0;de<arguments.length;de++)le[de]=arguments[de];this.defs=ke.createDefs(),this.addDefsToImage(),(ue=this.defs).append.apply(ue,le)},ye.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ye.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)},ye.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ye.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ye.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)},ye.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ye.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)},ye.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 ue=document.createElement("a");ue.href="https://markerjs.com/",ue.target="_blank",ue.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>',ue.title="Powered by marker.js",ue.style.display="grid",ue.style.alignItems="center",ue.style.justifyItems="center",ue.style.padding="3px",ue.style.width="20px",ue.style.height="20px",this.logoUI.appendChild(ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ye.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")},ye.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"},ye.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ye.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 ue=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=ue+"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 Be(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 et(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ye.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ye.prototype.removeMarker=function(ue){this.markerImage.removeChild(ue.container),this.markers.indexOf(ue)>-1&&this.markers.splice(this.markers.indexOf(ue),1),ue.dispose()},ye.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())},ye.prototype.toolbarButtonClicked=function(ue,le){if(ue==="marker"&&le!==void 0)this.createNewMarker(le);else if(ue==="action")switch(le){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()}},ye.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var le=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ge){var se=new Zt(ue,ue._currentMarker,!0);ge(se),se.defaultPrevented&&(le=!0)}),!le){var de=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(ge){return ge(new Zt(ue,de))})}}},ye.prototype.clear=function(){var ue=this,le=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Oe){var ut=new Zt(ue,void 0,!0);Oe(ut),ut.defaultPrevented&&(le=!0)}),!le)){this.setCurrentMarker();for(var de=function(Oe){var ut=ge.markers[Oe];ge.setCurrentMarker(ge.markers[Oe]),ge._currentMarker.dispose(),ge.markerImage.removeChild(ge._currentMarker.container),ge.markers.splice(ge.markers.indexOf(ge._currentMarker),1),ge.eventListeners.markerdelete.forEach(function(Ge){return Ge(new Zt(ue,ut))})},ge=this,se=this.markers.length-1;se>=0;se--)de(se);this.addUndoStep()}},Object.defineProperty(ye.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ye.prototype.showNotesEditor=function(){var ue;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=(ue=this._currentMarker.notes)!==null&&ue!==void 0?ue:"",this.overlayContainer.appendChild(this.notesArea))},ye.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)},ye.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ye.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var le=this.getState(),de=this.undoRedoManager.getLastUndoStep();if(!de||de.width===le.width&&de.height===le.height){var ge=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(le),ge<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(se){return se(new $t(ue))})}else this.undoRedoManager.replaceLastUndoStep(le),this.eventListeners.statechange.forEach(function(se){return se(new $t(ue))})}},ye.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ye.prototype.undoStep=function(){var ue=this,le=this.undoRedoManager.undo();le!==void 0&&(this.restoreState(le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new $t(ue))}))},ye.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ye.prototype.redoStep=function(){var ue=this,le=this.undoRedoManager.redo();le!==void 0&&(this.restoreState(le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new $t(ue))}))},ye.prototype.stepZoom=function(){var ue=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ue<this.zoomSteps.length-1?this.zoomSteps[ue+1]:this.zoomSteps[0]},ye.prototype.panTo=function(ue){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ue.x,top:this.prevPanPoint.y-ue.y}),this.prevPanPoint=ue},ye.prototype.startRenderAndClose=function(){return Te(this,void 0,void 0,function(){var ue,le,de=this;return dt(this,function(ge){switch(ge.label){case 0:return[4,this.render()];case 1:return ue=ge.sent(),le=this.getState(),this.eventListeners.render.forEach(function(se){return se(new Pn(de,ue,le))}),this.close(!0),[2]}})})},ye.prototype.getState=function(ue){ue===!0&&this.setCurrentMarker();var le={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(de){return le.markers.push(de.getState())}),le},ye.prototype.restoreState=function(ue){var le=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ue.markers.forEach(function(de){var ge=le._availableMarkerTypes.find(function(Oe){return Oe.typeName===de.typeName});if(ge!==void 0){var se=le.addNewMarker(ge);se.restoreState(de),le.markers.push(se)}}),ue.width&&ue.height&&(ue.width!==this.imageWidth||ue.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ue.width,this.imageHeight/ue.height),this.eventListeners.restorestate.forEach(function(de){return de(new $t(le))})},ye.prototype.addNewMarker=function(ue){var le=ke.createGroup();return this.markerImage.appendChild(le),new ue(le,this.overlayContainer,this.settings)},ye.prototype.createNewMarker=function(ue){var le,de=this;(le=typeof ue=="string"?this._availableMarkerTypes.find(function(ge){return ge.typeName===ue}):ue)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(le),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(le.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ge){return ge(new Zt(de,de._currentMarker))}))},ye.prototype.markerCreated=function(ue){var le=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ue),this.setCurrentMarker(ue),ue instanceof at&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(at):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(de){return de(new Zt(le,le._currentMarker))})},ye.prototype.colorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ue,this.settings.defaultStrokeColor=ue)},ye.prototype.fillColorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ue)},ye.prototype.markerStateChanged=function(ue){var le=this;this.eventListeners.markerchange.forEach(function(de){return de(new Zt(le,ue))})},ye.prototype.setCurrentMarker=function(ue){var le=this;this._currentMarker!==ue&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(de){return de(new Zt(le,le._currentMarker))})),this._currentMarker=ue,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(de){return de(new Zt(le,le._currentMarker))}))},ye.prototype.onPointerDown=function(ue){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ue.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var le=this.markers.find(function(de){return de.ownsTarget(ue.target)});le!==void 0?(this.setCurrentMarker(le),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ue.clientX,y:ue.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY))},ye.prototype.onDblClick=function(ue){if(this._isFocused||this.focus(),this.mode==="select"){var le=this.markers.find(function(de){return de.ownsTarget(ue.target)});le!==void 0&&le!==this._currentMarker&&this.setCurrentMarker(le),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target):this.setCurrentMarker()}},ye.prototype.onPointerMove=function(ue){this.touchPoints!==1&&ue.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ue.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ue.clientX,ue.clientY)):this.zoomLevel>1&&this.panTo({x:ue.clientX,y:ue.clientY}))},ye.prototype.onPointerUp=function(ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ue.clientX,ue.clientY)),this.isDragging=!1,this.addUndoStep()},ye.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ye.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},ye.prototype.clientToLocalCoordinates=function(ue,le){var de=this.markerImage.getBoundingClientRect();return{x:(ue-de.left)/this.zoomLevel,y:(le-de.top)/this.zoomLevel}},ye.prototype.onWindowResize=function(){this.positionUI()},ye.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"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()},ye.prototype.addLicenseKey=function(ue){pe.addKey(ue)},ye.prototype.addEventListener=function(ue,le){this.eventListeners.addEventListener(ue,le)},ye.prototype.removeEventListener=function(ue,le){this.eventListeners.removeEventListener(ue,le)},ye.prototype.renderState=function(ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ye.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ye.prototype.focus=function(){var ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(le){return le(new $t(ue))}))},ye.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(le){return le(new $t(ue))}))},ye.instanceCounter=0,ye}()},5630:function(zn,en,ae){"use strict";var ce=ae(60499),De=ae(85899),Te=ae(18642),dt=ae(72190),be=ae(42244),ke=ae(92310),pe=ae.n(ke),xe=ae(18929),Me=ae(59301),Ke=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],vt=(0,Me.forwardRef)(function(Pe,Be){var et,Je=Pe.prefixCls,tt=Je===void 0?"rc-checkbox":Je,yt=Pe.className,wt=Pe.style,It=Pe.checked,gt=Pe.disabled,st=Pe.defaultChecked,ze=st===void 0?!1:st,he=Pe.type,je=he===void 0?"checkbox":he,Xe=Pe.title,Qe=Pe.onChange,Ue=(0,be.Z)(Pe,Ke),mt=(0,Me.useRef)(null),Le=(0,xe.Z)(ze,{value:It}),Bt=(0,dt.Z)(Le,2),at=Bt[0],Wt=Bt[1];(0,Me.useImperativeHandle)(Be,function(){return{focus:function(){var jt;(jt=mt.current)===null||jt===void 0||jt.focus()},blur:function(){var jt;(jt=mt.current)===null||jt===void 0||jt.blur()},input:mt.current}});var Lt=pe()(tt,yt,(et={},(0,Te.Z)(et,"".concat(tt,"-checked"),at),(0,Te.Z)(et,"".concat(tt,"-disabled"),gt),et)),Tt=function(jt){gt||("checked"in Pe||Wt(jt.target.checked),Qe==null||Qe({target:(0,De.Z)((0,De.Z)({},Pe),{},{type:je,checked:jt.target.checked}),stopPropagation:function(){jt.stopPropagation()},preventDefault:function(){jt.preventDefault()},nativeEvent:jt.nativeEvent}))};return Me.createElement("span",{className:Lt,title:Xe,style:wt},Me.createElement("input",(0,ce.Z)({},Ue,{className:"".concat(tt,"-input"),ref:mt,onChange:Tt,disabled:gt,checked:!!at,type:je})),Me.createElement("span",{className:"".concat(tt,"-inner")}))});en.Z=vt},31561:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return je}});var ce=ae(60499),De=ae(18642),Te=ae(72190),dt=ae(42244),be=ae(35593),ke=ae(92310),pe=ae.n(ke),xe=ae(8654),Me=ae(59301),Ke=ae(10228),vt=ae(16089),Pe=Ke.Z.ESC,Be=Ke.Z.TAB;function et(Xe){var Qe=Xe.visible,Ue=Xe.triggerRef,mt=Xe.onVisibleChange,Le=Xe.autoFocus,Bt=Xe.overlayRef,at=Me.useRef(!1),Wt=function(){if(Qe){var jt,it;(jt=Ue.current)===null||jt===void 0||(it=jt.focus)===null||it===void 0||it.call(jt),mt==null||mt(!1)}},Lt=function(){var jt;return(jt=Bt.current)!==null&&jt!==void 0&&jt.focus?(Bt.current.focus(),at.current=!0,!0):!1},Tt=function(jt){switch(jt.keyCode){case Pe:Wt();break;case Be:{var it=!1;at.current||(it=Lt()),it?jt.preventDefault():Wt();break}}};Me.useEffect(function(){return Qe?(window.addEventListener("keydown",Tt),Le&&(0,vt.Z)(Lt,3),function(){window.removeEventListener("keydown",Tt),at.current=!1}):function(){at.current=!1}},[Qe])}var Je=(0,Me.forwardRef)(function(Xe,Qe){var Ue=Xe.overlay,mt=Xe.arrow,Le=Xe.prefixCls,Bt=(0,Me.useMemo)(function(){var Wt;return typeof Ue=="function"?Wt=Ue():Wt=Ue,Wt},[Ue]),at=(0,xe.sQ)(Qe,Bt==null?void 0:Bt.ref);return Me.createElement(Me.Fragment,null,mt&&Me.createElement("div",{className:"".concat(Le,"-arrow")}),Me.cloneElement(Bt,{ref:(0,xe.Yr)(Bt)?at:void 0}))}),tt=Je,yt={adjustX:1,adjustY:1},wt=[0,0],It={topLeft:{points:["bl","tl"],overflow:yt,offset:[0,-4],targetOffset:wt},top:{points:["bc","tc"],overflow:yt,offset:[0,-4],targetOffset:wt},topRight:{points:["br","tr"],overflow:yt,offset:[0,-4],targetOffset:wt},bottomLeft:{points:["tl","bl"],overflow:yt,offset:[0,4],targetOffset:wt},bottom:{points:["tc","bc"],overflow:yt,offset:[0,4],targetOffset:wt},bottomRight:{points:["tr","br"],overflow:yt,offset:[0,4],targetOffset:wt}},gt=It,st=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ze(Xe,Qe){var Ue,mt=Xe.arrow,Le=mt===void 0?!1:mt,Bt=Xe.prefixCls,at=Bt===void 0?"rc-dropdown":Bt,Wt=Xe.transitionName,Lt=Xe.animation,Tt=Xe.align,Xt=Xe.placement,jt=Xt===void 0?"bottomLeft":Xt,it=Xe.placements,Ce=it===void 0?gt:it,Et=Xe.getPopupContainer,on=Xe.showAction,Yt=Xe.hideAction,lt=Xe.overlayClassName,pt=Xe.overlayStyle,Ft=Xe.visible,Sn=Xe.trigger,$t=Sn===void 0?["hover"]:Sn,Pn=Xe.autoFocus,Zt=Xe.overlay,an=Xe.children,Ht=Xe.onVisibleChange,ye=(0,dt.Z)(Xe,st),ue=Me.useState(),le=(0,Te.Z)(ue,2),de=le[0],ge=le[1],se="visible"in Xe?Ft:de,Oe=Me.useRef(null),ut=Me.useRef(null),Ge=Me.useRef(null);Me.useImperativeHandle(Qe,function(){return Oe.current});var _e=function(ct){ge(ct),Ht==null||Ht(ct)};et({visible:se,triggerRef:Ge,onVisibleChange:_e,autoFocus:Pn,overlayRef:ut});var St=function(ct){var Ae=Xe.onOverlayClick;ge(!1),Ae&&Ae(ct)},bt=function(){return Me.createElement(tt,{ref:ut,overlay:Zt,prefixCls:at,arrow:Le})},rt=function(){return typeof Zt=="function"?bt:bt()},Dt=function(){var ct=Xe.minOverlayWidthMatchTrigger,Ae=Xe.alignPoint;return"minOverlayWidthMatchTrigger"in Xe?ct:!Ae},xn=function(){var ct=Xe.openClassName;return ct!==void 0?ct:"".concat(at,"-open")},xt=Me.cloneElement(an,{className:pe()((Ue=an.props)===null||Ue===void 0?void 0:Ue.className,se&&xn()),ref:(0,xe.Yr)(an)?(0,xe.sQ)(Ge,an.ref):void 0}),Rt=Yt;return!Rt&&$t.indexOf("contextMenu")!==-1&&(Rt=["click"]),Me.createElement(be.Z,(0,ce.Z)({builtinPlacements:Ce},ye,{prefixCls:at,ref:Oe,popupClassName:pe()(lt,(0,De.Z)({},"".concat(at,"-show-arrow"),Le)),popupStyle:pt,action:$t,showAction:on,hideAction:Rt,popupPlacement:jt,popupAlign:Tt,popupTransitionName:Wt,popupAnimation:Lt,popupVisible:se,stretch:Dt()?"minWidth":"",popup:rt(),onPopupVisibleChange:_e,onPopupClick:St,getPopupContainer:Et}),xt)}var he=Me.forwardRef(ze),je=he},93681:function(zn,en,ae){"use strict";ae.r(en),ae.d(en,{BaseInput:function(){return Ke},default:function(){return It}});var ce=ae(60499),De=ae(85899),Te=ae(18642),dt=ae(43749),be=ae(92310),ke=ae.n(be),pe=ae(59301),xe=ae(5643),Me=function(st){var ze,he,je=st.inputElement,Xe=st.prefixCls,Qe=st.prefix,Ue=st.suffix,mt=st.addonBefore,Le=st.addonAfter,Bt=st.className,at=st.style,Wt=st.disabled,Lt=st.readOnly,Tt=st.focused,Xt=st.triggerFocus,jt=st.allowClear,it=st.value,Ce=st.handleReset,Et=st.hidden,on=st.classes,Yt=st.classNames,lt=st.dataAttrs,pt=st.styles,Ft=st.components,Sn=(Ft==null?void 0:Ft.affixWrapper)||"span",$t=(Ft==null?void 0:Ft.groupWrapper)||"span",Pn=(Ft==null?void 0:Ft.wrapper)||"span",Zt=(Ft==null?void 0:Ft.groupAddon)||"span",an=(0,pe.useRef)(null),Ht=function(bt){var rt;(rt=an.current)!==null&&rt!==void 0&&rt.contains(bt.target)&&(Xt==null||Xt())},ye=function(){var bt;if(!jt)return null;var rt=!Wt&&!Lt&&it,Dt="".concat(Xe,"-clear-icon"),xn=(0,dt.Z)(jt)==="object"&&jt!==null&&jt!==void 0&&jt.clearIcon?jt.clearIcon:"\u2716";return pe.createElement("span",{onClick:Ce,onMouseDown:function(Rt){return Rt.preventDefault()},className:ke()(Dt,(bt={},(0,Te.Z)(bt,"".concat(Dt,"-hidden"),!rt),(0,Te.Z)(bt,"".concat(Dt,"-has-suffix"),!!Ue),bt)),role:"button",tabIndex:-1},xn)},ue=(0,pe.cloneElement)(je,{value:it,hidden:Et,className:ke()((ze=je.props)===null||ze===void 0?void 0:ze.className,!(0,xe.X3)(st)&&!(0,xe.He)(st)&&Bt)||null,style:(0,De.Z)((0,De.Z)({},(he=je.props)===null||he===void 0?void 0:he.style),!(0,xe.X3)(st)&&!(0,xe.He)(st)?at:{})});if((0,xe.X3)(st)){var le,de="".concat(Xe,"-affix-wrapper"),ge=ke()(de,(le={},(0,Te.Z)(le,"".concat(de,"-disabled"),Wt),(0,Te.Z)(le,"".concat(de,"-focused"),Tt),(0,Te.Z)(le,"".concat(de,"-readonly"),Lt),(0,Te.Z)(le,"".concat(de,"-input-with-clear-btn"),Ue&&jt&&it),le),!(0,xe.He)(st)&&Bt,on==null?void 0:on.affixWrapper,Yt==null?void 0:Yt.affixWrapper),se=(Ue||jt)&&pe.createElement("span",{className:ke()("".concat(Xe,"-suffix"),Yt==null?void 0:Yt.suffix),style:pt==null?void 0:pt.suffix},ye(),Ue);ue=pe.createElement(Sn,(0,ce.Z)({className:ge,style:(0,De.Z)((0,De.Z)({},(0,xe.He)(st)?void 0:at),pt==null?void 0:pt.affixWrapper),hidden:!(0,xe.He)(st)&&Et,onClick:Ht},lt==null?void 0:lt.affixWrapper,{ref:an}),Qe&&pe.createElement("span",{className:ke()("".concat(Xe,"-prefix"),Yt==null?void 0:Yt.prefix),style:pt==null?void 0:pt.prefix},Qe),(0,pe.cloneElement)(je,{value:it,hidden:null}),se)}if((0,xe.He)(st)){var Oe="".concat(Xe,"-group"),ut="".concat(Oe,"-addon"),Ge=ke()("".concat(Xe,"-wrapper"),Oe,on==null?void 0:on.wrapper),_e=ke()("".concat(Xe,"-group-wrapper"),Bt,on==null?void 0:on.group);return pe.createElement($t,{className:_e,style:at,hidden:Et},pe.createElement(Pn,{className:Ge},mt&&pe.createElement(Zt,{className:ut},mt),(0,pe.cloneElement)(ue,{hidden:null}),Le&&pe.createElement(Zt,{className:ut},Le)))}return ue},Ke=Me,vt=ae(77654),Pe=ae(72190),Be=ae(42244),et=ae(18929),Je=ae(2738),tt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],yt=(0,pe.forwardRef)(function(gt,st){var ze=gt.autoComplete,he=gt.onChange,je=gt.onFocus,Xe=gt.onBlur,Qe=gt.onPressEnter,Ue=gt.onKeyDown,mt=gt.prefixCls,Le=mt===void 0?"rc-input":mt,Bt=gt.disabled,at=gt.htmlSize,Wt=gt.className,Lt=gt.maxLength,Tt=gt.suffix,Xt=gt.showCount,jt=gt.type,it=jt===void 0?"text":jt,Ce=gt.classes,Et=gt.classNames,on=gt.styles,Yt=(0,Be.Z)(gt,tt),lt=(0,et.Z)(gt.defaultValue,{value:gt.value}),pt=(0,Pe.Z)(lt,2),Ft=pt[0],Sn=pt[1],$t=(0,pe.useState)(!1),Pn=(0,Pe.Z)($t,2),Zt=Pn[0],an=Pn[1],Ht=(0,pe.useRef)(null),ye=function(_e){Ht.current&&(0,xe.nH)(Ht.current,_e)};(0,pe.useImperativeHandle)(st,function(){return{focus:ye,blur:function(){var _e;(_e=Ht.current)===null||_e===void 0||_e.blur()},setSelectionRange:function(_e,St,bt){var rt;(rt=Ht.current)===null||rt===void 0||rt.setSelectionRange(_e,St,bt)},select:function(){var _e;(_e=Ht.current)===null||_e===void 0||_e.select()},input:Ht.current}}),(0,pe.useEffect)(function(){an(function(Ge){return Ge&&Bt?!1:Ge})},[Bt]);var ue=function(_e){gt.value===void 0&&Sn(_e.target.value),Ht.current&&(0,xe.rJ)(Ht.current,_e,he)},le=function(_e){Qe&&_e.key==="Enter"&&Qe(_e),Ue==null||Ue(_e)},de=function(_e){an(!0),je==null||je(_e)},ge=function(_e){an(!1),Xe==null||Xe(_e)},se=function(_e){Sn(""),ye(),Ht.current&&(0,xe.rJ)(Ht.current,_e,he)},Oe=function(){var _e=(0,Je.Z)(gt,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return pe.createElement("input",(0,ce.Z)({autoComplete:ze},_e,{onChange:ue,onFocus:de,onBlur:ge,onKeyDown:le,className:ke()(Le,(0,Te.Z)({},"".concat(Le,"-disabled"),Bt),Et==null?void 0:Et.input),style:on==null?void 0:on.input,ref:Ht,size:at,type:it}))},ut=function(){var _e=Number(Lt)>0;if(Tt||Xt){var St=(0,xe.D7)(Ft),bt=(0,vt.Z)(St).length,rt=(0,dt.Z)(Xt)==="object"?Xt.formatter({value:St,count:bt,maxLength:Lt}):"".concat(bt).concat(_e?" / ".concat(Lt):"");return pe.createElement(pe.Fragment,null,!!Xt&&pe.createElement("span",{className:ke()("".concat(Le,"-show-count-suffix"),(0,Te.Z)({},"".concat(Le,"-show-count-has-suffix"),!!Tt),Et==null?void 0:Et.count),style:(0,De.Z)({},on==null?void 0:on.count)},rt),Tt)}return null};return pe.createElement(Ke,(0,ce.Z)({},Yt,{prefixCls:Le,className:Wt,inputElement:Oe(),handleReset:se,value:(0,xe.D7)(Ft),focused:Zt,triggerFocus:ye,suffix:ut(),disabled:Bt,classes:Ce,classNames:Et,styles:on}))}),wt=yt,It=wt},5643:function(zn,en,ae){"use strict";ae.d(en,{D7:function(){return be},He:function(){return ce},X3:function(){return De},nH:function(){return dt},rJ:function(){return Te}});function ce(ke){return!!(ke.addonBefore||ke.addonAfter)}function De(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}function Te(ke,pe,xe,Me){if(xe){var Ke=pe;if(pe.type==="click"){var vt=ke.cloneNode(!0);Ke=Object.create(pe,{target:{value:vt},currentTarget:{value:vt}}),vt.value="",xe(Ke);return}if(Me!==void 0){Ke=Object.create(pe,{target:{value:ke},currentTarget:{value:ke}}),ke.value=Me,xe(Ke);return}xe(Ke)}}function dt(ke,pe){if(ke){ke.focus(pe);var xe=pe||{},Me=xe.cursor;if(Me){var Ke=ke.value.length;switch(Me){case"start":ke.setSelectionRange(0,0);break;case"end":ke.setSelectionRange(Ke,Ke);break;default:ke.setSelectionRange(0,Ke)}}}}function be(ke){return typeof ke=="undefined"||ke===null?"":String(ke)}},15285:function(zn,en,ae){"use strict";ae.d(en,{iz:function(){return Xn},ck:function(){return vr},BW:function(){return Wn},sN:function(){return vr},Wd:function(){return Ut},ZP:function(){return Bn},Xl:function(){return Ue}});var ce=ae(60499),De=ae(18642),Te=ae(85899),dt=ae(77654),be=ae(72190),ke=ae(42244),pe=ae(92310),xe=ae.n(pe),Me=ae(83836),Ke=ae(18929),vt=ae(13697),Pe=ae(48736),Be=ae(59301),et=ae(4676),Je=Be.createContext(null);function tt(ot,tn){return ot===void 0?null:"".concat(ot,"-").concat(tn)}function yt(ot){var tn=Be.useContext(Je);return tt(tn,ot)}var wt=ae(80547),It=["children","locked"],gt=Be.createContext(null);function st(ot,tn){var nn=(0,Te.Z)({},ot);return Object.keys(tn).forEach(function(En){var gn=tn[En];gn!==void 0&&(nn[En]=gn)}),nn}function ze(ot){var tn=ot.children,nn=ot.locked,En=(0,ke.Z)(ot,It),gn=Be.useContext(gt),Mn=(0,wt.Z)(function(){return st(gn,En)},[gn,En],function(kn,Vn){return!nn&&(kn[0]!==Vn[0]||!(0,vt.Z)(kn[1],Vn[1],!0))});return Be.createElement(gt.Provider,{value:Mn},tn)}var he=[],je=Be.createContext(null);function Xe(){return Be.useContext(je)}var Qe=Be.createContext(he);function Ue(ot){var tn=Be.useContext(Qe);return Be.useMemo(function(){return ot!==void 0?[].concat((0,dt.Z)(tn),[ot]):tn},[tn,ot])}var mt=Be.createContext(null),Le=Be.createContext({}),Bt=Le,at=ae(29194);function Wt(ot){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,at.Z)(ot)){var nn=ot.nodeName.toLowerCase(),En=["input","select","textarea","button"].includes(nn)||ot.isContentEditable||nn==="a"&&!!ot.getAttribute("href"),gn=ot.getAttribute("tabindex"),Mn=Number(gn),kn=null;return gn&&!Number.isNaN(Mn)?kn=Mn:En&&kn===null&&(kn=0),En&&ot.disabled&&(kn=null),kn!==null&&(kn>=0||tn&&kn<0)}return!1}function Lt(ot){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=(0,dt.Z)(ot.querySelectorAll("*")).filter(function(En){return Wt(En,tn)});return Wt(ot,tn)&&nn.unshift(ot),nn}var Tt=null;function Xt(){Tt=document.activeElement}function jt(){Tt=null}function it(){if(Tt)try{Tt.focus()}catch(ot){}}function Ce(ot,tn){if(tn.keyCode===9){var nn=Lt(ot),En=nn[tn.shiftKey?0:nn.length-1],gn=En===document.activeElement||ot===document.activeElement;if(gn){var Mn=nn[tn.shiftKey?nn.length-1:0];Mn.focus(),tn.preventDefault()}}}var Et=ae(10228),on=ae(16089),Yt=Et.Z.LEFT,lt=Et.Z.RIGHT,pt=Et.Z.UP,Ft=Et.Z.DOWN,Sn=Et.Z.ENTER,$t=Et.Z.ESC,Pn=Et.Z.HOME,Zt=Et.Z.END,an=[pt,Ft,Yt,lt];function Ht(ot,tn,nn,En){var gn,Mn,kn,Vn,qn="prev",pr="next",Tr="children",Jr="parent";if(ot==="inline"&&En===Sn)return{inlineTrigger:!0};var ai=(gn={},(0,De.Z)(gn,pt,qn),(0,De.Z)(gn,Ft,pr),gn),Nr=(Mn={},(0,De.Z)(Mn,Yt,nn?pr:qn),(0,De.Z)(Mn,lt,nn?qn:pr),(0,De.Z)(Mn,Ft,Tr),(0,De.Z)(Mn,Sn,Tr),Mn),yr=(kn={},(0,De.Z)(kn,pt,qn),(0,De.Z)(kn,Ft,pr),(0,De.Z)(kn,Sn,Tr),(0,De.Z)(kn,$t,Jr),(0,De.Z)(kn,Yt,nn?Tr:Jr),(0,De.Z)(kn,lt,nn?Jr:Tr),kn),di={inline:ai,horizontal:Nr,vertical:yr,inlineSub:ai,horizontalSub:yr,verticalSub:yr},ti=(Vn=di["".concat(ot).concat(tn?"":"Sub")])===null||Vn===void 0?void 0:Vn[En];switch(ti){case qn:return{offset:-1,sibling:!0};case pr:return{offset:1,sibling:!0};case Jr:return{offset:-1,sibling:!1};case Tr:return{offset:1,sibling:!1};default:return null}}function ye(ot){for(var tn=ot;tn;){if(tn.getAttribute("data-menu-list"))return tn;tn=tn.parentElement}return null}function ue(ot,tn){for(var nn=ot||document.activeElement;nn;){if(tn.has(nn))return nn;nn=nn.parentElement}return null}function le(ot,tn){var nn=Lt(ot,!0);return nn.filter(function(En){return tn.has(En)})}function de(ot,tn,nn){var En=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ot)return null;var gn=le(ot,tn),Mn=gn.length,kn=gn.findIndex(function(Vn){return nn===Vn});return En<0?kn===-1?kn=Mn-1:kn-=1:En>0&&(kn+=1),kn=(kn+Mn)%Mn,gn[kn]}var ge=function(tn,nn){var En=new Set,gn=new Map,Mn=new Map;return tn.forEach(function(kn){var Vn=document.querySelector("[data-menu-id='".concat(tt(nn,kn),"']"));Vn&&(En.add(Vn),Mn.set(Vn,kn),gn.set(kn,Vn))}),{elements:En,key2element:gn,element2key:Mn}};function se(ot,tn,nn,En,gn,Mn,kn,Vn,qn,pr){var Tr=Be.useRef(),Jr=Be.useRef();Jr.current=tn;var ai=function(){on.Z.cancel(Tr.current)};return Be.useEffect(function(){return function(){ai()}},[]),function(Nr){var yr=Nr.which;if([].concat(an,[Sn,$t,Pn,Zt]).includes(yr)){var di=Mn(),ti=ge(di,En),vi=ti,Wr=vi.elements,jr=vi.key2element,yi=vi.element2key,ui=jr.get(tn),$i=ue(ui,Wr),sa=yi.get($i),oi=Ht(ot,kn(sa,!0).length===1,nn,yr);if(!oi&&yr!==Pn&&yr!==Zt)return;(an.includes(yr)||[Pn,Zt].includes(yr))&&Nr.preventDefault();var ar=function(Ci){if(Ci){var Pa=Ci,_r=Ci.querySelector("a");_r!=null&&_r.getAttribute("href")&&(Pa=_r);var Xr=yi.get(Ci);Vn(Xr),ai(),Tr.current=(0,on.Z)(function(){Jr.current===Xr&&Pa.focus()})}};if([Pn,Zt].includes(yr)||oi.sibling||!$i){var rr;!$i||ot==="inline"?rr=gn.current:rr=ye($i);var pi,ni=le(rr,Wr);yr===Pn?pi=ni[0]:yr===Zt?pi=ni[ni.length-1]:pi=de(rr,Wr,$i,oi.offset),ar(pi)}else if(oi.inlineTrigger)qn(sa);else if(oi.offset>0)qn(sa,!0),ai(),Tr.current=(0,on.Z)(function(){ti=ge(di,En);var mi=$i.getAttribute("aria-controls"),Ci=document.getElementById(mi),Pa=de(Ci,ti.elements);ar(Pa)},5);else if(oi.offset<0){var ki=kn(sa,!0),Ai=ki[ki.length-2],Ti=jr.get(Ai);qn(Ai,!1),ar(Ti)}}pr==null||pr(Nr)}}function Oe(ot){Promise.resolve().then(ot)}var ut="__RC_UTIL_PATH_SPLIT__",Ge=function(tn){return tn.join(ut)},_e=function(tn){return tn.split(ut)},St="rc-menu-more";function bt(){var ot=Be.useState({}),tn=(0,be.Z)(ot,2),nn=tn[1],En=(0,Be.useRef)(new Map),gn=(0,Be.useRef)(new Map),Mn=Be.useState([]),kn=(0,be.Z)(Mn,2),Vn=kn[0],qn=kn[1],pr=(0,Be.useRef)(0),Tr=(0,Be.useRef)(!1),Jr=function(){Tr.current||nn({})},ai=(0,Be.useCallback)(function(jr,yi){var ui=Ge(yi);gn.current.set(ui,jr),En.current.set(jr,ui),pr.current+=1;var $i=pr.current;Oe(function(){$i===pr.current&&Jr()})},[]),Nr=(0,Be.useCallback)(function(jr,yi){var ui=Ge(yi);gn.current.delete(ui),En.current.delete(jr)},[]),yr=(0,Be.useCallback)(function(jr){qn(jr)},[]),di=(0,Be.useCallback)(function(jr,yi){var ui=En.current.get(jr)||"",$i=_e(ui);return yi&&Vn.includes($i[0])&&$i.unshift(St),$i},[Vn]),ti=(0,Be.useCallback)(function(jr,yi){return jr.some(function(ui){var $i=di(ui,!0);return $i.includes(yi)})},[di]),vi=function(){var yi=(0,dt.Z)(En.current.keys());return Vn.length&&yi.push(St),yi},Wr=(0,Be.useCallback)(function(jr){var yi="".concat(En.current.get(jr)).concat(ut),ui=new Set;return(0,dt.Z)(gn.current.keys()).forEach(function($i){$i.startsWith(yi)&&ui.add(gn.current.get($i))}),ui},[]);return Be.useEffect(function(){return function(){Tr.current=!0}},[]),{registerPath:ai,unregisterPath:Nr,refreshOverflowKeys:yr,isSubPathKey:ti,getKeyPath:di,getKeys:vi,getSubPathKeys:Wr}}function rt(ot){var tn=Be.useRef(ot);tn.current=ot;var nn=Be.useCallback(function(){for(var En,gn=arguments.length,Mn=new Array(gn),kn=0;kn<gn;kn++)Mn[kn]=arguments[kn];return(En=tn.current)===null||En===void 0?void 0:En.call.apply(En,[tn].concat(Mn))},[]);return ot?nn:void 0}var Dt=Math.random().toFixed(5).toString().slice(2),xn=0;function xt(ot){var tn=(0,Ke.Z)(ot,{value:ot}),nn=(0,be.Z)(tn,2),En=nn[0],gn=nn[1];return Be.useEffect(function(){xn+=1;var Mn="".concat(Dt,"-").concat(xn);gn("rc-menu-uuid-".concat(Mn))},[]),En}var Rt=ae(38705),cn=ae(17212),ct=ae(39153),Ae=ae(55401),Ve=ae(2738),Kt=ae(8654);function Gt(ot,tn,nn,En){var gn=Be.useContext(gt),Mn=gn.activeKey,kn=gn.onActive,Vn=gn.onInactive,qn={active:Mn===ot};return tn||(qn.onMouseEnter=function(pr){nn==null||nn({key:ot,domEvent:pr}),kn(ot)},qn.onMouseLeave=function(pr){En==null||En({key:ot,domEvent:pr}),Vn(ot)}),qn}function hn(ot){var tn=Be.useContext(gt),nn=tn.mode,En=tn.rtl,gn=tn.inlineIndent;if(nn!=="inline")return null;var Mn=ot;return En?{paddingRight:Mn*gn}:{paddingLeft:Mn*gn}}function On(ot){var tn=ot.icon,nn=ot.props,En=ot.children,gn;return tn===null||tn===!1?null:(typeof tn=="function"?gn=Be.createElement(tn,(0,Te.Z)({},nn)):typeof tn!="boolean"&&(gn=tn),gn||En||null)}var Ln=["item"];function Kn(ot){var tn=ot.item,nn=(0,ke.Z)(ot,Ln);return Object.defineProperty(nn,"item",{get:function(){return(0,Pe.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),tn}}),nn}var tr=["title","attribute","elementRef"],gr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Un=["active"],Cr=function(ot){(0,ct.Z)(nn,ot);var tn=(0,Ae.Z)(nn);function nn(){return(0,Rt.Z)(this,nn),tn.apply(this,arguments)}return(0,cn.Z)(nn,[{key:"render",value:function(){var gn=this.props,Mn=gn.title,kn=gn.attribute,Vn=gn.elementRef,qn=(0,ke.Z)(gn,tr),pr=(0,Ve.Z)(qn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Pe.ZP)(!kn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),Be.createElement(Me.Z.Item,(0,ce.Z)({},kn,{title:typeof Mn=="string"?Mn:void 0},pr,{ref:Vn}))}}]),nn}(Be.Component),Rr=Be.forwardRef(function(ot,tn){var nn,En=ot.style,gn=ot.className,Mn=ot.eventKey,kn=ot.warnKey,Vn=ot.disabled,qn=ot.itemIcon,pr=ot.children,Tr=ot.role,Jr=ot.onMouseEnter,ai=ot.onMouseLeave,Nr=ot.onClick,yr=ot.onKeyDown,di=ot.onFocus,ti=(0,ke.Z)(ot,gr),vi=yt(Mn),Wr=Be.useContext(gt),jr=Wr.prefixCls,yi=Wr.onItemClick,ui=Wr.disabled,$i=Wr.overflowDisabled,sa=Wr.itemIcon,oi=Wr.selectedKeys,ar=Wr.onActive,rr=Be.useContext(Bt),pi=rr._internalRenderMenuItem,ni="".concat(jr,"-item"),ki=Be.useRef(),Ai=Be.useRef(),Ti=ui||Vn,mi=(0,Kt.x1)(tn,Ai),Ci=Ue(Mn),Pa=function(Kr){return{key:Mn,keyPath:(0,dt.Z)(Ci).reverse(),item:ki.current,domEvent:Kr}},_r=qn||sa,Xr=Gt(Mn,Ti,Jr,ai),Pi=Xr.active,Hi=(0,ke.Z)(Xr,Un),Na=oi.includes(Mn),Ra=hn(Ci.length),ka=function(Kr){if(!Ti){var fi=Pa(Kr);Nr==null||Nr(Kn(fi)),yi(fi)}},ha=function(Kr){if(yr==null||yr(Kr),Kr.which===Et.Z.ENTER){var fi=Pa(Kr);Nr==null||Nr(Kn(fi)),yi(fi)}},Qa=function(Kr){ar(Mn),di==null||di(Kr)},Ja={};ot.role==="option"&&(Ja["aria-selected"]=Na);var Gr=Be.createElement(Cr,(0,ce.Z)({ref:ki,elementRef:mi,role:Tr===null?"none":Tr||"menuitem",tabIndex:Vn?null:-1,"data-menu-id":$i&&vi?null:vi},ti,Hi,Ja,{component:"li","aria-disabled":Vn,style:(0,Te.Z)((0,Te.Z)({},Ra),En),className:xe()(ni,(nn={},(0,De.Z)(nn,"".concat(ni,"-active"),Pi),(0,De.Z)(nn,"".concat(ni,"-selected"),Na),(0,De.Z)(nn,"".concat(ni,"-disabled"),Ti),nn),gn),onClick:ka,onKeyDown:ha,onFocus:Qa}),pr,Be.createElement(On,{props:(0,Te.Z)((0,Te.Z)({},ot),{},{isSelected:Na}),icon:_r}));return pi&&(Gr=pi(Gr,ot,{selected:Na})),Gr});function $r(ot,tn){var nn=ot.eventKey,En=Xe(),gn=Ue(nn);return Be.useEffect(function(){if(En)return En.registerPath(nn,gn),function(){En.unregisterPath(nn,gn)}},[gn]),En?null:Be.createElement(Rr,(0,ce.Z)({},ot,{ref:tn}))}var vr=Be.forwardRef($r),Er=["className","children"],Hr=function(tn,nn){var En=tn.className,gn=tn.children,Mn=(0,ke.Z)(tn,Er),kn=Be.useContext(gt),Vn=kn.prefixCls,qn=kn.mode,pr=kn.rtl;return Be.createElement("ul",(0,ce.Z)({className:xe()(Vn,pr&&"".concat(Vn,"-rtl"),"".concat(Vn,"-sub"),"".concat(Vn,"-").concat(qn==="inline"?"inline":"vertical"),En),role:"menu"},Mn,{"data-menu-list":!0,ref:nn}),gn)},wn=Be.forwardRef(Hr);wn.displayName="SubMenuList";var Zn=wn,Or=ae(11592);function br(ot,tn){return(0,Or.Z)(ot).map(function(nn,En){if(Be.isValidElement(nn)){var gn,Mn,kn=nn.key,Vn=(gn=(Mn=nn.props)===null||Mn===void 0?void 0:Mn.eventKey)!==null&&gn!==void 0?gn:kn,qn=Vn==null;qn&&(Vn="tmp_key-".concat([].concat((0,dt.Z)(tn),[En]).join("-")));var pr={key:Vn,eventKey:Vn};return Be.cloneElement(nn,pr)}return nn})}var hr=ae(35593),Yr={adjustX:1,adjustY:1},cr={topLeft:{points:["bl","tl"],overflow:Yr},topRight:{points:["br","tr"],overflow:Yr},bottomLeft:{points:["tl","bl"],overflow:Yr},bottomRight:{points:["tr","br"],overflow:Yr},leftTop:{points:["tr","tl"],overflow:Yr},leftBottom:{points:["br","bl"],overflow:Yr},rightTop:{points:["tl","tr"],overflow:Yr},rightBottom:{points:["bl","br"],overflow:Yr}},Ir={topLeft:{points:["bl","tl"],overflow:Yr},topRight:{points:["br","tr"],overflow:Yr},bottomLeft:{points:["tl","bl"],overflow:Yr},bottomRight:{points:["tr","br"],overflow:Yr},rightTop:{points:["tr","tl"],overflow:Yr},rightBottom:{points:["br","bl"],overflow:Yr},leftTop:{points:["tl","tr"],overflow:Yr},leftBottom:{points:["bl","br"],overflow:Yr}},or=null;function Jn(ot,tn,nn){if(tn)return tn;if(nn)return nn[ot]||nn.other}var Dr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function _t(ot){var tn=ot.prefixCls,nn=ot.visible,En=ot.children,gn=ot.popup,Mn=ot.popupStyle,kn=ot.popupClassName,Vn=ot.popupOffset,qn=ot.disabled,pr=ot.mode,Tr=ot.onVisibleChange,Jr=Be.useContext(gt),ai=Jr.getPopupContainer,Nr=Jr.rtl,yr=Jr.subMenuOpenDelay,di=Jr.subMenuCloseDelay,ti=Jr.builtinPlacements,vi=Jr.triggerSubMenuAction,Wr=Jr.forceSubMenuRender,jr=Jr.rootClassName,yi=Jr.motion,ui=Jr.defaultMotions,$i=Be.useState(!1),sa=(0,be.Z)($i,2),oi=sa[0],ar=sa[1],rr=Nr?(0,Te.Z)((0,Te.Z)({},Ir),ti):(0,Te.Z)((0,Te.Z)({},cr),ti),pi=Dr[pr],ni=Jn(pr,yi,ui),ki=Be.useRef(ni);pr!=="inline"&&(ki.current=ni);var Ai=(0,Te.Z)((0,Te.Z)({},ki.current),{},{leavedClassName:"".concat(tn,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Ti=Be.useRef();return Be.useEffect(function(){return Ti.current=(0,on.Z)(function(){ar(nn)}),function(){on.Z.cancel(Ti.current)}},[nn]),Be.createElement(hr.Z,{prefixCls:tn,popupClassName:xe()("".concat(tn,"-popup"),(0,De.Z)({},"".concat(tn,"-rtl"),Nr),kn,jr),stretch:pr==="horizontal"?"minWidth":null,getPopupContainer:ai,builtinPlacements:rr,popupPlacement:pi,popupVisible:oi,popup:gn,popupStyle:Mn,popupAlign:Vn&&{offset:Vn},action:qn?[]:[vi],mouseEnterDelay:yr,mouseLeaveDelay:di,onPopupVisibleChange:Tr,forceRender:Wr,popupMotion:Ai,fresh:!0},En)}var He=ae(77900);function nt(ot){var tn=ot.id,nn=ot.open,En=ot.keyPath,gn=ot.children,Mn="inline",kn=Be.useContext(gt),Vn=kn.prefixCls,qn=kn.forceSubMenuRender,pr=kn.motion,Tr=kn.defaultMotions,Jr=kn.mode,ai=Be.useRef(!1);ai.current=Jr===Mn;var Nr=Be.useState(!ai.current),yr=(0,be.Z)(Nr,2),di=yr[0],ti=yr[1],vi=ai.current?nn:!1;Be.useEffect(function(){ai.current&&ti(!1)},[Jr]);var Wr=(0,Te.Z)({},Jn(Mn,pr,Tr));En.length>1&&(Wr.motionAppear=!1);var jr=Wr.onVisibleChanged;return Wr.onVisibleChanged=function(yi){return!ai.current&&!yi&&ti(!0),jr==null?void 0:jr(yi)},di?null:Be.createElement(ze,{mode:Mn,locked:!ai.current},Be.createElement(He.default,(0,ce.Z)({visible:vi},Wr,{forceRender:qn,removeOnLeave:!1,leavedClassName:"".concat(Vn,"-hidden")}),function(yi){var ui=yi.className,$i=yi.style;return Be.createElement(Zn,{id:tn,className:ui,style:$i},gn)}))}var Ye=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],qe=["active"],Mt=function(tn){var nn,En=tn.style,gn=tn.className,Mn=tn.title,kn=tn.eventKey,Vn=tn.warnKey,qn=tn.disabled,pr=tn.internalPopupClose,Tr=tn.children,Jr=tn.itemIcon,ai=tn.expandIcon,Nr=tn.popupClassName,yr=tn.popupOffset,di=tn.popupStyle,ti=tn.onClick,vi=tn.onMouseEnter,Wr=tn.onMouseLeave,jr=tn.onTitleClick,yi=tn.onTitleMouseEnter,ui=tn.onTitleMouseLeave,$i=(0,ke.Z)(tn,Ye),sa=yt(kn),oi=Be.useContext(gt),ar=oi.prefixCls,rr=oi.mode,pi=oi.openKeys,ni=oi.disabled,ki=oi.overflowDisabled,Ai=oi.activeKey,Ti=oi.selectedKeys,mi=oi.itemIcon,Ci=oi.expandIcon,Pa=oi.onItemClick,_r=oi.onOpenChange,Xr=oi.onActive,Pi=Be.useContext(Bt),Hi=Pi._internalRenderSubMenuItem,Na=Be.useContext(mt),Ra=Na.isSubPathKey,ka=Ue(),ha="".concat(ar,"-submenu"),Qa=ni||qn,Ja=Be.useRef(),Gr=Be.useRef(),Zr=Jr!=null?Jr:mi,Kr=ai!=null?ai:Ci,fi=pi.includes(kn),ga=!ki&&fi,Fa=Ra(Ti,kn),Ua=Gt(kn,Qa,yi,ui),za=Ua.active,Ta=(0,ke.Z)(Ua,qe),lo=Be.useState(!1),jo=(0,be.Z)(lo,2),_o=jo[0],hs=jo[1],la=function($o){Qa||hs($o)},ya=function($o){la(!0),vi==null||vi({key:kn,domEvent:$o})},po=function($o){la(!1),Wr==null||Wr({key:kn,domEvent:$o})},La=Be.useMemo(function(){return za||(rr!=="inline"?_o||Ra([Ai],kn):!1)},[rr,za,Ai,_o,kn,Ra]),$a=hn(ka.length),Ya=function($o){Qa||(jr==null||jr({key:kn,domEvent:$o}),rr==="inline"&&_r(kn,!fi))},Za=rt(function(Vo){ti==null||ti(Kn(Vo)),Pa(Vo)}),Oi=function($o){rr!=="inline"&&_r(kn,$o)},ua=function(){Xr(kn)},ra=sa&&"".concat(sa,"-popup"),Wi=Be.createElement("div",(0,ce.Z)({role:"menuitem",style:$a,className:"".concat(ha,"-title"),tabIndex:Qa?null:-1,ref:Ja,title:typeof Mn=="string"?Mn:null,"data-menu-id":ki&&sa?null:sa,"aria-expanded":ga,"aria-haspopup":!0,"aria-controls":ra,"aria-disabled":Qa,onClick:Ya,onFocus:ua},Ta),Mn,Be.createElement(On,{icon:rr!=="horizontal"?Kr:void 0,props:(0,Te.Z)((0,Te.Z)({},tn),{},{isOpen:ga,isSubMenu:!0})},Be.createElement("i",{className:"".concat(ha,"-arrow")}))),Oa=Be.useRef(rr);if(rr!=="inline"&&ka.length>1?Oa.current="vertical":Oa.current=rr,!ki){var Ba=Oa.current;Wi=Be.createElement(_t,{mode:Ba,prefixCls:ha,visible:!pr&&ga&&rr!=="inline",popupClassName:Nr,popupOffset:yr,popupStyle:di,popup:Be.createElement(ze,{mode:Ba==="horizontal"?"vertical":Ba},Be.createElement(Zn,{id:ra,ref:Gr},Tr)),disabled:Qa,onVisibleChange:Oi},Wi)}var zo=Be.createElement(Me.Z.Item,(0,ce.Z)({role:"none"},$i,{component:"li",style:En,className:xe()(ha,"".concat(ha,"-").concat(rr),gn,(nn={},(0,De.Z)(nn,"".concat(ha,"-open"),ga),(0,De.Z)(nn,"".concat(ha,"-active"),La),(0,De.Z)(nn,"".concat(ha,"-selected"),Fa),(0,De.Z)(nn,"".concat(ha,"-disabled"),Qa),nn)),onMouseEnter:ya,onMouseLeave:po}),Wi,!ki&&Be.createElement(nt,{id:ra,open:ga,keyPath:ka},Tr));return Hi&&(zo=Hi(zo,tn,{selected:Fa,active:La,open:ga,disabled:Qa})),Be.createElement(ze,{onItemClick:Za,mode:rr==="horizontal"?"vertical":rr,itemIcon:Zr,expandIcon:Kr},zo)};function Ut(ot){var tn=ot.eventKey,nn=ot.children,En=Ue(tn),gn=br(nn,En),Mn=Xe();Be.useEffect(function(){if(Mn)return Mn.registerPath(tn,En),function(){Mn.unregisterPath(tn,En)}},[En]);var kn;return Mn?kn=gn:kn=Be.createElement(Mt,ot,gn),Be.createElement(Qe.Provider,{value:En},kn)}var An=ae(43749),mn=["className","title","eventKey","children"],ln=["children"],Nn=function(tn){var nn=tn.className,En=tn.title,gn=tn.eventKey,Mn=tn.children,kn=(0,ke.Z)(tn,mn),Vn=Be.useContext(gt),qn=Vn.prefixCls,pr="".concat(qn,"-item-group");return Be.createElement("li",(0,ce.Z)({role:"presentation"},kn,{onClick:function(Jr){return Jr.stopPropagation()},className:xe()(pr,nn)}),Be.createElement("div",{role:"presentation",className:"".concat(pr,"-title"),title:typeof En=="string"?En:void 0},En),Be.createElement("ul",{role:"group",className:"".concat(pr,"-list")},Mn))};function Wn(ot){var tn=ot.children,nn=(0,ke.Z)(ot,ln),En=Ue(nn.eventKey),gn=br(tn,En),Mn=Xe();return Mn?gn:Be.createElement(Nn,(0,Ve.Z)(nn,["warnKey"]),gn)}function Xn(ot){var tn=ot.className,nn=ot.style,En=Be.useContext(gt),gn=En.prefixCls,Mn=Xe();return Mn?null:Be.createElement("li",{role:"separator",className:xe()("".concat(gn,"-item-divider"),tn),style:nn})}var rn=["label","children","key","type"];function Tn(ot){return(ot||[]).map(function(tn,nn){if(tn&&(0,An.Z)(tn)==="object"){var En=tn,gn=En.label,Mn=En.children,kn=En.key,Vn=En.type,qn=(0,ke.Z)(En,rn),pr=kn!=null?kn:"tmp-".concat(nn);return Mn||Vn==="group"?Vn==="group"?Be.createElement(Wn,(0,ce.Z)({key:pr},qn,{title:gn}),Tn(Mn)):Be.createElement(Ut,(0,ce.Z)({key:pr},qn,{title:gn}),Tn(Mn)):Vn==="divider"?Be.createElement(Xn,(0,ce.Z)({key:pr},qn)):Be.createElement(vr,(0,ce.Z)({key:pr},qn),gn)}return null}).filter(function(tn){return tn})}function Nt(ot,tn,nn){var En=ot;return tn&&(En=Tn(tn)),br(En,nn)}var Jt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],sn=[],fn=Be.forwardRef(function(ot,tn){var nn,En,gn=ot,Mn=gn.prefixCls,kn=Mn===void 0?"rc-menu":Mn,Vn=gn.rootClassName,qn=gn.style,pr=gn.className,Tr=gn.tabIndex,Jr=Tr===void 0?0:Tr,ai=gn.items,Nr=gn.children,yr=gn.direction,di=gn.id,ti=gn.mode,vi=ti===void 0?"vertical":ti,Wr=gn.inlineCollapsed,jr=gn.disabled,yi=gn.disabledOverflow,ui=gn.subMenuOpenDelay,$i=ui===void 0?.1:ui,sa=gn.subMenuCloseDelay,oi=sa===void 0?.1:sa,ar=gn.forceSubMenuRender,rr=gn.defaultOpenKeys,pi=gn.openKeys,ni=gn.activeKey,ki=gn.defaultActiveFirst,Ai=gn.selectable,Ti=Ai===void 0?!0:Ai,mi=gn.multiple,Ci=mi===void 0?!1:mi,Pa=gn.defaultSelectedKeys,_r=gn.selectedKeys,Xr=gn.onSelect,Pi=gn.onDeselect,Hi=gn.inlineIndent,Na=Hi===void 0?24:Hi,Ra=gn.motion,ka=gn.defaultMotions,ha=gn.triggerSubMenuAction,Qa=ha===void 0?"hover":ha,Ja=gn.builtinPlacements,Gr=gn.itemIcon,Zr=gn.expandIcon,Kr=gn.overflowedIndicator,fi=Kr===void 0?"...":Kr,ga=gn.overflowedIndicatorPopupClassName,Fa=gn.getPopupContainer,Ua=gn.onClick,za=gn.onOpenChange,Ta=gn.onKeyDown,lo=gn.openAnimation,jo=gn.openTransitionName,_o=gn._internalRenderMenuItem,hs=gn._internalRenderSubMenuItem,la=(0,ke.Z)(gn,Jt),ya=Be.useMemo(function(){return Nt(Nr,ai,sn)},[Nr,ai]),po=Be.useState(!1),La=(0,be.Z)(po,2),$a=La[0],Ya=La[1],Za=Be.useRef(),Oi=xt(di),ua=yr==="rtl",ra=(0,Ke.Z)(rr,{value:pi,postState:function(Ao){return Ao||sn}}),Wi=(0,be.Z)(ra,2),Oa=Wi[0],Ba=Wi[1],zo=function(Ao){var Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function dl(){Ba(Ao),za==null||za(Ao)}Go?(0,et.flushSync)(dl):dl()},Vo=Be.useState(Oa),$o=(0,be.Z)(Vo,2),Qo=$o[0],qa=$o[1],eo=Be.useRef(!1),ns=Be.useMemo(function(){return(vi==="inline"||vi==="vertical")&&Wr?["vertical",Wr]:[vi,!1]},[vi,Wr]),rs=(0,be.Z)(ns,2),ps=rs[0],Jo=rs[1],Vl=ps==="inline",Cl=Be.useState(ps),Sl=(0,be.Z)(Cl,2),el=Sl[0],vu=Sl[1],tl=Be.useState(Jo),Ls=(0,be.Z)(tl,2),ms=Ls[0],kl=Ls[1];Be.useEffect(function(){vu(ps),kl(Jo),eo.current&&(Vl?Ba(Qo):zo(sn))},[ps,Jo]);var Ol=Be.useState(0),Nl=(0,be.Z)(Ol,2),au=Nl[0],Fl=Nl[1],Os=au>=ya.length-1||el!=="horizontal"||yi;Be.useEffect(function(){Vl&&qa(Oa)},[Oa]),Be.useEffect(function(){return eo.current=!0,function(){eo.current=!1}},[]);var gs=bt(),Do=gs.registerPath,zl=gs.unregisterPath,yu=gs.refreshOverflowKeys,nl=gs.isSubPathKey,to=gs.getKeyPath,Ha=gs.getKeys,Ko=gs.getSubPathKeys,is=Be.useMemo(function(){return{registerPath:Do,unregisterPath:zl}},[Do,zl]),Uo=Be.useMemo(function(){return{isSubPathKey:nl}},[nl]);Be.useEffect(function(){yu(Os?sn:ya.slice(au+1).map(function(vo){return vo.key}))},[au,Os]);var Ns=(0,Ke.Z)(ni||ki&&((nn=ya[0])===null||nn===void 0?void 0:nn.key),{value:ni}),Ks=(0,be.Z)(Ns,2),cl=Ks[0],Hs=Ks[1],Dl=rt(function(vo){Hs(vo)}),vl=rt(function(){Hs(void 0)});(0,Be.useImperativeHandle)(tn,function(){return{list:Za.current,focus:function(Ao){var Go,dl=Ha(),Rs=ge(dl,Oi),rl=Rs.elements,Gs=Rs.key2element,_s=Rs.element2key,Kl=le(Za.current,rl),Hl=cl!=null?cl:Kl[0]?_s.get(Kl[0]):(Go=ya.find(function($e){return!$e.props.disabled}))===null||Go===void 0?void 0:Go.key,we=Gs.get(Hl);if(Hl&&we){var Ie;we==null||(Ie=we.focus)===null||Ie===void 0||Ie.call(we,Ao)}}}});var Zs=(0,Ke.Z)(Pa||[],{value:_r,postState:function(Ao){return Array.isArray(Ao)?Ao:Ao==null?sn:[Ao]}}),Hu=(0,be.Z)(Zs,2),$l=Hu[0],ou=Hu[1],su=function(Ao){if(Ti){var Go=Ao.key,dl=$l.includes(Go),Rs;Ci?dl?Rs=$l.filter(function(Gs){return Gs!==Go}):Rs=[].concat((0,dt.Z)($l),[Go]):Rs=[Go],ou(Rs);var rl=(0,Te.Z)((0,Te.Z)({},Ao),{},{selectedKeys:Rs});dl?Pi==null||Pi(rl):Xr==null||Xr(rl)}!Ci&&Oa.length&&el!=="inline"&&zo(sn)},bu=rt(function(vo){Ua==null||Ua(Kn(vo)),su(vo)}),xu=rt(function(vo,Ao){var Go=Oa.filter(function(Rs){return Rs!==vo});if(Ao)Go.push(vo);else if(el!=="inline"){var dl=Ko(vo);Go=Go.filter(function(Rs){return!dl.has(Rs)})}(0,vt.Z)(Oa,Go,!0)||zo(Go,!0)}),lc=function(Ao,Go){var dl=Go!=null?Go:!Oa.includes(Ao);xu(Ao,dl)},lu=se(el,cl,ua,Oi,Za,Ha,to,Hs,lc,Ta);Be.useEffect(function(){Ya(!0)},[]);var ku=Be.useMemo(function(){return{_internalRenderMenuItem:_o,_internalRenderSubMenuItem:hs}},[_o,hs]),Ul=el!=="horizontal"||yi?ya:ya.map(function(vo,Ao){return Be.createElement(ze,{key:vo.key,overflowDisabled:Ao>au},vo)}),uu=Be.createElement(Me.Z,(0,ce.Z)({id:di,ref:Za,prefixCls:"".concat(kn,"-overflow"),component:"ul",itemComponent:vr,className:xe()(kn,"".concat(kn,"-root"),"".concat(kn,"-").concat(el),pr,(En={},(0,De.Z)(En,"".concat(kn,"-inline-collapsed"),ms),(0,De.Z)(En,"".concat(kn,"-rtl"),ua),En),Vn),dir:yr,style:qn,role:"menu",tabIndex:Jr,data:Ul,renderRawItem:function(Ao){return Ao},renderRawRest:function(Ao){var Go=Ao.length,dl=Go?ya.slice(-Go):null;return Be.createElement(Ut,{eventKey:St,title:fi,disabled:Os,internalPopupClose:Go===0,popupClassName:ga},dl)},maxCount:el!=="horizontal"||yi?Me.Z.INVALIDATE:Me.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ao){Fl(Ao)},onKeyDown:lu},la));return Be.createElement(Bt.Provider,{value:ku},Be.createElement(Je.Provider,{value:Oi},Be.createElement(ze,{prefixCls:kn,rootClassName:Vn,mode:el,openKeys:Oa,rtl:ua,disabled:jr,motion:$a?Ra:null,defaultMotions:$a?ka:null,activeKey:cl,onActive:Dl,onInactive:vl,selectedKeys:$l,inlineIndent:Na,subMenuOpenDelay:$i,subMenuCloseDelay:oi,forceSubMenuRender:ar,builtinPlacements:Ja,triggerSubMenuAction:Qa,getPopupContainer:Fa,itemIcon:Gr,expandIcon:Zr,onItemClick:bu,onOpenChange:xu},Be.createElement(mt.Provider,{value:Uo},uu),Be.createElement("div",{style:{display:"none"},"aria-hidden":!0},Be.createElement(je.Provider,{value:is},ya)))))}),In=fn,un=In;un.Item=vr,un.SubMenu=Ut,un.ItemGroup=Wn,un.Divider=Xn;var Bn=un},83836:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Xt}});var ce=ae(60499),De=ae(85899),Te=ae(72190),dt=ae(42244),be=ae(59301),ke=ae(92310),pe=ae.n(ke),xe=ae(29301),Me=ae(34280),Ke=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],vt=void 0;function Pe(jt,it){var Ce=jt.prefixCls,Et=jt.invalidate,on=jt.item,Yt=jt.renderItem,lt=jt.responsive,pt=jt.responsiveDisabled,Ft=jt.registerSize,Sn=jt.itemKey,$t=jt.className,Pn=jt.style,Zt=jt.children,an=jt.display,Ht=jt.order,ye=jt.component,ue=ye===void 0?"div":ye,le=(0,dt.Z)(jt,Ke),de=lt&&!an;function ge(_e){Ft(Sn,_e)}be.useEffect(function(){return function(){ge(null)}},[]);var se=Yt&&on!==vt?Yt(on,{index:Ht}):Zt,Oe;Et||(Oe={opacity:de?0:1,height:de?0:vt,overflowY:de?"hidden":vt,order:lt?Ht:vt,pointerEvents:de?"none":vt,position:de?"absolute":vt});var ut={};de&&(ut["aria-hidden"]=!0);var Ge=be.createElement(ue,(0,ce.Z)({className:pe()(!Et&&Ce,$t),style:(0,De.Z)((0,De.Z)({},Oe),Pn)},ut,le,{ref:it}),se);return lt&&(Ge=be.createElement(xe.Z,{onResize:function(St){var bt=St.offsetWidth;ge(bt)},disabled:pt},Ge)),Ge}var Be=be.forwardRef(Pe);Be.displayName="Item";var et=Be,Je=ae(6089),tt=ae(4676),yt=ae(16089);function wt(jt){if(typeof MessageChannel=="undefined")(0,yt.Z)(jt);else{var it=new MessageChannel;it.port1.onmessage=function(){return jt()},it.port2.postMessage(void 0)}}function It(){var jt=be.useRef(null),it=function(Et){jt.current||(jt.current=[],wt(function(){(0,tt.unstable_batchedUpdates)(function(){jt.current.forEach(function(on){on()}),jt.current=null})})),jt.current.push(Et)};return it}function gt(jt,it){var Ce=be.useState(it),Et=(0,Te.Z)(Ce,2),on=Et[0],Yt=Et[1],lt=(0,Je.Z)(function(pt){jt(function(){Yt(pt)})});return[on,lt]}var st=be.createContext(null),ze=["component"],he=["className"],je=["className"],Xe=function(it,Ce){var Et=be.useContext(st);if(!Et){var on=it.component,Yt=on===void 0?"div":on,lt=(0,dt.Z)(it,ze);return be.createElement(Yt,(0,ce.Z)({},lt,{ref:Ce}))}var pt=Et.className,Ft=(0,dt.Z)(Et,he),Sn=it.className,$t=(0,dt.Z)(it,je);return be.createElement(st.Provider,{value:null},be.createElement(et,(0,ce.Z)({ref:Ce,className:pe()(pt,Sn)},Ft,$t)))},Qe=be.forwardRef(Xe);Qe.displayName="RawItem";var Ue=Qe,mt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Le="responsive",Bt="invalidate";function at(jt){return"+ ".concat(jt.length," ...")}function Wt(jt,it){var Ce=jt.prefixCls,Et=Ce===void 0?"rc-overflow":Ce,on=jt.data,Yt=on===void 0?[]:on,lt=jt.renderItem,pt=jt.renderRawItem,Ft=jt.itemKey,Sn=jt.itemWidth,$t=Sn===void 0?10:Sn,Pn=jt.ssr,Zt=jt.style,an=jt.className,Ht=jt.maxCount,ye=jt.renderRest,ue=jt.renderRawRest,le=jt.prefix,de=jt.suffix,ge=jt.component,se=ge===void 0?"div":ge,Oe=jt.itemComponent,ut=jt.onVisibleChange,Ge=(0,dt.Z)(jt,mt),_e=Pn==="full",St=It(),bt=gt(St,null),rt=(0,Te.Z)(bt,2),Dt=rt[0],xn=rt[1],xt=Dt||0,Rt=gt(St,new Map),cn=(0,Te.Z)(Rt,2),ct=cn[0],Ae=cn[1],Ve=gt(St,0),Kt=(0,Te.Z)(Ve,2),Gt=Kt[0],hn=Kt[1],On=gt(St,0),Ln=(0,Te.Z)(On,2),Kn=Ln[0],tr=Ln[1],gr=gt(St,0),Un=(0,Te.Z)(gr,2),Cr=Un[0],Rr=Un[1],$r=gt(St,0),vr=(0,Te.Z)($r,2),Er=vr[0],Hr=vr[1],wn=(0,be.useState)(null),Zn=(0,Te.Z)(wn,2),Or=Zn[0],br=Zn[1],hr=(0,be.useState)(null),Yr=(0,Te.Z)(hr,2),cr=Yr[0],Ir=Yr[1],or=be.useMemo(function(){return cr===null&&_e?Number.MAX_SAFE_INTEGER:cr||0},[cr,Dt]),Jn=(0,be.useState)(!1),Dr=(0,Te.Z)(Jn,2),_t=Dr[0],He=Dr[1],nt="".concat(Et,"-item"),Ye=Math.max(Gt,Kn),qe=Ht===Le,Mt=Yt.length&&qe,Ut=Ht===Bt,An=Mt||typeof Ht=="number"&&Yt.length>Ht,mn=(0,be.useMemo)(function(){var Mn=Yt;return Mt?Dt===null&&_e?Mn=Yt:Mn=Yt.slice(0,Math.min(Yt.length,xt/$t)):typeof Ht=="number"&&(Mn=Yt.slice(0,Ht)),Mn},[Yt,$t,Dt,Ht,Mt]),ln=(0,be.useMemo)(function(){return Mt?Yt.slice(or+1):Yt.slice(mn.length)},[Yt,mn,Mt,or]),Nn=(0,be.useCallback)(function(Mn,kn){var Vn;return typeof Ft=="function"?Ft(Mn):(Vn=Ft&&(Mn==null?void 0:Mn[Ft]))!==null&&Vn!==void 0?Vn:kn},[Ft]),Wn=(0,be.useCallback)(lt||function(Mn){return Mn},[lt]);function Xn(Mn,kn,Vn){cr===Mn&&(kn===void 0||kn===Or)||(Ir(Mn),Vn||(He(Mn<Yt.length-1),ut==null||ut(Mn)),kn!==void 0&&br(kn))}function rn(Mn,kn){xn(kn.clientWidth)}function Tn(Mn,kn){Ae(function(Vn){var qn=new Map(Vn);return kn===null?qn.delete(Mn):qn.set(Mn,kn),qn})}function Nt(Mn,kn){tr(kn),hn(Kn)}function Jt(Mn,kn){Rr(kn)}function sn(Mn,kn){Hr(kn)}function fn(Mn){return ct.get(Nn(mn[Mn],Mn))}(0,Me.Z)(function(){if(xt&&typeof Ye=="number"&&mn){var Mn=Cr+Er,kn=mn.length,Vn=kn-1;if(!kn){Xn(0,null);return}for(var qn=0;qn<kn;qn+=1){var pr=fn(qn);if(_e&&(pr=pr||0),pr===void 0){Xn(qn-1,void 0,!0);break}if(Mn+=pr,Vn===0&&Mn<=xt||qn===Vn-1&&Mn+fn(Vn)<=xt){Xn(Vn,null);break}else if(Mn+Ye>xt){Xn(qn-1,Mn-pr-Er+Kn);break}}de&&fn(0)+Er>xt&&br(null)}},[xt,ct,Kn,Cr,Er,Nn,mn]);var In=_t&&!!ln.length,un={};Or!==null&&Mt&&(un={position:"absolute",left:Or,top:0});var Bn={prefixCls:nt,responsive:Mt,component:Oe,invalidate:Ut},ot=pt?function(Mn,kn){var Vn=Nn(Mn,kn);return be.createElement(st.Provider,{key:Vn,value:(0,De.Z)((0,De.Z)({},Bn),{},{order:kn,item:Mn,itemKey:Vn,registerSize:Tn,display:kn<=or})},pt(Mn,kn))}:function(Mn,kn){var Vn=Nn(Mn,kn);return be.createElement(et,(0,ce.Z)({},Bn,{order:kn,key:Vn,item:Mn,renderItem:Wn,itemKey:Vn,registerSize:Tn,display:kn<=or}))},tn={order:In?or:Number.MAX_SAFE_INTEGER,className:"".concat(nt,"-rest"),registerSize:Nt,display:In},nn=ye||at,En=ue?be.createElement(st.Provider,{value:(0,De.Z)((0,De.Z)({},Bn),tn)},ue(ln)):be.createElement(et,(0,ce.Z)({},Bn,tn),typeof nn=="function"?nn(ln):nn),gn=be.createElement(se,(0,ce.Z)({className:pe()(!Ut&&Et,an),style:Zt,ref:it},Ge),le&&be.createElement(et,(0,ce.Z)({},Bn,{responsive:qe,responsiveDisabled:!Mt,order:-1,className:"".concat(nt,"-prefix"),registerSize:Jt,display:!0}),le),mn.map(ot),An?En:null,de&&be.createElement(et,(0,ce.Z)({},Bn,{responsive:qe,responsiveDisabled:!Mt,order:or,className:"".concat(nt,"-suffix"),registerSize:sn,display:!0,style:un}),de));return qe?be.createElement(xe.Z,{onResize:rn,disabled:!Mt},gn):gn}var Lt=be.forwardRef(Wt);Lt.displayName="Overflow",Lt.Item=Ue,Lt.RESPONSIVE=Le,Lt.INVALIDATE=Bt;var Tt=Lt,Xt=Tt},91735:function(zn,en){"use strict";en.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"}},17115:function(zn,en,ae){"use strict";ae.d(en,{ZP:function(){return pe}});var ce=ae(72190),De=ae(59301),Te=ae(47273),dt=0,be=(0,Te.Z)();function ke(){var xe;return be?(xe=dt,dt+=1):xe="TEST_OR_SSR",xe}function pe(xe){var Me=De.useState(),Ke=(0,ce.Z)(Me,2),vt=Ke[0],Pe=Ke[1];return De.useEffect(function(){Pe("rc_select_".concat(ke()))},[]),xe||vt}},77861:function(zn,en,ae){"use strict";ae.d(en,{Ac:function(){return Dt},Xo:function(){return Kn},Wx:function(){return gr},ZP:function(){return nt},lk:function(){return st}});var ce=ae(60499),De=ae(77654),Te=ae(18642),dt=ae(85899),be=ae(72190),ke=ae(42244),pe=ae(43749),xe=ae(18929),Me=ae(48736),Ke=ae(59301),vt=ae(92310),Pe=ae.n(vt),Be=ae(34280),et=ae(49658),Je=ae(10228),tt=ae(8654),yt=function(qe){var Mt=qe.className,Ut=qe.customizeIcon,An=qe.customizeIconProps,mn=qe.onMouseDown,ln=qe.onClick,Nn=qe.children,Wn;return typeof Ut=="function"?Wn=Ut(An):Wn=Ut,Ke.createElement("span",{className:Mt,onMouseDown:function(rn){rn.preventDefault(),mn&&mn(rn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},Wn!==void 0?Wn:Ke.createElement("span",{className:Pe()(Mt.split(/\s+/).map(function(Xn){return"".concat(Xn,"-icon")}))},Nn))},wt=yt;function It(Ye,qe,Mt,Ut,An){var mn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ln=arguments.length>6?arguments[6]:void 0,Nn=arguments.length>7?arguments[7]:void 0,Wn=Ke.useMemo(function(){if((0,pe.Z)(Ut)==="object")return Ut.clearIcon;if(An)return An},[Ut,An]),Xn=Ke.useMemo(function(){return!!(!mn&&Ut&&(Mt.length||ln)&&!(Nn==="combobox"&&ln===""))},[Ut,mn,Mt.length,ln,Nn]);return{allowClear:Xn,clearIcon:Ke.createElement(wt,{className:"".concat(Ye,"-clear"),onMouseDown:qe,customizeIcon:Wn},"\xD7")}}var gt=Ke.createContext(null);function st(){return Ke.useContext(gt)}function ze(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,qe=Ke.useState(!1),Mt=(0,be.Z)(qe,2),Ut=Mt[0],An=Mt[1],mn=Ke.useRef(null),ln=function(){window.clearTimeout(mn.current)};Ke.useEffect(function(){return ln},[]);var Nn=function(Xn,rn){ln(),mn.current=window.setTimeout(function(){An(Xn),rn&&rn()},Ye)};return[Ut,Nn,ln]}function he(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,qe=Ke.useRef(null),Mt=Ke.useRef(null);Ke.useEffect(function(){return function(){window.clearTimeout(Mt.current)}},[]);function Ut(An){(An||qe.current===null)&&(qe.current=An),window.clearTimeout(Mt.current),Mt.current=window.setTimeout(function(){qe.current=null},Ye)}return[function(){return qe.current},Ut]}function je(Ye,qe,Mt,Ut){var An=Ke.useRef(null);An.current={open:qe,triggerOpen:Mt,customizedTrigger:Ut},Ke.useEffect(function(){function mn(ln){var Nn;if(!((Nn=An.current)!==null&&Nn!==void 0&&Nn.customizedTrigger)){var Wn=ln.target;Wn.shadowRoot&&ln.composed&&(Wn=ln.composedPath()[0]||Wn),An.current.open&&Ye().filter(function(Xn){return Xn}).every(function(Xn){return!Xn.contains(Wn)&&Xn!==Wn})&&An.current.triggerOpen(!1)}}return window.addEventListener("mousedown",mn),function(){return window.removeEventListener("mousedown",mn)}},[])}var Xe=ae(26112),Qe=ae(83836),Ue=function(qe,Mt){var Ut,An,mn=qe.prefixCls,ln=qe.id,Nn=qe.inputElement,Wn=qe.disabled,Xn=qe.tabIndex,rn=qe.autoFocus,Tn=qe.autoComplete,Nt=qe.editable,Jt=qe.activeDescendantId,sn=qe.value,fn=qe.maxLength,In=qe.onKeyDown,un=qe.onMouseDown,Bn=qe.onChange,ot=qe.onPaste,tn=qe.onCompositionStart,nn=qe.onCompositionEnd,En=qe.open,gn=qe.attrs,Mn=Nn||Ke.createElement("input",null),kn=Mn,Vn=kn.ref,qn=kn.props,pr=qn.onKeyDown,Tr=qn.onChange,Jr=qn.onMouseDown,ai=qn.onCompositionStart,Nr=qn.onCompositionEnd,yr=qn.style;return(0,Me.Kp)(!("maxLength"in Mn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Mn=Ke.cloneElement(Mn,(0,dt.Z)((0,dt.Z)((0,dt.Z)({type:"search"},qn),{},{id:ln,ref:(0,tt.sQ)(Mt,Vn),disabled:Wn,tabIndex:Xn,autoComplete:Tn||"off",autoFocus:rn,className:Pe()("".concat(mn,"-selection-search-input"),(Ut=Mn)===null||Ut===void 0||(An=Ut.props)===null||An===void 0?void 0:An.className),role:"combobox","aria-label":"Search","aria-expanded":En||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ln,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ln,"_list"),"aria-activedescendant":En?Jt:void 0},gn),{},{value:Nt?sn:"",maxLength:fn,readOnly:!Nt,unselectable:Nt?null:"on",style:(0,dt.Z)((0,dt.Z)({},yr),{},{opacity:Nt?null:0}),onKeyDown:function(ti){In(ti),pr&&pr(ti)},onMouseDown:function(ti){un(ti),Jr&&Jr(ti)},onChange:function(ti){Bn(ti),Tr&&Tr(ti)},onCompositionStart:function(ti){tn(ti),ai&&ai(ti)},onCompositionEnd:function(ti){nn(ti),Nr&&Nr(ti)},onPaste:ot})),Mn},mt=Ke.forwardRef(Ue);mt.displayName="Input";var Le=mt;function Bt(Ye){return Array.isArray(Ye)?Ye:Ye!==void 0?[Ye]:[]}var at=typeof window!="undefined"&&window.document&&window.document.documentElement,Wt=at;function Lt(Ye){return Ye!=null}function Tt(Ye){return!Ye&&Ye!==0}function Xt(Ye){return["string","number"].includes((0,pe.Z)(Ye))}function jt(Ye){var qe=void 0;return Ye&&(Xt(Ye.title)?qe=Ye.title.toString():Xt(Ye.label)&&(qe=Ye.label.toString())),qe}function it(Ye,qe){Wt?Ke.useLayoutEffect(Ye,qe):Ke.useEffect(Ye,qe)}function Ce(Ye){var qe;return(qe=Ye.key)!==null&&qe!==void 0?qe:Ye.value}var Et=function(qe){qe.preventDefault(),qe.stopPropagation()},on=function(qe){var Mt=qe.id,Ut=qe.prefixCls,An=qe.values,mn=qe.open,ln=qe.searchValue,Nn=qe.autoClearSearchValue,Wn=qe.inputRef,Xn=qe.placeholder,rn=qe.disabled,Tn=qe.mode,Nt=qe.showSearch,Jt=qe.autoFocus,sn=qe.autoComplete,fn=qe.activeDescendantId,In=qe.tabIndex,un=qe.removeIcon,Bn=qe.maxTagCount,ot=qe.maxTagTextLength,tn=qe.maxTagPlaceholder,nn=tn===void 0?function(Ai){return"+ ".concat(Ai.length," ...")}:tn,En=qe.tagRender,gn=qe.onToggleOpen,Mn=qe.onRemove,kn=qe.onInputChange,Vn=qe.onInputPaste,qn=qe.onInputKeyDown,pr=qe.onInputMouseDown,Tr=qe.onInputCompositionStart,Jr=qe.onInputCompositionEnd,ai=Ke.useRef(null),Nr=(0,Ke.useState)(0),yr=(0,be.Z)(Nr,2),di=yr[0],ti=yr[1],vi=(0,Ke.useState)(!1),Wr=(0,be.Z)(vi,2),jr=Wr[0],yi=Wr[1],ui="".concat(Ut,"-selection"),$i=mn||Tn==="multiple"&&Nn===!1||Tn==="tags"?ln:"",sa=Tn==="tags"||Tn==="multiple"&&Nn===!1||Nt&&(mn||jr);it(function(){ti(ai.current.scrollWidth)},[$i]);function oi(Ai,Ti,mi,Ci,Pa){return Ke.createElement("span",{className:Pe()("".concat(ui,"-item"),(0,Te.Z)({},"".concat(ui,"-item-disabled"),mi)),title:jt(Ai)},Ke.createElement("span",{className:"".concat(ui,"-item-content")},Ti),Ci&&Ke.createElement(wt,{className:"".concat(ui,"-item-remove"),onMouseDown:Et,onClick:Pa,customizeIcon:un},"\xD7"))}function ar(Ai,Ti,mi,Ci,Pa){var _r=function(Pi){Et(Pi),gn(!mn)};return Ke.createElement("span",{onMouseDown:_r},En({label:Ti,value:Ai,disabled:mi,closable:Ci,onClose:Pa}))}function rr(Ai){var Ti=Ai.disabled,mi=Ai.label,Ci=Ai.value,Pa=!rn&&!Ti,_r=mi;if(typeof ot=="number"&&(typeof mi=="string"||typeof mi=="number")){var Xr=String(_r);Xr.length>ot&&(_r="".concat(Xr.slice(0,ot),"..."))}var Pi=function(Na){Na&&Na.stopPropagation(),Mn(Ai)};return typeof En=="function"?ar(Ci,_r,Ti,Pa,Pi):oi(Ai,_r,Ti,Pa,Pi)}function pi(Ai){var Ti=typeof nn=="function"?nn(Ai):nn;return oi({title:Ti},Ti,!1)}var ni=Ke.createElement("div",{className:"".concat(ui,"-search"),style:{width:di},onFocus:function(){yi(!0)},onBlur:function(){yi(!1)}},Ke.createElement(Le,{ref:Wn,open:mn,prefixCls:Ut,id:Mt,inputElement:null,disabled:rn,autoFocus:Jt,autoComplete:sn,editable:sa,activeDescendantId:fn,value:$i,onKeyDown:qn,onMouseDown:pr,onChange:kn,onPaste:Vn,onCompositionStart:Tr,onCompositionEnd:Jr,tabIndex:In,attrs:(0,Xe.Z)(qe,!0)}),Ke.createElement("span",{ref:ai,className:"".concat(ui,"-search-mirror"),"aria-hidden":!0},$i,"\xA0")),ki=Ke.createElement(Qe.Z,{prefixCls:"".concat(ui,"-overflow"),data:An,renderItem:rr,renderRest:pi,suffix:ni,itemKey:Ce,maxCount:Bn});return Ke.createElement(Ke.Fragment,null,ki,!An.length&&!$i&&Ke.createElement("span",{className:"".concat(ui,"-placeholder")},Xn))},Yt=on,lt=function(qe){var Mt=qe.inputElement,Ut=qe.prefixCls,An=qe.id,mn=qe.inputRef,ln=qe.disabled,Nn=qe.autoFocus,Wn=qe.autoComplete,Xn=qe.activeDescendantId,rn=qe.mode,Tn=qe.open,Nt=qe.values,Jt=qe.placeholder,sn=qe.tabIndex,fn=qe.showSearch,In=qe.searchValue,un=qe.activeValue,Bn=qe.maxLength,ot=qe.onInputKeyDown,tn=qe.onInputMouseDown,nn=qe.onInputChange,En=qe.onInputPaste,gn=qe.onInputCompositionStart,Mn=qe.onInputCompositionEnd,kn=qe.title,Vn=Ke.useState(!1),qn=(0,be.Z)(Vn,2),pr=qn[0],Tr=qn[1],Jr=rn==="combobox",ai=Jr||fn,Nr=Nt[0],yr=In||"";Jr&&un&&!pr&&(yr=un),Ke.useEffect(function(){Jr&&Tr(!1)},[Jr,un]);var di=rn!=="combobox"&&!Tn&&!fn?!1:!!yr,ti=kn===void 0?jt(Nr):kn,vi=function(){if(Nr)return null;var jr=di?{visibility:"hidden"}:void 0;return Ke.createElement("span",{className:"".concat(Ut,"-selection-placeholder"),style:jr},Jt)};return Ke.createElement(Ke.Fragment,null,Ke.createElement("span",{className:"".concat(Ut,"-selection-search")},Ke.createElement(Le,{ref:mn,prefixCls:Ut,id:An,open:Tn,inputElement:Mt,disabled:ln,autoFocus:Nn,autoComplete:Wn,editable:ai,activeDescendantId:Xn,value:yr,onKeyDown:ot,onMouseDown:tn,onChange:function(jr){Tr(!0),nn(jr)},onPaste:En,onCompositionStart:gn,onCompositionEnd:Mn,tabIndex:sn,attrs:(0,Xe.Z)(qe,!0),maxLength:Jr?Bn:void 0})),!Jr&&Nr?Ke.createElement("span",{className:"".concat(Ut,"-selection-item"),title:ti,style:di?{visibility:"hidden"}:void 0},Nr.label):null,vi())},pt=lt;function Ft(Ye){return![Je.Z.ESC,Je.Z.SHIFT,Je.Z.BACKSPACE,Je.Z.TAB,Je.Z.WIN_KEY,Je.Z.ALT,Je.Z.META,Je.Z.WIN_KEY_RIGHT,Je.Z.CTRL,Je.Z.SEMICOLON,Je.Z.EQUALS,Je.Z.CAPS_LOCK,Je.Z.CONTEXT_MENU,Je.Z.F1,Je.Z.F2,Je.Z.F3,Je.Z.F4,Je.Z.F5,Je.Z.F6,Je.Z.F7,Je.Z.F8,Je.Z.F9,Je.Z.F10,Je.Z.F11,Je.Z.F12].includes(Ye)}var Sn=function(qe,Mt){var Ut=(0,Ke.useRef)(null),An=(0,Ke.useRef)(!1),mn=qe.prefixCls,ln=qe.open,Nn=qe.mode,Wn=qe.showSearch,Xn=qe.tokenWithEnter,rn=qe.autoClearSearchValue,Tn=qe.onSearch,Nt=qe.onSearchSubmit,Jt=qe.onToggleOpen,sn=qe.onInputKeyDown,fn=qe.domRef;Ke.useImperativeHandle(Mt,function(){return{focus:function(){Ut.current.focus()},blur:function(){Ut.current.blur()}}});var In=he(0),un=(0,be.Z)(In,2),Bn=un[0],ot=un[1],tn=function(yr){var di=yr.which;(di===Je.Z.UP||di===Je.Z.DOWN)&&yr.preventDefault(),sn&&sn(yr),di===Je.Z.ENTER&&Nn==="tags"&&!An.current&&!ln&&(Nt==null||Nt(yr.target.value)),Ft(di)&&Jt(!0)},nn=function(){ot(!0)},En=(0,Ke.useRef)(null),gn=function(yr){Tn(yr,!0,An.current)!==!1&&Jt(!0)},Mn=function(){An.current=!0},kn=function(yr){An.current=!1,Nn!=="combobox"&&gn(yr.target.value)},Vn=function(yr){var di=yr.target.value;if(Xn&&En.current&&/[\r\n]/.test(En.current)){var ti=En.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");di=di.replace(ti,En.current)}En.current=null,gn(di)},qn=function(yr){var di=yr.clipboardData,ti=di.getData("text");En.current=ti},pr=function(yr){var di=yr.target;if(di!==Ut.current){var ti=document.body.style.msTouchAction!==void 0;ti?setTimeout(function(){Ut.current.focus()}):Ut.current.focus()}},Tr=function(yr){var di=Bn();yr.target!==Ut.current&&!di&&Nn!=="combobox"&&yr.preventDefault(),(Nn!=="combobox"&&(!Wn||!di)||!ln)&&(ln&&rn!==!1&&Tn("",!0,!1),Jt())},Jr={inputRef:Ut,onInputKeyDown:tn,onInputMouseDown:nn,onInputChange:Vn,onInputPaste:qn,onInputCompositionStart:Mn,onInputCompositionEnd:kn},ai=Nn==="multiple"||Nn==="tags"?Ke.createElement(Yt,(0,ce.Z)({},qe,Jr)):Ke.createElement(pt,(0,ce.Z)({},qe,Jr));return Ke.createElement("div",{ref:fn,className:"".concat(mn,"-selector"),onClick:pr,onMouseDown:Tr},ai)},$t=Ke.forwardRef(Sn);$t.displayName="Selector";var Pn=$t,Zt=ae(35593),an=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ht=function(qe){var Mt=qe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Mt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Mt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Mt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Mt,adjustY:1},htmlRegion:"scroll"}}},ye=function(qe,Mt){var Ut=qe.prefixCls,An=qe.disabled,mn=qe.visible,ln=qe.children,Nn=qe.popupElement,Wn=qe.animation,Xn=qe.transitionName,rn=qe.dropdownStyle,Tn=qe.dropdownClassName,Nt=qe.direction,Jt=Nt===void 0?"ltr":Nt,sn=qe.placement,fn=qe.builtinPlacements,In=qe.dropdownMatchSelectWidth,un=qe.dropdownRender,Bn=qe.dropdownAlign,ot=qe.getPopupContainer,tn=qe.empty,nn=qe.getTriggerDOMNode,En=qe.onPopupVisibleChange,gn=qe.onPopupMouseEnter,Mn=(0,ke.Z)(qe,an),kn="".concat(Ut,"-dropdown"),Vn=Nn;un&&(Vn=un(Nn));var qn=Ke.useMemo(function(){return fn||Ht(In)},[fn,In]),pr=Wn?"".concat(kn,"-").concat(Wn):Xn,Tr=typeof In=="number",Jr=Ke.useMemo(function(){return Tr?null:In===!1?"minWidth":"width"},[In,Tr]),ai=rn;Tr&&(ai=(0,dt.Z)((0,dt.Z)({},ai),{},{width:In}));var Nr=Ke.useRef(null);return Ke.useImperativeHandle(Mt,function(){return{getPopupElement:function(){return Nr.current}}}),Ke.createElement(Zt.Z,(0,ce.Z)({},Mn,{showAction:En?["click"]:[],hideAction:En?["click"]:[],popupPlacement:sn||(Jt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:qn,prefixCls:kn,popupTransitionName:pr,popup:Ke.createElement("div",{ref:Nr,onMouseEnter:gn},Vn),stretch:Jr,popupAlign:Bn,popupVisible:mn,getPopupContainer:ot,popupClassName:Pe()(Tn,(0,Te.Z)({},"".concat(kn,"-empty"),tn)),popupStyle:ai,getTriggerDOMNode:nn,onPopupVisibleChange:En}),ln)},ue=Ke.forwardRef(ye);ue.displayName="SelectTrigger";var le=ue,de=ae(48745);function ge(Ye,qe){var Mt=Ye.key,Ut;return"value"in Ye&&(Ut=Ye.value),Mt!=null?Mt:Ut!==void 0?Ut:"rc-index-key-".concat(qe)}function se(Ye,qe){var Mt=Ye||{},Ut=Mt.label,An=Mt.value,mn=Mt.options,ln=Mt.groupLabel,Nn=Ut||(qe?"children":"label");return{label:Nn,value:An||"value",options:mn||"options",groupLabel:ln||Nn}}function Oe(Ye){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Mt=qe.fieldNames,Ut=qe.childrenAsData,An=[],mn=se(Mt,!1),ln=mn.label,Nn=mn.value,Wn=mn.options,Xn=mn.groupLabel;function rn(Tn,Nt){Tn.forEach(function(Jt){if(Nt||!(Wn in Jt)){var sn=Jt[Nn];An.push({key:ge(Jt,An.length),groupOption:Nt,data:Jt,label:Jt[ln],value:sn})}else{var fn=Jt[Xn];fn===void 0&&Ut&&(fn=Jt.label),An.push({key:ge(Jt,An.length),group:!0,data:Jt,label:fn}),rn(Jt[Wn],!0)}})}return rn(Ye,!1),An}function ut(Ye){var qe=(0,dt.Z)({},Ye);return"props"in qe||Object.defineProperty(qe,"props",{get:function(){return(0,Me.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),qe}}),qe}function Ge(Ye,qe){if(!qe||!qe.length)return null;var Mt=!1;function Ut(mn,ln){var Nn=(0,de.Z)(ln),Wn=Nn[0],Xn=Nn.slice(1);if(!Wn)return[mn];var rn=mn.split(Wn);return Mt=Mt||rn.length>1,rn.reduce(function(Tn,Nt){return[].concat((0,De.Z)(Tn),(0,De.Z)(Ut(Nt,Xn)))},[]).filter(function(Tn){return Tn})}var An=Ut(Ye,qe);return Mt?An:null}var _e=["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"],St=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function bt(Ye){return Ye==="tags"||Ye==="multiple"}var rt=Ke.forwardRef(function(Ye,qe){var Mt,Ut,An=Ye.id,mn=Ye.prefixCls,ln=Ye.className,Nn=Ye.showSearch,Wn=Ye.tagRender,Xn=Ye.direction,rn=Ye.omitDomProps,Tn=Ye.displayValues,Nt=Ye.onDisplayValuesChange,Jt=Ye.emptyOptions,sn=Ye.notFoundContent,fn=sn===void 0?"Not Found":sn,In=Ye.onClear,un=Ye.mode,Bn=Ye.disabled,ot=Ye.loading,tn=Ye.getInputElement,nn=Ye.getRawInputElement,En=Ye.open,gn=Ye.defaultOpen,Mn=Ye.onDropdownVisibleChange,kn=Ye.activeValue,Vn=Ye.onActiveValueChange,qn=Ye.activeDescendantId,pr=Ye.searchValue,Tr=Ye.autoClearSearchValue,Jr=Ye.onSearch,ai=Ye.onSearchSplit,Nr=Ye.tokenSeparators,yr=Ye.allowClear,di=Ye.suffixIcon,ti=Ye.clearIcon,vi=Ye.OptionList,Wr=Ye.animation,jr=Ye.transitionName,yi=Ye.dropdownStyle,ui=Ye.dropdownClassName,$i=Ye.dropdownMatchSelectWidth,sa=Ye.dropdownRender,oi=Ye.dropdownAlign,ar=Ye.placement,rr=Ye.builtinPlacements,pi=Ye.getPopupContainer,ni=Ye.showAction,ki=ni===void 0?[]:ni,Ai=Ye.onFocus,Ti=Ye.onBlur,mi=Ye.onKeyUp,Ci=Ye.onKeyDown,Pa=Ye.onMouseDown,_r=(0,ke.Z)(Ye,_e),Xr=bt(un),Pi=(Nn!==void 0?Nn:Xr)||un==="combobox",Hi=(0,dt.Z)({},_r);St.forEach(function(to){delete Hi[to]}),rn==null||rn.forEach(function(to){delete Hi[to]});var Na=Ke.useState(!1),Ra=(0,be.Z)(Na,2),ka=Ra[0],ha=Ra[1];Ke.useEffect(function(){ha((0,et.Z)())},[]);var Qa=Ke.useRef(null),Ja=Ke.useRef(null),Gr=Ke.useRef(null),Zr=Ke.useRef(null),Kr=Ke.useRef(null),fi=ze(),ga=(0,be.Z)(fi,3),Fa=ga[0],Ua=ga[1],za=ga[2];Ke.useImperativeHandle(qe,function(){var to,Ha;return{focus:(to=Zr.current)===null||to===void 0?void 0:to.focus,blur:(Ha=Zr.current)===null||Ha===void 0?void 0:Ha.blur,scrollTo:function(is){var Uo;return(Uo=Kr.current)===null||Uo===void 0?void 0:Uo.scrollTo(is)}}});var Ta=Ke.useMemo(function(){var to;if(un!=="combobox")return pr;var Ha=(to=Tn[0])===null||to===void 0?void 0:to.value;return typeof Ha=="string"||typeof Ha=="number"?String(Ha):""},[pr,un,Tn]),lo=un==="combobox"&&typeof tn=="function"&&tn()||null,jo=typeof nn=="function"&&nn(),_o=(0,tt.x1)(Ja,jo==null||(Mt=jo.props)===null||Mt===void 0?void 0:Mt.ref),hs=Ke.useState(!1),la=(0,be.Z)(hs,2),ya=la[0],po=la[1];(0,Be.Z)(function(){po(!0)},[]);var La=(0,xe.Z)(!1,{defaultValue:gn,value:En}),$a=(0,be.Z)(La,2),Ya=$a[0],Za=$a[1],Oi=ya?Ya:!1,ua=!fn&&Jt;(Bn||ua&&Oi&&un==="combobox")&&(Oi=!1);var ra=ua?!1:Oi,Wi=Ke.useCallback(function(to){var Ha=to!==void 0?to:!Oi;Bn||(Za(Ha),Oi!==Ha&&(Mn==null||Mn(Ha)))},[Bn,Oi,Za,Mn]),Oa=Ke.useMemo(function(){return(Nr||[]).some(function(to){return[`
|
|
|
`,`\r
|
|
|
`].includes(to)})},[Nr]),Ba=function(Ha,Ko,is){var Uo=!0,Ns=Ha;Vn==null||Vn(null);var Ks=is?null:Ge(Ha,Nr);return un!=="combobox"&&Ks&&(Ns="",ai==null||ai(Ks),Wi(!1),Uo=!1),Jr&&Ta!==Ns&&Jr(Ns,{source:Ko?"typing":"effect"}),Uo},zo=function(Ha){!Ha||!Ha.trim()||Jr(Ha,{source:"submit"})};Ke.useEffect(function(){!Oi&&!Xr&&un!=="combobox"&&Ba("",!1,!1)},[Oi]),Ke.useEffect(function(){Ya&&Bn&&Za(!1),Bn&&Ua(!1)},[Bn]);var Vo=he(),$o=(0,be.Z)(Vo,2),Qo=$o[0],qa=$o[1],eo=function(Ha){var Ko=Qo(),is=Ha.which;if(is===Je.Z.ENTER&&(un!=="combobox"&&Ha.preventDefault(),Oi||Wi(!0)),qa(!!Ta),is===Je.Z.BACKSPACE&&!Ko&&Xr&&!Ta&&Tn.length){for(var Uo=(0,De.Z)(Tn),Ns=null,Ks=Uo.length-1;Ks>=0;Ks-=1){var cl=Uo[Ks];if(!cl.disabled){Uo.splice(Ks,1),Ns=cl;break}}Ns&&Nt(Uo,{type:"remove",values:[Ns]})}for(var Hs=arguments.length,Dl=new Array(Hs>1?Hs-1:0),vl=1;vl<Hs;vl++)Dl[vl-1]=arguments[vl];if(Oi&&Kr.current){var Zs;(Zs=Kr.current).onKeyDown.apply(Zs,[Ha].concat(Dl))}Ci==null||Ci.apply(void 0,[Ha].concat(Dl))},ns=function(Ha){for(var Ko=arguments.length,is=new Array(Ko>1?Ko-1:0),Uo=1;Uo<Ko;Uo++)is[Uo-1]=arguments[Uo];if(Oi&&Kr.current){var Ns;(Ns=Kr.current).onKeyUp.apply(Ns,[Ha].concat(is))}mi==null||mi.apply(void 0,[Ha].concat(is))},rs=function(Ha){var Ko=Tn.filter(function(is){return is!==Ha});Nt(Ko,{type:"remove",values:[Ha]})},ps=Ke.useRef(!1),Jo=function(){Ua(!0),Bn||(Ai&&!ps.current&&Ai.apply(void 0,arguments),ki.includes("focus")&&Wi(!0)),ps.current=!0},Vl=function(){Ua(!1,function(){ps.current=!1,Wi(!1)}),!Bn&&(Ta&&(un==="tags"?Jr(Ta,{source:"submit"}):un==="multiple"&&Jr("",{source:"blur"})),Ti&&Ti.apply(void 0,arguments))},Cl=[];Ke.useEffect(function(){return function(){Cl.forEach(function(to){return clearTimeout(to)}),Cl.splice(0,Cl.length)}},[]);var Sl=function(Ha){var Ko,is=Ha.target,Uo=(Ko=Gr.current)===null||Ko===void 0?void 0:Ko.getPopupElement();if(Uo&&Uo.contains(is)){var Ns=setTimeout(function(){var Dl=Cl.indexOf(Ns);if(Dl!==-1&&Cl.splice(Dl,1),za(),!ka&&!Uo.contains(document.activeElement)){var vl;(vl=Zr.current)===null||vl===void 0||vl.focus()}});Cl.push(Ns)}for(var Ks=arguments.length,cl=new Array(Ks>1?Ks-1:0),Hs=1;Hs<Ks;Hs++)cl[Hs-1]=arguments[Hs];Pa==null||Pa.apply(void 0,[Ha].concat(cl))},el=Ke.useState({}),vu=(0,be.Z)(el,2),tl=vu[1];function Ls(){tl({})}var ms;jo&&(ms=function(Ha){Wi(Ha)}),je(function(){var to;return[Qa.current,(to=Gr.current)===null||to===void 0?void 0:to.getPopupElement()]},ra,Wi,!!jo);var kl=Ke.useMemo(function(){return(0,dt.Z)((0,dt.Z)({},Ye),{},{notFoundContent:fn,open:Oi,triggerOpen:ra,id:An,showSearch:Pi,multiple:Xr,toggleOpen:Wi})},[Ye,fn,ra,Oi,An,Pi,Xr,Wi]),Ol=!!di||ot,Nl;Ol&&(Nl=Ke.createElement(wt,{className:Pe()("".concat(mn,"-arrow"),(0,Te.Z)({},"".concat(mn,"-arrow-loading"),ot)),customizeIcon:di,customizeIconProps:{loading:ot,searchValue:Ta,open:Oi,focused:Fa,showSearch:Pi}}));var au=function(){var Ha;In==null||In(),(Ha=Zr.current)===null||Ha===void 0||Ha.focus(),Nt([],{type:"clear",values:Tn}),Ba("",!1,!1)},Fl=It(mn,au,Tn,yr,ti,Bn,Ta,un),Os=Fl.allowClear,gs=Fl.clearIcon,Do=Ke.createElement(vi,{ref:Kr}),zl=Pe()(mn,ln,(Ut={},(0,Te.Z)(Ut,"".concat(mn,"-focused"),Fa),(0,Te.Z)(Ut,"".concat(mn,"-multiple"),Xr),(0,Te.Z)(Ut,"".concat(mn,"-single"),!Xr),(0,Te.Z)(Ut,"".concat(mn,"-allow-clear"),yr),(0,Te.Z)(Ut,"".concat(mn,"-show-arrow"),Ol),(0,Te.Z)(Ut,"".concat(mn,"-disabled"),Bn),(0,Te.Z)(Ut,"".concat(mn,"-loading"),ot),(0,Te.Z)(Ut,"".concat(mn,"-open"),Oi),(0,Te.Z)(Ut,"".concat(mn,"-customize-input"),lo),(0,Te.Z)(Ut,"".concat(mn,"-show-search"),Pi),Ut)),yu=Ke.createElement(le,{ref:Gr,disabled:Bn,prefixCls:mn,visible:ra,popupElement:Do,animation:Wr,transitionName:jr,dropdownStyle:yi,dropdownClassName:ui,direction:Xn,dropdownMatchSelectWidth:$i,dropdownRender:sa,dropdownAlign:oi,placement:ar,builtinPlacements:rr,getPopupContainer:pi,empty:Jt,getTriggerDOMNode:function(){return Ja.current},onPopupVisibleChange:ms,onPopupMouseEnter:Ls},jo?Ke.cloneElement(jo,{ref:_o}):Ke.createElement(Pn,(0,ce.Z)({},Ye,{domRef:Ja,prefixCls:mn,inputElement:lo,ref:Zr,id:An,showSearch:Pi,autoClearSearchValue:Tr,mode:un,activeDescendantId:qn,tagRender:Wn,values:Tn,open:Oi,onToggleOpen:Wi,activeValue:kn,searchValue:Ta,onSearch:Ba,onSearchSubmit:zo,onRemove:rs,tokenWithEnter:Oa}))),nl;return jo?nl=yu:nl=Ke.createElement("div",(0,ce.Z)({className:zl},Hi,{ref:Qa,onMouseDown:Sl,onKeyDown:eo,onKeyUp:ns,onFocus:Jo,onBlur:Vl}),Fa&&!Oi&&Ke.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Tn.map(function(to){var Ha=to.label,Ko=to.value;return["number","string"].includes((0,pe.Z)(Ha))?Ha:Ko}).join(", "))),yu,Nl,Os&&gs),Ke.createElement(gt.Provider,{value:kl},nl)}),Dt=rt,xn=function(Ye,qe){var Mt=Ke.useRef({values:new Map,options:new Map}),Ut=Ke.useMemo(function(){var mn=Mt.current,ln=mn.values,Nn=mn.options,Wn=Ye.map(function(Tn){if(Tn.label===void 0){var Nt;return(0,dt.Z)((0,dt.Z)({},Tn),{},{label:(Nt=ln.get(Tn.value))===null||Nt===void 0?void 0:Nt.label})}return Tn}),Xn=new Map,rn=new Map;return Wn.forEach(function(Tn){Xn.set(Tn.value,Tn),rn.set(Tn.value,qe.get(Tn.value)||Nn.get(Tn.value))}),Mt.current.values=Xn,Mt.current.options=rn,Wn},[Ye,qe]),An=Ke.useCallback(function(mn){return qe.get(mn)||Mt.current.options.get(mn)},[qe]);return[Ut,An]};function xt(Ye,qe){return Bt(Ye).join("").toUpperCase().includes(qe)}var Rt=function(Ye,qe,Mt,Ut,An){return Ke.useMemo(function(){if(!Mt||Ut===!1)return Ye;var mn=qe.options,ln=qe.label,Nn=qe.value,Wn=[],Xn=typeof Ut=="function",rn=Mt.toUpperCase(),Tn=Xn?Ut:function(Jt,sn){return An?xt(sn[An],rn):sn[mn]?xt(sn[ln!=="children"?ln:"label"],rn):xt(sn[Nn],rn)},Nt=Xn?function(Jt){return ut(Jt)}:function(Jt){return Jt};return Ye.forEach(function(Jt){if(Jt[mn]){var sn=Tn(Mt,Nt(Jt));if(sn)Wn.push(Jt);else{var fn=Jt[mn].filter(function(In){return Tn(Mt,Nt(In))});fn.length&&Wn.push((0,dt.Z)((0,dt.Z)({},Jt),{},(0,Te.Z)({},mn,fn)))}return}Tn(Mt,Nt(Jt))&&Wn.push(Jt)}),Wn},[Ye,Ut,An,Mt,qe])},cn=ae(17115),ct=ae(11592),Ae=["children","value"],Ve=["children"];function Kt(Ye){var qe=Ye,Mt=qe.key,Ut=qe.props,An=Ut.children,mn=Ut.value,ln=(0,ke.Z)(Ut,Ae);return(0,dt.Z)({key:Mt,value:mn!==void 0?mn:Mt,children:An},ln)}function Gt(Ye){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ct.Z)(Ye).map(function(Mt,Ut){if(!Ke.isValidElement(Mt)||!Mt.type)return null;var An=Mt,mn=An.type.isSelectOptGroup,ln=An.key,Nn=An.props,Wn=Nn.children,Xn=(0,ke.Z)(Nn,Ve);return qe||!mn?Kt(Mt):(0,dt.Z)((0,dt.Z)({key:"__RC_SELECT_GRP__".concat(ln===null?Ut:ln,"__"),label:ln},Xn),{},{options:Gt(Wn)})}).filter(function(Mt){return Mt})}function hn(Ye,qe,Mt,Ut,An){return Ke.useMemo(function(){var mn=Ye,ln=!Ye;ln&&(mn=Gt(qe));var Nn=new Map,Wn=new Map,Xn=function(Nt,Jt,sn){sn&&typeof sn=="string"&&Nt.set(Jt[sn],Jt)};function rn(Tn){for(var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt=0;Jt<Tn.length;Jt+=1){var sn=Tn[Jt];!sn[Mt.options]||Nt?(Nn.set(sn[Mt.value],sn),Xn(Wn,sn,Mt.label),Xn(Wn,sn,Ut),Xn(Wn,sn,An)):rn(sn[Mt.options],!0)}}return rn(mn),{options:mn,valueOptions:Nn,labelOptions:Wn}},[Ye,qe,Mt,Ut,An])}function On(Ye){var qe=Ke.useRef();qe.current=Ye;var Mt=Ke.useCallback(function(){return qe.current.apply(qe,arguments)},[]);return Mt}var Ln=function(){return null};Ln.isSelectOptGroup=!0;var Kn=Ln,tr=function(){return null};tr.isSelectOption=!0;var gr=tr,Un=ae(80547),Cr=ae(2738),Rr=ae(48911),$r=Ke.createContext(null),vr=$r;function Er(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Hr=["disabled","title","children","style","className"];function wn(Ye){return typeof Ye=="string"||typeof Ye=="number"}var Zn=function(qe,Mt){var Ut=st(),An=Ut.prefixCls,mn=Ut.id,ln=Ut.open,Nn=Ut.multiple,Wn=Ut.mode,Xn=Ut.searchValue,rn=Ut.toggleOpen,Tn=Ut.notFoundContent,Nt=Ut.onPopupScroll,Jt=Ke.useContext(vr),sn=Jt.flattenOptions,fn=Jt.onActiveValue,In=Jt.defaultActiveFirstOption,un=Jt.onSelect,Bn=Jt.menuItemSelectedIcon,ot=Jt.rawValues,tn=Jt.fieldNames,nn=Jt.virtual,En=Jt.direction,gn=Jt.listHeight,Mn=Jt.listItemHeight,kn="".concat(An,"-item"),Vn=(0,Un.Z)(function(){return sn},[ln,sn],function(oi,ar){return ar[0]&&oi[1]!==ar[1]}),qn=Ke.useRef(null),pr=function(ar){ar.preventDefault()},Tr=function(ar){qn.current&&qn.current.scrollTo(typeof ar=="number"?{index:ar}:ar)},Jr=function(ar){for(var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pi=Vn.length,ni=0;ni<pi;ni+=1){var ki=(ar+ni*rr+pi)%pi,Ai=Vn[ki],Ti=Ai.group,mi=Ai.data;if(!Ti&&!mi.disabled)return ki}return-1},ai=Ke.useState(function(){return Jr(0)}),Nr=(0,be.Z)(ai,2),yr=Nr[0],di=Nr[1],ti=function(ar){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;di(ar);var pi={source:rr?"keyboard":"mouse"},ni=Vn[ar];if(!ni){fn(null,-1,pi);return}fn(ni.value,ar,pi)};(0,Ke.useEffect)(function(){ti(In!==!1?Jr(0):-1)},[Vn.length,Xn]);var vi=Ke.useCallback(function(oi){return ot.has(oi)&&Wn!=="combobox"},[Wn,(0,De.Z)(ot).toString(),ot.size]);(0,Ke.useEffect)(function(){var oi=setTimeout(function(){if(!Nn&&ln&&ot.size===1){var rr=Array.from(ot)[0],pi=Vn.findIndex(function(ni){var ki=ni.data;return ki.value===rr});pi!==-1&&(ti(pi),Tr(pi))}});if(ln){var ar;(ar=qn.current)===null||ar===void 0||ar.scrollTo(void 0)}return function(){return clearTimeout(oi)}},[ln,Xn,sn.length]);var Wr=function(ar){ar!==void 0&&un(ar,{selected:!ot.has(ar)}),Nn||rn(!1)};if(Ke.useImperativeHandle(Mt,function(){return{onKeyDown:function(ar){var rr=ar.which,pi=ar.ctrlKey;switch(rr){case Je.Z.N:case Je.Z.P:case Je.Z.UP:case Je.Z.DOWN:{var ni=0;if(rr===Je.Z.UP?ni=-1:rr===Je.Z.DOWN?ni=1:Er()&&pi&&(rr===Je.Z.N?ni=1:rr===Je.Z.P&&(ni=-1)),ni!==0){var ki=Jr(yr+ni,ni);Tr(ki),ti(ki,!0)}break}case Je.Z.ENTER:{var Ai=Vn[yr];Ai&&!Ai.data.disabled?Wr(Ai.value):Wr(void 0),ln&&ar.preventDefault();break}case Je.Z.ESC:rn(!1),ln&&ar.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ar){Tr(ar)}}}),Vn.length===0)return Ke.createElement("div",{role:"listbox",id:"".concat(mn,"_list"),className:"".concat(kn,"-empty"),onMouseDown:pr},Tn);var jr=Object.keys(tn).map(function(oi){return tn[oi]}),yi=function(ar){return ar.label};function ui(oi,ar){var rr=oi.group;return{role:rr?"presentation":"option",id:"".concat(mn,"_list_").concat(ar)}}var $i=function(ar){var rr=Vn[ar];if(!rr)return null;var pi=rr.data||{},ni=pi.value,ki=rr.group,Ai=(0,Xe.Z)(pi,!0),Ti=yi(rr);return rr?Ke.createElement("div",(0,ce.Z)({"aria-label":typeof Ti=="string"&&!ki?Ti:null},Ai,{key:ar},ui(rr,ar),{"aria-selected":vi(ni)}),ni):null},sa={role:"listbox",id:"".concat(mn,"_list")};return Ke.createElement(Ke.Fragment,null,nn&&Ke.createElement("div",(0,ce.Z)({},sa,{style:{height:0,width:0,overflow:"hidden"}}),$i(yr-1),$i(yr),$i(yr+1)),Ke.createElement(Rr.Z,{itemKey:"key",ref:qn,data:Vn,height:gn,itemHeight:Mn,fullHeight:!1,onMouseDown:pr,onScroll:Nt,virtual:nn,direction:En,innerProps:nn?null:sa},function(oi,ar){var rr,pi=oi.group,ni=oi.groupOption,ki=oi.data,Ai=oi.label,Ti=oi.value,mi=ki.key;if(pi){var Ci,Pa=(Ci=ki.title)!==null&&Ci!==void 0?Ci:wn(Ai)?Ai.toString():void 0;return Ke.createElement("div",{className:Pe()(kn,"".concat(kn,"-group")),title:Pa},Ai!==void 0?Ai:mi)}var _r=ki.disabled,Xr=ki.title,Pi=ki.children,Hi=ki.style,Na=ki.className,Ra=(0,ke.Z)(ki,Hr),ka=(0,Cr.Z)(Ra,jr),ha=vi(Ti),Qa="".concat(kn,"-option"),Ja=Pe()(kn,Qa,Na,(rr={},(0,Te.Z)(rr,"".concat(Qa,"-grouped"),ni),(0,Te.Z)(rr,"".concat(Qa,"-active"),yr===ar&&!_r),(0,Te.Z)(rr,"".concat(Qa,"-disabled"),_r),(0,Te.Z)(rr,"".concat(Qa,"-selected"),ha),rr)),Gr=yi(oi),Zr=!Bn||typeof Bn=="function"||ha,Kr=typeof Gr=="number"?Gr:Gr||Ti,fi=wn(Kr)?Kr.toString():void 0;return Xr!==void 0&&(fi=Xr),Ke.createElement("div",(0,ce.Z)({},(0,Xe.Z)(ka),nn?{}:ui(oi,ar),{"aria-selected":ha,className:Ja,title:fi,onMouseMove:function(){yr===ar||_r||ti(ar)},onClick:function(){_r||Wr(Ti)},style:Hi}),Ke.createElement("div",{className:"".concat(Qa,"-content")},Kr),Ke.isValidElement(Bn)||ha,Zr&&Ke.createElement(wt,{className:"".concat(kn,"-option-state"),customizeIcon:Bn,customizeIconProps:{isSelected:ha}},ha?"\u2713":null))}))},Or=Ke.forwardRef(Zn);Or.displayName="OptionList";var br=Or;function hr(Ye){var qe=Ye.mode,Mt=Ye.options,Ut=Ye.children,An=Ye.backfill,mn=Ye.allowClear,ln=Ye.placeholder,Nn=Ye.getInputElement,Wn=Ye.showSearch,Xn=Ye.onSearch,rn=Ye.defaultOpen,Tn=Ye.autoFocus,Nt=Ye.labelInValue,Jt=Ye.value,sn=Ye.inputValue,fn=Ye.optionLabelProp,In=isMultiple(qe),un=Wn!==void 0?Wn:In||qe==="combobox",Bn=Mt||convertChildrenToData(Ut);if(warning(qe!=="tags"||Bn.every(function(En){return!En.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),qe==="tags"||qe==="combobox"){var ot=Bn.some(function(En){return En.options?En.options.some(function(gn){return typeof("value"in gn?gn.value:gn.key)=="number"}):typeof("value"in En?En.value:En.key)=="number"});warning(!ot,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(qe!=="combobox"||!fn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(qe==="combobox"||!An,"`backfill` only works with `combobox` mode."),warning(qe==="combobox"||!Nn,"`getInputElement` only work with `combobox` mode."),noteOnce(qe!=="combobox"||!Nn||!mn||!ln,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Xn&&!un&&qe!=="combobox"&&qe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!rn||Tn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Jt!=null){var tn=toArray(Jt);warning(!Nt||tn.every(function(En){return _typeof(En)==="object"&&("key"in En||"value"in En)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!In||Array.isArray(Jt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ut){var nn=null;toNodeArray(Ut).some(function(En){if(!React.isValidElement(En)||!En.type)return!1;var gn=En,Mn=gn.type;if(Mn.isSelectOption)return!1;if(Mn.isSelectOptGroup){var kn=toNodeArray(En.props.children).every(function(Vn){return!React.isValidElement(Vn)||!En.type||Vn.type.isSelectOption?!0:(nn=Vn.type,!1)});return!kn}return nn=Mn,!0}),nn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(nn.displayName||nn.name||nn,"`.")),warning(sn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Yr(Ye,qe){if(Ye){var Mt=function Ut(An){for(var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=0;ln<An.length;ln++){var Nn=An[ln];if(Nn[qe==null?void 0:qe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!mn&&Array.isArray(Nn[qe==null?void 0:qe.options])&&Ut(Nn[qe==null?void 0:qe.options],!0))break}};Mt(Ye)}}var cr=null,Ir=["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"],or=["inputValue"];function Jn(Ye){return!Ye||(0,pe.Z)(Ye)!=="object"}var Dr=Ke.forwardRef(function(Ye,qe){var Mt=Ye.id,Ut=Ye.mode,An=Ye.prefixCls,mn=An===void 0?"rc-select":An,ln=Ye.backfill,Nn=Ye.fieldNames,Wn=Ye.inputValue,Xn=Ye.searchValue,rn=Ye.onSearch,Tn=Ye.autoClearSearchValue,Nt=Tn===void 0?!0:Tn,Jt=Ye.onSelect,sn=Ye.onDeselect,fn=Ye.dropdownMatchSelectWidth,In=fn===void 0?!0:fn,un=Ye.filterOption,Bn=Ye.filterSort,ot=Ye.optionFilterProp,tn=Ye.optionLabelProp,nn=Ye.options,En=Ye.children,gn=Ye.defaultActiveFirstOption,Mn=Ye.menuItemSelectedIcon,kn=Ye.virtual,Vn=Ye.direction,qn=Ye.listHeight,pr=qn===void 0?200:qn,Tr=Ye.listItemHeight,Jr=Tr===void 0?20:Tr,ai=Ye.value,Nr=Ye.defaultValue,yr=Ye.labelInValue,di=Ye.onChange,ti=(0,ke.Z)(Ye,Ir),vi=(0,cn.ZP)(Mt),Wr=bt(Ut),jr=!!(!nn&&En),yi=Ke.useMemo(function(){return un===void 0&&Ut==="combobox"?!1:un},[un,Ut]),ui=Ke.useMemo(function(){return se(Nn,jr)},[JSON.stringify(Nn),jr]),$i=(0,xe.Z)("",{value:Xn!==void 0?Xn:Wn,postState:function(ua){return ua||""}}),sa=(0,be.Z)($i,2),oi=sa[0],ar=sa[1],rr=hn(nn,En,ui,ot,tn),pi=rr.valueOptions,ni=rr.labelOptions,ki=rr.options,Ai=Ke.useCallback(function(Oi){var ua=Bt(Oi);return ua.map(function(ra){var Wi,Oa,Ba,zo,Vo;if(Jn(ra))Wi=ra;else{var $o;Ba=ra.key,Oa=ra.label,Wi=($o=ra.value)!==null&&$o!==void 0?$o:Ba}var Qo=pi.get(Wi);if(Qo){var qa;if(Oa===void 0&&(Oa=Qo==null?void 0:Qo[tn||ui.label]),Ba===void 0&&(Ba=(qa=Qo==null?void 0:Qo.key)!==null&&qa!==void 0?qa:Wi),zo=Qo==null?void 0:Qo.disabled,Vo=Qo==null?void 0:Qo.title,0)var eo}return{label:Oa,value:Wi,key:Ba,disabled:zo,title:Vo}})},[ui,tn,pi]),Ti=(0,xe.Z)(Nr,{value:ai}),mi=(0,be.Z)(Ti,2),Ci=mi[0],Pa=mi[1],_r=Ke.useMemo(function(){var Oi,ua=Ai(Ci);return Ut==="combobox"&&Tt((Oi=ua[0])===null||Oi===void 0?void 0:Oi.value)?[]:ua},[Ci,Ai,Ut]),Xr=xn(_r,pi),Pi=(0,be.Z)(Xr,2),Hi=Pi[0],Na=Pi[1],Ra=Ke.useMemo(function(){if(!Ut&&Hi.length===1){var Oi=Hi[0];if(Oi.value===null&&(Oi.label===null||Oi.label===void 0))return[]}return Hi.map(function(ua){var ra;return(0,dt.Z)((0,dt.Z)({},ua),{},{label:(ra=ua.label)!==null&&ra!==void 0?ra:ua.value})})},[Ut,Hi]),ka=Ke.useMemo(function(){return new Set(Hi.map(function(Oi){return Oi.value}))},[Hi]);Ke.useEffect(function(){if(Ut==="combobox"){var Oi,ua=(Oi=Hi[0])===null||Oi===void 0?void 0:Oi.value;ar(Lt(ua)?String(ua):"")}},[Hi]);var ha=On(function(Oi,ua){var ra,Wi=ua!=null?ua:Oi;return ra={},(0,Te.Z)(ra,ui.value,Oi),(0,Te.Z)(ra,ui.label,Wi),ra}),Qa=Ke.useMemo(function(){if(Ut!=="tags")return ki;var Oi=(0,De.Z)(ki),ua=function(Wi){return pi.has(Wi)};return(0,De.Z)(Hi).sort(function(ra,Wi){return ra.value<Wi.value?-1:1}).forEach(function(ra){var Wi=ra.value;ua(Wi)||Oi.push(ha(Wi,ra.label))}),Oi},[ha,ki,pi,Hi,Ut]),Ja=Rt(Qa,ui,oi,yi,ot),Gr=Ke.useMemo(function(){return Ut!=="tags"||!oi||Ja.some(function(Oi){return Oi[ot||"value"]===oi})||Ja.some(function(Oi){return Oi[ui.value]===oi})?Ja:[ha(oi)].concat((0,De.Z)(Ja))},[ha,ot,Ut,Ja,oi,ui]),Zr=Ke.useMemo(function(){return Bn?(0,De.Z)(Gr).sort(function(Oi,ua){return Bn(Oi,ua)}):Gr},[Gr,Bn]),Kr=Ke.useMemo(function(){return Oe(Zr,{fieldNames:ui,childrenAsData:jr})},[Zr,ui,jr]),fi=function(ua){var ra=Ai(ua);if(Pa(ra),di&&(ra.length!==Hi.length||ra.some(function(Ba,zo){var Vo;return((Vo=Hi[zo])===null||Vo===void 0?void 0:Vo.value)!==(Ba==null?void 0:Ba.value)}))){var Wi=yr?ra:ra.map(function(Ba){return Ba.value}),Oa=ra.map(function(Ba){return ut(Na(Ba.value))});di(Wr?Wi:Wi[0],Wr?Oa:Oa[0])}},ga=Ke.useState(null),Fa=(0,be.Z)(ga,2),Ua=Fa[0],za=Fa[1],Ta=Ke.useState(0),lo=(0,be.Z)(Ta,2),jo=lo[0],_o=lo[1],hs=gn!==void 0?gn:Ut!=="combobox",la=Ke.useCallback(function(Oi,ua){var ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wi=ra.source,Oa=Wi===void 0?"keyboard":Wi;_o(ua),ln&&Ut==="combobox"&&Oi!==null&&Oa==="keyboard"&&za(String(Oi))},[ln,Ut]),ya=function(ua,ra,Wi){var Oa=function(){var ps,Jo=Na(ua);return[yr?{label:Jo==null?void 0:Jo[ui.label],value:ua,key:(ps=Jo==null?void 0:Jo.key)!==null&&ps!==void 0?ps:ua}:ua,ut(Jo)]};if(ra&&Jt){var Ba=Oa(),zo=(0,be.Z)(Ba,2),Vo=zo[0],$o=zo[1];Jt(Vo,$o)}else if(!ra&&sn&&Wi!=="clear"){var Qo=Oa(),qa=(0,be.Z)(Qo,2),eo=qa[0],ns=qa[1];sn(eo,ns)}},po=On(function(Oi,ua){var ra,Wi=Wr?ua.selected:!0;Wi?ra=Wr?[].concat((0,De.Z)(Hi),[Oi]):[Oi]:ra=Hi.filter(function(Oa){return Oa.value!==Oi}),fi(ra),ya(Oi,Wi),Ut==="combobox"?za(""):(!bt||Nt)&&(ar(""),za(""))}),La=function(ua,ra){fi(ua);var Wi=ra.type,Oa=ra.values;(Wi==="remove"||Wi==="clear")&&Oa.forEach(function(Ba){ya(Ba.value,!1,Wi)})},$a=function(ua,ra){if(ar(ua),za(null),ra.source==="submit"){var Wi=(ua||"").trim();if(Wi){var Oa=Array.from(new Set([].concat((0,De.Z)(ka),[Wi])));fi(Oa),ya(Wi,!0),ar("")}return}ra.source!=="blur"&&(Ut==="combobox"&&fi(ua),rn==null||rn(ua))},Ya=function(ua){var ra=ua;Ut!=="tags"&&(ra=ua.map(function(Oa){var Ba=ni.get(Oa);return Ba==null?void 0:Ba.value}).filter(function(Oa){return Oa!==void 0}));var Wi=Array.from(new Set([].concat((0,De.Z)(ka),(0,De.Z)(ra))));fi(Wi),Wi.forEach(function(Oa){ya(Oa,!0)})},Za=Ke.useMemo(function(){var Oi=kn!==!1&&In!==!1;return(0,dt.Z)((0,dt.Z)({},rr),{},{flattenOptions:Kr,onActiveValue:la,defaultActiveFirstOption:hs,onSelect:po,menuItemSelectedIcon:Mn,rawValues:ka,fieldNames:ui,virtual:Oi,direction:Vn,listHeight:pr,listItemHeight:Jr,childrenAsData:jr})},[rr,Kr,la,hs,po,Mn,ka,ui,kn,In,pr,Jr,jr]);return Ke.createElement(vr.Provider,{value:Za},Ke.createElement(Dt,(0,ce.Z)({},ti,{id:vi,prefixCls:mn,ref:qe,omitDomProps:or,mode:Ut,displayValues:Ra,onDisplayValuesChange:La,direction:Vn,searchValue:oi,onSearch:$a,autoClearSearchValue:Nt,onSearchSplit:Ya,dropdownMatchSelectWidth:In,OptionList:br,emptyOptions:!Kr.length,activeValue:Ua,activeDescendantId:"".concat(vi,"_list_").concat(jo)})))}),_t=Dr;_t.Option=gr,_t.OptGroup=Kn;var He=_t,nt=He},9296:function(zn,en,ae){"use strict";ae.r(en),ae.d(en,{ResizableTextArea:function(){return mt},default:function(){return Tt}});var ce=ae(60499),De=ae(85899),Te=ae(18642),dt=ae(43749),be=ae(72190),ke=ae(42244),pe=ae(77654),xe=ae(92310),Me=ae.n(xe),Ke=ae(93681),vt=ae(5643),Pe=ae(18929),Be=ae(59301),et=ae(29301),Je=ae(34280),tt=ae(16089),yt=`
|
|
|
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;
|
|
|
`,wt=["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"],It={},gt;function st(Xt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=Xt.getAttribute("id")||Xt.getAttribute("data-reactid")||Xt.getAttribute("name");if(jt&&It[it])return It[it];var Ce=window.getComputedStyle(Xt),Et=Ce.getPropertyValue("box-sizing")||Ce.getPropertyValue("-moz-box-sizing")||Ce.getPropertyValue("-webkit-box-sizing"),on=parseFloat(Ce.getPropertyValue("padding-bottom"))+parseFloat(Ce.getPropertyValue("padding-top")),Yt=parseFloat(Ce.getPropertyValue("border-bottom-width"))+parseFloat(Ce.getPropertyValue("border-top-width")),lt=wt.map(function(Ft){return"".concat(Ft,":").concat(Ce.getPropertyValue(Ft))}).join(";"),pt={sizingStyle:lt,paddingSize:on,borderSize:Yt,boxSizing:Et};return jt&&it&&(It[it]=pt),pt}function ze(Xt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;gt||(gt=document.createElement("textarea"),gt.setAttribute("tab-index","-1"),gt.setAttribute("aria-hidden","true"),document.body.appendChild(gt)),Xt.getAttribute("wrap")?gt.setAttribute("wrap",Xt.getAttribute("wrap")):gt.removeAttribute("wrap");var Et=st(Xt,jt),on=Et.paddingSize,Yt=Et.borderSize,lt=Et.boxSizing,pt=Et.sizingStyle;gt.setAttribute("style","".concat(pt,";").concat(yt)),gt.value=Xt.value||Xt.placeholder||"";var Ft=void 0,Sn=void 0,$t,Pn=gt.scrollHeight;if(lt==="border-box"?Pn+=Yt:lt==="content-box"&&(Pn-=on),it!==null||Ce!==null){gt.value=" ";var Zt=gt.scrollHeight-on;it!==null&&(Ft=Zt*it,lt==="border-box"&&(Ft=Ft+on+Yt),Pn=Math.max(Ft,Pn)),Ce!==null&&(Sn=Zt*Ce,lt==="border-box"&&(Sn=Sn+on+Yt),$t=Pn>Sn?"":"hidden",Pn=Math.min(Sn,Pn))}var an={height:Pn,overflowY:$t,resize:"none"};return Ft&&(an.minHeight=Ft),Sn&&(an.maxHeight=Sn),an}var he=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],je=0,Xe=1,Qe=2,Ue=Be.forwardRef(function(Xt,jt){var it=Xt,Ce=it.prefixCls,Et=it.onPressEnter,on=it.defaultValue,Yt=it.value,lt=it.autoSize,pt=it.onResize,Ft=it.className,Sn=it.style,$t=it.disabled,Pn=it.onChange,Zt=it.onInternalAutoSize,an=(0,ke.Z)(it,he),Ht=(0,Pe.Z)(on,{value:Yt,postState:function(Kn){return Kn!=null?Kn:""}}),ye=(0,be.Z)(Ht,2),ue=ye[0],le=ye[1],de=function(Kn){le(Kn.target.value),Pn==null||Pn(Kn)},ge=Be.useRef();Be.useImperativeHandle(jt,function(){return{textArea:ge.current}});var se=Be.useMemo(function(){return lt&&(0,dt.Z)(lt)==="object"?[lt.minRows,lt.maxRows]:[]},[lt]),Oe=(0,be.Z)(se,2),ut=Oe[0],Ge=Oe[1],_e=!!lt,St=function(){try{if(document.activeElement===ge.current){var Kn=ge.current,tr=Kn.selectionStart,gr=Kn.selectionEnd,Un=Kn.scrollTop;ge.current.setSelectionRange(tr,gr),ge.current.scrollTop=Un}}catch(Cr){}},bt=Be.useState(Qe),rt=(0,be.Z)(bt,2),Dt=rt[0],xn=rt[1],xt=Be.useState(),Rt=(0,be.Z)(xt,2),cn=Rt[0],ct=Rt[1],Ae=function(){xn(je)};(0,Je.Z)(function(){_e&&Ae()},[Yt,ut,Ge,_e]),(0,Je.Z)(function(){if(Dt===je)xn(Xe);else if(Dt===Xe){var Ln=ze(ge.current,!1,ut,Ge);xn(Qe),ct(Ln)}else St()},[Dt]);var Ve=Be.useRef(),Kt=function(){tt.Z.cancel(Ve.current)},Gt=function(Kn){Dt===Qe&&(pt==null||pt(Kn),lt&&(Kt(),Ve.current=(0,tt.Z)(function(){Ae()})))};Be.useEffect(function(){return Kt},[]);var hn=_e?cn:null,On=(0,De.Z)((0,De.Z)({},Sn),hn);return(Dt===je||Dt===Xe)&&(On.overflowY="hidden",On.overflowX="hidden"),Be.createElement(et.Z,{onResize:Gt,disabled:!(lt||pt)},Be.createElement("textarea",(0,ce.Z)({},an,{ref:ge,style:On,className:Me()(Ce,Ft,(0,Te.Z)({},"".concat(Ce,"-disabled"),$t)),disabled:$t,value:ue,onChange:de})))}),mt=Ue,Le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Bt(Xt,jt){return(0,pe.Z)(Xt||"").slice(0,jt).join("")}function at(Xt,jt,it,Ce){var Et=it;return Xt?Et=Bt(it,Ce):(0,pe.Z)(jt||"").length<it.length&&(0,pe.Z)(it||"").length>Ce&&(Et=jt),Et}var Wt=Be.forwardRef(function(Xt,jt){var it,Ce=Xt.defaultValue,Et=Xt.value,on=Xt.onFocus,Yt=Xt.onBlur,lt=Xt.onChange,pt=Xt.allowClear,Ft=Xt.maxLength,Sn=Xt.onCompositionStart,$t=Xt.onCompositionEnd,Pn=Xt.suffix,Zt=Xt.prefixCls,an=Zt===void 0?"rc-textarea":Zt,Ht=Xt.classes,ye=Xt.showCount,ue=Xt.className,le=Xt.style,de=Xt.disabled,ge=Xt.hidden,se=Xt.classNames,Oe=Xt.styles,ut=Xt.onResize,Ge=(0,ke.Z)(Xt,Le),_e=(0,Pe.Z)(Ce,{value:Et,defaultValue:Ce}),St=(0,be.Z)(_e,2),bt=St[0],rt=St[1],Dt=(0,Be.useRef)(null),xn=Be.useState(!1),xt=(0,be.Z)(xn,2),Rt=xt[0],cn=xt[1],ct=Be.useState(!1),Ae=(0,be.Z)(ct,2),Ve=Ae[0],Kt=Ae[1],Gt=Be.useRef(),hn=Be.useRef(0),On=Be.useState(null),Ln=(0,be.Z)(On,2),Kn=Ln[0],tr=Ln[1],gr=function(){var Jn;(Jn=Dt.current)===null||Jn===void 0||Jn.textArea.focus()};(0,Be.useImperativeHandle)(jt,function(){return{resizableTextArea:Dt.current,focus:gr,blur:function(){var Jn;(Jn=Dt.current)===null||Jn===void 0||Jn.textArea.blur()}}}),(0,Be.useEffect)(function(){cn(function(or){return!de&&or})},[de]);var Un=Number(Ft)>0,Cr=function(Jn){Kt(!0),Gt.current=bt,hn.current=Jn.currentTarget.selectionStart,Sn==null||Sn(Jn)},Rr=function(Jn){Kt(!1);var Dr=Jn.currentTarget.value;if(Un){var _t,He=hn.current>=Ft+1||hn.current===((_t=Gt.current)===null||_t===void 0?void 0:_t.length);Dr=at(He,Gt.current,Dr,Ft)}Dr!==bt&&(rt(Dr),(0,vt.rJ)(Jn.currentTarget,Jn,lt,Dr)),$t==null||$t(Jn)},$r=function(Jn){var Dr=Jn.target.value;if(!Ve&&Un){var _t=Jn.target.selectionStart>=Ft+1||Jn.target.selectionStart===Dr.length||!Jn.target.selectionStart;Dr=at(_t,bt,Dr,Ft)}rt(Dr),(0,vt.rJ)(Jn.currentTarget,Jn,lt,Dr)},vr=function(Jn){var Dr=Ge.onPressEnter,_t=Ge.onKeyDown;Jn.key==="Enter"&&Dr&&Dr(Jn),_t==null||_t(Jn)},Er=function(Jn){cn(!0),on==null||on(Jn)},Hr=function(Jn){cn(!1),Yt==null||Yt(Jn)},wn=function(Jn){var Dr;rt(""),gr(),(0,vt.rJ)((Dr=Dt.current)===null||Dr===void 0?void 0:Dr.textArea,Jn,lt)},Zn=(0,vt.D7)(bt);!Ve&&Un&&Et==null&&(Zn=Bt(Zn,Ft));var Or=Pn,br;if(ye){var hr=(0,pe.Z)(Zn).length;(0,dt.Z)(ye)==="object"?br=ye.formatter({value:Zn,count:hr,maxLength:Ft}):br="".concat(hr).concat(Un?" / ".concat(Ft):""),Or=Be.createElement(Be.Fragment,null,Or,Be.createElement("span",{className:Me()("".concat(an,"-data-count"),se==null?void 0:se.count),style:Oe==null?void 0:Oe.count},br))}var Yr=function(Jn){var Dr;ut==null||ut(Jn),(Dr=Dt.current)!==null&&Dr!==void 0&&Dr.textArea.style.height&&tr(!0)},cr=!Ge.autoSize&&!ye&&!pt,Ir=Be.createElement(Ke.BaseInput,{value:Zn,allowClear:pt,handleReset:wn,suffix:Or,prefixCls:an,classes:{affixWrapper:Me()(Ht==null?void 0:Ht.affixWrapper,(it={},(0,Te.Z)(it,"".concat(an,"-show-count"),ye),(0,Te.Z)(it,"".concat(an,"-textarea-allow-clear"),pt),it))},disabled:de,focused:Rt,className:ue,style:(0,De.Z)((0,De.Z)({},le),Kn&&!cr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof br=="string"?br:void 0}},hidden:ge,inputElement:Be.createElement(mt,(0,ce.Z)({},Ge,{onKeyDown:vr,onChange:$r,onFocus:Er,onBlur:Hr,onCompositionStart:Cr,onCompositionEnd:Rr,className:se==null?void 0:se.textarea,style:(0,De.Z)((0,De.Z)({},Oe==null?void 0:Oe.textarea),{},{resize:le==null?void 0:le.resize}),disabled:de,prefixCls:an,onResize:Yr,ref:Dt}))});return Ir}),Lt=Wt,Tt=Lt},39417:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Xe}});var ce=ae(60499),De=ae(18642),Te=ae(42244),dt=ae(85899),be=ae(38705),ke=ae(17212),pe=ae(15793),xe=ae(39153),Me=ae(55401),Ke=ae(92310),vt=ae.n(Ke),Pe=ae(26112),Be=ae(59301),et=ae(39378),Je=function(Ue){for(var mt=Ue.prefixCls,Le=Ue.level,Bt=Ue.isStart,at=Ue.isEnd,Wt="".concat(mt,"-indent-unit"),Lt=[],Tt=0;Tt<Le;Tt+=1){var Xt;Lt.push(Be.createElement("span",{key:Tt,className:vt()(Wt,(Xt={},(0,De.Z)(Xt,"".concat(Wt,"-start"),Bt[Tt]),(0,De.Z)(Xt,"".concat(Wt,"-end"),at[Tt]),Xt))}))}return Be.createElement("span",{"aria-hidden":"true",className:"".concat(mt,"-indent")},Lt)},tt=Be.memo(Je),yt=ae(67841),wt=ae(71430),It=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],gt="open",st="close",ze="---",he=function(Qe){(0,xe.Z)(mt,Qe);var Ue=(0,Me.Z)(mt);function mt(){var Le;(0,be.Z)(this,mt);for(var Bt=arguments.length,at=new Array(Bt),Wt=0;Wt<Bt;Wt++)at[Wt]=arguments[Wt];return Le=Ue.call.apply(Ue,[this].concat(at)),Le.state={dragNodeHighlight:!1},Le.selectHandle=void 0,Le.cacheIndent=void 0,Le.onSelectorClick=function(Lt){var Tt=Le.props.context.onNodeClick;Tt(Lt,(0,wt.F)(Le.props)),Le.isSelectable()?Le.onSelect(Lt):Le.onCheck(Lt)},Le.onSelectorDoubleClick=function(Lt){var Tt=Le.props.context.onNodeDoubleClick;Tt(Lt,(0,wt.F)(Le.props))},Le.onSelect=function(Lt){if(!Le.isDisabled()){var Tt=Le.props.context.onNodeSelect;Tt(Lt,(0,wt.F)(Le.props))}},Le.onCheck=function(Lt){if(!Le.isDisabled()){var Tt=Le.props,Xt=Tt.disableCheckbox,jt=Tt.checked,it=Le.props.context.onNodeCheck;if(!(!Le.isCheckable()||Xt)){var Ce=!jt;it(Lt,(0,wt.F)(Le.props),Ce)}}},Le.onMouseEnter=function(Lt){var Tt=Le.props.context.onNodeMouseEnter;Tt(Lt,(0,wt.F)(Le.props))},Le.onMouseLeave=function(Lt){var Tt=Le.props.context.onNodeMouseLeave;Tt(Lt,(0,wt.F)(Le.props))},Le.onContextMenu=function(Lt){var Tt=Le.props.context.onNodeContextMenu;Tt(Lt,(0,wt.F)(Le.props))},Le.onDragStart=function(Lt){var Tt=Le.props.context.onNodeDragStart;Lt.stopPropagation(),Le.setState({dragNodeHighlight:!0}),Tt(Lt,(0,pe.Z)(Le));try{Lt.dataTransfer.setData("text/plain","")}catch(Xt){}},Le.onDragEnter=function(Lt){var Tt=Le.props.context.onNodeDragEnter;Lt.preventDefault(),Lt.stopPropagation(),Tt(Lt,(0,pe.Z)(Le))},Le.onDragOver=function(Lt){var Tt=Le.props.context.onNodeDragOver;Lt.preventDefault(),Lt.stopPropagation(),Tt(Lt,(0,pe.Z)(Le))},Le.onDragLeave=function(Lt){var Tt=Le.props.context.onNodeDragLeave;Lt.stopPropagation(),Tt(Lt,(0,pe.Z)(Le))},Le.onDragEnd=function(Lt){var Tt=Le.props.context.onNodeDragEnd;Lt.stopPropagation(),Le.setState({dragNodeHighlight:!1}),Tt(Lt,(0,pe.Z)(Le))},Le.onDrop=function(Lt){var Tt=Le.props.context.onNodeDrop;Lt.preventDefault(),Lt.stopPropagation(),Le.setState({dragNodeHighlight:!1}),Tt(Lt,(0,pe.Z)(Le))},Le.onExpand=function(Lt){var Tt=Le.props,Xt=Tt.loading,jt=Tt.context.onNodeExpand;Xt||jt(Lt,(0,wt.F)(Le.props))},Le.setSelectHandle=function(Lt){Le.selectHandle=Lt},Le.getNodeState=function(){var Lt=Le.props.expanded;return Le.isLeaf()?null:Lt?gt:st},Le.hasChildren=function(){var Lt=Le.props.eventKey,Tt=Le.props.context.keyEntities,Xt=(0,yt.Z)(Tt,Lt)||{},jt=Xt.children;return!!(jt||[]).length},Le.isLeaf=function(){var Lt=Le.props,Tt=Lt.isLeaf,Xt=Lt.loaded,jt=Le.props.context.loadData,it=Le.hasChildren();return Tt===!1?!1:Tt||!jt&&!it||jt&&Xt&&!it},Le.isDisabled=function(){var Lt=Le.props.disabled,Tt=Le.props.context.disabled;return!!(Tt||Lt)},Le.isCheckable=function(){var Lt=Le.props.checkable,Tt=Le.props.context.checkable;return!Tt||Lt===!1?!1:Tt},Le.syncLoadData=function(Lt){var Tt=Lt.expanded,Xt=Lt.loading,jt=Lt.loaded,it=Le.props.context,Ce=it.loadData,Et=it.onNodeLoad;Xt||Ce&&Tt&&!Le.isLeaf()&&!Le.hasChildren()&&!jt&&Et((0,wt.F)(Le.props))},Le.isDraggable=function(){var Lt=Le.props,Tt=Lt.data,Xt=Lt.context.draggable;return!!(Xt&&(!Xt.nodeDraggable||Xt.nodeDraggable(Tt)))},Le.renderDragHandler=function(){var Lt=Le.props.context,Tt=Lt.draggable,Xt=Lt.prefixCls;return Tt!=null&&Tt.icon?Be.createElement("span",{className:"".concat(Xt,"-draggable-icon")},Tt.icon):null},Le.renderSwitcherIconDom=function(Lt){var Tt=Le.props.switcherIcon,Xt=Le.props.context.switcherIcon,jt=Tt||Xt;return typeof jt=="function"?jt((0,dt.Z)((0,dt.Z)({},Le.props),{},{isLeaf:Lt})):jt},Le.renderSwitcher=function(){var Lt=Le.props.expanded,Tt=Le.props.context.prefixCls;if(Le.isLeaf()){var Xt=Le.renderSwitcherIconDom(!0);return Xt!==!1?Be.createElement("span",{className:vt()("".concat(Tt,"-switcher"),"".concat(Tt,"-switcher-noop"))},Xt):null}var jt=vt()("".concat(Tt,"-switcher"),"".concat(Tt,"-switcher_").concat(Lt?gt:st)),it=Le.renderSwitcherIconDom(!1);return it!==!1?Be.createElement("span",{onClick:Le.onExpand,className:jt},it):null},Le.renderCheckbox=function(){var Lt=Le.props,Tt=Lt.checked,Xt=Lt.halfChecked,jt=Lt.disableCheckbox,it=Le.props.context.prefixCls,Ce=Le.isDisabled(),Et=Le.isCheckable();if(!Et)return null;var on=typeof Et!="boolean"?Et:null;return Be.createElement("span",{className:vt()("".concat(it,"-checkbox"),Tt&&"".concat(it,"-checkbox-checked"),!Tt&&Xt&&"".concat(it,"-checkbox-indeterminate"),(Ce||jt)&&"".concat(it,"-checkbox-disabled")),onClick:Le.onCheck},on)},Le.renderIcon=function(){var Lt=Le.props.loading,Tt=Le.props.context.prefixCls;return Be.createElement("span",{className:vt()("".concat(Tt,"-iconEle"),"".concat(Tt,"-icon__").concat(Le.getNodeState()||"docu"),Lt&&"".concat(Tt,"-icon_loading"))})},Le.renderSelector=function(){var Lt=Le.state.dragNodeHighlight,Tt=Le.props,Xt=Tt.title,jt=Xt===void 0?ze:Xt,it=Tt.selected,Ce=Tt.icon,Et=Tt.loading,on=Tt.data,Yt=Le.props.context,lt=Yt.prefixCls,pt=Yt.showIcon,Ft=Yt.icon,Sn=Yt.loadData,$t=Yt.titleRender,Pn=Le.isDisabled(),Zt="".concat(lt,"-node-content-wrapper"),an;if(pt){var Ht=Ce||Ft;an=Ht?Be.createElement("span",{className:vt()("".concat(lt,"-iconEle"),"".concat(lt,"-icon__customize"))},typeof Ht=="function"?Ht(Le.props):Ht):Le.renderIcon()}else Sn&&Et&&(an=Le.renderIcon());var ye;typeof jt=="function"?ye=jt(on):$t?ye=$t(on):ye=jt;var ue=Be.createElement("span",{className:"".concat(lt,"-title")},ye);return Be.createElement("span",{ref:Le.setSelectHandle,title:typeof jt=="string"?jt:"",className:vt()("".concat(Zt),"".concat(Zt,"-").concat(Le.getNodeState()||"normal"),!Pn&&(it||Lt)&&"".concat(lt,"-node-selected")),onMouseEnter:Le.onMouseEnter,onMouseLeave:Le.onMouseLeave,onContextMenu:Le.onContextMenu,onClick:Le.onSelectorClick,onDoubleClick:Le.onSelectorDoubleClick},an,ue,Le.renderDropIndicator())},Le.renderDropIndicator=function(){var Lt=Le.props,Tt=Lt.disabled,Xt=Lt.eventKey,jt=Le.props.context,it=jt.draggable,Ce=jt.dropLevelOffset,Et=jt.dropPosition,on=jt.prefixCls,Yt=jt.indent,lt=jt.dropIndicatorRender,pt=jt.dragOverNodeKey,Ft=jt.direction,Sn=!!it,$t=!Tt&&Sn&&pt===Xt,Pn=Yt!=null?Yt:Le.cacheIndent;return Le.cacheIndent=Yt,$t?lt({dropPosition:Et,dropLevelOffset:Ce,indent:Pn,prefixCls:on,direction:Ft}):null},Le}return(0,ke.Z)(mt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Bt=this.props.selectable,at=this.props.context.selectable;return typeof Bt=="boolean"?Bt:at}},{key:"render",value:function(){var Bt,at=this.props,Wt=at.eventKey,Lt=at.className,Tt=at.style,Xt=at.dragOver,jt=at.dragOverGapTop,it=at.dragOverGapBottom,Ce=at.isLeaf,Et=at.isStart,on=at.isEnd,Yt=at.expanded,lt=at.selected,pt=at.checked,Ft=at.halfChecked,Sn=at.loading,$t=at.domRef,Pn=at.active,Zt=at.data,an=at.onMouseMove,Ht=at.selectable,ye=(0,Te.Z)(at,It),ue=this.props.context,le=ue.prefixCls,de=ue.filterTreeNode,ge=ue.keyEntities,se=ue.dropContainerKey,Oe=ue.dropTargetKey,ut=ue.draggingNodeKey,Ge=this.isDisabled(),_e=(0,Pe.Z)(ye,{aria:!0,data:!0}),St=(0,yt.Z)(ge,Wt)||{},bt=St.level,rt=on[on.length-1],Dt=this.isDraggable(),xn=!Ge&&Dt,xt=ut===Wt,Rt=Ht!==void 0?{"aria-selected":!!Ht}:void 0;return Be.createElement("div",(0,ce.Z)({ref:$t,className:vt()(Lt,"".concat(le,"-treenode"),(Bt={},(0,De.Z)(Bt,"".concat(le,"-treenode-disabled"),Ge),(0,De.Z)(Bt,"".concat(le,"-treenode-switcher-").concat(Yt?"open":"close"),!Ce),(0,De.Z)(Bt,"".concat(le,"-treenode-checkbox-checked"),pt),(0,De.Z)(Bt,"".concat(le,"-treenode-checkbox-indeterminate"),Ft),(0,De.Z)(Bt,"".concat(le,"-treenode-selected"),lt),(0,De.Z)(Bt,"".concat(le,"-treenode-loading"),Sn),(0,De.Z)(Bt,"".concat(le,"-treenode-active"),Pn),(0,De.Z)(Bt,"".concat(le,"-treenode-leaf-last"),rt),(0,De.Z)(Bt,"".concat(le,"-treenode-draggable"),Dt),(0,De.Z)(Bt,"dragging",xt),(0,De.Z)(Bt,"drop-target",Oe===Wt),(0,De.Z)(Bt,"drop-container",se===Wt),(0,De.Z)(Bt,"drag-over",!Ge&&Xt),(0,De.Z)(Bt,"drag-over-gap-top",!Ge&&jt),(0,De.Z)(Bt,"drag-over-gap-bottom",!Ge&&it),(0,De.Z)(Bt,"filter-node",de&&de((0,wt.F)(this.props))),Bt)),style:Tt,draggable:xn,"aria-grabbed":xt,onDragStart:xn?this.onDragStart:void 0,onDragEnter:Dt?this.onDragEnter:void 0,onDragOver:Dt?this.onDragOver:void 0,onDragLeave:Dt?this.onDragLeave:void 0,onDrop:Dt?this.onDrop:void 0,onDragEnd:Dt?this.onDragEnd:void 0,onMouseMove:an},Rt,_e),Be.createElement(tt,{prefixCls:le,level:bt,isStart:Et,isEnd:on}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),mt}(Be.Component),je=function(Ue){return Be.createElement(et.k.Consumer,null,function(mt){return Be.createElement(he,(0,ce.Z)({},Ue,{context:mt}))})};je.displayName="TreeNode",je.isTreeNode=1;var Xe=je},39378:function(zn,en,ae){"use strict";ae.d(en,{k:function(){return De}});var ce=ae(59301),De=ce.createContext(null)},38028:function(zn,en,ae){"use strict";ae.d(en,{O:function(){return Xe.Z},Z:function(){return ue}});var ce=ae(60499),De=ae(18642),Te=ae(43749),dt=ae(85899),be=ae(77654),ke=ae(38705),pe=ae(17212),xe=ae(15793),Me=ae(39153),Ke=ae(55401),vt=ae(92310),Pe=ae.n(vt),Be=ae(10228),et=ae(26112),Je=ae(48736),tt=ae(59301),yt=ae(39378);function wt(le){var de=le.dropPosition,ge=le.dropLevelOffset,se=le.indent,Oe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(de){case-1:Oe.top=0,Oe.left=-ge*se;break;case 1:Oe.bottom=0,Oe.left=-ge*se;break;case 0:Oe.bottom=0,Oe.left=se;break}return tt.createElement("div",{style:Oe})}function It(le){if(le==null)throw new TypeError("Cannot destructure "+le)}var gt=ae(72190),st=ae(42244),ze=ae(34280),he=ae(48911),je=ae(77900),Xe=ae(39417);function Qe(le,de){var ge=tt.useState(!1),se=(0,gt.Z)(ge,2),Oe=se[0],ut=se[1];tt.useLayoutEffect(function(){if(Oe)return le(),function(){de()}},[Oe]),tt.useLayoutEffect(function(){return ut(!0),function(){ut(!1)}},[])}var Ue=ae(71430),mt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Le=function(de,ge){var se=de.className,Oe=de.style,ut=de.motion,Ge=de.motionNodes,_e=de.motionType,St=de.onMotionStart,bt=de.onMotionEnd,rt=de.active,Dt=de.treeNodeRequiredProps,xn=(0,st.Z)(de,mt),xt=tt.useState(!0),Rt=(0,gt.Z)(xt,2),cn=Rt[0],ct=Rt[1],Ae=tt.useContext(yt.k),Ve=Ae.prefixCls,Kt=Ge&&_e!=="hide";(0,ze.Z)(function(){Ge&&Kt!==cn&&ct(Kt)},[Ge]);var Gt=function(){Ge&&St()},hn=tt.useRef(!1),On=function(){Ge&&!hn.current&&(hn.current=!0,bt())};Qe(Gt,On);var Ln=function(tr){Kt===tr&&On()};return Ge?tt.createElement(je.default,(0,ce.Z)({ref:ge,visible:cn},ut,{motionAppear:_e==="show",onVisibleChanged:Ln}),function(Kn,tr){var gr=Kn.className,Un=Kn.style;return tt.createElement("div",{ref:tr,className:Pe()("".concat(Ve,"-treenode-motion"),gr),style:Un},Ge.map(function(Cr){var Rr=(0,ce.Z)({},(It(Cr.data),Cr.data)),$r=Cr.title,vr=Cr.key,Er=Cr.isStart,Hr=Cr.isEnd;delete Rr.children;var wn=(0,Ue.H8)(vr,Dt);return tt.createElement(Xe.Z,(0,ce.Z)({},Rr,wn,{title:$r,active:rt,data:Cr.data,key:vr,isStart:Er,isEnd:Hr}))}))}):tt.createElement(Xe.Z,(0,ce.Z)({domRef:ge,className:se,style:Oe},xn,{active:rt}))};Le.displayName="MotionTreeNode";var Bt=tt.forwardRef(Le),at=Bt;function Wt(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ge=le.length,se=de.length;if(Math.abs(ge-se)!==1)return{add:!1,key:null};function Oe(ut,Ge){var _e=new Map;ut.forEach(function(bt){_e.set(bt,!0)});var St=Ge.filter(function(bt){return!_e.has(bt)});return St.length===1?St[0]:null}return ge<se?{add:!0,key:Oe(le,de)}:{add:!1,key:Oe(de,le)}}function Lt(le,de,ge){var se=le.findIndex(function(_e){return _e.key===ge}),Oe=le[se+1],ut=de.findIndex(function(_e){return _e.key===ge});if(Oe){var Ge=de.findIndex(function(_e){return _e.key===Oe.key});return de.slice(ut+1,Ge)}return de.slice(ut+1)}var Tt=["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"],Xt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},jt=function(){},it="RC_TREE_MOTION_".concat(Math.random()),Ce={key:it},Et={key:it,level:0,index:0,pos:"0",node:Ce,nodes:[Ce]},on={parent:null,children:[],pos:Et.pos,data:Ce,title:null,key:it,isStart:[],isEnd:[]};function Yt(le,de,ge,se){return de===!1||!ge?le:le.slice(0,Math.ceil(ge/se)+1)}function lt(le){var de=le.key,ge=le.pos;return(0,Ue.km)(de,ge)}function pt(le){for(var de=String(le.data.key),ge=le;ge.parent;)ge=ge.parent,de="".concat(ge.data.key," > ").concat(de);return de}var Ft=tt.forwardRef(function(le,de){var ge=le.prefixCls,se=le.data,Oe=le.selectable,ut=le.checkable,Ge=le.expandedKeys,_e=le.selectedKeys,St=le.checkedKeys,bt=le.loadedKeys,rt=le.loadingKeys,Dt=le.halfCheckedKeys,xn=le.keyEntities,xt=le.disabled,Rt=le.dragging,cn=le.dragOverNodeKey,ct=le.dropPosition,Ae=le.motion,Ve=le.height,Kt=le.itemHeight,Gt=le.virtual,hn=le.focusable,On=le.activeItem,Ln=le.focused,Kn=le.tabIndex,tr=le.onKeyDown,gr=le.onFocus,Un=le.onBlur,Cr=le.onActiveChange,Rr=le.onListChangeStart,$r=le.onListChangeEnd,vr=(0,st.Z)(le,Tt),Er=tt.useRef(null),Hr=tt.useRef(null);tt.useImperativeHandle(de,function(){return{scrollTo:function(Tn){Er.current.scrollTo(Tn)},getIndentWidth:function(){return Hr.current.offsetWidth}}});var wn=tt.useState(Ge),Zn=(0,gt.Z)(wn,2),Or=Zn[0],br=Zn[1],hr=tt.useState(se),Yr=(0,gt.Z)(hr,2),cr=Yr[0],Ir=Yr[1],or=tt.useState(se),Jn=(0,gt.Z)(or,2),Dr=Jn[0],_t=Jn[1],He=tt.useState([]),nt=(0,gt.Z)(He,2),Ye=nt[0],qe=nt[1],Mt=tt.useState(null),Ut=(0,gt.Z)(Mt,2),An=Ut[0],mn=Ut[1],ln=tt.useRef(se);ln.current=se;function Nn(){var rn=ln.current;Ir(rn),_t(rn),qe([]),mn(null),$r()}(0,ze.Z)(function(){br(Ge);var rn=Wt(Or,Ge);if(rn.key!==null)if(rn.add){var Tn=cr.findIndex(function(un){var Bn=un.key;return Bn===rn.key}),Nt=Yt(Lt(cr,se,rn.key),Gt,Ve,Kt),Jt=cr.slice();Jt.splice(Tn+1,0,on),_t(Jt),qe(Nt),mn("show")}else{var sn=se.findIndex(function(un){var Bn=un.key;return Bn===rn.key}),fn=Yt(Lt(se,cr,rn.key),Gt,Ve,Kt),In=se.slice();In.splice(sn+1,0,on),_t(In),qe(fn),mn("hide")}else cr!==se&&(Ir(se),_t(se))},[Ge,se]),tt.useEffect(function(){Rt||Nn()},[Rt]);var Wn=Ae?Dr:se,Xn={expandedKeys:Ge,selectedKeys:_e,loadedKeys:bt,loadingKeys:rt,checkedKeys:St,halfCheckedKeys:Dt,dragOverNodeKey:cn,dropPosition:ct,keyEntities:xn};return tt.createElement(tt.Fragment,null,Ln&&On&&tt.createElement("span",{style:Xt,"aria-live":"assertive"},pt(On)),tt.createElement("div",null,tt.createElement("input",{style:Xt,disabled:hn===!1||xt,tabIndex:hn!==!1?Kn:null,onKeyDown:tr,onFocus:gr,onBlur:Un,value:"",onChange:jt,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(ge,"-indent")},tt.createElement("div",{ref:Hr,className:"".concat(ge,"-indent-unit")}))),tt.createElement(he.Z,(0,ce.Z)({},vr,{data:Wn,itemKey:lt,height:Ve,fullHeight:!1,virtual:Gt,itemHeight:Kt,prefixCls:"".concat(ge,"-list"),ref:Er,onVisibleChange:function(Tn,Nt){var Jt=new Set(Tn),sn=Nt.filter(function(fn){return!Jt.has(fn)});sn.some(function(fn){return lt(fn)===it})&&Nn()}}),function(rn){var Tn=rn.pos,Nt=(0,ce.Z)({},(It(rn.data),rn.data)),Jt=rn.title,sn=rn.key,fn=rn.isStart,In=rn.isEnd,un=(0,Ue.km)(sn,Tn);delete Nt.key,delete Nt.children;var Bn=(0,Ue.H8)(un,Xn);return tt.createElement(at,(0,ce.Z)({},Nt,Bn,{title:Jt,active:!!On&&sn===On.key,pos:Tn,data:rn.data,isStart:fn,isEnd:In,motion:Ae,motionNodes:sn===it?Ye:null,motionType:An,onMotionStart:Rr,onMotionEnd:Nn,treeNodeRequiredProps:Xn,onMouseMove:function(){Cr(null)}}))}))});Ft.displayName="NodeList";var Sn=Ft,$t=ae(35654),Pn=ae(90782),Zt=ae(67841),an=10,Ht=function(le){(0,Me.Z)(ge,le);var de=(0,Ke.Z)(ge);function ge(){var se;(0,ke.Z)(this,ge);for(var Oe=arguments.length,ut=new Array(Oe),Ge=0;Ge<Oe;Ge++)ut[Ge]=arguments[Ge];return se=de.call.apply(de,[this].concat(ut)),se.destroyed=!1,se.delayedDragEnterLogic=void 0,se.loadingRetryTimes={},se.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,Ue.w$)()},se.dragStartMousePosition=null,se.dragNode=void 0,se.currentMouseOverDroppableNodeKey=null,se.listRef=tt.createRef(),se.onNodeDragStart=function(_e,St){var bt=se.state,rt=bt.expandedKeys,Dt=bt.keyEntities,xn=se.props.onDragStart,xt=St.props.eventKey;se.dragNode=St,se.dragStartMousePosition={x:_e.clientX,y:_e.clientY};var Rt=(0,$t._5)(rt,xt);se.setState({draggingNodeKey:xt,dragChildrenKeys:(0,$t.wA)(xt,Dt),indent:se.listRef.current.getIndentWidth()}),se.setExpandedKeys(Rt),window.addEventListener("dragend",se.onWindowDragEnd),xn==null||xn({event:_e,node:(0,Ue.F)(St.props)})},se.onNodeDragEnter=function(_e,St){var bt=se.state,rt=bt.expandedKeys,Dt=bt.keyEntities,xn=bt.dragChildrenKeys,xt=bt.flattenNodes,Rt=bt.indent,cn=se.props,ct=cn.onDragEnter,Ae=cn.onExpand,Ve=cn.allowDrop,Kt=cn.direction,Gt=St.props,hn=Gt.pos,On=Gt.eventKey,Ln=(0,xe.Z)(se),Kn=Ln.dragNode;if(se.currentMouseOverDroppableNodeKey!==On&&(se.currentMouseOverDroppableNodeKey=On),!Kn){se.resetDragState();return}var tr=(0,$t.OM)(_e,Kn,St,Rt,se.dragStartMousePosition,Ve,xt,Dt,rt,Kt),gr=tr.dropPosition,Un=tr.dropLevelOffset,Cr=tr.dropTargetKey,Rr=tr.dropContainerKey,$r=tr.dropTargetPos,vr=tr.dropAllowed,Er=tr.dragOverNodeKey;if(xn.indexOf(Cr)!==-1||!vr){se.resetDragState();return}if(se.delayedDragEnterLogic||(se.delayedDragEnterLogic={}),Object.keys(se.delayedDragEnterLogic).forEach(function(Hr){clearTimeout(se.delayedDragEnterLogic[Hr])}),Kn.props.eventKey!==St.props.eventKey&&(_e.persist(),se.delayedDragEnterLogic[hn]=window.setTimeout(function(){if(se.state.draggingNodeKey!==null){var Hr=(0,be.Z)(rt),wn=(0,Zt.Z)(Dt,St.props.eventKey);wn&&(wn.children||[]).length&&(Hr=(0,$t.L0)(rt,St.props.eventKey)),"expandedKeys"in se.props||se.setExpandedKeys(Hr),Ae==null||Ae(Hr,{node:(0,Ue.F)(St.props),expanded:!0,nativeEvent:_e.nativeEvent})}},800)),Kn.props.eventKey===Cr&&Un===0){se.resetDragState();return}se.setState({dragOverNodeKey:Er,dropPosition:gr,dropLevelOffset:Un,dropTargetKey:Cr,dropContainerKey:Rr,dropTargetPos:$r,dropAllowed:vr}),ct==null||ct({event:_e,node:(0,Ue.F)(St.props),expandedKeys:rt})},se.onNodeDragOver=function(_e,St){var bt=se.state,rt=bt.dragChildrenKeys,Dt=bt.flattenNodes,xn=bt.keyEntities,xt=bt.expandedKeys,Rt=bt.indent,cn=se.props,ct=cn.onDragOver,Ae=cn.allowDrop,Ve=cn.direction,Kt=(0,xe.Z)(se),Gt=Kt.dragNode;if(Gt){var hn=(0,$t.OM)(_e,Gt,St,Rt,se.dragStartMousePosition,Ae,Dt,xn,xt,Ve),On=hn.dropPosition,Ln=hn.dropLevelOffset,Kn=hn.dropTargetKey,tr=hn.dropContainerKey,gr=hn.dropAllowed,Un=hn.dropTargetPos,Cr=hn.dragOverNodeKey;rt.indexOf(Kn)!==-1||!gr||(Gt.props.eventKey===Kn&&Ln===0?se.state.dropPosition===null&&se.state.dropLevelOffset===null&&se.state.dropTargetKey===null&&se.state.dropContainerKey===null&&se.state.dropTargetPos===null&&se.state.dropAllowed===!1&&se.state.dragOverNodeKey===null||se.resetDragState():On===se.state.dropPosition&&Ln===se.state.dropLevelOffset&&Kn===se.state.dropTargetKey&&tr===se.state.dropContainerKey&&Un===se.state.dropTargetPos&&gr===se.state.dropAllowed&&Cr===se.state.dragOverNodeKey||se.setState({dropPosition:On,dropLevelOffset:Ln,dropTargetKey:Kn,dropContainerKey:tr,dropTargetPos:Un,dropAllowed:gr,dragOverNodeKey:Cr}),ct==null||ct({event:_e,node:(0,Ue.F)(St.props)}))}},se.onNodeDragLeave=function(_e,St){se.currentMouseOverDroppableNodeKey===St.props.eventKey&&!_e.currentTarget.contains(_e.relatedTarget)&&(se.resetDragState(),se.currentMouseOverDroppableNodeKey=null);var bt=se.props.onDragLeave;bt==null||bt({event:_e,node:(0,Ue.F)(St.props)})},se.onWindowDragEnd=function(_e){se.onNodeDragEnd(_e,null,!0),window.removeEventListener("dragend",se.onWindowDragEnd)},se.onNodeDragEnd=function(_e,St){var bt=se.props.onDragEnd;se.setState({dragOverNodeKey:null}),se.cleanDragState(),bt==null||bt({event:_e,node:(0,Ue.F)(St.props)}),se.dragNode=null,window.removeEventListener("dragend",se.onWindowDragEnd)},se.onNodeDrop=function(_e,St){var bt,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Dt=se.state,xn=Dt.dragChildrenKeys,xt=Dt.dropPosition,Rt=Dt.dropTargetKey,cn=Dt.dropTargetPos,ct=Dt.dropAllowed;if(ct){var Ae=se.props.onDrop;if(se.setState({dragOverNodeKey:null}),se.cleanDragState(),Rt!==null){var Ve=(0,dt.Z)((0,dt.Z)({},(0,Ue.H8)(Rt,se.getTreeNodeRequiredProps())),{},{active:((bt=se.getActiveItem())===null||bt===void 0?void 0:bt.key)===Rt,data:(0,Zt.Z)(se.state.keyEntities,Rt).node}),Kt=xn.indexOf(Rt)!==-1;(0,Je.ZP)(!Kt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Gt=(0,$t.yx)(cn),hn={event:_e,node:(0,Ue.F)(Ve),dragNode:se.dragNode?(0,Ue.F)(se.dragNode.props):null,dragNodesKeys:[se.dragNode.props.eventKey].concat(xn),dropToGap:xt!==0,dropPosition:xt+Number(Gt[Gt.length-1])};rt||Ae==null||Ae(hn),se.dragNode=null}}},se.cleanDragState=function(){var _e=se.state.draggingNodeKey;_e!==null&&se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),se.dragStartMousePosition=null,se.currentMouseOverDroppableNodeKey=null},se.triggerExpandActionExpand=function(_e,St){var bt=se.state,rt=bt.expandedKeys,Dt=bt.flattenNodes,xn=St.expanded,xt=St.key,Rt=St.isLeaf;if(!(Rt||_e.shiftKey||_e.metaKey||_e.ctrlKey)){var cn=Dt.filter(function(Ae){return Ae.key===xt})[0],ct=(0,Ue.F)((0,dt.Z)((0,dt.Z)({},(0,Ue.H8)(xt,se.getTreeNodeRequiredProps())),{},{data:cn.data}));se.setExpandedKeys(xn?(0,$t._5)(rt,xt):(0,$t.L0)(rt,xt)),se.onNodeExpand(_e,ct)}},se.onNodeClick=function(_e,St){var bt=se.props,rt=bt.onClick,Dt=bt.expandAction;Dt==="click"&&se.triggerExpandActionExpand(_e,St),rt==null||rt(_e,St)},se.onNodeDoubleClick=function(_e,St){var bt=se.props,rt=bt.onDoubleClick,Dt=bt.expandAction;Dt==="doubleClick"&&se.triggerExpandActionExpand(_e,St),rt==null||rt(_e,St)},se.onNodeSelect=function(_e,St){var bt=se.state.selectedKeys,rt=se.state,Dt=rt.keyEntities,xn=rt.fieldNames,xt=se.props,Rt=xt.onSelect,cn=xt.multiple,ct=St.selected,Ae=St[xn.key],Ve=!ct;Ve?cn?bt=(0,$t.L0)(bt,Ae):bt=[Ae]:bt=(0,$t._5)(bt,Ae);var Kt=bt.map(function(Gt){var hn=(0,Zt.Z)(Dt,Gt);return hn?hn.node:null}).filter(function(Gt){return Gt});se.setUncontrolledState({selectedKeys:bt}),Rt==null||Rt(bt,{event:"select",selected:Ve,node:St,selectedNodes:Kt,nativeEvent:_e.nativeEvent})},se.onNodeCheck=function(_e,St,bt){var rt=se.state,Dt=rt.keyEntities,xn=rt.checkedKeys,xt=rt.halfCheckedKeys,Rt=se.props,cn=Rt.checkStrictly,ct=Rt.onCheck,Ae=St.key,Ve,Kt={event:"check",node:St,checked:bt,nativeEvent:_e.nativeEvent};if(cn){var Gt=bt?(0,$t.L0)(xn,Ae):(0,$t._5)(xn,Ae),hn=(0,$t._5)(xt,Ae);Ve={checked:Gt,halfChecked:hn},Kt.checkedNodes=Gt.map(function(Un){return(0,Zt.Z)(Dt,Un)}).filter(function(Un){return Un}).map(function(Un){return Un.node}),se.setUncontrolledState({checkedKeys:Gt})}else{var On=(0,Pn.S)([].concat((0,be.Z)(xn),[Ae]),!0,Dt),Ln=On.checkedKeys,Kn=On.halfCheckedKeys;if(!bt){var tr=new Set(Ln);tr.delete(Ae);var gr=(0,Pn.S)(Array.from(tr),{checked:!1,halfCheckedKeys:Kn},Dt);Ln=gr.checkedKeys,Kn=gr.halfCheckedKeys}Ve=Ln,Kt.checkedNodes=[],Kt.checkedNodesPositions=[],Kt.halfCheckedKeys=Kn,Ln.forEach(function(Un){var Cr=(0,Zt.Z)(Dt,Un);if(Cr){var Rr=Cr.node,$r=Cr.pos;Kt.checkedNodes.push(Rr),Kt.checkedNodesPositions.push({node:Rr,pos:$r})}}),se.setUncontrolledState({checkedKeys:Ln},!1,{halfCheckedKeys:Kn})}ct==null||ct(Ve,Kt)},se.onNodeLoad=function(_e){var St=_e.key,bt=new Promise(function(rt,Dt){se.setState(function(xn){var xt=xn.loadedKeys,Rt=xt===void 0?[]:xt,cn=xn.loadingKeys,ct=cn===void 0?[]:cn,Ae=se.props,Ve=Ae.loadData,Kt=Ae.onLoad;if(!Ve||Rt.indexOf(St)!==-1||ct.indexOf(St)!==-1)return null;var Gt=Ve(_e);return Gt.then(function(){var hn=se.state.loadedKeys,On=(0,$t.L0)(hn,St);Kt==null||Kt(On,{event:"load",node:_e}),se.setUncontrolledState({loadedKeys:On}),se.setState(function(Ln){return{loadingKeys:(0,$t._5)(Ln.loadingKeys,St)}}),rt()}).catch(function(hn){if(se.setState(function(Ln){return{loadingKeys:(0,$t._5)(Ln.loadingKeys,St)}}),se.loadingRetryTimes[St]=(se.loadingRetryTimes[St]||0)+1,se.loadingRetryTimes[St]>=an){var On=se.state.loadedKeys;(0,Je.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),se.setUncontrolledState({loadedKeys:(0,$t.L0)(On,St)}),rt()}Dt(hn)}),{loadingKeys:(0,$t.L0)(ct,St)}})});return bt.catch(function(){}),bt},se.onNodeMouseEnter=function(_e,St){var bt=se.props.onMouseEnter;bt==null||bt({event:_e,node:St})},se.onNodeMouseLeave=function(_e,St){var bt=se.props.onMouseLeave;bt==null||bt({event:_e,node:St})},se.onNodeContextMenu=function(_e,St){var bt=se.props.onRightClick;bt&&(_e.preventDefault(),bt({event:_e,node:St}))},se.onFocus=function(){var _e=se.props.onFocus;se.setState({focused:!0});for(var St=arguments.length,bt=new Array(St),rt=0;rt<St;rt++)bt[rt]=arguments[rt];_e==null||_e.apply(void 0,bt)},se.onBlur=function(){var _e=se.props.onBlur;se.setState({focused:!1}),se.onActiveChange(null);for(var St=arguments.length,bt=new Array(St),rt=0;rt<St;rt++)bt[rt]=arguments[rt];_e==null||_e.apply(void 0,bt)},se.getTreeNodeRequiredProps=function(){var _e=se.state,St=_e.expandedKeys,bt=_e.selectedKeys,rt=_e.loadedKeys,Dt=_e.loadingKeys,xn=_e.checkedKeys,xt=_e.halfCheckedKeys,Rt=_e.dragOverNodeKey,cn=_e.dropPosition,ct=_e.keyEntities;return{expandedKeys:St||[],selectedKeys:bt||[],loadedKeys:rt||[],loadingKeys:Dt||[],checkedKeys:xn||[],halfCheckedKeys:xt||[],dragOverNodeKey:Rt,dropPosition:cn,keyEntities:ct}},se.setExpandedKeys=function(_e){var St=se.state,bt=St.treeData,rt=St.fieldNames,Dt=(0,Ue.oH)(bt,_e,rt);se.setUncontrolledState({expandedKeys:_e,flattenNodes:Dt},!0)},se.onNodeExpand=function(_e,St){var bt=se.state.expandedKeys,rt=se.state,Dt=rt.listChanging,xn=rt.fieldNames,xt=se.props,Rt=xt.onExpand,cn=xt.loadData,ct=St.expanded,Ae=St[xn.key];if(!Dt){var Ve=bt.indexOf(Ae),Kt=!ct;if((0,Je.ZP)(ct&&Ve!==-1||!ct&&Ve===-1,"Expand state not sync with index check"),Kt?bt=(0,$t.L0)(bt,Ae):bt=(0,$t._5)(bt,Ae),se.setExpandedKeys(bt),Rt==null||Rt(bt,{node:St,expanded:Kt,nativeEvent:_e.nativeEvent}),Kt&&cn){var Gt=se.onNodeLoad(St);Gt&&Gt.then(function(){var hn=(0,Ue.oH)(se.state.treeData,bt,xn);se.setUncontrolledState({flattenNodes:hn})}).catch(function(){var hn=se.state.expandedKeys,On=(0,$t._5)(hn,Ae);se.setExpandedKeys(On)})}}},se.onListChangeStart=function(){se.setUncontrolledState({listChanging:!0})},se.onListChangeEnd=function(){setTimeout(function(){se.setUncontrolledState({listChanging:!1})})},se.onActiveChange=function(_e){var St=se.state.activeKey,bt=se.props.onActiveChange;St!==_e&&(se.setState({activeKey:_e}),_e!==null&&se.scrollTo({key:_e}),bt==null||bt(_e))},se.getActiveItem=function(){var _e=se.state,St=_e.activeKey,bt=_e.flattenNodes;return St===null?null:bt.find(function(rt){var Dt=rt.key;return Dt===St})||null},se.offsetActiveKey=function(_e){var St=se.state,bt=St.flattenNodes,rt=St.activeKey,Dt=bt.findIndex(function(Rt){var cn=Rt.key;return cn===rt});Dt===-1&&_e<0&&(Dt=bt.length),Dt=(Dt+_e+bt.length)%bt.length;var xn=bt[Dt];if(xn){var xt=xn.key;se.onActiveChange(xt)}else se.onActiveChange(null)},se.onKeyDown=function(_e){var St=se.state,bt=St.activeKey,rt=St.expandedKeys,Dt=St.checkedKeys,xn=St.fieldNames,xt=se.props,Rt=xt.onKeyDown,cn=xt.checkable,ct=xt.selectable;switch(_e.which){case Be.Z.UP:{se.offsetActiveKey(-1),_e.preventDefault();break}case Be.Z.DOWN:{se.offsetActiveKey(1),_e.preventDefault();break}}var Ae=se.getActiveItem();if(Ae&&Ae.data){var Ve=se.getTreeNodeRequiredProps(),Kt=Ae.data.isLeaf===!1||!!(Ae.data[xn.children]||[]).length,Gt=(0,Ue.F)((0,dt.Z)((0,dt.Z)({},(0,Ue.H8)(bt,Ve)),{},{data:Ae.data,active:!0}));switch(_e.which){case Be.Z.LEFT:{Kt&&rt.includes(bt)?se.onNodeExpand({},Gt):Ae.parent&&se.onActiveChange(Ae.parent.key),_e.preventDefault();break}case Be.Z.RIGHT:{Kt&&!rt.includes(bt)?se.onNodeExpand({},Gt):Ae.children&&Ae.children.length&&se.onActiveChange(Ae.children[0].key),_e.preventDefault();break}case Be.Z.ENTER:case Be.Z.SPACE:{cn&&!Gt.disabled&&Gt.checkable!==!1&&!Gt.disableCheckbox?se.onNodeCheck({},Gt,!Dt.includes(bt)):!cn&&ct&&!Gt.disabled&&Gt.selectable!==!1&&se.onNodeSelect({},Gt);break}}}Rt==null||Rt(_e)},se.setUncontrolledState=function(_e){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!se.destroyed){var rt=!1,Dt=!0,xn={};Object.keys(_e).forEach(function(xt){if(xt in se.props){Dt=!1;return}rt=!0,xn[xt]=_e[xt]}),rt&&(!St||Dt)&&se.setState((0,dt.Z)((0,dt.Z)({},xn),bt))}},se.scrollTo=function(_e){se.listRef.current.scrollTo(_e)},se}return(0,pe.Z)(ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Oe=this.props.activeKey;Oe!==void 0&&Oe!==this.state.activeKey&&(this.setState({activeKey:Oe}),Oe!==null&&this.scrollTo({key:Oe}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Oe,ut=this.state,Ge=ut.focused,_e=ut.flattenNodes,St=ut.keyEntities,bt=ut.draggingNodeKey,rt=ut.activeKey,Dt=ut.dropLevelOffset,xn=ut.dropContainerKey,xt=ut.dropTargetKey,Rt=ut.dropPosition,cn=ut.dragOverNodeKey,ct=ut.indent,Ae=this.props,Ve=Ae.prefixCls,Kt=Ae.className,Gt=Ae.style,hn=Ae.showLine,On=Ae.focusable,Ln=Ae.tabIndex,Kn=Ln===void 0?0:Ln,tr=Ae.selectable,gr=Ae.showIcon,Un=Ae.icon,Cr=Ae.switcherIcon,Rr=Ae.draggable,$r=Ae.checkable,vr=Ae.checkStrictly,Er=Ae.disabled,Hr=Ae.motion,wn=Ae.loadData,Zn=Ae.filterTreeNode,Or=Ae.height,br=Ae.itemHeight,hr=Ae.virtual,Yr=Ae.titleRender,cr=Ae.dropIndicatorRender,Ir=Ae.onContextMenu,or=Ae.onScroll,Jn=Ae.direction,Dr=Ae.rootClassName,_t=Ae.rootStyle,He=(0,et.Z)(this.props,{aria:!0,data:!0}),nt;return Rr&&((0,Te.Z)(Rr)==="object"?nt=Rr:typeof Rr=="function"?nt={nodeDraggable:Rr}:nt={}),tt.createElement(yt.k.Provider,{value:{prefixCls:Ve,selectable:tr,showIcon:gr,icon:Un,switcherIcon:Cr,draggable:nt,draggingNodeKey:bt,checkable:$r,checkStrictly:vr,disabled:Er,keyEntities:St,dropLevelOffset:Dt,dropContainerKey:xn,dropTargetKey:xt,dropPosition:Rt,dragOverNodeKey:cn,indent:ct,direction:Jn,dropIndicatorRender:cr,loadData:wn,filterTreeNode:Zn,titleRender:Yr,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}},tt.createElement("div",{role:"tree",className:Pe()(Ve,Kt,Dr,(Oe={},(0,De.Z)(Oe,"".concat(Ve,"-show-line"),hn),(0,De.Z)(Oe,"".concat(Ve,"-focused"),Ge),(0,De.Z)(Oe,"".concat(Ve,"-active-focused"),rt!==null),Oe)),style:_t},tt.createElement(Sn,(0,ce.Z)({ref:this.listRef,prefixCls:Ve,style:Gt,data:_e,disabled:Er,selectable:tr,checkable:!!$r,motion:Hr,dragging:bt!==null,height:Or,itemHeight:br,virtual:hr,focusable:On,focused:Ge,tabIndex:Kn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ir,onScroll:or},this.getTreeNodeRequiredProps(),He))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,ut){var Ge=ut.prevProps,_e={prevProps:Oe};function St(On){return!Ge&&On in Oe||Ge&&Ge[On]!==Oe[On]}var bt,rt=ut.fieldNames;if(St("fieldNames")&&(rt=(0,Ue.w$)(Oe.fieldNames),_e.fieldNames=rt),St("treeData")?bt=Oe.treeData:St("children")&&((0,Je.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),bt=(0,Ue.zn)(Oe.children)),bt){_e.treeData=bt;var Dt=(0,Ue.I8)(bt,{fieldNames:rt});_e.keyEntities=(0,dt.Z)((0,De.Z)({},it,Et),Dt.keyEntities)}var xn=_e.keyEntities||ut.keyEntities;if(St("expandedKeys")||Ge&&St("autoExpandParent"))_e.expandedKeys=Oe.autoExpandParent||!Ge&&Oe.defaultExpandParent?(0,$t.r7)(Oe.expandedKeys,xn):Oe.expandedKeys;else if(!Ge&&Oe.defaultExpandAll){var xt=(0,dt.Z)({},xn);delete xt[it],_e.expandedKeys=Object.keys(xt).map(function(On){return xt[On].key})}else!Ge&&Oe.defaultExpandedKeys&&(_e.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,$t.r7)(Oe.defaultExpandedKeys,xn):Oe.defaultExpandedKeys);if(_e.expandedKeys||delete _e.expandedKeys,bt||_e.expandedKeys){var Rt=(0,Ue.oH)(bt||ut.treeData,_e.expandedKeys||ut.expandedKeys,rt);_e.flattenNodes=Rt}if(Oe.selectable&&(St("selectedKeys")?_e.selectedKeys=(0,$t.BT)(Oe.selectedKeys,Oe):!Ge&&Oe.defaultSelectedKeys&&(_e.selectedKeys=(0,$t.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var cn;if(St("checkedKeys")?cn=(0,$t.E6)(Oe.checkedKeys)||{}:!Ge&&Oe.defaultCheckedKeys?cn=(0,$t.E6)(Oe.defaultCheckedKeys)||{}:bt&&(cn=(0,$t.E6)(Oe.checkedKeys)||{checkedKeys:ut.checkedKeys,halfCheckedKeys:ut.halfCheckedKeys}),cn){var ct=cn,Ae=ct.checkedKeys,Ve=Ae===void 0?[]:Ae,Kt=ct.halfCheckedKeys,Gt=Kt===void 0?[]:Kt;if(!Oe.checkStrictly){var hn=(0,Pn.S)(Ve,!0,xn);Ve=hn.checkedKeys,Gt=hn.halfCheckedKeys}_e.checkedKeys=Ve,_e.halfCheckedKeys=Gt}}return St("loadedKeys")&&(_e.loadedKeys=Oe.loadedKeys),_e}}]),ge}(tt.Component);Ht.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:wt,allowDrop:function(){return!0},expandAction:!1},Ht.TreeNode=Xe.Z;var ye=Ht,ue=ye},35654:function(zn,en,ae){"use strict";ae.d(en,{BT:function(){return tt},E6:function(){return It},L0:function(){return Ke},OM:function(){return Je},_5:function(){return Me},r7:function(){return gt},wA:function(){return Pe},yx:function(){return vt}});var ce=ae(77654),De=ae(43749),Te=ae(48736),dt=ae(59301),be=ae(39417),ke=ae(67841),pe=ae(71430),xe=null;function Me(st,ze){if(!st)return[];var he=st.slice(),je=he.indexOf(ze);return je>=0&&he.splice(je,1),he}function Ke(st,ze){var he=(st||[]).slice();return he.indexOf(ze)===-1&&he.push(ze),he}function vt(st){return st.split("-")}function Pe(st,ze){var he=[],je=(0,ke.Z)(ze,st);function Xe(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Qe.forEach(function(Ue){var mt=Ue.key,Le=Ue.children;he.push(mt),Xe(Le)})}return Xe(je.children),he}function Be(st){if(st.parent){var ze=vt(st.pos);return Number(ze[ze.length-1])===st.parent.children.length-1}return!1}function et(st){var ze=vt(st.pos);return Number(ze[ze.length-1])===0}function Je(st,ze,he,je,Xe,Qe,Ue,mt,Le,Bt){var at,Wt=st.clientX,Lt=st.clientY,Tt=st.target.getBoundingClientRect(),Xt=Tt.top,jt=Tt.height,it=(Bt==="rtl"?-1:1)*(((Xe==null?void 0:Xe.x)||0)-Wt),Ce=(it-12)/je,Et=(0,ke.Z)(mt,he.props.eventKey);if(Lt<Xt+jt/2){var on=Ue.findIndex(function(ue){return ue.key===Et.key}),Yt=on<=0?0:on-1,lt=Ue[Yt].key;Et=(0,ke.Z)(mt,lt)}var pt=Et.key,Ft=Et,Sn=Et.key,$t=0,Pn=0;if(!Le.includes(pt))for(var Zt=0;Zt<Ce&&Be(Et);Zt+=1)Et=Et.parent,Pn+=1;var an=ze.props.data,Ht=Et.node,ye=!0;return et(Et)&&Et.level===0&&Lt<Xt+jt/2&&Qe({dragNode:an,dropNode:Ht,dropPosition:-1})&&Et.key===he.props.eventKey?$t=-1:(Ft.children||[]).length&&Le.includes(Sn)?Qe({dragNode:an,dropNode:Ht,dropPosition:0})?$t=0:ye=!1:Pn===0?Ce>-1.5?Qe({dragNode:an,dropNode:Ht,dropPosition:1})?$t=1:ye=!1:Qe({dragNode:an,dropNode:Ht,dropPosition:0})?$t=0:Qe({dragNode:an,dropNode:Ht,dropPosition:1})?$t=1:ye=!1:Qe({dragNode:an,dropNode:Ht,dropPosition:1})?$t=1:ye=!1,{dropPosition:$t,dropLevelOffset:Pn,dropTargetKey:Et.key,dropTargetPos:Et.pos,dragOverNodeKey:Sn,dropContainerKey:$t===0?null:((at=Et.parent)===null||at===void 0?void 0:at.key)||null,dropAllowed:ye}}function tt(st,ze){if(st){var he=ze.multiple;return he?st.slice():st.length?[st[0]]:st}}var yt=function(ze){return ze};function wt(st,ze){if(!st)return[];var he=ze||{},je=he.processProps,Xe=je===void 0?yt:je,Qe=Array.isArray(st)?st:[st];return Qe.map(function(Ue){var mt=Ue.children,Le=_objectWithoutProperties(Ue,xe),Bt=wt(mt,ze);return React.createElement(TreeNode,_extends({key:Le.key},Xe(Le)),Bt)})}function It(st){if(!st)return null;var ze;if(Array.isArray(st))ze={checkedKeys:st,halfCheckedKeys:void 0};else if((0,De.Z)(st)==="object")ze={checkedKeys:st.checked||void 0,halfCheckedKeys:st.halfChecked||void 0};else return(0,Te.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ze}function gt(st,ze){var he=new Set;function je(Xe){if(!he.has(Xe)){var Qe=(0,ke.Z)(ze,Xe);if(Qe){he.add(Xe);var Ue=Qe.parent,mt=Qe.node;mt.disabled||Ue&&je(Ue.key)}}}return(st||[]).forEach(function(Xe){je(Xe)}),(0,ce.Z)(he)}},90782:function(zn,en,ae){"use strict";ae.d(en,{S:function(){return pe}});var ce=ae(48736),De=ae(67841);function Te(xe,Me){var Ke=new Set;return xe.forEach(function(vt){Me.has(vt)||Ke.add(vt)}),Ke}function dt(xe){var Me=xe||{},Ke=Me.disabled,vt=Me.disableCheckbox,Pe=Me.checkable;return!!(Ke||vt)||Pe===!1}function be(xe,Me,Ke,vt){for(var Pe=new Set(xe),Be=new Set,et=0;et<=Ke;et+=1){var Je=Me.get(et)||new Set;Je.forEach(function(It){var gt=It.key,st=It.node,ze=It.children,he=ze===void 0?[]:ze;Pe.has(gt)&&!vt(st)&&he.filter(function(je){return!vt(je.node)}).forEach(function(je){Pe.add(je.key)})})}for(var tt=new Set,yt=Ke;yt>=0;yt-=1){var wt=Me.get(yt)||new Set;wt.forEach(function(It){var gt=It.parent,st=It.node;if(!(vt(st)||!It.parent||tt.has(It.parent.key))){if(vt(It.parent.node)){tt.add(gt.key);return}var ze=!0,he=!1;(gt.children||[]).filter(function(je){return!vt(je.node)}).forEach(function(je){var Xe=je.key,Qe=Pe.has(Xe);ze&&!Qe&&(ze=!1),!he&&(Qe||Be.has(Xe))&&(he=!0)}),ze&&Pe.add(gt.key),he&&Be.add(gt.key),tt.add(gt.key)}})}return{checkedKeys:Array.from(Pe),halfCheckedKeys:Array.from(Te(Be,Pe))}}function ke(xe,Me,Ke,vt,Pe){for(var Be=new Set(xe),et=new Set(Me),Je=0;Je<=vt;Je+=1){var tt=Ke.get(Je)||new Set;tt.forEach(function(gt){var st=gt.key,ze=gt.node,he=gt.children,je=he===void 0?[]:he;!Be.has(st)&&!et.has(st)&&!Pe(ze)&&je.filter(function(Xe){return!Pe(Xe.node)}).forEach(function(Xe){Be.delete(Xe.key)})})}et=new Set;for(var yt=new Set,wt=vt;wt>=0;wt-=1){var It=Ke.get(wt)||new Set;It.forEach(function(gt){var st=gt.parent,ze=gt.node;if(!(Pe(ze)||!gt.parent||yt.has(gt.parent.key))){if(Pe(gt.parent.node)){yt.add(st.key);return}var he=!0,je=!1;(st.children||[]).filter(function(Xe){return!Pe(Xe.node)}).forEach(function(Xe){var Qe=Xe.key,Ue=Be.has(Qe);he&&!Ue&&(he=!1),!je&&(Ue||et.has(Qe))&&(je=!0)}),he||Be.delete(st.key),je&&et.add(st.key),yt.add(st.key)}})}return{checkedKeys:Array.from(Be),halfCheckedKeys:Array.from(Te(et,Be))}}function pe(xe,Me,Ke,vt){var Pe=[],Be;vt?Be=vt:Be=dt;var et=new Set(xe.filter(function(wt){var It=!!(0,De.Z)(Ke,wt);return It||Pe.push(wt),It})),Je=new Map,tt=0;Object.keys(Ke).forEach(function(wt){var It=Ke[wt],gt=It.level,st=Je.get(gt);st||(st=new Set,Je.set(gt,st)),st.add(It),tt=Math.max(tt,gt)}),(0,ce.ZP)(!Pe.length,"Tree missing follow keys: ".concat(Pe.slice(0,100).map(function(wt){return"'".concat(wt,"'")}).join(", ")));var yt;return Me===!0?yt=be(et,Je,tt,Be):yt=ke(et,Me.halfCheckedKeys,Je,tt,Be),yt}},67841:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return ce}});function ce(De,Te){return De[Te]}},71430:function(zn,en,ae){"use strict";ae.d(en,{F:function(){return gt},H8:function(){return It},I8:function(){return wt},km:function(){return Pe},oH:function(){return tt},w$:function(){return Be},zn:function(){return Je}});var ce=ae(43749),De=ae(77654),Te=ae(85899),dt=ae(42244),be=ae(11592),ke=ae(2738),pe=ae(48736),xe=ae(67841),Me=["children"];function Ke(st,ze){return"".concat(st,"-").concat(ze)}function vt(st){return st&&st.type&&st.type.isTreeNode}function Pe(st,ze){return st!=null?st:ze}function Be(st){var ze=st||{},he=ze.title,je=ze._title,Xe=ze.key,Qe=ze.children,Ue=he||"title";return{title:Ue,_title:je||[Ue],key:Xe||"key",children:Qe||"children"}}function et(st,ze){var he=new Map;function je(Xe){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Xe||[]).forEach(function(Ue){var mt=Ue[ze.key],Le=Ue[ze.children];warning(mt!=null,"Tree node must have a certain key: [".concat(Qe).concat(mt,"]"));var Bt=String(mt);warning(!he.has(Bt)||mt===null||mt===void 0,"Same 'key' exist in the Tree: ".concat(Bt)),he.set(Bt,!0),je(Le,"".concat(Qe).concat(Bt," > "))})}je(st)}function Je(st){function ze(he){var je=(0,be.Z)(he);return je.map(function(Xe){if(!vt(Xe))return(0,pe.ZP)(!Xe,"Tree/TreeNode can only accept TreeNode as children."),null;var Qe=Xe.key,Ue=Xe.props,mt=Ue.children,Le=(0,dt.Z)(Ue,Me),Bt=(0,Te.Z)({key:Qe},Le),at=ze(mt);return at.length&&(Bt.children=at),Bt}).filter(function(Xe){return Xe})}return ze(st)}function tt(st,ze,he){var je=Be(he),Xe=je._title,Qe=je.key,Ue=je.children,mt=new Set(ze===!0?[]:ze),Le=[];function Bt(at){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return at.map(function(Lt,Tt){for(var Xt=Ke(Wt?Wt.pos:"0",Tt),jt=Pe(Lt[Qe],Xt),it,Ce=0;Ce<Xe.length;Ce+=1){var Et=Xe[Ce];if(Lt[Et]!==void 0){it=Lt[Et];break}}var on=(0,Te.Z)((0,Te.Z)({},(0,ke.Z)(Lt,[].concat((0,De.Z)(Xe),[Qe,Ue]))),{},{title:it,key:jt,parent:Wt,pos:Xt,children:null,data:Lt,isStart:[].concat((0,De.Z)(Wt?Wt.isStart:[]),[Tt===0]),isEnd:[].concat((0,De.Z)(Wt?Wt.isEnd:[]),[Tt===at.length-1])});return Le.push(on),ze===!0||mt.has(jt)?on.children=Bt(Lt[Ue]||[],on):on.children=[],on})}return Bt(st),Le}function yt(st,ze,he){var je={};(0,ce.Z)(he)==="object"?je=he:je={externalGetKey:he},je=je||{};var Xe=je,Qe=Xe.childrenPropName,Ue=Xe.externalGetKey,mt=Xe.fieldNames,Le=Be(mt),Bt=Le.key,at=Le.children,Wt=Qe||at,Lt;Ue?typeof Ue=="string"?Lt=function(jt){return jt[Ue]}:typeof Ue=="function"&&(Lt=function(jt){return Ue(jt)}):Lt=function(jt,it){return Pe(jt[Bt],it)};function Tt(Xt,jt,it,Ce){var Et=Xt?Xt[Wt]:st,on=Xt?Ke(it.pos,jt):"0",Yt=Xt?[].concat((0,De.Z)(Ce),[Xt]):[];if(Xt){var lt=Lt(Xt,on),pt={node:Xt,index:jt,pos:on,key:lt,parentPos:it.node?it.pos:null,level:it.level+1,nodes:Yt};ze(pt)}Et&&Et.forEach(function(Ft,Sn){Tt(Ft,Sn,{node:Xt,pos:on,level:it?it.level+1:-1},Yt)})}Tt(null)}function wt(st){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=ze.initWrapper,je=ze.processEntity,Xe=ze.onProcessFinished,Qe=ze.externalGetKey,Ue=ze.childrenPropName,mt=ze.fieldNames,Le=arguments.length>2?arguments[2]:void 0,Bt=Qe||Le,at={},Wt={},Lt={posEntities:at,keyEntities:Wt};return he&&(Lt=he(Lt)||Lt),yt(st,function(Tt){var Xt=Tt.node,jt=Tt.index,it=Tt.pos,Ce=Tt.key,Et=Tt.parentPos,on=Tt.level,Yt=Tt.nodes,lt={node:Xt,nodes:Yt,index:jt,key:Ce,pos:it,level:on},pt=Pe(Ce,it);at[it]=lt,Wt[pt]=lt,lt.parent=at[Et],lt.parent&&(lt.parent.children=lt.parent.children||[],lt.parent.children.push(lt)),je&&je(lt,Lt)},{externalGetKey:Bt,childrenPropName:Ue,fieldNames:mt}),Xe&&Xe(Lt),Lt}function It(st,ze){var he=ze.expandedKeys,je=ze.selectedKeys,Xe=ze.loadedKeys,Qe=ze.loadingKeys,Ue=ze.checkedKeys,mt=ze.halfCheckedKeys,Le=ze.dragOverNodeKey,Bt=ze.dropPosition,at=ze.keyEntities,Wt=(0,xe.Z)(at,st),Lt={eventKey:st,expanded:he.indexOf(st)!==-1,selected:je.indexOf(st)!==-1,loaded:Xe.indexOf(st)!==-1,loading:Qe.indexOf(st)!==-1,checked:Ue.indexOf(st)!==-1,halfChecked:mt.indexOf(st)!==-1,pos:String(Wt?Wt.pos:""),dragOver:Le===st&&Bt===0,dragOverGapTop:Le===st&&Bt===-1,dragOverGapBottom:Le===st&&Bt===1};return Lt}function gt(st){var ze=st.data,he=st.expanded,je=st.selected,Xe=st.checked,Qe=st.loaded,Ue=st.loading,mt=st.halfChecked,Le=st.dragOver,Bt=st.dragOverGapTop,at=st.dragOverGapBottom,Wt=st.pos,Lt=st.active,Tt=st.eventKey,Xt=(0,Te.Z)((0,Te.Z)({},ze),{},{expanded:he,selected:je,checked:Xe,loaded:Qe,loading:Ue,halfChecked:mt,dragOver:Le,dragOverGapTop:Bt,dragOverGapBottom:at,pos:Wt,active:Lt,key:Tt});return"props"in Xt||Object.defineProperty(Xt,"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`."),st}}),Xt}},8224:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return De}});var ce=ae(4676);function De(Te,dt,be,ke){var pe=ce.unstable_batchedUpdates?function(Me){ce.unstable_batchedUpdates(be,Me)}:be;return Te!=null&&Te.addEventListener&&Te.addEventListener(dt,pe,ke),{remove:function(){Te!=null&&Te.removeEventListener&&Te.removeEventListener(dt,pe,ke)}}}},55468:function(zn,en,ae){"use strict";ae.d(en,{g1:function(){return vt},os:function(){return Be}});var ce=/margin|padding|width|height|max|min|offset/,De={left:!0,top:!0},Te={cssFloat:1,styleFloat:1,float:1};function dt(et){return et.nodeType===1?et.ownerDocument.defaultView.getComputedStyle(et,null):{}}function be(et,Je,tt){if(Je=Je.toLowerCase(),tt==="auto"){if(Je==="height")return et.offsetHeight;if(Je==="width")return et.offsetWidth}return Je in De||(De[Je]=ce.test(Je)),De[Je]?parseFloat(tt)||0:tt}function ke(et,Je){var tt=arguments.length,yt=dt(et);return Je=Te[Je]?"cssFloat"in et.style?"cssFloat":"styleFloat":Je,tt===1?yt:be(et,Je,yt[Je]||et.style[Je])}function pe(et,Je,tt){var yt=arguments.length;if(Je=Te[Je]?"cssFloat"in et.style?"cssFloat":"styleFloat":Je,yt===3)return typeof tt=="number"&&ce.test(Je)&&(tt="".concat(tt,"px")),et.style[Je]=tt,tt;for(var wt in Je)Je.hasOwnProperty(wt)&&pe(et,wt,Je[wt]);return dt(et)}function xe(et){return et===document.body?document.documentElement.clientWidth:et.offsetWidth}function Me(et){return et===document.body?window.innerHeight||document.documentElement.clientHeight:et.offsetHeight}function Ke(){var et=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Je=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:et,height:Je}}function vt(){var et=document.documentElement.clientWidth,Je=window.innerHeight||document.documentElement.clientHeight;return{width:et,height:Je}}function Pe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Be(et){var Je=et.getBoundingClientRect(),tt=document.documentElement;return{left:Je.left+(window.pageXOffset||tt.scrollLeft)-(tt.clientLeft||document.body.clientLeft||0),top:Je.top+(window.pageYOffset||tt.scrollTop)-(tt.clientTop||document.body.clientTop||0)}}},24514:function(zn,en,ae){"use strict";ae.d(en,{G:function(){return dt}});var ce=ae(47273),De=function(ke){if((0,ce.Z)()&&window.document.documentElement){var pe=Array.isArray(ke)?ke:[ke],xe=window.document.documentElement;return pe.some(function(Me){return Me in xe.style})}return!1},Te=function(ke,pe){if(!De(ke))return!1;var xe=document.createElement("div"),Me=xe.style[ke];return xe.style[ke]=pe,xe.style[ke]!==Me};function dt(be,ke){return!Array.isArray(be)&&ke!==void 0?Te(be,ke):De(be)}},48911:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return Ht}});var ce=ae(60499),De=ae(43749),Te=ae(85899),dt=ae(18642),be=ae(72190),ke=ae(42244),pe=ae(92310),xe=ae.n(pe),Me=ae(29301),Ke=ae(70425),vt=ae(34280),Pe=ae(59301),Be=ae(4676),et=Pe.forwardRef(function(ye,ue){var le=ye.height,de=ye.offsetY,ge=ye.offsetX,se=ye.children,Oe=ye.prefixCls,ut=ye.onInnerResize,Ge=ye.innerProps,_e=ye.rtl,St=ye.extra,bt={},rt={display:"flex",flexDirection:"column"};return de!==void 0&&(bt={height:le,position:"relative",overflow:"hidden"},rt=(0,Te.Z)((0,Te.Z)({},rt),{},(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)({transform:"translateY(".concat(de,"px)")},_e?"marginRight":"marginLeft",-ge),"position","absolute"),"left",0),"right",0),"top",0))),Pe.createElement("div",{style:bt},Pe.createElement(Me.Z,{onResize:function(xn){var xt=xn.offsetHeight;xt&&ut&&ut()}},Pe.createElement("div",(0,ce.Z)({style:rt,className:xe()((0,dt.Z)({},"".concat(Oe,"-holder-inner"),Oe)),ref:ue},Ge),se,St)))});et.displayName="Filler";var Je=et;function tt(ye){var ue=ye.children,le=ye.setRef,de=Pe.useCallback(function(ge){le(ge)},[]);return Pe.cloneElement(ue,{ref:de})}function yt(ye,ue,le,de,ge,se,Oe,ut){var Ge=ut.getKey;return ye.slice(ue,le+1).map(function(_e,St){var bt=ue+St,rt=Oe(_e,bt,{style:{width:de},offsetX:ge}),Dt=Ge(_e);return Pe.createElement(tt,{key:Dt,setRef:function(xt){return se(_e,xt)}},rt)})}function wt(ye,ue,le,de){var ge=le-ye,se=ue-le,Oe=Math.min(ge,se)*2;if(de<=Oe){var ut=Math.floor(de/2);return de%2?le+ut+1:le-ut}return ge>se?le-(de-se):le+(de-ge)}function It(ye,ue,le){var de=ye.length,ge=ue.length,se,Oe;if(de===0&&ge===0)return null;de<ge?(se=ye,Oe=ue):(se=ue,Oe=ye);var ut={__EMPTY_ITEM__:!0};function Ge(xn){return xn!==void 0?le(xn):ut}for(var _e=null,St=Math.abs(de-ge)!==1,bt=0;bt<Oe.length;bt+=1){var rt=Ge(se[bt]),Dt=Ge(Oe[bt]);if(rt!==Dt){_e=bt,St=St||rt!==Ge(Oe[bt+1]);break}}return _e===null?null:{index:_e,multiple:St}}function gt(ye,ue,le){var de=Pe.useState(ye),ge=(0,be.Z)(de,2),se=ge[0],Oe=ge[1],ut=Pe.useState(null),Ge=(0,be.Z)(ut,2),_e=Ge[0],St=Ge[1];return Pe.useEffect(function(){var bt=It(se||[],ye||[],ue);(bt==null?void 0:bt.index)!==void 0&&(le==null||le(bt.index),St(ye[bt.index])),Oe(ye)},[ye]),[_e]}var st=ae(16089),ze=(typeof navigator=="undefined"?"undefined":(0,De.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),he=ze,je=function(ye,ue,le,de){var ge=(0,Pe.useRef)(!1),se=(0,Pe.useRef)(null);function Oe(){clearTimeout(se.current),ge.current=!0,se.current=setTimeout(function(){ge.current=!1},50)}var ut=(0,Pe.useRef)({top:ye,bottom:ue,left:le,right:de});return ut.current.top=ye,ut.current.bottom=ue,ut.current.left=le,ut.current.right=de,function(Ge,_e){var St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=Ge?_e<0&&ut.current.left||_e>0&&ut.current.right:_e<0&&ut.current.top||_e>0&&ut.current.bottom;return St&&bt?(clearTimeout(se.current),ge.current=!1):(!bt||ge.current)&&Oe(),!ge.current&&bt}};function Xe(ye,ue,le,de,ge,se,Oe){var ut=(0,Pe.useRef)(0),Ge=(0,Pe.useRef)(null),_e=(0,Pe.useRef)(null),St=(0,Pe.useRef)(!1),bt=je(ue,le,de,ge);function rt(ct,Ae){if(st.Z.cancel(Ge.current),!bt(!1,Ae)){var Ve=ct;if(!Ve._virtualHandled)Ve._virtualHandled=!0;else return;ut.current+=Ae,_e.current=Ae,he||Ve.preventDefault(),Ge.current=(0,st.Z)(function(){var Kt=St.current?10:1;Oe(ut.current*Kt,!1),ut.current=0})}}function Dt(ct,Ae){Oe(Ae,!0),he||ct.preventDefault()}var xn=(0,Pe.useRef)(null),xt=(0,Pe.useRef)(null);function Rt(ct){if(ye){st.Z.cancel(xt.current),xt.current=(0,st.Z)(function(){xn.current=null},2);var Ae=ct.deltaX,Ve=ct.deltaY,Kt=ct.shiftKey,Gt=Ae,hn=Ve;(xn.current==="sx"||!xn.current&&Kt&&Ve&&!Ae)&&(Gt=Ve,hn=0,xn.current="sx");var On=Math.abs(Gt),Ln=Math.abs(hn);xn.current===null&&(xn.current=se&&On>Ln?"x":"y"),xn.current==="y"?rt(ct,hn):Dt(ct,Gt)}}function cn(ct){ye&&(St.current=ct.detail===_e.current)}return[Rt,cn]}function Qe(ye,ue,le,de){var ge=Pe.useMemo(function(){return[new Map,[]]},[ye,le.id,de]),se=(0,be.Z)(ge,2),Oe=se[0],ut=se[1],Ge=function(St){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:St,rt=Oe.get(St),Dt=Oe.get(bt);if(rt===void 0||Dt===void 0)for(var xn=ye.length,xt=ut.length;xt<xn;xt+=1){var Rt,cn=ye[xt],ct=ue(cn);Oe.set(ct,xt);var Ae=(Rt=le.get(ct))!==null&&Rt!==void 0?Rt:de;if(ut[xt]=(ut[xt-1]||0)+Ae,ct===St&&(rt=xt),ct===bt&&(Dt=xt),rt!==void 0&&Dt!==void 0)break}return{top:ut[rt-1]||0,bottom:ut[Dt]}};return Ge}var Ue=ae(38705),mt=ae(17212),Le=function(){function ye(){(0,Ue.Z)(this,ye),(0,dt.Z)(this,"maps",void 0),(0,dt.Z)(this,"id",0),(0,dt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,mt.Z)(ye,[{key:"set",value:function(le,de){this.diffRecords.set(le,this.maps[le]),this.maps[le]=de,this.id+=1}},{key:"get",value:function(le){return this.maps[le]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ye}(),Bt=Le;function at(ye){var ue=parseFloat(ye);return isNaN(ue)?0:ue}function Wt(ye,ue,le){var de=Pe.useState(0),ge=(0,be.Z)(de,2),se=ge[0],Oe=ge[1],ut=(0,Pe.useRef)(new Map),Ge=(0,Pe.useRef)(new Bt),_e=(0,Pe.useRef)(0);function St(){_e.current+=1}function bt(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;St();var xn=function(){var cn=!1;ut.current.forEach(function(ct,Ae){if(ct&&ct.offsetParent){var Ve=ct.offsetHeight,Kt=getComputedStyle(ct),Gt=Kt.marginTop,hn=Kt.marginBottom,On=at(Gt),Ln=at(hn),Kn=Ve+On+Ln;Ge.current.get(Ae)!==Kn&&(Ge.current.set(Ae,Kn),cn=!0)}}),cn&&Oe(function(ct){return ct+1})};if(Dt)xn();else{_e.current+=1;var xt=_e.current;Promise.resolve().then(function(){xt===_e.current&&xn()})}}function rt(Dt,xn){var xt=ye(Dt),Rt=ut.current.get(xt);xn?(ut.current.set(xt,xn),bt()):ut.current.delete(xt),!Rt!=!xn&&(xn?ue==null||ue(Dt):le==null||le(Dt))}return(0,Pe.useEffect)(function(){return St},[]),[rt,bt,Ge.current,se]}var Lt=14/15;function Tt(ye,ue,le){var de=(0,Pe.useRef)(!1),ge=(0,Pe.useRef)(0),se=(0,Pe.useRef)(0),Oe=(0,Pe.useRef)(null),ut=(0,Pe.useRef)(null),Ge,_e=function(Dt){if(de.current){var xn=Math.ceil(Dt.touches[0].pageX),xt=Math.ceil(Dt.touches[0].pageY),Rt=ge.current-xn,cn=se.current-xt,ct=Math.abs(Rt)>Math.abs(cn);ct?ge.current=xn:se.current=xt;var Ae=le(ct,ct?Rt:cn,!1,Dt);Ae&&Dt.preventDefault(),clearInterval(ut.current),Ae&&(ut.current=setInterval(function(){ct?Rt*=Lt:cn*=Lt;var Ve=Math.floor(ct?Rt:cn);(!le(ct,Ve,!0)||Math.abs(Ve)<=.1)&&clearInterval(ut.current)},16))}},St=function(){de.current=!1,Ge()},bt=function(Dt){Ge(),Dt.touches.length===1&&!de.current&&(de.current=!0,ge.current=Math.ceil(Dt.touches[0].pageX),se.current=Math.ceil(Dt.touches[0].pageY),Oe.current=Dt.target,Oe.current.addEventListener("touchmove",_e,{passive:!1}),Oe.current.addEventListener("touchend",St,{passive:!0}))};Ge=function(){Oe.current&&(Oe.current.removeEventListener("touchmove",_e),Oe.current.removeEventListener("touchend",St))},(0,vt.Z)(function(){return ye&&ue.current.addEventListener("touchstart",bt,{passive:!0}),function(){var rt;(rt=ue.current)===null||rt===void 0||rt.removeEventListener("touchstart",bt),Ge(),clearInterval(ut.current)}},[ye])}function Xt(ye){return Math.floor(Math.pow(ye,.5))}function jt(ye,ue){var le="touches"in ye?ye.touches[0]:ye;return le[ue?"pageX":"pageY"]-window[ue?"scrollX":"scrollY"]}function it(ye,ue,le){Pe.useEffect(function(){var de=ue.current;if(ye&&de){var ge=!1,se,Oe,ut=function(){st.Z.cancel(se)},Ge=function rt(){ut(),se=(0,st.Z)(function(){le(Oe),rt()})},_e=function(){ge=!1,ut()},St=function(Dt){if(!(Dt.target.draggable||Dt.button!==0)){var xn=Dt;xn._virtualHandled||(xn._virtualHandled=!0,ge=!0)}},bt=function(Dt){if(ge){var xn=jt(Dt,!1),xt=de.getBoundingClientRect(),Rt=xt.top,cn=xt.bottom;if(xn<=Rt){var ct=Rt-xn;Oe=-Xt(ct),Ge()}else if(xn>=cn){var Ae=xn-cn;Oe=Xt(Ae),Ge()}else ut()}};return de.addEventListener("mousedown",St),de.ownerDocument.addEventListener("mouseup",_e),de.ownerDocument.addEventListener("mousemove",bt),de.ownerDocument.addEventListener("dragend",_e),function(){de.removeEventListener("mousedown",St),de.ownerDocument.removeEventListener("mouseup",_e),de.ownerDocument.removeEventListener("mousemove",bt),de.ownerDocument.removeEventListener("dragend",_e),ut()}}},[ye])}var Ce=10;function Et(ye,ue,le,de,ge,se,Oe,ut){var Ge=Pe.useRef(),_e=Pe.useState(null),St=(0,be.Z)(_e,2),bt=St[0],rt=St[1];return(0,vt.Z)(function(){if(bt&&bt.times<Ce){if(!ye.current){rt(function(Hr){return(0,Te.Z)({},Hr)});return}se();var Dt=bt.targetAlign,xn=bt.originAlign,xt=bt.index,Rt=bt.offset,cn=ye.current.clientHeight,ct=!1,Ae=Dt,Ve=null;if(cn){for(var Kt=Dt||xn,Gt=0,hn=0,On=0,Ln=Math.min(ue.length-1,xt),Kn=0;Kn<=Ln;Kn+=1){var tr=ge(ue[Kn]);hn=Gt;var gr=le.get(tr);On=hn+(gr===void 0?de:gr),Gt=On}for(var Un=Kt==="top"?Rt:cn-Rt,Cr=Ln;Cr>=0;Cr-=1){var Rr=ge(ue[Cr]),$r=le.get(Rr);if($r===void 0){ct=!0;break}if(Un-=$r,Un<=0)break}switch(Kt){case"top":Ve=hn-Rt;break;case"bottom":Ve=On-cn+Rt;break;default:{var vr=ye.current.scrollTop,Er=vr+cn;hn<vr?Ae="top":On>Er&&(Ae="bottom")}}Ve!==null&&Oe(Ve),Ve!==bt.lastTop&&(ct=!0)}ct&&rt((0,Te.Z)((0,Te.Z)({},bt),{},{times:bt.times+1,targetAlign:Ae,lastTop:Ve}))}},[bt,ye.current]),function(Dt){if(Dt==null){ut();return}if(st.Z.cancel(Ge.current),typeof Dt=="number")Oe(Dt);else if(Dt&&(0,De.Z)(Dt)==="object"){var xn,xt=Dt.align;"index"in Dt?xn=Dt.index:xn=ue.findIndex(function(ct){return ge(ct)===Dt.key});var Rt=Dt.offset,cn=Rt===void 0?0:Rt;rt({times:0,index:xn,offset:cn,originAlign:xt})}}}var on=Pe.forwardRef(function(ye,ue){var le=ye.prefixCls,de=ye.rtl,ge=ye.scrollOffset,se=ye.scrollRange,Oe=ye.onStartMove,ut=ye.onStopMove,Ge=ye.onScroll,_e=ye.horizontal,St=ye.spinSize,bt=ye.containerSize,rt=ye.style,Dt=ye.thumbStyle,xn=ye.showScrollBar,xt=Pe.useState(!1),Rt=(0,be.Z)(xt,2),cn=Rt[0],ct=Rt[1],Ae=Pe.useState(null),Ve=(0,be.Z)(Ae,2),Kt=Ve[0],Gt=Ve[1],hn=Pe.useState(null),On=(0,be.Z)(hn,2),Ln=On[0],Kn=On[1],tr=!de,gr=Pe.useRef(),Un=Pe.useRef(),Cr=Pe.useState(xn),Rr=(0,be.Z)(Cr,2),$r=Rr[0],vr=Rr[1],Er=Pe.useRef(),Hr=function(){xn===!0||xn===!1||(clearTimeout(Er.current),vr(!0),Er.current=setTimeout(function(){vr(!1)},3e3))},wn=se-bt||0,Zn=bt-St||0,Or=Pe.useMemo(function(){if(ge===0||wn===0)return 0;var _t=ge/wn;return _t*Zn},[ge,wn,Zn]),br=function(He){He.stopPropagation(),He.preventDefault()},hr=Pe.useRef({top:Or,dragging:cn,pageY:Kt,startTop:Ln});hr.current={top:Or,dragging:cn,pageY:Kt,startTop:Ln};var Yr=function(He){ct(!0),Gt(jt(He,_e)),Kn(hr.current.top),Oe(),He.stopPropagation(),He.preventDefault()};Pe.useEffect(function(){var _t=function(qe){qe.preventDefault()},He=gr.current,nt=Un.current;return He.addEventListener("touchstart",_t,{passive:!1}),nt.addEventListener("touchstart",Yr,{passive:!1}),function(){He.removeEventListener("touchstart",_t),nt.removeEventListener("touchstart",Yr)}},[]);var cr=Pe.useRef();cr.current=wn;var Ir=Pe.useRef();Ir.current=Zn,Pe.useEffect(function(){if(cn){var _t,He=function(qe){var Mt=hr.current,Ut=Mt.dragging,An=Mt.pageY,mn=Mt.startTop;st.Z.cancel(_t);var ln=gr.current.getBoundingClientRect(),Nn=bt/(_e?ln.width:ln.height);if(Ut){var Wn=(jt(qe,_e)-An)*Nn,Xn=mn;!tr&&_e?Xn-=Wn:Xn+=Wn;var rn=cr.current,Tn=Ir.current,Nt=Tn?Xn/Tn:0,Jt=Math.ceil(Nt*rn);Jt=Math.max(Jt,0),Jt=Math.min(Jt,rn),_t=(0,st.Z)(function(){Ge(Jt,_e)})}},nt=function(){ct(!1),ut()};return window.addEventListener("mousemove",He,{passive:!0}),window.addEventListener("touchmove",He,{passive:!0}),window.addEventListener("mouseup",nt,{passive:!0}),window.addEventListener("touchend",nt,{passive:!0}),function(){window.removeEventListener("mousemove",He),window.removeEventListener("touchmove",He),window.removeEventListener("mouseup",nt),window.removeEventListener("touchend",nt),st.Z.cancel(_t)}}},[cn]),Pe.useEffect(function(){return Hr(),function(){clearTimeout(Er.current)}},[ge]),Pe.useImperativeHandle(ue,function(){return{delayHidden:Hr}});var or="".concat(le,"-scrollbar"),Jn={position:"absolute",visibility:$r?null:"hidden"},Dr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return _e?(Object.assign(Jn,{height:8,left:0,right:0,bottom:0}),Object.assign(Dr,(0,dt.Z)({height:"100%",width:St},tr?"left":"right",Or))):(Object.assign(Jn,(0,dt.Z)({width:8,top:0,bottom:0},tr?"right":"left",0)),Object.assign(Dr,{width:"100%",height:St,top:Or})),Pe.createElement("div",{ref:gr,className:xe()(or,(0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(or,"-horizontal"),_e),"".concat(or,"-vertical"),!_e),"".concat(or,"-visible"),$r)),style:(0,Te.Z)((0,Te.Z)({},Jn),rt),onMouseDown:br,onMouseMove:Hr},Pe.createElement("div",{ref:Un,className:xe()("".concat(or,"-thumb"),(0,dt.Z)({},"".concat(or,"-thumb-moving"),cn)),style:(0,Te.Z)((0,Te.Z)({},Dr),Dt),onMouseDown:Yr}))}),Yt=on,lt=20;function pt(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=ye/ue*ye;return isNaN(le)&&(le=0),le=Math.max(le,lt),Math.floor(le)}var Ft=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Sn=[],$t={overflowY:"auto",overflowAnchor:"none"};function Pn(ye,ue){var le=ye.prefixCls,de=le===void 0?"rc-virtual-list":le,ge=ye.className,se=ye.height,Oe=ye.itemHeight,ut=ye.fullHeight,Ge=ut===void 0?!0:ut,_e=ye.style,St=ye.data,bt=ye.children,rt=ye.itemKey,Dt=ye.virtual,xn=ye.direction,xt=ye.scrollWidth,Rt=ye.component,cn=Rt===void 0?"div":Rt,ct=ye.onScroll,Ae=ye.onVirtualScroll,Ve=ye.onVisibleChange,Kt=ye.innerProps,Gt=ye.extraRender,hn=ye.styles,On=ye.showScrollBar,Ln=On===void 0?"optional":On,Kn=(0,ke.Z)(ye,Ft),tr=Pe.useCallback(function(_r){return typeof rt=="function"?rt(_r):_r==null?void 0:_r[rt]},[rt]),gr=Wt(tr,null,null),Un=(0,be.Z)(gr,4),Cr=Un[0],Rr=Un[1],$r=Un[2],vr=Un[3],Er=!!(Dt!==!1&&se&&Oe),Hr=Pe.useMemo(function(){return Object.values($r.maps).reduce(function(_r,Xr){return _r+Xr},0)},[$r.id,$r.maps]),wn=Er&&St&&(Math.max(Oe*St.length,Hr)>se||!!xt),Zn=xn==="rtl",Or=xe()(de,(0,dt.Z)({},"".concat(de,"-rtl"),Zn),ge),br=St||Sn,hr=(0,Pe.useRef)(),Yr=(0,Pe.useRef)(),cr=(0,Pe.useRef)(),Ir=(0,Pe.useState)(0),or=(0,be.Z)(Ir,2),Jn=or[0],Dr=or[1],_t=(0,Pe.useState)(0),He=(0,be.Z)(_t,2),nt=He[0],Ye=He[1],qe=(0,Pe.useState)(!1),Mt=(0,be.Z)(qe,2),Ut=Mt[0],An=Mt[1],mn=function(){An(!0)},ln=function(){An(!1)},Nn={getKey:tr};function Wn(_r){Dr(function(Xr){var Pi;typeof _r=="function"?Pi=_r(Xr):Pi=_r;var Hi=Jr(Pi);return hr.current.scrollTop=Hi,Hi})}var Xn=(0,Pe.useRef)({start:0,end:br.length}),rn=(0,Pe.useRef)(),Tn=gt(br,tr),Nt=(0,be.Z)(Tn,1),Jt=Nt[0];rn.current=Jt;var sn=Pe.useMemo(function(){if(!Er)return{scrollHeight:void 0,start:0,end:br.length-1,offset:void 0};if(!wn){var _r;return{scrollHeight:((_r=Yr.current)===null||_r===void 0?void 0:_r.offsetHeight)||0,start:0,end:br.length-1,offset:void 0}}for(var Xr=0,Pi,Hi,Na,Ra=br.length,ka=0;ka<Ra;ka+=1){var ha=br[ka],Qa=tr(ha),Ja=$r.get(Qa),Gr=Xr+(Ja===void 0?Oe:Ja);Gr>=Jn&&Pi===void 0&&(Pi=ka,Hi=Xr),Gr>Jn+se&&Na===void 0&&(Na=ka),Xr=Gr}return Pi===void 0&&(Pi=0,Hi=0,Na=Math.ceil(se/Oe)),Na===void 0&&(Na=br.length-1),Na=Math.min(Na+1,br.length-1),{scrollHeight:Xr,start:Pi,end:Na,offset:Hi}},[wn,Er,Jn,br,vr,se]),fn=sn.scrollHeight,In=sn.start,un=sn.end,Bn=sn.offset;Xn.current.start=In,Xn.current.end=un,Pe.useLayoutEffect(function(){var _r=$r.getRecord();if(_r.size===1){var Xr=Array.from(_r.keys())[0],Pi=_r.get(Xr),Hi=br[In];if(Hi&&Pi===void 0){var Na=tr(Hi);if(Na===Xr){var Ra=$r.get(Xr),ka=Ra-Oe;Wn(function(ha){return ha+ka})}}}$r.resetRecord()},[fn]);var ot=Pe.useState({width:0,height:se}),tn=(0,be.Z)(ot,2),nn=tn[0],En=tn[1],gn=function(Xr){En({width:Xr.offsetWidth,height:Xr.offsetHeight})},Mn=(0,Pe.useRef)(),kn=(0,Pe.useRef)(),Vn=Pe.useMemo(function(){return pt(nn.width,xt)},[nn.width,xt]),qn=Pe.useMemo(function(){return pt(nn.height,fn)},[nn.height,fn]),pr=fn-se,Tr=(0,Pe.useRef)(pr);Tr.current=pr;function Jr(_r){var Xr=_r;return Number.isNaN(Tr.current)||(Xr=Math.min(Xr,Tr.current)),Xr=Math.max(Xr,0),Xr}var ai=Jn<=0,Nr=Jn>=pr,yr=nt<=0,di=nt>=xt,ti=je(ai,Nr,yr,di),vi=function(){return{x:Zn?-nt:nt,y:Jn}},Wr=(0,Pe.useRef)(vi()),jr=(0,Ke.useEvent)(function(_r){if(Ae){var Xr=(0,Te.Z)((0,Te.Z)({},vi()),_r);(Wr.current.x!==Xr.x||Wr.current.y!==Xr.y)&&(Ae(Xr),Wr.current=Xr)}});function yi(_r,Xr){var Pi=_r;Xr?((0,Be.flushSync)(function(){Ye(Pi)}),jr()):Wn(Pi)}function ui(_r){var Xr=_r.currentTarget.scrollTop;Xr!==Jn&&Wn(Xr),ct==null||ct(_r),jr()}var $i=function(Xr){var Pi=Xr,Hi=xt?xt-nn.width:0;return Pi=Math.max(Pi,0),Pi=Math.min(Pi,Hi),Pi},sa=(0,Ke.useEvent)(function(_r,Xr){Xr?((0,Be.flushSync)(function(){Ye(function(Pi){var Hi=Pi+(Zn?-_r:_r);return $i(Hi)})}),jr()):Wn(function(Pi){var Hi=Pi+_r;return Hi})}),oi=Xe(Er,ai,Nr,yr,di,!!xt,sa),ar=(0,be.Z)(oi,2),rr=ar[0],pi=ar[1];Tt(Er,hr,function(_r,Xr,Pi,Hi){var Na=Hi;return ti(_r,Xr,Pi)?!1:!Na||!Na._virtualHandled?(Na&&(Na._virtualHandled=!0),rr({preventDefault:function(){},deltaX:_r?Xr:0,deltaY:_r?0:Xr}),!0):!1}),it(wn,hr,function(_r){Wn(function(Xr){return Xr+_r})}),(0,vt.Z)(function(){function _r(Pi){var Hi=ai&&Pi.detail<0,Na=Nr&&Pi.detail>0;Er&&!Hi&&!Na&&Pi.preventDefault()}var Xr=hr.current;return Xr.addEventListener("wheel",rr,{passive:!1}),Xr.addEventListener("DOMMouseScroll",pi,{passive:!0}),Xr.addEventListener("MozMousePixelScroll",_r,{passive:!1}),function(){Xr.removeEventListener("wheel",rr),Xr.removeEventListener("DOMMouseScroll",pi),Xr.removeEventListener("MozMousePixelScroll",_r)}},[Er,ai,Nr]),(0,vt.Z)(function(){if(xt){var _r=$i(nt);Ye(_r),jr({x:_r})}},[nn.width,xt]);var ni=function(){var Xr,Pi;(Xr=Mn.current)===null||Xr===void 0||Xr.delayHidden(),(Pi=kn.current)===null||Pi===void 0||Pi.delayHidden()},ki=Et(hr,br,$r,Oe,tr,function(){return Rr(!0)},Wn,ni);Pe.useImperativeHandle(ue,function(){return{nativeElement:cr.current,getScrollInfo:vi,scrollTo:function(Xr){function Pi(Hi){return Hi&&(0,De.Z)(Hi)==="object"&&("left"in Hi||"top"in Hi)}Pi(Xr)?(Xr.left!==void 0&&Ye($i(Xr.left)),ki(Xr.top)):ki(Xr)}}}),(0,vt.Z)(function(){if(Ve){var _r=br.slice(In,un+1);Ve(_r,br)}},[In,un,br]);var Ai=Qe(br,tr,$r,Oe),Ti=Gt==null?void 0:Gt({start:In,end:un,virtual:wn,offsetX:nt,offsetY:Bn,rtl:Zn,getSize:Ai}),mi=yt(br,In,un,xt,nt,Cr,bt,Nn),Ci=null;se&&(Ci=(0,Te.Z)((0,dt.Z)({},Ge?"height":"maxHeight",se),$t),Er&&(Ci.overflowY="hidden",xt&&(Ci.overflowX="hidden"),Ut&&(Ci.pointerEvents="none")));var Pa={};return Zn&&(Pa.dir="rtl"),Pe.createElement("div",(0,ce.Z)({ref:cr,style:(0,Te.Z)((0,Te.Z)({},_e),{},{position:"relative"}),className:Or},Pa,Kn),Pe.createElement(Me.Z,{onResize:gn},Pe.createElement(cn,{className:"".concat(de,"-holder"),style:Ci,ref:hr,onScroll:ui,onMouseEnter:ni},Pe.createElement(Je,{prefixCls:de,height:fn,offsetX:nt,offsetY:Bn,scrollWidth:xt,onInnerResize:Rr,ref:Yr,innerProps:Kt,rtl:Zn,extra:Ti},mi))),wn&&fn>se&&Pe.createElement(Yt,{ref:Mn,prefixCls:de,scrollOffset:Jn,scrollRange:fn,rtl:Zn,onScroll:yi,onStartMove:mn,onStopMove:ln,spinSize:qn,containerSize:nn.height,style:hn==null?void 0:hn.verticalScrollBar,thumbStyle:hn==null?void 0:hn.verticalScrollBarThumb,showScrollBar:Ln}),wn&&xt>nn.width&&Pe.createElement(Yt,{ref:kn,prefixCls:de,scrollOffset:nt,scrollRange:xt,rtl:Zn,onScroll:yi,onStartMove:mn,onStopMove:ln,spinSize:Vn,containerSize:nn.width,horizontal:!0,style:hn==null?void 0:hn.horizontalScrollBar,thumbStyle:hn==null?void 0:hn.horizontalScrollBarThumb,showScrollBar:Ln}))}var Zt=Pe.forwardRef(Pn);Zt.displayName="List";var an=Zt,Ht=an},25510:function(zn){"use strict";zn.exports="data:image/png;base64,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"},32637:function(zn){"use strict";zn.exports="data:image/jpeg;base64,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"},48136:function(zn,en,ae){"use strict";var ce=Object.defineProperty,De=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,pe=(a,y,b)=>y in a?ce(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,xe=(a,y)=>{for(var b in y||(y={}))be.call(y,b)&&pe(a,b,y[b]);if(dt)for(var b of dt(y))ke.call(y,b)&&pe(a,b,y[b]);return a},Me=(a,y)=>De(a,Te(y)),Ke=a=>typeof a=="symbol"?a:a+"",vt=(a,y)=>{var b={};for(var E in a)be.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&dt)for(var E of dt(a))y.indexOf(E)<0&&ke.call(a,E)&&(b[E]=a[E]);return b};function Pe(a){return Array.isArray(a)}var Be={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 et(){return"window"in globalThis&&"document"in globalThis}function Je(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function tt(){return typeof navigator.vibrate=="function"}function yt(){var a,y;if(!et())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 wt(){if(!et())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 It(){return HTMLElement.prototype.hasOwnProperty("popover")}var gt={strings:Be,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return gt._locale||(gt._locale=et()?navigator.language.slice(0,5):"en-US"),gt._locale},set locale(a){gt._locale=a,gt._numberFormatter=void 0,gt.dirty=!0},get numberFormatter(){return gt._numberFormatter||(gt._numberFormatter=new Intl.NumberFormat(gt.locale)),gt._numberFormatter},merge(a,y){if(typeof a=="string"&&y)gt.strings[a]=xe(xe({},gt.strings[a]),y),gt.dirty=!0;else for(const b of Object.keys(a))gt.merge(b,a[b])},get dirty(){return gt._dirty},set dirty(a){gt._dirty||gt._dirty===a||(gt._dirty=!0,setTimeout(()=>{gt._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return gt._subscribers.push(a),gt._subscribers.length-1},unsubscribe(a){a<0||a>=gt._subscribers.length||(gt._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const E=b.getAttribute("data-l10n-tooltip");if(E){const ee=st(E);ee&&b.setAttribute("data-tooltip",ee)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const E=b.getAttribute("data-l10n-arial-label");if(E){const ee=st(E);ee&&b.setAttribute("aria-label",ee)}}}};function st(a,...y){if(a===void 0)return;let b="";const E=gt.locale;gt.strings[E]&&(b=gt.strings[E][a]);const ee=E.slice(0,2);if(!b&>.strings[ee]&&(b=gt.strings[ee][a]),b||(b=gt.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let oe=re.exec(b),me=0;for(;oe;){if(y[me++]){const Ee=oe[2]?parseInt(oe[2],10)-1:me-1;let Ne=y[Ee];typeof Ne=="number"&&(Ne=gt.numberFormatter.format(Ne)),b=b.replace(oe[1],Ne)}oe=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var ze={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},he={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},je={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"},Xe={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"},Qe={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"},Ue={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 mt(a){var y,b,E,ee,re,oe;const me=a.split("!");let ve,Ee,Ne,ht=255,Pt=255,qt=255,dn=-1;const er=me.length>0&&me[0].startsWith("-");er&&(me[0]=me[0].slice(1));for(let ci=0;ci<me.length;ci++){ve=ht,Ee=Pt,Ne=qt;const Qn=(y=me[ci].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],kr=Qn==null?void 0:Qn.toLowerCase(),bi=Qn&&(oe=(re=(ee=(E=(b=Xe[kr])!=null?b:Xe[Qe[Qn]])!=null?E:he[Qn])!=null?ee:Ue[Qn])!=null?re:ze[Qn])!=null?oe:me[ci].trim();let zr=bi.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(zr!=null&&zr[1]&&zr[2]&&zr[3])ht=Math.max(0,Math.min(255,Number.parseInt(zr[1],16))),Pt=Math.max(0,Math.min(255,Number.parseInt(zr[2],16))),qt=Math.max(0,Math.min(255,Number.parseInt(zr[3],16)));else if(zr=bi.match(/^#([\da-f]{3})$/i),zr!=null&&zr[1]){const na=Number.parseInt(zr[1][0],16),xa=Number.parseInt(zr[1][1],16),pa=Number.parseInt(zr[1][2],16);ht=Math.max(0,Math.min(255,na*16+na)),Pt=Math.max(0,Math.min(255,xa*16+xa)),qt=Math.max(0,Math.min(255,pa*16+pa))}else if(zr=bi.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),zr!=null&&zr[1]&&zr[2]&&zr[3])ht=Math.max(0,Math.min(255,Number.parseInt(zr[1]))),Pt=Math.max(0,Math.min(255,Number.parseInt(zr[2]))),qt=Math.max(0,Math.min(255,Number.parseInt(zr[3])));else return;dn>=0&&(ht=(1-dn)*ht+dn*ve,Pt=(1-dn)*Pt+dn*Ee,qt=(1-dn)*qt+dn*Ne,dn=-1),ci+1<me.length&&(dn=Math.max(0,Math.min(100,Number.parseInt(me[++ci])))/100)}return dn>=0&&(ht=dn*ht+(1-dn)*ve,Pt=dn*Pt+(1-dn)*Ee,qt=dn*qt+(1-dn)*Ne),er&&(ht=255-ht,Pt=255-Pt,qt=255-qt),"#"+("00"+Math.round(ht).toString(16)).slice(-2)+("00"+Math.round(Pt).toString(16)).slice(-2)+("00"+Math.round(qt).toString(16)).slice(-2)}function Le(a){var y,b;return a=a.trim(),(b=(y=je[a.toLowerCase()])!=null?y:je[Qe[a]])!=null?b:mt(a)}function Bt(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 at(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 Wt(a){let[y,b,E]=[a.h,a.s,a.l];y=(y+360)%360/60,E=Math.max(0,Math.min(E,1)),b=Math.max(0,Math.min(b,1));const ee=E<=.5?E*(b+1):E+b-E*b,re=E*2-ee;return{r:Math.round(255*at(re,ee,y+2)),g:Math.round(255*at(re,ee,y)),b:Math.round(255*at(re,ee,y-2))}}function Lt(a){return a<0?0:a>255?255:Math.round(a)}function Tt(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(Lt(y)<<16)+(Lt(b)<<8)+Lt(E)).toString(16).slice(1);return ee[0]===ee[1]&&ee[2]===ee[3]&&ee[4]===ee[5]&&ee[6]===ee[7]&&(ee=ee[0]+ee[2]+ee[4]),"#"+ee}function Xt(a){let{r:y,g:b,b:E}=a;y=y/255,b=b/255,E=E/255;const ee=Math.min(y,b,E),re=Math.max(y,b,E),oe=re-ee;let me,ve;re===ee?me=0:y===re?me=(b-E)/oe:b===re?me=2+(E-y)/oe:E===re&&(me=4+(y-b)/oe),me=Math.min(me*60,360),me<0&&(me+=360);const Ee=(ee+re)/2;return re===ee?ve=0:Ee<=.5?ve=oe/(re+ee):ve=oe/(2-re-ee),{h:me,s:ve,l:Ee}}function jt(a){let y=Bt(a);if(!y)return a;let{h:b,s:E,l:ee}=Xt(y);return E+=.1,ee-=.1,Tt(Wt({h:b,s:E,l:ee}))}var it={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"},Ce={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},Et=[{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 on(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const E=a.codePointAt(0);if(E===void 0)return a;for(const ee of Et)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const re=ee.start+E-ee.offset;return String.fromCodePoint(Ce[re]||re)}return a}function Yt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Ce)if(Ce[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Et)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 lt(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let re=it[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:oe,variant:me,style:ve}=Yt(ee);switch(re=oe,me){case"double-struck":re=`\\mathbb{${re}}`;break;case"fraktur":re=`\\mathfrak{${re}}`;break;case"script":re=`\\mathscr{${re}}`;break;case"sans-serif":re=`\\mathsf{${re}}`;break;case"monospace":re=`\\mathtt{${re}}`;break;case"calligraphic":re=`\\mathcal{${re}}`;break}switch(ve){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function pt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Ft={},Sn=xe({},it),$t={},Pn={},Zt={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}"},an={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}},Ht={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}},ye={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:Ht},"amsmath.sty":{package:an,primitive:!0},"texvc.sty":{package:Zt,primitive:!1}},ue={" ":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},le=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,de,ge;wt()?(de=new RegExp("\\p{Letter}","u"),ge=new RegExp("[0-9\\p{Letter}]","u")):(de=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,ge=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function se(a,y,b="mord",E){y!==void 0&&(Ft[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},Sn[y]||(Sn[y]=a))}function Oe(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);se(ee,ee.codePointAt(0))}return}for(const[E,ee,re,oe]of a)se(E,ee,re!=null?re:y,oe!=null?oe:b)}function ut(a,y){for(let b=a;b<=y;b++)se(String.fromCodePoint(b),b)}function Ge(a){var y;return(y=Pn[a])!=null?y:null}function _e(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const oe in $t)oe.startsWith(y)&&!$t[oe].infix&&ee.push({match:oe,frequency:(b=$t[oe].frequency)!=null?b:0});for(const oe in Ft)oe.startsWith(y)&&ee.push({match:oe,frequency:(E=Ft[oe].frequency)!=null?E:0});const re=y.substring(1);for(const oe of Object.keys(a.options.macros))oe.startsWith(re)&&ee.push({match:"\\"+oe,frequency:0});return ee.sort((oe,me)=>{var ve,Ee;return oe.frequency===me.frequency?oe.match.length===me.match.length?oe.match<me.match?-1:1:oe.match.length-me.match.length:((ve=me.frequency)!=null?ve:0)-((Ee=oe.frequency)!=null?Ee:0)}),ee.map(oe=>oe.match)}function St(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function bt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:St(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...bt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:St(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...bt(b[E]))}return y}function rt(a){if(!a)return"";let y="",b=!0;for(const E of a)typeof E.value=="string"?y+=E.value:b=!1;return b?y:""}function Dt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)Pn[E]=b}function xn(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:bt(y),createAtom:b};for(const re of a)Pn[re]=ee}function xt(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:bt(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ee=b.infix)!=null?ee:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")$t["\\"+a]=re;else for(const oe of a)$t["\\"+oe]=re}var Rt;function cn(a){return Rt||(Rt=Ae(ye)),a?Ae(xe(xe({},Rt),a)):Rt}function ct(a,y){var b,E,ee,re;if(typeof a=="string"){let oe=0;const me=a;return/(^|[^\\])#1/.test(me)&&(oe=1),/(^|[^\\])#2/.test(me)&&(oe=2),/(^|[^\\])#3/.test(me)&&(oe=3),/(^|[^\\])#4/.test(me)&&(oe=4),/(^|[^\\])#5/.test(me)&&(oe=5),/(^|[^\\])#6/.test(me)&&(oe=6),/(^|[^\\])#7/.test(me)&&(oe=7),/(^|[^\\])#8/.test(me)&&(oe=8),/(^|[^\\])#9/.test(me)&&(oe=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:oe,def:me}}return xe({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(re=y==null?void 0:y.captureSelection)!=null?re:!0,args:0},a)}function Ae(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const E=a[b];if(E==null)delete y[b];else if(typeof E=="object"&&"package"in E)for(const ee of Object.keys(E.package))y[ee]=ct(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=ct(E)}return y}function Ve(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=$t[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Ft[a]:ue[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ue[a]})}else if(y==="math"){if(b=Ft[a],!b&&a.length===1){const E=Gt("math",a.codePointAt(0));return E.startsWith("\\")?Me(xe({},Ve(E,"math")),{command:E}):null}}else ue[a]?b={definitionType:"symbol",type:"mord",codepoint:ue[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Kt(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function Gt(a,y){if(y===void 0)return"";if(a==="math"&&Sn[y])return Sn[y];if(a==="text"){const b=Object.keys(ue).find(E=>ue[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var hn=[0,.68889,0,0,.72222],On=[0,.68889,0,0,.66667],Ln=[0,.68889,0,0,.77778],Kn=[0,.68889,0,0,.61111],tr=[.16667,.68889,0,0,.77778],gr=[0,.68889,0,0,.55556],Un=[0,0,0,0,.25],Cr=[0,.825,0,0,2.33334],Rr=[0,.9,0,0,2.33334],$r=[0,.68889,0,0,.54028],vr=[-.03598,.46402,0,0,.5],Er=[-.13313,.36687,0,0,1],Hr=[.01354,.52239,0,0,1],wn=[.01354,.52239,0,0,1.11111],Zn=[0,.54986,0,0,1],Or=[0,.69224,0,0,.5],br=[0,.43056,0,0,1],hr=[.08198,.58198,0,0,.77778],Yr=[.19444,.69224,0,0,.41667],cr=[.1808,.675,0,0,1],Ir=[.19444,.69224,0,0,.83334],or=[.13667,.63667,0,0,1],Jn=[-.064,.437,0,0,1.334],Dr=[.08167,.58167,0,0,.77778],_t=[0,.69224,0,0,.72222],He=[0,.69224,0,0,.66667],nt=[-.13313,.36687,0,0,.77778],Ye=[.06062,.54986,0,0,.77778],qe=[0,.69224,0,0,.77778],Mt=[.25583,.75583,0,0,.77778],Ut=[.25142,.75726,0,0,.77778],An=[.20576,.70576,0,0,.77778],mn=[.30274,.79383,0,0,.77778],ln=[.22958,.72958,0,0,.77778],Nn=[.1808,.675,0,0,.77778],Wn=[.13667,.63667,0,0,.77778],Xn=[.13597,.63597,0,0,.77778],rn=[.03517,.54986,0,0,.77778],Tn=[0,.675,0,0,.77778],Nt=[.19444,.69224,0,0,.61111],Jt=[0,.54986,0,0,.76042],sn=[0,.54986,0,0,.66667],fn=[.0391,.5391,0,0,.77778],In=[.03517,.54986,0,0,1.33334],un=[.38569,.88569,0,0,.77778],Bn=[.23222,.74111,0,0,.77778],ot=[.19444,.69224,0,0,.77778],tn=[0,.37788,0,0,.5],nn=[0,.54986,0,0,.72222],En=[0,.69224,0,0,.83334],gn=[.11111,.69224,0,0,.66667],Mn=[.26167,.75726,0,0,.77778],kn=[.48256,.98256,0,0,.77778],Vn=[.28481,.79383,0,0,.77778],qn=[.08167,.58167,0,0,.22222],pr=[.08167,.58167,0,0,.38889],Tr=[0,.43056,.04028,0,.66667],Jr=[.41951,.91951,0,0,.77778],ai=[.24982,.74947,0,0,.38865],Nr=[.08319,.58283,0,0,.75623],yr=[0,.10803,0,0,.27764],di=[0,.47534,0,0,.50181],ti=[.18906,.47534,0,0,.50181],vi=[0,.69141,0,0,.50181],Wr=[.24982,.74947,0,0,.27764],jr=[0,.69141,0,0,.21471],yi=[.25,.75,0,0,.44722],ui=[0,.64444,0,0,.575],$i=[.08556,.58556,0,0,.89444],sa=[0,.69444,0,0,.89444],oi=[0,.68611,0,0,.9],ar=[0,.68611,0,0,.86944],rr=[.25,.75,0,0,.575],pi=[.25,.75,0,0,.31944],ni=[0,.69444,0,0,.63889],ki=[0,.69444,0,0,.31944],Ai=[0,.44444,0,0,.63889],Ti=[0,.44444,0,0,.51111],mi=[0,.69444,0,0,.575],Ci=[.13333,.63333,0,0,.89444],Pa=[0,.44444,0,0,.31944],_r=[0,.69444,0,0,.86944],Xr=[0,.68611,0,0,.69166],Pi=[0,.68611,0,0,.83055],Hi=[0,.68611,0,0,.89444],Na=[0,.69444,0,0,.60278],Ra=[.19444,.69444,0,0,.51111],ka=[0,.69444,0,0,.83055],ha=[-.10889,.39111,0,0,1.14999],Qa=[.19444,.69444,0,0,.575],Ja=[.19444,.69444,0,0,1.14999],Gr=[.19444,.69444,0,0,.70277],Zr=[.05556,.75,0,0,.575],Kr=[0,.68611,0,0,.95833],fi=[.08556,.58556,0,0,.76666],ga=[-.02639,.47361,0,0,.575],Fa=[0,.44444,0,0,.89444],Ua=[0,.55556,0,0,.76666],za=[-.10889,.39111,0,0,.89444],Ta=[.00222,.50222,0,0,.89444],lo=[.19667,.69667,0,0,.89444],jo=[.08556,.58556,0,0,1.14999],_o=[0,.69444,0,0,.70277],hs=[-.02778,.47222,0,0,.575],la=[.25,.75,0,0,.51111],ya=[-.13889,.36111,0,0,1.14999],po=[.19444,.69444,0,0,1.02222],La=[.12963,.69444,0,0,.89444],$a=[.19444,.69444,0,0,.44722],Ya=[0,.64444,.13167,0,.59111],Za=[.19444,.64444,.13167,0,.59111],Oi=[0,.68611,.17208,0,.8961],ua=[.19444,.44444,.105,0,.53222],ra=[0,.44444,.085,0,.82666],Wi=[0,.69444,.06709,0,.59111],Oa=[0,.69444,.12945,0,.35555],Ba=[0,.69444,0,0,.94888],zo=[0,.69444,.11472,0,.59111],Vo=[0,.68611,.10778,0,.88555],$o=[0,.69444,.07939,0,.62055],Qo=[0,.69444,.12417,0,.30667],qa=[0,.64444,.13556,0,.51111],eo=[.19444,.64444,.13556,0,.51111],ns=[0,.68333,.16389,0,.74333],rs=[.19444,.43056,.08847,0,.46],ps=[0,.43056,.07514,0,.71555],Jo=[0,.69444,.06646,0,.51111],Vl=[0,.69444,0,0,.83129],Cl=[0,.69444,.1225,0,.51111],Sl=[0,.68333,.09403,0,.76666],el=[0,.68333,.11111,0,.76666],vu=[0,.69444,.06961,0,.51444],tl=[0,.69444,0,0,.27778],Ls=[.25,.75,0,0,.38889],ms=[0,.64444,0,0,.5],kl=[0,.69444,0,0,.77778],Ol=[0,.68333,0,0,.75],Nl=[0,.68333,0,0,.77778],au=[0,.68333,0,0,.68056],Fl=[0,.68333,0,0,.72222],Os=[.25,.75,0,0,.5],gs=[.25,.75,0,0,.27778],Do=[0,.69444,0,0,.5],zl=[0,.69444,0,0,.55556],yu=[0,.43056,0,0,.44445],nl=[0,.43056,0,0,.5],to=[.19444,.43056,0,0,.55556],Ha=[0,.43056,0,0,.55556],Ko=[.08333,.58333,0,0,.77778],is=[0,.43056,0,0,.27778],Uo=[0,.66786,0,0,.27778],Ns=[0,.69444,0,0,.75],Ks=[0,.66786,0,0,.5],cl=[0,.68333,0,0,.625],Hs=[.19444,.69444,0,0,.44445],Dl=[0,.69444,0,0,.72222],vl=[.19444,.69444,0,0,.5],Zs=[.19444,.69444,0,0,1],Hu=[.011,.511,0,0,1.126],$l=[.19444,.69444,0,0,.61111],ou=[.05556,.75,0,0,.5],su=[0,.68333,0,0,.83334],bu=[.0391,.5391,0,0,.66667],xu=[-.05555,.44445,0,0,.5],lc=[0,.43056,0,0,.77778],lu=[0,.55556,0,0,.66667],ku=[-.03625,.46375,0,0,.77778],Ul=[-.01688,.48312,0,0,.77778],uu=[.0391,.5391,0,0,1],vo=[0,.69444,0,0,.61111],Ao=[-.03472,.46528,0,0,.5],Go=[.25,.75,0,0,.44445],dl=[-.14236,.35764,0,0,1],Rs=[.244,.744,0,0,.412],rl=[.19444,.69444,0,0,.88889],Gs=[.12963,.69444,0,0,.77778],_s=[.19444,.69444,0,0,.38889],Kl=[.011,.511,0,0,1.638],Hl=[.19444,.69444,0,0,0],we=[0,.44444,0,0,.575],Ie=[.19444,.44444,0,0,.575],$e=[0,.68611,0,0,.75555],At=[0,.69444,0,0,.66759],Ot=[0,.68611,0,0,.80555],Dn=[0,.68611,.08229,0,.98229],Cn=[0,.68611,0,0,.76666],Yn=[0,.44444,0,0,.58472],Gn=[.19444,.44444,0,0,.6118],nr=[.19444,.43056,0,0,.5],qr=[0,.68333,.02778,.08334,.76278],dr=[0,.68333,.08125,.05556,.83125],ur=[0,.43056,0,.05556,.48472],Mr=[.19444,.43056,0,.08334,.51702],Lr=[.25,.75,0,0,.42778],Hn=[0,.69444,0,0,.55],ir=[0,.69444,0,0,.73334],Ar=[0,.69444,0,0,.79445],Ri=[0,.69444,0,0,.51945],Si=[0,.69444,0,0,.70278],Ni=[0,.69444,0,0,.76389],_i=[.25,.75,0,0,.34306],Li=[0,.69444,0,0,.56111],Ei=[0,.69444,0,0,.25556],Ka=[.19444,.45833,0,0,.56111],Ca=[0,.45833,0,0,.56111],_a=[0,.69444,0,0,.30556],uo=[0,.69444,0,0,.58056],co=[0,.69444,0,0,.67223],Co=[0,.69444,0,0,.85556],Oo=[0,.69444,0,0,.55834],Wa=[0,.65556,.11156,0,.5],ja=[0,.69444,.08094,0,.70834],no=[.17014,0,0,0,.44445],Po=[0,.69444,.0799,0,.5],Fo=[0,.69444,0,0,.73752],yo=[0,.69444,.09205,0,.5],ro=[0,.69444,.09031,0,.77778],as=[0,.69444,.07816,0,.27778],Cs=[0,.69444,.00316,0,.5],Re=[.19444,.69444,0,0,.83334],Ze=[.05556,.75,0,0,.83334],Ct=[0,.75,0,0,.5],kt=[.125,.08333,0,0,.27778],Vt=[0,.08333,0,0,.27778],zt=[0,.65556,0,0,.5],bn=[0,.69444,0,0,.47222],vn=[0,.69444,0,0,.66667],yn=[0,.69444,0,0,.59722],Fn=[0,.69444,0,0,.54167],Rn=[0,.69444,0,0,.70834],_n=[.25,.75,0,0,.28889],sr=[0,.69444,0,0,.51667],lr=[0,.44444,0,0,.44445],fr=[.19444,.44444,0,0,.51667],Pr=[0,.44444,0,0,.38333],Sr=[0,.44444,0,0,.51667],ei=[0,.69444,0,0,.83334],Fr=[.35001,.85,0,0,.45834],si=[.35001,.85,0,0,.57778],Zi=[.35001,.85,0,0,.41667],Xi=[.35001,.85,0,0,.58334],Bi=[0,.72222,0,0,.55556],ji=[1e-5,.6,0,0,.66667],ma=[1e-5,.6,0,0,.77778],hi=[.25001,.75,0,0,.94445],Fi=[.306,.805,.19445,0,.47222],xi=[.30612,.805,.19445,0,.47222],Br=[.25001,.75,0,0,.83334],ri=[.35001,.85,0,0,.47222],Vi=[.25001,.75,0,0,1.11111],Ea=[.65002,1.15,0,0,.59722],Gi=[.65002,1.15,0,0,.81111],Qr=[.65002,1.15,0,0,.47222],ia=[.65002,1.15,0,0,.66667],va=[0,.75,0,0,1],wa=[.55001,1.05,0,0,1.27778],Da=[.862,1.36,.44445,0,.55556],So=[.86225,1.36,.44445,0,.55556],Ia=[.55001,1.05,0,0,1.11111],aa=[.65002,1.15,0,0,.52778],Lo=[.65002,1.15,0,0,.61111],Qi=[.55001,1.05,0,0,1.51112],mo=[.95003,1.45,0,0,.73611],io=[.95003,1.45,0,0,1.04445],No=[.95003,1.45,0,0,.52778],ea=[.95003,1.45,0,0,.75],Ui=[0,.75,0,0,1.44445],Ji=[.95003,1.45,0,0,.58334],Ki=[1.25003,1.75,0,0,.79167],Di=[1.25003,1.75,0,0,1.27778],mr=[1.25003,1.75,0,0,.58334],gi=[1.25003,1.75,0,0,.80556],fa=[0,.825,0,0,1.8889],Aa=[1.25003,1.75,0,0,.63889],Ms=[.64502,1.155,0,0,.875],ls=[1e-5,.6,0,0,.875],fl=[-99e-5,.601,0,0,.66667],Yo=[.64502,1.155,0,0,.66667],Xo=[1e-5,.9,0,0,.88889],ta=[.65002,1.15,0,0,.88889],vs=[.90001,0,0,0,.88889],Fs=[-.00499,.605,0,0,1.05556],Xa=[0,.12,0,0,.45],Vr=[0,.61111,0,0,.525],fo=[.08333,.69444,0,0,.525],us=[-.08056,.53055,0,0,.525],cs=[-.05556,.55556,0,0,.525],ba=[0,.43056,0,0,.525],bo=[.22222,.43056,0,0,.525],Ss=[0,0,0,0,.525],xo={"AMS-Regular":{32:Un,65:hn,66:On,67:hn,68:hn,69:On,70:Kn,71:Ln,72:Ln,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Ln,76:On,77:[0,.68889,0,0,.94445],78:hn,79:tr,80:Kn,81:tr,82:hn,83:gr,84:On,85:hn,86:hn,87:[0,.68889,0,0,1],88:hn,89:hn,90:On,107:gr,160:Un,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:gr,295:$r,710:Cr,732:Rr,770:Cr,771:Rr,989:Dr,1008:Tr,8245:[0,.54986,0,0,.275],8463:$r,8487:hn,8498:gr,8502:On,8503:[0,.68889,0,0,.44445],8504:On,8513:[0,.68889,0,0,.63889],8592:vr,8594:vr,8602:Er,8603:Er,8606:Hr,8608:Hr,8610:wn,8611:wn,8619:Zn,8620:Zn,8621:[-.13313,.37788,0,0,1.38889],8622:Er,8624:Or,8625:Or,8630:br,8631:br,8634:hr,8635:hr,8638:Yr,8639:Yr,8642:Yr,8643:Yr,8644:cr,8646:cr,8647:cr,8648:Ir,8649:cr,8650:Ir,8651:Hr,8652:Hr,8653:Er,8654:Er,8655:Er,8666:or,8667:or,8669:[-.13313,.37788,0,0,1],8672:Jn,8674:Jn,8705:[0,.825,0,0,.5],8708:gr,8709:Dr,8717:[0,.43056,0,0,.42917],8722:vr,8724:[.08198,.69224,0,0,.77778],8726:Dr,8733:qe,8736:_t,8737:_t,8738:[.03517,.52239,0,0,.72222],8739:qn,8740:[.25142,.74111,0,0,.27778],8741:pr,8742:[.25142,.74111,0,0,.5],8756:He,8757:He,8764:nt,8765:[-.13313,.37788,0,0,.77778],8769:nt,8770:ku,8774:mn,8776:Ul,8778:Dr,8782:Ye,8783:Ye,8785:hr,8786:hr,8787:hr,8790:qe,8791:ln,8796:[.08198,.91667,0,0,.77778],8806:Mt,8807:Mt,8808:Ut,8809:Ut,8812:[.25583,.75583,0,0,.5],8814:An,8815:An,8816:mn,8817:mn,8818:ln,8819:ln,8822:Nn,8823:Nn,8828:Wn,8829:Wn,8830:ln,8831:ln,8832:An,8833:An,8840:mn,8841:mn,8842:Xn,8843:Xn,8847:rn,8848:rn,8858:hr,8859:hr,8861:hr,8862:Tn,8863:Tn,8864:Tn,8865:Tn,8872:[0,.69224,0,0,.61111],8873:_t,8874:[0,.69224,0,0,.88889],8876:Kn,8877:Kn,8878:hn,8879:hn,8882:rn,8883:rn,8884:Wn,8885:Wn,8888:[0,.54986,0,0,1.11111],8890:to,8891:Nt,8892:Nt,8901:[0,.54986,0,0,.27778],8903:Dr,8905:Dr,8906:Dr,8907:qe,8908:qe,8909:[-.03598,.46402,0,0,.77778],8910:Jt,8911:Jt,8912:rn,8913:rn,8914:sn,8915:sn,8916:He,8918:fn,8919:fn,8920:In,8921:In,8922:un,8923:un,8926:Wn,8927:Wn,8928:mn,8929:mn,8934:Bn,8935:Bn,8936:Bn,8937:Bn,8938:An,8939:An,8940:mn,8941:mn,8994:ot,8995:ot,9416:[.15559,.69224,0,0,.90222],9484:Or,9488:Or,9492:tn,9496:tn,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Tn,9633:Tn,9650:nn,9651:nn,9654:rn,9660:nn,9661:nn,9664:rn,9674:gn,9733:[.19444,.69224,0,0,.94445],10003:En,10016:En,10731:gn,10846:[.19444,.75583,0,0,.61111],10877:Wn,10878:Wn,10885:Mt,10886:Mt,10887:Xn,10888:Xn,10889:Mn,10890:Mn,10891:kn,10892:kn,10901:Wn,10902:Wn,10933:Ut,10934:Ut,10935:Mn,10936:Mn,10937:Mn,10938:Mn,10949:Mt,10950:Mt,10955:Vn,10956:Vn,57350:qn,57351:pr,57352:Dr,57353:Tr,57356:Ut,57357:Ut,57358:Jr,57359:mn,57360:mn,57361:Jr,57366:Ut,57367:Ut,57368:Ut,57369:Ut,57370:Xn,57371:Xn},"Caligraphic-Regular":{32:Un,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:Un},"Fraktur-Regular":{32:Un,33:[0,.69141,0,0,.29574],34:jr,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:ai,41:ai,42:[0,.62119,0,0,.27764],43:Nr,44:yr,45:Nr,46:yr,47:[.24982,.74947,0,0,.50181],48:di,49:di,50:di,51:ti,52:ti,53:ti,54:vi,55:ti,56:vi,57:ti,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:Wr,93:Wr,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:Un,8216:jr,8217:jr,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:Un,33:[0,.69444,0,0,.35],34:Na,35:[.19444,.69444,0,0,.95833],36:Zr,37:[.05556,.75,0,0,.95833],38:sa,39:ki,40:yi,41:yi,42:[0,.75,0,0,.575],43:Ci,44:[.19444,.15556,0,0,.31944],45:Pr,46:[0,.15556,0,0,.31944],47:rr,48:ui,49:ui,50:ui,51:ui,52:ui,53:ui,54:ui,55:ui,56:ui,57:ui,58:Pa,59:[.19444,.44444,0,0,.31944],60:$i,61:za,62:$i,63:[0,.69444,0,0,.54305],64:sa,65:ar,66:[0,.68611,0,0,.81805],67:Pi,68:[0,.68611,0,0,.88194],69:$e,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:oi,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Xr,77:[0,.68611,0,0,1.09166],78:oi,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:ar,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:pi,92:rr,93:pi,94:mi,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:ni,99:Ti,100:ni,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:ni,105:ki,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:ki,109:[0,.44444,0,0,.95833],110:Ai,111:we,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:Ai,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:Ti,123:rr,124:pi,125:rr,126:[.35,.34444,0,0,.575],160:Un,163:[0,.69444,0,0,.86853],168:mi,172:[0,.44444,0,0,.76666],176:_r,177:Ci,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Ci,216:[.04861,.73472,0,0,.89444],223:yn,230:[0,.44444,0,0,.83055],247:Ci,248:[.09722,.54167,0,0,.575],305:Pa,338:[0,.68611,0,0,1.16944],339:Fa,567:[.19444,.44444,0,0,.35139],710:mi,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:mi,715:mi,728:mi,729:ki,730:_r,732:mi,733:mi,915:Xr,916:Kr,920:Hi,923:Ot,926:Cn,928:oi,931:Pi,933:Hi,934:Pi,936:Hi,937:Pi,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:ki,8217:ki,8220:Na,8221:Na,8224:Ra,8225:Ra,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:At,8465:ka,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:ka,8501:_o,8592:ha,8593:Qa,8594:ha,8595:Qa,8596:ha,8597:rr,8598:Ja,8599:Ja,8600:Ja,8601:Ja,8636:ha,8637:ha,8640:ha,8641:ha,8656:ha,8657:Gr,8658:ha,8659:Gr,8660:ha,8661:[.25,.75,0,0,.70277],8704:ni,8706:[0,.69444,.06389,0,.62847],8707:ni,8709:Zr,8711:Kr,8712:fi,8715:fi,8722:Ci,8723:Ci,8725:rr,8726:rr,8727:hs,8728:ga,8729:ga,8730:[.18,.82,0,0,.95833],8733:Fa,8734:[0,.44444,0,0,1.14999],8736:_t,8739:pi,8741:rr,8743:Ua,8744:Ua,8745:Ua,8746:Ua,8747:[.19444,.69444,.12778,0,.56875],8764:za,8768:[.19444,.69444,0,0,.31944],8771:Ta,8776:[.02444,.52444,0,0,.89444],8781:Ta,8801:Ta,8804:lo,8805:lo,8810:jo,8811:jo,8826:$i,8827:$i,8834:$i,8835:$i,8838:lo,8839:lo,8846:Ua,8849:lo,8850:lo,8851:Ua,8852:Ua,8853:Ci,8854:Ci,8855:Ci,8856:Ci,8857:Ci,8866:_o,8867:_o,8868:sa,8869:sa,8900:ga,8901:[-.02639,.47361,0,0,.31944],8902:hs,8968:la,8969:la,8970:la,8971:la,8994:ya,8995:ya,9651:po,9657:hs,9661:po,9667:hs,9711:Ja,9824:La,9825:La,9826:La,9827:La,9837:[0,.75,0,0,.44722],9838:$a,9839:$a,10216:yi,10217:yi,10815:oi,10927:lo,10928:lo,57376:Hl},"Main-BoldItalic":{32:Un,33:[0,.69444,.11417,0,.38611],34:$o,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Oa,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:Ya,49:Ya,50:Ya,51:Ya,52:Za,53:Ya,54:Ya,55:Za,56:Ya,57:Ya,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:zo,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:Oi,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:Oi,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:Wi,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:ua,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:ua,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:Un,168:[0,.69444,.11473,0,.59111],176:Ba,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:ra,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:ra,567:[.19444,.44444,.04611,0,.385],710:Wi,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:Oa,730:Ba,732:zo,733:zo,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:Oi,931:[0,.68611,.11431,0,.82666],933:Vo,934:[0,.68611,.05632,0,.82666],936:Vo,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Oa,8217:Oa,8220:[0,.69444,.16772,0,.62055],8221:$o},"Main-Italic":{32:Un,33:Qo,34:vu,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:Qo,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:qa,49:qa,50:qa,51:qa,52:eo,53:qa,54:qa,55:eo,56:qa,57:qa,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Cl,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:ns,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:ns,79:Sl,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:ns,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:Jo,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:rs,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:rs,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:Un,168:[0,.66786,.10474,0,.51111],176:Vl,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:ps,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:ps,710:Jo,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:Vl,732:[0,.66786,.11585,0,.51111],733:Cl,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Sl,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:ns,931:[0,.68333,.12028,0,.71555],933:el,934:[0,.68333,.05986,0,.71555],936:el,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:Qo,8217:Qo,8220:[0,.69444,.1685,0,.51444],8221:vu,8463:$r},"Main-Regular":{32:Un,33:tl,34:Do,35:Re,36:ou,37:Ze,38:kl,39:tl,40:Ls,41:Ls,42:Ct,43:Ko,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Os,48:ms,49:ms,50:ms,51:ms,52:ms,53:ms,54:ms,55:ms,56:ms,57:ms,58:is,59:[.19444,.43056,0,0,.27778],60:fn,61:nt,62:fn,63:bn,64:kl,65:Ol,66:[0,.68333,0,0,.70834],67:Fl,68:[0,.68333,0,0,.76389],69:au,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Ol,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Nl,76:cl,77:[0,.68333,0,0,.91667],78:Ol,79:Nl,80:au,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Fl,85:Ol,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Ol,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:gs,92:Os,93:gs,94:Do,95:[.31,.12056,.02778,0,.5],97:nl,98:zl,99:yu,100:zl,101:yu,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:zl,105:Uo,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:tl,109:[0,.43056,0,0,.83334],110:Ha,111:nl,112:to,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:Ha,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:yu,123:Os,124:gs,125:Os,126:[.35,.31786,0,0,.5],160:Un,163:[0,.69444,0,0,.76909],167:Hs,168:Ks,172:[0,.43056,0,0,.66667],176:Ns,177:Ko,182:$l,184:no,198:[0,.68333,0,0,.90278],215:Ko,216:[.04861,.73194,0,0,.77778],223:Do,230:[0,.43056,0,0,.72222],247:Ko,248:[.09722,.52778,0,0,.5],305:is,338:[0,.68333,0,0,1.01389],339:lc,567:[.19444,.43056,0,0,.30556],710:Do,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Do,715:Do,728:Do,729:Uo,730:Ns,732:Ks,733:Do,915:cl,916:su,920:Nl,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Ol,931:Fl,933:Nl,934:Fl,936:Nl,937:Fl,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:tl,8217:tl,8220:Do,8221:Do,8224:Hs,8225:Hs,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:$r,8465:Dl,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Dl,8501:vo,8592:Er,8593:vl,8594:Er,8595:vl,8596:Er,8597:Os,8598:Zs,8599:Zs,8600:Zs,8601:Zs,8614:[.011,.511,0,0,1],8617:Hu,8618:Hu,8636:Er,8637:Er,8640:Er,8641:Er,8652:[.011,.671,0,0,1],8656:Er,8657:$l,8658:Er,8659:$l,8660:Er,8661:[.25,.75,0,0,.61111],8704:zl,8706:[0,.69444,.05556,.08334,.5309],8707:zl,8709:ou,8711:su,8712:bu,8715:bu,8722:Ko,8723:Ko,8725:Os,8726:Os,8727:Ao,8728:xu,8729:xu,8730:[.2,.8,0,0,.83334],8733:lc,8734:br,8736:_t,8739:gs,8741:Os,8743:lu,8744:lu,8745:lu,8746:lu,8747:[.19444,.69444,.11111,0,.41667],8764:nt,8768:[.19444,.69444,0,0,.27778],8771:ku,8773:[-.022,.589,0,0,1],8776:Ul,8781:ku,8784:[-.133,.67,0,0,.778],8801:ku,8804:Xn,8805:Xn,8810:uu,8811:uu,8826:fn,8827:fn,8834:fn,8835:fn,8838:Xn,8839:Xn,8846:lu,8849:Xn,8850:Xn,8851:lu,8852:lu,8853:Ko,8854:Ko,8855:Ko,8856:Ko,8857:Ko,8866:vo,8867:vo,8868:kl,8869:kl,8872:[.249,.75,0,0,.867],8900:xu,8901:[-.05555,.44445,0,0,.27778],8902:Ao,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:Go,8969:Go,8970:Go,8971:Go,8994:dl,8995:dl,9136:Rs,9137:Rs,9651:rl,9657:Ao,9661:rl,9667:Ao,9711:Zs,9824:Gs,9825:Gs,9826:Gs,9827:Gs,9837:[0,.75,0,0,.38889],9838:_s,9839:_s,10216:Ls,10217:Ls,10222:Rs,10223:Rs,10229:[.011,.511,0,0,1.609],10230:Kl,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:Kl,10815:Ol,10927:Xn,10928:Xn,57376:Hl},"Math-BoldItalic":{32:Un,48:we,49:we,50:we,51:Ie,52:Ie,53:Ie,54:ui,55:Ie,56:ui,57:Ie,65:ar,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:Dn,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:$e,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:At,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:Yn,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:Un,915:[0,.68611,.15972,0,.65694],916:Kr,920:[0,.68611,.03194,0,.86722],923:Ot,926:[0,.68611,.07458,0,.84125],928:Dn,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:Cn,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:Yn,960:[0,.44444,.03704,0,.68241],961:Gn,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:Gn,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Un,48:nl,49:nl,50:nl,51:nr,52:nr,53:nr,54:ms,55:nr,56:ms,57:nr,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:dr,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:qr,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:ur,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:Un,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:qr,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:dr,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:ur,960:[0,.43056,.03588,0,.57003],961:Mr,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:Mr,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Un,33:[0,.69444,0,0,.36667],34:Oo,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:Lr,41:Lr,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:Hn,49:Hn,50:Hn,51:Hn,52:Hn,53:Hn,54:Hn,55:Hn,56:Hn,57:Hn,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Ri,64:ir,65:ir,66:ir,67:Si,68:Ar,69:[0,.69444,0,0,.64167],70:vo,71:ir,72:Ar,73:[0,.69444,0,0,.33056],74:Ri,75:Ni,76:uo,77:[0,.69444,0,0,.97778],78:Ar,79:Ar,80:Si,81:[.10556,.69444,0,0,.79445],82:Si,83:vo,84:ir,85:Ni,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:ir,89:[0,.69444,.0275,0,.73334],90:co,91:_i,93:_i,94:Hn,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Li,99:[0,.45833,0,0,.48889],100:Li,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Li,105:Ei,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Ei,109:[0,.45833,0,0,.86667],110:Ca,111:[0,.45833,0,0,.55],112:Ka,113:Ka,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Ca,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:Un,168:Hn,176:ir,180:Hn,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Hn,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Hn,729:_a,730:ir,732:Hn,733:Hn,915:uo,916:[0,.69444,0,0,.91667],920:Co,923:co,926:ir,928:Ar,931:Ar,933:Co,934:Ar,936:Co,937:Ar,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:_a,8217:_a,8220:Oo,8221:Oo},"SansSerif-Italic":{32:Un,33:[0,.69444,.05733,0,.31945],34:Cs,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:as,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:kt,45:[0,.44444,.01946,0,.33333],46:Vt,47:[.25,.75,.13164,0,.5],48:Wa,49:Wa,50:Wa,51:Wa,52:Wa,53:Wa,54:Wa,55:Wa,56:Wa,57:Wa,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:vn,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:ja,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Fn,77:[0,.69444,.08094,0,.875],78:ja,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:Po,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:Un,168:[0,.67937,.06385,0,.5],176:Fo,184:no,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Po,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:yo,715:Do,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Fo,732:[0,.67659,.08826,0,.5],733:yo,915:[0,.69444,.13372,0,.54167],916:ei,920:[0,.69444,.07555,0,.77778],923:vo,926:[0,.69444,.12816,0,.66667],928:ja,931:[0,.69444,.11983,0,.72222],933:ro,934:[0,.69444,.04603,0,.72222],936:ro,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:as,8217:as,8220:[0,.69444,.14205,0,.5],8221:Cs},"SansSerif-Regular":{32:Un,33:[0,.69444,0,0,.31945],34:Do,35:Re,36:ou,37:Ze,38:[0,.69444,0,0,.75834],39:tl,40:Ls,41:Ls,42:Ct,43:Ko,44:kt,45:[0,.44444,0,0,.33333],46:Vt,47:Os,48:zt,49:zt,50:zt,51:zt,52:zt,53:zt,54:zt,55:zt,56:zt,57:zt,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:bn,64:vn,65:vn,66:vn,67:ni,68:[0,.69444,0,0,.72223],69:yn,70:[0,.69444,0,0,.56945],71:vn,72:Rn,73:tl,74:bn,75:[0,.69444,0,0,.69445],76:Fn,77:[0,.69444,0,0,.875],78:Rn,79:[0,.69444,0,0,.73611],80:ni,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:zl,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:vn,89:[0,.69444,.025,0,.66667],90:vo,91:_n,93:_n,94:Do,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:sr,99:lr,100:sr,101:lr,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:sr,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:Sr,111:[0,.44444,0,0,.5],112:fr,113:fr,114:[0,.44444,.01389,0,.34167],115:Pr,116:[0,.57143,0,0,.36111],117:Sr,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:Un,168:[0,.67937,0,0,.5],176:vn,184:no,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Do,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Do,715:Do,728:Do,729:[0,.67937,0,0,.27778],730:vn,732:[0,.67659,0,0,.5],733:Do,915:Fn,916:ei,920:kl,923:vo,926:vn,928:Rn,931:Dl,933:kl,934:Dl,936:kl,937:Dl,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:tl,8217:tl,8220:Do,8221:Do},"Script-Regular":{32:Un,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:Un},"Size1-Regular":{32:Un,40:Fr,41:Fr,47:si,91:Zi,92:si,93:Zi,123:Xi,125:Xi,160:Un,710:Bi,732:Bi,770:Bi,771:Bi,8214:[-99e-5,.601,0,0,.77778],8593:ji,8595:ji,8657:ma,8659:ma,8719:hi,8720:hi,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:xi,8748:Fi,8749:Fi,8750:xi,8896:Br,8897:Br,8898:Br,8899:Br,8968:ri,8969:ri,8970:ri,8971:ri,9168:fl,10216:ri,10217:ri,10752:Vi,10753:Vi,10754:Vi,10756:Br,10758:Br},"Size2-Regular":{32:Un,40:Ea,41:Ea,47:Gi,91:Qr,92:Gi,93:Qr,123:ia,125:ia,160:Un,710:va,732:va,770:va,771:va,8719:wa,8720:wa,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:So,8748:Da,8749:Da,8750:So,8896:Ia,8897:Ia,8898:Ia,8899:Ia,8968:aa,8969:aa,8970:aa,8971:aa,10216:Lo,10217:Lo,10752:Qi,10753:Qi,10754:Qi,10756:Ia,10758:Ia},"Size3-Regular":{32:Un,40:mo,41:mo,47:io,91:No,92:io,93:No,123:ea,125:ea,160:Un,710:Ui,732:Ui,770:Ui,771:Ui,8730:[.95003,1.45,0,0,1],8968:Ji,8969:Ji,8970:Ji,8971:Ji,10216:ea,10217:ea},"Size4-Regular":{32:Un,40:Ki,41:Ki,47:Di,91:mr,92:Di,93:mr,123:gi,125:gi,160:Un,710:fa,732:fa,770:fa,771:fa,8730:[1.25003,1.75,0,0,1],8968:Aa,8969:Aa,8970:Aa,8971:Aa,9115:Ms,9116:ls,9117:Ms,9118:Ms,9119:ls,9120:Ms,9121:Yo,9122:fl,9123:Yo,9124:Yo,9125:fl,9126:Yo,9127:Xo,9128:ta,9129:vs,9130:[0,.3,0,0,.88889],9131:Xo,9132:ta,9133:vs,9143:[.88502,.915,0,0,1.05556],10216:gi,10217:gi,57344:Fs,57345:Fs,57680:Xa,57681:Xa,57682:Xa,57683:Xa},"Typewriter-Regular":{32:Ss,33:Vr,34:Vr,35:Vr,36:fo,37:fo,38:Vr,39:Vr,40:fo,41:fo,42:[0,.52083,0,0,.525],43:us,44:[.13889,.125,0,0,.525],45:us,46:[0,.125,0,0,.525],47:fo,48:Vr,49:Vr,50:Vr,51:Vr,52:Vr,53:Vr,54:Vr,55:Vr,56:Vr,57:Vr,58:ba,59:[.13889,.43056,0,0,.525],60:cs,61:[-.19549,.41562,0,0,.525],62:cs,63:Vr,64:Vr,65:Vr,66:Vr,67:Vr,68:Vr,69:Vr,70:Vr,71:Vr,72:Vr,73:Vr,74:Vr,75:Vr,76:Vr,77:Vr,78:Vr,79:Vr,80:Vr,81:[.13889,.61111,0,0,.525],82:Vr,83:Vr,84:Vr,85:Vr,86:Vr,87:Vr,88:Vr,89:Vr,90:Vr,91:fo,92:fo,93:fo,94:Vr,95:[.09514,0,0,0,.525],96:Vr,97:ba,98:Vr,99:ba,100:Vr,101:ba,102:Vr,103:bo,104:Vr,105:Vr,106:[.22222,.61111,0,0,.525],107:Vr,108:Vr,109:ba,110:ba,111:ba,112:bo,113:bo,114:ba,115:ba,116:[0,.55358,0,0,.525],117:ba,118:ba,119:ba,120:ba,121:bo,122:ba,123:fo,124:fo,125:fo,126:Vr,127:Vr,160:Ss,176:Vr,184:[.19445,0,0,0,.525],305:ba,567:bo,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Vr,715:Vr,728:Vr,730:Vr,770:Vr,771:Vr,776:Vr,915:Vr,916:Vr,920:Vr,923:Vr,926:Vr,928:Vr,931:Vr,933:Vr,934:Vr,936:Vr,937:Vr,8216:Vr,8217:Vr,8242:Vr,9251:[.11111,.21944,0,0,.525]}},ca=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Ho=10,Ro=.25,Zl=1.2,zs=.431,hl={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[zs,zs,zs],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:[Ro,Ro,Ro],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]},Ws=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Zo=5,os={"\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 il(a,y){a===void 0&&(a=77);const b=xo[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 E=String.fromCodePoint(a);if(E in os)a=os[E].codePointAt(0);else if(ca.test(E))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 Gl={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]},pl={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},Yl={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
|
|
|
c -179 0 -524 -115 -524 -115
|
|
|
c -5 -1 -9 -5 -9 -10
|
|
|
c 0 -1 1 -2 1 -3
|
|
|
l 4 -22
|
|
|
c 1 -5 5 -9 11 -9
|
|
|
h 2
|
|
|
s 338 93 512 92
|
|
|
c 174 0 513 -92 513 -92
|
|
|
h 2
|
|
|
c 5 0 9 4 11 9
|
|
|
l 5 22
|
|
|
c 1 6 -2 12 -8 13
|
|
|
c 0 0 -342 115 -520 115
|
|
|
z
|
|
|
`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,widetilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,widetilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,widetilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,widetilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};function cu(a){if(pl[a]){const[Ee,Ne,ht]=pl[a],Pt=`<span class="stretchy" style="height:${ht}em"><svg width="100%" height="${ht}em" viewBox="0 0 ${Ee} ${Ne}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Yl[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*ht/2)/100}em;min-width:0">${Pt}</span>`}const[y,b,E,ee]=Gl[a];let re,oe;const me=E/1e3;y.length===3?(re=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],oe=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(re=["slice-1-of-2","slice-2-of-2"],oe=["xMinYMin","xMaxYMin"]):(re=["slice-1-of-1"],oe=[ee]);const ve=y.map((Ee,Ne)=>`<span class="${re[Ne]}" style=height:${me}em><svg width=400em height=${me}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${oe[Ne]} slice"><path fill="currentcolor" d="${Yl[Ee]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${me}em;min-width:${b}em;">${ve}</span>`}function uc(a){return Gl[a]?Gl[a][2]/1e3:pl[a][2]}function ao(a){const y=[];for(let b=0;b<a.length;b++){let E=a.charCodeAt(b);if(E===13&&a.charCodeAt(b+1)===10&&(E=10,b++),(E===13||E===12)&&(E=10),E===0&&(E=65533),E>=55296&&E<=56319){const ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const re=E-55296,oe=ee-56320;E=Pc(2,16)+re*Pc(2,10)+oe,b++}}y.push(E)}return y}var Eo=8205,ks=[[Eo,1],[65038,2],[127995,5],[129456,4],[917536,96]],Bo,Bs=[127462,127487];function Is(a){var y;if(Bo===void 0){Bo={};for(const b of ks)for(let E=b[0];E<=b[0]+b[1]-1;E++)Bo[E]=!0}return(y=Bo[a])!=null?y:!1}function Ys(a){return a>=Bs[0]&&a<=Bs[1]}function Xl(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=ao(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===Eo){const oe=E-1;for(E+=2;b[E]===Eo;)E+=2;y.push(String.fromCodePoint(...b.slice(oe,E-oe+1)))}else if(Is(re)){const oe=E-1;for(;Is(b[E]);)E+=b[E]===Eo?2:1;y.push(String.fromCodePoint(...b.slice(oe,2*E-oe-1)))}else Ys(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var cc=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=Xl(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 Du(a,y){var b,E,ee,re;const oe=[];let me=a.next();if(me&&me!=="\\relax"){if(me==="\\noexpand")me=a.next(),me&&oe.push(me);else if(me==="\\obeyspaces")a.obeyspaces=!0;else if(me==="\\bgroup")oe.push("<{>");else if(me==="\\egroup")oe.push("<}>");else if(me==="\\string"){if(me=a.next(),me)if(me.startsWith("\\"))for(const ve of me)oe.push(ve==="\\"?"\\backslash":ve);else me==="<{>"?oe.push("\\{"):me==="<space>"?oe.push("~"):me==="<}>"&&oe.push("\\}")}else if(me==="\\csname"){for(;a.peek()==="<space>";)a.next();let ve="",Ee=!1,Ne=[];do{if(Ne.length===0)if(/^#[\d?@]$/.test(a.peek())){const ht=a.get().slice(1);Ne=Ql((E=(b=y==null?void 0:y(ht))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),me=Ne[0]}else me=a.next(),Ne=me?[me]:[];Ee=Ne.length===0,!Ee&&me==="\\endcsname"&&(Ee=!0,Ne.shift()),Ee||(Ee=me==="<$>"||me==="<$$>"||me==="<{>"||me==="<}>"||typeof me=="string"&&me.length>1&&me.startsWith("\\")),Ee||(ve+=Ne.shift())}while(!Ee);ve&&oe.push("\\"+ve),oe.push(...Ne)}else if(me!=="\\endcsname")if(me.length>1&&me.startsWith("#")){const ve=me.slice(1);oe.push(...Ql((re=(ee=y==null?void 0:y(ve))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else oe.push(me)}return oe}function Ql(a,y=null){const b=[];let E="";for(const oe of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const me=oe.match(/((?:\\%)|[^%])*/);me!==null&&b.push(me[0])}const ee=new cc(lt(b.join(""))),re=[];do re.push(...Du(ee,y));while(!ee.end());return re}function oo(a){let y="";const b=[];for(const E of a)E&&(y&&/^[a-zA-Z\*]/.test(E)&&b.push(y),b.push(E),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(E)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(E)?" ":"");return b.join("")}function ss(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:oo([a,...y.map(b=>`{${b}}`)])}function Jl(a){return oo(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var Au=class Sf{constructor(y){Sf._registry[y]=this}static createAtom(y,b,E){return Sf._registry[y].createAtom(b,Ve(b,y),E)}static serialize(y,b){var E;if(!y||y.length===0)return"";if((E=b.skipStyles)!=null&&E){const ee=[];for(const re of Lc(y)){const oe=Sf._registry[re[0].mode];ee.push(...oe.serialize(re,b))}return oo(ee)}return oo(dc(y,b))}static getFont(y,b,E){return Sf._registry[y].getFont(b,E)}};Au._registry={};var Xs=Au;function Lc(a){const y=[];let b=[],E="NONE";for(const ee of a)ee.type!=="first"&&(ee.mode!==E?(b.length>0&&y.push(b),b=[ee],E=ee.mode):b.push(ee));return b.length>0&&y.push(b),y}function Ds(a,y){const b=[];let E=[],ee;for(const re of a)if(re.type!=="first"&&re.style){let oe;y==="variant"?(oe=re.style.variant,re.style.variantStyle&&re.style.variantStyle!=="up"&&(oe+="-"+re.style.variantStyle)):oe=re.style[y],oe===ee?E.push(re):(E.length>0&&b.push(E),E=[re],ee=oe)}return E.length>0&&b.push(E),b}function ec(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const oe of Lc(a)){const me=y.defaultMode;for(const ve of Ds(oe,"color")){const Ee=ve[0].computedStyle,Ne=Xs._registry[ve[0].mode].serialize(ve,Me(xe({},y),{defaultMode:me==="text"?"text":"math"}));!y.skipStyles&&Ee.color&&Ee.color!=="none"&&(!E||ee!==Ee.color)?re.push(ss("\\textcolor",(b=Ee.verbatimColor)!=null?b:Ee.color,oo(Ne))):re.push(oo(Ne))}}return re}function Bc(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Ds(a,"backgroundColor").map(ee=>{var re;if(ee.length>0||ee[0].type!=="box"){const oe=ee[0].computedStyle;if(oe.backgroundColor&&oe.backgroundColor!=="none"&&(!b||E!==oe.backgroundColor))return ss("\\colorbox",(re=oe.verbatimBackgroundColor)!=null?re:oe.backgroundColor,oo(ec(ee,Me(xe({},y),{defaultMode:"text"}))))}return oo(ec(ee,y))})}function dc(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const re of Ds(a,"fontSize")){const oe=re[0].computedStyle.fontSize,me=Bc(re,y);me&&(oe&&oe!=="auto"&&(!b||E!==oe)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][oe],...me):ee.push(...me))}return ee}function Zu(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 Wu(a){if(a.length===0)return"ord";const y=Zu(a[0].type),b=Zu(a[a.length-1].type);return y&&y===b?y:"ord"}function wu(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 li=class Ep{constructor(y,b){var E,ee,re,oe,me;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Pe(y)?this.children=y.filter(Ee=>Ee!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const Ee of this.children)Ee.parent=this;this.type=(E=b==null?void 0:b.type)!=null?E:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ee=b==null?void 0:b.classes)!=null?ee:"",this.isTight=(re=b==null?void 0:b.isTight)!=null?re:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ve=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ve=(me=Xs.getFont((oe=b.mode)!=null?oe:"math",this,Me(xe({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?me:void 0),ve||(ve="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),Pu(this,ve)}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,E){if(b===void 0)return;const ee=wu(b,E);ee.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ee)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=wu(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"]=wu(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"]=wu(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"]=wu(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 E=y.color;E&&E!==b.color&&this.setStyle("color",E);let ee=y.backgroundColor;this.isSelected&&(ee=jt(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const re=y.scalingFactor;return this.scale=re,this.skew*=re,this.italic*=re,this}toMarkup(){var y,b,E,ee;let re=(y=this.value)!=null?y:"";if(this.children)for(const qt of this.children)re+=qt.toMarkup();let oe="";if(this.svgBody)oe=cu(this.svgBody);else if(this.svgOverlay){oe='<span style="',oe+="display: inline-block;",oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,oe+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,oe+='">',oe+=re,oe+="</span>",oe+='<svg style="position:absolute;overflow:visible;',oe+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const qt=(b=this.cssProperties)==null?void 0:b.padding;qt?(oe+=`top:${qt};`,oe+=`left:${qt};`,oe+=`width:calc(100% - 2 * ${qt} );`):oe+="top:0;left:0;width:100%;",oe+="z-index:2;",oe+='"',this.svgStyle&&(oe+=this.svgStyle),oe+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,oe+=`>${this.svgOverlay}</svg>`}let me="";const ve=this.classes.split(" ");ve.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&ve.push("ML__latex-caret"),this.isSelected&&ve.push("ML__selected");const Ee=ve.length===1?ve[0]:ve.filter((qt,dn,er)=>qt.length>0&&er.indexOf(qt)===dn).join(" ");if(Ee.length>0&&(me+=` class="${Ee}"`),this.id&&(me+=` data-atom-id=${this.id}`),this.cssId&&(me+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(me+=" "+Object.keys(this.attributes).map(qt=>`${qt}="${this.attributes[qt]}"`).join(" ")),this.htmlData){const qt=this.htmlData.split(",");for(const dn of qt){const er=dn.match(/([^=]+)=(.+$)/);if(er){const ci=er[1].trim().replace(/ /g,"-");ci&&(me+=` data-${ci}="${er[2]}" `)}else{const ci=dn.trim().replace(/ /g,"-");ci&&(me+=` data-${ci} `)}}}const Ne=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Ne.width===void 0&&(Ne.width=`${Math.ceil(this._width*100)/100}em`);const ht=Object.keys(Ne).map(qt=>`${qt}:${Ne[qt]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||oe.length>0)&&ht.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const qt=this.htmlStyle.split(";");let dn="";for(const er of qt){const ci=er.match(/([^=]+):(.+$)/);if(ci){const Qn=ci[1].trim().replace(/ /g,"-");Qn&&(dn+=`${Qn}:${ci[2]};`)}}dn&&(me+=` style="${dn}"`)}ht.length>0&&(me+=` style="${ht.join(";")}"`);let Pt="";return me.length>0||oe.length>0?Pt=`<span${me}>${re}${oe}</span>`:Pt=re,this.caret==="text"?Pt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Pt+='<span class="ML__caret"></span>'),Pt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,E=y.children&&y.children.length>0;if(b||E)return!1;if(y.cssProperties||this.cssProperties){for(const ve of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ve in y.cssProperties||this.cssProperties&&ve in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,re=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==re)return!1;if(ee>0){for(const ve of Object.keys(this.cssProperties))if(this.cssProperties[ve]!==y.cssProperties[ve])return!1}const oe=this.classes.trim().replace(/\s+/g," ").split(" "),me=y.classes.trim().replace(/\s+/g," ").split(" ");if(oe.length!==me.length)return!1;oe.sort(),me.sort();for(const[ve,Ee]of oe.entries())if(Ee==="vertical-separator"||Ee!==me[ve])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 Ic(a){if(!a||a.length===0)return[];a[0].children=Ic(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=Ic(a[b].children),y.push(a[b]));return y}function ju(a){return a.children&&(a.children=Ic(a.children)),a}function fc(a,y){if(!a)return new li(null,y);const b=new li(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const E=[b];if(a.depth!==0){const ee=new li(null,{classes:"ML__strut--bottom",type:"ignore"});ee.setStyle("height",a.height+a.depth,"em"),ee.setStyle("vertical-align",-a.depth,"em"),E.push(ee)}return E.push(a),new li(E,Me(xe({},y),{type:"lift"}))}function Wl(a){const y=uc(a)/2,b=new li(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Pu(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 E=0;E<a.value.length;E++){const ee=il(a.value.codePointAt(E),y);a.height=Math.max(a.height,ee.height),a.depth=Math.max(a.depth,ee.depth),a._width+=ee.width,a.skew=ee.skew,a.italic=ee.italic}return}if(a.children&&a.children.length>0){let E=-1/0,ee=-1/0,re=0;for(const oe of a.children)oe.height>E&&(E=oe.height),oe.depth>ee&&(ee=oe.depth),re=Math.max(re,(b=oe.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((oe,me)=>oe+me.width,0),a.maxFontSize=re}}function Iu(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let re=ee;for(let oe=1;oe<y.length;oe++){const me=y[oe],ve=-me.shift-re-me.box.depth,Ee=ve-(b.box.height+b.box.depth);re=re+ve,E.push(Ee),E.push(me),b=me}return[E,ee]}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 Tu(a){var y;const[b,E]=Iu(a);if(!b)return[[],0,0];const ee=new li(null,{classes:"pstrut"});let re=0;for(const dn of b)if(typeof dn!="number"){const er=dn.box;re=Math.max(re,er.maxFontSize,er.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const oe=[];let me=E,ve=E,Ee=E,Ne=0;for(const dn of b){if(typeof dn=="number")Ee+=dn;else{const er=dn.box,ci=(y=dn.classes)!=null?y:[],Qn=new li([ee,er],{classes:ci.join(" "),style:dn.style});er.setStyle("height",er.height+er.depth,"em"),er.setStyle("display","inline-block"),Qn.setStyle("top",-re-Ee-er.depth,"em"),dn.marginLeft&&Qn.setStyle("margin-left",dn.marginLeft,"em"),dn.marginRight&&Qn.setStyle("margin-right",dn.marginRight,"em"),oe.push(Qn),Ee+=er.height+er.depth,Ne=Math.max(Ne,Qn.width)}me=Math.min(me,Ee),ve=Math.max(ve,Ee)}oe.forEach(dn=>{dn.softWidth=Ne});const ht=new li(oe,{classes:"vlist"});if(ht.softWidth=Ne,ht.height=ve,ht.setStyle("height",ve,"em"),me>=0)return[[new li(ht,{classes:"vlist-r"})],ve,-me];const Pt=new li(new li(null),{classes:"vlist"});Pt.height=-me,Pt.setStyle("height",-me,"em");const qt=new li(8203,{classes:"vlist-s",maxFontSize:0});return qt.softWidth=0,qt.height=0,qt.depth=0,[[new li([ht,qt],{classes:"vlist-r"}),new li(Pt,{classes:"vlist-r"})],ve,-me]}var qo=class extends li{constructor(a,y){var b;const[E,ee,re]=Tu(a);super(E.length===1?E[0]:E,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(E.length===2?" vlist-t2":"")}),this.height=ee,this.depth=re,this.softWidth=E.reduce((oe,me)=>Math.max(oe,me.width),0)}};function Wc(a,y){var b,E,ee,re,oe;const me=a.metrics,ve=new li(y.base),Ee=(b=y.baseShift)!=null?b:0,Ne=(E=y.slant)!=null?E:0;let ht=0,Pt=0;y.above&&(ht=(ee=y.aboveShift)!=null?ee:Math.max(me.bigOpSpacing1,me.bigOpSpacing3-y.above.depth)),y.below&&(Pt=(re=y.belowShift)!=null?re:Math.max(me.bigOpSpacing2,me.bigOpSpacing4-y.below.height));let qt=null;if(y.below&&y.above){const dn=me.bigOpSpacing5+y.below.height+y.below.depth+Pt+ve.depth+Ee;qt=new qo({bottom:dn,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Ne,classes:["ML__center"]},Pt,{box:ve,classes:["ML__center"]},ht,{box:y.above,marginLeft:Ne,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)qt=new qo({top:ve.height-Ee,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Ne,classes:["ML__center"]},Pt,{box:ve,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const dn=ve.depth+Ee;qt=new qo({bottom:dn,children:[{box:ve,classes:["ML__center"]},ht,{box:y.above,marginLeft:Ne,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else{const dn=ve.depth+Ee;qt=new qo({bottom:dn,children:[{box:ve},me.bigOpSpacing5]}).wrap(a)}return new li(qt,{type:(oe=y.type)!=null?oe:"op"})}var tc=7,ql=6,nc=5,du=4,Cu=3,al=2,El=1,js=0,fu=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const E={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(hl).reduce((ee,re)=>Me(xe({},ee),{[re]:hl[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Mo[[js,El,js,El,al,Cu,al,Cu][this.id]]}get sub(){return Mo[[js,js,js,js,al,al,al,al][this.id]]}get fracNum(){return Mo[[js,El,js,El,al,Cu,du,nc][this.id]]}get fracDen(){return Mo[[js,js,js,js,al,al,du,du][this.id]]}get cramp(){return Mo[[js,js,al,al,du,du,ql,ql][this.id]]}get isTight(){return this.sizeDelta<0}},so={7:new fu(tc,0,!1),6:new fu(ql,0,!0),5:new fu(nc,0,!1),4:new fu(du,0,!0),3:new fu(Cu,-3,!1),2:new fu(al,-3,!0),1:new fu(El,-4,!1),0:new fu(js,-4,!0)},Mo=Me(xe({},so),{displaystyle:so[tc],textstyle:so[nc],scriptstyle:so[Cu],scriptscriptstyle:so[El]});function ol(a,y){var b;if(!a)return 0;const E={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:Ho,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 ee=Pc(10,y);return Math.round(a.dimension/Ho*E*ee)/ee}return a.dimension*E}function eu(a,y){if(a===null)return 0;const b=ol(a)/Ho;if(Number.isFinite(y)){const E=Pc(10,y);return Math.round(b*E)/E}return b}function tu(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function Tc(a){let y=tu(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${tu(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${tu(a.shrink)}`),y}function As(a){var y,b;if(a==null)return null;let E="";if("dimension"in a&&(E=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(E=Tc(a)),"number"in a)if(!("base"in a)||a.base==="decimal")E=Number(a.number).toString();else if(a.base==="alpha")E=`\`${String.fromCodePoint(a.number)}`;else{const ee=Math.round(a.number)>>>0;a.base==="hexadecimal"?(E=Number(ee).toString(16).toUpperCase(),ee<=255?E=E.padStart(2,"0"):ee<=65535?E=E.padStart(4,"0"):ee<=16777215?E=E.padStart(6,"0"):E=E.padStart(8,"0"),E=`"${E}`):a.base==="octal"&&(E=Number(ee).toString(8),ee<=63?E=E.padStart(2,"0"):ee<=30583?E=E.padStart(4,"0"):E=E.padStart(8,"0"),E=`'${E}`)}return"register"in a&&("factor"in a&&(a.factor===-1?E="-":a.factor!==1&&(E=Number(a.factor).toString())),"global"in a&&a.global&&(E+="\\global"),E+=`\\${a.register}`),"string"in a&&(E=a.string),(b=a.relax)!=null&&b&&(E+="\\relax"),E}function jl(a,y){return a==null?null:"number"in a?Me(xe({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?Me(xe({},a),{factor:a.factor*y}):Me(xe({},a),{factor:y}):"dimension"in a?Me(xe({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:jl(a.glue,y),shrink:jl(a.shrink,y),grow:jl(a.grow,y)}:a.shrink?{glue:jl(a.glue,y),shrink:jl(a.shrink,y)}:a.grow?{glue:jl(a.glue,y),grow:jl(a.grow,y)}:{glue:jl(a.glue,y)}:null}var Oc={"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 hu(){return xe({},Oc)}function jc(){return{registers:hu(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:gt.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:mt,backgroundColorMap:Le,getMacro:a=>Kt(a,cn())}}var wo=class Mp{constructor(y,b){var E,ee,re,oe,me,ve,Ee,Ne,ht,Pt,qt,dn,er,ci,Qn;let kr;y!=null&&y.parent?(this.parent=y.parent,kr=y.parent,this.registers={}):(kr=xe(xe({},jc()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=kr.registers),kr.atomIdsSettings&&(this.atomIdsSettings=xe({},kr.atomIdsSettings)),this.renderPlaceholder=kr.renderPlaceholder,this.isPhantom=(oe=(re=y==null?void 0:y.isPhantom)!=null?re:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?oe:!1,this.letterShapeStyle=kr.letterShapeStyle,this.minFontScale=kr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ve=(me=this.parent)==null?void 0:me.color)!=null?ve:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Ne=(Ee=this.parent)==null?void 0:Ee.backgroundColor)!=null?Ne:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((ht=this.parent)==null?void 0:ht.size)?this.size=b.fontSize:this.size=(qt=(Pt=this.parent)==null?void 0:Pt.size)!=null?qt:Zo;let bi=(er=(dn=this.parent)==null?void 0:dn.mathstyle)!=null?er:Mo.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(kr instanceof Mp)switch(y.mathstyle){case"cramp":bi=bi.cramp;break;case"superscript":bi=bi.sup;break;case"subscript":bi=bi.sub;break;case"numerator":bi=bi.fracNum;break;case"denominator":bi=bi.fracDen;break}switch(y.mathstyle){case"textstyle":bi=Mo.textstyle;break;case"displaystyle":bi=Mo.displaystyle;break;case"scriptstyle":bi=Mo.scriptstyle;break;case"scriptscriptstyle":bi=Mo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=bi,this.smartFence=kr.smartFence,this.placeholderSymbol=kr.placeholderSymbol,this.colorMap=(ci=kr.colorMap)!=null?ci:zr=>zr,this.backgroundColorMap=(Qn=kr.backgroundColorMap)!=null?Qn:zr=>zr,this.getMacro=kr.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===tc||this.mathstyle.id===ql}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Ws[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 E=this.registers[y];return typeof E=="object"&&"glue"in E?E:typeof E=="object"&&"dimension"in E?{glue:{dimension:E.dimension}}:typeof E=="number"?{glue:{dimension:E}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return eu(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E.glue:typeof E=="object"&&"dimension"in E?E:typeof E=="number"?{dimension:E}: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 E=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(E=y.factor);const ee=b.getRegister(y.register);if(ee===void 0)return;if(typeof ee=="string")return{string:Number(ee).toString()+ee};if(typeof ee=="number")return{number:E*ee};const re=b.evaluate(ee);if(re!==void 0)return"string"in re?{string:Number(ee).toString()+re.string}:"number"in re?{number:E*re.number}:"dimension"in re?Me(xe({},re),{dimension:E*re.dimension}):"glue"in re?Me(xe({},re),{glue:Me(xe({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?Me(xe({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?Me(xe({},re.grow),{dimension:E*re.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 E=this.toDimension(y);return E===null?0:ol(E,b)/Ho}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,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.colorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}toBackgroundColor(y){var b,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.backgroundColorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}},Vu=["body","above","below","superscript","subscript"];function Al(a){return typeof a=="string"&&Vu.includes(a)}function hc(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var xr=class Hc{constructor(y){var b,E,ee,re,oe,me;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(E=(b=y.command)!=null?b:this.value)!=null?E:"",this.mode=(ee=y.mode)!=null?ee:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=xe({},y.style),this.displayContainsHighlight=(re=y.displayContainsHighlight)!=null?re:!1,this.captureSelection=(oe=y.captureSelection)!=null?oe:!1,this.skipBoundary=(me=y.skipBoundary)!=null?me:!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,E){var ee;if(!b)return null;const re=td(b),oe=[];for(const ve of re){const Ee=ve[0].style,Ne=nd(y,ve,{style:{color:Ee.color,backgroundColor:Ee.backgroundColor,fontSize:Ee.fontSize}});Ne&&oe.push(Ne)}if(oe.length===0)return null;const me=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return oe.length===1&&!me&&!(E!=null&&E.type)?oe[0].wrap(y):new li(oe,{classes:me,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Xs.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const E=new WeakSet;let{parent:ee}=y;for(;ee;)E.add(ee),ee=ee.parent;for(ee=b.parent;ee;){if(E.has(ee))return ee;ee=ee.parent}console.assert(!!ee)}static fromJson(y){return typeof y=="string"?new Hc({type:"mord",value:y,mode:"math"}):new Hc(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=xe({},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=id(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(E=>E.type!=="first").map(E=>E.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=Ve(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?oo([ss(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?oo([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Xs.serialize(this.body,Me(xe({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Xs.serialize(this.above,y)}belowToLatex(y){return Xs.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=Me(xe({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Xs.serialize(this.subscript,y);E.length===0?b+="_{}":E.length===1?/^[0-9]$/.test(E)?b+=`_${E}`:b+=`_{${E}}`:b+=`_{${E}}`}if(this.branch("superscript")!==void 0){const E=Xs.serialize(this.superscript,y);E.length===0?b+="^{}":E.length===1?E==="\u2032"?b+="^\\prime ":E==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(E)?b+=`^${E}`:b+=`^{${E}}`:b+=`^{${E}}`}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(Al(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(Al(y)),Al(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 hc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return hc(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 E=typeof this.style.verbatimColor=="string",ee=typeof this.style.verbatimBackgroundColor=="string",re=xe(xe({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete re.variant,delete re.variantStyle,ee||delete re.verbatimBackgroundColor,E||delete re.verbatimColor,re}applyStyle(y){this.isDirty=!0,this.style=xe(xe({},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,E;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(E=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?E: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 E;if(!y||(console.assert(Al(b)),!Al(b)))return;console.assert(((E=y[0])==null?void 0:E.type)!=="first");const ee=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ee:this._branches={[b]:ee};for(const re of y)re.parent=this,re.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Hc({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 E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const E=this.createBranch(b);for(const ee of y)ee.parent=this,ee.parentBranch=b,E.push(ee);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ee of y)ee.parent=this,ee.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(Al(y)&&(this._branches[y]=void 0),!b)return[];for(const E of b)E.parent=void 0,E.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),E=b.indexOf(y);console.assert(E>=0),b.splice(E,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 E of this._branches[b])y.push(...E.children),y.push(E);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=Ve(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new wo({parent:y},this.style);let ee=this.createBox(E,{classes:this.parent?"":"ML__base"});return ee?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ee=this.attachSupsub(E,{base:ee})),ee.wrap(E)):null}attachSupsub(y,b){var E;const ee=b.base,re=this.superscript,oe=this.subscript;if(!re&&!oe)return ee;let me=null,ve=null;const Ee=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Ne=0;if(re){const er=new wo({parent:y,mathstyle:"superscript"});me=Hc.createBox(er,re),Ee||(Ne=ee.height-y.metrics.supDrop*er.scalingFactor)}let ht=0;if(oe){const er=new wo({parent:y,mathstyle:"subscript"});ve=Hc.createBox(er,oe),Ee||(ht=ee.depth+y.metrics.subDrop*er.scalingFactor)}let Pt;y.isDisplayStyle?Pt=y.metrics.sup1:y.isCramped?Pt=y.metrics.sup3:Pt=y.metrics.sup2;const qt=.5/Ho/y.scalingFactor;let dn=null;if(ve&&me){Ne=Math.max(Ne,Pt,me.depth+.25*y.metrics.xHeight),ht=Math.max(ht,y.metrics.sub2);const er=y.metrics.defaultRuleThickness;if(Ne-me.depth-(ve.height-ht)<4*er){ht=4*er-(Ne-me.depth)+ve.height;const Qn=.8*y.metrics.xHeight-(Ne-me.depth);Qn>0&&(Ne+=Qn,ht-=Qn)}const ci=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;dn=new qo({individualShift:[{box:ve,shift:ht,marginLeft:ci},{box:me,shift:-Ne}]}).wrap(y)}else ve&&!me?(ht=Math.max(ht,y.metrics.sub1,ve.height-.8*zs),dn=new qo({shift:ht,children:[{box:ve,marginRight:qt,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!ve&&me&&(Ne=Math.max(Ne,Pt,me.depth+.25*zs),dn=new qo({shift:-Ne,children:[{box:me,marginRight:qt}]}));return new li([ee,new li(dn,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Hc.createBox(new wo({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Hc.createBox(new wo({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):Wc(y,Me(xe({},b),{above:E,below:ee}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let E=this.parent;for(;E&&!E.captureSelection;)E=E.parent;return E!=null&&E.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var E,ee,re,oe;const me=(E=this.value)!=null?E:this.body,ve=(ee=b==null?void 0:b.boxType)!=null?ee:Zu(this.type);let Ee=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(Ee+=" ML__text");const Ne=typeof me=="string"||me===void 0?new li(me!=null?me:null,{type:ve,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:Me(xe({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Ee}):(oe=Hc.createBox(y,me,{type:ve,classes:Ee}))!=null?oe:new li(null);return y.isTight&&(Ne.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Ne.italic=0),Ne.right=Ne.italic,this.bind(y,Ne),this.caret&&!this.superscript&&!this.subscript&&(Ne.caret=this.caret),Ne}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 td(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const re=ee.computedStyle;y&&re.color===y.color&&re.backgroundColor===y.backgroundColor&&re.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=re)}return E.length>0&&b.push(E),b}function nd(a,y,b){var E,ee,re,oe,me;if(!y||y.length===0)return null;const ve=new wo({parent:a},b.style),Ee=!((E=ve.atomIdsSettings)!=null&&E.groupNumbers);let Ne=[];if(y.length===1){const Pt=y[0],qt=Pt.render(ve);qt&&(Ee&&Pt.isSelected&&qt.selected(!0),Ne=[qt])}else{let Pt="",qt=!0;for(const dn of y){(ee=ve.atomIdsSettings)!=null&&ee.groupNumbers&&Pt&&(qt&&dn.isDigit()||!qt&&rd(dn))&&(ve.atomIdsSettings.overrideID=Pt);const er=dn.render(ve);ve.atomIdsSettings&&(ve.atomIdsSettings.overrideID=void 0),er&&((re=ve.atomIdsSettings)!=null&&re.groupNumbers&&((dn.isDigit()||rd(dn))&&(!Pt||qt!==dn.isDigit())&&(qt=dn.isDigit(),Pt=(oe=dn.id)!=null?oe:""),Pt&&(!(dn.isDigit()||rd(dn))||!dn.hasEmptyBranch("superscript")||!dn.hasEmptyBranch("subscript"))&&(Pt="")),Ee&&dn.isSelected&&er.selected(!0),Ne.push(er))}}if(Ne.length===0)return null;const ht=new li(Ne,Me(xe({isTight:ve.isTight},b),{type:(me=b.type)!=null?me:"lift"}));return ht.isSelected=Ne.every(Pt=>Pt.isSelected),ht.wrap(ve)}function rd(a){return a.mode==="text"}function id(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof xr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var Ou=class kp extends xr{constructor(y,b,E){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(E)}static fromJson(y){return new kp(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:Gt("text",this.value.codePointAt(0))}};function pc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&Wd(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function Wd(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function yl(a){let y=1/0,b=-1/0;for(const E of a.ranges)y=Math.min(y,E[0],E[1]),b=Math.max(b,E[0],E[1]);return[y,b]}function Uu(a){return typeof a=="number"&&!Number.isNaN(a)}function Nc(a){return Array.isArray(a)&&a.length===2}function mc(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function ad(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&ⅇ)ee&&(E=ee.mode),ee=ee.parent}return E}function wd(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,E=!1,ee=!1,re=!1,oe=!1,me=!1,ve=!1,Ee=!1,Ne=!1,ht=!1,Pt=!1,qt=!1,dn=!1,er=!1,ci=!1,Qn=a[0],kr=0;for(;Qn!=null&&Qn.type&&/^(subsup|placeholder)$/.test(Qn.type);)kr+=1,Qn=a[kr];return b=!Qn||Qn.type==="first",Qn&&(er=Qn.mode==="text",E=!er&&Qn.type==="mord"&&de.test(Qn.value),ee=!er&&Qn.type==="mord"&&/\d+$/.test(Qn.value),re=!er&&Qn.isFunction,oe=Qn.type==="genfrac",me=Qn.type==="surd",ve=Qn.type==="mbin",Ee=Qn.type==="mrel",Ne=Qn.type==="mop"||Qn.type==="operator"||Qn.type==="extensible-symbol",ht=Qn.type==="mpunct"||Qn.type==="minner",Pt=Qn.type==="array",qt=Qn.type==="mopen",dn=Qn.type==="mclose"||Qn.type==="leftright",ci=Qn.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&re||y.after.includes("frac")&&oe||y.after.includes("surd")&&me||y.after.includes("binop")&&ve||y.after.includes("relop")&&Ee||y.after.includes("operator")&&Ne||y.after.includes("punct")&&ht||y.after.includes("array")&&Pt||y.after.includes("openfence")&&qt||y.after.includes("closefence")&&dn||y.after.includes("text")&&er||y.after.includes("space")&&ci?y.value:""}function od(a,y,b){return b?wd(a,b[y]):""}var Io={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 oa(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=Nu(a)),E==="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",da(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function da(a,y){var b,E,ee;if(!a)return"";let re=!1,oe;const me=(b=y.inlineShortcuts)!=null?b:Io;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(oe=ho(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[0]+"{"+oe.match+"}",a+=da(oe.rest,y),re=!0),re||(oe=a.match(/^(sqrt|\u221A)(.*)/),oe&&(oe=ho(oe[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt{"+((E=oe.match)!=null?E:"\\placeholder{}")+"}",a+=da(oe.rest,y),re=!0)),re||(oe=a.match(/^(\\cbrt|\u221B)(.*)/),oe&&(oe=ho(oe[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt[3]{"+((ee=oe.match)!=null?ee:"\\placeholder{}")+"}",a+=da(oe.rest,y),re=!0)),re||(oe=a.match(/^abs(.*)/),oe&&(oe=ho(oe[1],{inlineShortcuts:me,noWrap:!0}),a="\\left|"+oe.match+"\\right|",a+=da(oe.rest,y),re=!0)),re||(oe=a.match(/^["”“](.*?)["”“](.*)/),oe&&(a="\\text{"+oe[1]+"}",a+=da(oe[2],y),re=!0)),re||(oe=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),oe&&(a=Es(oe[1],me),a+=da(oe[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(oe=ho(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+oe.match+"\\right)":a[0]+oe.match,a+=da(oe.rest,y),re=!0),re||(oe=a.match(/^([a-zA-Z]+)(.*)/),oe&&(a=Es(oe[1],me),a+=da(oe[2],y),re=!0)),!re)if(oe=ho(a,{inlineShortcuts:me,noWrap:!0}),oe.match&&oe.rest[0]==="/"){const ve=ho(oe.rest.slice(1),{inlineShortcuts:me,noWrap:!0});ve.match&&(a="\\frac{"+oe.match+"}{"+ve.match+"}"+da(ve.rest,y)),re=!0}else oe.match&&(a=a.startsWith("(")?"\\left("+oe.match+"\\right)"+da(oe.rest,y):oe.match+da(oe.rest,y),re=!0);return re||(oe=a.match(/^(\s+)(.*)$/),oe&&(a=" "+da(oe[2],y),re=!0)),a}function ho(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let oe=1,me=1;for(;me<a.length&&oe>0;)a[me]===ee&&oe++,a[me]===re&&oe--,me++;oe===0?(y.noWrap&&ee==="("?b=da(a.substring(1,me-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+da(a.substring(1,me-1),y)+"\\right"+re),E=a.slice(Math.max(0,me))):(b=a.substring(1,me),E="")}else{let oe=a.match(/^([a-zA-Z]+)/);if(oe){let me=od(null,a,y.inlineShortcuts);if(me)return me=me.replace("_{#?}",""),me=me.replace("^{#?}",""),{match:me,rest:a.slice(me.length)}}if(oe=a.match(/^([a-zA-Z])/),oe)return{match:oe[1],rest:a.slice(1)};if(oe=a.match(/^(-)?\d+(\.\d*)?/),oe)return{match:oe[0],rest:a.slice(oe[0].length)};/^\\(left|right)/.test(a)||(oe=a.match(/^(\\[a-zA-Z]+)/),oe&&(E=a.slice(oe[1].length),b=oe[1]))}return{match:b,rest:E}}function Es(a,y){let b=od(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Gu=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function bl(a){const y=a.trim();for(const b of Gu)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 Nu(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=bl(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 Su="$$",Rc="$$",rc=(a,y,b)=>(Gu.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${Su} ${y} ${Rc}`),y),pu=class sh{constructor(y){sh._modes[y]=this}static onPaste(y,b,E){var ee;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof E=="string"){const oe=new DataTransfer;oe.setData("text/plain",E),E=oe}const re=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(re)?sh._modes[y].onPaste(b,E):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const E=y.model,ee=E.selectionIsCollapsed?[0,E.lastOffset]:yl(E.selection),re=E.getValue(ee,b);navigator.clipboard.writeText(re).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var E;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ee=y.model,re=ee.selectionIsCollapsed?[0,ee.lastOffset]:yl(ee.selection);let oe=ee.getAtoms(re);if(oe.every(me=>me.mode==="text"||!me.mode))b.clipboardData.setData("text/plain",oe.filter(me=>me instanceof Ou).map(me=>me.value).join(""));else if(oe.every(me=>me.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(re,{includeChildren:!0}).map(me=>{var ve;return(ve=me.value)!=null?ve:""}).join(""));else{let me;oe.length===1&&oe[0].verbatimLatex!==void 0?me=oe[0].verbatimLatex:me=ee.getValue(re,"latex-expanded"),b.clipboardData.setData("application/x-latex",me);try{b.clipboardData.setData("text/plain",y.options.onExport(y,me,re))}catch(ve){}if(oe.length===1){const ve=oe[0];(ve.type==="root"||ve.type==="group")&&(oe=ve.body.filter(Ee=>Ee.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(oe.map(ve=>ve.toJson())))}catch(ve){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const ve=window.MathfieldElement.computeEngine;if(ve)try{const Ee=ve.jsonSerializationOptions;ve.jsonSerializationOptions={metadata:["latex"]};const Ne=ve.parse(ee.getValue(re,"latex-unstyled"));ve.jsonSerializationOptions=Ee;const ht=JSON.stringify(Ne.json);ht&&b.clipboardData.setData("application/json",ht)}catch(Ee){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return sh._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};pu._modes={};var Va=pu,lh=[{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","^"]}],jd={"\\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 Ru(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function _u(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 gc(a){const y=_u(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Vd(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 Ud(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,re=y.bottom-y.top,oe=Math.ceil(y.left-E.left+a.field.scrollLeft*b),me=Math.ceil(y.top-E.top);return{left:oe,right:oe+ee,top:me,bottom:me+re}}function Gd(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),E={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 E;for(const ee of a.children)if(ee.nodeType===1&&"atomId"in ee.dataset&&!ee.classList.contains("pstrut")){const re=Gd(ee);E.left=Math.min(E.left,re.left),E.right=Math.max(E.right,re.right),E.top=Math.min(E.top,re.top),E.bottom=Math.max(E.bottom,re.bottom)}return E}function Vc(a,y){var b,E;if(!y.id)return null;let ee=(E=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?E:null;if(ee!==null)return ee;const re=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=re?Gd(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function Ef(a,y,b){const E=new Map;for(const ee of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ee.style.backgroundColor)continue;const re=a.field,oe=re.offsetWidth;let ve=Math.floor(re.getBoundingClientRect().width)/oe;ve=isNaN(ve)?1:ve;const Ee=Ud(a,Vc(a,ee),ve);if(Ee){const Ne=Vd(ee);if(E.has(Ne)){const ht=E.get(Ne);E.set(Ne,{left:Math.min(ht.left,Ee.left),right:Math.max(ht.right,Ee.right),top:Math.min(ht.top,Ee.top),bottom:Math.max(ht.bottom,Ee.bottom)})}else E.set(Ne,Ee)}}return[...E.values()]}function Yd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...Ef(a,E,y)),[])}function Xd(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Cd(a){let y=0,b=0;const E=a.offsetWidth,ee=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,E,ee)}var Mf=`@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;
|
|
|
}
|
|
|
`,ds=`.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);
|
|
|
}
|
|
|
`,kf=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,uh=`/* The element that display info while in latex mode */
|
|
|
#mathlive-suggestion-popover {
|
|
|
background-color: rgba(97, 97, 97);
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 8px;
|
|
|
position: fixed;
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
}
|
|
|
#mathlive-suggestion-popover.top-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-bottom: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.bottom-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-top: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-animated {
|
|
|
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-visible {
|
|
|
display: flex;
|
|
|
}
|
|
|
@keyframes ML__fade-in {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
/* The wrapper class for the entire content of the popover panel */
|
|
|
#mathlive-suggestion-popover ul {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
list-style: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
align-items: flex-start;
|
|
|
max-height: 400px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
margin: 8px;
|
|
|
padding: 8px;
|
|
|
width: calc(100% - 16px - 16px);
|
|
|
column-gap: 1em;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
/* Since the content can be clicked on, provide feedback on hover */
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a {
|
|
|
color: #5ea6fd;
|
|
|
padding-top: 0.3em;
|
|
|
margin-top: 0.4em;
|
|
|
display: block;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a:hover {
|
|
|
color: #5ea6fd;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li:hover,
|
|
|
#mathlive-suggestion-popover li.is-pressed,
|
|
|
#mathlive-suggestion-popover li.is-active {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
|
|
|
.ML__popover__command {
|
|
|
font-size: 1.6rem;
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
.ML__popover__current {
|
|
|
background: #5ea6fd;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.ML__popover__latex {
|
|
|
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
align-self: center;
|
|
|
}
|
|
|
/* The keyboard shortcuts for a symbol as displayed in the popover */
|
|
|
.ML__popover__keybinding {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 0.8em;
|
|
|
opacity: 0.7;
|
|
|
}
|
|
|
/* Style for the character that joins the modifiers of a keyboard shortcut
|
|
|
(usually a "+" sign)*/
|
|
|
.ML__shortcut-join {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
`,Uc=`/* 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);*/
|
|
|
}
|
|
|
`,ch=`.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));
|
|
|
}
|
|
|
`,Sd=`: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;
|
|
|
}
|
|
|
`,dh=`.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 _c(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=ds;break;case"mathfield":y=Mf;break;case"environment-popover":y=kf;break;case"suggestion-popover":y=uh;break;case"keystroke-caption":y=Uc;break;case"virtual-keyboard":y=ch;break;case"ui":y=Sd;break;case"menu":y=dh;break;default:debugger}return y}function Gc(a){return ys||(ys={}),ys[a]||(ys[a]=new CSSStyleSheet,ys[a].replaceSync(_c(a))),ys[a]}var ic;function Lu(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(_c(a))),window.document.head.appendChild(b);return}if(ic||(ic={}),((y=ic[a])!=null?y:0)!==0)ic[a]+=1;else{const b=Gc(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],ic[a]=1}}function x(a){if("adoptedStyleSheets"in document&&ic!=null&&ic[a]&&(ic[a]-=1,ic[a]<=0)){const y=ys[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class Dp extends xr{constructor(y){var b;super(Me(xe({},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 Dp(y)}toJson(){return Me(xe({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new wo({parent:y,mathstyle:"cramp"},this.style),ee=(b=xr.createBox(E,this.body))!=null?b:new li("\u25A2",{style:this.style});let re=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(re=ee.skew);let oe=Math.min(ee.height,zs),me;if(this.svgAccent)me=Wl(this.svgAccent),oe=E.metrics.bigOpSpacing1-oe;else if(this.accent){const Ee=new li(this.accent,{fontFamily:"Main-Regular"});Ee.italic=0;const Ne=this.accent===8407?" ML__accent-vec":"";me=new li(new li(Ee),{classes:"ML__accent-body"+Ne})}me=new qo({shift:0,children:[{box:new li(ee)},-oe,{box:me,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const ve=new li(me,{type:"lift"});return this.caret&&(ve.caret=this.caret),this.bind(E,ve.wrap(E)),this.attachSupsub(E,{base:ve})}},ne={"(":")","{":"}","[":"]","|":"|","\\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"},te=Object.fromEntries(Object.entries(ne).map(([a,y])=>[y,a]));function ie(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 fe(a,y,b,E){var ee;const oe=new li(ie(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&oe.setTop((1-y.scalingFactor)*Ro),oe}function Se(a,y,b,E,ee){var re,oe;const me=new wo({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),ve=new li(ie(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((re=ee.classes)!=null?re:"")+` ML__delim-size${y}`,type:(oe=ee.type)!=null?oe:"ignore"}).wrap(me);return b&&ve.setTop((1-me.scalingFactor)*Ro),ve}function Fe(a,y,b,E,ee){var re;let oe,me,ve,Ee;oe=ve=Ee=ie(a),me=null;let Ne="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ve=oe=Ee=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ve=oe=Ee=8741:a==="\\uparrow"?ve=Ee=9168:a==="\\Uparrow"?ve=Ee=8214:a==="\\downarrow"?oe=ve=9168:a==="\\Downarrow"?oe=ve=8214:a==="\\updownarrow"?(oe=8593,ve=9168,Ee=8595):a==="\\Updownarrow"?(oe=8657,ve=8214,Ee=8659):a==="["||a==="\\lbrack"?(oe=9121,ve=9122,Ee=9123,Ne="Size4-Regular"):a==="]"||a==="\\rbrack"?(oe=9124,ve=9125,Ee=9126,Ne="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ve=oe=9122,Ee=9123,Ne="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(oe=9121,ve=Ee=9122,Ne="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ve=oe=9125,Ee=9126,Ne="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(oe=9124,ve=Ee=9125,Ne="Size4-Regular"):a==="("||a==="\\lparen"?(oe=9115,ve=9116,Ee=9117,Ne="Size4-Regular"):a===")"||a==="\\rparen"?(oe=9118,ve=9119,Ee=9120,Ne="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(oe=9127,me=9128,Ee=9129,ve=9130,Ne="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(oe=9131,me=9132,Ee=9133,ve=9130,Ne="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(oe=9127,Ee=9129,ve=9130,Ne="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(oe=9131,Ee=9133,ve=9130,Ne="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(oe=9127,Ee=9133,ve=9130,Ne="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(oe=9131,Ee=9129,ve=9130,Ne="Size4-Regular"):a==="\\surd"?(oe=57345,Ee=9143,ve=57344,Ne="Size4-Regular"):a==="\\ulcorner"?(oe=9484,ve=Ee=32):a==="\\urcorner"?(oe=9488,ve=Ee=32):a==="\\llcorner"?(Ee=9492,ve=oe=32):a==="\\lrcorner"&&(oe=9496,ve=oe=32);const ht=il(oe,Ne),Pt=ht.height+ht.depth,qt=il(ve,Ne),dn=qt.height+qt.depth,er=il(Ee,Ne),ci=er.height+er.depth;let Qn=0,kr=1;if(me!==null){const Il=il(me,Ne);Qn=Il.height+Il.depth,kr=2}const bi=Pt+ci+Qn,zr=Math.max(0,Math.ceil((y-bi)/(kr*dn))),na=bi+zr*kr*dn;let xa=Ro;b&&(xa=xa*E.scalingFactor);const pa=na/2-xa,To=.008,fs=[];fs.push({box:new li(Ee,{fontFamily:Ne})}),fs.push(-To);const Mi=new li(ve,{fontFamily:Ne});if(me===null)for(let Il=0;Il<zr;Il++)fs.push({box:Mi});else{for(let Il=0;Il<zr;Il++)fs.push({box:Mi});fs.push(-To),fs.push({box:new li(me,{fontFamily:Ne})}),fs.push(-To);for(let Il=0;Il<zr;Il++)fs.push({box:Mi})}fs.push(-To),fs.push({box:new li(oe,{fontFamily:Ne})});let $u="";Ne==="Size1-Regular"?$u=" delim-size1":Ne==="Size4-Regular"&&($u=" delim-size4");const Ec=new qo({bottom:pa,children:fs},{classes:$u});return new li(Ec,Me(xe({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var We=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),ft=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Qt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),pn=[0,1.2,1.8,2.4,3];function jn(a,y,b,E){return a===void 0||a==="."?qi(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),We.has(a)||Qt.has(a)?Se(a,y,!1,b,E):ft.has(a)?Fe(a,pn[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var $n=[{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}],wr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Ur=[{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 wi(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function zi(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;re<b.length&&b[re].type!=="stack";re++){const oe=il(a,wi(b[re]));if(oe.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let me=oe.height+oe.depth;if(b[re].type==="small"&&(b[re].mathstyle==="scriptscriptstyle"?me*=Math.max(Ws[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(me*=Math.max(Ws[Math.max(1,E.size-1)],E.minFontScale))),me>y)return b[re]}return b[b.length-1]}function Yi(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return qi(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let oe;Qt.has(y)?oe=$n:We.has(y)?oe=Ur:oe=wr;const me=zi(ie(y),b,oe,ee),ve=new wo({parent:ee,mathstyle:me.mathstyle},re==null?void 0:re.style);return me.type==="small"?fe(y,ve,E,Me(xe({},re),{type:a})):me.type==="large"?Se(y,me.size,E,ve,Me(xe({},re),{type:a})):(console.assert(me.type==="stack"),Fe(y,b,E,ve,Me(xe({},re),{type:a})))}function Ii(a,y,b,E,ee,re){if(y===".")return qi(ee,re==null?void 0:re.classes);const oe=Ro*ee.scalingFactor,me=901,ve=5/Ho,Ee=Math.max(b-oe,E+oe),Ne=Math.max(Ee/500*me,2*Ee-ve);return Yi(a,y,Ne,!0,ee,re)}function qi(a,y){const b=new li(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new wo({parent:a,mathstyle:"textstyle"}))}var Sa=class Ap extends xr{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 Ap(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{}"}},Ma=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],go=["cases","dcases","rcases"],bs=["align","align*","aligned","gather","gathered","split"],Ml=["array","subequations","eqnarray"];function Vs(a){return Ml.concat(bs).concat(go).concat(Ma).includes(a)}function nu(a){return Ma.includes(a)}function ru(a){return go.includes(a)}function ml(a){return bs.includes(a)}function iu(a,y,b){let E=0;for(const Ee of b)"align"in Ee&&(E+=1);let ee=0;const re=[];for(const Ee of y){let Ne=0;for(ee=Math.max(ee,Math.min(Ee.length,E));Ne<Ee.length;){const ht=[],Pt=Math.min(Ee.length,Ne+E);for(;Ne<Pt;){const qt=Ee[Ne];qt.length===0?ht.push([new xr({type:"first",mode:a.mode})]):qt[0].type!=="first"?ht.push([new xr({type:"first",mode:a.mode}),...qt]):(console.assert(!qt.slice(1).some(dn=>dn.type==="first")),ht.push(qt)),Ne+=1}re.push(ht)}}re.length>0&&re[re.length-1].length===1&&re[re.length-1][0].length===1&&re[re.length-1][0][0].type==="first"&&re.pop();const oe=[];for(const Ee of re){if(Ee.length!==ee)for(let Ne=Ee.length;Ne<ee;Ne++)Ee.push([new xr({type:"first",mode:a.mode}),new Sa]);oe.push(Ee)}let me=0,ve=0;for(const Ee of oe){ve=0;for(const Ne of Ee){for(const ht of Ne)ht.parent=a,ht.parentBranch=[me,ve];ve+=1}me+=1}return a.isDirty=!0,oe}var Ga=class Pp extends xr{constructor(y,b,E,ee={}){var re;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ee.mathstyleName&&(this.mathstyleName=ee.mathstyleName),ee.columns&&(ee.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ee.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=iu(this,b,this.colFormat),ee.leftDelim&&(this.leftDelim=ee.leftDelim),ee.rightDelim&&(this.rightDelim=ee.rightDelim),ee.arraycolsep!==void 0&&(this.arraycolsep=ee.arraycolsep),this.colSeparationType=ee.colSeparationType,ee.arraystretch!==void 0&&(this.arraystretch=ee.arraystretch),this.minColumns=(re=ee.minColumns)!=null?re:1}static fromJson(y){return new Pp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=Me(xe({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(E=>E.map(ee=>ee.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(hc(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return hc(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(Al(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(E=>{E.parent=void 0,E.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 E of b)if(E)for(const ee of E)y.push(...ee.children),y.push(ee);return[...y,...super.children]}render(y){var b,E,ee,re,oe,me;const ve=new wo({parent:y,mathstyle:this.mathstyleName},this.style),Ee=ve.getRegisterAsEm("arrayrulewidth"),Ne=ve.getRegisterAsEm("arraycolsep"),ht=ve.getRegisterAsEm("doublerulesep"),Pt=(E=(b=this.arraystretch)!=null?b:ve.getRegisterAsNumber("arraystretch"))!=null?E:1;let qt=typeof this.arraycolsep=="number"?this.arraycolsep:Ne;this.colSeparationType==="small"&&(qt=.2778*(new wo({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const dn=Pt*Zl,er=.7*dn,ci=.3*dn;let Qn=0;const kr=[];let bi=0;const zr=this.array.length;for(let ws=0;ws<zr;++ws){const ul=this.array[ws];bi=Math.max(bi,ul.length);const Tl=new wo({parent:ve,mathstyle:this.mathstyleName},this.style);let Mc=er/Tl.scalingFactor,kc=ci/Tl.scalingFactor;const Dc={cells:[],height:0,depth:0,pos:0};for(const sc of ul){const e0=(ee=xr.createBox(Tl,sc,{type:"ignore"}))!=null?ee:new li(null,{type:"ignore"});kc=Math.max(kc,e0.depth),Mc=Math.max(Mc,e0.height),Dc.cells.push(e0)}let Ac=(re=eu(this.rowGaps[ws]))!=null?re:0;Ac>0&&(Ac+=ci,kc=Math.max(kc,Ac),Ac=0),ws<zr-1&&!nu(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(kc+=ve.getRegisterAsEm("jot")),Dc.height=Mc,Dc.depth=kc,Qn+=Mc,Dc.pos=Qn,Qn+=kc+Ac,kr.push(Dc)}const na=Qn/2+Ro,xa=[];for(let ws=0;ws<bi;ws++){const ul=[];for(const Tl of kr){const Mc=Tl.cells[ws];Mc.depth=Tl.depth,Mc.height=Tl.height,ul.push({box:Mc,shift:Tl.pos-na})}ul.length>0&&xa.push(new qo({individualShift:ul}))}const pa=[];let To=!1,fs=!1,Mi=0,$u=!this.leftDelim;const{colFormat:Ec}=this;for(const ws of Ec){if("align"in ws&&Mi>=xa.length)break;if("align"in ws)To?pa.push(Us(2*qt)):(fs||$u)&&pa.push(Us(qt)),pa.push(new li(xa[Mi],{classes:"col-align-"+ws.align})),Mi++,To=!0,fs=!1,$u=!1;else if("gap"in ws){if(typeof ws.gap=="number")pa.push(Us(ws.gap));else{const ul=Js(y,kr,na,ws.gap);ul&&pa.push(ul)}To=!1,fs=!1,$u=!1}else if("separator"in ws){const ul=new li(null,{classes:"vertical-separator"});ul.height=Qn,ul.setStyle("height",Qn,"em"),ul.setStyle("border-right",`${Ee}em ${ws.separator} currentColor`),ul.setStyle("vertical-align",-(Qn-na),"em");let Tl=0;fs?Tl=ht-Ee:To&&(Tl=qt-Ee),ul.left=Tl,pa.push(ul),To=!1,fs=!0,$u=!1}}To&&!this.rightDelim&&pa.push(Us(qt));const Ju=new li(pa,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Ju.caret=this.caret),this.bind(y,Ju);const Il=Ju.height,Ku=Ju.depth,Mu=this.bind(y,new li([this.bind(y,Ii("open",(oe=this.leftDelim)!=null?oe:".",Il,Ku,ve,{isSelected:this.isSelected})),Ju,this.bind(y,Ii("close",(me=this.rightDelim)!=null?me:".",Il,Ku,ve,{isSelected:this.isSelected}))],{type:"ord"}));return Mu?(Mu.setStyle("display","inline-block"),this.caret&&(Mu.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Mu}))):null}_serialize(y){var b;const E=[];if(this.environmentName==="lines"?E.push("{\\displaylines"):E.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(E.push("{"),this.colFormat!==void 0)for(const ee of this.colFormat)"align"in ee&&typeof ee.align=="string"?E.push(ee.align):"separator"in ee&&ee.separator==="solid"?E.push("|"):"separator"in ee&&ee.separator==="dashed"&&E.push(":");E.push("}")}for(let ee=0;ee<this.array.length;ee++){for(let re=0;re<this.array[ee].length;re++)re>0&&E.push(" & "),E.push(xr.serialize(this.array[ee][re],y));if(ee<this.array.length-1){const re=this.rowGaps[ee];re!=null&&re.dimension?E.push(`\\\\[${re.dimension} ${(b=re.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),oo(E)}getCell(y,b){return this.array[y][b]}setCell(y,b,E){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const re of this.array[y][b])re.parent=void 0,re.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new xr({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const re of ee)re.parent=this,re.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Qs(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Qs(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}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 E of b)for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const oe of re)oe.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Qs(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}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,Qs(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}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 E=b.splice(y,1);for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const E of b)E&&y.push(E.filter(ee=>ee.type!=="first"));return y}};function Qs(a){const y=new xr({type:"first",mode:a.mode});y.parent=a;const b=new Sa;return b.parent=a,[y,b]}function Us(a){const y=new li(null,{classes:"arraycolsep"});return y.width=a,y}function Js(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const oe=xr.createBox(a,E,{type:"ignore"});oe&&(oe.depth=re.depth,oe.height=re.height,ee.push({box:oe,shift:re.pos-b}))}return new qo({individualShift:ee}).wrap(a)}var sl=class Lp extends xr{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 Lp(y)}toJson(){return Me(xe({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,re;const oe=xr.createBox(y,this.body,{type:"lift"});if(!oe)return null;const me=y.toEm((b=this.offset)!=null?b:{dimension:0});oe.depth+=me,oe.setStyle("display","inline-block"),oe.setStyle("position","relative"),oe.setStyle("height",Math.floor(100*oe.height+oe.depth)/100,"em"),oe.setStyle("vertical-align",-Math.floor(100*oe.height)/100,"em");const ve=new wo({parent:y},this.style),Ee=ve.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Ne=new li(null,{classes:"ML__box"});Ne.height=oe.height+Ee,Ne.depth=oe.depth+Ee,Ne.setStyle("box-sizing","border-box"),Ne.setStyle("position","absolute"),Ne.setStyle("top",-Ee+.3,"em"),Ne.setStyle("left",0),Ne.setStyle("height",Ne.height+Ne.depth,"em"),Ne.setStyle("width","100%"),this.backgroundcolor&&Ne.setStyle("background-color",(ee=ve.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Ne.setStyle("border",`${ve.getRegisterAsEm("fboxrule",2)}em solid ${(re=ve.toColor(this.framecolor))!=null?re:"black"}`),this.border&&Ne.setStyle("border",this.border);const ht=new li([Ne,oe],{type:"lift"});return ht.setStyle("display","inline-block"),ht.setStyle("position","relative"),ht.setStyle("line-height",0),ht.height=oe.height+Ee+(me>0?me:0),ht.depth=oe.depth+Ee+(me<0?-me:0),ht.setStyle("padding-left",Ee,"em"),ht.setStyle("padding-right",Ee,"em"),ht.setStyle("height",Math.floor(100*(oe.height+oe.depth+2*Ee+Math.abs(me)))/100,"em"),ht.setStyle("margin-top",-Ee,"em"),ht.setStyle("top",Math.floor(100*(oe.depth-oe.height+2*Ee-me))/100,"em"),ht.setStyle("vertical-align",Math.floor(100*(oe.depth+2*Ee))/100,"em"),this.caret&&(ht.caret=this.caret),this.attachSupsub(y,{base:ht})}_serialize(y){return y.skipStyles?oo([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},Fc=class Bp extends xr{constructor(y,b){var E;super({type:"composition",mode:(E=b==null?void 0:b.mode)!=null?E:"math",value:y})}static fromJson(y){return new Bp(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new li(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},mu=class Ip extends xr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Ip(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Pl=class Tp extends xr{constructor(y,b,E){super({type:"group",mode:b,style:E}),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 Tp(y.body,y.mode,y.style)}render(y){const b=xr.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=Ve(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},es=class Op extends xr{constructor(y,b,E){super({type:"leftright",style:E.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=E.leftDelim,this.rightDelim=E.rightDelim}static fromJson(y){var b;return new Op((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,E;const ee=this.matchingRightDelim();return this.variant==="left...right"?oo(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?oo(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):oo([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ee])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const E=(y=this.leftDelim)!=null?y:".";return(b=ne[E])!=null?b:E}render(y){var b,E;const ee=new wo({parent:y},this.style);console.assert(this.body!==void 0);const re=new wo({parent:y,mathstyle:"textstyle"},this.style),oe=(b=xr.createBox(ee,this.body,{type:"inner"}))!=null?b:new li(null,{type:"inner"}),me=oe.height/re.scalingFactor,ve=oe.depth/re.scalingFactor,Ee=[];if(this.leftDelim&&Ee.push(this.bind(re,Ii("open",this.leftDelim,me,ve,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),oe&&(xl(oe.children,this,ee,me,ve),Ee.push(oe)),this.rightDelim){let qt=this.containsCaret?" ML__contains-caret":"",dn=this.rightDelim;dn==="?"&&(ee.smartFence?(dn=this.matchingRightDelim(),qt+=" ML__smart-fence__close"):dn="."),Ee.push(this.bind(re,Ii("close",dn,me,ve,re,{isSelected:this.isSelected,classes:qt+" ML__close",mode:this.mode,style:this.style})))}let Ne=this.variant==="mleft...mright";const ht=this.leftSibling;ht&&(!Ne&&ht.isFunction&&(Ne=!0),!Ne&&ht.type==="subsup"&&((E=ht.leftSibling)!=null&&E.isFunction)&&(Ne=!0));const Pt=new li(Ee,{type:Ne?"close":"inner",classes:"left-right"});return Pt.setStyle("margin-top",`${-oe.depth}em`),Pt.setStyle("height",`${oe.height+oe.depth}em`),this.caret&&(Pt.caret=this.caret),this.bind(ee,Pt.wrap(ee))}};function xl(a,y,b,E,ee){if(a)for(let re=0;re<a.length;re++){const oe=a[re];oe.type==="middle"?(a[re]=y.bind(b,Ii("inner",oe.value,E,ee,b,{isSelected:y.isSelected})),a[re].caret=oe.caret,a[re].isSelected=oe.isSelected,a[re].cssId=oe.cssId,a[re].htmlData=oe.htmlData,a[re].htmlStyle=oe.htmlStyle,a[re].attributes=oe.attributes,a[re].cssProperties=oe.cssProperties):oe.children&&xl(oe.children,y,b,E,ee)}}var Ed=class Np extends xr{constructor(y,b){var E;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=(E=b.expand)!=null?E:!1}static fromJson(y){return new Np(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=xr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},ac=class Rp extends xr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Rp}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},vc=class _p extends xr{constructor(y,b,E=!1,ee,re){var oe;super({type:"prompt",mode:(oe=re==null?void 0:re.mode)!=null?oe:"math",style:re==null?void 0:re.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new _p(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 wo({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,oe=xr.createBox(y,this.body);if(!oe)return null;oe.height||(oe.height=b.metrics.xHeight),oe.setStyle("vertical-align",-oe.height,"em"),this.correctness==="correct"?oe.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&oe.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const me=new li(oe,{type:"ord"});me.setStyle("display","inline-block"),me.setStyle("height",oe.height+oe.depth,"em"),me.setStyle("vertical-align",-re,"em");let ve="ML__prompt ";this.locked?ve+=" ML__lockedPromptBox ":ve+=" ML__editablePromptBox ",this.correctness==="correct"?ve+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ve+=" ML__incorrectPromptBox "),this.containsCaret&&(ve+=" ML__focusedPromptBox ");const Ee=new li(null,{classes:ve,attributes:{part:"prompt"}});Ee.height=me.height+re,Ee.depth=me.depth+re,Ee.width=me.width+2*ee,Ee.setStyle("box-sizing","border-box"),Ee.setStyle("position","absolute"),Ee.setStyle("height",me.height+me.depth+2*re,"em"),ee===0&&Ee.setStyle("width","100%"),ee!==0&&(Ee.setStyle("width",`calc(100% + ${2*ee}em)`),Ee.setStyle("top",E,"em"),Ee.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(Ee.width=3*ee,Ee.setStyle("width",`calc(100% + ${3*ee}em)`),Ee.setStyle("left",-1.5*ee,"em"));let Ne="";this.correctness==="incorrect"&&(Ne+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Ne&&(Ee.svgOverlay=Ne);const ht=new li([Ee,me],{classes:"ML__prompt-atom"});return ht.setStyle("position","relative"),ht.setStyle("display","inline-block"),ht.setStyle("line-height",0),ht.height=me.height+re+.2,ht.depth=me.depth+re,ht.left=ee,ht.right=ee,ht.setStyle("height",me.height+re,"em"),ht.setStyle("top",me.depth-me.height,"em"),ht.setStyle("vertical-align",me.depth+re,"em"),ht.setStyle("margin-left",.5,"em"),ht.setStyle("margin-right",.5,"em"),this.caret&&(ht.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:ht}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ee="\\placeholder";return this.placeholderId&&(ee+=`[${this.placeholderId}]`),this.correctness==="correct"?ee+="[correct]":this.correctness==="incorrect"&&(ee+="[incorrect]"),this.locked&&(ee+="[locked]"),ss(ee,E)}},Yu=class Fp extends xr{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new Fp(y);for(const E of Vu)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new wo({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new li(null),oe=new li(null);return oe.height=re.height,oe.depth=re.depth,this.attachSupsub(y,{base:oe,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function gl(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var zc=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,re,oe;b!=null||(b={}),this.tokens=a,this.context=y instanceof wo&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new wo({from:y,mathstyle:b.mathstyle},b.style),this.args=(E=b.args)!=null?E:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ee=b.style)!=null?ee:{},parseMode:(re=b.parseMode)!=null?re:"math",mathstyle:(oe=b.mathstyle)!=null?oe:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,re={parent:ee,mathlist:[],style:xe({},ee.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ee.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ee.mathstyle,tabular:(E=a==null?void 0:a.tabular)!=null?E:!1};this.parsingContext=re}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(xe({before:Jl(this.tokens.slice(this.index,this.index+10)),after:Jl(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 xe({},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 Yu({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=Ve(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?Ll(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Sa({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(),E="";for(;!b;){const re=this.get();gl(re)?(E+=re,b=this.end()||E.length>=a.length):b=!0}const ee=a.toUpperCase()===E.toUpperCase();return ee||(this.index=y),ee}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(gl(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const E=this.get();E==="<space>"?a+=" ":E==="<{>"?(a+="{",b+=1):E==="<}>"?(b-=1,b>0?a+="}":this.index-=1):E==="<$>"?a+="$":E==="<$$>"?a+="$$":a+=E,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const E=this.get();E==="<}>"?(b-=1,b>0&&(y+="}")):E==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(E)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[E])!=null?a:E)}return y}scanNumber(a=!0){var y,b;let E=!1,ee=this.peek();for(;ee==="<space>"||ee==="+"||ee==="-";)this.get(),ee==="-"&&(E=!E),ee=this.peek();a=!!a;let re=10,oe=/\d/;if(this.match("'"))re=8,oe=/[0-7]/,a=!0;else if(this.match('"'))re=16,oe=/[\dA-F]/,a=!0;else if(this.match("x"))re=16,oe=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ee=this.get(),ee?ee.length===2&&ee.startsWith("\\")?{number:(E?-1:1)*((y=ee.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(E?-1:1)*((b=ee.codePointAt(0))!=null?b:0),base:"alpha"}:null;let me="";for(;this.hasPattern(oe);)me+=this.get();if(!a&&(this.match(".")||this.match(",")))for(me+=".";this.hasPattern(oe);)me+=this.get();const ve=a?Number.parseInt(me,re):Number.parseFloat(me);return Number.isNaN(ve)?null:{number:E?-ve:ve,base:re===16?"hexadecimal":re===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let E=!1;if(b===null)for(;;){const re=this.peek();if(re==="-")E=!E;else if(re!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const re=this.get();return re.startsWith("\\")?b?{register:re,global:!0,factor:(E?-1:1)*b.number}:E?{register:re,global:!0,factor:-1}:{register:re,global:!0}:(this.index=y,null)}let ee=this.get();return ee!=null&&ee.startsWith("\\")?(ee=ee.substring(1),this.context.registers[ee]?!E||b!==null?{register:ee,factor:(E?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ee}:(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 E=this.scanNumber();if(E)return E;if(this.end()||!gl(this.peek()))return null;const ee=this.scanString();return ee.length>0?{string:ee}: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=Ge(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const me of y.params)if(me.isOptional)b.push(this.scanOptionalArgument(me.type));else{const ve=this.scanArgument(me.type);ve||this.onError({code:"missing-argument",arg:a}),b.push(ve)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],oe=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),oe=!0),!oe)if(this.matchColumnSeparator())re.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){re.push(this.mathlist),this.mathlist=[];let me=null;this.skipWhitespace(),this.match("[")&&(me=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(me!=null?me:{dimension:0}),E.push(re),re=[]}else this.mathlist.push(...this.scan(me=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(me)));while(!oe);return re.push(this.mathlist),re.length>0&&E.push(re),this.endContext(),y.createAtom(a,E,ee,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=oe=>oe==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=Ve(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let re;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),re=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):re=this.mathlist,this.endContext(),re}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(E=>E==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new Pl(y,this.parseMode,this.style);return b.verbatimLatex=Jl(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 es("",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(!gl(a)&&!a.startsWith("\\"))return null;this.next();const y=Ve(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 mu("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new mu("\\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 mu(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const E=this.mathlist;this.endContext();const ee=(a=this.scanDelim())!=null?a:".";return new es(y==="\\right"?"left...right":"mleft...mright",E,{leftDelim:b,rightDelim:ee,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 xr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new xr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(pt(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 E=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return E===null?!1:(E.explicitSubsupPlacement=!0,a&&(E.subsupPlacement="over-under"),y&&(E.subsupPlacement="adjacent"),b&&(E.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let E=a.infix?2:0;for(;E<a.params.length;){const ee=a.params[E];ee.type==="rest"?b.push(this.scan(re=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(re))):ee.isOptional?b.push(this.scanOptionalArgument(ee.type)):ee.type.endsWith("*")?y=ee.type.slice(0,-1):b.push(this.scanArgument(ee.type)),E+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(gl(a)){const b=Xs.createAtom(this.parseMode,a,xe({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=Ve(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new mu(a)];if(b.definitionType==="symbol"){const E=xe({},this.style);b.variant&&(E.variant=b.variant),y=new xr({type:b.type,command:a,style:E,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 mu(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 ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}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 ee=this.mathlist;return this.endContext(),{group:ee}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}let E=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}return a==="string"?E=this.scanString():a==="balanced-string"?E=this.scanBalancedString():a==="colspec"?E=this.scanColspec():a==="value"&&(E=this.scanValue()),this.skipUntilToken("<}>"),E}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={},E=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ee of E){const re=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(re)b.padding={dimension:parseInt(re[1]),unit:re[2]};else{const oe=ee.match(/^\s*border\s*:\s*(.*)/);oe?b.border=oe[1]:b.backgroundcolor={string:ee}}}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,E;if(a==="\\placeholder"){const me=this.scanOptionalArgument("string"),ve=this.scanOptionalArgument("math"),Ee=xr.serialize(ve,{defaultMode:"math"});let Ne=[],ht;!ht&&Ee==="correct"?ht="correct":!ht&&Ee==="incorrect"?ht="incorrect":Ee!==""&&(Ne=ve);const Pt=this.scanOptionalArgument("string")==="locked",qt=this.scanArgument("auto");let dn;return qt&&Array.isArray(qt)&&qt.length>0?dn=qt:qt&&typeof qt=="object"&&"group"in qt?dn=qt.group:dn=Ne,me?[new vc(me,ht,Pt,dn!=null?dn:Ne,{mode:this.parseMode,style:this.style})]:[new Sa({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const me=this.index,ve=this.scanLiteralGroup()||this.next();if(!ve)return null;if(this.context.registers[ve.substring(1)]){const Ee=this.scanArgument("string");Ee!==null&&(this.context.registers[ve.substring(1)]=Ee);const Ne=oo([a,Jl(this.tokens.slice(me,this.index))]);return[new xr({type:"text",value:"",verbatimLatex:Ne})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=Ve(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(me=>new xr({type:"text",value:me,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new mu(a)]);const oe=this.index;if(re.definitionType==="symbol"){const me=xe({},this.style);re.variant&&(me.variant=re.variant),ee=new xr({type:re.type,command:a,style:me,value:String.fromCodePoint(re.codepoint),mode:this.parseMode})}else{if(re.ifMode&&!re.ifMode.includes(this.parseMode))return[];const me=this.parseMode;re.applyMode&&(this.parseMode=re.applyMode);let ve,Ee=[];if(re.parse?Ee=re.parse(this):[ve,Ee]=this.scanArguments(re),this.parseMode=me,re.applyMode&&!re.applyStyle&&!re.createAtom)return pt(Ee[0]);if(re.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof re.createAtom=="function")ee=re.createAtom({command:a,args:Ee,style:this.style,mode:this.parseMode}),ve&&(ee.body=pt(this.scanArgument(ve)));else if(typeof re.applyStyle=="function"){const Ne=xe(xe({},this.style),re.applyStyle(a,Ee,this.context)),ht=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),ve){const Pt=this.style;this.style=Ne;const qt=this.scanArgument(ve);return this.style=Pt,this.parseMode=ht,pt(qt)}this.style=Ne}else ee=new xr({type:"mord",command:(b=re.command)!=null?b:a,style:xe({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof xr&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const me=oo([a,Jl(this.tokens.slice(oe,this.index))]);me&&(ee.verbatimLatex=me)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const me=this.scanSmartFence();if(me)return[ee,me]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(gl(a)){const y=Xs.createAtom(this.parseMode,a,xe({},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 Ou(" "," ",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 E=this.index,ee=b.args,re={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let oe=1;oe<=ee;oe++){let me=this.scanLiteralGroup();if(!me){const ve=this.index;this.scanExpression(),me=Jl(this.tokens.slice(ve,this.index))}re[oe]=me}return new Ed(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:Jl(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Ll(b.def,{context:this.context,parseMode:this.parseMode,args:oe=>re[oe],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let ee=(E=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?E:this.scanLeftRight();if(ee===null){if(this.parseSupSub()||this.parseLimits())return!0;ee=this.scanSymbolCommandOrLiteral()}return ee?(Array.isArray(ee)?this.mathlist.push(...ee):this.mathlist.push(ee),!0):!1}};function Ll(a,y){var b,E,ee,re;const oe=(b=y==null?void 0:y.args)!=null?b:void 0,me=new zc(Ql(a,oe),y==null?void 0:y.context,{args:oe,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(re=y==null?void 0:y.style)!=null?re:{}}),ve=[];for(;!me.end();)ve.push(...me.scan(()=>!1));return ve}function t0(a,y){var b;const E=new zc(Ql(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!E.end();)E.scan();return E.errors}var n0=class zp extends xr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=$s.go(ii.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Ll(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new zp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return Me(xe({},super.toJson()),{arg:this.arg})}render(y){const b=xr.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}};xt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var ii={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",E={};E.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ee,re=10,oe=[];;){ee!==a?(re=10,ee=a):re--;var me=ii.stateMachines[y],ve=me.transitions[b]||me.transitions["*"];e:for(var Ee=0;Ee<ve.length;Ee++){var Ne=ii.patterns.match_(ve[Ee].pattern,a);if(Ne){for(var ht=ve[Ee].task,Pt=0;Pt<ht.action_.length;Pt++){var qt;if(me.actions[ht.action_[Pt].type_])qt=me.actions[ht.action_[Pt].type_](E,Ne.match_,ht.action_[Pt].option);else if(ii.actions[ht.action_[Pt].type_])qt=ii.actions[ht.action_[Pt].type_](E,Ne.match_,ht.action_[Pt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+ht.action_[Pt].type_+")"];ii.concatArray(oe,qt)}if(b=ht.nextState||b,a.length>0){if(ht.revisit||(a=Ne.remainder),!ht.toContinue)break e}else return oe}}if(re<=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=ii.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 ii.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return ii.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return ii.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return ii.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return ii.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return ii.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return ii.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return ii.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return ii.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return ii.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return ii.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return ii.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return ii.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 ii.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return ii.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return ii.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return ii.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 ii.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return ii.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return ii.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return ii.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return ii.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return ii.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return ii.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return ii.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=ii.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,E,ee,re,oe,me,ve,Ee){var Ne=function(Qn,kr){if(typeof kr=="string")return Qn.indexOf(kr)!==0?null:kr;var bi=Qn.match(kr);return bi?bi[0]:null},ht=function(Qn,kr,bi){for(var zr=0;kr<Qn.length;){var na=Qn.charAt(kr),xa=Ne(Qn.substr(kr),bi);if(xa!==null&&zr===0)return{endMatchBegin:kr,endMatchEnd:kr+xa.length};if(na==="{")zr++;else if(na==="}"){if(zr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];zr--}kr++}return zr>0,null},Pt=Ne(a,y);if(Pt===null||(a=a.substr(Pt.length),Pt=Ne(a,b),Pt===null))return null;var qt=ht(a,Pt.length,E||ee);if(qt===null)return null;var dn=a.substring(0,E?qt.endMatchEnd:qt.endMatchBegin);if(re||oe){var er=this.findObserveGroups(a.substr(qt.endMatchEnd),re,oe,me,ve);if(er===null)return null;var ci=[dn,er.match_];return{match_:Ee?ci.join(""):ci,remainder:er.remainder}}else return{match_:dn,remainder:a.substr(qt.endMatchEnd)}},match_:function(a,y){var b=ii.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return ii.patterns.patterns[a](y);var E=y.match(b);if(E){var ee;return E[2]?ee=[E[1],E[2]]:E[1]?ee=E[1]:ee=E[0],{match_:ee,remainder:y.substr(E[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 ii.go(y,"text")},"{text}":function(a,y){var b=["{"];return ii.concatArray(b,ii.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return ii.go(y,"tex-math")},"tex-math tight":function(a,y){return ii.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 ii.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var E=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return E[1]=E[1].replace(/\$/g,""),b.push({type_:"frac",p1:E[1],p2:E[2]}),E[3]&&(E[3]=E[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:E[3]})),b},"9,9":function(a,y){return ii.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,re={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)re[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var oe=a[y][b];if(oe.action_){oe.action_=[].concat(oe.action_);for(var me=0;me<oe.action_.length;me++)typeof oe.action_[me]=="string"&&(oe.action_[me]={type_:oe.action_[me]})}else oe.action_=[];for(var ve=y.split("|"),Ee=0;Ee<ve.length;Ee++)if(E[ee]==="*")for(var Ne in re)re[Ne].push({pattern:ve[Ee],task:oe});else re[E[ee]].push({pattern:ve[Ee],task:oe})}return re},stateMachines:{}};ii.stateMachines={ce:{transitions:ii.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 E=a.d;a.d=void 0,b=this.output(a),a.b=E}else b=this.output(a);return ii.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 ii.concatArray(b,this.output(a)),ii.concatArray(b,ii.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=ii.patterns.match_("orbital",a.o||""),ee=ii.patterns.match_("one lowercase greek letter $",a.o||""),re=ii.patterns.match_("one lowercase latin letter $",a.o||""),oe=ii.patterns.match_("$one lowercase latin letter$ $",a.o||""),me=y==="-"&&(E&&E.remainder===""||ee||re||oe);me&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&re&&(a.o="$"+a.o+"$");var ve=[];return me?(ii.concatArray(ve,this.output(a)),ve.push({type_:"hyphen"})):(E=ii.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(ii.concatArray(ve,ii.actions["d="](a,y)),ii.concatArray(ve,this.output(a))):(ii.concatArray(ve,this.output(a)),ii.concatArray(ve,ii.actions.bond(a,y,"-")))),ve},"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:ii.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),E=b!==y;return E&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var E;if(!a.r)E=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&E.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"&&ii.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),E.push({type_:"chemfive",a:ii.go(a.a,"a"),b:ii.go(a.b,"bd"),p:ii.go(a.p,"pq"),o:ii.go(a.o,"o"),q:ii.go(a.q,"pq"),d:ii.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=ii.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=ii.go(a.rd);var re;a.rqt==="M"?re=ii.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=ii.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:re}}for(var oe in a)oe!=="parenthesisLevel"&&oe!=="beginsWithBond"&&delete a[oe];return E},"oxidation-output":function(a,y){var b=["{"];return ii.concatArray(b,ii.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:ii.go(y[0]),p2:ii.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:ii.go(y[0]),p2:ii.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:ii.go(y[0]),p2:ii.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:ii.go(y[0]),p2:ii.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ii.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:ii.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:ii.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:ii.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:ii.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:ii.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ii.go(y[1],"pq")}}}},bd:{transitions:ii.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:ii.go(y[1],"bd")}}}},oxidation:{transitions:ii.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:ii.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:ii.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:ii.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:ii.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]&&(ii.concatArray(b,ii.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?ii.concatArray(b,ii.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]),ii.concatArray(b,ii.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=ii.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=ii.patterns.match_("{(...)}",a.q||"");if(E&&E.remainder===""&&(a.q=E.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 ee={d:ii.go(a.d,"pu"),q:ii.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ee.d,p2:ee.q}:(y=ee.d,ee.d.length>1||ee.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),ii.concatArray(y,ee.q))}else y=ii.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:ii.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=ii.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=ii.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:ii.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 E=a.text_.length-3;E>0;E-=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ee in a)delete a[ee];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,E=0;E<b;E+=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(E))}else y.push(a.text_);for(var ee in a)delete a[ee];return y}}}};var $s={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var re=a[ee];typeof re=="string"?b+=re:(b+=$s._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&$s.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:$s._goInner(a.a),b:$s._goInner(a.b),p:$s._goInner(a.p),o:$s._goInner(a.o),q:$s._goInner(a.q),d:$s._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 "+$s._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+$s._goInner(a.p1);break;case"bond":if(y=$s._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var E="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+E+"}{"+E+"}{"+E+"}{"+E+"}";break;case"pu-frac":var ee="\\frac{"+$s._goInner(a.p1)+"}{"+$s._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+$s._goInner(a.p1)+"}{"+$s._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+$s._goInner(a.p1)+"}{"+$s._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+$s._goInner(a.p1)+"}{"+$s._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+$s._goInner(a.p1)+"}_{"+$s._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+$s._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:$s._goInner(a.rd),rq:$s._goInner(a.rq)},oe=$s._getArrow(a.r);re.rd||re.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(oe="\\long"+oe,re.rd&&(oe="\\overset{"+re.rd+"}{"+oe+"}"),re.rq&&(a.r==="<-->"?oe="\\underset{\\lower2mu{"+re.rq+"}}{"+oe+"}":oe="\\underset{\\lower6mu{"+re.rq+"}}{"+oe+"}"),oe=" {}\\mathrel{"+oe+"}{} "):(re.rq&&(oe+="[{"+re.rq+"}]"),oe+="{"+re.rd+"}",oe=" {}\\mathrel{\\x"+oe+"}{} "):oe=" {}\\mathrel{\\long"+oe+"}{} ",y=oe;break;case"operator":y=$s._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 M1(a){}function k1(a){}var r0=class $p extends xr{constructor(y){super(Me(xe({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new $p(y)}toJson(){return Me(xe({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new li(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Ve(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):ss(this.command,this.value)}},i0=class Kp extends xr{constructor(y){super(Me(xe({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return Me(xe({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=jn(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=Ve(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):ss(this.command,this.value)}},Qd=class Hp extends xr{constructor(y,b,E,ee){var re,oe;super({type:"enclose",command:y,style:ee.style}),this.body=b,this.backgroundcolor=ee.backgroundcolor,E.updiagonalarrow&&(E.updiagonalstrike=!1),E.box&&(E.left=!1,E.right=!1,E.bottom=!1,E.top=!1),this.notation=E,this.shadow=(re=ee.shadow)!=null?re:"none",this.strokeWidth=(oe=ee.strokeWidth)!=null?oe:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ee.strokeStyle,this.svgStrokeStyle=ee.svgStrokeStyle,this.strokeColor=ee.strokeColor,this.borderStyle=ee.borderStyle,this.padding=ee.padding,this.captureSelection=!1}static fromJson(y){return new Hp(y.command,y.body,y.notation,y)}toJson(){return Me(xe({},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 E=Ve(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);let ee=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ee+="{"+Object.keys(this.notation).join(" ")+"}";let re="",oe="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(re+=oe+'mathbackground="'+this.backgroundcolor+'"',oe=","),this.shadow&&this.shadow!=="auto"&&(re+=oe+'shadow="'+this.shadow+'"',oe=","),this.strokeWidth||this.strokeStyle!=="solid"?(re+=oe+this.borderStyle,oe=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(re+=oe+'mathcolor="'+this.strokeColor+'"',oe=","),re&&(ee+=`[${re}]`)}return ss(ee,this.bodyToLatex(y))}render(y){const b=new wo({parent:y},this.style),E=xr.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),re=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",re,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const oe=new li(null,{classes:"ML__notation"});let me=E.height+E.depth+2*re;const ve=E.width+2*re;let Ee="";if(this.notation.horizontalstrike&&(Ee+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Ee+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Ee+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Ee+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Ee+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const dn=.03*Math.sqrt(ve*ve+me*me)*1,er=E.width*dn,ci=(E.depth+E.height)*dn,Qn=re+E.width;let kr=re;kr+ci-.4*er<0&&(kr=.4*er-ci),Ee+='<polygon points="',Ee+=`${Qn},${kr} ${Qn-er-.4*ci},${kr+ci-.4*er} `,Ee+=`${Qn-.7*er},${kr+.7*ci} ${Qn-er+.4*ci},${kr+ci+.4*er} `,Ee+=`${Qn},${kr}`,Ee+=`" stroke='none' fill="${this.strokeColor}"`,Ee+="/>"}let Ne=0;if(this.notation.phasorangle){const Pt=a0(b),qt=(E.height+E.depth+2*Pt+re).toString(),dn=(E.height+E.depth)/2;Ee+=this.line(re.toString(),qt,(re+dn+E.width).toString(),qt),Ee+=this.line(re.toString(),qt,(re+dn).toString(),(re-Pt).toString()),me+=Pt,Ne=dn,E.left+=me/2-re}if(this.notation.longdiv){const Pt=a0(b);me+=Pt,Ee+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const qt=.3;Ne=qt+Pt,E.left+=qt+Pt,E.setTop(re+Pt),Ee+='<path d="',Ee+=`M ${re} ${re} a${qt} ${(E.depth+E.height+2*Pt)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*Pt} "`,Ee+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,Ee+="/>"}if(oe.width=E.width+2*re+Ne,oe.height=E.height+re,oe.depth=E.depth+re,oe.setStyle("box-sizing","border-box"),oe.setStyle("left",`calc(-${ee} / 2 )`),oe.setStyle("height",`${Math.floor(100*me)/100}em`),oe.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&oe.setStyle("background-color",this.backgroundcolor),this.notation.box&&oe.setStyle("border","1px solid red"),this.notation.actuarial&&(oe.setStyle("border-top",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(oe.setStyle("border-bottom",this.borderStyle),oe.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(oe.setStyle("border-radius","8px"),oe.setStyle("border",this.borderStyle)),this.notation.circle&&(oe.setStyle("border-radius","50%"),oe.setStyle("border",this.borderStyle)),this.notation.top&&oe.setStyle("border-top",this.borderStyle),this.notation.left&&oe.setStyle("border-left",this.borderStyle),this.notation.right&&oe.setStyle("border-right",this.borderStyle),this.notation.bottom&&oe.setStyle("border-bottom",this.borderStyle),Ee){let Pt="";this.shadow==="auto"&&(Pt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Pt+=`filter: drop-shadow(${this.shadow})`),Pt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Pt+=' stroke-linecap="round"',this.svgStrokeStyle&&(Pt+=` stroke-dasharray="${this.svgStrokeStyle}"`),oe.svgStyle=Pt,oe.svgOverlay=Ee}const ht=new li([oe,E]);return ht.setStyle("position","relative"),ht.setStyle("vertical-align",re,"em"),ht.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),ht.setStyle("display","inline-block"),ht.height=oe.height,ht.depth=oe.depth,ht.width=oe.width-2*re,ht.left=re,ht.right=re,this.caret&&(ht.caret=this.caret),ht.wrap(b)}line(y,b,E,ee){return`<line x1="${Df(y)}" y1="${Df(b)}" x2="${Df(E)}" y2="${Df(ee)}" vector-effect="non-scaling-stroke"></line>`}};function Df(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function im(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function am(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function a0(a){const y=a.isDisplayStyle?zs:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Md=class Zp extends xr{constructor(y,b,E){var ee,re;super(Me(xe({},E),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ee=E==null?void 0:E.hasBarLine)!=null?ee:!0,this.continuousFraction=(re=E==null?void 0:E.continuousFraction)!=null?re:!1,this.numerPrefix=E==null?void 0:E.numerPrefix,this.denomPrefix=E==null?void 0:E.denomPrefix,this.mathstyleName=E==null?void 0:E.mathstyleName,this.leftDelim=E==null?void 0:E.leftDelim,this.rightDelim=E==null?void 0:E.rightDelim,this.fractionNavigationOrder=E==null?void 0:E.fractionNavigationOrder}static fromJson(y){return new Zp(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),xe(xe({},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,E;const ee=new wo({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,oe=new wo({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),me=this.numerPrefix?new li([new li(this.numerPrefix),xr.createBox(oe,this.above)],{isTight:oe.isTight,type:"ignore"}):(b=xr.createBox(oe,this.above,{type:"ignore"}))!=null?b:new li(null,{type:"ignore"}),ve=new wo({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),Ee=this.denomPrefix?new li([new li(this.denomPrefix),xr.createBox(ve,this.below,{type:"ignore"})]):(E=xr.createBox(ve,this.below,{type:"ignore"}))!=null?E:new li(null,{type:"ignore"}),Ne=this.hasBarLine?re.defaultRuleThickness:0;let ht,Pt=0,qt;ee.isDisplayStyle?(ht=oe.metrics.num1,Pt=Ne>0?3*Ne:7*Ne,qt=ve.metrics.denom1):(Ne>0?(ht=oe.metrics.num2,Pt=Ne):(ht=oe.metrics.num3,Pt=3*re.defaultRuleThickness),qt=ve.metrics.denom2);const dn=[];this.isSelected&&dn.push("ML__selected");const er=me.depth,ci=Ee.height;let Qn;if(Ne<=0){const pa=ht-er-(ci-qt);pa<Pt&&(ht+=(Pt-pa)/2,qt+=(Pt-pa)/2),Qn=new qo({individualShift:[{box:me,shift:-ht,classes:[...dn,"ML__center"]},{box:Ee,shift:qt,classes:[...dn,"ML__center"]}]}).wrap(ee)}else{const pa=new li(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});pa.softWidth=Math.max(me.width,Ee.width),pa.height=Ne/2,pa.depth=Ne/2;const To=Ro+Ne/2;ht<Pt+er+To&&(ht=Pt+er+To);const fs=Ro-Ne/2;qt<Pt+ci-fs&&(qt=Pt+ci-fs),Qn=new qo({individualShift:[{box:Ee,shift:qt,classes:[...dn,"ML__center"]},{box:pa,shift:-fs,classes:dn},{box:me,shift:-ht,classes:[...dn,"ML__center"]}]}).wrap(ee)}const kr=ee.isDisplayStyle?re.delim1:re.delim2,bi=this.leftDelim?this.bind(y,Yi("open",this.leftDelim,kr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):qi(ee,"open");let zr=null;this.continuousFraction?zr=new li(null,{type:"close"}):this.rightDelim?zr=this.bind(y,Yi("close",this.rightDelim,kr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):zr=qi(ee,"close");const na=new li([bi,Qn,zr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),xa=this.bind(y,na);return this.caret&&(xa.caret=this.caret),this.attachSupsub(y,{base:xa})}},Rl=class Wp extends xr{constructor(y,b){var E;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(E=b==null?void 0:b.isSuggestion)!=null?E:!1,this.isError=!1}static fromJson(y){const b=new Wp(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),xe({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new li(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}},Jd=class jp extends xr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Rl(b)),this.skipBoundary=!1}static fromJson(y){return new jp("")}toJson(){return super.toJson()}render(y){const b=xr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,E;return(E=(b=this.body)==null?void 0:b.map(ee=>ee.value).join(""))!=null?E:""}},fh=class Vp extends xr{constructor(y,b){super(Me(xe({},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 Vp(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 E=y.isDisplayStyle&&this.value!=="\\smallint",ee=new li(this.value,{fontFamily:E?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(E?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ee)return null;ee.right=ee.italic;const re=(ee.height-ee.depth)/2-Ro*y.scalingFactor,oe=ee.italic;ee.setTop(re);let me=ee;if(this.superscript||this.subscript){const ve=(b=this.subsupPlacement)!=null?b:"auto";me=ve==="over-under"||ve==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:oe}):this.attachSupsub(y,{base:ee})}return new li(this.bind(y,me),{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=Ve(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[];return E.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),oo(E)}},sd=class Up extends xr{constructor(y){const b=y.body;super(Me(xe({},y),{type:"overlap",body:typeof b=="string"?[new xr({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 Up(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),xe(xe({},super.toJson()),y)}render(y){const b=xr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new li([b,new li(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Xu=class Gp extends xr{constructor(y){var b,E,ee,re;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=(E=y.boxType)!=null?E:"ord",this.paddedBody=(ee=y.paddedBody)!=null?ee:!1,this.paddedLabels=(re=y.paddedLabels)!=null?re:!1}static fromJson(y){return new Gp(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?Wl(this.svgBody):xr.createBox(y,this.body,{type:"ignore"});const E=new wo({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=Wl(this.svgAbove):this.above&&(ee=xr.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=Wl(this.svgBelow):this.below&&(re=xr.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new li([qi(y,"open"),b,qi(y,"close")],{type:"ignore"}));let oe=om(y,{base:b,above:ee,below:re,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return oe?(this.subsupPlacement==="over-under"?oe=this.attachLimits(y,{base:oe,type:oe.type}):oe=this.attachSupsub(y,{base:oe}),this.caret&&(oe.caret=this.caret),this.bind(y,oe)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const me=new li(y.base,{type:y.type});return me.setStyle("position","relative"),me}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,re=0,oe=["ML__center"];if(y.paddedAboveBelow&&oe.push("ML__label_padding"),y.below&&y.above){const me=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+re;E=new qo({bottom:me,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]})}else y.below?E=new qo({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:oe},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new qo({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:oe},a.metrics.bigOpSpacing5]}));return new li(E,{type:y.type})}var qd=class Yp extends xr{constructor(y){var b,E,ee,re;super(Me(xe({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(E=y.smashDepth)!=null?E:!1,this.smashHeight=(ee=y.smashHeight)!=null?ee:!1,this.smashWidth=(re=y.smashWidth)!=null?re:!1}static fromJson(y){return new Yp(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),xe(xe({},super.toJson()),y)}render(y){const b=new wo({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),xr.createBox(b,this.body,{classes:"inner"});const E=xr.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new li(null,{classes:"fix"});return new li([E,ee],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return E;if(this.smashHeight&&(E.height=0),this.smashDepth&&(E.depth=0),E.children)for(const ee of E.children)this.smashHeight&&(ee.height=0),this.smashDepth&&(ee.depth=0);return new qo({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},ef=class Xp extends xr{constructor(y){var b;super(xe({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 Xp(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 li(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new li(null,{classes:"mspace"}),E.left=y.toEm(this.width);else{const ee=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";E=new li(null,{classes:ee})}return E=this.bind(y,E),this.caret&&(E.caret=this.caret),E}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=Ve(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);const ee=(b=this.command)!=null?b:"";return this.width===void 0?ee:this._braced&&!("register"in this.width)?`${ee}{${As(this.width)}}`:`${ee}${As(this.width)}`}},o0=class Qp extends xr{constructor(y){var b;super(Me(xe({},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 Qp(Me(xe({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Ve(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=this.command,ee=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?ss(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:ss(E,ee)}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 E=new wo({parent:y,mathstyle:"cramp"},this.style),ee=(b=xr.createBox(E,this.body,{type:"inner"}))!=null?b:new li(null),re=E.scalingFactor,oe=E.metrics.defaultRuleThickness/re,me=y.isDisplayStyle?zs:oe,ve=new li(null,{classes:"ML__sqrt-line",style:this.style});ve.height=oe,ve.softWidth=ee.width;let Ee=re*(oe+me/4);const ht=Math.max(re*2*me,ee.height+ee.depth)+Ee+oe,Pt=new wo({parent:y},this.style),qt=this.bind(Pt,new li(Yi("inner","\\surd",ht,!1,Pt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!qt)return null;const dn=qt.height+qt.depth-oe;dn>ee.height+ee.depth+Ee&&(Ee=(Ee+dn-(ee.height+ee.depth))/2),qt.setTop(qt.height-ee.height-Ee);const er=this.bind(y,new qo({firstBaseline:[{box:new li(ee)},Ee-2*oe,{box:ve},oe]})),ci=xr.createBox(new wo({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!ci){const bi=new li([qt,er],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return bi.setStyle("display","inline-block"),bi.setStyle("height",bi.height+bi.depth,"em"),this.caret&&(bi.caret=this.caret),this.bind(y,bi)}const Qn=new qo({shift:-.6*(Math.max(qt.height,er.height)-Math.max(qt.depth,er.depth)),children:[{box:ci}]}),kr=new li([new li(Qn,{classes:"ML__sqrt-index",type:"ignore"}),qt,er],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return kr.height=qt.height,kr.depth=qt.depth,this.caret&&(kr.caret=this.caret),this.bind(y,kr)}},sm=class extends li{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 Af(a,y){if(!a.parent)return;const b=a.parent.children,E=b.indexOf(a);let ee=E-1;for(;ee>=0&&b[ee].type==="ignore";)ee-=1;if(ee<0&&a.parent.parent&&a.parent.type==="lift"){Af(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new sm(y))}var lm={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}},um={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function cm(a){nf(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 tf(a,y){if(!a.children)return a;const b=a.children;cm(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),re=y.getRegisterAsEm("thickmuskip");return nf(b,(oe,me)=>{var ve,Ee,Ne;if(!oe)return;const ht=oe.type,Pt=me.isTight?(ve=um[ht])!=null?ve:null:(Ee=lm[ht])!=null?Ee:null,qt=(Ne=Pt==null?void 0:Pt[me.type])!=null?Ne:null;qt===3&&Af(me,E),qt===4&&Af(me,ee),qt===5&&Af(me,re)}),a}function nf(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=nf(E.children,y,b):E.type==="ignore"?nf(E.children,y):(y(b,E),nf(E.children,y),b=E);return b}var hh=class Jp extends xr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new xr({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new Jp(Me(xe({},y),{tooltip:Yc(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(E=>E.type!=="first").map(E=>E.toJson());return Me(xe({},super.toJson()),{tooltip:b})}render(y){const b=xr.createBox(new wo,this.body);if(!b)return null;const E=new wo({parent:y,mathstyle:"displaystyle"},{fontSize:Zo}),ee=ju(tf(new li(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new li([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},ld=class qp extends xr{constructor(y,b){super(Me(xe({},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 qp(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 E=new li(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ee=E;if(this.superscript||this.subscript){const re=(b=this.subsupPlacement)!=null?b:"auto";ee=re==="over-under"||re==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new li(this.bind(y,ee),{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=Ve(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),oo(E)}};function Yc(a){if(Pe(a))return a.map(E=>Yc(E));if(typeof a=="string")return xr.fromJson(a);a=xe({},a);for(const E of Vu)a[E]&&(a[E]=Yc(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=Yc(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=Ga.fromJson(a)),y==="box"&&(b=sl.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=Fc.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=Qd.fromJson(a)),y==="error"&&(b=mu.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=Md.fromJson(a)),y==="group"&&(b=Pl.fromJson(a)),y==="latex"&&(b=Rl.fromJson(a)),y==="latexgroup"&&(b=Jd.fromJson(a)),y==="leftright"&&(b=es.fromJson(a)),y==="macro"&&(b=Ed.fromJson(a)),y==="macro-argument"&&(b=ac.fromJson(a)),y==="operator"&&(b=ld.fromJson(a)),y==="overlap"&&(b=sd.fromJson(a)),y==="overunder"&&(b=Xu.fromJson(a)),y==="placeholder"&&(b=Sa.fromJson(a)),y==="prompt"&&(b=vc.fromJson(a)),y==="phantom"&&(b=qd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=ef.fromJson(a)),y==="subsup"&&(b=Yu.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=Ou.fromJson(a)),y==="tooltip"&&(b=hh.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=xr.fromJson(a));for(const E of Vu)a[E]&&b.setChildren(a[E],E);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 dm(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>Yc(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>Yc(b)):y)}var s0={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"]},ph={"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]$/},l0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,l0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Xs{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,oe;if(y===null)return new xr({type:"mord",mode:"math",command:a,value:a,style:b});const me=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const Ee=new xr({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(re=y.command)!=null?re:a,value:String.fromCodePoint(y.codepoint),style:b});return me&&(Ee.isFunction=!0),a.startsWith("\\")&&(Ee.verbatimLatex=a),Ee}const ve=new xr({type:"mord",mode:"math",command:(oe=y.command)!=null?oe:a,value:a,style:b});return me&&(ve.isFunction=!0),a.startsWith("\\")&&(ve.verbatimLatex=a),ve}serialize(a,y){const b=gm(a,Me(xe({},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:E}=y;b==="normal"&&!E&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",E="italic"),b==="normal"&&!E&&a.value.length===1&&hm.forEach((me,ve)=>{var Ee;me.test(a.value)&&pm[(Ee=y.letterShapeStyle)!=null?Ee:"tex"][ve]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[re,oe]=s0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=on(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),oe&&(a.classes+=" "+oe),re)}};function gm(a,y){const{parent:b}=a[0],E=u0(b);return Ds(a,"variant").map(ee=>{const re=u0(ee[0]);let oe="";re&&re!==E&&(oe={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"}[re],console.assert(oe!==void 0));const me=oo(ee.map(ve=>ve._serialize(y)));return oe?ss(oe,me):me})}function u0(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 mm;function vm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return Ds(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let re="";return ee==="it"&&(re="\\textit"),ee==="sl"&&(re="\\textsl"),ee==="sc"&&(re="\\textsc"),ee==="n"&&(re="\\textup"),!re&&ee?`{${ss("\\fontshape",ee)}${oo(E)}}`:re?ss(re,oo(E)):oo(E)})}function bm(a,y){return Ds(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let re="";return ee==="b"&&(re="\\textbf"),ee==="l"&&(re="\\textlf"),ee==="m"&&(re="\\textmd"),ee&&!re?`{${ss("\\fontseries",ee)}${oo(E)}}`:re?ss(re,oo(E)):oo(E)})}function xm(a,y){return Ds(a,"fontSize").map(b=>{var E,ee;const re=bm(b,y),oe=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return oe?`${oe} ${oo(re)}`:oo(re)})}function wm(a,y,b){return Ds(a,"fontFamily").map(E=>{var ee,re;const oe=xm(E,y),me=(re={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?re:"";return me?`\\${me}{${oo(oe)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${oo(oe)}}`:b?`\\text{${oo(oe)}}`:oo(oe)})}var c0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Cm=class extends Xs{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new Ou(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return wm(a,Me(xe({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,oe;const{fontFamily:me}=y;if(c0[me]?a.classes+=" "+c0[me]:me&&a.setStyle("font-family",me),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 ve=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ve&&(a.classes+=" ",a.classes+=(ee={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"}[(E=ve[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(oe={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"}[(re=ve[2])!=null?re:""])!=null?oe:"")}return"Main-Regular"}};new Cm;var Sm=class extends Xs{constructor(){super("latex")}createAtom(a){return new Rl(a)}serialize(a,y){return a.filter(b=>b instanceof Rl&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Sm;var Em={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:["","=","","="]}},mh={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:["","=","","="]}},d0={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:["\\","|","",""]}},f0={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:[")",")",")",")"]}},Mm={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:["=","=","=","="]}},km={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:["<",">","",""]}},Dm={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"]}},Am={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:["=","=","=","="]}},Pm={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:["<",">","|",""]}},Lm={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:[".",".",".","."]}},Bm={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"]}},Im={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:["<",">","",""]}},Tm={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 h0(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 kd(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 Om={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]"},rf=[],af;function gh(){switch(yt()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Fu(a){(!a.platform||a.platform===gh())&&rf.push(a)}function Nm(a,y){var b;const E={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return E;for(const[ee,re]of Object.entries(y.mapping)){if(re[0]===a)return E.key=`[${ee}]`,E;if(re[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(re[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(re[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Om[a])!=null?b:"",E}function Rm(a){if(a.code)return a;const y=Object.entries(of().mapping);let b=!1,E=!1,ee="";for(let re=0;re<4;re++){for(const[oe,me]of y)if(me[re]===a.key){ee=oe,re===3?(b=!0,E=!0):re===2?b=!0:re===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,Me(xe({},a),{altKey:b,shiftKey:E,code:ee}))}function _m(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const E=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ee of rf)((y=ee.mapping[a.code])==null?void 0:y[E])===a.key?ee.score+=1:(b=ee.mapping[a.code])!=null&&b[E]&&(ee.score=0);rf.sort((ee,re)=>re.score-ee.score)}function Fm(a){af=rf.find(y=>a.startsWith(y.locale))}function of(){return af!=null?af:rf[0]}function zm(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":Fu(mh),Fu(Mm),Fu(Bm),Fu(Am);break;case"windows":Fu(d0),Fu(km),Fu(Im),Fu(Pm);break;case"linux":Fu(f0),Fu(Dm),Fu(Tm),Fu(Lm);break}Fu(Em);function vh(a){var y;const b=/macos|ios/.test(yt()),E=a.split("+");let ee="";for(const re of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),re.startsWith("[Key")?ee+=re.slice(4,5):re.startsWith("Key")?ee+=re.slice(3,4):re.startsWith("[Digit")?ee+=re.slice(6,7):re.startsWith("Digit")?ee+=re.slice(5,6):ee+=(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"}[re.toLowerCase()])!=null?y:re.toUpperCase();return ee}function Pf(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((E,ee)=>({x:E.x+ee.clientX,y:E.y+ee.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function ud(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 $m(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 Km=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 Lf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Km.has(a.code)}function Bf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var yc=class Zc{static get scrim(){return Zc._scrim||(Zc._scrim=new Zc),Zc._scrim}static open(y){Zc.scrim.open(y)}static close(){Zc.scrim.close()}static get state(){return Zc.scrim.state}static get element(){return Zc.scrim.element}constructor(y){var b,E;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(E=y==null?void 0:y.translucent)!=null?E:!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=Bf();const{element:E}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(E),E.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ee=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const re=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${re+ee}px`,y!=null&&y.child&&E.append(y.child),this.state="open"}close(){var y,b,E,ee;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:re}=this;re.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),re.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Bf()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),re.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 Hm(a,y,b){let E=null,ee=null,re=!1,oe=!1,me=!1;const ve=new AbortController,Ee=ve.signal;return a.addEventListener("keydown",Ne=>{if(re||Ne.key==="Process"||Ne.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Ne.code)){E=null;return}E=Ne,ee=null,b.onKeystroke(Ne)?a.textContent="":E=null},{capture:!0,signal:Ee}),a.addEventListener("keypress",Ne=>{re||(E&&ee&&b.onKeystroke(E),ee=Ne)},{capture:!0,signal:Ee}),a.addEventListener("compositionstart",Ne=>{a.textContent="",re=!0,b.onCompositionStart(Ne.data)},{capture:!0,signal:Ee}),a.addEventListener("compositionupdate",Ne=>{re&&b.onCompositionUpdate(Ne.data)},{capture:!0,signal:Ee}),a.addEventListener("compositionend",Ne=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(Ne.data))},{capture:!0,signal:Ee}),a.addEventListener("beforeinput",Ne=>Ne.stopImmediatePropagation(),{signal:Ee}),a.addEventListener("input",Ne=>{var ht;if(!re&&(a.textContent="",Ne.inputType!=="insertCompositionText")){if(Ne.inputType==="insertFromPaste"){Ne.preventDefault(),Ne.stopPropagation();return}b.onInput((ht=Ne.data)!=null?ht:""),Ne.preventDefault(),Ne.stopPropagation()}},{signal:Ee}),a.addEventListener("paste",Ne=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Ne)||Ne.preventDefault(),Ne.stopImmediatePropagation()},{signal:Ee}),a.addEventListener("cut",Ne=>b.onCut(Ne),{capture:!0,signal:Ee}),a.addEventListener("copy",Ne=>b.onCopy(Ne),{capture:!0,signal:Ee}),a.addEventListener("blur",Ne=>{var ht,Pt;if(((Pt=(ht=Ne.relatedTarget)==null?void 0:ht._mathfield)==null?void 0:Pt.element)===y){a.focus({preventScroll:!0}),Ne.preventDefault(),Ne.stopPropagation();return}const qt=yc.state;if(qt==="open"||qt==="opening"){Ne.preventDefault(),Ne.stopPropagation();return}if(Ne.relatedTarget===Ne.target.getRootNode().host){Ne.preventDefault(),Ne.stopPropagation();return}me||oe||(me=!0,E=null,ee=null,b.onBlur(),me=!1)},{capture:!0,signal:Ee}),a.addEventListener("focus",Ne=>{me||oe||(oe=!0,b.onFocus(),oe=!1)},{capture:!0,signal:Ee}),{dispose:()=>ve.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!oe&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Bf()===a,setAriaLabel:Ne=>a.setAttribute("aria-label",Ne),setValue:Ne=>{var ht;a.textContent=Ne,a.style.left="-1000px",(ht=window.getSelection())==null||ht.selectAllChildren(a)},moveTo:(Ne,ht)=>{a.style.top=`${ht}px`,a.style.left=`${Ne}px`}}}function Dd(a){var y;if(!a||!Lf(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 p0(a){a=Rm(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 Zm(a){if(et()){const y=yt(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function Wm(a,y,b){if(a.length===0)return"";const E=kd(h0(p0(b))),ee=kd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(yt()),cmd:!1,win:!1});for(let re=a.length-1;re>=0;re--)if((a[re].key===E||a[re].key===ee)&&(!a[re].ifMode||a[re].ifMode===y))return a[re].command;return""}function m0(a){let y=a;return Pe(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function jm(a,y){let b=[];if(typeof y=="string"){const re=jd[y];Pe(re)?b=re.slice():re&&b.push(re)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const re of a)ee.test(m0(re.command))&&b.push(re.key);return b.map(vh)}function Vm(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=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=yt()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(E&&E!=="windows")throw new Error('Unexpected "win" modifier with platform "'+E+`"
|
|
|
"win" modifier can only be used with Windows platform.`);E="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(E&&!Zm(E))return;if(/^\[.+\]$/.test(b.key))return Me(xe({},a),{key:kd(b)});const ee=Nm(b.key,y);if(!ee)return Me(xe({},a),{key:kd(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yh(a.command)}) is conflicting with the key combination ${kd(ee)} using the ${y.displayName} keyboard layout`);return ee.shift=ee.shift||b.shift,ee.alt=ee.alt||b.alt,ee.meta=b.meta,ee.ctrl=b.ctrl,Me(xe({},a),{key:kd(ee)})}function yh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Um(a,y){const b=[],E=[];for(const ee of a)try{const re=Vm(ee,y);if(!re)continue;const oe=E.find(me=>me.key===re.key&&me.ifMode===re.ifMode);if(oe)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${oe.key} (${yh(oe.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var Gm=class extends Va{constructor(){super("latex")}createAtom(a){return new Rl(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"}),qs(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:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(yl(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 re=[];for(const ve of y)le.test(ve)&&re.push(new Rl(ve));let oe=a.at(a.position);if(oe instanceof Jd&&(oe=oe.lastChild),!(oe.parent instanceof Jd)){const ve=new Jd("");oe.parent.addChildAfter(ve,oe),oe=ve.firstChild}const me=oe.parent.addChildrenAfter(re,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(me)):me&&(a.position=a.offsetOf(me))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Ym(a){return a.atoms.find(y=>y.type==="latexgroup")}function sf(a){var y,b;const E=a.atoms.find(ee=>ee.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ee=>ee.type==="latex"))!=null?b:[]:[]}function g0(a,y){var b;let E=0,ee=!1;const re=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=re&&!ee;){const ve=a.at(E);ee=ve instanceof Rl&&ve.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let oe=E,me=!1;for(;oe<=re&&!me;){const ve=a.at(oe);me=!(ve instanceof Rl&&ve.isSuggestion),me||oe++}return[E-1,oe-1]}new Gm;function If(a){const y=sf(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 lf(a,y){var b;const{model:E}=a;If(a);for(const Ne of sf(E))Ne.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){Pd(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof Rl&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof Rl&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof Rl&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const oe=ee.map(Ne=>Ne.value).join(""),me=_e(a,oe);if(me.length===0){if(/^\\[a-zA-Z\*]+$/.test(oe))for(const Ne of ee)Ne.isError=!0;Pd(a);return}const ve=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ve<0?me.length-1:ve%me.length;const Ee=me[a.suggestionIndex];if(Ee!==oe){const Ne=ee[ee.length-1];Ne.parent.addChildrenAfter([...Ee.slice(oe.length-Ee.length)].map(ht=>new Rl(ht,{isSuggestion:!0})),Ne),cd(a,{interactive:!0})}Qm(a,me)}function v0(a){const[y,b]=g0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ee=>{ee.isSuggestion&&(ee.isSuggestion=!1,E=!0)}),E}function Ad(a,y="accept",b){var E,ee;Pd(a);const re=Ym(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Ee=sf(a.model).filter(Ne=>Ne.isSuggestion);if(Ee.length!==0){for(const Ne of Ee)Ne.isSuggestion=!1;a.model.position=a.model.offsetOf(Ee[Ee.length-1])}if(y==="accept-suggestion")return Ee.length!==0}const me=sf(a.model).filter(Ee=>!Ee.isSuggestion).map(Ee=>Ee.value).join(""),ve=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(ve),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(Va.insert(a.model,me,{selectionMode:(ee=b==null?void 0:b.selectItem)!=null&&ee?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function Tf(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 bh(a){var y;const b=document.getElementById(a);if(!b)return;const E=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");E<=1?b.remove():b.dataset.refcount=Number(E-1).toString()}function Xm(a,y){const b=new wo({from:a.context}),E=new xr({mode:"math",type:"root",body:Ll(y,{context:b})}),ee=ju(tf(new li(E.render(b),{classes:"ML__base"}),b));return fc(ee,{classes:"ML__latex"}).toMarkup()}function Qm(a,y){var b;if(y.length===0){Pd(a);return}let E="";for(const[re,oe]of y.entries()){const me=oe,ve=Xm(a,oe),Ee=jm(a.keybindings,me).join("<br>");E+=`<li role="button" data-command="${me}" ${re===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${me}</span><span class="ML__popover__command">${ve}</span>`,Ee&&(E+=`<span class="ML__popover__keybinding">${Ee}</span>`),E+="</li>"}const ee=Jm(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!xh()&&(ee.classList.add("is-visible"),Of(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Of(a,y){var b;if(!a.element||a.element.mathfield!==a||!xh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){Pd(a);return}if(y!=null&&y.deferred){setTimeout(()=>Of(a),32);return}const E=gc(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,re=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,oe=window.innerWidth-document.documentElement.clientWidth,me=window.innerHeight-document.documentElement.clientHeight,ve=window.mathVirtualKeyboard.boundingRect.height,Ee=document.getElementById("mathlive-suggestion-popover");E.x+Ee.offsetWidth/2>re-oe?Ee.style.left=`${re-Ee.offsetWidth-oe}px`:E.x-Ee.offsetWidth/2<0?Ee.style.left="0":Ee.style.left=`${E.x-Ee.offsetWidth/2}px`;const Ne=E.y-E.height;ee-me-ve-E.y<Ne?(Ee.classList.add("ML__popover--reverse-direction"),Ee.classList.remove("top-tip"),Ee.classList.add("bottom-tip"),Ee.style.top=`${E.y-E.height-Ee.offsetHeight-15}px`):(Ee.classList.remove("ML__popover--reverse-direction"),Ee.classList.add("top-tip"),Ee.classList.remove("bottom-tip"),Ee.style.top=`${E.y+15}px`)}function Pd(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function Jm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Tf("mathlive-suggestion-popover"),Lu("suggestion-popover"),Lu("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(Ad(a,"reject"),Va.insert(a.model,ee.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function qm(){document.getElementById("mathlive-suggestion-popover")&&(bh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function eg(){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 Nf=null,y0,b0,wh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return ed(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Nf===null)try{const y=yield fetch(wh,{method:"HEAD"});y.status===200&&(Nf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${wh}")`)}return new URL(a,Nf!=null?Nf:wh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var zu="not-loaded";function ng(){return ed(this,null,function*(){return zu="not-loaded",Rf()})}function Rf(){return ed(this,null,function*(){var a;if(zu!=="not-loaded")return;if(zu="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){zu="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"],E=Array.from(document.fonts).map(oe=>oe.family);if(b.every(oe=>E.includes(oe))){zu="ready";return}if(!window.MathfieldElement.fontsDirectory){zu="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),zu="error";return}const re=[["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(oe=>tg(oe[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${oe[0]}`,oe[1]));try{(yield Promise.all(re.map(me=>{try{return me.load()}catch(ve){}}))).forEach(me=>document.fonts.add(me)),zu="ready";return}catch(oe){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:oe}),document.body.classList.add("ML__fonts-did-not-load")}zu="error"}})}function rg(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 qs(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Ru(a)&&a.dirty&&(a.atomBoundsCache=new Map,cd(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new wo({from:Me(xe({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(xr.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"}),ee=a.model.root.render(E);return fc(tf(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function w0(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ee of b.atoms)ee.caret=void 0,ee.isSelected=!1,ee.containsCaret=!1;if(b.selectionIsCollapsed){const ee=b.at(b.position);ee.caret=a.model.mode;let re=ee.parent;for(;re;)re.containsCaret=!0,re=re.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const re of ee)re.isSelected=!0}return ig(a,y).toMarkup()}function cd(a,y){if(!Ru(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const E=a.field;if(!E)return;const ee=a.isSelectionEditable&&a.hasFocus(),re=E.classList.contains("ML__focused");re&&!ee?E.classList.remove("ML__focused"):!re&&ee&&E.classList.add("ML__focused");let oe=w0(a,y);const me=a.element.querySelector("[part=menu-toggle]");if(me&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?me.style.display="none":me.style.display=""),a.model.atoms.length<=1){const ve=a.options.contentPlaceholder;ve&&(oe+=`<span part=placeholder class="ML__content-placeholder">${Bl(ve)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(oe),_f(a,y.interactive),a.dirty=!1}function _f(a,y){const b=a.field;if(!b)return;for(const me of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))me.remove();!(y!=null&&y)&&zu!=="error"&&zu!=="ready"&&setTimeout(()=>{zu==="ready"?_f(a):setTimeout(()=>_f(a),128)},32);const E=a.model,ee=b.offsetWidth,re=b.getBoundingClientRect().width;let oe=Math.floor(re)/ee;if(oe=isNaN(oe)?1:oe,E.selectionIsCollapsed){Of(a,{deferred:!0});let me=E.at(E.position);for(;me&&me.type!=="prompt"&&!(me.containsCaret&&me.displayContainsHighlight);)me=me.parent;if(me!=null&&me.containsCaret&&me.displayContainsHighlight){const ve=Ud(a,Vc(a,me),oe);if(ve){ve.left/=oe,ve.right/=oe,ve.top/=oe,ve.bottom/=oe;const Ee=document.createElement("div");Ee.classList.add("ML__contains-highlight"),Ee.style.position="absolute",Ee.style.left=`${ve.left+1}px`,Ee.style.top=`${Math.ceil(ve.top)}px`,Ee.style.width=`${Math.ceil(ve.right-ve.left)}px`,Ee.style.height=`${Math.ceil(ve.bottom-ve.top)}px`,b.insertBefore(Ee,b.childNodes[0])}}return}for(const me of ag(Yd(a,{excludeAtomsWithBackground:!0}))){me.left/=oe,me.right/=oe,me.top/=oe,me.bottom/=oe;const ve=document.createElement("div");ve.classList.add("ML__selection"),ve.style.position="absolute",ve.style.left=`${me.left}px`,ve.style.top=`${me.top}px`,ve.style.width=`${Math.ceil(me.right-me.left)}px`,ve.style.height=`${Math.ceil(me.bottom-me.top-1)}px`,b.insertBefore(ve,b.childNodes[0])}}function ag(a){let y=[];for(const b of a){let E=!1;for(const ee of y)if(b.left===ee.left&&b.right===ee.right&&b.top===ee.top&&b.bottom===ee.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ee of a)if(b.left>=ee.left&&b.right<=ee.right&&b.top>=ee.top&&b.bottom<=ee.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var C0=3,bc;function Bu(a,y){y=xe({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),bc||(bc={});for(const b of Object.keys(a))console.assert(!bc[b],"Selector already defined: ",b),bc[b]=Me(xe({},y),{fn:a[b]})}function Ch(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Ch(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),bc[y]}function Ld(a){var y;return(y=Ch(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,oe=!1;Pe(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,Ee=>Ee[1].toUpperCase());const me=bc[E],ve=me==null?void 0:me.target;if(ve==="model"){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||If(a),bc[E].fn(a.model,...ee),lf(a),oe=!0,re=!0}else if(ve==="virtual-keyboard")oe=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(bc[E]){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),oe=bc[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return ve!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||me!=null&&me.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),me!=null&&me.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),oe&&qs(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&tt()&&navigator.vibrate(C0);const E=Ch(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}Bu({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return lf(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return lf(a,{atIndex:a.suggestionIndex-1}),!1}Bu({complete:Ad},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Bu({nextSuggestion:lg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Ff="mathlive#virtual-keyboard-message";function Sh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Ff}var cg=class em{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 em),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,E){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,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Sh(y)){if(!Xd(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:E}=y;Ld(E)==="virtual-keyboard"&&this.executeCommand(E);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(xe({type:Ff,action:y},b),this.targetOrigin)}},S0={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]"]]}},zf={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"}]},uf;function E0(a,y){var b,E,ee;const re=Xc.singleton;if(!re)return;const oe=Bd(a),me=(E=(b=re.getKeycap(oe==null?void 0:oe.id))==null?void 0:b.variants)!=null?E:"";if(typeof me=="string"&&!M0(me)||Array.isArray(me)&&me.length===0){y==null||y();return}const ve={};let Ee="";for(const er of fg(me)){const ci=D0(er),Qn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ve[Qn]=ci;const[kr,bi]=$f(ci);Ee+=`<div id=${Qn} class="item ${bi}">${kr}</div>`}const Ne=document.createElement("div");Ne.setAttribute("aria-hidden","true"),Ne.className="MLK__variant-panel",Ne.style.height="auto";const ht=Object.keys(ve).length;let Pt=5;ht===1?Pt=1:ht===2||ht===4?Pt=2:ht===3||ht===5||ht===6?Pt=3:ht>=7&&ht<14&&(Pt=4),Ne.style.width=`calc(var(--variant-keycap-length) * ${Pt} + 12px)`,Ne.innerHTML=vp.createHTML(Ee),yc.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Ne}),uf=new AbortController;const{signal:qt}=uf,dn=a==null?void 0:a.getBoundingClientRect();if(dn){dn.top-Ne.clientHeight<0&&(Ne.style.width="auto",ht<=6?Ne.style.height="56px":ht<=12?Ne.style.height="108px":ht<=18?Ne.style.height="205px":Ne.classList.add("compact"));const er=Math.max(0,Math.min(window.innerWidth-Ne.offsetWidth,(dn.left+dn.right-Ne.offsetWidth)/2)),ci=dn.top-Ne.clientHeight+5;Ne.style.transform=`translate(${er}px, ${ci}px)`,Ne.classList.add("is-visible"),requestAnimationFrame(()=>{Ne.addEventListener("pointerup",Qn=>{const kr=Bd(Qn.target);!(kr!=null&&kr.id)||!ve[kr.id]||(Eh(ve[kr.id]),cf(),y==null||y(),Qn.preventDefault())},{capture:!0,passive:!1,signal:qt}),Ne.addEventListener("pointerenter",Qn=>{const kr=Bd(Qn.target);!(kr!=null&&kr.id)||!ve[kr.id]||kr.classList.add("is-active")},{capture:!0,signal:qt}),Ne.addEventListener("pointerleave",Qn=>{const kr=Bd(Qn.target);!(kr!=null&&kr.id)||!ve[kr.id]||kr.classList.remove("is-active")},{capture:!0,signal:qt}),window.addEventListener("pointercancel",()=>{cf(),y==null||y()},{signal:qt}),window.addEventListener("pointerup",()=>{cf(),y==null||y()},{signal:qt})})}}function cf(){uf==null||uf.abort(),uf=null,yc.state==="open"&&yc.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Xe))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Xe[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(je))y.push({class:"swatch-button",label:'<span style="background:'+je[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function M0(a){return zf[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(zf[a]||(zf[a]=(y=dg(a))!=null?y:[]),zf[a])}function hg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pg(a){return Object.keys(a).map(y=>`${y} {${hg(a[y])}}`).join("")}function df(a){if(!a)return"";const y=new wo,b=new xr({mode:"math",type:"root",body:Ll(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=ju(tf(new li(b.render(y),{classes:"ML__base"}),y));return fc(E,{classes:"ML__latex"}).toMarkup()}function ff(a){var y;if(Array.isArray(a))return a.map(E=>ff(E)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(E=>E.map(ee=>D0(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mg(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const me=of();me&&(E=me.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[gt.locale.slice(0,2)])!=null?a:"qwerty")}const ee={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},re=(y=ee[E])!=null?y:ee.qwerty,oe=E==="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 me of re){const ve=[];for(const Ee of me)/[a-z]/.test(Ee)?ve.push({label:Ee,class:"hide-shift",shift:{label:Ee.toUpperCase()},variants:M0(Ee)?Ee:void 0}):Ee==="~"?E!=="dvorak"?ve.push("[backspace]"):ve.push({label:"[backspace]",width:1}):Ee==="^"?ve.push("[shift]"):Ee===" "&&ve.push("[separator-5]");oe.push(ve)}return oe.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:ff({rows:oe})}}function k0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(S0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),k0(S0[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 ee=a,{rows:re}=ee,oe=vt(ee,["rows"]);y=Me(xe({},oe),{layers:ff({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,oe=vt(ee,["markup"]);y=Me(xe({},oe),{layers:ff(a.markup)})}else y=xe({},a),"layers"in a?y.layers=ff(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,E=!1;for(const ee of y.layers)if(ee.rows)for(const re of ee.rows.flat()){Id(re)&&(b=!0);const oe=re.command;typeof oe=="string"&&["undo","redo","cut","copy","paste"].includes(oe)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function gg(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[re,oe]of a.normalizedLayouts.entries()){const me=oe,ve=[re===y?"selected":"layer-switch"];me.tooltip&&ve.push("MLK__tooltip"),me.labelClass&&ve.push(...me.labelClass.split(" ")),ee+=`<div class="${ve.join(" ")}"`,me.tooltip&&(ee+=" data-tooltip='"+((b=st(me.tooltip))!=null?b:me.tooltip)+"' "),re!==y&&(ee+=`data-layer="${me.layers[0].id}"`),ee+=`>${(E=me.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function vg(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const re={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${st("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${st("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${st("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${st("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${st("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ee.map(oe=>re[oe]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=Xc.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(E){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[E,ee]=$f(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){Lu("virtual-keyboard"),Lu("core"),Rf()}function wg(){x("core"),x("virtual-keyboard")}var Cg=`<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 Sg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Cg+a.normalizedLayouts.map((oe,me)=>Eg(a,oe,me)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",kg,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const oe of ee)oe.addEventListener("click",me=>{var ve,Ee;let Ne=me.target,ht="";for(;Ne&&!ht;)ht=(ve=Ne==null?void 0:Ne.getAttribute("data-command"))!=null?ve:"",Ne=(Ee=Ne==null?void 0:Ne.parentElement)!=null?Ee:null;ht&&a.executeCommand(JSON.parse(ht))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const re=y.querySelectorAll(".MLK__layer");console.assert(re.length>0,"No virtual keyboards available");for(const oe of re)oe.addEventListener("pointerdown",me=>me.preventDefault());return a.currentLayer=a.latentLayer,y}function Eg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ee.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(gg(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Mg(a,ee)),E.push("</div>");return E.join("")}function Mg(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>${pg(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 E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ee of E)if(ee){const re=a.registerKeycap(ee),[oe,me]=$f(ee);/(^|\s)separator/.test(me)?b+=`<div class="${me}"`:b+=`<div tabindex="-1" id="${re}" class="${me}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${oe}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function $f(a,y={shifted:!1}){var b,E,ee,re,oe,me,ve;let Ee="",Ne=(b=a.class)!=null?b:"";if(y.shifted&&Id(a)&&(Ne+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Ee=df(a.shift):typeof a.shift=="object"&&(Ee=a.shift.label?a.shift.label:(E=df(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Ne=(re=(ee=a.shift.class)!=null?ee:a.class)!=null?re:"");else{if(Ee=a.label?a.label:(oe=df(a.latex||a.insert||"")||a.key)!=null?oe:"",a.shift){let ht;typeof a.shift=="string"?ht=df(a.shift):a.shift.label?ht=a.shift.label:ht=(me=df(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?me:"",Ee+=`<span class="MLK__shift">${ht}</span>`}a.aside&&(Ee+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Ne)&&(Ne+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Ne)||(Ne+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Ne)&&a.width&&(Ne+=(ve={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ve:""),[Ee,Ne||"MLK__keycap"]}var dd={"[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 D0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!dd[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&dd[a.label]&&(b=Me(xe(xe({},dd[a.label]),a),{label:dd[a.label].label})),"key"in a&&a.key&&dd[a.key]&&(b=Me(xe(xe({},dd[a.key]),a),{key:dd[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=xe(xe({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var hf;function kg(a){var y;if(a.button!==0)return;const b=Xc.singleton;if(!b)return;let E=a.target;for(;E&&!E.getAttribute("data-layer");)E=E.parentElement;if(E){b.currentLayer=(y=E.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ee=Bd(a.target);if(!(ee!=null&&ee.id))return;const re=b.getKeycap(ee.id);if(!re)return;console.assert(a.type==="pointerdown");const oe=new AbortController,me=oe.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Kf(oe),{capture:!0,signal:me}),ee.addEventListener("pointerleave",Kf(oe),{capture:!0,signal:me}),ee.addEventListener("pointercancel",Kf(oe),{signal:me}),ee.addEventListener("pointerup",Kf(oe),{signal:me}),Id(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(hf&&clearTimeout(hf),hf=setTimeout(()=>{ee.classList.contains("is-pressed")&&(ee.classList.remove("is-pressed"),ee.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),E0(ee,()=>{oe.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Kf(a){return y=>{const b=Bd(y.target);if(!(b!=null&&b.id))return;const E=Xc.singleton;if(!E)return;const ee=E.getKeycap(b.id);if(ee){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),Id(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),Id(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){hf&&clearTimeout(hf),Id(ee)?b.classList.toggle("is-active",E.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),E.isShifted&&ee.shift?typeof ee.shift=="string"?E.executeCommand(["insert",ee.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Eh(ee.shift):Eh(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Eh(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=Xc.singleton)==null||y.executeCommand(b)}function Dg(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 Bd(a){if(!a)return;let y=a;for(;y&&!Dg(y);)y=y.parentElement;return y!=null?y:void 0}function Id(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Xc=class tm{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,E;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(ee=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(E=window.top)==null||E.addEventListener("message",this)}catch(ee){window.addEventListener("message",this)}document.body.addEventListener("focusin",ee=>{const re=ee.target;re!=null&&re.isConnected&&setTimeout(()=>{const oe=A0();oe&&!oe.readOnly&&oe.mathVirtualKeyboardPolicy==="auto"&&Je()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{A0()||this.hide()},300)})}get currentLayer(){var y,b,E;return(E=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?E:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let E=y?this._element.querySelector(`#${y}.MLK__layer`):null;E||(E=this._element.querySelector(".MLK__layer")),E&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),E.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 E of b)for(const ee of E.layers)if(ee.id===y)return ee}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],E=b.findIndex(ee=>ee==="default");E>=0&&b.splice(E,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ee=>k0(ee))}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 tm}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,E){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,E){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 E=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${E}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ee=E-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ee}px)`:`${ee}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${E}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 E of b){const ee=this.getKeycap(E.id);if(ee){const[re,oe]=$f(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(re),E.className=oe}}}show(y){var b;if(this._visible)return;const E=this.container;if(E&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ee=this._element.getElementsByClassName("MLK__plate")[0];if(ee&&this.observer.observe(ee),E===window.document.body){const re=E.style.paddingBottom;this.originalContainerBottomPadding=re;const oe=ee.offsetHeight-1;E.style.paddingBottom=re?`calc(${re} + ${oe}px)`:`${oe}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 ee;return(ee=this._element)==null?void 0:ee.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 E=this.container;if(E&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ee=this._element.getElementsByClassName("MLK__plate")[0];ee&&this.observer.unobserve(ee),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}),cf(),wg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.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=Sg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&E0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Sh(y)){if(!Xd(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:E}=y;if(E==="execute-command"){const{command:ee}=y,re=Ld(ee);if(window.top!==void 0&&re!=="virtual-keyboard")return;this.executeCommand(ee);return}if((E==="connect"||E==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),E!=="disconnect"&&window===window.top){if(E==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(E==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(E==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(E==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,E){if(E||(E=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||E===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:xe({type:Ff,action:y},b)}));return}if(E)E.postMessage(xe({type:Ff,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 ee=b.command[1].split("");for(const re of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:re,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:re,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 E=b.querySelectorAll(".ML__edit-toolbar");if(E)for(const ee of E)ee.innerHTML=vg(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,E=[],ee=Ld(y);return Pe(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=Ld(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?bc[b].fn(void 0,...E):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function A0(){var a,y;let b=Bf(),E=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){E=b.host;break}b=b.parentNode}return E}if(et()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Xc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cg.singleton,configurable:!0});function Hf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Pe(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[re,oe]=E.split(",").map(me=>parseInt(me.trim()));y.scriptDepth=[re,oe]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const re=Xc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?gt.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=Ae(a.macros);break;default:Pe(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=xe({},a[b]):y[b]=a[b]}return y}function fd(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const E={};for(const ee of b)a[ee]===null?E[ee]=null:Pe(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=xe({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Zf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:mt,backgroundColorMap:Le,letterShapeStyle:gt.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:lh,inlineShortcuts:Io,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:rc,value:""}}function P0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Qc(a,y){!a||!y||(Pe(a)?a.forEach(b=>Qc(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),Qc(a.body,y),Qc(a.above,y),Qc(a.below,y),Qc(a.subscript,y),Qc(a.superscript,y)))}function Mh(a,y,b,E){function ee(oe,me){for(const ve of re)if(ve.style[oe]!==me)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const re=a.getAtoms(y,{includeChildren:!0});E.operation==="toggle"&&(b.color&&ee("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ee("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ee("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ee("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ee("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ee("fontSize",b.fontSize)&&(b.fontSize=Zo),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const oe of re)oe.applyStyle(b);return!0}function Ag(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:E}=b;b.caret=void 0;const ee=new Fc(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Pg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}Dt(["math","displaymath"],Qu),Dt("center",Qu),xt("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(E=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(E)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new Ga("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),xn("array","{columns:colspec}",(a,y,b,E)=>new Ga(a,kh(y),b,{columns:E[0],mathstyleName:"textstyle"})),xn(["equation","equation*","subequations"],"",(a,y,b)=>new Ga(a,kh(y),b,{columns:[{align:"c"}]})),xn(["multline","multline*"],"",Qu),xn(["align","align*","aligned","eqnarray"],"",Qu),xn("split","",Qu),xn(["gather","gathered"],"",Qu),xn(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Qu),xn(["smallmatrix","smallmatrix*"],"[columns:colspec]",Qu),xn(["cases","dcases","rcases"],"",Qu);function Lg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kh(a,y=1){return Lg(a)?Array(y).fill([[new xr({type:"first"}),new Sa]]):a.map(b=>b.length===0?[[new xr({type:"first"})]]:b.map(E=>E.length===0?[new xr({type:"first"})]:(E[0].type!=="first"&&E.unshift(new xr({type:"first"})),E)))}function Qu(a,y=[[[]]],b=[],E=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Ga(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Ga(a,y,b,{mathstyleName:"textstyle"});case"center":return new Ga(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Ga(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Ga(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Ga(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Ga(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:hd(E[0])});case"bmatrix":case"bmatrix*":return new Ga(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:hd(E[0])});case"Bmatrix":case"Bmatrix*":return new Ga(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:hd(E[0])});case"vmatrix":case"vmatrix*":return new Ga(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:hd(E[0])});case"Vmatrix":case"Vmatrix*":return new Ga(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:hd(E[0])});case"matrix":case"matrix*":return new Ga(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:hd(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new Ga(a,y,b,{mathstyleName:"scriptstyle",columns:hd(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Ga(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 Ga(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Ga(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const me of y)ee=Math.max(ee,me.length);const re=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let oe=2;for(;oe<ee;)re.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),oe+=2;return re.push({gap:0}),new Ga(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new Ga(a,y,b,{mathstyleName:"textstyle"})}function hd(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 Bg(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof Ga);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Ga)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),re=a.extractAtoms([0,a.position]);re.length===0&&(re=Vf()),ee.length===0&&(ee=Vf());let oe;return y.endsWith("column")?(oe=Qu("split",[[re,ee]]),a.root=oe,pd(oe,0,0)?md(a,oe,0,0):pd(oe,0,1)?md(a,oe,0,1):a.position=a.offsetOf(E)):(oe=Qu("lines",[[re],[ee]]),a.root=oe,pd(oe,0,0)?md(a,oe,0,0):pd(oe,1,0)?md(a,oe,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof es){const ee=b.parent;let re=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),oe=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);oe.length===0&&(oe=Vf()),re.length===0&&(re=Vf());let me="pmatrix";const ve=ee.leftDelim,Ee=ee.rightDelim;ve==="("&&(Ee===")"||Ee==="?")?me="pmatrix":(ve==="["||ve==="\\lbrack")&&(Ee==="]"||Ee==="\\rbrack"||Ee==="?")?me="bmatrix":ve==="\\vert"&&Ee==="\\vert"?me="vmatrix":ve==="\\Vert"&&Ee==="\\Vert"?me="Vmatrix":(ve==="{"||ve==="\\lbrace")&&(Ee==="."||Ee==="?")&&(me="cases");const Ne=Qu(me,y.endsWith("column")?[[oe,re]]:[[oe],[re]]);return ee.parent.addChildBefore(Ne,ee),ee.parent.removeChild(ee),pd(Ne,0,0)?md(a,Ne,0,0):y.endsWith("column")?pd(Ne,0,1)?md(a,Ne,0,1):a.position=a.offsetOf(b):pd(Ne,1,0)?md(a,Ne,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Ga?[b.parent,b.parentBranch]:[void 0,[0,0]]}function pd(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Ig(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function md(a,y,b,E){const ee=Ig(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Wf(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function jf(a,y){const[b,[E,ee]]=Bg(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Wf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Wf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Wf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Wf(a,b,E,ee,"start");break}}function L0(a){return a.contentWillChange({inputType:"insertText"})?(jf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Tg(a){return a.contentWillChange({inputType:"insertText"})?(jf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function B0(a){return a.contentWillChange({inputType:"insertText"})?(jf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?(jf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",E=".";switch(y){case"pmatrix":case"pmatrix*":b="(",E=")";break;case"bmatrix":case"bmatrix*":b="[",E="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",E="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",E="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",E="\\Vert";break;case"matrix":case"matrix*":b=".",E=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":E="\\rbrace";break}const ee=a.at(a.position),re=ee.type==="array"?ee:a.parentEnvironment;return re.environmentName=y,re.leftDelim=b,re.rightDelim=E,a.contentDidChange({}),!0}function T0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Ga);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Ga){const E=b.parent,ee=b.parentBranch;let re;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const oe=E.getCell(Math.max(0,ee[0]-1),ee[1]);re=a.offsetOf(oe[oe.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const oe=E.getCell(ee[0],Math.max(0,ee[1]-1));re=a.offsetOf(oe[oe.length-1])}break}re&&a.setPositionHandlingPlaceholder(re)}}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(T0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Rg(a){return a.contentWillChange({inputType:"deleteContent"})?(T0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Bu({addRowAfter:L0,addColumnAfter:B0,addRowBefore:Tg,addColumnBefore:Og,removeRow:Ng,removeColumn:Rg,setEnvironment:I0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Vf(){return[new Sa]}var O0=class nm{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>nm.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};O0.maximumDepth=1e3;var _g=O0;function Dh(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(ge.test(a.at(y).value)){let re=y,oe;do oe=a.at(re).mode==="text"&&ge.test(a.at(re).value),re+=E;while(a.at(re)&&oe);ee=a.at(re)?re-2*E:re-E}else if(/\s/.test(a.at(y).value)){let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&/\s/.test(a.at(re).value);)re+=E;if(!a.at(re))ee=re-E;else{let oe=!0;do oe=a.at(re).mode==="text"&&!/\s/.test(a.at(re).value),re+=E;while(a.at(re)&&oe);ee=a.at(re)?re-2*E:re-E}}else{let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&!/\s/.test(a.at(re).value);)re+=E;ee=a.at(re)?re:re-E;let oe=!0;for(;a.at(re)&&oe;)oe=a.at(re).mode==="text"&&/\s/.test(a.at(re).value),oe&&(ee=re),re+=E;ee=a.at(re)?re-2*E:re-E}return ee-(E>0?0:1)}function Td(a,y,b){var E,ee,re,oe,me,ve,Ee;const Ne=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let ht=a.at(a.position);if(y==="forward"&&(ht.type==="subsup"?(ht=ht.rightSibling,ht||(ht=a.at(a.position+1))):ht=a.at(a.position+1)),!ht)return a.announce("plonk"),!1;let Pt=a.offsetOf(ht);if(ht instanceof Ou)Pt=Dh(a,Pt,y);else if(ht instanceof Rl)if(ht.isSuggestion)for(console.assert(y==="forward");ht&&ht instanceof Rl;)ht.isSuggestion=!1,Pt=a.offsetOf(ht),ht=ht.rightSibling;else if(y==="forward"){if(ht=ht.rightSibling,!ht||!(ht instanceof Rl))return a.announce("plonk"),!1;for(;ht&&ht instanceof Rl&&/[a-zA-Z\*]/.test(ht.value);)Pt=a.offsetOf(ht),ht=ht.rightSibling}else{if(ht=ht.leftSibling,!ht||!(ht instanceof Rl))return a.announce("plonk"),!1;for(;ht&&ht instanceof Rl&&/[a-zA-Z\*]/.test(ht.value);)Pt=a.offsetOf(ht),ht=ht.leftSibling}else if(y==="forward"&&ht.type==="mopen"){let qt=0;do ht.type==="mopen"?qt+=1:ht.type==="mclose"&&(qt-=1),ht=ht.rightSibling;while(!ht.isLastSibling&&qt!==0);Pt=a.offsetOf(ht.leftSibling)}else if(y==="backward"&&ht.type==="mclose"){let qt=0;do ht.type==="mopen"?qt+=1:ht.type==="mclose"&&(qt-=1),ht=ht.leftSibling;while(!ht.isFirstSibling&&qt!==0);Pt=a.offsetOf(ht)}else if(y==="backward")if(ht.type==="first")for(;Pt>0&&ht.type==="first";)Pt-=1,ht=a.at(Pt);else{const qt=ht.type;ht.type==="subsup"&&(Pt=a.offsetOf(a.at(Pt).leftSibling)),Pt-=1;let dn=(ee=a.at(Pt))==null?void 0:ee.type;for(;Pt>=0&&dn===qt;)((re=a.at(Pt))==null?void 0:re.type)==="subsup"?Pt=a.offsetOf(a.at(Pt).leftSibling):Pt-=1,dn=a.at(Pt).type}else{const{type:qt}=ht;let dn=(oe=a.at(Pt))==null?void 0:oe.type;const{lastOffset:er}=a;for(;Pt<=er&&(dn===qt||dn==="subsup");){for(;((me=a.at(Pt).rightSibling)==null?void 0:me.type)==="subsup";)Pt=a.offsetOf(a.at(Pt).rightSibling);Pt+=1,dn=(ve=a.at(Pt))==null?void 0:ve.type}Pt-=1}if((Ee=b==null?void 0:b.extend)!=null&&Ee){if(!a.setSelection(a.anchor,Pt))return a.announce("plonk"),!1}else{if(Pt===a.position)return a.announce("plonk"),!1;a.position=Pt}return a.announce("move",Ne),a.mathfield.stopCoalescingUndo(),!0}function xc(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[me,ve]=g0(a);me!==void 0&&ve!==void 0&&a.deleteAtoms([me,ve])}if(y==="upward")return zg(a,b);if(y==="downward")return $g(a,b);if(b.extend){let me=Uf(a,a.position,y);me<0&&(me=0),me>a.lastOffset&&(me=a.lastOffset);const ve=a.setSelection(a.anchor,me);return a.mathfield.stopCoalescingUndo(),ve}if(a.selectionIsPlaceholder){a.collapseSelection(y);const me=xc(a,y);return a.mathfield.stopCoalescingUndo(),me}let re=a.position;const oe=re;if(a.collapseSelection(y)?(re=a.position,N0(a,re)||(re=Uf(a,re,y))):re=Uf(a,re,y),re<0||re>a.lastOffset){let me=!0;return a.silenceNotifications||(me=(ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0),me&&a.announce("plonk"),me}return a.setPositionHandlingPlaceholder(re),a.mathfield.stopCoalescingUndo(),a.announce("move",oe),!0}function Uf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||N0(a,y)?y:Uf(a,y,b)}function N0(a,y){var b;const E=a.at(y);let ee=E.parent;for(;ee&&!ee.inCaptureSelection;)ee=ee.parent;return!(ee!=null&&ee.inCaptureSelection||(b=E.parent)!=null&&b.skipBoundary&&(!E.isFirstSibling&&E.isLastSibling||E.type==="first")||a.mathfield.hasEditablePrompts&&!E.parentPrompt)}function Fg(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const re=Cd(a.getHTMLElement(y[ee])).right,oe=Math.abs(b-re);if(oe<=E)E=oe;else break}return y[ee-1]}function Gf(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,oe=re?b.filter(Ee=>Ee.type==="prompt"&&!Ee.captureSelection):b,me=Cd(a.mathfield.getHTMLElement(y)).right,ve=a.offsetOf(Fg(a.mathfield,oe,me))-(re?1:0);if(E){const[Ee,Ne]=a.selection.ranges[0];let ht;ve<(ee==="up"?Ee:Ne)?ht={ranges:[[ve,Ne]],direction:"backward"}:ht={ranges:[[Ee,ve]],direction:"forward"},a.setSelection(ht)}else a.setPositionHandlingPlaceholder(ve);a.announce(`move ${ee}`)}function zg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const re=()=>{var ve,Ee;let Ne=!0;return a.silenceNotifications||(Ne=(Ee=(ve=a.mathfield.host)==null?void 0:ve.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Ee:!0),a.announce(Ne?"plonk":"line"),Ne},oe=a.at(a.position);let me=oe;for(;me&&me.parentBranch!=="below"&&!(Array.isArray(me.parentBranch)&&me.parent instanceof Ga);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof Ga){const ve=me.parent;if(me.parentBranch[0]<1)return re();const Ee=me.parentBranch[0]-1,Ne=ve.array[Ee][me.parentBranch[1]];if(!Ne.some(Pt=>Pt.type==="prompt"&&!Pt.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Gf(a,oe,Ne,ee,"up")}else if(me){const ve=(E=me.parent.branch("above"))!=null?E:me.parent.createBranch("above");if(!ve.some(Ne=>Ne.type==="prompt"&&Ne.placeholderId)&&a.mathfield.hasEditablePrompts)return re();Gf(a,oe,ve,ee,"up")}else return re();return a.mathfield.stopCoalescingUndo(),!0}function $g(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const re=()=>{var ve,Ee;let Ne=!0;return a.silenceNotifications||(Ne=(Ee=(ve=a.mathfield.host)==null?void 0:ve.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Ee:!0),a.announce(Ne?"plonk":"line"),Ne},oe=a.at(a.position);let me=oe;for(;me&&me.parentBranch!=="above"&&!(Array.isArray(me.parentBranch)&&me.parent instanceof Ga);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof Ga){const ve=me.parent;if(me.parentBranch[0]+1>ve.array.length-1)return re();const Ee=me.parentBranch[0]+1,Ne=ve.array[Ee][me.parentBranch[1]];if(!Ne.some(Pt=>Pt.type==="prompt"&&!Pt.captureSelection)&&a.mathfield.hasEditablePrompts)return re();Gf(a,oe,Ne,ee,"down")}else if(me){const ve=(E=me.parent.branch("below"))!=null?E:me.parent.createBranch("below");if(!ve.some(Ne=>Ne.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();Gf(a,oe,ve,ee,"down")}else return re();return!0}function R0(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 Kg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Hg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function _0(a){var y;if(a.collapseSelection(),Kg(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 Yu({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function F0(a){var y;if(a.collapseSelection(),Hg(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 Yu({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 Zg(){function a(ve){const Ee=[],Ne=[];return[...ve.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Pt,qt)=>{const dn=E(Pt);dn===0?Ee.push(Pt):Ne.push({documentOrder:qt,tabIndex:dn,node:Pt})}),Ne.sort((Pt,qt)=>Pt.tabIndex===qt.tabIndex?Pt.documentOrder-qt.documentOrder:Pt.tabIndex-qt.tabIndex).map(Pt=>Pt.node).concat(Ee)}function y(ve){return!(!b(ve)||ee(ve)||E(ve)<0)}function b(ve){return!(ve.disabled||ve.type==="hidden"&&ve.tagName.toUpperCase()==="INPUT"||me(ve))}function E(ve){var Ee;const Ne=Number.parseInt((Ee=ve.getAttribute("tabindex"))!=null?Ee:"NaN",10);return Number.isNaN(Ne)?ve.contentEditable==="true"||(ve.nodeName==="AUDIO"||ve.nodeName==="VIDEO")&&ve.getAttribute("tabindex")===null?0:ve.tabIndex:Ne}function ee(ve){return ve.tagName.toUpperCase()==="INPUT"&&ve.type==="radio"&&!oe(ve)}function re(ve,Ee){for(const Ne of ve)if(Ne.checked&&Ne.form===Ee)return Ne;return null}function oe(ve){var Ee;if(!ve.name)return!0;const ht=((Ee=ve.form)!=null?Ee:ve.ownerDocument).querySelectorAll('input[type="radio"][name="'+ve.name+'"]'),Pt=re(ht,ve.form);return!Pt||Pt===ve}function me(ve){if(!et()||ve===document.activeElement||ve.contains(document.activeElement))return!1;if(getComputedStyle(ve).visibility==="hidden")return!0;const Ee=ve.getBoundingClientRect();if(Ee.width===0||Ee.height===0)return!0;for(;ve;){if(getComputedStyle(ve).display==="none")return!0;ve=ve.parentElement}return!1}return et()?a(document.body):[]}function gu(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),re=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,re):a.setSelection(re,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?gu(a,[y.leftSibling,y]):gu(a,[y,y.leftSibling])}function oc(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 E=a.offsetOf(y);y.type==="placeholder"?a.setSelection(E-1,E):a.position=E}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function Yf(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&xc(a,y);let oe;const me=a.at(a.anchor).parentPrompt;me?y==="forward"?oe=a.offsetOf(me)+1:oe=a.offsetOf(me.leftSibling):oe=Math.max(a.position+re,0);const ve=Ah(a,oe,y);if(!ve||y==="forward"&&a.offsetOf(ve)<oe||y==="backward"&&a.offsetOf(ve)>oe){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const Ne=Zg();if(!document.activeElement||Ne.length<=1)return a.announce("plonk"),!1;let ht=Ne.indexOf(document.activeElement)+re;return ht<0&&(ht=Ne.length-1),ht>=Ne.length&&(ht=0),Ne[ht].focus(),a.mathfield.stopCoalescingUndo(),!0}return oc(a,ve),!0}function Ah(a,y=0,b="forward"){return a.findAtom(E=>E.type==="placeholder"||E.type==="prompt"||!a.mathfield.readOnly&&E.treeDepth>2&&E.isFirstSibling&&E.isLastSibling,y,b)}Bu({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:E}=b;if(!E)return a.announce("plonk"),!1;const ee=b.parentBranch;let re;if(typeof ee=="string"&&(re=y[ee]),!re){const me=b.subsupPlacement?F0(a):_0(a);return a.mathfield.stopCoalescingUndo(),me}E.branch(re)||E.createBranch(re);const oe=a.setSelection(a.getBranchRange(a.offsetOf(E),re));return a.mathfield.stopCoalescingUndo(),oe},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=>R0(a),moveToNextChar:a=>xc(a,"forward"),moveToPreviousChar:a=>xc(a,"backward"),moveUp:a=>xc(a,"upward"),moveDown:a=>xc(a,"downward"),moveToNextWord:a=>Td(a,"forward"),moveToPreviousWord:a=>Td(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,E,ee;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Yf(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let Pt=re;for(;Pt&&Pt.mode==="text";)Pt=Pt.leftSibling;let qt=re;for(;((y=qt.rightSibling)==null?void 0:y.mode)==="text";)qt=qt.rightSibling;if(Pt&&qt)return gu(a,[Pt,qt])}if(re.rightSibling.mode==="text"){let Pt=re;for(;Pt&&Pt.mode==="text";)Pt=Pt.rightSibling;return Pt?(oc(a,(b=Pt.leftSibling)!=null?b:Pt),a.mathfield.switchMode("math"),!0):oc(a,a.lastOffset)}}const me=a.at(a.anchor).parentPrompt,ve=me?a.offsetOf(me)+1:Math.max(a.position+1,0),Ee=Ah(a,ve,"forward");if(Ee)return oc(a,Ee);const Ne=z0(a,re,Pt=>Pt.type==="leftright"||Pt.type==="text","forward");if(Ne){if(Ne.mode==="text"){let Pt=Ne;for(;Pt&&Pt.mode==="text";)Pt=Pt.rightSibling;return gu(a,[(E=Ne.leftSibling)!=null?E:Ne,(ee=Pt.leftSibling)!=null?ee:Pt])}return gu(a,Ne)}const ht=re.parent;if(ht){if(ht.type==="leftright"||ht.type==="surd")return gu(a,ht);if(re.parentBranch==="superscript"&&ht.subscript)return gu(a,ht.subscript);if(re.parentBranch==="above"&&ht.below)return gu(a,ht.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return oc(a,ht);if(re.parentBranch==="above"||re.parentBranch==="below")return gu(a,ht)}return oc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Yf(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let me=b;for(;me&&me.mode==="text";)me=me.leftSibling;let ve=b;for(;((y=ve.rightSibling)==null?void 0:y.mode)==="text";)ve=ve.rightSibling;if(me&&ve)return gu(a,[me,ve])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?oc(a,b):oc(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),oe=Ah(a,re,"backward");if(oe)return oc(a,oe);if(E==="math"){const me=z0(a,b,Ee=>Ee.type==="leftright"||Ee.type==="text","backward");if(me){if(me.mode==="text"){let Ee=me;for(;Ee&&Ee.mode==="text";)Ee=Ee.leftSibling;return gu(a,[me,Ee])}return gu(a,me)}const ve=b.parent;if(ve){if(ve.type==="leftright"||ve.type==="surd")return gu(a,ve);if(b.parentBranch==="subscript"&&ve.superscript)return gu(a,ve.superscript);if(b.parentBranch==="below"&&ve.above)return gu(a,ve.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return oc(a,ve);if(b.parentBranch==="above"||b.parentBranch==="below")return gu(a,ve)}return oc(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:_0,moveToSubscript:F0},{target:"model",changeSelection:!0}),Bu({moveToNextPlaceholder:a=>Yf(a,"forward"),moveToPreviousPlaceholder:a=>Yf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function z0(a,y,b,E){if(E==="forward"){let re=y.rightSibling;for(;re&&!b(re);)re=re.rightSibling;return re}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function Xf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,re="";for(;!ee;){const oe=a.at(E);ee=y===0||oe===void 0||oe.type==="first"||oe.mode!=="math"||!(oe.type&&/mord|mpunct|operator/.test(oe.type)||oe.type==="mop"&&/[a-zA-Z ]+/.test(oe.value))||!oe.hasEmptyBranch("superscript")||!oe.hasEmptyBranch("subscript")||typeof b=="function"&&!b(oe),ee||(oe.mode="text",oe.command=oe.value,oe.verbatimLatex=void 0,re+=oe.value),E-=1,y-=1}a.contentDidChange({data:re,inputType:"insertText"})}function gd(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const re=[];for(;!ee;){const oe=a.at(E);ee=y===0||!oe||oe.type==="first"||oe.isFirstSibling||oe.mode!=="text"||oe.value===" "||typeof b=="function"&&!b(oe),ee||(re.push(xr.serialize([oe],{defaultMode:"math"})),oe.mode="math"),E-=1,y-=1}Ph(a),a.contentDidChange({data:oo(re),inputType:"insertText"})}function Ph(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 E=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=E,a.contentDidChange({inputType:"deleteContent"})}}function Wg(a){let y="",b=a.position,E=!1;for(;!E;){const ee=a.at(b);E=!(ee&&(ee.mode==="text"||ee.mode==="math"&&ee.type&&/mord|mpunct/.test(ee.type))),E||(y=ee.value+y),b-=1}return y}function jg(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Lf(b))return!1;const ee=Dd(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const re=Wg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(re)&&gd(E,1),!0;const oe={")":"(","}":"{","]":"["}[ee],{parent:me}=E.at(E.position);if(oe&&me instanceof es&&me.leftDelim===oe)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(re))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(re))return gd(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){gd(E,1);const ve=E.at(E.position);return ve.value="\u22C5",ve.style.variant="normal",ve.command="\\cdot",ve.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(re)||/\.\d$/.test(re)||/\([\d+\-.]$/.test(re))return gd(E,1),!0;if(/\([a-z][,;]$/.test(re))return gd(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Ph(E),!0}else{if(y==="[Space]")return Xf(E,void 0,oe=>/[a-z][:,;.]$/.test(oe.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Xf(E,void 0,oe=>/[a-zA-Z]/.test(oe.value)),!0;if(/(^|\W)(if)$/i.test(re))return Xf(E,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(re)&&!/(αβγ)$/.test(re))return Xf(E,void 0,oe=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(oe.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(re))return!0}return!1}function Vg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=$0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(vh(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 Ug(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=$0();y.innerHTML=""}else{const y=Tf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function $0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(Lu("keystroke-caption"),Lu("core"),Tf("mathlive-keystroke-caption-panel"))}function Gg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function K0(a,y){var b,E,ee;const{model:re}=a,oe=p0(y);if(y.isTrusted){_m(y);const qt=of();a.keyboardLayout!==qt.id&&(a.keyboardLayout=qt.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vg(a,oe),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let me,ve="",Ee;const Ne=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(oe==="[Backspace]")Ne.pop();else if(!Lf(y))a.flushInlineShortcutBuffer();else{const qt=Dd(y),dn=[...(E=(b=Ne[Ne.length-1])==null?void 0:b.keystrokes)!=null?E:[],qt];Ne.push({state:re.getState(),keystrokes:dn,leftSiblings:Yg(a)});let er=0,ci="";for(;!me&&er<dn.length;)Ee=Ne.length-(dn.length-er),ci=dn.slice(er).join(""),me=od(Ne[Ee].leftSiblings,ci,a.options.inlineShortcuts),!me&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(ci)&&(me=a.options.onInlineShortcut(a,ci)),er+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(me?a.switchMode("math"):jg(a,oe,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),ve=""))}if(!me){if(ve||(ve=Wm(a.keybindings,re.mode,y)),!ve&&(oe==="[Enter]"||oe==="[Return]")){let qt=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(qt=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),qt||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),qt}if((!ve||oe==="[Space]")&&re.mode==="math"){if(oe==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Va.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ve="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const qt=re.at(re.position+1),dn=re.at(re.position-1);if((qt==null?void 0:qt.mode)==="text"||(dn==null?void 0:dn.mode)==="text")return Va.insert(re," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=re.at(re.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Dd(y)===","&&(ve="insertDecimalSeparator")}}if(!me&&!ve){if(re.mathfield.smartFence){if(Bh(re,Dd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:qt}=re.at(re.position);if(qt instanceof es&&qt.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(oe))return a.snapshot(),qt.isDirty=!0,qt.rightDelim=oe,re.position+=1,re.selectionDidChange(),re.contentDidChange({data:Dd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!re.selectionIsCollapsed){const dn=Dd(y);if(dn==="("||dn==="{"||dn==="["){const er={"(":"(","{":"\\lbrace","[":"\\lbrack"}[dn],ci={"(":")","{":"\\rbrace","[":"\\rbrack"}[dn],[Qn,kr]=yl(re.selection);return a.snapshot(),re.position=kr,Va.insert(re,ci,{format:"latex"}),re.position=Qn,Va.insert(re,er,{format:"latex"}),re.setSelection(Qn+1,kr+1),re.contentDidChange({data:dn,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const ht=re.at(Math.max(re.position,re.anchor)),{parent:Pt}=ht;if(ve==="moveAfterParent"&&(Pt==null?void 0:Pt.type)==="leftright"&&ht.isLastSibling&&a.options.smartFence&&Bh(re,".",a.defaultStyle)&&(ve="",qs(a)),a.keyboardDelegate.cancelComposition(),ve)a.executeCommand(ve);else if(me){const qt=a.effectiveStyle;re.setState(Ne[Ee].state);const dn=Ne[Ne.length-1].keystrokes;for(const er of dn)Va.insert(re,er,{silenceNotifications:!0,style:qt});a.snapshot("insert-shortcut"),re.setState(Ne[Ee].state),re.deferNotifications({content:!0,selection:!0,data:me,type:"insertText"},()=>(Va.insert(re,me,{format:"latex",style:qt}),Ph(a.model),me.endsWith(" ")&&(a.switchMode("text"),Va.insert(re," ",{style:qt,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Lh(a,y,b){const{model:E}=a;if(!a.isSelectionEditable){E.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 ee=Xl(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(ve=>ve.toUpperCase())),b.simulateKeystroke){let ve=!0;for(const Ee of ee)K0(a,new KeyboardEvent("keypress",{key:Ee}))&&(ve=!1);if(ve)return}const oe=E.at(E.position),me=xe(xe({},oe.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(yl(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{If(a);for(const ve of ee)Va.insert(E,ve);a.snapshot("insert-latex"),lf(a)});else if(E.mode==="text"){for(const ve of ee)Va.insert(E,ve,{style:me});a.snapshot("insert-text")}else if(E.mode==="math")for(const ve of ee)Xg(a,ve,me,oe);a.dirty=!0,a.scrollIntoView()}function Yg(a){const y=a.model,b=[];let E=y.at(Math.min(y.position,y.anchor));for(;E.type!=="first";)b.push(E),E=E.leftSibling;return b}function Xg(a,y,b,E){const ee=a.model;let re={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(re=["insert",a.options.mathModeSpace]),re){a.executeCommand(re);return}if(/\d/.test(y)&&a.options.smartSuperscript&&E.parentBranch==="superscript"&&E.parent.type!=="mop"&&E.parent.type!=="operator"&&E.parent.type!=="extensible-symbol"&&E.hasNoSiblings){Qg(ee),Va.insert(ee,y,{style:b}),a.snapshot(),R0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const oe=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(oe==null?void 0:oe.type)==="mord"&&/[a-zA-Z0-9]/.test(oe.value)&&(b=xe({},b),oe.style.variant&&(b.variant=oe.style.variant),oe.style.variantStyle&&(b.variantStyle=oe.style.variantStyle))}Va.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Qg(a){a.selectionIsCollapsed||(a.deleteAtoms(yl(a.selection)),a.mathfield.snapshot("delete"))}function Bh(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ee}=E,re={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!re)return!1;const oe=te[re],me=ne[re];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ve,Ee]=yl(a.selection),Ne=a.extractAtoms([ve,Ee]),ht=ee.addChildrenAfter([new es("left...right",Ne,{leftDelim:re,rightDelim:me})],a.at(ve));return a.setSelection(a.offsetOf(ht.firstChild),a.offsetOf(ht.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const ve=ee instanceof es?ee.leftDelim+ee.rightDelim:"";if(ve==="\\lbrace\\rbrace"||ve==="\\{\\}"||ve==="\\lbrace?")return a.mathfield.snapshot(),Va.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(me){if(ee instanceof es&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=re,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof es)){let ht=E;for(;ht&&!(ht.type==="mclose"&&ht.value===me);)ht=ht.rightSibling;if(ht){a.mathfield.snapshot();const Pt=a.extractAtoms([a.offsetOf(E),a.offsetOf(ht)]);return Pt.pop(),ee.addChildrenAfter([new es("left...right",Pt,{leftDelim:re,rightDelim:me})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ve=a.offsetOf(E.lastSibling);let Ee;for(Ee=a.position;Ee<=ve;Ee++){const ht=a.at(Ee);if(ht instanceof es&&(ht.leftDelim==="?"||ht.leftDelim===".")&&H0(re,ht.rightDelim))break}const Ne=a.at(Ee);if(Ee<=ve&&Ne instanceof es){Ne.leftDelim=re,a.mathfield.snapshot();let ht=a.extractAtoms([a.position,Ee-1]);return ht=ht.filter(Pt=>Pt.type!=="first"),Ne.addChildren(ht,Ne.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof es&&(ee.leftDelim==="?"||ee.leftDelim===".")&&H0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const ht=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const Pt of ht)ee.parent.addChildBefore(Pt,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof es&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),Va.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const ht=a.offsetOf(E.lastSibling),Pt=a.extractAtoms([a.position,ht]);a.at(a.position).body=Pt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(oe){let ve=E;for(;ve;){if(ve.type==="mopen"&&ve.value===oe){a.mathfield.snapshot();const qt=ve.leftSibling,dn=a.extractAtoms([a.offsetOf(ve.leftSibling),a.offsetOf(E)]);dn.shift();const er=new es("left...right",dn,{leftDelim:oe,rightDelim:re});return ee.addChildrenAfter([er],qt),a.position=a.offsetOf(er),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ve=ve.leftSibling}if(ee instanceof es&&E.isLastSibling&&Ih(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Ee=a.offsetOf(E.firstSibling);let Ne;for(Ne=a.position;Ne>=Ee;Ne--){const qt=a.at(Ne);if(qt instanceof es&&(qt.rightDelim==="?"||qt.rightDelim===".")&&Ih(qt.leftDelim,re))break}const ht=a.at(Ne);if(Ne>=Ee&&ht instanceof es)return a.mathfield.snapshot(),ht.rightDelim=re,ht.addChildren(a.extractAtoms([Ne,a.position]),ht.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof es&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Ih(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Pt=ee.parent;return Pt instanceof es&&(Pt.rightDelim==="?"||Pt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Pt),Bh(a,re,b)):!1}return!1}function Ih(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function H0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}Bu({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:Ug,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Lh(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 E=a.getPrompts();let ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),re=0;for(;E.includes(ee)&&re<100;){if(re===99)return console.error("could not find a unique ID after 100 tries"),!1;ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),re++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),Bu({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"}),Bu({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})&&(lf(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),qs(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function Jg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Th(a,y),{model:E}=a;return E.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=xe(xe({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Mh(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}Bu({applyStyle:Jg},{target:"mathfield",canUndo:!0,changeContent:!0});function Th(a,y){var b,E,ee,re,oe,me,ve,Ee,Ne,ht;const Pt={};if(typeof y.color=="string"){const dn=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";dn!==y.color&&(Pt.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),Pt.color=dn}if(typeof y.backgroundColor=="string"){const dn=(oe=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?oe:"none";dn!==y.backgroundColor&&(Pt.verbatimBackgroundColor=(me=y.verbatimBackgroundColor)!=null?me:y.backgroundColor),Pt.backgroundColor=dn}typeof y.fontFamily=="string"&&(Pt.fontFamily=y.fontFamily),typeof y.series=="string"&&(Pt.fontSeries=y.series),typeof y.fontSeries=="string"&&(Pt.fontSeries=y.fontSeries.toLowerCase()),Pt.fontSeries&&(Pt.fontSeries=(ve={bold:"b",medium:"m",normal:"m"}[Pt.fontSeries])!=null?ve:Pt.fontSeries),typeof y.shape=="string"&&(Pt.fontShape=y.shape),typeof y.fontShape=="string"&&(Pt.fontShape=y.fontShape.toLowerCase()),Pt.fontShape&&(Pt.fontShape=(Ee={italic:"it",up:"n",upright:"n",normal:"n"}[Pt.fontShape])!=null?Ee:Pt.fontShape),y.variant&&(Pt.variant=y.variant.toLowerCase()),y.variantStyle&&(Pt.variantStyle=y.variantStyle.toLowerCase());const qt=(Ne=y.size)!=null?Ne:y.fontSize;return typeof qt=="number"?Pt.fontSize=Math.max(1,Math.min(10,qt)):typeof qt=="string"&&(Pt.fontSize=(ht={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[qt.toLowerCase()])!=null?ht:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[qt]),Pt}function Oh(a){let[y,b]=yl(a.selection);if(y=Z0(a,y,"backward"),b=Z0(a,b,"forward"),y===b){const E=a.at(y);if(E.type==="leftright")return a.setSelection(a.offsetOf(E.firstChild)-1,b);if(E.type==="first"&&(E.parent.type==="leftright"||E.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(E.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function Z0(a,y,b){var E,ee,re;let oe=a.at(y);if(!oe)return y;const me=b==="forward"?1:-1;if(oe.mode==="text"){for(;oe&&!(oe.mode!=="text"||!ge.test(oe.value));)y+=me,oe=a.at(y);return b==="backward"?y-1:y}if(oe.mode==="latex"){if(/[a-zA-Z\*]/.test(oe.value))if(b==="backward")for(;oe&&oe.mode==="latex"&&oe.value!=="\\"&&/[a-zA-Z]/.test(oe.value);)y+=me,oe=a.at(y);else for(;oe&&oe.mode==="latex"&&/[a-zA-Z\*]/.test(oe.value);)y+=me,oe=a.at(y);else if(oe.value==="{"){if(b==="forward"){for(;oe&&oe.mode==="latex"&&oe.value!=="}";)y+=me,oe=a.at(y);return y}return y-1}else if(oe.value==="}"){if(b==="backward"){for(;oe&&oe.mode==="latex"&&oe.value!=="{";)y+=me,oe=a.at(y);return y-1}return y}return y-1}if(oe.mode==="math"){if(oe.isDigit()){for(;(E=a.at(y+me))!=null&&E.isDigit();)y+=me;return b==="backward"?y-1:y}if(oe.style.variant||oe.style.variantStyle){let ve=(ee=a.at(y))==null?void 0:ee.style;for(;ve&&ve.variant===oe.style.variant&&ve.variantStyle===oe.style.variantStyle;)ve=(re=a.at(y+me))==null?void 0:re.style,y+=me;return b==="backward"?y-1:y}return y}return y}Bu({selectGroup:a=>{const y=Oh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>xc(a,"forward",{extend:!0}),extendSelectionBackward:a=>xc(a,"backward",{extend:!0}),extendToNextWord:a=>Td(a,"forward",{extend:!0}),extendToPreviousWord:a=>Td(a,"backward",{extend:!0}),extendSelectionUpward:a=>xc(a,"upward",{extend:!0}),extendSelectionDownward:a=>xc(a,"downward",{extend:!0}),extendToNextBoundary:a=>Td(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>Td(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 vd=null,pf=0,Qf=class qu{static start(y,b,E,ee){var re;qu.element=y,(re=qu.controller)==null||re.abort(),qu.controller=new AbortController;const oe={signal:qu.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,oe),y.addEventListener("pointerup",ee,oe),y.addEventListener("pointercancel",ee,oe),Nh(b)&&(qu.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,oe),window.addEventListener("blur",ee,oe),window.addEventListener("mouseup",ee,oe))}static stop(){var y;(y=qu.controller)==null||y.abort(),qu.controller=void 0,typeof qu.pointerId=="number"&&(qu.element.releasePointerCapture(qu.pointerId),qu.pointerId=void 0)}};function Nh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function W0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,re=!1,oe=!1,me="none",ve=!1,Ee=!1;const Ne=y.clientX,ht=y.clientY,Pt=Date.now(),qt=E.field,dn=setInterval(()=>{ve?qt.scroll({top:0,left:qt.scrollLeft-16}):Ee&&qt.scroll({top:0,left:qt.scrollLeft+16})},32);function er(){Qf.stop(),re=!1,clearInterval(dn),a.element.classList.remove("tracking"),y&&y.preventDefault()}function ci(kr){if(!E.hasFocus()){er();return}const bi=kr.clientX,zr=kr.clientY,na=Nh(kr)&&kr.pointerType==="touch"?20:5;if(Date.now()<Pt+500&&Math.abs(Ne-bi)<na&&Math.abs(ht-zr)<na){kr.preventDefault(),kr.stopPropagation();return}const xa=qt.getBoundingClientRect();Ee=bi>xa.right,ve=bi<xa.left;let pa=ee;Nh(kr)&&(kr.isPrimary||(pa=mf(E,kr.clientX,kr.clientY,{bias:0})));const To=mf(E,bi,zr,{bias:bi<=Ne?bi===Ne?0:-1:1});pa>=0&&To>=0&&(E.model.extendSelectionTo(pa,To),qs(a)),oe&&Oh(E.model)}vd&&Math.abs(vd.x-Ne)<5&&Math.abs(vd.y-ht)<5&&Date.now()<vd.time+500?(pf+=1,vd.time=Pt):(vd={x:Ne,y:ht,time:Pt},pf=1);const Qn=qt.getBoundingClientRect();if(Ne>=Qn.left&&Ne<=Qn.right&&ht>=Qn.top&&ht<=Qn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=mf(a,Ne,ht,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const kr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||kr?me="all":me="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),me="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),me="selection"):(a.model.position=ee,v0(a.model)?me="all":me="selection");a.defaultStyle={},y.detail===3||pf>2?(er(),(y.detail===3||pf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},me="all")):re||(re=!0,Qf.start(qt,y,ci,er),(y.detail===2||pf===2)&&(oe=!0,Oh(a.model),me="all"))}a.hasFocus()||(me="none",a.focus({preventScroll:!0}))}else vd=null;a.stopCoalescingUndo(),me!=="none"&&(a.model.selectionIsCollapsed&&(me="all"),qs(a)),y.preventDefault()}function qg(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function j0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=Vc(a,b);if(!re)return[1/0,null];let oe=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=re.left&&E<=re.right)for(const me of b.children){const ve=j0(a,y,me,E,ee);ve[0]<=oe[0]&&(oe=ve)}return oe[1]||(oe=[qg(E,ee,re),b]),y.set(b.id,oe),oe}function ev(a,y,b){const[,E]=j0(a,new Map,a.model.root,y,b);return E}function mf(a,y,b,E){var ee;const re=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!re)return 0;if(y>re.right||b>re.bottom+8)return a.model.lastOffset;if(y<re.left||b<re.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let oe=ev(a,y,b);const me=[];let ve=oe;for(;ve;)me.unshift(ve),ve=ve.parent;for(const Ne of me)if(Ne.captureSelection){oe=Ne;break}let Ee=a.model.offsetOf(oe);if(Ee<0)return-1;if(oe.leftSibling)if(E.bias===0&&oe.type!=="placeholder"){const Ne=Vc(a,oe);Ne&&y<(Ne.left+Ne.right)/2&&(Ee=a.model.offsetOf(oe.leftSibling))}else E.bias<0&&(Ee=a.model.offsetOf(oe.leftSibling));return Ee}var tv=class extends Va{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="",E="auto",ee=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ee)try{const re=JSON.parse(ee);if(re&&Array.isArray(re)){a.snapshot();const oe=Yc(re),{model:me}=a;me.selectionIsCollapsed||me.deleteAtoms(yl(me.selection));const ve=me.at(me.position);if(ve.parent instanceof Ga){console.assert(ve.parentBranch!==void 0);const Ee=[];let Ne=[];oe[0].type==="first"&&oe.shift(),oe[oe.length-1].type==="first"&&oe.pop();for(const dn of oe)dn.type==="first"&&Ne.length>0?(Ee.push(Ne),Ne=[dn]):Ne.push(dn);Ne.length>0&&Ee.push(Ne);let ht=Number(ve.parentBranch[0]),Pt=Number(ve.parentBranch[1]);const qt=ve.parent.maxColumns;for(;ve.parent.colCount-Pt<Ee.length&&ve.parent.colCount<qt;)ve.parent.addColumn();ve.parent.addChildrenAfter(Ee[0],ve);for(let dn=1;dn<Ee.length;dn++)Pt++,Pt>=qt&&(Pt=0,ve.parent.addRowAfter(ht),ht++),ve.parent.setCell(ht,Pt,Ee[dn])}else ve.parent.addChildrenAfter(oe.filter(Ee=>Ee.type!=="first"),ve);return me.position=me.offsetOf(oe[oe.length-1]),me.contentDidChange({inputType:"insertFromPaste"}),qs(a),!0}}catch(re){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const re=JSON.parse(ee);if(typeof re=="object"&&"latex"in re&&re.latex&&(b=re.latex),!b){const oe=window.MathfieldElement.computeEngine.box(re);oe&&!oe.has("Error")&&(b=oe.latex)}b||(E="latex")}catch(re){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(E="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let re;return[re,b]=bl(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),qs(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const re=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:re,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:oe}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const me=a.silenceNotifications;a.silenceNotifications=!0;const ve={"?":"\\placeholder{}","@":"\\placeholder{}"};ve[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(yl(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 Ee=-1;ve[0]?ve["@"]=ve[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Ee=rv(a),Ee>=0&&(ve["@"]=a.getValue(Ee,a.position,"latex"))),ve[0]||(ve[0]=ve["?"]);let Ne=!1;const ht=bi=>(Ne=!0,ve[bi]);let[Pt,qt]=V0(a,y,ht,b);if(!qt)return!1;const dn=qt.length===1&&qt[0].type==="genfrac";dn&&Ee>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ve["@"]=ve["?"],Ne=!1,[Pt,qt]=V0(a,y,ht,b)):Ee>=0&&a.deleteAtoms([Ee,a.position]);const{parent:er}=a.at(a.position),ci=er.hasEmptyBranch("body");if(dn&&Pt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&er instanceof es&&er.leftDelim==="("&&ci){const bi=er.parent,zr=er.parentBranch;bi.removeChild(er),bi.setChildren(qt,zr)}const Qn=a.at(a.position);Qn.parent.addChildrenAfter(qt,Qn),Pt==="latex"&&typeof y=="string"&&(er==null?void 0:er.type)==="root"&&ci&&!Ne&&(er.verbatimLatex=y),a.silenceNotifications=me;const kr=qt[qt.length-1];if(b.selectionMode==="placeholder"){const bi=qt.flatMap(zr=>[zr,...zr.children]).find(zr=>zr.type==="placeholder");if(bi){const zr=a.offsetOf(bi);a.setSelection(zr-1,zr),a.announce("move")}else kr&&(a.position=a.offsetOf(kr))}else b.selectionMode==="before"||(b.selectionMode==="after"?kr&&(a.position=a.offsetOf(kr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(kr)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=oe,!0}};function V0(a,y,b,E){var ee;let re,oe=[];if(typeof y!="string"||E.format==="math-json"){const me=window.MathfieldElement.computeEngine;if(!me)return["math-json",[]];[re,y]=["latex",me.box(y).latex],oe=Ll(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=oa(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),oe=Ll(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Jf(oe)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=oa(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=bl(y)),oe=Ll(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Jf(oe));return Qc(oe,E.style),[re!=null?re:"latex",oe]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof es&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Jf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof es&&b.leftDelim==="("){let E=0,ee=0,re=0;for(let oe=0;b.body[oe];oe++)b.body[oe].type==="genfrac"&&(E++,ee=oe),re++;re===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Jf(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof Ga)for(const b of y.cells)Jf(b)}}}function rv(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 E=!1;if(y.type==="mclose"){const ee=te[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ee);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),E=!0}else y.type==="leftright"&&(y=y.leftSibling,E=!0);if(E)for(;!y.isFirstSibling&&(y.isFunction||U0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(U0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===te[ee[0]]&&ee.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function U0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new tv;var iv=class extends Va{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"),qs(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:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(yl(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 re=av(y,a.mathfield.context);if(Qc(re,b.style),!re)return!1;const oe=a.at(a.position),me=oe.parent.addChildrenAfter(re,oe);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(me)):me&&(a.position=a.offsetOf(me))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function av(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 "),Ll(a,{context:y,parseMode:"text"})}new iv;function wc(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var Ps=4,Eu=20,wl=2*(Eu+Ps),qf=(a,y)=>`
|
|
|
<line x1="${a+Eu}" y1="${y+Eu}"
|
|
|
x2="${a>y?a+Eu:7*Eu+10*Ps}"
|
|
|
y2="${a<y?y+Eu:7*Eu+10*Ps}"/>
|
|
|
<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>`,G0=(a,y)=>`
|
|
|
<line x1="${a+Eu}" y1="${y+Eu}"
|
|
|
x2="${a>y?a+Eu:7*Eu+10*Ps}"
|
|
|
y2="${a<y?y+Eu:7*Eu+10*Ps}"/>
|
|
|
<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>`,eh=(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>`,ov=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*Eu+10*Ps+5} ${8*Eu+10*Ps+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${wl+Ps}"
|
|
|
height="${3*wl}"
|
|
|
width="${wl}"
|
|
|
rx="${wl/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${wl+Ps}"
|
|
|
y="0"
|
|
|
height="${wl}"
|
|
|
width="${3*wl}"
|
|
|
rx="${wl/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${eh(2*(Ps+wl),2*Ps+3*wl,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${eh(2*(Ps+wl),2*Ps+wl,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${eh(2*Ps+3*wl,2*(Ps+wl),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${eh(2*Ps+wl,2*(Ps+wl),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${qf(2*Ps+wl,Ps)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${G0(2*Ps+2*wl,Ps)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${qf(2*Ps+3*wl,Ps)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${qf(Ps,2*Ps+wl)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${G0(Ps,2*Ps+2*wl)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${qf(Ps,2*Ps+3*wl)}
|
|
|
</g>
|
|
|
</svg>`,sv=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>`,lv=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>`,Y0=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>`,uv=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>`,cv=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>`,dv=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>`,fv=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>`,hv=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>`,Rh={matrix:sv,pmatrix:lv,bmatrix:uv,Bmatrix:Y0,vmatrix:cv,Vmatrix:dv},_h={cases:fv,rcases:hv,Bmatrix:Y0};function pv(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(dn=>{(!ee||dn.length>ee)&&(ee=dn.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Tf("mathlive-environment-popover"),Lu("environment-popover"),Lu("core"),re.setAttribute("aria-hidden","true"));let oe;const me=re.querySelector(".MLEP__environment-controls");me?oe=me:(oe=document.createElement("div"),re.innerHTML="",re.appendChild(oe)),oe.className="MLEP__environment-controls",oe.style.display="flex",oe.style.width="100%",oe.style.height="100%",oe.style.boxSizing="border-box",oe.innerHTML=ov;let ve=[],Ee="";const Ne=a.model.parentEnvironment.environmentName;if(nu(Ne)){const dn=gv(Ne);Ee=Rh[dn]("active");const er=Rh,{[dn]:ci}=er,Qn=vt(er,[Ke(dn)]);ve=Object.values(Qn).map(kr=>kr("inactive"))}else if(ru(Ne)){const dn=vv(Ne);Ee=_h[dn]("active");const er=_h,{[dn]:ci}=er,Qn=vt(er,[Ke(dn)]);ve=Object.values(Qn).map(kr=>kr("inactive"))}else ml(Ne)&&(Ee=Rh.matrix("active"),ve=Object.values(_h).map(dn=>dn("inactive")));const ht=document.createElement("div");ht.className="MLEP__environment-delimiter-controls",ht.style.display="flex",ht.style.flexDirection="column",ht.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${Ee}
|
|
|
${ve.join("")}
|
|
|
</div>`,Ee&&oe.appendChild(ht),oe.querySelectorAll("[data-command]").forEach(dn=>{const er=dn.dataset.command;let ci=er;try{ci=JSON.parse(er)}catch(Qn){}dn.addEventListener("mousedown",Qn=>Qn.preventDefault()),ci&&dn.addEventListener("click",()=>a.executeCommand(ci))});const qt=(b=a.field)==null?void 0:b.getBoundingClientRect();qt&&(re.style.top=`${window.scrollY+(qt.top-re.clientHeight-15)}px`,re.style.left=`${qt.left+20}px`,re.classList.add("is-visible"))}function Fh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function th(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Vs(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):Fh()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function X0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function Q0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function zh(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yv(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bv(a,y){var b,E,ee;const re=(b=X0(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 oe=a.getBoundingClientRect(),me=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ve=Math.min(me,(E=y.height)!=null?E:oe.height),Ee=zh(y.location.y,ve,y.verticalPos,re);Ee+ve>window.innerHeight-8&&(y.alternateLocation?(Ee=zh(y.alternateLocation.y,ve,y.verticalPos,re),Ee+ve>window.innerHeight-8&&(Ee=void 0)):Ee=void 0),Number.isFinite(Ee)||(Ee=Math.max(8,window.innerHeight-8-ve),8+ve>window.innerHeight-8&&(a.style.bottom="8px")),ve=Math.min(Ee+ve,window.innerHeight-8)-Ee;const Ne=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let ht=Math.min(Ne,(ee=y.width)!=null?ee:oe.width),Pt=zh(y.location.x,ht,y.horizontalPos,re);Pt+ht>window.innerWidth-8&&(y.alternateLocation?(Pt=yv(y.alternateLocation.x,ht,y.verticalPos,re),Pt+ht>window.innerWidth-8&&(Pt=void 0)):Pt=void 0),Number.isFinite(Pt)||(Pt=Math.max(8,window.innerWidth-8-ht),8+ht>window.innerWidth-8&&(a.style.right="8px")),ht=Math.min(Pt+ht,window.innerWidth-8)-Pt,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Pt-ht).toString()}px`:a.style.left=`${Math.ceil(Pt).toString()}px`,a.style.top=`${Math.ceil(Ee).toString()}px`,ve!==oe.height&&(a.style.height=`${Math.ceil(ve).toString()}px`),ht!==oe.width&&(a.style.width=`${Math.ceil(ht).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Od(a){return"submenu"in a}function Cc(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function $h(a){return"type"in a&&a.type==="divider"}function Kh(a){return"type"in a&&a.type==="heading"}var J0={};function Hh(a){let y=J0[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 E=document.createElement("template");E.innerHTML=b,J0[a]=E,y=E}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var q0=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Od(a)?(this.type="submenu",this.submenu=new tp(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Cc(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,E;const ee=this._declaration;if($h(ee)){this.enabled=!1,this.checked=!1;return}Kh(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Cc(ee)&&(this.checked=Cc(ee)&&((y=Nd(ee.checked,a))!=null?y:!1)),(Cc(ee)||Od(ee))&&(this.enabled=(b=Nd(ee.enabled,a))!=null?b:!0,this.visible=(E=Nd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Cc(ee)||Kh(ee)||Od(ee))&&(this.label=Nd(ee.label,a),this.tooltip=Nd(ee.tooltip,a),this.ariaLabel=Nd(ee.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(Hh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Hh("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),Cc(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Hh("trailing-chevron"))}get element(){if(this._element)return this._element;if($h(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,(Cc(this._declaration)||Kh(this._declaration)||Od(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(!Cc(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()},q0)},q0)}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(),E=X0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:Q0(b,"trailing",E),y:b.top-4},alternateLocation:{x:Q0(b,"leading",E),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 E=a.clientX-y.clientX;if(wv(E,y.clientY-a.clientY,b)<=.2)return!1;let re="right";if(this.submenu.element){const oe=this.submenu.element.getBoundingClientRect(),me=this.element.getBoundingClientRect();oe.left<me.left+me.width/2&&(re="left")}return re==="right"?E>0:E<0}};function wv(a,y,b){return Math.hypot(a,y)/b}function Nd(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var tp=class Zd{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ee;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ee=b==null?void 0:b.columnCount)!=null?ee: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(E=>E.onCreate?E.onCreate(E,this):new ep(E,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,E,ee;this._menuItems.forEach(Ee=>Ee.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(Ee=>Ee.visible&&Ee.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(Ee=>Ee.updateState(y));let oe,me=0;for(const Ee of this._menuItems)Ee.type==="heading"?(oe&&me===0&&(oe.visible=!1),oe=Ee,me=0):Ee.type==="divider"&&oe?(oe.visible=me>0,oe=void 0,me=0):oe&&Ee.visible&&(me+=1);oe&&(oe.visible=me>0);let ve=!0;for(const Ee of this._menuItems)Ee.type==="divider"?(Ee.visible=!ve,ve=!0):Ee.visible&&(ve=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ee=this.activeMenuItem)==null?void 0:ee.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:E}of this._menuItems)b&&E&&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,E,ee,re;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const oe=this.activeMenuItem;oe.active=!1,(b=oe.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ee=y.element)==null||ee.focus({preventScroll:!0}):(re=this._element)==null||re.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const ee=E[y];b=ee.type!=="divider"&&ee.visible&&ee.enabled,y+=1}return b?E[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,E=!1;for(;!E&&b>=0;){const ee=y[b];E=ee.type!=="divider"&&ee.visible&&ee.enabled,b-=1}return E?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),E=this._menuItems.indexOf(this.lastMenuItem);let ee=this._menuItems.indexOf(this._activeMenuItem),re=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const oe=this._menuItems[ee];if(!oe)break;if(oe.visible&&oe.enabled){if(re===Math.abs(y))return this._menuItems[ee];re+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ee=>ee.visible&&ee.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return Zd._collator||(Zd._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Zd._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(me=>me.type!=="divider"&&me.visible&&me.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(me=>me.label.length))-y.length;if(ee<0)return null;let re=null,oe=0;for(;oe<ee&&!re;)re=(b=E.find(me=>Zd.collator.compare(y,me.label.substring(oe,y.length))===0))!=null?b:null,oe++;return re}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),It()&&(this.element.popover="manual",this.element.showPopover()),y.location&&bv(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,E,ee,re;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),It()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(re=(ee=this._element)==null?void 0:ee.parentNode)==null||re.removeChild(this._element)}set openSubmenu(y){var b,E,ee,re;const oe=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",oe.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",oe),this.isSubmenuOpen=oe}},np=class rm extends tp{constructor(y,b){var E;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(E=b==null?void 0:b.host)!=null?E:null,this.isDynamic=y.some(rp),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){$m(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=ud(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=ud(y));let re=!0;const oe=this.activeSubmenu,me=oe.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":me==null||me.select(ud(y));break;case"ArrowRight":if((me==null?void 0:me.type)==="submenu")me.select(ud(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!me)oe.activeMenuItem=oe.firstMenuItem;else{const ve=(b=oe.getMenuItemColumn(me))!=null?b:-1;if(ve>=0&&ve<((E=oe.columnCount)!=null?E:1)-1){const Ee=oe.nextMenuItem(1);Ee&&(oe.activeMenuItem=Ee)}}break;case"ArrowLeft":if(oe===this.rootMenu)me||(oe.activeMenuItem=oe.firstMenuItem);else if((me&&(ee=oe.getMenuItemColumn(me))!=null?ee:-1)<=0||!me){oe.hide();const Ee=oe.parentMenu.activeMenuItem;if(Ee){const{element:Ne}=Ee;Ne==null||Ne.focus(),Ne==null||Ne.classList.remove("is-submenu-open")}}else{const Ee=oe.nextMenuItem(-1);Ee&&(oe.activeMenuItem=Ee)}break;case"ArrowDown":oe.activeMenuItem=oe.nextMenuItem(oe.columnCount);break;case"ArrowUp":oe.activeMenuItem=oe.nextMenuItem(-oe.columnCount);break;case"Home":case"PageUp":oe.activeMenuItem=oe.firstMenuItem;break;case"End":case"PageDown":oe.activeMenuItem=oe.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ve=oe.findMenuItem(this.typingBuffer);ve&&(oe.activeMenuItem=ve),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Lf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ve=oe.findMenuItem(this.typingBuffer);ve&&(oe.activeMenuItem=ve),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else re=!1}re&&(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 yc.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),yc.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),yc.state==="open"&&yc.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(Me(xe({},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,yc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=rm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};np.SUBMENU_DELAY=120;var Cv=np;function rp(a){return $h(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Cc(a)||Od(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Cc(a)&&typeof a.checked=="function"?!0:Od(a)?a.submenu.some(rp):!1}var nh=class{};nh.DELAY=300,nh.MAX_DISTANCE=10;function Sv(a){return new Promise((y,b)=>{const E=Pf(a);E||y(!1);let ee=E;const re=setTimeout(()=>{oe.abort(),y(xv(ee,E)<nh.MAX_DISTANCE)},nh.DELAY),oe=new AbortController,me=oe.signal;for(const ve of["pointermove","pointerup","pointercancel"])window.addEventListener(ve,Ee=>{if(Ee.type==="pointerup"||Ee.type==="pointercancel")clearTimeout(re),oe.abort(),y(!1);else if(Ee.type==="pointermove"){const Ne=Pf(Ee);Ne&&(ee=Ne)}},{passive:!0,signal:me})})}function ip(a,y,b){return ed(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Pf(E),modifiers:ud(E)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const E=a;if(E.code==="ContextMenu"||E.code==="F10"&&E.shiftKey){const ee=y==null?void 0:y.getBoundingClientRect();if(ee&&b.show({target:y,location:{x:Math.ceil(ee.left+ee.width/2),y:Math.ceil(ee.top+ee.height/2)},modifiers:ud(E)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let E=a.target;for(;E&&y!==E;)E=E.parentNode;if(!E||!b.visible)return!1;const ee=Pf(a);if(yield Sv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};xt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(Me(xe({},a),{body:pt(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),xt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=rt(pt(a.args[0]));return new z(Me(xe({},a),{body:pt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),xt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(Me(xe({},a),{body:pt(a.args[0]),svgAccent:"overarc"}))}),xt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Xu(Me(xe({},a),{body:pt(a.args[0]),svgBelow:"underarc"}))}),xt("utilde","{body:auto}",{createAtom:a=>{const y=pt(a.args[0]),b=rt(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Xu(Me(xe({},a),{body:y,svgBelow:E,boxType:Wu(y)}))}}),xt("^","{:string}",{createAtom:a=>{var y;return new xr(Me(xe({},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:"^"}))}}),xt("`","{:string}",{createAtom:a=>{var y;return new xr(Me(xe({},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:"`"}))}}),xt("'","{:string}",{createAtom:a=>{var y;return new xr(Me(xe({},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:"'"}))}}),xt('"',"{:string}",{createAtom:a=>{var y,b;return new xr(Me(xe({},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]:'"'}))}}),xt(".","{:string}",{createAtom:a=>{var y,b;return new xr(Me(xe({},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]:"."}))}}),xt("=","{:string}",{createAtom:a=>{var y,b;return new xr(Me(xe({},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]:"="}))}}),xt("~","{:string}",{createAtom:a=>{var y;return new xr(Me(xe({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"}))}}),xt("c","{:string}",{createAtom:a=>{var y;return new xr(Me(xe({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),xt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ee={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(E[1]){const oe=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const me of oe){const ve=me.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ve)ee.strokeWidth=ve[1],ee.strokeStyle=ve[2],ee.strokeColor=ve[3];else{const Ee=me.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Ee&&(Ee[1]==="mathbackground"?ee.backgroundcolor=Ee[2]:Ee[1]==="mathcolor"?ee.strokeColor=Ee[2]:Ee[1]==="padding"?ee.padding=Ee[2]:Ee[1]==="shadow"&&(ee.shadow=Ee[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const re={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(oe=>oe.length>0).forEach(oe=>{re[oe.toLowerCase()]=!0}),new Qd(a.command,pt(E[2]),re,ee)}}),xt("cancel","{body:auto}",{createAtom:a=>{var y;return new Qd(a.command,pt(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:{}})}}),xt("bcancel","{body:auto}",{createAtom:a=>{var y;return new Qd(a.command,pt(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:{}})}}),xt("xcancel","{body:auto}",{createAtom:a=>{var y;return new Qd(a.command,pt(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:{}})}}),xt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Xu(Me(xe({},a),{body:pt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),xt("overbrace","{:auto}",{createAtom:a=>new Xu(Me(xe({},a),{body:pt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),xt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Xu(Me(xe({},a),{body:pt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),xt(["underbrace"],"{:auto}",{createAtom:a=>new Xu(Me(xe({},a),{body:pt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),xt(["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,E,ee,re;return new Xu(Me(xe({},a),{svgBody:a.command.slice(1),above:((b=pt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:pt((E=a.args)==null?void 0:E[1]),below:(re=pt((ee=a.args)==null?void 0:ee[0]))!=null?re: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)}`}),xt(["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 ld(a.command.slice(1),Me(xe({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),xt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new ld({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],Me(xe({},a),{limits:"over-under",variant:"main"}))}),xt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new ld(a.command.slice(1),Me(xe({},a),{limits:"over-under",variant:"main"}))}),xt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new ld(a.command.slice(1),Me(xe({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),xt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new xr(Me(xe({},a),{body:pt(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),E=b.caret;b.caret=void 0;const ee=new li("\xB0",{style:Me(xe({},a.style),{variant:"normal",variantStyle:"up"})});return new li([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),xt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(Me(xe({},a),{body:pt(a.args[1]),index:a.args[0]?pt(a.args[0]):void 0}))}),xt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=xe({},a),b=a.command,E=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 Md(E[0]?pt(E[0]):[new Sa],E[1]?pt(E[1]):[new Sa],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),E=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(E)?`${a.command}${b}${E}`:ss(a.command,b,E)}}),xt(["brace","brack"],"",{infix:!0,createAtom:a=>new Md(pt(a.args[0]),pt(a.args[1]),Me(xe({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>oo([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),xt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Md(pt(E[0]),pt(E[1]),Me(xe({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>oo([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),xt(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const E=a.args;return new Md(pt(E[0]),pt(E[1]),Me(xe({},a),{leftDelim:(y=E[2])!=null?y:".",rightDelim:(b=E[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),xt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Md(pt(a.args[0]),pt(a.args[1]),Me(xe({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),xt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new fh({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)],Me(xe({},a),{limits:"auto",variant:"main"}))}),xt("smallint","",{ifMode:"math",createAtom:a=>new ld("\u222B",Me(xe({},a),{limits:"adjacent",variant:"main"}))});var op={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"};xt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,Me(xe({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),xt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new ld({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],Me(xe({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),xt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(Me(xe({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),xt("the","{:value}",{createAtom:a=>new xr(Me(xe({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new wo({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new li(((b=As(re))!=null?b:"").split("").map(oe=>new li(oe,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:xe({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ee}).wrap(E)},serialize:a=>{var y;return`\\the${(y=As(a.args[0]))!=null?y:"\\relax"}`}}),xt("mathtip","{:auto}{:math}",{createAtom:a=>new hh(Me(xe({},a),{body:pt(a.args[0]),tooltip:pt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${xr.serialize([a.tooltip],Me(xe({},y),{defaultMode:"math"}))}}`}),xt("texttip","{:auto}{:text}",{createAtom:a=>new hh(Me(xe({},a),{body:pt(a.args[0]),tooltip:pt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${xr.serialize([a.tooltip],Me(xe({},y),{defaultMode:"text"}))}}`}),xt("error","{:math}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),xt("ensuremath","{:math}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(Me(xe({},y),{defaultMode:"math"}))}}`}),xt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=As(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),xt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=As(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),xt("boxed","{content:math}",{createAtom:a=>new sl(Me(xe({},a),{body:pt(a.args[0]),framecolor:{string:"black"}}))}),xt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=As(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),xt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new sl(Me(xe({},a),{body:pt(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,E;return y.skipStyles?a.bodyToLatex(Me(xe({},y),{defaultMode:"text"})):ss(a.command,(b=As(a.framecolor))!=null?b:"",(E=As(a.backgroundcolor))!=null?E:"",a.bodyToLatex(Me(xe({},y),{defaultMode:"text"})))}}),xt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=pt(a.args[1]);return b?new sl(Me(xe({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new sl(Me(xe({},a),{body:E}))},serialize:(a,y)=>{var b,E;if(y.skipStyles)return a.bodyToLatex(y);let ee=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const re=[];a.padding&&re.push((b=As(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=As(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return ss(ee,a.bodyToLatex(y))}}),xt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(a.args[0])})),render:(a,y)=>{const b=new wo({parent:y,mathstyle:a.command.slice(1)},a.style),E=xr.createBox(b,a.body,{type:"lift"});return a.caret&&(E.caret=a.caret),a.bind(y,E)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${oo([a.command,a.bodyToLatex(y)])}}`}),xt(["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]})}),xt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),xt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),xt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),xt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),xt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),xt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new xr(Me(xe({},a),{body:pt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),xt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),xt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),xt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),xt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),xt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),xt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),xt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),xt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),xt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),xt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),xt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),xt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),xt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),xt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),xt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),xt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),xt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),xt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),xt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),xt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),xt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),xt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),xt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),xt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),xt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),xt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),xt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),xt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),xt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),xt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),xt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),xt("mbox","{:text}",{ifMode:"math",createAtom:a=>new xr(Me(xe({},a),{type:"mord",body:pt(a.args[0]),mode:"math"})),serialize:(a,y)=>ss("\\mbox",a.bodyToLatex(Me(xe({},y),{defaultMode:"text"})))}),xt("text","{:text}",{ifMode:"math",applyMode:"text"}),xt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(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:""})}}),xt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(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 E=a.createBox(y);return E.cssId=(b=a.args[0])!=null?b:"",E}}),xt("htmlData","{data:string}{content:auto}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(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 E=a.createBox(y);return E.htmlData=(b=a.args[0])!=null?b:"",E}}),xt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(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 E=a.createBox(y);return E.htmlStyle=(b=a.args[0])!=null?b:"",E}}),xt("em","{:rest}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(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"})}),xt("emph","{:auto}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(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 sp={"\\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}};xt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(Me(xe({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),xt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new ef(Me(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),xt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new ef(Me(xe({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),xt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new xr(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===nc||E===du)&&(b=1),(E===Cu||E===al)&&(b=2),(E===El||E===js)&&(b=3);const ee=pt(a.args[b]);return xr.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${xr.serialize(a.args[0],y)}}{${xr.serialize(a.args[1],y)}}{${xr.serialize(a.args[2],y)}}{${xr.serialize(a.args[3],y)}}`}),xt("mathop","{:auto}",{createAtom:a=>new xr(Me(xe({},a),{type:"mop",body:pt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=xr.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return new li(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[ss(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)),oo(b)}}),xt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new xr(Me(xe({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:pt(a.args[0])}))}),xt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=pt(a.args[0]).map(b=>{var E;return b.type!=="first"&&(b.type="mord",b.value=(E={"\u2217":"*","\u2212":"-"}[b.value])!=null?E:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new xr(Me(xe({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=xr.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return a.caret&&(E.caret=a.caret),new li(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[ss(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)),oo(b)}}),xt(["char","unicode"],"{charcode:value}",{createAtom:a=>new xr(Me(xe({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${As((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)}}),xt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new xr(a),render:(a,y)=>{var b,E,ee;const re=new wo({parent:y,mathstyle:"textstyle"},a.style),oe=re.toEm((b=a.args[0])!=null?b:{dimension:0}),me=re.toEm((E=a.args[1])!=null?E:{dimension:10}),ve=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),Ee=new li(null,{classes:"rule",type:"ord"});return Ee.width=me,Ee.height=ve+oe,Ee.depth=-oe,Ee.setStyle("border-right-width",me,"em"),Ee.setStyle("border-top-width",ve,"em"),Ee.setStyle("border-color",a.style.color),Ee.setStyle("vertical-align",oe,"em"),a.isSelected&&Ee.setStyle("opacity","50%"),a.bind(re,Ee),a.caret&&(Ee.caret=a.caret),Ee.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${As(a.args[0])}]`:""}{${As(a.args[1])}}{${As(a.args[2])}}`}),xt(["overline","underline"],"{:auto}",{createAtom:a=>new xr(Me(xe({},a),{body:pt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new wo({parent:y,mathstyle:"cramp"},a.style),ee=xr.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,oe=new li(null,{classes:b+"-line"});oe.height=re,oe.maxFontSize=re*1.125*E.scalingFactor;let me;return b==="overline"?me=new qo({shift:0,children:[{box:ee},3*re,{box:oe},re]}):me=new qo({top:ee.height,children:[re,{box:oe},3*re,{box:ee}]}),a.caret&&(me.caret=a.caret),new li(me,{classes:b,type:"ignore"})}}),xt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=pt(a.args[1]);return new Xu(Me(xe({},a),{above:pt(a.args[0]),body:y,skipBoundary:!1,boxType:Wu(y)}))},serialize:(a,y)=>ss(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),xt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=pt(a.args[1]);return new Xu(Me(xe({},a),{below:pt(a.args[0]),body:y,skipBoundary:!1,boxType:Wu(y)}))},serialize:(a,y)=>ss(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),xt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=pt(a.args[2]);return new Xu(Me(xe({},a),{above:pt(a.args[0]),below:pt(a.args[1]),body:y,skipBoundary:!1,boxType:Wu(y)}))},serialize:(a,y)=>ss(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),xt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Xu(Me(xe({},a),{body:pt(a.args[2]),above:pt(a.args[1]),below:pt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>ss(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),xt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new qd(Me(xe({},a),{body:pt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ee=(E=a.args[0])==null?void 0:E.includes("b"))!=null?ee:!0}))}}),xt(["vphantom"],"{:auto}",{createAtom:a=>new qd(Me(xe({},a),{body:pt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),xt(["hphantom"],"{:auto}",{createAtom:a=>new qd(Me(xe({},a),{body:pt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),xt(["phantom"],"{:auto}",{createAtom:a=>new qd(Me(xe({},a),{body:pt(a.args[0]),isInvisible:!0}))}),xt("not","{:math}",{createAtom:a=>{const y=pt(a.args[0]);return y.length===0?new xr(Me(xe({},a),{type:"mrel",value:"\uE020"})):new xr(Me(xe({},a),{body:[new sd(Me(xe({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],E=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?E?`\\not{${xr.serialize(b.group,y)}}`:`\\not${xr.serialize(b,y)}`:E?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const E=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":Wu(pt(a.args[0])),ee=xr.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),xt(["ne","neq"],"",{createAtom:a=>new xr(Me(xe({},a),{type:"mrel",body:[new sd(Me(xe({},a),{body:"\uE020",align:"right",boxType:"rel"})),new xr(Me(xe({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),xt("rlap","{:auto}",{createAtom:a=>new sd(Me(xe({},a),{body:pt(a.args[0]),align:"right"}))}),xt("llap","{:auto}",{createAtom:a=>new sd(Me(xe({},a),{body:pt(a.args[0]),align:"left"}))}),xt("mathrlap","{:math}",{createAtom:a=>new sd(Me(xe({},a),{body:pt(a.args[0]),align:"left"}))}),xt("mathllap","{:math}",{createAtom:a=>new sd(Me(xe({},a),{body:pt(a.args[0]),align:"left"}))}),xt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new sl(Me(xe({},a),{body:pt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return ss("\\raisebox",(b=As(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),xt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new sl(Me(xe({},a),{body:pt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return ss("\\raise",(b=As(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),xt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new sl(Me(xe({},a),{body:pt(a.args[1]),padding:{dimension:0},offset:(y=jl(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return ss("\\lower",(E=As(jl((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Oe("0123456789/@.?!"),ut(65,90),ut(97,122),Oe([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Oe([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Oe([["\\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]]),Oe([["\\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"),Oe([["\\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"]]),Oe([["\\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"]]),Oe([["\\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"),Oe([["+",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"),Oe([["\\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"),Oe([["\\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]]),Oe([["=",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"),Oe([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Oe([["\\wp",8472],["\\aleph",8501]]),Oe([["\\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"),Oe([["\\ ",160],["~",160]],"space"),xt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new ef(a)}),xt("space","",{createAtom:a=>new ef(a)}),Oe([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Oe([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Oe([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>⁡</mo>",rh="<mo>⁢</mo>";function ih(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function xs(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,re,oe,me,ve,Ee,Ne,ht,Pt,qt;let dn=!1;y=y!=null?y:a.atoms.length;let er="",ci="",Qn=a.atoms[a.index];const kr=(ee=(E=Qn.style)==null?void 0:E.variant)!=null?ee:"",bi=(oe=(re=Qn.style)==null?void 0:re.variantStyle)!=null?oe:"";let zr="";if(kr||bi){const xa=on(Qn.value,(me=Qn.style)==null?void 0:me.variant,(ve=Qn.style)==null?void 0:ve.variantStyle);if(xa!==Qn.value)return a.index+=1,er=`<mi${xs(Qn.id,b)}>${xa}</mi>`,$c(er,a,b)||(a.mathML+=er,a.lastType="mi"),!0;zr=(Ee={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"}[bi+kr])!=null?Ee:"",zr=` mathvariant="${zr}"`}const na={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Qn.command==="!")return a.index+=1,er="<mo>!</mo>",$c(er,a,b)||(a.mathML+=er,a.lastType="mo"),!0;if(na[Qn.command]){a.index+=1;let xa=`<mi${xs(Qn.id,b)}${zr}>${na[Qn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(xa=rh+xa),$c(xa,a,b)||(a.mathML+=xa,a.lastType="mi"),!0}if(Qn.command==="\\operatorname")ci=Rd(Qn.body),a.index+=1;else if(kr||bi)for(;a.index<y&&(Qn.type==="mord"||Qn.type==="macro")&&!Qn.isDigit()&&kr===((ht=(Ne=Qn.style)==null?void 0:Ne.variant)!=null?ht:"")&&bi===((qt=(Pt=Qn.style)==null?void 0:Pt.variantStyle)!=null?qt:"");)ci+=Rd([Qn]),a.index+=1,Qn=a.atoms[a.index];else(Qn.type==="mord"||Qn.type==="macro")&&!Qn.isDigit()&&(ci+=Rd([Qn]),a.index+=1);if(ci.length>0){dn=!0,er=`<mi${zr}>${ci}</mi>`;const xa=a.lastType;er.endsWith(">f</mi>")||er.endsWith(">g</mi>")?(er+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(er)?"mo":"mi",$c(er,a,b)||((xa==="mi"||xa==="mn"||xa==="mtext"||xa==="fence")&&(er=rh+er),a.mathML+=er)}return dn}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kv(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const re=a.atoms[b];E=!re.isDigit(),ee=!E&&re.superscript!==void 0,b++}return ee&&(y=b-1),y}function $c(a,y,b){var E;let ee=y.atoms[y.index-1];if(!ee)return!1;if(!ee.superscript&&!ee.subscript)if(((E=y.atoms[y.index])==null?void 0:E.type)==="subsup")ee=y.atoms[y.index],y.index+=1;else return!1;const re=y.lastType;y.lastType="";const oe=ts(ee.superscript,b);y.lastType="";const me=ts(ee.subscript,b);if(y.lastType=re,!oe&&!me)return!1;let ve="";return oe&&me?ve=`<msubsup>${a}${me}${oe}</msubsup>`:oe?ve=`<msup>${a}${oe}</msup>`:me&&(ve=`<msub>${a}${me}</msub>`),y.mathML+=ve,y.lastType="",!0}function Dv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ee+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ee.length>0?(a.mathML+=`<mtext ${xs(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Av(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=kv(a);for(re>=0&&re<y&&(y=re);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+xs(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Mv(a)&&(re=a.index,a.index+=1),$c(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Pv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let oe=!1,me=0;const ve=a.index;let Ee=-1,Ne=ve+1;for(;Ne<y&&!oe;)a.atoms[Ne].type==="mopen"?me+=1:a.atoms[Ne].type==="mclose"&&(me-=1),me===-1&&(oe=!0,Ee=Ne),Ne+=1;oe&&(ee="<mrow>",ee+=yd(a.atoms[ve],b),ee+=ts(a.atoms,b,ve+1,Ee),ee+=yd(a.atoms[Ee],b),ee+="</mrow>",a.index=Ee+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=rh),$c(ee,a,b)&&(E=!0,a.lastType="",ee=""),re="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=re),E}function Lv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";const oe=a.atoms[a.index];if(!oe)return!1;const me={"\\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(me[oe.command]){a.index+=1;const ve=`<mo${xs(oe.id,b)}>${me[oe.command]}</mo>`;return $c(ve,a,b)||(a.mathML+=ve,a.lastType="mo"),!0}if(a.index<y&&(oe.type==="mbin"||oe.type==="mrel"))ee+=Zh(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(oe.type==="mop"||oe.type==="operator"||oe.type==="extensible-symbol")){if(oe.subsupPlacement==="over-under"&&(oe.superscript||oe.subscript)){const ve=yd(oe,b);return oe.superscript&&oe.subscript?(ee+="<munderover>"+ve,ee+=ts(oe.subscript,b),ee+=ts(oe.superscript,b),ee+="</munderover>"):oe.superscript?(ee+="<mover>"+ve,ee+=ts(oe.superscript,b),ee+="</mover>"):oe.subscript&&(ee+="<munder>"+ve,ee+=ts(oe.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const ve=a.atoms[a.index],Ee=ve.value==="\\operatorname",Ne=Ee?'<mi class="MathML-Unit"'+xs(ve.id,b)+">"+Rd(ve.value)+"</mi>":yd(ve,b);ee+=Ne,!Ee&&!/^<mo>(.*)<\/mo>$/.test(Ne)?(ee+=lp,re="applyfunction"):re=Ee?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=rh+ee),a.index+=1}return ee.length>0&&(E=!0,$c(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function ts(a,y,b,E){y!=null||(y={});const ee={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ee.mathML=a.toString();else if(typeof a=="string")ee.mathML=a;else if(a instanceof xr)ee.mathML=Zh(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index<E;)if(Dv(ee,E,y)||Av(ee,E,y)||Ev(ee,E,y)||Lv(ee,E,y)||Pv(ee,E,y))re+=1;else if(ee.index<E){let oe=Zh(ee.atoms[ee.index],y);ee.lastType==="mn"&&oe.length>0&&ee.atoms[ee.index].type==="genfrac"&&(oe="<mo>⁤</mo>"+oe),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,$c(oe,ee,y)?re+=1:oe.length>0&&(ee.mathML+=oe,re+=1)}re>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function yd(a,y){let b="";const E=Rd(a.value);return E&&(b="<mo"+xs(a.id,y)+">"+E+"</mo>"),b}function Rd(a){if(!a)return"";if(typeof a=="string")return ih(a);if(!Array.isArray(a)&&typeof a.body=="string")return ih(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return ih(y)}function Zh(a,y){var b,E,ee,re,oe,me,ve,Ee,Ne,ht,Pt,qt,dn,er,ci,Qn,kr,bi,zr,na,xa,pa;if(a.mode==="text")return`<mi${xs(a.id,y)}>${a.value}</mi>`;const To={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"},fs={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Mi="",$u="",Ec,Ju,Il,Ku,Mu,ws;const{command:ul}=a;if(a.command==="\\error")return`<merror${xs(a.id,y)}>${ts(a.body,y)}</merror>`;const Tl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Mc={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":Mi=ts(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Mi+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Mi+="<mo>"+(Tl[a.leftDelim]||a.leftDelim)+"</mo>")),Mi+="<mtable",a.colFormat){for(Mi+=' columnalign="',Il=0;Il<a.colFormat.length;Il++)a.colFormat[Il].align&&(Mi+={l:"left",c:"center",r:"right"}[a.colFormat[Il].align]+" ");Mi+='"'}for(Mi+=">",Ju=0;Ju<a.array.length;Ju++){for(Mi+="<mtr>",Ec=0;Ec<a.array[Ju].length;Ec++)Mi+="<mtd>"+ts(a.array[Ju][Ec],y)+"</mtd>";Mi+="</mtr>"}Mi+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Mi+="<mo>"+(Tl[a.leftDelim]||a.rightDelim)+"</mo>"),Mi+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Mi+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Mi+="<mo"+xs(a.id,y)+">"+(Tl[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Mi+="<mfrac>",Mi+=ts(a.above,y)||"<mi> </mi>",Mi+=ts(a.below,y)||"<mi> </mi>",Mi+="</mfrac>"):(Mi+="<mtable"+xs(a.id,y)+">",Mi+="<mtr>"+ts(a.above,y)+"</mtr>",Mi+="<mtr>"+ts(a.below,y)+"</mtr>",Mi+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Mi+="<mo"+xs(a.id,y)+">"+(Tl[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Mi+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Mi+="<msqrt"+xs(a.id,y)+">",Mi+=ts(a.body,y),Mi+="</msqrt>"):(Mi+="<mroot"+xs(a.id,y)+">",Mi+=ts(a.body,y),Mi+=ts(a.above,y),Mi+="</mroot>");break;case"leftright":const kc=a,Dc=kc.leftDelim;Mi="<mrow>",Dc&&Dc!=="."&&(Mi+=`<mo${xs(a.id,y)}>${(b=Tl[Dc])!=null?b:Dc}</mo>`),a.body&&(Mi+=ts(a.body,y));const Ac=kc.matchingRightDelim();Ac&&Ac!=="."&&(Mi+=`<mo${xs(a.id,y)}>${(E=Tl[Ac])!=null?E:Ac}</mo>`),Mi+="</mrow>";break;case"sizeddelim":case"delim":Mi+=`<mo${xs(a.id,y)}>${Tl[a.value]||a.value}</mo>`;break;case"accent":Mi+='<mover accent="true"'+xs(a.id,y)+">",Mi+=ts(a.body,y),Mi+="<mo>"+(Mc[ul]||a.accent)+"</mo>",Mi+="</mover>";break;case"line":case"overlap":break;case"overunder":Mu=a.above,Ku=a.below,(a.svgAbove||Mu)&&(a.svgBelow||Ku)?ws=a.body:Mu&&Mu.length>0?(ws=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(Ku=a.body[0].below,ws=a.body[0].body):((me=(oe=a.body)==null?void 0:oe[0])==null?void 0:me.type)==="first"&&((Ee=(ve=a.body)==null?void 0:ve[1])!=null&&Ee.below)&&(Ku=a.body[1].below,ws=a.body[1].body)):Ku&&Ku.length>0&&(ws=a.body,(ht=(Ne=a.body)==null?void 0:Ne[0])!=null&&ht.above?(Mu=a.body[0].above,ws=a.body[0].body):((qt=(Pt=a.body)==null?void 0:Pt[0])==null?void 0:qt.type)==="first"&&((er=(dn=a.body)==null?void 0:dn[1])!=null&&er.above)&&(Mu=a.body[1].overscript,ws=a.body[1].body)),(a.svgAbove||Mu)&&(a.svgBelow||Ku)?(Mi+=`<munderover ${xs(a.id,y)}>`,Mi+=(ci=To[a.svgBody])!=null?ci:ts(ws,y),Mi+=(Qn=To[a.svgBelow])!=null?Qn:ts(Ku,y),Mi+=(kr=To[a.svgAbove])!=null?kr:ts(Mu,y),Mi+="</munderover>"):a.svgAbove||Mu?(Mi+=`<mover ${xs(a.id,y)}>`+((bi=To[a.svgBody])!=null?bi:ts(ws,y)),Mi+=(zr=To[a.svgAbove])!=null?zr:ts(Mu,y),Mi+="</mover>"):(a.svgBelow||Ku)&&(Mi+=`<munder ${xs(a.id,y)}>`+((na=To[a.svgBody])!=null?na:ts(ws,y)),Mi+=(xa=To[a.svgBelow])!=null?xa:ts(Ku,y),Mi+="</munder>");break;case"placeholder":Mi+="?";break;case"mord":{Mi=typeof a.value=="string"?a.value:ul,ul==="\\char"?Mi="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Mi.length>0&&Mi.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Mi="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Mi=a.value.charAt(0):(console.error("Did not expect this"),Mi=""));const sc=/\d/.test(Mi)?"mn":"mi";Mi=`<${sc}${xs(a.id,y)}>${ih(Mi)}</${sc}>`;break}case"mbin":case"mrel":case"minner":Mi=yd(a,y);break;case"mpunct":Mi='<mo separator="true"'+xs(a.id,y)+">"+ul+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Mi="<mo"+xs(a.id,y)+">",Mi+=ul==="\\operatorname"?a.body:ul||a.body,Mi+="</mo>");break;case"box":Mi='<menclose notation="box"',a.backgroundcolor&&(Mi+=' mathbackground="'+a.backgroundcolor+'"'),Mi+=xs(a.id,y)+">"+ts(a.body,y)+"</menclose>";break;case"spacing":Mi+='<mspace width="'+((pa=fs[ul])!=null?pa:0)+'em"/>';break;case"enclose":Mi='<menclose notation="';for(const sc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,sc)&&a.notation[sc]&&(Mi+=$u+sc,$u=" ");Mi+=xs(a.id,y)+'">'+ts(a.body,y)+"</menclose>";break;case"prompt":Mi='<menclose notation="roundexbox""">'+ts(a.body,y)+"</menclose>";break;case"space":Mi+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Mi+=yd(a,y);break;case"mclose":Mi+=yd(a,y);break;case"macro":{const sc=a.command+Rd(a.macroArgs);sc&&(Mi+=`<mo ${xs(a.id,y)}>${sc}</mo>`)}break;case"latexgroup":Mi+=ts(a.body,y);break;case"latex":Mi+="<mtext"+xs(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Mi+=ts(a.body,y);break;case"text":Mi+=`<mtext ${xs(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${xs(a.id,y)} displaystyle="true">${ts(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${xs(a.id,y)} displaystyle="false">${ts(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Mi}var _d={"\\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"},Wh={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 Bv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function gf(a){let y=0;if(Pe(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Iv(a){if(Pe(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(Pe(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Tv(a){return a?a.map(y=>y.value).join(""):""}function ko(a,y){var b,E,ee,re,oe;function me(Ne){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Ne)?` <say-as interpret-as="character">${Ne}</say-as>`:/[A-Z]/.test(Ne)?`capital <say-as interpret-as="character">${Ne.toLowerCase()}</say-as>`:Ne:/[a-z]/.test(Ne)?" '"+Ne.toUpperCase()+"'":/[A-Z]/.test(Ne)?" 'capital "+Ne.toUpperCase()+"'":Ne}function ve(Ne){return"<emphasis>"+Ne+"</emphasis>"}if(!y)return"";let Ee="";if(Pe(y)){let Ne=!1,ht=!1;for(let Pt=0;Pt<y.length;Pt++)y[Pt].type!=="first"&&(y[Pt].mode!=="text"&&(ht=!1),Pt<y.length-2&&y[Pt].type==="mopen"&&y[Pt+2].type==="mclose"&&y[Pt+1].type==="mord"?(Ee+=" of ",Ee+=ve(ko(a,y[Pt+1])),Pt+=2):y[Pt].mode==="text"?ht?Ee+=(b=y[Pt].value)!=null?b:" ":(ht=!0,Ee+=ko("text",y[Pt])):y[Pt].isDigit()?Ne?Ee+=y[Pt].asDigit():(Ne=!0,Ee+=ko(a,y[Pt])):(Ne=!1,Ee+=ko(a,y[Pt])))}else if(y.mode==="text")y.id&&a==="math"&&(Ee+='<mark name="'+y.id.toString()+'"/>'),Ee+=y.value;else{y.id&&a==="math"&&(Ee+='<mark name="'+y.id.toString()+'"/>');let Ne="",ht="",Pt="",qt=!1;const{command:dn}=y;switch(dn){case"\\vec":return"vector "+ko(a,y.body);case"\\acute":return ko(a,y.body)+" acute";case"\\grave":return ko(a,y.body)+" grave";case"\\dot":return"dot over"+ko(a,y.body);case"\\ddot":return"double dot over"+ko(a,y.body);case"\\mathring":return"ring over"+ko(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+ko(a,y.body);case"\\bar":return ko(a,y.body)+" bar";case"\\breve":return ko(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+ko(a,y.body);case"\\hat":case"\\widehat":return"hat over"+ko(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+ko(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+ko(a,y.body)}switch(y.type){case"prompt":const er=y.body.length>1?'start input . <break time="500ms"/> '+ko(a,y.body)+'. <break time="500ms"/> end input':"blank";Ee+=' <break time="300ms"/> '+er+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const ci=y.array,Qn=y.environmentName;if(Object.keys(Wh).includes(Qn)){Ee+=` begin ${Wh[Qn]} `;for(let zr=0;zr<ci.length;zr++){zr>0&&(Ee+=","),Ee+=` row ${zr+1} `;for(let na=0;na<ci[zr].length;na++)na>0&&(Ee+=","),Ee+=` column ${na+1}: `,Ee+=ko("math",ci[zr][na])}Ee+=` end ${Wh[Qn]} `}break;case"group":dn==="\\ne"?Ee+=" not equal ":(dn==="\\not"&&(Ee+=" not "),Ee+=ko("math",y.body));break;case"root":Ee+=ko("math",y.body);break;case"genfrac":if(Ne=ko("math",y.above),ht=ko("math",y.below),gf(y.above)&&gf(y.below)){const na={"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 "}[up(y.above)+"/"+up(y.below)];na?Ee=na:Ee+=Ne+" over "+ht}else Ee+=' the fraction <break time="150ms"/>'+Ne+' over <break time="150ms"/>'+ht+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Pt=ko("math",y.body),y.hasEmptyBranch("above"))Ee+=gf(y.body)?" the square root of "+Pt+" , ":' the square root of <break time="200ms"/>'+Pt+'. <break time="200ms"/> End square root';else{let zr=ko("math",y.above);zr=zr.trim();const na=zr.replace(/<mark([^/]*)\/>/g,"");na==="3"?Ee+=' the cube root of <break time="200ms"/>'+Pt+'. <break time="200ms"/> End cube root':na==="n"?Ee+=' the nth root of <break time="200ms"/>'+Pt+'. <break time="200ms"/> End root':Ee+=' the root with index: <break time="200ms"/>'+zr+', of <break time="200ms"/>'+Pt+'. <break time="200ms"/> End root'}break;case"leftright":{const zr=y;Ee+=(ee=zr.leftDelim?_d[zr.leftDelim]:void 0)!=null?ee:zr.leftDelim,Ee+=ko("math",y.body),Ee+=(re=zr.rightDelim?_d[zr.rightDelim]:void 0)!=null?re:zr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const kr=dn.replace(/^\\/g,""),bi=cn()[kr];bi&&(bi!=null&&bi.expand?Ee+=ko("math",y.body):Ee+=`${kr} `);break;case"placeholder":Ee+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(dn==="\\mathbin"||dn==="\\mathrel"||dn==="\\mathopen"||dn==="\\mathclose"||dn==="\\mathpunct"||dn==="\\mathord"||dn==="\\mathinner"){Ee=ko(a,y.body);break}let zr=y.isDigit()?y.asDigit():y.value,na=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(na=y.value,zr=na),a==="text")Ee+=zr;else{if(y.type==="mbin"&&(Ee+='<break time="150ms"/>'),zr){const xa=_d[zr]||(na?_d[na.trim()]:"");if(xa)Ee+=" "+xa;else{const pa=na?Bv(na.trim()):"";Ee+=pa||me(zr)}}else Ee+=ko("math",y.body);y.type==="mbin"&&(Ee+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const zr=y.command;if(zr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let na=ko("math",y.superscript);na=na.trim();let xa=ko("math",y.subscript);xa=xa.trim(),Ee+=' the summation from <break time="200ms"/>'+xa+'<break time="200ms"/> to <break time="200ms"/>'+na+'<break time="200ms"/> of <break time="150ms"/>',qt=!0}else if(y.hasEmptyBranch("subscript"))Ee+=" the summation of";else{let na=ko("math",y.subscript);na=na.trim(),Ee+=' the summation from <break time="200ms"/>'+na+'<break time="200ms"/> of <break time="150ms"/>',qt=!0}else if(zr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let na=ko("math",y.superscript);na=na.trim();let xa=ko("math",y.subscript);xa=xa.trim(),Ee+=' the product from <break time="200ms"/>'+xa+'<break time="200ms"/> to <break time="200ms"/>'+na+'<break time="200ms"/> of <break time="150ms"/>',qt=!0}else if(y.hasEmptyBranch("subscript"))Ee+=" the product of ";else{let na=ko("math",y.subscript);na=na.trim(),Ee+=' the product from <break time="200ms"/>'+na+'<break time="200ms"/> of <break time="150ms"/>',qt=!0}else if(zr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let na=ko("math",y.superscript);na=na.trim();let xa=ko("math",y.subscript);xa=xa.trim(),Ee+=' the integral from <break time="200ms"/>'+ve(xa)+'<break time="200ms"/> to <break time="200ms"/>'+ve(na)+' <break time="200ms"/> of ',qt=!0}else Ee+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const na=(oe=_d[y.value])!=null?oe:y.command?_d[y.command]:void 0;Ee+=na||" "+y.value}else y.command&&(y.command==="\\mathop"?Ee+=ko("math",y.body):y.command==="\\operatorname"?Ee+=Tv(y.body):Ee+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Pt=ko("math",y.body),Ee+=" crossed out "+Pt+". End crossed out.";break;case"space":case"spacing":break}if(!qt&&!y.hasEmptyBranch("superscript")){let er=ko(a,y.superscript);er=er.trim();const ci=er.replace(/<[^>]*>/g,"");if(gf(y.superscript)){if(a==="math"){const Qn=Iv(y.superscript);Qn&&(Ee+='<mark name="'+Qn+'"/>')}ci==="\u2032"?Ee+=" prime ":ci==="2"?Ee+=" squared ":ci==="3"?Ee+=" cubed ":Number.isNaN(Number.parseInt(ci))?Ee+=" to the "+er+"; ":Ee+=' to the <say-as interpret-as="ordinal">'+ci+"</say-as> power; "}else Number.isNaN(Number.parseInt(ci))?Ee+=" raised to the "+er+"; ":Ee+=' raised to the <say-as interpret-as="ordinal">'+ci+"</say-as> power; "}if(!qt&&!y.hasEmptyBranch("subscript")){let er=ko("math",y.subscript);er=er.trim(),Ee+=gf(y.subscript)?" sub "+er:" subscript "+er+". End subscript. "}}return Ee}function Fd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=ts(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=Me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=Me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=Me(xe({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const re=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&re.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let oe="";try{oe=re.toSpeech(ee)}catch(me){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",me)}return oe}return""}let E=ko("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ee="";window.MathfieldElement.speechEngineRate&&(ee='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),E='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ee+"<p><s>"+E+"</s></p>"+(ee?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&yt()==="macos"?E=E.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,""):E=E.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return E}var vf={"\\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"},yf={"\\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 Ov(a){let y="";for(const b of a){const E=y[y.length-1];E!==void 0&&/\d/.test(E)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function ll(a){var y,b,E,ee,re,oe,me,ve,Ee,Ne,ht,Pt,qt;if(!a)return"";if(Pe(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(ll).join("");if(a[0].mode==="text"){let bi=0,zr="";for(;((y=a[bi])==null?void 0:y.mode)==="text";)zr+=a[bi].body?ll(a[bi].body):a[bi].value,bi++;return`"${zr}" ${ll(a.slice(bi))}`}let Qn=0;const kr=[];for(;a[Qn]&&a[Qn].mode==="math";){let bi="";for(;a[Qn]&&a[Qn].type==="mord"&&/\d/.test(a[Qn].value);)bi+=a[Qn++].value;bi?kr.push(bi):kr.push(ll(a[Qn++]))}return kr.push(ll(a.slice(Qn))),Ov(kr)}if(a.mode==="text")return`"${a.value}"`;let dn="";const{command:er}=a;let ci;if(er==="\\placeholder")return`(${ll(a.body)})`;switch(a.type){case"accent":const Qn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[er];dn=`${Qn!=null?Qn:""} ${ll(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(pa=>pa.value).join("");case"group":case"root":dn=(b=vf[er])!=null?b:ll(a.body);break;case"genfrac":{const pa=a;(pa.leftDelim||pa.rightDelim)&&(dn=pa.leftDelim==="."||!pa.leftDelim?"{:":pa.leftDelim),pa.hasBarLine?(dn+="(",dn+=ll(pa.above),dn+=")/(",dn+=ll(pa.below),dn+=")"):(dn+="("+ll(pa.above)+"),",dn+="("+ll(pa.below)+")"),(pa.leftDelim||pa.rightDelim)&&(dn+=pa.rightDelim==="."||!pa.rightDelim?"{:":pa.rightDelim)}break;case"surd":dn+=a.hasEmptyBranch("above")?"sqrt("+ll(a.body)+")":"root("+ll(a.above)+")("+ll(a.body)+")";break;case"latex":dn=a.value;break;case"leftright":{const pa=a,To=pa.leftDelim;dn+=To==="."||!To?"{:":To,dn+=ll(pa.body);const fs=pa.matchingRightDelim();dn+=fs==="."||!fs?":}":fs}break;case"sizeddelim":case"delim":dn=a.value;break;case"overlap":break;case"overunder":break;case"mord":dn=(ee=(E=vf[er])!=null?E:er)!=null?ee:typeof a.value=="string"?a.value:"",dn.startsWith("\\")&&(dn+=" "),ci=er?er.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,ci?dn=String.fromCodePoint(Number.parseInt("0x"+ci[1])):dn.length>0&&dn.startsWith("\\")&&(dn=typeof a.value=="string"?a.value.charAt(0):a.command),dn=Nv(dn,a.style);break;case"mbin":case"mrel":case"minner":dn=(oe=(re=vf[er])!=null?re:yf[er])!=null?oe:a.value;break;case"mopen":case"mclose":dn=a.value;break;case"mpunct":dn=(me=yf[er])!=null?me:er;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(yf[er]?dn=yf[er]:dn=er==="\\operatorname"?ll(a.body):(ve=a.value)!=null?ve:er,dn+=" ");break;case"array":const kr=a.array,bi=a.environmentName,zr=(Ee={bmatrix:["[","]"],"bmatrix*":["[","]"]}[bi])!=null?Ee:["(",")"],na=[];for(const pa of kr){const To=[];for(const fs of pa)To.push(zr[0]+ll(fs)+zr[1]);na.push(To.join(","))}const xa=(Ne={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[bi])!=null?Ne:["(",")"];dn=xa[0]+na.join(",")+xa[1];break;case"box":break;case"spacing":dn=(ht=vf[er])!=null?ht:" ";break;case"enclose":dn="("+ll(a.body)+")";break;case"space":dn=" ";break;case"subsup":dn="";break;case"macro":dn=(qt=(Pt=vf[er])!=null?Pt:yf[er])!=null?qt:ll(a.body);break}if(!a.hasEmptyBranch("subscript")){dn+="_";const Qn=ll(a.subscript);dn+=Qn.length!==1?`(${Qn})`:Qn}if(!a.hasEmptyBranch("superscript")){dn+="^";const Qn=ll(a.superscript);dn+=Qn.length!==1?`(${Qn})`:Qn}return dn}function Nv(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 Bl(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new wo({from:Me(xe({},jc()),{renderPlaceholder:()=>new li(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),oe=new xr({mode:"math",type:"root",body:Ll(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return oe?(ju(tf(oe,ee)),fc(oe,{classes:"ML__latex"}).toMarkup()):""}function D1(a){return t0(a,{context:jc()})}function Rv(a,y={}){return ts(Ll(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function _v(a){const y=Ll(a,{parseMode:"math",mathstyle:"displaystyle"});return Fd(y)}var ah;function Fv(a){var y,b;if(!ah){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?ah=new E: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=ah==null?void 0:ah.box(a).latex)!=null?b:""}function A1(a,y="math"){return ll(new xr({type:"root",body:Ll(a,{parseMode:y})}))}function P1(a){return oa(a,{format:"ascii-math"})[1]}function jh(a){if(typeof a=="string"){const y=zv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Kv(a):"a"in a?cp(a):a}function zd(a){return a<0?0:a>255?255:Math.round(a)}function zv(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 Vh(a){const[y,b,E]=[a.L,a.C,a.H],ee=E*Math.PI/180,re={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(re.alpha=a.alpha),re}function $v(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),oe=Math.atan2(E,b)*180/Math.PI,me={L:y,C:ee,H:oe};return a.alpha!==void 0&&(me.alpha=a.alpha),me}function Uh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),re=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),oe=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),me=4.076741661347994*ee-3.307711590408193*re+.230969928729428*oe,ve=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*oe,Ee=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*oe,Ne=ht=>{const Pt=Math.abs(ht);return Pt<=.0031308?ht*12.92:(Math.sign(ht)||1)*(1.055*Math.pow(Pt,1/2.4)-.055)};return[Ne(me),Ne(ve),Ne(Ee)]}function Gh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Yh(a,y){let[b,E,ee]=a;return b=zd(b*255),E=zd(E*255),ee=zd(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function cp(a){let[y,b,E]=Uh(a);if(Gh([y,b,E]))return Yh([y,b,E],a.alpha);const ee=$v(a);if(ee.C=0,[y,b,E]=Uh(Vh(ee)),!Gh([y,b,E]))return Yh([y,b,E],a.alpha);let re=0,oe=a.L,me=(re+oe)/2;ee.C=me;const ve=.36/Math.pow(2,12);for(;oe-re>ve;)me=(re+oe)/2,ee.C=me,[y,b,E]=Uh(Vh(ee)),Gh([y,b,E])?re=me:oe=me;return Yh([y,b,E],a.alpha)}function Kv(a){return cp(Vh(a))}function dp(a,y){const b=jh(a),E=jh(y),ee=.56,re=.57,oe=.62,me=.65,ve=.022,Ee=1.414,Ne=.1,ht=5e-4,Pt=1.14,qt=.027,dn=1.14,er=.027;function ci(pa){return pa>=ve?pa:pa+Pc(ve-pa,Ee)}function Qn(pa){return(pa<0?-1:1)*Math.pow(Math.abs(pa),2.4)}const kr=ci(Qn(E.r/255)*.2126729+Qn(E.g/255)*.7151522+Qn(E.b/255)*.072175),bi=ci(Qn(b.r/255)*.2126729+Qn(b.g/255)*.7151522+Qn(b.b/255)*.072175);let zr,na,xa;return Math.abs(bi-kr)<ht?na=0:bi>kr?(zr=Pc(bi,ee)-Pc(kr,re),na=zr*Pt):(zr=Pc(bi,me)-Pc(kr,oe),na=zr*dn),Math.abs(na)<Ne?xa=0:na>0?xa=na-er:xa=na+qt,xa*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ee=dp(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Hv(a){const y=jh(a);let b=((1<<24)+(zd(y.r)<<16)+(zd(y.g)<<8)+zd(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 Ts(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Zv(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function Wv(a,y){return Ts(a).length>0}function jv(a){return[Xh(a,"double-struck","mathbb","tooltip.blackboard"),Xh(a,"fraktur","mathfrak","tooltip.fraktur"),Xh(a,"calligraphic","mathcal","tooltip.caligraphic"),Qh(a,"up","mathrm","tooltip.roman-upright"),Qh(a,"bold","mathbf","tooltip.bold"),Qh(a,"italic","mathit","tooltip.italic")]}function Vv(a){return[{label:()=>Bl(`\\vec{${Ts(a)}}`),visible:()=>Ts(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overrightarrow{${Ts(a)}}`),visible:()=>Ts(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overleftarrow{${Ts(a)}}`),visible:()=>Ts(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\dot{${Ts(a)}}`),visible:()=>Ts(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\ddot{${Ts(a)}}`),visible:()=>Ts(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\bar{${Ts(a)}}`),visible:()=>Ts(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overline{${Ts(a)}}`),visible:()=>Ts(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overgroup{${Ts(a)}}`),visible:()=>Ts(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overbrace{${Ts(a)}}`),visible:()=>Ts(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\underline{${Ts(a)}}`),visible:()=>Ts(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\undergroup{${Ts(a)}}`),visible:()=>Ts(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\underbrace{${Ts(a)}}`),visible:()=>Ts(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Uv(a){return[{label:()=>Bl(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Gv(a){const y=[];for(const b of Object.keys(je))y.push({class:(Hv(fp(je[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${je[b]} "></span>`,ariaLabel:()=>{var E;return(E=st(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({backgroundColor:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Yv(a){const y=[];for(const b of Object.keys(Xe))y.push({class:(fp(Xe[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Xe[b]} "></span>`,ariaLabel:()=>{var E;return(E=st(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({color:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Xv=class extends ep{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}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 Qv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,re)=>new Xv(ee,re,b,E),label:"\u2610",tooltip:()=>st("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function Jv(a){return[{label:()=>st("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>bd(a)},{label:()=>st("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>bd(a)},{label:()=>st("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>bd(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>st("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>bd(a)},{type:"divider"},{label:()=>st("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>bd(a)},{label:()=>st("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>bd(a)},{type:"divider"},{label:()=>st("menu.borders"),visible:()=>(qv(a)||bd(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>bf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>bf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>bf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>bf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>bf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>st("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Qv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>st("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>st("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Ad(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>st("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Ad(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>st("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>st("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:jv(a),submenuClass:"variant-submenu"},{label:()=>st("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>st("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Gv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>st("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>st("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Ts(a).length>0,submenu:Uv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>st("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(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:()=>st("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const E=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!E){a.model.announce("plonk");return}a.insert(`=${E.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!E){a.model.announce("plonk");return}a.insert(E.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?st("menu.solve-for",Bl(b)):st("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,E=b==null?void 0:b.unknowns[0],ee=(y=b.solve(E))==null?void 0:y.map(re=>{var oe;return(oe=re.simplify().latex)!=null?oe:""});if(!ee){a.model.announce("plonk");return}a.insert(`${E}=${ee.length===1?ee[0]:"\\left\\lbrace"+(ee==null?void 0:ee.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>st("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>st("menu.copy"),id:"copy",submenu:[{label:()=>st("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Va.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>st("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Va.copyToClipboard(a,"ascii-math")},{label:()=>st("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Va.copyToClipboard(a,"math-ml")}]},{label:()=>st("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>st("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function bd(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function qv(a){return a.model.at(a.model.position).type==="array"}function e1(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function bf(a,y){If(a),a.flushInlineShortcutBuffer(),I0(a.model,y),qs(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Xh(a,y,b,E){return{label:()=>Bl(`\\${b}{${Ts(a)}}`),tooltip:()=>{var ee;return(ee=st(E))!=null?ee:E},visible:()=>Zv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variant:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Qh(a,y,b,E){return{label:()=>Bl(`\\${b}{${Ts(a)}}`),tooltip:()=>{var ee;return(ee=st(E))!=null?ee:E},visible:()=>Wv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variantStyle:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function $d(a,y){return a+Fd(y)}Bu({speak:(a,y,b)=>n1(a,y,b)},{target:"mathfield"});function n1(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:re}=a;function oe(Ne){let ht=null;switch(Ne){case"all":ht=re.root;break;case"selection":ht=re.getAtoms(re.selection);break;case"left":{ht=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{ht=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":ht=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:Pt}=re.at(re.position);Pt!=null&&Pt.parent?ht=Pt:ht=re.root;break}default:ht=re.root}return ht}function me(Ne){let ht="";switch(Ne){case"all":console.log("Internal failure: speak all failed");break;case"selection":ht="no selection";break;case"left":ht="at start";break;case"right":ht="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":ht="no parent";break;default:console.log('unknown speak_ param value: "'+Ne+'"');break}return ht}const ve=oe(y);if(ve===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,me(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Ee=Fd(ve);return et()&&b.withHighlighting?(qc().readAloudMathfield=a,cd(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Ee)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Ee),!1}function r1(a){var y,b;if(!et()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const E=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(E)}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 E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={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"};E.synthesizeSpeech(ee,(re,oe)=>{if(re)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);else if(oe!=null&&oe.AudioStream){const me=new Uint8Array(oe.AudioStream),ve=new Blob([me.buffer],{type:"audio/mpeg"}),Ee=URL.createObjectURL(ve);new Audio(Ee).play().catch(ht=>console.log(ht))}else console.log("polly.synthesizeSpeech():",oe)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function pp(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 i1(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=$d("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=a1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+o1(a.model);else if(y==="replacement")ee=$d("",a.model.at(a.model.position));else if(y==="line"){const re=$d("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?$d(y+" ",E):y;if(ee){const re=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+re}}function a1(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const re=a.at(a.position).parent;for(;ee!==a.root&&ee!==re;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return $d("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=pp(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=$d("",b),y}var s1=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 E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ee={};if((y==null?void 0:y.type)==="undo"&&(ee={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ee={inputType:"historyRedo"}),this.contentWillChange(ee)){const re=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=Yc(a.content),this.selection=a.selection,this.silenceNotifications=re,this.contentDidChange(ee)}this.silenceNotifications=E}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,E,ee;const re=this.normalizeSelection(a,y);if(re===void 0)throw new TypeError("Invalid selection");if(re.ranges.length===1&&re.ranges[0][0]===re.ranges[0][1]){const Ne=re.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Ne))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Ne-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Ne-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Ne+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Ne+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=Ne,this._position=Ne,this._selection=re;return}const oe=yl(re);re.direction==="backward"?[this._position,this._anchor]=oe:[this._anchor,this._position]=oe;const me=this.at(oe[0]+1),ve=this.at(oe[1]),Ee=xr.commonAncestor(me,ve);(Ee==null?void 0:Ee.type)==="array"&&me.parent===Ee&&ve.parent===Ee?this._selection={ranges:[oe],direction:re.direction}:this._selection={ranges:[oe],direction:re.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 Rl&&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 E=y.parent.branch(y.parentBranch);return[this.offsetOf(E[0]),this.offsetOf(E[E.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 E=b!=null?b:{};if(mc(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Ee,Ne)=>[...Ee,...this.getAtoms(Ne,E)],[]);a=a.ranges[0]}let ee,re;if(Uu(a)){if(ee=a,!Uu(y))return[];re=y}else[ee,re]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),re<0&&(re=this.lastOffset-re+1);const oe=Math.min(ee,re)+1,me=Math.max(ee,re);if(!E.includeChildren&&oe===1&&me===this.lastOffset)return[this.root];let ve=[];for(let Ee=oe;Ee<=me;Ee++){const Ne=this.atoms[Ee];mp(this,Ne,oe,me)&&ve.push(Ne)}return E.includeChildren||(ve=ve.filter(Ee=>{let Ne=!1,{parent:ht}=Ee;for(;ht&&!Ne;)Ne=mp(this,ht,oe,me),ht=ht.parent;return!Ne})),ve}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ee=this.lastOffset;if(b==="forward"){for(let re=y;re<=ee;re++)if(E=this.atoms[re],a(E))return E;for(let re=0;re<y;re++)if(E=this.atoms[re],a(E))return E;return}for(let re=y;re>=0;re--)if(E=this.atoms[re],a(E))return E;for(let re=ee;re>y;re--)if(E=this.atoms[re],a(E))return E}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 xr({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 xr.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 ts(a);if(b==="spoken")return Fd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Fd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ee=Fd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?ll(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 E,ee;if(Uu(a)&&Uu(y)?(E=[this.normalizeRange([a,y])],ee=b):Nc(a)?(E=[this.normalizeRange(a)],ee=y):mc(a)?(E=a.ranges,ee=y):(E=[this.normalizeRange([0,-1])],ee=a),ee!=null||(ee="latex"),ee==="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 re=this.getValue({ranges:E},"latex-unstyled");try{const oe=window.MathfieldElement.computeEngine.parse(re);return JSON.stringify(oe.json)}catch(oe){return JSON.stringify(["Error",`'${oe.toString()}'`])}}if(ee.startsWith("latex")){const re={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return oo(E.map(oe=>xr.serialize(this.getAtoms(oe),re)))}return E.map(re=>this.getAtoms(re).map(oe=>this.atomToString(oe,ee)).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[E,ee]=b,{parent:re}=this.at(ee);if(re&&(re.type==="genfrac"||re.type==="subsup"))for(;re!==this.root&&Jh(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&Jh(this,re,[E,ee]);)E=this.offsetOf(re.leftSibling),re=re.parent;if(re=this.at(ee).parent,(re==null?void 0:re.type)==="genfrac")for(;re!==this.root&&Jh(this,re,[E,ee]);)ee=this.offsetOf(re),console.assert(ee>=0),re=re.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ee]],direction:"none"}})}announce(a,y,b=[]){var E,ee;((ee=(E=this.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0)&&i1(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,re=this.silenceNotifications;this.silenceNotifications=!0;const oe=this.root.changeCounter;y();const me=this.root.changeCounter!==oe,ve=E!==this._anchor||ee!==this._position||pc(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&me&&this.contentDidChange({inputType:a.type}),a.selection&&ve&&this.selectionDidChange(),me||ve}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 E;if(Uu(a)){const ee=this.normalizeOffset(a);if(Uu(y)){const re=this.normalizeOffset(y);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(Nc(a)){const ee=this.normalizeOffset(a[0]),re=this.normalizeOffset(a[1]);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else mc(a)&&(E={ranges:a.ranges.map(ee=>this.normalizeRange(ee)),direction:(b=a.direction)!=null?b:"none"});return console.assert(E!==void 0),E}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(wc(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",Me(xe({},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(wc(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function mp(a,y,b,E){const ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const re=a.offsetOf(y.firstChild);if(re>=b&&re<=E){const oe=a.offsetOf(y.lastChild);if(oe>=b&&oe<=E)return!0}return!1}function Jh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),oe=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&oe>=re&&oe<=ee}function xf(a,y,b,E){var ee,re,oe,me,ve,Ee;const Ne=b.parent;if(Ne&&b instanceof es){const ht=!E&&y==="forward"||E==="body"&&y==="backward";let Pt=ht?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return ht?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Ne.addChildrenAfter(b.removeBranch("body"),b),Ne.removeChild(b),Pt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Ne.addChildrenAfter(b.removeBranch("body"),b),Ne.removeChild(b),Pt--),a.position=Pt,!0}if(Ne&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const ht=b.leftSibling;b.hasChildren&&Ne.addChildrenAfter(b.removeBranch("body"),b),Ne.removeChild(b),a.position=a.offsetOf(ht)}else y==="forward"&&E==="body"?a.position=a.offsetOf(b):!E&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),Ne.removeChild(b)):E==="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(Ne&&(b.type==="box"||b.type==="enclose")){const ht=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Ne.addChildrenAfter(b.removeBranch("body"),b),Ne.removeChild(b),a.position=a.offsetOf(ht),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!E)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 ht=wf.fractionNavigationOrder==="numerator-denominator"?"above":"below",Pt=ht==="above"?"below":"above";if(Ne&&(y==="forward"&&E===ht||y==="backward"&&E===Pt)){const qt=b.removeBranch(ht),dn=b.removeBranch(Pt);return Ne.addChildrenAfter([...qt,...dn],b),Ne.removeChild(b),a.position=a.offsetOf(qt.length>0?qt[qt.length-1]:dn[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!E&&y==="forward")return!1;if(!E){if(b.subscript||b.superscript){const ht=y==="forward"?(oe=(ee=b.superscript)==null?void 0:ee[0])!=null?oe:(re=b.subscript)==null?void 0:re[0]:(Ee=(me=b.subscript)==null?void 0:me[0].lastSibling)!=null?Ee:(ve=b.superscript)==null?void 0:ve[0].lastSibling;return ht&&(a.position=a.offsetOf(ht)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const ht=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=ht,!0}if(E==="superscript")if(y==="backward"){const ht=a.offsetOf(b.firstChild)-1;console.assert(ht>=0),a.position=ht}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else E==="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(E&&b.hasEmptyBranch(E)&&(b.removeBranch(E),b.type==="subsup"&&!b.subscript&&!b.superscript)){const ht=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=ht}return!0}if((Ne==null?void 0:Ne.type)==="genfrac"&&!E&&b.type!=="first"){let ht=a.offsetOf(b.leftSibling);return Ne.removeChild(b),Ne.hasEmptyBranch("above")&&Ne.hasEmptyBranch("below")?(ht=a.offsetOf(Ne.leftSibling),Ne.parent.removeChild(Ne),a.announce("delete",void 0,[Ne]),a.position=ht,!0):(a.announce("delete",void 0,[b]),a.position=ht,!0)}if(y==="backward"&&((Ne==null?void 0:Ne.command)==="\\ln"||(Ne==null?void 0:Ne.command)==="\\log")&&b.parentBranch!=="body"){const ht=a.offsetOf(Ne.leftSibling);return Ne.parent.removeChild(Ne),a.announce("delete",void 0,[Ne]),a.position=ht,!0}return!1}function l1(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&&xf(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(xf(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])}}):Sc(a,yl(a.selection),"deleteContentBackward")}function u1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&xf(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&xf(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&xf(a,"forward",E.parent,E.parentBranch))return;E=void 0}if(a.position===a.lastOffset||!E){a.announce("plonk");return}E.parent.removeChild(E);let ee=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ee==null?void 0:ee.type)==="subsup";)ee.parent.removeChild(ee),ee=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[E])}):Sc(a,yl(a.selection),"deleteContentForward")}function Sc(a,y,b){const E=a.getAtoms(y);if(E.length>0&&E[0].parent){let ee=E[0].parent.firstChild;ee.type==="first"&&(ee=ee.rightSibling);const re=E[E.length-1].parent.lastChild;let oe=E[0];oe.type==="first"&&(oe=oe.rightSibling);const me=E[E.length-1];if(oe===ee&&me===re){const ve=E[0].parent;ve.parent&&ve.type!=="prompt"&&(y=[a.offsetOf(ve.leftSibling),a.offsetOf(ve)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const ve=E[0].parent,Ee=E[0].parentBranch==="below"?"above":"below",Ne=a.offsetOf(ve.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var ht,Pt;const qt=ve.removeBranch(Ee);if(qt.length===1&&qt[0].type==="placeholder")(Pt=ve.parent)==null||Pt.removeChild(ve),a.position=Math.max(0,Ne);else{const dn=ve.parent.addChildrenAfter(qt,ve);(ht=ve.parent)==null||ht.removeChild(ve),a.position=a.offsetOf(dn)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Bu({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Sc(a,[0,-1],"deleteContent"),deleteForward:a=>u1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Sc(a,[a.anchor,Dh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Sc(a,[a.anchor,Dh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Sc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Sc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Sc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Sc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var c1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${st("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>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${st("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>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=xe(Me(xe({},Zf()),{macros:cn(),registers:hu()}),Hf(y)),this.eventController=new AbortController;const re=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 oe=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";oe=oe.trim();const me=P0(this.options),ve=new xr({type:"root",mode:me,body:Ll(oe,{context:this.context})});this.model=new s1(this,me,ve),this.undoManager=new _g(this.model);const Ee=[];if(Ee.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>"),Ee.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Ee.push("<span part=content class=ML__content>"),Ee.push(w0(this)),Ee.push("</span>"),window.mathVirtualKeyboard&&(Ee.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">`),Ee.push(c1),Ee.push("</div>")),Ee.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Ee.push(d1),Ee.push("</div>"),Ee.push("</span>"),Ee.push("<span class=ML__sr-only>"),Ee.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Ee.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Ee.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=gt.subscribe(()=>gt.update(this.element)),gt.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",ht=>ht.stopImmediatePropagation(),{capture:!1,signal:re}),this.field.addEventListener("wheel",this,{passive:!1,signal:re}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:re}):this.field.addEventListener("mousedown",this,{signal:re}),(ee=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ee.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(wc(this)))},{signal:re}),this._menu=new Cv(Jv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const Ne=this.element.querySelector("[part=menu-toggle]");Ne==null||Ne.addEventListener("pointerdown",ht=>{if(ht.currentTarget!==Ne||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Pt=Ne.getBoundingClientRect();this._menu.modifiers=ud(ht),this._menu.show({target:Ne,location:{x:Pt.left,y:Pt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),ht.preventDefault(),ht.stopPropagation()},{signal:re}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Ne.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Hm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:re}),document.addEventListener("scroll",this,{signal:re}),this.resizeObserver=new ResizeObserver(()=>qs(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),af&&!gt.locale.startsWith(af.locale)&&Fm(gt.locale),zu!=="ready"&&document.fonts.ready.then(()=>_f(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(wc(this)),th(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Fh())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:gc(this.field))!=null?b:void 0,ee=a==null?void 0:a.modifiers,re=this.element.querySelector("[part=container]");return this._menu.show({target:re,location:E,modifiers:ee})}get colorMap(){return a=>{var y,b,E;return(E=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?E:mt(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,re,oe;return(oe=(re=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?re:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?oe:Le(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=xr.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=xe({},a[0].style);for(const b of a)for(const[E,ee]of Object.entries(b.style))y[E]!==ee&&delete y[E];return y}queryStyle(a){const y=Th(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 ve of Object.keys(y)){const Ee=this.queryStyle({[ve]:y[ve]});if(Ee==="none")return"none";if(Ee==="some")return"some"}return"all"}const E=Object.keys(y)[0],ee=y[E];if(this.model.selectionIsCollapsed)return this.effectiveStyle[E]===ee?"all":"none";const re=this.model.getAtoms(this.model.selection,{includeChildren:!0});let oe=re.length;if(oe===0)return"none";let me=0;for(const ve of re){if(ve.type==="first"){oe-=1;continue}ve.style[E]===ee&&(me+=1)}return me===0?"none":me===oe?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Um(this.options.keybindings,(a=of())!=null?a:zm());return((y=of())==null?void 0:y.score)>0&&(this._keybindings=b,E.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",E)),b}get menu(){return this._menu}setOptions(a){var y;this.options=xe(xe({},this.options),Hf(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 E=xr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&Va.insert(this.model,E,{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)&&qs(this)}getOptions(a){return fd(this.options,a)}getOption(a){return fd(this.options,a)}handleEvent(a){return ed(this,null,function*(){var y;if(Ru(this)){if(Sh(a)){if(!Xd(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 E=a.data.command;if(Ld(E)==="virtual-keyboard")return;this.executeCommand(E)}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"&&W0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(W0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Qf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Qf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&th(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ru(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ru(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Ru(this))return;gt.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,Gg(),qm(),mv()}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 Ld(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(wc(this))),!1):og(this,a)}get errors(){return t0(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=ad(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();Va.insert(this.model,a,y)&&(qs(this),E||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 E=window.mathVirtualKeyboard.boundingRect,ee=this.host.getBoundingClientRect();ee.bottom>E.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ee.bottom-E.top+8))}}this.dirty&&cd(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=gc(this.field);else{const E=Yd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const oe of E)oe.right>ee&&(ee=oe.right),oe.top<re&&(re=oe.top);b={x:ee+y.left-this.field.scrollLeft,y:re+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let re=this.host.scrollTop;ee<E.top?re=ee-E.top+this.host.scrollTop:ee>E.bottom&&(re=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:re,left:0})}if(b){const E=b.x-window.scrollX;let ee=this.field.scrollLeft;E<y.left?ee=E-y.left+this.field.scrollLeft-20:E>y.right&&(ee=E-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ee})}}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&&tt()&&navigator.vibrate(C0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?L0(this.model):a==="&"?B0(this.model):this.model.selectionIsCollapsed?Va.insert(this.model,a,xe({style:this.model.at(this.model.position).computedStyle},y)):Va.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),qs(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var E;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ee=this.model.mode;if(this.model.mode=a,!((E=this.host)!=null&&E.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ee;return}const re=this.model.mode,{model:oe}=this;oe.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let me=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ve=Ll(y,{context:this.context,parseMode:a});oe.collapseSelection("forward");const Ee=oe.at(oe.position);oe.position=oe.offsetOf(Ee.parent.addChildrenAfter(ve,Ee)),me=!0}if(this.model.mode=a,a==="latex"){let ve=oe.selectionIsCollapsed;Ad(this,"accept");let Ee,Ne=oe.at(oe.position);if(ve)Ee="\\";else{const Pt=yl(oe.selection);Ee=this.model.getValue(Pt,"latex");const qt=this.model.extractAtoms(Pt);qt.length===1&&qt[0].type==="placeholder"&&(Ee=y,ve=!0),Ne=oe.at(Pt[0])}const ht=new Jd(Ee);Ne.parent.addChildAfter(ht,Ne),ve?oe.position=oe.offsetOf(ht.lastChild):oe.setSelection(oe.offsetOf(ht.firstChild),oe.offsetOf(ht.lastChild))}else sf(oe).forEach(ve=>{ve.isError=!1});if(b){const ve=Ll(b,{context:this.context,parseMode:re});oe.collapseSelection("forward");const Ee=oe.at(oe.position);oe.position=oe.offsetOf(Ee.parent.addChildrenAfter(ve,Ee)),me=!0}return qs(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),me}),this.model.mode=a,window.mathVirtualKeyboard.update(wc(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,E;const ee={operation:"set",silenceNotifications:!1};Nc(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=Th(this,a),oe=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(oe==="set"){this.defaultStyle=xe(xe({},this.defaultStyle),re);return}const me=xe({},this.defaultStyle);for(const ve of Object.keys(re))me[ve]===re[ve]?(ve==="color"&&delete me.verbatimColor,ve==="backgroundColor"&&delete me.verbatimBackgroundColor,delete me[ve]):me[ve]=re[ve];this.defaultStyle=me;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const me of this.model.selection.ranges)Mh(this.model,me,re,{operation:oe});else Mh(this.model,ee.range,re,{operation:oe})}),qs(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=gc(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=mf(this,a,y,{bias:0});if(b<0)return!1;const E=this.model.position;return this.model.position=b,this.model.announce("move",E),qs(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 E=this.model.offsetOf(b.firstChild),ee=this.model.offsetOf(b.lastChild);return this.model.getValue(E,ee,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 E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ee=this.model.getBranchRange(this.model.offsetOf(E),"body");this.model.setSelection(ee),this.insert(y,Me(xe({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),qs(this)}setPromptState(a,y,b){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?E.correctness=void 0:typeof y=="string"&&(E.correctness=y),typeof b=="boolean"&&(E.locked=b,E.captureSelection=b),qs(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(wc(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(wc(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(wc(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 E=b.at(b.position),ee=(a=E.mode)!=null?a:P0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(Ad(this,"accept",{mode:ee}),b.position=b.offsetOf(E)):this.switchMode(ee))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(wc(this)),th(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",Me(xe({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?E:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),cd(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="",Pd(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})),qs(this),this.focusBlurInProgress=!1,Fh();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Ru(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Lh(this,a)}onKeystroke(a){return K0(this,a)}onCompositionStart(a){this.model.deleteAtoms(yl(this.model.selection));const y=gc(this.field);y&&requestAnimationFrame(()=>{cd(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Ag(this.model,a),qs(this)}onCompositionEnd(a){Pg(this.model),Lh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Va.onCopy(this,a),Sc(this.model,yl(this.model.selection),"deleteByCut"),this.snapshot("cut"),qs(this))}onCopy(a){Va.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Va.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(),Of(this),th(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=>Kt(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gp(y)}function qh(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(E=>{E instanceof HTMLElement&&qh(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E,y)})))}function h1(a,y){var b;if(!et())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 E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};qc().readAloudElement=a,E.synthesizeSpeech(ee,(re,oe)=>{if(re){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);return}if(!(oe!=null&&oe.AudioStream)){console.log("polly.synthesizeSpeech():",oe);return}const me=new TextDecoder("utf-8").decode(new Uint8Array(oe.AudioStream));qc().readAloudMarks=me.split(`
|
|
|
`).map(ve=>ve?JSON.parse(ve):{}),qc().readAloudTokens=[];for(const ve of qc().readAloudMarks)ve.value&&qc().readAloudTokens.push(ve.value);qc().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(ve,Ee)=>{if(ve){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ve}`);return}if(!(Ee!=null&&Ee.AudioStream))return;const Ne=new Uint8Array(Ee.AudioStream),ht=new Blob([Ne.buffer],{type:"audio/mpeg"}),Pt=URL.createObjectURL(ht),qt=qc();qt.readAloudAudio?qt.readAloudAudio.pause():(qt.readAloudAudio=new Audio,qt.readAloudAudio.addEventListener("ended",()=>{const dn=qt.readAloudMathfield;qt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),dn?(cd(dn),qt.readAloudElement=null,qt.readAloudMathfield=null,qt.readAloudTokens=[],qt.readAloudMarks=[],qt.readAloudCurrentMark=""):gp(qt.readAloudElement)}),qt.readAloudAudio.addEventListener("timeupdate",()=>{let dn="";const er=qt.readAloudAudio.currentTime*1e3+100;for(const ci of qt.readAloudMarks)ci.time<er&&(dn=ci.value);qt.readAloudCurrentMark!==dn&&(qt.readAloudCurrentToken=dn,dn&&dn===qt.readAloudFinalToken?qt.readAloudAudio.pause():(qt.readAloudCurrentMark=dn,qh(qt.readAloudElement,qt.readAloudCurrentMark)))})),qt.readAloudAudio.src=Pt,qt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),qt.readAloudAudio.play()})})}et()||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 Wo=new WeakMap,p1=.5,Jc={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 = ..."},_l=class xd extends HTMLElement{static get formAssociated(){return Kd()}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,ng())}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,E,ee;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:(E=y.return)!=null?E:y.default,delete:(ee=y.delete)!=null?ee: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 gt.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),gt.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 gt.strings}static set strings(y){gt.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 E=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!E)return null;this._computeEngine=new E,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 ed(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 E=this.soundsDirectory;if(!(E==null||E==="null"||b==="none"||b==="null"))try{const re=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),oe=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=oe}catch(ee){}})}static playSound(y){return ed(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 E=this.audioContext.createGain();E.gain.value=p1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(Jc[E])if(Jc[E].startsWith("mf."))if(Jc[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${Jc[E]}`);else{const ee=Jc[E].match(/([a-zA-Z]+) =/);b.push(`Option \`${E}\` has been renamed \`${ee[1]}\``)}else b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${Jc[E]}`);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 E of b)console.warn(E);console.groupEnd()}}if(Kd()&&(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=[Gc("core"),Gc("mathfield"),Gc("mathfield-element"),Gc("ui"),Gc("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>"+_c("core")+_c("mathfield")+_c("mathfield-element")+_c("ui")+_c("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(ee=>ee.nodeType===3?ee.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?E:!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 E,ee;return(ee=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ee:""}setPromptValue(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptValue(y,b,E)}getPromptRange(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?E:null}getPrompts(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?E:[]}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,E;if(!this._mathfield)return;const ee=(E=(b=xd.computeEngine)==null?void 0:b.box(y).latex)!=null?E:null;ee!==null&&this._mathfield.setValue(ee),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?fd(this._mathfield.options,y):Wo.has(this)?xe({},fd(xe(xe({},Zf()),Hf(Wo.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?fd(this._mathfield.options,y):Wo.has(this)?fd(xe(xe({},Zf()),Hf(Wo.get(this).options)),y):null}reflectAttributes(){const y=Zf(),b=this._getOptions();Object.keys(xd.optionsAttributes).forEach(E=>{const ee=Kc(E);xd.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(xd.optionsAttributes[E]==="boolean"?b[ee]?this.setAttribute(E,""):this.removeAttribute(E):(typeof b[ee]=="string"||typeof b[ee]=="number")&&this.setAttribute(E,b[ee].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(Wo.has(this)){const b=xe(xe({},Wo.get(this).options),y);Wo.set(this,Me(xe({},Wo.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Wo.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))Jc[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${Jc[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?E:!1}getValue(y,b,E){var ee,re;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(Wo.has(this)){let oe,me,ve;if(mc(y)?([oe,me]=y.ranges[0],ve=b):Nc(y)?([oe,me]=y,ve=b):Uu(y)&&Uu(b)?(oe=y,me=b,ve=E):(oe=0,me=-1,ve=y),(ve===void 0||ve==="latex")&&oe===0&&me===-1)return(re=(ee=Wo.get(this).value)!=null?ee:this.textContent)!=null?re:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Wo.has(this)){const ee=Wo.get(this).options;Wo.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=Cf(this);Wo.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:E,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 E,ee;return(ee=(E=this._mathfield)==null?void 0:E.insert(y,b))!=null?ee:!1}applyStyle(y,b){var E;return(E=this._mathfield)==null?void 0:E.applyStyle(y,b)}queryStyle(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?E:"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 E,ee;return(ee=(E=this._mathfield)==null?void 0:E.setCaretPoint(y,b))!=null?ee:!1}offsetFromPoint(y,b,E){return this._mathfield?mf(this._mathfield,y,b,E):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const E=Vc(this._mathfield,b);return E?new DOMRect(E.left,E.top,E.right-E.left,E.bottom-E.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,E,ee,re;yc.state==="closed"&&((E=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:E.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ee=this._mathfield)==null||ee.focus()),y.type==="blur"&&((re=this._mathfield)==null||re.blur()))}connectedCallback(){var y,b,E,ee;const re=window.getComputedStyle(this),oe=this.shadowRoot,me=re.userSelect!=="none";if(me)oe.host.addEventListener("pointerdown",this,!0);else{const Ne=oe.querySelector("span");Ne.style.pointerEvents="none"}oe.host.addEventListener("focus",this,!0),oe.host.addEventListener("blur",this,!0),Kd()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),me&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ve=oe.querySelector("slot:not([name])");if(ve)try{this._style=ve.assignedElements().filter(Ne=>Ne.tagName.toLowerCase()==="style").map(Ne=>Ne.textContent).join("")}catch(Ne){console.error(Ne)}if(this._style){const Ne=document.createElement("style");Ne.textContent=this._style,oe.appendChild(Ne)}let Ee="";if(this.hasAttribute("value")?Ee=this.getAttribute("value"):Ee=(y=ve==null?void 0:ve.assignedNodes().map(Ne=>Ne.nodeType===3?Ne.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(oe.querySelector(":host > span"),Me(xe({},(E=(b=Wo.get(this))==null?void 0:b.options)!=null?E:Cf(this)),{eventSink:this,value:Ee})),!Wo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Ne of Object.keys(xd.optionsAttributes))this.upgradeProperty(Kc(Ne))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(Wo.has(this)){const Ne=this._mathfield,ht=Wo.get(this),Pt=ht.menuItems;Ne.model.deferNotifications({content:!1,selection:!1},()=>{const qt=ht.value;qt!==void 0&&Ne.setValue(qt),Ne.model.selection=ht.selection,Wo.delete(this)}),Pt&&(this.menuItems=Pt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Rf()}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 E=fd(this._mathfield.options,Object.keys(xd.optionsAttributes).map(ee=>Kc(ee)));Wo.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:E}),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,E){if(b===E)return;const ee=E!==null;switch(y){case"contenteditable":qs(this._mathfield);break;case"disabled":this.disabled=ee;break;case"read-only":case"readonly":this.readOnly=ee;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),Kd()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Kd()?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 E=!!y;E?this.setAttribute("disabled",""):this.removeAttribute("disabled"),Kd()?this._internals.ariaDisabled=E?"true":"false":this.setAttribute("aria-disabled",E?"true":"false"),E&&((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,E)=>{if(typeof E=="string")return y._getOption("registers")[E]},set(b,E,ee){return typeof E!="string"?!1:(y._setOptions({registers:Me(xe({},y._getOption("registers")),{[E]:ee})}),!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,E;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ee=>ee.menuItem))!=null?y:[]:(E=(b=Wo.get(this))==null?void 0:b.menuItems)!=null?E:[]}set menuItems(y){var b;if(this._mathfield){const E=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");E&&(E.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}Wo.has(this)?Wo.set(this,Me(xe({},Wo.get(this)),{menuItems:y})):Wo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Cf(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,E){var ee;(ee=this._mathfield)==null||ee.setPromptState(y,b,E)}getPromptState(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?E:[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:Wo.has(this)?Wo.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,qs(this._mathfield);return}if(Wo.has(this)){Wo.set(this,Me(xe({},Wo.get(this)),{selection:y}));return}Wo.set(this,{value:void 0,selection:y,options:Cf(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:Wo.has(this)?Wo.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,qs(this._mathfield)),Wo.has(this)){Wo.set(this,Me(xe({},Wo.get(this)),{selection:{ranges:[[y,y]]}}));return}Wo.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Cf(this),menuItems:void 0})}getOffsetDepth(y){var b,E;return this._mathfield?((E=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?E:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};_l.version="0.98.5",_l._fontsDirectory="./fonts",_l._soundsDirectory="./sounds",_l.keypressVibration=!0,_l._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},_l._plonkSound="plonk.wav",_l.audioBuffers={},_l.createHTML=a=>a,_l._speechEngineRate="100%",_l._speechEngineVoice="Joanna",_l._textToSpeechMarkup="",_l._textToSpeechRules="mathlive",_l._textToSpeechRulesOptions={},_l.speakHook=r1,_l.readAloudHook=h1,_l._decimalSeparator=".",_l.fractionNavigationOrder="numerator-denominator",_l._isFunction=a=>{var y,b;const E=window.MathfieldElement.computeEngine;return(b=(y=E==null?void 0:E.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var wf=_l;function Kc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Cf(a){const y={readOnly:!1},b=wf.optionsAttributes;return Object.keys(b).forEach(E=>{if(a.hasAttribute(E)){const ee=a.getAttribute(E);E==="placeholder"?y.contentPlaceholder=ee!=null?ee:"":b[E]==="boolean"?y[Kc(E)]=!0:b[E]==="on/off"?ee==="on"?y[Kc(E)]=!0:ee==="off"?y[Kc(E)]=!1:y[Kc(E)]=void 0:b[E]==="number"?y[Kc(E)]=Number.parseFloat(ee!=null?ee:"0"):y[Kc(E)]=ee}}),y}function Kd(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=wf,yp,bp,xp,wp;if(et()&&!((yp=window.customElements)!=null&&yp.get("math-field"))){(xp=window[bp=Symbol.for("io.cortexjs.mathlive")])!=null||(window[bp]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=wf,(wp=window.customElements)==null||wp.define("math-field",wf)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const oe=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;oe==="\\"?E++:oe==="{"?ee++:oe==="}"&&ee--,E++}return-1}function oh(a,y,b,E,ee="latex"){const re=[];for(const oe of a)if(oe.type==="text"){const me=oe.data;let ve=!0,Ee=0,Ne;Ne=me.indexOf(y),Ne!==-1&&(Ee=Ne,Ee>0&&re.push({type:"text",data:me.slice(0,Ee)}),ve=!1);let ht=!1;for(;!ht;){if(ve){if(Ne=me.indexOf(y,Ee),Ne===-1){ht=!0;break}Ee!==Ne&&re.push({type:"text",data:me.slice(Ee,Ne)}),Ee=Ne}else{if(Ne=m1(b,me,Ee+y.length),Ne===-1){ht=!0;break}let Pt=me.slice(Ee+y.length,Ne);ee==="ascii-math"&&([,Pt]=oa(Pt,{format:"ascii-math"})),re.push({type:"math",data:Pt,rawData:me.slice(Ee,Ne+b.length),mathstyle:E}),Ee=Ne+b.length}ve=!ve}Ee<me.length&&re.push({type:"text",data:me.slice(Ee)})}else re.push(oe);return re}function Cp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=oh(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=oh(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=oh(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=oh(E,ee,re,"displaystyle","ascii-math")}),E}function g1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function v1(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),re=document.createElement("span");return re.dataset.latex=a,re.style.display=b==="displaystyle"?"flex":"inline-flex",re.setAttribute("aria-hidden","true"),re.setAttribute("translate","no"),re.innerHTML=window.MathfieldElement.createHTML(ee),re}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function Hd(a,y,b,E){var ee;const re=v1(a,b,y||"textstyle",E),oe=(ee=b.renderAccessibleContent)!=null?ee:"";if(re&&/\b(mathml|speakable-text)\b/i.test(oe)){const me=document.createElement("span");if(/\bmathml\b/i.test(oe)&&b.renderToMathML&&me.append(g1(a,b)),/\bspeakable-text\b/i.test(oe)&&b.renderToSpeakableText){const ve=document.createElement("span");ve.setAttribute("translate","no");const Ee=b.renderToSpeakableText(a);ve.innerHTML=window.MathfieldElement.createHTML(Ee),ve.className="ML__sr-only",me.append(ve)}return me.append(re),me}return re}function y1(a,y){var b,E,ee;let re=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){re=document.createDocumentFragment();const oe=Hd(a,"",y,!0);oe&&re.appendChild(oe)}else{if(!a.trim())return null;const oe=Cp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(oe.length===1&&oe[0].type==="text")return null;re=document.createDocumentFragment();for(const me of oe)if(me.type==="text")re.appendChild(document.createTextNode(me.data));else{const ve=Hd(me.data,me.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ve&&re.appendChild(ve)}}return re}function Sp(a,y){var b,E,ee,re,oe,me,ve,Ee,Ne,ht,Pt,qt,dn,er,ci,Qn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const kr=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(kr)){a.textContent="";const zr=Hd(kr,"",y,!0);zr&&a.append(zr);return}const bi=Cp(kr,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(bi.length===1&&bi[0].type==="math"){a.textContent="";const zr=Hd(bi[0].data,bi[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);zr&&a.append(zr);return}if(bi.length===1&&bi[0].type==="text")return}for(let kr=a.childNodes.length-1;kr>=0;kr--){const bi=a.childNodes[kr];if(bi.nodeType===3){const zr=y1((oe=bi.textContent)!=null?oe:"",y);zr&&(kr+=zr.childNodes.length-1,bi.replaceWith(zr))}else if(bi.nodeType===1){const zr=bi,na=bi.nodeName.toLowerCase();if(na==="script"){const xa=bi;let pa;if((me=y.processScriptTypePattern)!=null&&me.test(xa.type))pa=(ve=xa.textContent)!=null?ve:"";else if((Ee=y.processMathJSONScriptTypePattern)!=null&&Ee.test(xa.type))try{pa=(ht=y.serializeToLatex)==null?void 0:ht.call(y,JSON.parse((Ne=xa.textContent)!=null?Ne:""))}catch(To){console.error(To)}if(pa){let To="textstyle";for(const Mi of xa.type.split(";")){const[$u,Ec]=Mi.toLowerCase().split("=");$u.trim()==="mode"&&(To=Ec.trim()==="display"?"displaystyle":"textstyle")}const fs=Hd(pa,To,y,!0);fs&&xa.parentNode.replaceChild(fs,xa)}}else if(((qt=(Pt=y.processClassPattern)==null?void 0:Pt.test(zr.className))!=null?qt:!1)||!((er=(dn=y.skipTags)==null?void 0:dn.includes(na))!=null&&er||(Qn=(ci=y.ignoreClassPattern)==null?void 0:ci.test(zr.className))!=null&&Qn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const pa=a.textContent;a.textContent="";const To=Hd(pa!=null?pa:"","displaystyle",y,!0);To&&a.append(To)}else Sp(zr,y)}}}var b1={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 x1(a,y){var b,E,ee,re;try{const oe=xe(xe({},b1),y);oe.ignoreClassPattern=new RegExp((b=oe.ignoreClass)!=null?b:""),oe.processClassPattern=new RegExp((E=oe.processClass)!=null?E:""),oe.processScriptTypePattern=new RegExp((ee=oe.processScriptType)!=null?ee:""),oe.processMathJSONScriptTypePattern=new RegExp((re=oe.processMathJSONScriptType)!=null?re:""),Rf(),Lu("core"),Sp(a,oe)}catch(oe){oe instanceof Error?console.error("renderMathInElement(): "+oe.message):console.error("renderMathInElement(): Could not render math for element",a)}}function w1(a,y){const b=Xc.singleton;return b?(b.show(),cf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function C1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}Bu({switchKeyboardLayer:w1,toggleVirtualKeyboard:C1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function qc(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function L1(){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 B1(a){E1(document.body,a)}function S1(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 E1(a,y){var b,E,ee,re;const oe=S1(a);if(!oe)return;const me=y!=null?y:{};(b=me.renderToMarkup)!=null||(me.renderToMarkup=Bl),(E=me.renderToMathML)!=null||(me.renderToMathML=Rv),(ee=me.renderToSpeakableText)!=null||(me.renderToSpeakableText=_v),(re=me.serializeToLatex)!=null||(me.serializeToLatex=Fv),x1(oe,me)}var I1={mathlive:"0.98.5"}},16722:function(zn,en,ae){"use strict";ae.d(en,{Z:function(){return xe}});const ce=Me=>typeof Me=="object"&&Me!=null&&Me.nodeType===1,De=(Me,Ke)=>(!Ke||Me!=="hidden")&&Me!=="visible"&&Me!=="clip",Te=(Me,Ke)=>{if(Me.clientHeight<Me.scrollHeight||Me.clientWidth<Me.scrollWidth){const vt=getComputedStyle(Me,null);return De(vt.overflowY,Ke)||De(vt.overflowX,Ke)||(Pe=>{const Be=(et=>{if(!et.ownerDocument||!et.ownerDocument.defaultView)return null;try{return et.ownerDocument.defaultView.frameElement}catch(Je){return null}})(Pe);return!!Be&&(Be.clientHeight<Pe.scrollHeight||Be.clientWidth<Pe.scrollWidth)})(Me)}return!1},dt=(Me,Ke,vt,Pe,Be,et,Je,tt)=>et<Me&&Je>Ke||et>Me&&Je<Ke?0:et<=Me&&tt<=vt||Je>=Ke&&tt>=vt?et-Me-Pe:Je>Ke&&tt<vt||et<Me&&tt>vt?Je-Ke+Be:0,be=Me=>{const Ke=Me.parentElement;return Ke==null?Me.getRootNode().host||null:Ke},ke=(Me,Ke)=>{var vt,Pe,Be,et;if(typeof document=="undefined")return[];const{scrollMode:Je,block:tt,inline:yt,boundary:wt,skipOverflowHiddenElements:It}=Ke,gt=typeof wt=="function"?wt:Yt=>Yt!==wt;if(!ce(Me))throw new TypeError("Invalid target");const st=document.scrollingElement||document.documentElement,ze=[];let he=Me;for(;ce(he)&>(he);){if(he=be(he),he===st){ze.push(he);break}he!=null&&he===document.body&&Te(he)&&!Te(document.documentElement)||he!=null&&Te(he,It)&&ze.push(he)}const je=(Pe=(vt=window.visualViewport)==null?void 0:vt.width)!=null?Pe:innerWidth,Xe=(et=(Be=window.visualViewport)==null?void 0:Be.height)!=null?et:innerHeight,{scrollX:Qe,scrollY:Ue}=window,{height:mt,width:Le,top:Bt,right:at,bottom:Wt,left:Lt}=Me.getBoundingClientRect(),{top:Tt,right:Xt,bottom:jt,left:it}=(Yt=>{const lt=window.getComputedStyle(Yt);return{top:parseFloat(lt.scrollMarginTop)||0,right:parseFloat(lt.scrollMarginRight)||0,bottom:parseFloat(lt.scrollMarginBottom)||0,left:parseFloat(lt.scrollMarginLeft)||0}})(Me);let Ce=tt==="start"||tt==="nearest"?Bt-Tt:tt==="end"?Wt+jt:Bt+mt/2-Tt+jt,Et=yt==="center"?Lt+Le/2-it+Xt:yt==="end"?at+Xt:Lt-it;const on=[];for(let Yt=0;Yt<ze.length;Yt++){const lt=ze[Yt],{height:pt,width:Ft,top:Sn,right:$t,bottom:Pn,left:Zt}=lt.getBoundingClientRect();if(Je==="if-needed"&&Bt>=0&&Lt>=0&&Wt<=Xe&&at<=je&&(lt===st&&!Te(lt)||Bt>=Sn&&Wt<=Pn&&Lt>=Zt&&at<=$t))return on;const an=getComputedStyle(lt),Ht=parseInt(an.borderLeftWidth,10),ye=parseInt(an.borderTopWidth,10),ue=parseInt(an.borderRightWidth,10),le=parseInt(an.borderBottomWidth,10);let de=0,ge=0;const se="offsetWidth"in lt?lt.offsetWidth-lt.clientWidth-Ht-ue:0,Oe="offsetHeight"in lt?lt.offsetHeight-lt.clientHeight-ye-le:0,ut="offsetWidth"in lt?lt.offsetWidth===0?0:Ft/lt.offsetWidth:0,Ge="offsetHeight"in lt?lt.offsetHeight===0?0:pt/lt.offsetHeight:0;if(st===lt)de=tt==="start"?Ce:tt==="end"?Ce-Xe:tt==="nearest"?dt(Ue,Ue+Xe,Xe,ye,le,Ue+Ce,Ue+Ce+mt,mt):Ce-Xe/2,ge=yt==="start"?Et:yt==="center"?Et-je/2:yt==="end"?Et-je:dt(Qe,Qe+je,je,Ht,ue,Qe+Et,Qe+Et+Le,Le),de=Math.max(0,de+Ue),ge=Math.max(0,ge+Qe);else{de=tt==="start"?Ce-Sn-ye:tt==="end"?Ce-Pn+le+Oe:tt==="nearest"?dt(Sn,Pn,pt,ye,le+Oe,Ce,Ce+mt,mt):Ce-(Sn+pt/2)+Oe/2,ge=yt==="start"?Et-Zt-Ht:yt==="center"?Et-(Zt+Ft/2)+se/2:yt==="end"?Et-$t+ue+se:dt(Zt,$t,Ft,Ht,ue+se,Et,Et+Le,Le);const{scrollLeft:_e,scrollTop:St}=lt;de=Ge===0?0:Math.max(0,Math.min(St+de/Ge,lt.scrollHeight-pt/Ge+Oe)),ge=ut===0?0:Math.max(0,Math.min(_e+ge/ut,lt.scrollWidth-Ft/ut+se)),Ce+=St-de,Et+=_e-ge}on.push({el:lt,top:de,left:ge})}return on},pe=Me=>Me===!1?{block:"end",inline:"nearest"}:(Ke=>Ke===Object(Ke)&&Object.keys(Ke).length!==0)(Me)?Me:{block:"start",inline:"nearest"};function xe(Me,Ke){if(!Me.isConnected||!(Be=>{let et=Be;for(;et&&et.parentNode;){if(et.parentNode===document)return!0;et=et.parentNode instanceof ShadowRoot?et.parentNode.host:et.parentNode}return!1})(Me))return;const vt=(Be=>{const et=window.getComputedStyle(Be);return{top:parseFloat(et.scrollMarginTop)||0,right:parseFloat(et.scrollMarginRight)||0,bottom:parseFloat(et.scrollMarginBottom)||0,left:parseFloat(et.scrollMarginLeft)||0}})(Me);if((Be=>typeof Be=="object"&&typeof Be.behavior=="function")(Ke))return Ke.behavior(ke(Me,Ke));const Pe=typeof Ke=="boolean"||Ke==null?void 0:Ke.behavior;for(const{el:Be,top:et,left:Je}of ke(Me,pe(Ke))){const tt=et-vt.top+vt.bottom,yt=Je-vt.left+vt.right;Be.scroll({top:tt,left:yt,behavior:Pe})}}}}]);
|
|
|
}()); |